/* ---------- Article page (extends blog/styles.css) ---------- */

.article-page {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- Hero ---------- */
.post-hero {
  background: var(--brown-800);
  color: var(--cream-50);
  padding: 56px 32px 80px;
  position: relative;
  overflow: hidden;
}
.post-hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(245,237,226,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(245,237,226,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(80% 60% at 50% 40%, black 0%, transparent 80%);
}
.post-hero__blob {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}
.post-hero__blob--a { background: var(--orange); top: -140px; right: 8%; }
.post-hero__blob--b { background: var(--yellow); bottom: -180px; left: 14%; opacity: 0.25; }

.post-hero__inner {
  max-width: 900px; margin: 0 auto;
  position: relative; z-index: 2;
}
.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(245,237,226,0.55);
  margin-bottom: 28px;
  font-family: 'IBM Plex Mono', monospace;
}
.breadcrumbs a:hover { color: var(--cream-50); }
.breadcrumbs__sep { opacity: 0.4; }
.breadcrumbs__current { color: var(--yellow); }

.post-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px;
}
.post-tag {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  border: 1px solid rgba(245,237,226,0.2);
  color: rgba(245,237,226,0.85);
}
.post-tag--primary {
  background: var(--orange); color: var(--brown-900); border-color: var(--orange);
  font-weight: 700;
}

.post-title {
  font-size: clamp(36px, 4.8vw, 64px);
  line-height: 1.02; letter-spacing: -0.035em;
  font-weight: 700; margin: 0 0 24px;
  text-wrap: balance;
}
.post-title em {
  font-style: normal;
  background: linear-gradient(100deg, var(--orange) 0%, var(--yellow) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.post-dek {
  font-size: 20px; line-height: 1.45;
  color: rgba(245,237,226,0.72);
  max-width: 720px; margin: 0 0 40px;
  text-wrap: pretty;
}
.post-meta-row {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
  padding-top: 28px;
  border-top: 1px solid rgba(245,237,226,0.12);
}
.post-author {
  display: flex; align-items: center; gap: 12px;
}
.post-author__avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  display: grid; place-items: center;
  font-size: 15px; font-weight: 700; color: var(--brown-900);
}
.post-author__name { font-size: 14px; font-weight: 600; color: var(--cream-50); }
.post-author__role { font-size: 12px; color: rgba(245,237,226,0.55); margin-top: 1px; }
.post-meta-item {
  font-size: 12px; color: rgba(245,237,226,0.6);
  display: flex; align-items: center; gap: 8px;
}
.post-meta-item .mono { color: rgba(245,237,226,0.85); }
.post-meta-item svg { opacity: 0.6; }
.post-meta-divider { width: 1px; height: 24px; background: rgba(245,237,226,0.15); }

/* ---------- Cover illustration ---------- */
.post-cover {
  max-width: 1280px; margin: -48px auto 0;
  padding: 0 32px; position: relative; z-index: 3;
}
.post-cover__art {
  aspect-ratio: 21/9;
  border-radius: var(--radius-l);
  position: relative; overflow: hidden;
  background:
    radial-gradient(70% 100% at 20% 100%, #FFD680 0%, transparent 55%),
    radial-gradient(60% 90% at 85% 10%, #FF6A2B 0%, transparent 60%),
    linear-gradient(135deg, #FFA046, #FF6A2B);
  box-shadow: 0 40px 80px -40px rgba(30,25,21,0.5);
}
.post-cover__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(30,25,21,0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30,25,21,0.08) 1px, transparent 1px);
  background-size: 60px 60px;
}
.post-cover__badge {
  position: absolute; left: 32px; bottom: 32px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(30,25,21,0.85);
  backdrop-filter: blur(8px);
  color: var(--cream-50);
  padding: 12px 18px; border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
}
.post-cover__badge strong { color: var(--yellow); font-weight: 600; }
.post-cover__caption {
  position: absolute; right: 32px; bottom: 32px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: rgba(30,25,21,0.55);
}

/* ---------- Body layout ---------- */
.post-layout {
  max-width: 1280px;
  margin: 56px auto 0;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 240px;
  gap: 48px;
  align-items: start;
}
.post-rail-left, .post-rail-right {
  position: sticky; top: 100px;
}
.post-rail-left { grid-column: 1; }
.post-rail-right { grid-column: 3; }
.post-content { grid-column: 2; max-width: 680px; }

/* ---------- TOC ---------- */
.toc-label, .share-label, .sidecard-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-40);
  margin-bottom: 14px;
}
.toc ol { list-style: none; padding: 0; margin: 0; counter-reset: toc; }
.toc li {
  counter-increment: toc;
  font-size: 13px; line-height: 1.4;
  padding: 9px 0 9px 28px;
  position: relative;
  color: var(--ink-60);
  cursor: pointer;
  transition: color 160ms ease;
  border-left: 1px solid var(--ink-12);
  padding-left: 16px;
}
.toc li:first-child { padding-left: 16px; }
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  color: var(--ink-40);
  margin-right: 8px;
}
.toc li:hover { color: var(--ink); }
.toc li.active {
  color: var(--ink);
  border-left-color: var(--orange);
  font-weight: 600;
}
.toc li.active::before { color: var(--orange); }

