/* ─────────────────────────────────────────────────────────
   ARTICLE — premium editorial reading experience
   Intelligence briefing meets Bloomberg editorial.
   Sticky TOC, reading progress, drop cap, callout boxes.
   Prefix: art-
   ───────────────────────────────────────────────────────── */


/* ═══════════════════════════════════════════════════════════
   1. READING PROGRESS BAR
   ═══════════════════════════════════════════════════════════ */
.art-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--accent);
  z-index: 200;
  pointer-events: none;
  transition: width 60ms linear;
  box-shadow:
    0 0 8px oklch(0.460 0.180 258 / 0.45),
    0 0 20px oklch(0.460 0.180 258 / 0.15);
}


/* ═══════════════════════════════════════════════════════════
   2. HERO SECTION
   ═══════════════════════════════════════════════════════════ */
.art-hero {
  padding-top: clamp(140px, 16vw, 220px);
  padding-bottom: clamp(56px, 7vw, 88px);
  position: relative;
  isolation: isolate;
}

/* Abstract structural background SVG */
.art-hero__bg {
  position: absolute;
  top: 50%;
  right: clamp(-80px, -4vw, 0px);
  transform: translateY(-50%);
  width: clamp(500px, 60vw, 900px);
  height: auto;
  color: var(--ink);
  opacity: 0.08;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.art-hero > .container {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

/* ── Badge — intelligence classification label ── */
.art-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 32px;
  padding: 5px 14px 5px 10px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  background: var(--paper-deeper);
}
.art-badge__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: art-badge-pulse 2.4s var(--ease-out-strong) infinite;
}
@keyframes art-badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 oklch(0.460 0.180 258 / 0.35); }
  50%      { box-shadow: 0 0 0 5px oklch(0.460 0.180 258 / 0); }
}
.art-badge__sep {
  color: var(--paper-edge);
  opacity: 0.6;
}

/* ── Title — dramatic, tight leading ── */
.art-hero__title {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.8rem, 5.5vw + 1rem, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.036em;
  color: var(--ink);
  max-width: 20ch;
}
.art-hero__title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.06em;
}

/* ── Lede paragraph ── */
.art-lead {
  margin-top: clamp(28px, 3vw, 40px);
  font-size: clamp(1.08rem, 0.6vw + 0.88rem, 1.25rem);
  color: var(--ink-soft);
  line-height: 1.65;
  max-width: 58ch;
  padding-bottom: clamp(28px, 3vw, 40px);
  border-bottom: 1px solid var(--rule);
}

/* ── Meta row — refined cadence ── */
.art-meta {
  margin-top: clamp(20px, 2.5vw, 28px);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-mute);
}
.art-meta__sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.6;
}


/* ═══════════════════════════════════════════════════════════
   3. FEATURED IMAGE — dossier photo frame
   ═══════════════════════════════════════════════════════════ */
.art-figure {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 clamp(24px, 4vw, 40px);
  position: relative;
}
.art-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
  border: 1px solid var(--rule);
  box-shadow:
    inset 0 0 0 1px oklch(0 0 0 / 0.04),
    0 1px 2px oklch(0 0 0 / 0.04),
    0 8px 32px -12px oklch(0 0 0 / 0.10);
}
/* Bottom gradient fade — integrates image into page */
.art-figure::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: clamp(24px, 4vw, 40px);
  right: clamp(24px, 4vw, 40px);
  height: 48px;
  background: linear-gradient(to top, var(--paper), transparent);
  pointer-events: none;
  border-radius: 0 0 2px 2px;
}


/* ═══════════════════════════════════════════════════════════
   4. ARTICLE BODY — two-column grid layout
   ═══════════════════════════════════════════════════════════ */
.art-body {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: clamp(32px, 4vw, 64px);
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(48px, 6vw, 72px) clamp(24px, 4vw, 40px);
  position: relative;
}


/* ═══════════════════════════════════════════════════════════
   5. TABLE OF CONTENTS — sticky sidebar
   ═══════════════════════════════════════════════════════════ */
