/* =============================================================================
   InAI Capital · Report Template Component Styles
   -----------------------------------------------------------------------------
   Component-level CSS for research / framework / atlas / wiki reports.
   Uses design tokens from report-tokens.css — include tokens FIRST.
   -----------------------------------------------------------------------------
   Component inventory (12):
     01 nav       .top-nav
     02 hero      .hero + .hero__eyebrow + .hero__lede + .hero__meta
     03 sticky    .section-nav
     04 body      .article (h2/h3/p/strong/em/a/ul/ol/code + section-header)
     05 kpi       .kpi-grid + .kpi-box
     06 callout   .callout (+ --info / --warn / --quote)
     07 table     .data-table
     08 form      .module-card + .field + .btn + .preset-chips
     09 chart     .chart-wrapper + .chart-legend
     10 chain     .chain-grid + .chain-card + heroicons svg
     11 paywall   .paywall
     12 footer    .article-footer

   Approved: 2026-07-14 (mockup review)
   ============================================================================= */

/* -----------------------------------------------------------------------------
   Baseline
   ----------------------------------------------------------------------------- */
.report-body * { box-sizing: border-box; }
.report-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-feature-settings: 'ss01', 'cv11';
  background: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}
.report-body code, .report-body pre, .report-body .mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

/* Grid background + orbs (article aesthetic) */
.grid-bg {
  position: relative;
  background-image:
    linear-gradient(rgba(168,85,247,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(168,85,247,.05) 1px, transparent 1px);
  background-size: 60px 60px;
}
.orb {
  position: absolute;
  width: 720px; height: 720px;
  border-radius: 9999px;
  filter: blur(140px);
  pointer-events: none;
  opacity: .35;
}
.orb-a { top: -12%; left: -8%; background: radial-gradient(circle, rgba(168,85,247,.45), transparent 65%); }
.orb-b { top: 30%; right: -10%; background: radial-gradient(circle, rgba(34,211,238,.20), transparent 65%); opacity: .25; }

/* -----------------------------------------------------------------------------
   01 · Top nav
   ----------------------------------------------------------------------------- */
.top-nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(8,6,15,.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-soft);
}
.top-nav__inner {
  max-width: 88rem; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
}
.top-nav__brand { display: inline-flex; align-items: center; text-decoration: none; }
.top-nav__brand img { height: 16px; width: auto; display: block; }
.top-nav__brand:hover img { opacity: .8; transition: opacity .2s; }
.top-nav__links { display: flex; gap: 2rem; }
.top-nav__link {
  color: var(--text-muted); text-decoration: none;
  font-size: .875rem; font-weight: 600;
  transition: color .2s;
}
.top-nav__link:hover { color: var(--text-primary); }
.top-nav__cta {
  display: inline-flex; align-items: center;
  padding: .5rem 1rem;
  background: var(--accent-violet);
  color: white; text-decoration: none;
  border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 700;
  transition: background .2s;
}
.top-nav__cta:hover { background: #b968f9; }

/* 语言切换与次要导航项 —— 与主站 header 的信息架构对齐。
   文章页不加载 Tailwind，导航靠这套手写样式，改这里 15 篇同时生效。 */
.top-nav__lang { display: inline-flex; align-items: center; gap: .5rem; margin-left: 1.25rem; }
.top-nav__lang-sep { color: rgba(255,255,255,.15); }
.top-nav__lang-on { font-size: .75rem; font-weight: 700; color: var(--accent-violet); }
.top-nav__lang-off {
  font-size: .75rem; font-weight: 500; color: var(--text-muted);
  text-decoration: none; transition: color .2s;
}
.top-nav__lang-off:hover { color: var(--text-primary); }
.top-nav__right { display: inline-flex; align-items: center; }
@media (max-width: 900px) {
  .top-nav__links { gap: 1.15rem; }
  .top-nav__link--minor { display: none; }   /* 窄屏只保留主路径 */
  .top-nav__lang { margin-left: .75rem; }
}


/* -----------------------------------------------------------------------------
   02 · Hero
   ----------------------------------------------------------------------------- */
.hero {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
  text-align: left;
}
.hero__eyebrow {
  display: inline-block;
  padding: .4rem 1rem;
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  font-size: .75rem; font-weight: 700;
  color: var(--accent-violet);
  letter-spacing: .05em;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
}
.hero h1 {
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.025em;
  margin: 0 0 1.25rem;
  background: linear-gradient(135deg, #fff 20%, #c084fc 80%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-body);
  line-height: 1.55;
  max-width: 42rem;
  margin: 0 0 2rem;
}
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.5rem 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-soft);
  font-size: .875rem;
  color: var(--text-muted);
}
.hero__meta strong { color: var(--text-primary); font-weight: 600; margin-right: .5rem; }

