/* ── Post layout ── */
.post-header {
  padding: 64px 0 40px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 48px;
}

.post-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 16px;
}

.post-header .eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.post-header h1 {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 12px;
}

.post-header .sub {
  font-size: 17px;
  color: var(--ink-dim);
  line-height: 1.5;
  margin-bottom: 20px;
}

.post-header .meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 13px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  color: var(--ink-faint);
}

.post-header .meta-row b { color: var(--ink-dim); font-weight: 600; }

/* ── Sections ── */
section { margin-bottom: 48px; }

section h2 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

section h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
}

section p {
  margin-bottom: 16px;
  color: var(--ink-dim);
  line-height: 1.7;
}

/* ── Cards ── */
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 16px;
}

/* ── Code blocks ── */
pre {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 16px;
  color: var(--ink);
}

code {
  background: rgba(125, 211, 252, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  color: var(--accent);
}

pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  color: inherit;
}

/* ── Tables ── */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 14px;
}

th, td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

th {
  font-weight: 600;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

td { color: var(--ink-dim); }

/* ── Collapsible ── */
details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

summary {
  padding: 14px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  list-style: none;
}

summary::before {
  content: "\25B6";
  display: inline-block;
  margin-right: 10px;
  font-size: 10px;
  color: var(--ink-faint);
  transition: transform 0.15s;
}

details[open] summary::before { transform: rotate(90deg); }

details > :not(summary) { padding: 0 18px 14px; }

/* ── Alerts ── */
.alert {
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.55;
}

.alert-info { background: rgba(125, 211, 252, 0.08); border-left: 3px solid var(--accent); color: var(--ink-dim); }
.alert-warn { background: rgba(245, 158, 11, 0.08); border-left: 3px solid var(--warn); color: var(--ink-dim); }
.alert-good { background: rgba(34, 197, 94, 0.08); border-left: 3px solid var(--good); color: var(--ink-dim); }

/* ── Lists ── */
ul, ol {
  padding-left: 22px;
  margin-bottom: 16px;
  color: var(--ink-dim);
}

li { margin-bottom: 6px; line-height: 1.6; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .post-header { padding: 40px 0 28px; }
  .post-header h1 { font-size: 28px; }
  .post-header .sub { font-size: 15px; }
  section h2 { font-size: 19px; }
}