.art-toc-col {
  position: relative;
}
.art-toc {
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
/* JS-driven sticky states — do not alter behavior */
.art-toc.is-stuck {
  position: fixed;
  top: 100px;
  width: 180px;
}
.art-toc.is-bottomed {
  position: absolute;
  bottom: 0;
  top: auto;
  width: 180px;
}

/* ── TOC label — eyebrow with line prefix ── */
.art-toc__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.art-toc__label::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--ink-mute);
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── TOC list ── */
.art-toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--rule);
}
.art-toc__item {
  display: block;
}
.art-toc__item a {
  display: block;
  padding: 8px 0 8px 16px;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.35;
  text-decoration: none;
  border-left: 2px solid transparent;
  margin-left: -1px;
  transition:
    color 200ms var(--ease-out-strong),
    border-color 200ms var(--ease-out-strong),
    background 200ms var(--ease-out-strong);
}
.art-toc__item a:hover {
  color: var(--ink-soft);
}

/* ── Active state — accent border + dot indicator ── */
.art-toc__item.is-active a {
  color: var(--accent);
  border-left-color: var(--accent);
  background: linear-gradient(90deg, oklch(0.460 0.180 258 / 0.06), transparent 80%);
}


/* ═══════════════════════════════════════════════════════════
   6. PROSE — body typography
   ═══════════════════════════════════════════════════════════ */
.art-prose {
  max-width: 68ch;
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink-soft);
}
.art-prose > * + * {
  margin-top: 1.25em;
}

/* ── Drop cap — dramatic serif italic with accent highlight ── */
.art-prose > p:first-of-type::first-letter {
  float: left;
  font-family: var(--font-serif);
  font-size: 4.4em;
  line-height: 0.78;
  padding-right: 0.12em;
  padding-top: 0.06em;
  color: var(--ink);
  font-weight: 400;
  font-style: italic;
  background: linear-gradient(
    to top,
    oklch(0.460 0.180 258 / 0.12) 0.12em,
    transparent 0.12em
  );
}

/* ── Headings ── */
.art-prose h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.5rem, 1.5vw + 0.5rem, 1.95rem);
  color: var(--ink);
  margin-top: 3em;
  margin-bottom: 0.2em;
  line-height: 1.15;
  letter-spacing: -0.022em;
}
.art-prose h2 .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.art-prose h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(1.15rem, 0.5vw + 0.65rem, 1.35rem);
  color: var(--ink);
  margin-top: 2em;
  line-height: 1.28;
}

/* ── Section number marker — prominent block with accent bg ── */
.art-section-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: inline-block;
  padding: 3px 10px;
  background: oklch(0.460 0.180 258 / 0.08);
  border-radius: 2px;
}

/* ── Body text ── */
.art-prose p,
.art-prose li {
  color: var(--ink-soft);
}
.art-prose strong {
  color: var(--ink);
  font-weight: 600;
}
.art-prose em {
  font-style: italic;
}

/* ── Links ── */
.art-prose a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--paper-edge);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: text-decoration-color 200ms var(--ease-out-strong);
}
.art-prose a:hover {
  text-decoration-color: var(--accent);
}

/* ── Lists ── */
.art-prose ul,
.art-prose ol {
  padding-left: 1.4em;
}
.art-prose li + li {
  margin-top: 0.55em;
}
.art-prose li::marker {
  color: var(--ink-mute);
}


/* ═══════════════════════════════════════════════════════════
   7. BLOCKQUOTE — dramatic accent border + decorative marks
   ═══════════════════════════════════════════════════════════ */
.art-prose blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.4em 0 0.4em 1.6em;
  margin: 2.4em 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.3em;
  line-height: 1.48;
  color: var(--ink);
  position: relative;
}
/* Decorative opening quote mark */
.art-prose blockquote::before {
  content: "\201C";
  position: absolute;
  top: -0.15em;
  left: -0.55em;
  font-family: var(--font-serif);
  font-size: 3.4em;
  line-height: 1;
  color: var(--accent);
  opacity: 0.2;
  pointer-events: none;
}


/* ═══════════════════════════════════════════════════════════
   8. PULL QUOTE — centered decorative break with accent
   ═══════════════════════════════════════════════════════════ */