/* ---------- Share rail (floats inside left col below TOC) ---------- */
.share {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-12);
}
.share__buttons { display: flex; flex-direction: column; gap: 6px; }
.share-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 10px;
  font-size: 13px; color: var(--ink-60);
  transition: all 160ms ease;
  border: 1px solid transparent;
}
.share-btn:hover { background: #fff; color: var(--ink); border-color: var(--ink-06); }
.share-btn .count {
  margin-left: auto;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--ink-40);
}

/* ---------- Side card (right rail) ---------- */
.sidecard {
  background: #fff;
  border: 1px solid var(--ink-06);
  border-radius: var(--radius-m);
  padding: 20px;
}
.sidecard__heading {
  font-size: 15px; font-weight: 600;
  margin: 0 0 6px; letter-spacing: -0.01em;
}
.sidecard__text { font-size: 12px; color: var(--ink-60); line-height: 1.5; margin: 0 0 14px; }
.sidecard__cta {
  width: 100%;
  padding: 11px; border-radius: 10px;
  background: var(--brown-800); color: var(--cream-50);
  font-weight: 600; font-size: 13px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  transition: background 180ms ease;
}
.sidecard__cta:hover { background: var(--brown-900); }
.sidecard__cta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }

.sidecard-stats {
  margin-top: 16px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.sidecard-stat {
  background: var(--cream-50);
  border-radius: 10px;
  padding: 12px;
}
.sidecard-stat__n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 22px; font-weight: 500;
  letter-spacing: -0.03em; color: var(--ink);
}
.sidecard-stat__l {
  font-size: 10px; color: var(--ink-60);
  margin-top: 2px; line-height: 1.3;
}