/* -----------------------------------------------------------------------------
   03 · Sticky section nav
   ----------------------------------------------------------------------------- */
/* Sticky in-report section nav. At rest (page top) the bordered horizontal
   line was rendering as a full-width divider across the screen — too loud.
   Drop the hard border; rely on backdrop-blur + semi-transparent bg to
   create the boundary when the nav floats over article content mid-scroll. */
.section-nav {
  position: sticky; top: 61px; z-index: 50;
  background: rgba(8,6,15,.85);
  backdrop-filter: blur(20px);
  margin-bottom: 3rem;
}
.section-nav__inner {
  max-width: 56rem; margin: 0 auto;
  display: flex; gap: 1.5rem;
  padding: .875rem 1.5rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.section-nav__inner::-webkit-scrollbar { display: none; }
.section-nav__link {
  color: var(--text-muted); text-decoration: none;
  font-size: .8125rem; font-weight: 600;
  white-space: nowrap;
  padding: .25rem 0;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.section-nav__link:hover { color: var(--text-primary); }
.section-nav__link.active { color: var(--accent-violet); border-bottom-color: var(--accent-violet); }

/* -----------------------------------------------------------------------------
   04 · Article body
   ----------------------------------------------------------------------------- */
.article {
  max-width: 56rem;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}
.article h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -.02em;
  margin: 3.5rem 0 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border-medium);
}
.article h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 2.5rem 0 .75rem;
}
.article h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 1.75rem 0 .625rem;
  letter-spacing: -.01em;
}
.article p {
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--text-body);
  margin: 0 0 1.25rem;
}
.article strong { color: var(--text-primary); font-weight: 600; }
.article em { color: var(--text-body); font-style: italic; }
.article a {
  color: var(--accent-violet);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(168,85,247,.4);
  transition: text-decoration-color .2s;
}
.article a:hover { text-decoration-color: var(--accent-violet); }
/* Lists: Tailwind's base reset strips list-style. Re-declare so bullets and
   numbers show — critical for Insight 1/2/3 and any bulleted list in the
   migrated MD which otherwise renders as prefix-less indented text. */
.article ul { list-style: disc;    margin: 0 0 1.25rem; padding-left: 1.5rem; color: var(--text-body); font-size: 1.0625rem; line-height: 1.75; }
.article ol { list-style: decimal; margin: 0 0 1.25rem; padding-left: 1.5rem; color: var(--text-body); font-size: 1.0625rem; line-height: 1.75; }
.article li { margin-bottom: .5rem; }
.article code {
  background: var(--bg-input);
  color: var(--accent-cyan);
  padding: .1rem .375rem;
  border-radius: 4px;
  font-size: .875em;
}

/* Plain <table> in the article body (no .data-table class). Used heavily by
   migrated research reports (e.g. Per-Layer Pipeline Steps, Storage Formula,
   Comparison tables). Matches .data-table visually so unclassed tables don't
   render as raw text. */
.article table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  font-size: .9rem;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.article table thead th {
  background: var(--accent-violet-soft);
  color: var(--accent-violet);
  font-weight: 700;
  padding: .875rem 1rem;
  text-align: left;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border-medium);
  white-space: nowrap;
}
.article table tbody td {
  padding: .75rem 1rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
  font-size: .875rem;
}
.article table tbody tr:last-child td { border-bottom: none; }
.article table tbody tr:hover td { background: var(--accent-violet-soft); color: var(--text-primary); }

/* Nested-frame rule — when a table (or chart-wrapper) sits INSIDE another
   framed container (.callout, .module-card, .chain-card, .tab-content, or
   any bordered card in the migrated MD), strip its own outer border so the
   composition doesn't render as "box inside a box inside a box." The inner
   element keeps its INTERNAL structure (header bg, row dividers) but loses
   the redundant outer frame. */
.callout table,
.module-card table,
.chain-card table,
.tab-content table,
.article table table,
.article [class*="bg-"] table { border: none; }

.callout .chart-wrapper,
.module-card .chart-wrapper,
.tab-content .chart-wrapper,
.article [class*="bg-"] .chart-wrapper { border: none; box-shadow: none; }