.art-pullquote {
  margin: 3em 0;
  padding: 2.4em 0;
  border-top: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  text-align: center;
  position: relative;
  background: linear-gradient(
    180deg,
    oklch(0.460 0.180 258 / 0.03),
    transparent 40%,
    transparent 60%,
    oklch(0.460 0.180 258 / 0.03)
  );
}
.art-pullquote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.4rem, 1.1vw + 0.85rem, 1.8rem);
  color: var(--ink);
  line-height: 1.42;
  max-width: 46ch;
  margin: 0 auto;
}


/* ═══════════════════════════════════════════════════════════
   9. COUNTER CALLOUT — dark intelligence briefing panel
   ═══════════════════════════════════════════════════════════ */
.art-counter {
  margin: 2em 0 2.4em;
  padding: 28px 28px 24px;
  background: oklch(0.14 0.02 260);
  border: 1px solid oklch(0.28 0.02 260);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 4px 16px oklch(0 0 0 / 0.12),
    inset 0 1px 0 oklch(1 0 0 / 0.04);
}
/* Dot-grid texture — matches homepage evidence panel */
.art-counter::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, oklch(1 0 0 / 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}
/* Corner accent marks — top-left and bottom-right */
.art-counter::after {
  content: "";
  position: absolute;
  top: 8px;
  left: 8px;
  width: 12px;
  height: 12px;
  border-top: 1.5px solid oklch(0.870 0.180 130 / 0.35);
  border-left: 1.5px solid oklch(0.870 0.180 130 / 0.35);
  pointer-events: none;
}
/* Label — lime green on dark background */
.art-counter__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: oklch(0.870 0.180 130);
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}
.art-counter p {
  font-size: 15px;
  color: oklch(0.82 0.01 250);
  line-height: 1.65;
  position: relative;
  z-index: 1;
}
.art-counter strong {
  color: oklch(0.95 0 0);
  font-weight: 600;
}
.art-counter a {
  color: oklch(0.82 0.01 250);
  text-decoration-color: oklch(0.870 0.180 130 / 0.4);
}
.art-counter a:hover {
  text-decoration-color: oklch(0.870 0.180 130);
}


/* ═══════════════════════════════════════════════════════════
   10. INLINE CODE
   ═══════════════════════════════════════════════════════════ */
.art-prose code {
  font-family: var(--font-mono);
  font-size: 0.86em;
  background: var(--paper-deeper);
  padding: 0.18em 0.45em;
  border-radius: 2px;
  border: 1px solid var(--paper-edge);
}


/* ═══════════════════════════════════════════════════════════
   11. HORIZONTAL RULE
   ═══════════════════════════════════════════════════════════ */
.art-prose hr {
  border: none;
  height: 1px;
  background: var(--rule);
  margin: 3em 0;
}


/* ═══════════════════════════════════════════════════════════
   12. ARTICLE FOOTER — classification-style tags
   ═══════════════════════════════════════════════════════════ */
.art-footer {
  max-width: 68ch;
  padding-top: 2.8em;
  margin-top: 1.6em;
  border-top: 1px solid var(--rule);
}
.art-filed {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}
/* Accent dot before filed date */
.art-filed::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.art-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.art-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding: 6px 14px;
  border: 1px solid var(--rule);
  border-radius: 2px;
  text-decoration: none;
  background: var(--paper-deeper);
  transition:
    border-color 200ms var(--ease-out-strong),
    color 200ms var(--ease-out-strong),
    background 200ms var(--ease-out-strong);
}
.art-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: oklch(0.460 0.180 258 / 0.04);
}


/* ═══════════════════════════════════════════════════════════
   13. RELATED ARTICLES — dark panel section transition
   ═══════════════════════════════════════════════════════════ */
.art-related {
  padding: clamp(64px, 9vw, 112px) 0;
  border-top: 2px solid var(--rule);
  background:
    linear-gradient(180deg, var(--paper-deeper) 0%, var(--paper) 100%);
}
.art-related__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.art-related__label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--ink-mute);
  opacity: 0.5;
}
.art-related h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(1.8rem, 2.2vw + 0.6rem, 2.4rem);
  line-height: 1.12;
  letter-spacing: -0.024em;
  color: var(--ink);
  margin-bottom: clamp(36px, 4vw, 56px);
}
.art-related h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}


/* ═══════════════════════════════════════════════════════════
   14. CLOSING CTA — distinctive ending with accent border
   ═══════════════════════════════════════════════════════════ */
