/* AJ AI Research: warm-paper broadsheet. Newsreader for headlines and big figures, Inter for reading and data.
   One accent (oxblood). Ink for the second chart series. Nothing renders under 15px. */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fbfaf8;
  --band: #f2ede3;
  --halo: var(--bg);
  --fg: #16140f;
  --fg-2: #3a362e;
  --muted: #5c564b;
  --rule: rgba(22, 20, 15, .16);
  --rule-strong: #16140f;
  --accent: #a8321e;
  --accent-soft: rgba(168, 50, 30, .10);
  --ink-bar: #2e3a46;
  --s1: #2e3a46;
  --s2: #a8321e;
  --ok: #1d6b45;
  --serif: "Newsreader", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --nav-h: 56px;
  --foot-bg: #16140f;
  --foot-fg: #e9e3d7;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12110e;
    --band: #1c1a15;
    --fg: #efe9dd;
    --fg-2: #d8d1c3;
    --muted: #b1aa9b;
    --rule: rgba(239, 233, 221, .17);
    --rule-strong: #efe9dd;
    --accent: #f08a72;
    --accent-soft: rgba(240, 138, 114, .13);
    --ink-bar: #cfc8ba;
    --s1: #d6cfc1;
    --s2: #f08a72;
    --ok: #7fd1a4;
    --foot-bg: #0a0907;
    --foot-fg: #d8d1c3;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12110e;
  --band: #1c1a15;
  --fg: #efe9dd;
  --fg-2: #d8d1c3;
  --muted: #b1aa9b;
  --rule: rgba(239, 233, 221, .17);
  --rule-strong: #efe9dd;
  --accent: #f08a72;
  --accent-soft: rgba(240, 138, 114, .13);
  --ink-bar: #cfc8ba;
  --s1: #d6cfc1;
  --s2: #f08a72;
  --ok: #7fd1a4;
  --foot-bg: #0a0907;
  --foot-fg: #d8d1c3;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; color: var(--fg); }
a { color: inherit; text-decoration-line: underline; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 650; }
.num, td, .tab { font-variant-numeric: tabular-nums lining-nums; }

.skip { position: absolute; left: 16px; top: -100px; background: var(--fg); color: var(--bg); padding: 10px 14px; z-index: 20; font-size: 16px; }
.skip:focus { top: 8px; }

/* ---------- top bar ---------- */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.bar-in { max-width: 76rem; margin: 0 auto; height: var(--nav-h); padding-inline: 16px; display: flex; align-items: center; gap: 16px; }
.brand { font-family: var(--serif); font-weight: 650; font-size: 21px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; margin-right: auto; }
.brand:hover { color: var(--fg); }
.links { display: none; gap: 22px; list-style: none; margin: 0; padding: 0; }
.links a { font-size: 15px; font-weight: 500; text-decoration: none; color: var(--muted); padding-block: 17px; border-bottom: 2px solid transparent; white-space: nowrap; }
.links a:hover, .links a[aria-current="true"] { color: var(--fg); border-bottom-color: var(--accent); }
.jump { position: relative; }
.jump > summary { list-style: none; cursor: pointer; font-size: 16px; font-weight: 600; padding: 8px 12px; border: 1px solid var(--rule); border-radius: 6px; min-height: 40px; display: flex; align-items: center; gap: 8px; }
.jump > summary::-webkit-details-marker { display: none; }
.jump > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.jump[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.jump ol { position: absolute; right: 0; top: calc(100% + 8px); margin: 0; padding: 8px 0; list-style: none; background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; width: min(18rem, calc(100vw - 32px)); box-shadow: 0 12px 32px rgba(0, 0, 0, .12); }
.jump li a { display: block; padding: 11px 18px; font-size: 17px; text-decoration: none; }
.jump li a:hover { background: var(--accent-soft); color: var(--fg); }
.mode { display: none; width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: 6px; background: transparent; color: var(--fg); cursor: pointer; align-items: center; justify-content: center; padding: 0; }
.js .mode { display: inline-flex; }
.mode svg { width: 18px; height: 18px; }
@media (min-width: 1180px) {
  .links { display: flex; }
  .jump { display: none; }
}

/* ---------- layout ---------- */
.col { max-width: 44rem; margin-inline: auto; padding-inline: 16px; }
.wide { max-width: 76rem; margin-inline: auto; padding-inline: 16px; }
main > section { padding-block: 56px; border-top: 1px solid var(--rule); }
@media (min-width: 760px) {
  .col, .wide { padding-inline: 32px; }
  main > section { padding-block: 88px; }
}

.kicker { font-size: 16px; font-weight: 600; color: var(--accent); margin-bottom: 12px; }
h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 7vw, 3.25rem); line-height: 1.06; letter-spacing: -0.018em; }
.sub { font-size: 19px; color: var(--fg-2); margin-top: 16px; max-width: 38rem; }
.head { margin-bottom: 36px; }