/* Chapter section header (atlas Part I / II bookmark) */
.section-header {
  text-align: center;
  padding: 3rem 0 1.5rem;
}
.section-header__label {
  display: inline-block;
  padding: .375rem 1rem;
  background: var(--accent-violet-soft);
  color: var(--accent-violet);
  border-radius: 999px;
  font-size: .75rem; font-weight: 700;
  letter-spacing: .05em;
  margin-bottom: 1.25rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.025em;
  border: none; padding: 0; margin: 0 0 .75rem;
}
.section-header p {
  color: var(--text-muted);
  max-width: 40rem;
  margin: 0 auto;
  font-size: 1rem;
}

/* -----------------------------------------------------------------------------
   05 · KPI grid
   ----------------------------------------------------------------------------- */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.kpi-box {
  padding: 1.5rem 1.25rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-md);
  text-align: left;
  transition: all .25s;
}
.kpi-box:hover { border-color: var(--border-strong); background: var(--bg-elevated-hover); box-shadow: var(--shadow-card); }
.kpi-box__label {
  font-size: .7rem; font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: .5rem;
}
.kpi-box__value {
  font-size: 1.625rem; font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -.03em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.kpi-box__delta {
  display: inline-block;
  margin-top: .5rem;
  padding: .1rem .5rem;
  font-size: .75rem; font-weight: 600;
  border-radius: 4px;
}
.kpi-box__delta.win { background: rgba(16,185,129,.15); color: var(--accent-emerald); }
.kpi-box__delta.loss { background: rgba(248,113,113,.15); color: var(--accent-rose); }

/* -----------------------------------------------------------------------------
   06 · Callouts
   ----------------------------------------------------------------------------- */
.callout {
  margin: 2rem 0;
  padding: 1.5rem 1.5rem 1.5rem 1.75rem;
  background: var(--accent-violet-soft);
  border-left: 3px solid var(--accent-violet);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.callout__label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  color: var(--accent-violet);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: .5rem;
}
/* Callout paragraphs: keep spacing between multiple <p>, zero the last one
   so the callout doesn't have dead space at the bottom. Fixes the tab
   content in themes 1-5 where consecutive <p> were collapsing without a gap. */
.callout p { margin: 0 0 1rem; font-size: 1rem; color: var(--text-body); }
.callout > p:last-child,
.callout > ul:last-child,
.callout > ol:last-child { margin-bottom: 0; }
.callout > *:last-child p:last-child { margin-bottom: 0; }
.callout--info { background: rgba(34,211,238,.06); border-left-color: var(--accent-cyan); }
.callout--info .callout__label { color: var(--accent-cyan); }
.callout--warn { background: rgba(251,191,36,.06); border-left-color: var(--accent-amber); }
.callout--warn .callout__label { color: var(--accent-amber); }
.callout--quote {
  background: rgba(255,255,255,.02);
  border-left-color: var(--text-muted);
  font-style: italic;
}
.callout--quote .callout__label { color: var(--text-muted); font-style: normal; }

/* -----------------------------------------------------------------------------
   07 · Data table
   ----------------------------------------------------------------------------- */
.data-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 2rem 0;
  font-size: .9rem;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border-soft);
}
.data-table thead th {
  background: var(--accent-violet-soft);
  color: var(--accent-violet);
  font-weight: 700;
  padding: .875rem 1rem;
  text-align: left;
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  border-bottom: 1px solid var(--border-medium);
  white-space: nowrap;
}
.data-table tbody td {
  padding: .875rem 1rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-soft);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--accent-violet-soft); color: var(--text-primary); }
.data-table .num { font-family: 'JetBrains Mono', monospace; text-align: right; font-variant-numeric: tabular-nums; }
.data-table .win  { color: var(--accent-emerald); font-weight: 600; }
.data-table .warn { color: var(--accent-amber);   font-weight: 600; }
.data-table .loss { color: var(--accent-rose);    font-weight: 600; }

/* -----------------------------------------------------------------------------
   08 · Interactive form (module-card + field + btn + presets)
   ----------------------------------------------------------------------------- */