.art-closing {
  text-align: left;
  padding-block: clamp(64px, 9vw, 112px);
  border-top: 2px solid var(--accent);
  position: relative;
  background:
    linear-gradient(180deg,
      oklch(0.460 0.180 258 / 0.03) 0%,
      transparent 40%
    );
}
.art-closing .container {
  max-width: 780px;
}
.art-closing__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.art-closing__label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.art-closing h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.2rem, 3.2vw + 0.6rem, 3.2rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  color: var(--ink);
  max-width: 20ch;
}
.art-closing h2 em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}
.art-closing p {
  margin-top: 24px;
  font-size: clamp(1.02rem, 0.6vw + 0.86rem, 1.18rem);
  color: var(--ink-soft);
  line-height: 1.62;
  max-width: 52ch;
}
.art-closing-cta {
  margin-top: 40px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}


/* ═══════════════════════════════════════════════════════════
   15. DARK MODE
   ═══════════════════════════════════════════════════════════ */

/* Hero */
html.dark .art-hero__bg {
  opacity: 0.04;
}
html.dark .art-badge {
  border-color: oklch(0.248 0.016 260);
  background: oklch(0.150 0.015 260);
}

/* Progress bar glow shifts */
html.dark .art-progress {
  box-shadow:
    0 0 10px oklch(0.460 0.180 258 / 0.55),
    0 0 24px oklch(0.460 0.180 258 / 0.2);
}

/* Featured image frame */
html.dark .art-figure img {
  border-color: oklch(0.248 0.016 260);
  box-shadow:
    inset 0 0 0 1px oklch(1 0 0 / 0.03),
    0 1px 2px oklch(0 0 0 / 0.2),
    0 8px 32px -12px oklch(0 0 0 / 0.4);
}
html.dark .art-figure::after {
  background: linear-gradient(to top, var(--paper), transparent);
}

/* Drop cap accent underline */
html.dark .art-prose > p:first-of-type::first-letter {
  background: linear-gradient(
    to top,
    oklch(0.460 0.180 258 / 0.2) 0.12em,
    transparent 0.12em
  );
}

/* Section number marker */
html.dark .art-section-num {
  background: oklch(0.460 0.180 258 / 0.14);
}

/* Counter callout — already dark, minor adjustments */
html.dark .art-counter {
  background: oklch(0.10 0.025 260);
  border-color: oklch(0.22 0.02 260);
  box-shadow:
    0 4px 16px oklch(0 0 0 / 0.25),
    inset 0 1px 0 oklch(1 0 0 / 0.03);
}

/* Blockquote decorative mark */
html.dark .art-prose blockquote::before {
  opacity: 0.15;
}

/* Pull quote accent borders */
html.dark .art-pullquote {
  border-color: oklch(0.380 0.140 258);
  background: linear-gradient(
    180deg,
    oklch(0.460 0.180 258 / 0.04),
    transparent 40%,
    transparent 60%,
    oklch(0.460 0.180 258 / 0.04)
  );
}

/* Tags — classification labels */
html.dark .art-tag {
  border-color: oklch(0.248 0.016 260);
  background: oklch(0.150 0.015 260);
}
html.dark .art-tag:hover {
  border-color: oklch(0.6 0.18 258);
  color: oklch(0.6 0.18 258);
  background: oklch(0.460 0.180 258 / 0.08);
}

/* Related section gradient */
html.dark .art-related {
  border-top-color: oklch(0.248 0.016 260);
  background:
    linear-gradient(180deg, oklch(0.10 0.018 260) 0%, var(--paper) 100%);
}

/* Closing CTA gradient */
html.dark .art-closing {
  border-top-color: oklch(0.5 0.18 258);
  background:
    linear-gradient(180deg,
      oklch(0.460 0.180 258 / 0.05) 0%,
      transparent 40%
    );
}

/* TOC active state */
html.dark .art-toc__item.is-active a {
  background: linear-gradient(90deg, oklch(0.460 0.180 258 / 0.08), transparent 80%);
}
html.dark .art-toc {
  border-top-color: oklch(0.248 0.016 260);
}

/* Code blocks */
html.dark .art-prose code {
  background: oklch(0.150 0.015 260);
  border-color: oklch(0.248 0.016 260);
}

