/* The blog's layout. Colours, radii, shadows and type come from tokens.css, which
   scripts/sync-design-tokens.mjs generates from the design system; do not add a palette here. */
@font-face {
  font-family: "Satoshi";
  src: url("/fonts/satoshi/Satoshi-Variable.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root { --wrap: 1180px; --measure: 690px; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font-sans); color: var(--ink); background: var(--surface);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
/* Tabular figures only where numbers line up; prose keeps proportional ones. */
table, .bar em, .cc-bar em { font-feature-settings: "tnum" 1; }
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-xs); }
.skip { position: absolute; left: 16px; top: -60px; z-index: 40; padding: 10px 16px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ── nav ─────────────────────────────────────────────── */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 30; }
.progress span { display: block; height: 100%; width: 0; background: var(--accent); }
.nav { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / 0.86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.nav-in { display: flex; align-items: center; gap: 36px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; text-decoration: none; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; gap: 28px; font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.nav-links a { text-decoration: none; padding: 6px 0; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 15px; font-weight: 500; }
.nav-cta .link { text-decoration: none; color: var(--ink-soft); }
.nav-cta .link:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap-min); padding: 0 20px; border-radius: var(--r-sm); border: 1px solid transparent;
  font: 600 15px/1 var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast);
}
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn-primary { background: var(--accent); color: var(--accent-on); box-shadow: var(--sh-grad); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--accent-ink); }
.btn-white:hover { transform: translateY(-1px); }
.btn-ghost-white { background: rgb(255 255 255 / .12); color: #fff; border-color: rgb(255 255 255 / .38); }
.btn-ghost-white:hover { background: rgb(255 255 255 / .2); }

/* ── article header ──────────────────────────────────── */
.hero { position: relative; background: var(--bg); padding: 64px 0 0; overflow: hidden; }
.hero::before, .ix-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgb(31 56 112 / .11) 1px, transparent 0);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 80%);
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 170px; background: var(--surface); }
.hero-in { position: relative; z-index: 1; }
.hero-in > * { max-width: 880px; }
.crumbs { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; color: var(--ink-faint); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs .here { color: var(--accent-onwhite); }
.crumbs .sep { color: var(--border-strong); }
.hero h1 { margin: 18px 0 0; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.04; font-weight: 700; letter-spacing: -0.032em; text-wrap: balance; }
.dek { margin: 22px 0 0; max-width: 700px; font-size: 21px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.byline { display: flex; align-items: center; gap: 12px; margin-top: 28px; font-size: 15px; }
.byline .mark { width: 40px; height: 40px; border-radius: 12px; box-shadow: var(--sh-flat); }
.byline b { display: block; font-weight: 600; }
.byline .meta { color: var(--ink-faint); font-size: 14px; }

/* ── cover: the post's key number, drawn from its own data ── */
.cover {
  position: relative; z-index: 1; margin: 44px 0 0; border-radius: var(--r-lg); overflow: hidden;
  background: var(--grad); color: #fff; box-shadow: var(--sh-pop);
  display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 40px;
  padding: 52px 60px; min-height: 360px;
}
.cover::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 300px at 88% -10%, rgb(255 255 255 / .22), transparent 60%),
    radial-gradient(500px 260px at -5% 120%, rgb(0 10 60 / .28), transparent 60%);
}
.cover > * { position: relative; }
.cover-big { font-size: 168px; line-height: .86; font-weight: 700; letter-spacing: -0.05em; }
.cover-cap { margin-top: 18px; font-size: 18px; line-height: 1.45; max-width: 330px; color: rgb(255 255 255 / .9); }
.cover-chart { display: grid; gap: 16px; }
.cc-row { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; color: rgb(255 255 255 / .85); }
.cc-bars { display: grid; gap: 5px; }
.cc-bar { position: relative; height: 14px; border-radius: 4px; }
.cc-bar em { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); font-style: normal; font-size: 11.5px; font-weight: 700; white-space: nowrap; color: rgb(255 255 255 / .9); }
.cc-even { border: 1.5px dashed rgb(255 255 255 / .6); }
.cc-even em { color: rgb(255 255 255 / .75); }
.cc-mid { background: #fff; }
.cc-legend { display: flex; gap: 20px; font-size: 12px; font-weight: 600; color: rgb(255 255 255 / .85); margin-bottom: 4px; }
.cc-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.cc-legend .k-even { border: 1.5px dashed rgb(255 255 255 / .7); }
.cc-legend .k-mid { background: #fff; }

/* ── body layout ─────────────────────────────────────── */
.layout { display: grid; grid-template-columns: minmax(0, var(--measure)) 260px; justify-content: space-between; gap: 64px; padding: 56px 0 24px; }
.rail-in { position: sticky; top: 96px; display: grid; gap: 20px; }
.toc { font-size: 14px; }
.toc h2 { margin: 0 0 12px; font-size: 12px; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; text-decoration: none; color: var(--ink-soft); line-height: 1.35; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--accent-onwhite); border-left-color: var(--accent); font-weight: 600; }
.rail-card { border-radius: var(--r); padding: 20px; background: var(--surface-soft); border: 1px solid var(--border); }
.rail-card b { display: block; font-size: 16px; line-height: 1.3; }
.rail-card p { margin: 8px 0 14px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.rail-card .btn { width: 100%; }
.rail-card small { display: block; margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--ink-faint); }
.toc-mobile { display: none; }

/* ── prose ───────────────────────────────────────────── */
.prose { font-size: 18.5px; line-height: 1.72; color: var(--ink-muted); }
.prose > p:first-child { font-size: 21px; line-height: 1.6; color: var(--ink); }
.prose p { margin: 0 0 22px; text-wrap: pretty; }
.prose h2 { display: flex; align-items: baseline; gap: 14px; margin: 64px 0 18px; color: var(--ink); font-size: 30px; line-height: 1.18; letter-spacing: -0.022em; font-weight: 700; scroll-margin-top: 90px; }
.prose h2 .step { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-onwhite); font-size: 16px; font-weight: 700; transform: translateY(-3px); }
.prose a { color: var(--accent-onwhite); text-decoration: underline; text-decoration-color: var(--accent-line); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:hover { text-decoration-color: var(--accent); }
.prose ul { margin: 0 0 24px; padding: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin: 0 0 10px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 3px; background: var(--c3); }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-onwhite); }
.answer { margin: 8px 0 40px; padding: 30px 32px 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--sh-card); position: relative; overflow: hidden; scroll-margin-top: 90px; }
.answer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad); }
.answer h2 { all: unset; display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-onwhite); }
.answer p { margin: 10px 0 0; font-size: 18px; color: var(--ink); line-height: 1.6; }
.formula { display: flex; align-items: stretch; gap: 10px; margin: 24px 0 0; }
.term { flex: 1; border-radius: var(--r-sm); background: var(--surface-soft); border: 1px solid var(--border); padding: 12px 14px; display: grid; gap: 4px; }
.t-label { font-size: 12.5px; line-height: 1.3; color: var(--ink-faint); font-weight: 600; }
.t-val { font-size: 30px; line-height: 1; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.term.result { background: var(--accent); border-color: var(--accent); }
.term.result .t-label { color: rgb(255 255 255 / .9); }
.term.result .t-val { color: #fff; }
.op { align-self: center; font-size: 22px; font-weight: 600; color: var(--ink-faint); }
.answer .answer-note { margin-top: 18px; font-size: 15px; color: var(--ink-soft); }

/* calculator */
.calc { margin: 0 0 12px; border-radius: var(--r-lg); background: var(--bg); padding: 28px 30px; display: grid; grid-template-columns: 1fr 250px; gap: 28px; }
.calc h2 { all: unset; display: block; margin: 0 0 4px; font-size: 20px; font-weight: 700; color: var(--ink); }
.calc .sub { margin: 4px 0 18px; font-size: 15px; color: var(--ink-soft); line-height: 1.5; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label, .field .label { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.field .hint { font-size: 13px; color: var(--ink-faint); line-height: 1.4; }
.field .opt { font-weight: 500; color: var(--ink-faint); }
.select, .num-input { height: var(--tap-min); border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: #fff; font: 600 16px var(--font-sans); color: var(--ink); padding: 0 12px; }
.num-input { width: 160px; }
.stepper { display: inline-grid; grid-template-columns: 44px 64px 44px; height: var(--tap-min); border: 1px solid var(--border-strong); border-radius: var(--r-sm); background: #fff; overflow: hidden; width: max-content; }
.stepper button { border: 0; background: none; font: 600 20px var(--font-sans); color: var(--accent-onwhite); cursor: pointer; }
.stepper button:hover { background: var(--accent-soft); }
.stepper output { display: grid; place-items: center; font-weight: 700; font-size: 17px; border-inline: 1px solid var(--border); }
.switch { position: relative; display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 600; cursor: pointer; min-height: var(--tap-min); }
/* The real checkbox sits over the drawn switch, so a tap on the switch is a tap on the box. */
.switch input { position: absolute; z-index: 1; left: 0; top: 50%; width: 44px; height: 26px; margin: 0; transform: translateY(-50%); opacity: 0; cursor: pointer; }
.switch .track { width: 44px; height: 26px; border-radius: 99px; background: var(--border-strong); position: relative; transition: background var(--t-fast); flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .2); transition: transform var(--t-med) var(--ease); }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { box-shadow: var(--focus); }
.calc-out { border-radius: var(--r); background: var(--surface); box-shadow: var(--sh-card); padding: 22px; display: flex; flex-direction: column; gap: 4px; align-self: start; }
.calc-out .eyebrow { margin-bottom: 6px; }
.big-out { font-size: 54px; line-height: 1; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); }
.big-out small { font-size: 16px; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); margin-left: 4px; }
.out-line { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.out-line b { display: block; color: var(--ink); font-size: 16px; }
.out-line.warn b { color: var(--accent-onwhite); }
.prose .calc-foot { font-size: 13px; color: var(--ink-faint); margin: 0 0 28px; }

/* stat callout */
.stat { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin: 30px 0; padding: 24px 28px; border-radius: var(--r-lg); background: linear-gradient(135deg, var(--accent-soft), transparent 70%), var(--surface-soft); border: 1px solid var(--accent-line); }
.stat-num { font-size: 64px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--accent-onwhite); }
.prose .stat p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.stat small { display: block; margin-top: 6px; font-size: 13px; color: var(--ink-faint); }

/* charts */
.figure { margin: 30px 0 34px; padding: 26px 28px 22px; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); box-shadow: var(--sh-flat); }
.fig-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 18px; }
.fig-title { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.fig-sub { font-size: 14px; color: var(--ink-faint); margin-top: 2px; line-height: 1.4; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bars { display: grid; gap: 18px; }
.bar-row { display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center; }
.bar-label { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.25; }
.bar-label span { display: block; font-size: 12px; font-weight: 500; color: var(--ink-faint); }
.bar-set { display: grid; gap: 4px; }
.bar { height: 16px; border-radius: 4px; position: relative; min-width: 4px; }
.bar em { position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--ink-soft); white-space: nowrap; }
.b-even { background: repeating-linear-gradient(135deg, var(--c5) 0 6px, #fff 6px 9px); border: 1px solid var(--c4); }
.b-mid { background: var(--c2); }
.b-top { background: var(--c1); }
.fig-note { margin-top: 18px; font-size: 13px; color: var(--ink-faint); line-height: 1.5; }
.split { display: flex; height: 44px; border-radius: var(--r-sm); overflow: hidden; margin: 6px 0 12px; }
.split div { display: flex; align-items: center; padding: 0 14px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.split .s-amz { background: var(--c1); color: #fff; }
.split .s-oth { background: var(--c3); color: var(--ink); }
.split .s-none { padding: 0; background: repeating-linear-gradient(135deg, var(--bg-deep) 0 6px, #fff 6px 9px); }
.split-key { display: flex; gap: 22px; flex-wrap: wrap; font-size: 14px; color: var(--ink-soft); }
.split-key b { color: var(--ink); }

.table-wrap { overflow-x: auto; margin: 0 0 30px; border-radius: var(--r); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
caption { caption-side: bottom; padding: 10px 14px; text-align: left; font-size: 13px; color: var(--ink-faint); }
th { text-align: left; font-size: 12.5px; font-weight: 700; color: var(--ink-faint); background: var(--surface-soft); padding: 12px 14px; border-bottom: 1px solid var(--border); }
td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); color: var(--ink); }
tbody tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; }
td.hl { color: var(--accent-onwhite); font-weight: 700; }

.math { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 26px 0 30px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--ink); color: #fff; font-size: 17px; }
.math .n { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; }
.math .u { color: rgb(255 255 255 / .7); font-size: 14px; margin-left: 4px; }
.math .o { color: rgb(255 255 255 / .55); font-size: 22px; }
.math .res { margin-left: auto; padding: 8px 14px; border-radius: var(--r-sm); background: rgb(255 255 255 / .1); }

.faq { border-top: 1px solid var(--border); margin: 8px 0 30px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; font-size: 18.5px; font-weight: 650; color: var(--ink); line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-soft); border: 1px solid var(--border); color: var(--accent-onwhite); font-size: 20px; font-weight: 500; }
.faq details[open] summary::after { content: "\2013"; }
.faq h3 { all: unset; }
.prose .faq details p { margin: -4px 0 22px; }

.data-panel { margin: 22px 0 10px; padding: 26px 28px; border-radius: var(--r-lg); background: var(--surface-soft); border: 1px solid var(--border); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.tile { background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); padding: 14px; }
.tile b { display: block; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.tile span { font-size: 12.5px; color: var(--ink-faint); line-height: 1.35; display: block; margin-top: 4px; }
.prose .data-panel p { font-size: 15.5px; line-height: 1.65; margin: 0 0 12px; }
.prose .data-panel p:last-child { margin: 0; }

/* ── end card ────────────────────────────────────────── */
.end-cta { padding: 40px 0 80px; }
.cta-card { position: relative; overflow: hidden; border-radius: 28px; background: var(--grad); color: #fff; padding: 60px 64px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; box-shadow: var(--sh-pop); }
.cta-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(circle at 1px 1px, rgb(255 255 255 / .16) 1px, transparent 0); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 20%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000); }
.cta-card > * { position: relative; }
.cta-card h2 { margin: 0; font-size: 44px; line-height: 1.06; letter-spacing: -0.03em; }
.cta-card p { margin: 14px 0 0; font-size: 18px; line-height: 1.55; color: rgb(255 255 255 / .9); max-width: 520px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.cta-fine { margin-top: 14px; font-size: 14px; color: rgb(255 255 255 / .85); }
.mini-eval { justify-self: end; width: 300px; border-radius: var(--r-lg); background: #fff; color: var(--ink); padding: 20px; box-shadow: 0 30px 60px -20px rgb(0 10 60 / .5); transform: rotate(1.5deg); }
.me-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; letter-spacing: .07em; color: var(--ink-faint); }
.me-big { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 4px; }
.me-big b { font-size: 46px; line-height: 1; letter-spacing: -0.03em; }
.me-big span { font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.me-cap { font-size: 13px; color: var(--ink-faint); }
.me-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.me-grid div { background: var(--surface-soft); border-radius: var(--r-sm); padding: 10px 12px; }
.me-grid small { display: block; font-size: 11.5px; color: var(--ink-faint); font-weight: 600; }
.me-grid b { font-size: 18px; }

/* ── footer ──────────────────────────────────────────── */
.foot { border-top: 1px solid var(--border); background: var(--bg); padding: 28px 0 40px; font-size: 13.5px; color: var(--ink-soft); }
.foot-in { display: flex; align-items: center; gap: 10px 22px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .brand { font-size: 14px; }
.foot .brand img { width: 22px; height: 22px; border-radius: 6px; }
.foot .push { margin-left: auto; }
.foot-fine { margin-top: 14px; font-size: 12.5px; color: var(--ink-faint); }

/* ── blog home ───────────────────────────────────────── */
.ix-hero { position: relative; background: var(--bg); padding: 76px 0 120px; overflow: hidden; }
.ix-hero .wrap { position: relative; }
.ix-hero h1 { margin: 14px 0 0; font-size: clamp(42px, 6vw, 72px); line-height: 1.02; letter-spacing: -0.035em; max-width: 800px; text-wrap: balance; }
.ix-hero p { margin: 20px 0 0; font-size: 21px; color: var(--ink-soft); max-width: 600px; line-height: 1.5; }
.ix-body { margin-top: -72px; position: relative; padding-bottom: 80px; }
.feature { display: grid; grid-template-columns: 1.08fr 1fr; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: var(--sh-pop); text-decoration: none; transition: transform var(--t-med) var(--ease); }
.feature:hover { transform: translateY(-3px); }
.feature .cover { margin: 0; border-radius: 0; box-shadow: none; min-height: 420px; grid-template-columns: 1fr; padding: 48px; gap: 26px; }
.feature .cover-big { font-size: 140px; }
.f-body { padding: 48px 48px 40px; display: flex; flex-direction: column; }
.chip { display: inline-flex; align-self: flex-start; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-onwhite); font-size: 13px; font-weight: 700; }
.f-body h2 { margin: 18px 0 0; font-size: 38px; line-height: 1.1; letter-spacing: -0.028em; color: var(--ink); text-wrap: balance; }
.f-body p { margin: 16px 0 0; font-size: 18px; line-height: 1.55; color: var(--ink-soft); }
.f-meta { margin-top: auto; padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-faint); }
.read { color: var(--accent-onwhite); font-weight: 700; font-size: 15px; }

/* ── generated posts (scripts/blog/lib.mjs) ──────────── */
.cover-solo { grid-template-columns: auto 1fr; min-height: 0; padding: 44px 56px; }
.cover-solo .cover-big { font-size: 128px; }
.cover-solo .cover-cap { margin: 0; max-width: 520px; font-size: 21px; }
.answer .takeaways { margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid var(--border); list-style: none; }
.answer .takeaways li { position: relative; padding-left: 26px; margin: 0 0 8px; font-size: 16px; line-height: 1.5; color: var(--ink); }
.answer .takeaways li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 8px; height: 8px; border-radius: 3px; background: var(--accent); }
.prose h3 { margin: 36px 0 12px; color: var(--ink); font-size: 21px; line-height: 1.3; letter-spacing: -0.01em; }
.prose ol { margin: 0 0 24px; padding-left: 26px; }
.prose ol li { margin: 0 0 10px; padding-left: 4px; }
.prose th[scope="row"] { background: none; font-size: 15px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--border-soft); }
.note { margin: 28px 0 30px; padding: 20px 24px; border-radius: var(--r); background: var(--surface-soft); border: 1px solid var(--border); border-left: 4px solid var(--accent); }
.note b { display: block; margin-bottom: 6px; color: var(--ink); font-size: 16px; }
.prose .note p { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink); }
.prose .note ul { margin: 8px 0 10px; }
.prose .note li { font-size: 16px; margin-bottom: 4px; }
.note.example { border-left-color: var(--c2); }
.sources { margin: 8px 0 10px; padding: 22px 26px; border-radius: var(--r-lg); background: var(--surface-soft); border: 1px solid var(--border); }
.prose .sources p { margin: 0 0 12px; font-size: 15px; color: var(--ink-soft); }
.prose .sources ol { margin: 0; padding-left: 22px; font-size: 15px; line-height: 1.5; }
.prose .sources li { margin: 0 0 10px; }
.sources li span { display: block; color: var(--ink-faint); font-size: 13.5px; }
.cta-solo { grid-template-columns: 1fr; }
.ix-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 22px; margin-top: 28px; }
.card { display: flex; flex-direction: column; padding: 28px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--border); box-shadow: var(--sh-card); text-decoration: none; transition: transform var(--t-med) var(--ease); }
.card:hover { transform: translateY(-3px); }
.card-big { font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: var(--accent-onwhite); margin-bottom: 16px; }
.card h2 { margin: 14px 0 0; font-size: 23px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink); text-wrap: balance; }
.card p { margin: 10px 0 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.card .f-meta { padding-top: 18px; }

/* ── responsive ──────────────────────────────────────── */
@media (max-width: 980px) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 36px; }
  .rail { display: none; }
  .toc-mobile { display: block; margin: 24px 0 0; position: relative; z-index: 1; }
  .toc-mobile summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 16px; border-radius: var(--r-sm); background: #fff; border: 1px solid var(--border); font-size: 15px; font-weight: 600; cursor: pointer; box-shadow: var(--sh-flat); }
  .toc-mobile summary::-webkit-details-marker { display: none; }
  .toc-mobile summary::after { content: "+"; color: var(--accent-onwhite); font-size: 20px; }
  .toc-mobile[open] summary::after { content: "\2013"; }
  .toc-mobile ol { list-style: none; margin: 8px 0 0; padding: 12px 16px; background: #fff; border: 1px solid var(--border); border-radius: var(--r-sm); display: grid; gap: 2px; font-size: 15px; }
  .toc-mobile a { display: block; padding: 8px 0; text-decoration: none; color: var(--ink-soft); }
  .cover { grid-template-columns: 1fr; padding: 32px 28px; gap: 26px; min-height: 0; }
  .feature, .cta-card { grid-template-columns: 1fr; }
  .cover-solo { grid-template-columns: 1fr; gap: 16px; padding: 32px 28px; }
  .mini-eval { justify-self: start; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 40px); }
  .nav-links, .nav-cta .link { display: none; }
  .nav-in { height: 58px; }
  .hero { padding-top: 34px; }
  .hero::after { height: 90px; }
  .hero h1 { font-size: 38px; }
  .dek { font-size: 18px; }
  .cover { margin-top: 28px; padding: 28px 22px; border-radius: 18px; }
  .cover-big { font-size: 108px; }
  .cover-cap { font-size: 16px; }
  .cc-row { grid-template-columns: 74px 1fr; font-size: 12px; }
  .prose { font-size: 17.5px; }
  .prose > p:first-child { font-size: 19px; }
  .prose h2 { font-size: 25px; margin-top: 52px; }
  .answer { padding: 24px 20px; }
  .formula { display: grid; grid-template-columns: 1fr auto 1fr; }
  .formula .op:nth-of-type(2) { display: none; }
  .t-val { font-size: 26px; }
  .calc { grid-template-columns: 1fr; padding: 22px 20px; }
  .stat { grid-template-columns: 1fr; gap: 8px; padding: 20px; }
  .stat-num { font-size: 52px; }
  .figure { padding: 20px 16px; }
  .fig-head { flex-direction: column; }
  .bar-row { grid-template-columns: 72px 1fr; gap: 10px; }
  .bar em { font-size: 11.5px; }
  .table-wrap.drop-col-2 th:nth-child(2), .table-wrap.drop-col-2 td:nth-child(2) { display: none; }
  .cover-solo .cover-big { font-size: 88px; }
  .ix-grid { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .note { padding: 18px 20px; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .math .res { margin-left: 0; }
  .cta-card { padding: 34px 24px; border-radius: 22px; }
  .cta-card h2 { font-size: 32px; }
  .mini-eval { display: none; }
  .foot .push { margin-left: 0; }
  .ix-hero { padding: 44px 0 100px; }
  .f-body { padding: 28px 24px; }
  .f-body h2 { font-size: 28px; }
  .feature .cover { min-height: 0; padding: 30px 24px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