/* ---------- hero ---------- */
.hero { padding-block: 40px 56px; }
.hero .meta { font-size: 16px; color: var(--muted); }
.hero h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.75rem, 11vw, 6rem); line-height: .98; letter-spacing: -0.028em; margin-top: 18px; max-width: 14ch; }
.hero .dek { font-family: var(--serif); font-size: clamp(1.3rem, 4.4vw, 1.75rem); line-height: 1.38; color: var(--fg-2); margin-top: 22px; max-width: 34ch; }
.hero .dek strong { color: var(--fg); font-weight: 650; }
.notice { margin-top: 24px; font-size: 16px; font-weight: 600; display: inline-flex; gap: 10px; align-items: center; border-left: 3px solid var(--accent); padding: 4px 0 4px 12px; }

.fall { margin-top: 40px; }
.fall-track { position: relative; height: 22px; display: flex; }
.fall-kept { width: 52.5%; background: var(--ink-bar); }
.fall-lost { width: 47.5%; background: repeating-linear-gradient(135deg, var(--accent) 0 2px, transparent 2px 7px); border: 2px solid var(--accent); border-left: 0; }
.fall-scale { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 15px; color: var(--muted); }
.fall-scale span:last-child { text-align: right; }

.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: 36px; padding-top: 24px; border-top: 2px solid var(--rule-strong); }
.stat { display: grid; gap: 4px; align-content: start; min-width: 0; }
.stat b { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 8.5vw, 3.4rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums lining-nums; }
.stat.hot b { color: var(--accent); }
.stat span { font-size: 15px; color: var(--muted); line-height: 1.4; }
@media (min-width: 900px) {
  .hero { padding-block: 72px 88px; }
  .hero h1 { font-size: clamp(4.5rem, 6.6vw, 6.25rem); max-width: 12em; }
  .hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: end; margin-top: 8px; }
  .hero-grid .fall { margin-top: 0; padding-bottom: 10px; }
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- the answers ---------- */
.answers { list-style: none; margin: 0; padding: 0; counter-reset: a; }
.answers li { counter-increment: a; display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 4px 14px; padding-block: 22px; border-top: 1px solid var(--rule); color: var(--fg-2); }
.answers li:first-child { border-top: 2px solid var(--rule-strong); }
.answers li::before { content: counter(a); font-family: var(--serif); font-size: 30px; line-height: 1; font-weight: 600; color: var(--muted); font-variant-numeric: lining-nums; padding-top: 2px; }
.answers li:first-child::before { color: var(--accent); }
.answers strong { display: block; color: var(--fg); font-size: 20px; line-height: 1.4; margin-bottom: 6px; }