/* Meta separator dot */
html.dark .art-meta__sep {
  background: oklch(0.5 0.18 258);
}


/* ═══════════════════════════════════════════════════════════
   16. RESPONSIVE — tablet (max-width: 900px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Collapse to single column */
  .art-body {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .art-toc-col {
    position: static;
  }

  /* TOC becomes horizontal tabs */
  .art-toc,
  .art-toc.is-stuck,
  .art-toc.is-bottomed {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    width: auto !important;
    padding-top: 0;
    padding-bottom: 28px;
    border-top: none;
    border-bottom: 1px solid var(--rule);
    margin-bottom: 36px;
  }
  .art-toc__label::before {
    display: none;
  }
  .art-toc__list {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    gap: 4px 0;
  }
  .art-toc__item a {
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 6px 14px 6px 0;
    margin-left: 0;
    font-size: 11px;
    background: none;
  }
  .art-toc__item.is-active a {
    border-bottom-color: var(--accent);
    border-left-color: transparent;
    background: none;
  }

  /* Related section */
  .art-related h2 {
    margin-bottom: clamp(28px, 4vw, 40px);
  }

  /* Counter callout padding */
  .art-counter {
    padding: 24px 22px 20px;
  }
}


/* ═══════════════════════════════════════════════════════════
   17. RESPONSIVE — small screens (max-width: 600px)
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 600px) {
  .art-hero__title {
    font-size: clamp(2rem, 8vw, 2.8rem);
  }
  .art-pullquote {
    margin-inline: 0;
  }
  .art-closing-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .art-closing-cta .btn {
    justify-content: center;
  }
  .art-toc {
    display: none;
  }
  .art-body {
    padding-inline: 20px;
  }

  /* Tighten counter callout */
  .art-counter {
    padding: 20px 18px 18px;
    margin: 1.6em 0 2em;
  }
  .art-counter::after {
    top: 6px;
    left: 6px;
    width: 10px;
    height: 10px;
  }

  /* Badge simplification */
  .art-badge {
    padding: 4px 10px 4px 8px;
    gap: 8px;
  }

  /* Blockquote — tighter on mobile */
  .art-prose blockquote {
    font-size: 1.15em;
    padding-left: 1.2em;
  }
  .art-prose blockquote::before {
    font-size: 2.6em;
    left: -0.45em;
  }

  /* Drop cap slightly smaller */
  .art-prose > p:first-of-type::first-letter {
    font-size: 3.6em;
  }

  /* Section number */
  .art-section-num {
    font-size: 11px;
    padding: 2px 8px;
  }

  /* Related/closing spacing */
  .art-related,
  .art-closing {
    padding-block: clamp(48px, 7vw, 72px);
  }
}


/* ═══════════════════════════════════════════════════════════
   18. REDUCED MOTION
   ═══════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .art-progress {
    transition: none;
  }
  .art-badge__dot {
    animation: none;
  }
  .art-toc__item a {
    transition: none;
  }
  .art-tag {
    transition: none;
  }
  .art-prose a {
    transition: none;
  }
}


/* ═══════════════════════════════════════════════════════════
   19. TL;DR SUMMARY BOX
   ═══════════════════════════════════════════════════════════ */
.art-tldr {
  border: 1px solid oklch(0.460 0.180 258 / 0.35);
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: oklch(0.460 0.180 258 / 0.06);
  padding: 1.25rem 1.5rem;
  margin-block: 2rem;
}

.art-tldr__label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.75rem;
}

.art-tldr ul {
  margin: 0;
  padding-left: 1.25rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.art-tldr ul li {
  position: relative;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--fg);
  padding-left: 0;
}

.art-tldr ul li::before {
  content: "→";
  position: absolute;
  left: -1.25rem;
  color: var(--accent);
  font-weight: 500;
}

html.dark .art-tldr {
  background: oklch(0.460 0.180 258 / 0.10);
  border-color: oklch(0.460 0.180 258 / 0.40);
}


/* ═══════════════════════════════════════════════════════════
   20. SOURCES & FURTHER READING — in-prose reference list
   ═══════════════════════════════════════════════════════════ */