.module-card {
  padding: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-md);
  margin: 1.5rem 0;
  transition: all .25s;
}
.module-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.module-card__title {
  font-size: .75rem; font-weight: 700;
  color: var(--accent-violet);
  text-transform: uppercase; letter-spacing: .08em;
  margin: 0 0 1rem;
}
.module-card__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: .875rem;
}
.field label {
  display: block;
  font-size: .75rem; font-weight: 500;
  color: var(--text-muted);
  margin-bottom: .375rem;
}
.field input {
  width: 100%;
  padding: .55rem .75rem;
  background: var(--bg-input);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-sm);
  color: var(--text-primary);
  font-size: .9375rem; font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  font-variant-numeric: tabular-nums;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(168,85,247,.2);
}

/* Button — selectors include element name so they beat .article a specificity */
.btn, a.btn, button.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .625rem 1.25rem;
  background: var(--accent-violet);
  color: white;
  border: none;
  border-radius: var(--r-sm);
  font-size: .875rem; font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, transform .15s;
}
.btn:hover, a.btn:hover { background: #b968f9; color: white; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--ghost, a.btn--ghost {
  background: var(--bg-elevated);
  color: var(--text-body);
  border: 1px solid var(--border-medium);
}
.btn--ghost:hover, a.btn--ghost:hover { background: var(--bg-elevated-hover); color: var(--text-primary); border-color: var(--border-strong); }

.btn-group { display: inline-flex; gap: .375rem; flex-wrap: wrap; margin-top: 1rem; }
.btn-group .btn { padding: .4rem .875rem; font-size: .8125rem; }

.preset-chips {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-top: 1rem;
}
.preset-chip {
  padding: .4rem .875rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-body);
  border-radius: 999px;
  font-size: .8125rem; font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.preset-chip:hover { border-color: var(--border-strong); color: var(--text-primary); }
.preset-chip.active { background: var(--accent-violet); color: white; border-color: var(--accent-violet); }

/* -----------------------------------------------------------------------------
   Calculator KPI cell — grid item that hosts a small label + a big numeric
   output that updates live from an interactive control. Used anywhere a
   slider / dropdown drives a set of derived numbers.

   Layout: flex column with `justify-content: space-between` + a fixed
   `min-height` so labels of different lengths (e.g. "Tokens/sec" 1-line vs
   "Per-Layer Latency" 2-line) still leave the value pinned to the SAME
   baseline across every card in the row — no more jagged bottom edge.

   Values use tabular-num digits + semantic color modifiers so which quantity
   is which reads at a glance without hunting through labels.
   ----------------------------------------------------------------------------- */