/* ---------- Article typography ---------- */
.post-body {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.post-body > * + * { margin-top: 20px; }
.post-body p { margin: 0; text-wrap: pretty; }
.post-body p strong { font-weight: 700; }
.post-body p em { font-style: italic; color: var(--brown-700); }

/* Tables inside article content */
.post-body table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
  line-height: 1.5;
  background: var(--cream-100, #F5EDE2);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--ink-12, rgba(42,36,31,0.12));
  margin: 28px 0;
}
.post-body table thead th,
.post-body table th {
  background: var(--brown-800, #2A241F);
  color: var(--cream-50, #FFF7EB);
  font-weight: 600;
  text-align: left;
  padding: 14px 18px;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--ink-12, rgba(42,36,31,0.12));
  vertical-align: top;
}
.post-body table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ink-06, rgba(42,36,31,0.06));
  vertical-align: top;
  color: var(--ink);
}
.post-body table tbody tr:last-child td { border-bottom: 0; }
.post-body table tbody tr:nth-child(even) td { background: rgba(255,255,255,0.35); }
.post-body table td:first-child,
.post-body table th:first-child { font-weight: 600; color: var(--brown-900, #1F1A16); }
@media (max-width: 720px) {
  .post-body table { font-size: 14px; display: block; overflow-x: auto; }
  .post-body table thead th,
  .post-body table td { padding: 12px 14px; white-space: nowrap; }
}

.post-body h2 {
  font-size: 32px; font-weight: 700;
  line-height: 1.15; letter-spacing: -0.025em;
  margin: 56px 0 16px;
  scroll-margin-top: 100px;
  text-wrap: balance;
}
.post-body h2 .h-num {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; font-weight: 500;
  color: var(--orange);
  display: block;
  margin-bottom: 8px;
  letter-spacing: 0.08em;
}
.post-body h3 {
  font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.3;
  margin: 40px 0 12px;
  scroll-margin-top: 100px;
}

.post-body a {
  color: var(--ink);
  background-image: linear-gradient(var(--orange), var(--orange));
  background-size: 100% 2px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 180ms ease;
}
.post-body a:hover { background-size: 100% 100%; background-image: linear-gradient(var(--yellow), var(--yellow)); }

.post-body ul, .post-body ol { padding-left: 0; list-style: none; }
.post-body ul li, .post-body ol li {
  position: relative; padding-left: 28px;
  margin-bottom: 10px;
}
.post-body ul li::before {
  content: ''; position: absolute; left: 6px; top: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
}
.post-body ol { counter-reset: ol; }
.post-body ol li { counter-increment: ol; }
.post-body ol li::before {
  content: counter(ol, decimal-leading-zero);
  position: absolute; left: 0; top: 2px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px; color: var(--orange); font-weight: 600;
}

/* Blockquote */
.post-body blockquote {
  margin: 40px 0;
  padding: 28px 32px;
  background: var(--cream-50);
  border-radius: var(--radius-m);
  border: 1px solid var(--ink-06);
  position: relative;
}
.post-body blockquote::before {
  content: '“';
  position: absolute; top: -6px; left: 20px;
  font-family: Georgia, serif;
  font-size: 80px; line-height: 1;
  color: var(--orange);
}
.post-body blockquote p {
  font-size: 22px; line-height: 1.4;
  letter-spacing: -0.015em;
  font-weight: 500;
  color: var(--ink);
  margin-top: 8px;
  text-wrap: pretty;
}
.post-body blockquote cite {
  display: block;
  margin-top: 16px;
  font-style: normal;
  font-size: 13px;
  color: var(--ink-60);
  font-family: 'IBM Plex Mono', monospace;
}
.post-body blockquote cite strong { color: var(--ink); font-weight: 600; }

/* Callout */
.callout {
  margin: 32px 0 !important;
  padding: 20px 24px;
  background: var(--brown-800);
  color: var(--cream-50);
  border-radius: var(--radius-m);
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 16px;
  align-items: start;
}
.callout__icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--orange); color: var(--brown-900);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.callout__label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--yellow);
  margin-bottom: 4px;
}
.callout__text { font-size: 16px; line-height: 1.5; margin: 0; color: rgba(245,237,226,0.9); }

/* Figure / image */
.post-body figure { margin: 40px 0; }
.post-body figure img {
  width: 100%; border-radius: var(--radius-m);
  border: 1px solid var(--ink-06);
}
.figure-placeholder {
  width: 100%; aspect-ratio: 16/9;
  border-radius: var(--radius-m);
  background:
    radial-gradient(60% 80% at 20% 80%, rgba(255,194,77,0.3) 0%, transparent 60%),
    radial-gradient(50% 70% at 80% 20%, rgba(255,106,43,0.25) 0%, transparent 60%),
    var(--cream-100);
  border: 1px solid var(--ink-12);
  position: relative;
  overflow: hidden;
}
.figure-placeholder__chart {
  position: absolute; inset: 20% 10% 20% 10%;
}
.figure-placeholder__label {
  position: absolute; left: 16px; top: 16px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px; color: var(--ink-60);
}
.post-body figcaption {
  font-size: 13px; color: var(--ink-60);
  margin-top: 10px; text-align: center;
  font-family: 'IBM Plex Mono', monospace;
}

/* Stat row inside body */
.inline-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0 !important;
  padding: 28px 0;
  border-top: 1px solid var(--ink-12);
  border-bottom: 1px solid var(--ink-12);
}
.inline-stat__n {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 36px; font-weight: 500;
  letter-spacing: -0.035em;
  color: var(--ink);
  line-height: 1;
}
.inline-stat__n em {
  font-style: normal;
  color: var(--orange);
}
.inline-stat__l {
  font-size: 13px; color: var(--ink-60);
  margin-top: 8px; line-height: 1.4;
  max-width: 180px;
}