/* ---------- bull vs bear ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.duo > div { border-top: 2px solid var(--rule-strong); padding-top: 18px; min-width: 0; }
.duo > div.bear { border-top-color: var(--accent); }
.duo h3 { font-family: var(--serif); font-weight: 600; font-size: 26px; line-height: 1.2; margin-bottom: 8px; }
.duo .bear h3 { color: var(--accent); }
.duo ul { list-style: none; margin: 0; padding: 0; }
.duo li { padding-block: 14px; border-bottom: 1px solid var(--rule); font-size: 18px; }
@media (min-width: 760px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; } }

/* ---------- charts ---------- */
.charts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.viz { margin: 0; padding-block: 36px; border-top: 1px solid var(--rule); display: grid; gap: 14px; align-content: start; min-width: 0; position: relative; }
.viz .n { font-size: 15px; font-weight: 600; color: var(--muted); }
.viz h3 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 4.6vw, 1.7rem); line-height: 1.22; letter-spacing: -0.01em; }
.viz svg { display: block; width: 100%; max-width: 560px; height: auto; overflow: visible; touch-action: pan-y; margin-top: 6px; }
.viz figcaption { font-size: 15px; color: var(--muted); line-height: 1.5; max-width: 40rem; }
.viz text { font-family: var(--sans); font-size: 15px; fill: var(--muted); paint-order: stroke fill; stroke: var(--halo); stroke-width: 4px; stroke-linejoin: round; font-variant-numeric: tabular-nums; }
.viz text.lab { fill: var(--fg); font-weight: 600; }
.viz .grid { stroke: var(--rule); stroke-width: 1; }
.viz .ref { stroke: var(--muted); stroke-width: 1.25; stroke-dasharray: 4 4; }
.viz .line { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.viz .line.s1 { stroke: var(--s1); }
.viz .line.s2 { stroke: var(--s2); }
.viz .dash { stroke-dasharray: 3 4; }
.viz rect.s1, .viz circle.s1 { fill: var(--s1); }
.viz rect.s2, .viz circle.s2 { fill: var(--s2); }
.viz circle.s1, .viz circle.s2 { stroke: var(--halo); stroke-width: 2; }
.viz rect.guide { fill: none; stroke: var(--s1); stroke-width: 2; stroke-dasharray: 4 3; }
.viz .hit { fill: transparent; }
.viz .focus { fill: var(--fg); stroke: var(--halo); stroke-width: 2.5; pointer-events: none; }
.viz .cross { stroke: var(--fg); stroke-width: 1; stroke-dasharray: 2 3; pointer-events: none; }
.viz svg.armed { cursor: crosshair; }
.tip { position: absolute; z-index: 5; pointer-events: none; background: var(--fg); color: var(--bg); font-size: 15px; line-height: 1.35; font-weight: 500; padding: 8px 11px; border-radius: 6px; max-width: 17rem; opacity: 0; transform: translateY(4px); transition: opacity 120ms var(--ease), transform 120ms var(--ease); font-variant-numeric: tabular-nums; }
.tip.on { opacity: 1; transform: none; }
.hint { font-size: 15px; color: var(--muted); margin-top: -8px; margin-bottom: 8px; }
@media (min-width: 1000px) {
  .charts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
  .viz svg { max-width: none; }
}

/* ---------- legal record ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-bottom: 18px; font-size: 16px; color: var(--fg-2); }
.mk { display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 2px solid var(--fg); }
.mk.ok { background: var(--fg); }
.mk.rp { background: linear-gradient(90deg, var(--fg) 50%, transparent 50%); }
.mk.al { border-color: var(--accent); border-radius: 50%; }
.record { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--rule-strong); }
.record li { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; padding-block: 20px; border-bottom: 1px solid var(--rule); }
.record .rk { font-size: 16px; font-weight: 650; display: flex; align-items: center; }
.record .al .rk { color: var(--accent); }
.record p { color: var(--fg-2); }
@media (min-width: 760px) { .record li { grid-template-columns: 10rem minmax(0, 1fr); gap: 20px; } .record .rk { align-items: flex-start; padding-top: 2px; } .record .rk .mk { margin-top: 6px; } }

details.more { border-bottom: 1px solid var(--rule); }
details.more > summary { cursor: pointer; font-size: 17px; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::after { content: "+"; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--accent); flex: none; }
details.more[open] > summary::after { content: "\2212"; }
details.more > :not(summary) { margin-bottom: 18px; color: var(--fg-2); }

/* ---------- Sharon AI chapter ---------- */
.chapter { background: var(--band); --halo: var(--band); border-top: 0 !important; }
.chapter-mark { display: flex; align-items: baseline; gap: 14px; padding-bottom: 18px; margin-bottom: 26px; border-bottom: 2px solid var(--rule-strong); font-size: 16px; color: var(--muted); }
.chapter-mark b { font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--accent); }
.price-line { font-size: 19px; color: var(--fg-2); margin-top: 18px; max-width: 40rem; }
.price-line strong { color: var(--fg); }
.facts { list-style: none; margin: 32px 0 44px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--rule-strong); }
.facts li { padding-block: 18px; border-bottom: 1px solid var(--rule); color: var(--fg-2); }
.facts strong { display: block; color: var(--fg); font-size: 19px; margin-bottom: 4px; }
@media (min-width: 900px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
.chapter .charts { margin-top: 28px; }

/* ---------- market ---------- */
.mkt { list-style: none; margin: 0 0 48px; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--rule-strong); }
.mkt li { padding-block: 16px; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .mkt { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }
h3.sec { font-family: var(--serif); font-weight: 600; font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1.15; margin-bottom: 12px; }
.rule-note { color: var(--fg-2); margin-bottom: 22px; }
.scan { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.scan th { text-align: left; font-size: 15px; font-weight: 600; color: var(--muted); padding: 0 12px 10px 0; border-bottom: 2px solid var(--rule-strong); }
.scan td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; font-size: 16px; color: var(--fg-2); }
.scan td.t { font-weight: 700; color: var(--fg); width: 4.5rem; font-size: 17px; }
.scan td.s { width: 34%; }
.score { display: flex; align-items: center; gap: 10px; font-weight: 650; color: var(--fg); }
.score i { display: block; height: 10px; background: var(--ink-bar); flex: none; }
.score .sc12 { width: 100%; } .score .sc11 { width: 91.7%; } .score .sc10 { width: 83.3%; } .score .sc9 { width: 75%; }
.score .track { flex: 1; min-width: 40px; background: var(--rule); height: 10px; display: block; }
.notes { display: grid; gap: 14px; color: var(--fg-2); max-width: 44rem; }
.notes strong { color: var(--fg); }
@media (max-width: 599px) {
  .scan, .scan tbody, .scan tr, .scan td { display: block; width: auto; }
  .scan thead { display: none; }
  .scan tr { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: 6px 12px; padding-block: 14px; border-bottom: 1px solid var(--rule); }
  .scan td { padding: 0; border: 0; }
  .scan td.t, .scan td.s { width: auto; }
  .scan td.w { grid-column: 1 / -1; }
}

/* ---------- questions ---------- */
.qs { list-style: none; margin: 0; padding: 0; counter-reset: q; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--rule-strong); }
.qs li { counter-increment: q; padding: 22px 0; border-bottom: 1px solid var(--rule); display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: 14px; color: var(--fg-2); }
.qs li::before { content: counter(q); font-family: var(--serif); font-weight: 600; font-size: 30px; line-height: 1; color: var(--accent); }
.qs strong { display: block; color: var(--fg); font-size: 20px; }
@media (min-width: 900px) { .qs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; } }