.art-sources {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.art-sources__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin: 0 0 18px 0;
}
.art-sources__list {
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--ink-mute);
  padding-left: 1.5rem;
  margin: 0;
  list-style: decimal;
}
.art-sources__list li {
  margin-bottom: 10px;
  padding-left: 4px;
}
.art-sources__list li::marker {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
}
.art-sources__list a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in oklch, var(--ink) 35%, transparent);
  transition: text-decoration-color 0.2s;
}
.art-sources__list a:hover {
  text-decoration-color: var(--accent);
}


/* ═══════════════════════════════════════════════════════════
   21. AUTHOR BIO CARD — between related posts and closing CTA
   ═══════════════════════════════════════════════════════════ */
.art-author {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--rule);
  background: var(--paper);
}
.art-author__label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.art-author__label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.6;
}
.art-author__grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  max-width: 920px;
}
.art-author__portrait {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}
.art-author__portrait img {
  width: 200px;
  height: 200px;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
  border: 1px solid var(--rule);
  background: var(--paper-deeper);
  display: block;
  filter: grayscale(100%) contrast(1.02);
  transition: filter 400ms ease;
}
.art-author__portrait img:hover {
  filter: grayscale(0%) contrast(1);
}
.art-author__name {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: normal;
  font-size: clamp(1.8rem, 2.5vw + 0.5rem, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 8px 0;
  color: var(--ink);
}
.art-author__role {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-top: 4px;
  margin-bottom: 20px;
}
.art-author__bio p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 14px 0;
}
.art-author__bio p em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--ink);
}
.art-author__bio a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: color-mix(in oklch, var(--accent) 50%, transparent);
}
.art-author__bio a:hover {
  text-decoration-color: var(--accent);
}
.art-author__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.art-author__link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.art-author__link:hover {
  color: var(--accent);
}
.art-author__link--linkedin svg {
  color: var(--ink-mute);
  transition: color 0.2s;
}
.art-author__link--linkedin:hover svg {
  color: var(--accent);
}
@media (max-width: 680px) {
  .art-author__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .art-author__portrait img {
    width: 140px;
    height: 140px;
  }
}
html.dark .art-author {
  background: var(--paper-deeper);
}


/* ═══════════════════════════════════════════════════════════
   22. IN-PROSE TABLES — editorial comparative data
   ═══════════════════════════════════════════════════════════ */
.art-table-wrap {
  margin: clamp(28px, 4vw, 44px) 0;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 3px;
  background: var(--paper);
}
.art-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}
.art-table caption {
  caption-side: top;
  text-align: left;
  padding: 14px 18px 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  border-bottom: 1px solid var(--rule);
  background: var(--paper-deeper);
}
.art-table thead th {
  padding: 14px 18px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.art-table thead th:first-child {
  color: var(--ink-mute);
}
.art-table tbody th {
  padding: 14px 18px;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper-deeper);
  width: 160px;
  border-right: 1px solid var(--rule);
}
.art-table tbody td {
  padding: 14px 18px;
  border-top: 1px solid var(--rule);
  vertical-align: top;
}
.art-table tbody tr:first-child td,
.art-table tbody tr:first-child th {
  border-top: none;
}
.art-table tbody tr:hover {
  background: color-mix(in oklch, var(--accent) 4%, transparent);
}
@media (max-width: 640px) {
  .art-table {
    font-size: 0.86rem;
  }
  .art-table tbody th,
  .art-table tbody td,
  .art-table thead th {
    padding: 10px 12px;
  }
  .art-table tbody th {
    width: 110px;
  }
}
html.dark .art-table thead th {
  background: var(--paper-deeper);
}
html.dark .art-table tbody tr:hover {
  background: color-mix(in oklch, var(--accent) 8%, transparent);
}


/* ═══════════════════════════════════════════════════════════
   23. ART-EYEBROW — small mono cross-reference line in prose
   ═══════════════════════════════════════════════════════════ */
.art-prose .art-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--ink-mute);
  margin-top: 12px;
  margin-bottom: 28px;
  padding-top: 10px;
  border-top: 1px dashed var(--rule);
}
.art-prose .art-eyebrow a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: color-mix(in oklch, var(--accent) 50%, transparent);
  text-underline-offset: 2px;
}
.art-prose .art-eyebrow a:hover {
  color: var(--accent);
}