.calc-kpi {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  min-height: 6rem;
  padding: 1rem .75rem;
  background: rgba(0,0,0,.4);
  border: 1px solid var(--border-medium);
  border-radius: var(--r-md);
  text-align: center;
}
.calc-kpi__label {
  font-size: .7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0;
  line-height: 1.35;
}
.calc-kpi__value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  margin: 0;
  line-height: 1;
  color: var(--accent-violet);          /* default violet */
}
.calc-kpi__value.violet  { color: #c084fc; }
.calc-kpi__value.cyan    { color: #22d3ee; }
.calc-kpi__value.emerald { color: #34d399; }
.calc-kpi__value.amber   { color: #fbbf24; }
.calc-kpi__value.rose    { color: #f87171; }
.calc-kpi__value--sm     { font-size: 1.25rem; }  /* for text-content values (e.g. "Memory-Bound") */

/* -----------------------------------------------------------------------------
   Tab buttons — restored to the ORIGINAL static-site style per user feedback.
   Simple indigo pill for active; muted charcoal for idle; darker gray hover.
   ----------------------------------------------------------------------------- */
.tab-btn {
  padding: .5rem 1rem;
  font-size: .875rem;
  font-weight: 600;
  border-radius: .5rem;
  cursor: pointer;
  transition: all .2s;
  border: 1px solid transparent;
  user-select: none;
}
.tab-btn.active {
  background: #4f46e5;
  color: white;
  border-color: #4f46e5;
}
.tab-btn:not(.active) {
  background: rgba(255,255,255,.05);
  color: rgba(255,255,255,.4);
}
.tab-btn:not(.active):hover {
  background: #374151;
  color: rgba(255,255,255,.85);
}

/* Tab content — original static style: just visibility toggle, no container
   decoration. Content sits directly in the .article context and picks up
   the standard typography (paragraphs, bullets, tables) without extra
   framing. User feedback: the earlier padded/bordered container felt
   over-designed compared to the original. */
.tab-content { display: none; margin-top: 1.25rem; }
.tab-content.active { display: block; }
.tab-content > h3:first-child,
.tab-content > h3.mt-0 { margin-top: 0; padding-top: 0; }
.tab-content > p:last-child,
.tab-content > ul:last-child,
.tab-content > ol:last-child { margin-bottom: 0; }

/* -----------------------------------------------------------------------------
   Tailwind text-color utility overrides inside .article
   ----- WHY THIS EXISTS -----
   .article p { color: var(--text-body); } beats plain .text-violet-400
   (0,1,1 vs 0,1,0), so utility text colors on <p> tags in migrated MD
   render as body-gray, not the intended accent. Re-declare the common
   colors with .article p.text-XXX (0,2,1) so utilities work as expected.
   Applies to any report using Tailwind text-* classes inside .article.
   ----------------------------------------------------------------------------- */
.article p.text-violet-400 { color: #c084fc; }
.article p.text-violet-300 { color: #d8b4fe; }
.article p.text-purple-400 { color: #c084fc; }
.article p.text-amber-400  { color: #fbbf24; }
.article p.text-green-400  { color: #4ade80; }
.article p.text-emerald-400{ color: #34d399; }
.article p.text-red-400    { color: #f87171; }
.article p.text-rose-400   { color: #fb7185; }
.article p.text-cyan-400   { color: #22d3ee; }
.article p.text-yellow-400 { color: #facc15; }
.article p.text-white      { color: rgba(255,255,255,.95); }
.article p.text-white\/50  { color: rgba(255,255,255,.5); }
.article p.text-white\/40  { color: rgba(255,255,255,.4); }
.article p.text-white\/30  { color: rgba(255,255,255,.3); }
.article p.text-white\/70  { color: rgba(255,255,255,.7); }

/* Same for <li> */
.article li.text-red-400   { color: #f87171; }
.article li.text-green-400 { color: #4ade80; }
.article li.text-amber-400 { color: #fbbf24; }

/* -----------------------------------------------------------------------------
   Tailwind text-SIZE utility overrides inside .article
   ----- WHY THIS EXISTS -----
   Same specificity story as the colour overrides above.
   .article p { font-size: 1.0625rem; } (0,1,1) beats .text-2xl (0,1,0).
   Migrated interactive-calculator KPI cards use `text-xs` on the label
   and `text-2xl` on the value — without these overrides, labels render
   at ~17px (too wide, wraps to 2 lines, breaks the KPI card row
   alignment) and values render at ~17px (way smaller than intended,
   loses prominence).
   Enumerate the common Tailwind sizes so utility classes work as
   expected across every migrated report.
   ----------------------------------------------------------------------------- */
.article p.text-xs   { font-size: .75rem;  line-height: 1.4; }
.article p.text-sm   { font-size: .875rem; line-height: 1.5; }
.article p.text-base { font-size: 1rem;    line-height: 1.6; }
.article p.text-lg   { font-size: 1.125rem;line-height: 1.55; }
.article p.text-xl   { font-size: 1.25rem; line-height: 1.5; }
.article p.text-2xl  { font-size: 1.5rem;  line-height: 1.2; }
.article p.text-3xl  { font-size: 1.875rem;line-height: 1.15; }
.article p.text-4xl  { font-size: 2.25rem; line-height: 1.1; }

/* Font weights — .article strong sets weight 600 but leaves plain <p> at
   inherited weight. Explicit utility overrides so text-2xl font-bold etc
   render as intended. */
.article p.font-normal    { font-weight: 400; }
.article p.font-medium    { font-weight: 500; }
.article p.font-semibold  { font-weight: 600; }
.article p.font-bold      { font-weight: 700; }
.article p.font-extrabold { font-weight: 800; }

/* Tabular numbers for KPI values — makes columns line up under sliders */
.article p.text-2xl,
.article p.text-3xl,
.article p.text-4xl { font-variant-numeric: tabular-nums; letter-spacing: -.02em; }

/* -----------------------------------------------------------------------------
   Blockquote — used for "conclusion after reasoning" moments. Distinct
   left-border + soft violet fill so readers know a synthesis is coming.
   ----------------------------------------------------------------------------- */
.article blockquote {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem 1.25rem 1.75rem;
  background: rgba(168,85,247,.06);
  border-left: 3px solid var(--accent-violet);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  color: var(--text-body);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.7;
}
.article blockquote strong { color: var(--text-primary); font-style: normal; }

/* -----------------------------------------------------------------------------
   09 · Chart wrappers (canvas + svg)
   ----------------------------------------------------------------------------- */
.chart-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--bg-input);
  border: 1px solid rgba(168,85,247,.35);   /* stronger than --border-medium so the frame reads on a dark page */
  border-radius: var(--r-md);
  overflow: hidden;
  margin: 1.5rem 0;
  padding: .5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.chart-wrapper canvas, .chart-wrapper svg { display: block; width: 100%; height: 100%; }
.chart-legend {
  display: flex; flex-wrap: wrap; gap: 1rem;
  padding: .875rem 1.25rem;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-elevated);
  font-size: .8125rem; color: var(--text-muted);
}
.chart-legend__item { display: inline-flex; align-items: center; gap: .375rem; }
.chart-legend__swatch { width: .625rem; height: .625rem; border-radius: 2px; }

/* -----------------------------------------------------------------------------
   10 · Chain cards (atlas-style with Heroicons)
   ----------------------------------------------------------------------------- */
.chain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}
.chain-card {
  padding: 1.75rem 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  border-top: 3px solid var(--accent-violet);
  border-radius: var(--r-md);
  transition: all .25s;
}
.chain-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lifted); border-color: var(--border-strong); }
.chain-card.signal   { border-top-color: var(--accent-cyan); }
.chain-card.energy   { border-top-color: var(--accent-amber); }
.chain-card.actuator { border-top-color: var(--accent-emerald); }

.chain-card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem;
  border-radius: var(--r-sm);
  background: var(--accent-violet-soft);
  color: var(--accent-violet);
  margin-bottom: 1rem;
}
.chain-card__icon svg { width: 1.5rem; height: 1.5rem; stroke-width: 1.5; }
.chain-card.signal   .chain-card__icon { background: rgba(34,211,238,.12);  color: var(--accent-cyan); }
.chain-card.energy   .chain-card__icon { background: rgba(251,191,36,.12);  color: var(--accent-amber); }
.chain-card.actuator .chain-card__icon { background: rgba(16,185,129,.12);  color: var(--accent-emerald); }

.chain-card__title    { font-size: 1.125rem; font-weight: 700; color: var(--text-primary); margin: 0 0 .125rem; letter-spacing: -.01em; }
.chain-card__subtitle { font-size: .8125rem; font-weight: 500; color: var(--text-muted);   margin: 0 0 .875rem; }
.chain-card__flow {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: .75rem; color: var(--accent-violet);
  padding: .25rem .625rem;
  background: var(--accent-violet-soft);
  border-radius: 4px;
  margin-bottom: 1rem;
}
.chain-card__desc { font-size: .9rem; color: var(--text-muted); line-height: 1.6; margin: 0 0 1rem; }
.chain-card__tags { display: flex; flex-wrap: wrap; gap: .375rem; }
.chain-card__tag {
  padding: .2rem .5rem;
  background: var(--bg-input);
  color: var(--text-muted);
  font-size: .75rem; font-weight: 500;
  border-radius: 4px;
  font-family: 'JetBrains Mono', monospace;
}

/* -----------------------------------------------------------------------------
   11 · Paywall block
   ----------------------------------------------------------------------------- */
.paywall {
  position: relative;
  margin-top: 3rem;
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(168,85,247,.10) 0%, rgba(8,6,15,1) 100%);
  border-radius: var(--r-lg);
}
.paywall__fade {
  position: absolute; left: 0; right: 0;
  top: -8rem; height: 7rem;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, var(--bg-page) 100%);
}
.paywall__eyebrow {
  font-size: .75rem; font-weight: 700;
  color: var(--accent-violet);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: .75rem;
}
.paywall h2 { font-size: 1.75rem; font-weight: 800; color: var(--text-primary); margin: 0 0 .75rem; border: none; padding: 0; letter-spacing: -.02em; }
.paywall p  { color: var(--text-body); max-width: 36rem; margin: 0 0 1.5rem; }
.paywall__actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* -----------------------------------------------------------------------------
   12 · Article footer (bottom back link)
   ----------------------------------------------------------------------------- */
.article-footer {
  max-width: 56rem;
  margin: 4rem auto 3rem;
  padding: 2rem 1.5rem;
  border-top: 1px solid var(--border-soft);
  text-align: center;
}
.article-footer a { color: var(--accent-violet); font-weight: 600; text-decoration: none; }
.article-footer a:hover { color: #d8b4fe; }