/* ---------- After body ---------- */
.post-end {
  max-width: 900px; margin: 64px auto 0;
  padding: 0 32px;
}
.post-end__rule {
  height: 1px; background: var(--ink-12);
  margin-bottom: 32px;
}
.post-tags-bottom {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 48px;
}
.post-tag-bottom {
  padding: 6px 12px; border-radius: 999px;
  background: var(--ink-06);
  font-size: 13px; color: var(--ink);
  transition: background 160ms ease;
}
.post-tag-bottom:hover { background: var(--ink-12); }

/* ---------- Author bio card ---------- */
.author-bio {
  max-width: 900px; margin: 0 auto;
  padding: 0 32px;
}
.author-bio__card {
  background: #fff;
  border: 1px solid var(--ink-06);
  border-radius: var(--radius-l);
  padding: 32px;
  display: grid;
  grid-template-columns: 84px 1fr auto;
  gap: 24px;
  align-items: center;
}
.author-bio__avatar {
  width: 84px; height: 84px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  display: grid; place-items: center;
  font-size: 28px; font-weight: 700; color: var(--brown-900);
}
.author-bio__name { font-size: 20px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.02em; }
.author-bio__role { font-size: 13px; color: var(--orange); font-family: 'IBM Plex Mono', monospace; margin-bottom: 10px; }
.author-bio__desc { font-size: 14px; color: var(--ink-60); line-height: 1.55; margin: 0; }
.author-bio__btn {
  padding: 11px 18px; border-radius: 999px;
  background: var(--ink-06); color: var(--ink);
  font-weight: 600; font-size: 13px;
  transition: all 160ms ease;
}
.author-bio__btn:hover { background: var(--brown-800); color: var(--cream-50); }

/* ---------- Related articles ---------- */
.related {
  max-width: 1280px; margin: 80px auto 0;
  padding: 0 32px;
}
.related__header {
  display: flex; align-items: end; justify-content: space-between;
  margin-bottom: 24px;
}
.related__title {
  font-size: 28px; font-weight: 700;
  letter-spacing: -0.025em; margin: 0;
}
.related__link {
  font-size: 13px; color: var(--ink-60);
  display: flex; align-items: center; gap: 6px;
  transition: color 160ms ease;
}
.related__link:hover { color: var(--ink); }

/* ---------- Floating like/save dock (bottom center) ---------- */
.floating-dock {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%);
  background: var(--brown-800); color: var(--cream-50);
  border-radius: 999px;
  padding: 6px;
  display: flex; align-items: center; gap: 4px;
  box-shadow: 0 24px 48px -16px rgba(30,25,21,0.4);
  z-index: 80;
  opacity: 0; transform: translate(-50%, 20px);
  transition: opacity 300ms ease, transform 300ms ease;
  pointer-events: none;
}
.floating-dock.visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.dock-btn {
  padding: 10px 14px; border-radius: 999px;
  font-size: 13px; color: rgba(245,237,226,0.75);
  display: flex; align-items: center; gap: 8px;
  transition: all 160ms ease;
}
.dock-btn:hover { color: var(--cream-50); background: rgba(245,237,226,0.08); }
.dock-btn.on { color: var(--orange); }
.dock-btn.on svg { fill: var(--orange); stroke: var(--orange); }
.dock-btn .n { font-family: 'IBM Plex Mono', monospace; font-size: 12px; }
.dock-divider { width: 1px; height: 18px; background: rgba(245,237,226,0.15); margin: 0 4px; }

/* ---------- Content refinements (editorial polish) ---------- */

/* Redundant inline h1 inside post-body — hero already shows the title */
.post-body > h1 { display: none; }

/* "Definition" paragraphs (class set by content normalizer):
   <p class="deflabel"><strong>Label</strong> — Body</p>
   Orange dot anchors the label visually. */
.post-body p.deflabel { padding-left: 14px; border-left: 2px solid var(--orange); }
.post-body p.deflabel strong { color: var(--brown-900); }

/* FAQ accordion — rendered via <details>/<summary> by JS normalizer */
.post-body details {
  border-bottom: 1px solid var(--ink-12);
  padding: 18px 0;
}
.post-body details[open] { padding-bottom: 22px; }
.post-body details > summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-right: 24px;
  position: relative;
  transition: color 160ms ease;
}
.post-body details > summary::-webkit-details-marker { display: none; }
.post-body details > summary::before {
  content: "+";
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 400;
  font-size: 20px;
  color: var(--orange);
  line-height: 1;
  flex-shrink: 0;
  width: 14px;
  transition: transform 200ms ease;
}
.post-body details[open] > summary::before {
  content: "–";
  transform: rotate(0deg);
}
.post-body details > summary:hover { color: var(--brown-900); }
.post-body details > div,
.post-body details > p {
  margin: 14px 0 0 28px;
  color: var(--ink-60);
  font-size: 16px;
  line-height: 1.65;
}