/* ---------- dates ---------- */
.dates { width: 100%; border-collapse: collapse; border-top: 2px solid var(--rule-strong); }
.dates td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--fg-2); }
.dates td:first-child { font-family: var(--serif); font-weight: 600; font-size: 21px; color: var(--fg); white-space: nowrap; width: 11.5rem; line-height: 1.3; }
.dates tr.shaz td:last-child strong { color: var(--accent); }
@media (max-width: 599px) {
  .dates, .dates tbody, .dates tr, .dates td { display: block; width: auto; }
  .dates tr { padding-block: 14px; border-bottom: 1px solid var(--rule); }
  .dates td { border: 0; padding: 0; }
}

/* ---------- sources + footer ---------- */
.src-note { color: var(--fg-2); margin-bottom: 12px; }
.sources { margin: 0; padding-left: 1.2rem; columns: 1; }
.sources li { margin: 8px 0; font-size: 15px; break-inside: avoid; }
.sources a { overflow-wrap: anywhere; }
@media (min-width: 900px) { .sources { columns: 2; column-gap: 48px; } }
.foot { background: var(--foot-bg); color: var(--foot-fg); border-top: 1px solid var(--rule); padding-block: 56px 72px; }
.foot p { font-size: 16px; line-height: 1.6; max-width: 44rem; color: var(--foot-fg); opacity: 1; }
.foot .brand-f { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--foot-fg); margin-bottom: 14px; }
.foot .legal { margin-top: 18px; }
.foot a { color: var(--foot-fg); }

/* ---------- landing ---------- */
.landing { min-height: 100vh; display: grid; grid-template-rows: auto 1fr auto; }
.land-main { padding-block: 56px 80px; }
.land-main h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.6rem, 10vw, 5rem); line-height: 1; letter-spacing: -0.025em; }
.land-main .lede { font-size: 19px; color: var(--fg-2); margin-top: 18px; max-width: 34rem; }
.card { display: block; margin-top: 48px; padding: 28px 0 32px; border-top: 2px solid var(--rule-strong); border-bottom: 1px solid var(--rule); text-decoration: none; max-width: 46rem; }
.card:hover { color: var(--fg); }
.card:hover h2 { color: var(--accent); }
.card .meta { font-size: 15px; color: var(--muted); }
.card h2 { font-size: clamp(1.9rem, 6.5vw, 2.9rem); margin-top: 10px; transition: color 180ms var(--ease); }
.card p.d { margin-top: 14px; color: var(--fg-2); font-size: 18px; }
.card .go { display: inline-flex; margin-top: 20px; font-weight: 650; font-size: 17px; color: var(--accent); gap: 8px; align-items: center; }

@media print {
  .bar, .mode, .tip { display: none !important; }
  details > :not(summary) { display: block; }
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; font-size: 15px; }
.answers strong.in, .facts strong.in, .qs strong.in { display: inline; font-size: inherit; margin: 0; }
.fall-cap { font-size: 15px; color: var(--muted); margin-bottom: 10px; }
@media (min-width: 1000px) {
  .split { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 46rem); gap: 72px; justify-content: space-between; }
  .split > .head { position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; margin-bottom: 0; }
}
.viz svg.ptr:focus, .viz svg.ptr:focus-visible { outline: none; }