/* Inline CTA button inside content (trailing demo link) */
.post-body a.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brown-800);
  color: var(--cream-50);
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  text-decoration: none;
  background-image: none;
  transition: transform 160ms ease, background 160ms ease;
  box-shadow: 0 1px 0 var(--ink-06), 0 6px 20px -8px rgba(42,36,31,0.35);
}
.post-body a.cta-btn::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
}
.post-body a.cta-btn:hover {
  background: var(--brown-900);
  transform: translateY(-1px);
  background-image: none;
}

/* Cover art — add subtle grid + caption badge even when using a real image */
.post-cover__art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.post-cover__art::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(42,36,31,0) 40%, rgba(42,36,31,0.45) 100%),
    linear-gradient(90deg, rgba(42,36,31,0.25) 0%, rgba(42,36,31,0) 30%);
  pointer-events: none;
  z-index: 1;
}
.post-cover__caption { z-index: 2; }

/* Post-hero entrance animation: staggered reveal on load */
.post-hero .breadcrumbs,
.post-hero .post-tags,
.post-hero .post-title,
.post-hero .post-dek,
.post-hero .post-meta-row {
  opacity: 0;
  transform: translateY(14px);
  animation: heroFadeUp 640ms cubic-bezier(0.2, 0.7, 0.15, 1) forwards;
}
.post-hero .breadcrumbs   { animation-delay: 0ms;   }
.post-hero .post-tags     { animation-delay: 80ms;  }
.post-hero .post-title    { animation-delay: 160ms; }
.post-hero .post-dek      { animation-delay: 260ms; }
.post-hero .post-meta-row { animation-delay: 360ms; }
@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

/* Trim leading whitespace left behind after emoji strip in table cells */
.post-body table td p:first-child,
.post-body table th p:first-child { margin: 0; }
.post-body table td p:first-child::first-letter { margin-left: 0; }

/* Flow-figure: tighter aspect than default 16/9 placeholder */
.post-body .flow-figure .figure-placeholder {
  aspect-ratio: auto;
  padding: 40px 24px 56px;
}
.post-body .flow-figure .figure-placeholder__chart {
  position: static;
  width: 100%;
  height: auto;
}
.post-body .flow-figure .figure-placeholder__label {
  position: absolute;
  top: 14px; left: 20px;
}

/* Better h3 rhythm — used as case-study subheadings */
.post-body h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-top: 36px;
  color: var(--brown-900);
}

/* Tighter first paragraph after h2 */
.post-body h2 + p { margin-top: 14px; }

/* Respect reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .post-hero .breadcrumbs,
  .post-hero .post-tags,
  .post-hero .post-title,
  .post-hero .post-dek,
  .post-hero .post-meta-row {
    opacity: 1; transform: none; animation: none;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .post-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 760px;
  }
  .post-rail-left, .post-rail-right {
    position: static;
    grid-column: 1;
  }
  .post-rail-right { margin-top: 40px; }
}
@media (max-width: 640px) {
  .post-hero { padding: 32px 16px 64px; }
  .post-cover { padding: 0 16px; margin-top: -32px; }
  .post-title { font-size: 32px; }
  .post-dek { font-size: 17px; }
  .post-layout { padding: 0 16px; gap: 32px; margin-top: 40px; }
  .post-body { font-size: 17px; }
  .post-body h2 { font-size: 26px; margin: 40px 0 12px; }
  .post-body h3 { font-size: 19px; }
  .post-body blockquote { padding: 20px 22px; }
  .post-body blockquote p { font-size: 18px; }
  .inline-stats { grid-template-columns: 1fr; gap: 20px; }
  .inline-stat__n { font-size: 28px; }
  .author-bio { padding: 0 16px; }
  .author-bio__card { grid-template-columns: 60px 1fr; }
  .author-bio__avatar { width: 60px; height: 60px; font-size: 22px; }
  .author-bio__btn { grid-column: 1 / -1; }
  .floating-dock { bottom: 16px; }
  .dock-btn { padding: 8px 10px; font-size: 12px; }
}
