/* Spinoff Research public site: shared styles. Tokens are those of the original site (spinoff/web/index.html): Newsreader / Public Sans /
   IBM Plex Mono, black masthead. Score colours: FOCUS green #00735a (dark #2aa883), WATCH amber #d29a1e (fills; #a8740a for text on light
   paper), AVOID magenta #b14d86 (dark #e08abb); the three pass the dataviz validator's colour-blind separation check (ΔE >= 8) in both themes. */
:root {
  --paper: #f5f6f8; --surface: #ffffff; --sunk: #eef0f3; --ink: #141920; --ink-2: #4f5966; --ink-3: #6b7480; --line: #dce0e6;
  --navy: #1f3a5f; --link: #1f5d99; --signal: #c8553d;
  --focus: #00735a; --watch: #a8740a; --watch-fill: #d29a1e; --avoid: #b14d86;
  --good: #1b7a49; --bad: #b3432b; --mast: #0b0d10; --mast-ink: #f2f4f7; --mast-ink-2: #9aa3ae;
  --p-design: #5b6b7f; --p-holdout: #1f3a5f; --p-live: #1b7a49; --p-full: #7a5a2e;
  --take-bg: #eef3f8; --take-line: #1f3a5f;
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --wrap: 1120px; --radius: 6px; --bar-h: 48px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1116; --surface: #151a21; --sunk: #1b222b; --ink: #e8ecf1; --ink-2: #9ba5b2; --ink-3: #7f8996; --line: #28303a;
    --navy: #9dbbe0; --link: #7fb2e6; --signal: #e3826a; --focus: #2aa883; --watch: #e1a83c; --watch-fill: #e1a83c; --avoid: #e08abb;
    --good: #4cc489; --bad: #ef8a6f; --mast: #05070a; --mast-ink: #f2f4f7; --mast-ink-2: #8d97a3;
    --p-design: #9aa8ba; --p-holdout: #8fb1dc; --p-live: #4cc489; --p-full: #d1aa72; --take-bg: #16212e; --take-line: #8fb1dc;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1116; --surface: #151a21; --sunk: #1b222b; --ink: #e8ecf1; --ink-2: #9ba5b2; --ink-3: #7f8996; --line: #28303a;
  --navy: #9dbbe0; --link: #7fb2e6; --signal: #e3826a; --focus: #2aa883; --watch: #e1a83c; --watch-fill: #e1a83c; --avoid: #e08abb;
  --good: #4cc489; --bad: #ef8a6f; --mast: #05070a; --mast-ink: #f2f4f7; --mast-ink-2: #8d97a3;
  --p-design: #9aa8ba; --p-holdout: #8fb1dc; --p-live: #4cc489; --p-full: #d1aa72; --take-bg: #16212e; --take-line: #8fb1dc;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.55; overflow-x: hidden; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.mono, code { font-family: var(--font-data); font-size: 0.9em; }
.num { font-family: var(--font-data); font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--signal); }
.muted { color: var(--ink-2); }
.small { font-size: 0.86rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: 4px; }
.skip:focus { left: 12px; }

/* masthead */
.mast { background: var(--mast); color: var(--mast-ink); border-bottom: 1px solid #1d232b; }
.mast .wrap { display: flex; align-items: center; gap: 20px; padding-block: 12px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: inherit; }
.brand .v { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.brand .t { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--mast-ink-2); font-weight: 600; }
nav.site { display: flex; gap: 2px; margin-left: auto; }
nav.site a { color: var(--mast-ink-2); text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 7px 11px; border-radius: 4px; white-space: nowrap; }
nav.site a:hover { color: var(--mast-ink); background: #161b22; }
nav.site a[aria-current="page"] { color: var(--mast-ink); box-shadow: inset 0 -2px 0 var(--mast-ink); border-radius: 0; }
.theme-btn { background: none; border: 1px solid #2a313a; color: var(--mast-ink-2); border-radius: 4px; padding: 5px 9px; font: inherit; font-size: 0.8rem; cursor: pointer; }
@media (max-width: 720px) {
  .mast .wrap { gap: 8px; }
  nav.site { margin-left: 0; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  nav.site::-webkit-scrollbar { display: none; }
  .theme-btn { margin-left: auto; }
}

/* hero of the note */
.hero { background: var(--mast); color: var(--mast-ink); }
.hero .wrap { padding-block: 36px 40px; display: flex; flex-direction: column; gap: 14px; }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3.05rem); line-height: 1.08; font-weight: 500; max-width: 22ch; }
.hero .stand { color: #c2cad4; max-width: 62ch; font-size: 1.08rem; font-family: var(--font-display); line-height: 1.45; }
.hero .by { color: #97a1ad; font-size: 0.84rem; display: flex; gap: 6px 16px; flex-wrap: wrap; }
.hero .periods { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.hero .period { background: #12171e; border-color: #2a313a; color: #d7dde4; }

/* period chips (used everywhere a number has a period) */
.period { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.04em; padding: 3px 8px 3px 6px;
  border-radius: 3px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); white-space: nowrap; }
.period::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--pc, var(--ink-2)); flex: none; }
.period[data-p="design"] { --pc: var(--p-design); }
.period[data-p="holdout"], .period[data-p="holdout_supp"] { --pc: var(--p-holdout); }
.period[data-p="holdout_supp"]::before { background: transparent; border: 2px solid var(--p-holdout); width: 6px; height: 6px; }
.period[data-p="live"] { --pc: var(--p-live); }
.period[data-p="live"]::before { border-radius: 50%; }
.period[data-p="full"] { --pc: linear-gradient(90deg, var(--p-holdout) 50%, var(--p-design) 50%); }
.period[data-p="full"]::before { background: linear-gradient(90deg, var(--p-holdout) 50%, var(--p-design) 50%); }

/* sticky chapter bar: every chapter fits at 1280 px and up; on narrower screens the strip scrolls, with a fade and an arrow on each side that has more */
.chapters { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line); }
.chapters .wrap { display: flex; align-items: center; gap: 4px; height: var(--bar-h); }
.chapters .strip { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.chapters ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
  -webkit-overflow-scrolling: touch; flex: 1; min-width: 0; }
.chapters ol::-webkit-scrollbar { display: none; }
.chapters.can-right ol { mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 56px), transparent); }
.chapters.can-left ol { mask-image: linear-gradient(90deg, transparent, #000 56px); -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px); }
.chapters.can-left.can-right ol { mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 56px, #000 calc(100% - 56px), transparent); }
.chapters .ch-arrow { display: none; position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 700 1rem/1 var(--font-body); cursor: pointer; align-items: center; justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); padding: 0; }
.chapters .ch-arrow.prev { left: 0; } .chapters .ch-arrow.next { right: 0; }
.chapters.can-left .ch-arrow.prev, .chapters.can-right .ch-arrow.next { display: inline-flex; }
.chapters li { scroll-snap-align: start; flex: none; }
.chapters a { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 10px; border-radius: 4px; text-decoration: none; color: var(--ink-2);
  font-size: 0.86rem; font-weight: 600; white-space: nowrap; }
.chapters a .n { font-family: var(--font-data); font-size: 0.74rem; color: var(--ink-3); }
.chapters a:hover { background: var(--sunk); color: var(--ink); }
.chapters a[aria-current="true"] { color: var(--ink); background: var(--sunk); box-shadow: inset 0 -2px 0 var(--ink); border-radius: 4px 4px 0 0; }
.chapters a[aria-current="true"] .n { color: var(--signal); }
.chapters .lbl { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); padding-right: 6px; flex: none; }
@media (max-width: 1100px) { .chapters .lbl { display: none; } }
@media (max-width: 720px) { .chapters a { padding: 7px 8px; font-size: 0.84rem; } }

/* hero search */
.hero-search { position: relative; max-width: 660px; margin-top: 6px; }
.hero-search label { display: block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mast-ink-2); margin-bottom: 6px; }
.hero-search .field { position: relative; display: flex; align-items: center; }
.hero-search svg { position: absolute; left: 14px; width: 18px; height: 18px; color: #6b7480; pointer-events: none; }
.hero-search input { width: 100%; font: inherit; font-size: 1.06rem; padding: 14px 16px 14px 44px; border-radius: var(--radius); border: 1px solid #2a313a;
  background: #ffffff; color: #141920; -webkit-appearance: none; appearance: none; }
.hero-search input::placeholder { color: #6b7480; }
.hero-search input:focus-visible { outline: 3px solid var(--link); outline-offset: 1px; }
.hero-search .browse { display: inline-flex; gap: 6px; margin-top: 10px; color: var(--mast-ink); font-weight: 700; font-size: 0.92rem; text-decoration: none; border-bottom: 1px solid #4b5563; }
.hero-search .browse:hover { border-bottom-color: var(--mast-ink); }
.hero-search ul[role="listbox"] { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40; list-style: none; margin: 0; padding: 4px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  max-height: min(60vh, 440px); overflow-y: auto; }
.hero-search ul[hidden] { display: none; }
.hero-search li a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 10px; border-radius: 4px; text-decoration: none; color: inherit; align-items: center; }
.hero-search li .nm { font-weight: 600; overflow-wrap: anywhere; }
.hero-search li .meta { grid-column: 1; font-size: 0.78rem; color: var(--ink-2); display: flex; gap: 4px 10px; flex-wrap: wrap; }
.hero-search li .pill { grid-column: 2; grid-row: 1 / span 2; }
.hero-search li[aria-selected="true"] a, .hero-search li a:hover { background: var(--sunk); }
.hero-search li.none { padding: 10px; color: var(--ink-2); font-size: 0.9rem; }
.hero-search li.more a { display: block; font-size: 0.84rem; font-weight: 700; color: var(--link); border-top: 1px solid var(--line); border-radius: 0; margin-top: 4px; }

/* summary findings */
.findings { display: flex; flex-direction: column; gap: 12px; }
.finding { background: var(--take-bg); border-left: 4px solid var(--take-line); border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 18px 10px; }
.finding > p { font-size: 1.06rem; max-width: 78ch; }
.finding > p b { font-weight: 700; }
.finding details.more { margin-top: 6px; }
.finding details.more .body table { font-size: 0.82rem; }

/* the note */
main.note { padding-bottom: 64px; }
.chapter { scroll-margin-top: calc(var(--bar-h) + 8px); padding-top: 44px; display: flex; flex-direction: column; gap: 22px; }
.ch-head { display: flex; flex-direction: column; gap: 4px; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.ch-head h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.15; }
.ch-head .eyebrow { color: var(--ink-3); }
.takeaway { background: var(--take-bg); border-left: 4px solid var(--take-line); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px 16px; }
.takeaway h3 { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--take-line); margin-bottom: 8px; }
.takeaway ul { padding-left: 1.15em; display: flex; flex-direction: column; gap: 6px; }
.takeaway li { max-width: 80ch; }
.takeaway li::marker { color: var(--take-line); }
.takeaway.big li { font-size: 1.04rem; }
.takeaway.big li b { font-weight: 700; }
.lede { max-width: 72ch; color: var(--ink); }
.investor { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px 18px; }
.investor h3 { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 8px; }
.investor ol { padding-left: 1.3em; display: flex; flex-direction: column; gap: 6px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.grid-21 { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .grid-2, .grid-21 { grid-template-columns: minmax(0, 1fr); } }

/* exhibits */
.exhibit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 10px; margin: 0; min-width: 0; }
.ex-top { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.ex-no { font-family: var(--font-data); font-size: 0.74rem; font-weight: 500; color: var(--signal); letter-spacing: 0.04em; }
.exhibit h3 { font-family: var(--font-display); font-size: 1.22rem; line-height: 1.25; font-weight: 600; }
.exhibit .chart { min-width: 0; width: 100%; position: relative; }
.exhibit .chart svg { max-width: 100%; height: auto; display: block; overflow: visible; }
.exhibit .chart figure { margin: 0; }
.exhibit .chart h4 { font-size: 0.78rem; font-weight: 700; color: var(--ink-2); margin: 4px 0 2px; letter-spacing: 0.02em; }
.exhibit .note1 { font-size: 0.9rem; color: var(--ink-2); max-width: 80ch; }
.exhibit .src { font-size: 0.76rem; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 8px; }
.exhibit .src b { font-weight: 600; color: var(--ink-2); }
details.more { border-top: 1px dashed var(--line); padding-top: 6px; }
details.more > summary { cursor: pointer; font-size: 0.82rem; font-weight: 700; color: var(--link); list-style: none; display: inline-flex; gap: 6px; align-items: center; padding: 4px 0; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary::before { content: "+"; font-family: var(--font-data); width: 14px; text-align: center; }
details.more[open] > summary::before { content: "−"; }
details.more .body { display: flex; flex-direction: column; gap: 10px; padding: 6px 0 4px; font-size: 0.88rem; }
details.more .body ul { padding-left: 1.1em; display: flex; flex-direction: column; gap: 4px; }
.legend { display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 0.8rem; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 10px; border-radius: 2px; display: inline-block; flex: none; }
.legend i.line { height: 3px; border-radius: 2px; }
.legend i.dash { height: 0; border-top: 2px dashed currentColor; background: none !important; }
.legend i.hollow { background: transparent !important; border: 2px solid currentColor; width: 10px; height: 10px; border-radius: 50%; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); flex-wrap: wrap; max-width: 100%; }
.seg button { font: inherit; font-size: 0.82rem; font-weight: 600; padding: 7px 12px; background: none; border: 0; border-right: 1px solid var(--line); color: var(--ink-2); cursor: pointer; }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.seg .l-short { display: none; }
@media (max-width: 720px) { .seg .l-long { display: none; } .seg .l-short { display: inline; } .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } .seg button { padding: 7px 9px; white-space: nowrap; } }
.ctl-row { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; }
.ctl-row .lbl { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.sticky-ctl { position: sticky; top: calc(var(--bar-h) + 6px); z-index: 5; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(4px);
  padding: 8px 0; border-bottom: 1px solid var(--line); }
.banner { border-left: 3px solid var(--watch-fill); background: var(--sunk); padding: 8px 12px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.86rem; }
.banner.ins { border-left-color: var(--p-design); } .banner.oos { border-left-color: var(--p-holdout); } .banner.full { border-left-color: var(--p-full); }

/* flow diagram (exhibit 2) */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; align-items: stretch; }
.flow .step { position: relative; border: 1px solid var(--line); background: var(--paper); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; margin-right: 22px; }
.flow .step:last-child { margin-right: 0; }
.flow .step:not(:last-child)::after { content: ""; position: absolute; right: -19px; top: 50%; width: 14px; height: 14px; border-top: 2px solid var(--ink-2); border-right: 2px solid var(--ink-2); transform: translateY(-50%) rotate(45deg); }
.flow .k { font-family: var(--font-data); font-size: 0.72rem; color: var(--ink-3); }
.flow h4 { font-size: 1rem; }
.flow p { font-size: 0.84rem; color: var(--ink-2); }
.flow .tiers { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .flow { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .flow .step { margin-right: 0; }
  .flow .step:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -19px; transform: translateX(-50%) rotate(135deg); }
}

/* tiers and pills */
.pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.09em; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; border: 1px solid currentColor; white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.t-FOCUS { color: var(--focus); } .t-WATCH { color: var(--watch); } .t-AVOID { color: var(--avoid); } .t-NA { color: var(--ink-2); }
.kind { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 1px 5px; border-radius: 3px; }
.kind.severe { background: color-mix(in srgb, var(--bad) 16%, transparent); color: var(--bad); }
.kind.moderate, .kind.elevated { background: color-mix(in srgb, var(--watch-fill) 22%, transparent); color: var(--watch); }
.kind.positive, .kind.quality { background: color-mix(in srgb, var(--good) 16%, transparent); color: var(--good); }
.kind.information { background: var(--sunk); color: var(--ink-2); }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-width: 100%; }
table { border-collapse: collapse; width: 100%; font-size: 0.86rem; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; background: var(--surface); white-space: nowrap; }
td.r, th.r { text-align: right; }
td.num, th.num { text-align: right; font-family: var(--font-data); font-variant-numeric: tabular-nums; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tr.sep td { border-top: 2px solid var(--line); }
.rate { display: grid; grid-template-columns: 38px minmax(40px, 1fr); gap: 6px; align-items: center; min-width: 110px; }
.rate i { display: block; height: 8px; background: var(--sunk); border-radius: 2px; position: relative; overflow: hidden; }
.rate i b { position: absolute; inset: 0 auto 0 0; background: var(--ink-2); border-radius: 2px; }
.rules-table td:first-child { min-width: 220px; }
.rules-table .what { color: var(--ink-2); font-size: 0.82rem; display: block; margin-top: 2px; }
.pos { color: var(--good); } .neg { color: var(--bad); }

/* live (exhibit 14) */
.live-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.lcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--paper); text-decoration: none; color: inherit; }
.lcard:hover { border-color: var(--ink-2); }
.lcard .top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.lcard .tk { font-family: var(--font-data); font-weight: 500; }
.lcard .meta { font-size: 0.8rem; color: var(--ink-2); }
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { display: grid; grid-template-columns: 96px 16px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 0.86rem; position: relative; padding-bottom: 10px; }
.timeline li::before { content: ""; position: absolute; left: 113px; top: 14px; bottom: -2px; width: 1px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline .d { font-family: var(--font-data); font-size: 0.78rem; color: var(--ink-2); padding-top: 1px; }
.timeline .m { width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--ink-3); margin-top: 4px; background: var(--surface); position: relative; z-index: 1; }
.timeline li.done .m { background: var(--good); border-color: var(--good); }
.timeline li.today { color: var(--signal); font-weight: 700; }
.timeline li.today .m { border-color: var(--signal); background: var(--signal); }
.timeline .tk { font-family: var(--font-data); font-size: 0.78rem; color: var(--ink-3); margin-right: 6px; }

/* methods & disclosures */
details.methods { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
details.methods > summary { cursor: pointer; padding: 14px 18px; font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
details.methods > summary::-webkit-details-marker { display: none; }
details.methods > summary::after { content: "Show"; font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; color: var(--link); align-self: center; }
details.methods[open] > summary::after { content: "Hide"; }
details.methods .body { padding: 0 18px 18px; display: flex; flex-direction: column; gap: 14px; font-size: 0.92rem; }
details.methods h4 { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); margin-top: 6px; }
details.methods ul { padding-left: 1.1em; display: flex; flex-direction: column; gap: 5px; max-width: 86ch; }
.disclosure { border: 1px solid var(--line); border-left: 4px solid var(--signal); background: var(--paper); padding: 12px 16px; border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.86rem; display: flex; flex-direction: column; gap: 6px; }
.disclosure h4 { color: var(--signal) !important; margin-top: 0 !important; }

/* database */
.page-head { padding-top: 32px; display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--ink); padding-bottom: 14px; }
.page-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); line-height: 1.1; }
.page-head p { max-width: 74ch; color: var(--ink-2); }
.filters { display: flex; flex-direction: column; gap: 10px; padding-block: 16px; }
.filters .row { display: flex; gap: 8px 12px; flex-wrap: wrap; align-items: center; }
.filters input[type="search"] { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); flex: 1 1 260px; min-width: 0; }
.filters select { font: inherit; font-size: 0.88rem; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.chip { font: inherit; font-size: 0.78rem; font-weight: 700; padding: 6px 10px; border-radius: 3px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.chip[aria-pressed="true"] { border-color: var(--ink); color: var(--ink); background: var(--sunk); }
.chip .c { font-family: var(--font-data); font-size: 0.72rem; color: var(--ink-3); }
.db-count { font-size: 0.84rem; color: var(--ink-2); }
#dbTable tbody tr { cursor: pointer; }
#dbTable tbody tr:hover td { background: var(--sunk); }
#dbTable td .nm { font-weight: 600; }
#dbTable td .pa { display: block; font-size: 0.78rem; color: var(--ink-2); }
#dbTable th.sortable { cursor: pointer; user-select: none; }
#dbTable th[aria-sort="ascending"]::after { content: " ▲"; } #dbTable th[aria-sort="descending"]::after { content: " ▼"; }
#dbTable .show-sm { display: none; }
@media (max-width: 720px) { #dbTable .hide-sm { display: none; } #dbTable .show-sm { display: inline; } #dbTable td, #dbTable th { padding: 8px 7px; } }
.arch-nav a { text-decoration: none; }
.empty { padding: 28px; text-align: center; color: var(--ink-2); border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }

/* report */
.crumbs { font-size: 0.86rem; padding-top: 22px; }
.rep-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: end; border-bottom: 1px solid var(--ink); padding: 8px 0 16px; }
.rep-head .tk { font-family: var(--font-data); color: var(--ink-2); }
.rep-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1; margin-top: 4px; }
.rep-head .sub { margin-top: 8px; color: var(--ink-2); display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: 0.9rem; align-items: center; }
@media (max-width: 720px) { .rep-head { grid-template-columns: minmax(0, 1fr); } }
.rep-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 22px; align-items: start; padding-top: 20px; }
@media (max-width: 960px) { .rep-grid { grid-template-columns: minmax(0, 1fr); } }
.col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel > h2 { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); font-weight: 700; }
.verdict .big { font-family: var(--font-display); font-size: 2.2rem; line-height: 1; font-weight: 600; }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); }
.counts div { padding: 8px 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.counts div:last-child { border-right: 0; }
.counts .v { font-family: var(--font-data); font-size: 1.15rem; }
.counts .l { font-size: 0.72rem; color: var(--ink-2); }
.check { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.check:first-of-type { border-top: 0; padding-top: 0; }
.check.one { grid-template-columns: minmax(0, 1fr); }
.check .code { font-family: var(--font-data); font-size: 0.82rem; font-weight: 500; }
.check h3 { font-size: 0.96rem; }
.check .rule { font-size: 0.78rem; color: var(--ink-2); margin-top: 2px; }
.state { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; border: 1px solid currentColor; margin-left: 6px; vertical-align: 1px; }
.state.fired { color: var(--bad); } .state.clear { color: var(--good); } .state.unknown, .state.pending { color: var(--ink-2); }
blockquote { margin: 8px 0 0; padding: 8px 12px; border-left: 2px solid var(--line); font-family: var(--font-display); font-size: 1rem; line-height: 1.45; color: var(--ink); background: var(--paper); border-radius: 0 4px 4px 0; overflow-wrap: anywhere; }
blockquote .sec { display: block; font-family: var(--font-body); font-size: 0.7rem; color: var(--ink-2); margin-top: 4px; letter-spacing: 0.04em; text-transform: uppercase; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px 14px; font-size: 0.86rem; margin: 0; }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.outrow { display: grid; grid-template-columns: 70px minmax(0, 1fr) 70px; gap: 10px; align-items: center; font-size: 0.86rem; }
.outrow .track { position: relative; height: 12px; background: var(--sunk); border-radius: 2px; }
.outrow .track .zero { position: absolute; top: -3px; bottom: -3px; left: 50%; width: 1px; background: var(--ink-2); }
.outrow .track i { position: absolute; top: 2px; bottom: 2px; border-radius: 1px; }
.facts td { white-space: normal; }
.facts td:first-child { white-space: nowrap; color: var(--ink-2); }
.facts .q { font-family: var(--font-display); font-size: 0.86rem; color: var(--ink-2); display: block; margin-top: 2px; overflow-wrap: anywhere; }
.flag-note { font-size: 0.84rem; border-left: 3px solid var(--link); padding: 8px 12px; background: var(--sunk); border-radius: 0 var(--radius) var(--radius) 0; }

/* exhibit 7: one panel per period, one bar per tier */
.ex7-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 22px; }
.ex7-panels .pnl { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ex7-panels .pnl h4 { font-size: 0.84rem; font-weight: 700; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ex7-panels .pnl .sub { font-size: 0.76rem; color: var(--ink-2); }
.ex7-panels .pnl .foot { font-size: 0.76rem; color: var(--ink-2); }
.ex7-panels .pnl.pooled { border-left: 1px dashed var(--line); padding-left: 16px; }
@media (max-width: 860px) { .ex7-panels { grid-template-columns: minmax(0, 1fr); } .ex7-panels .pnl.pooled { border-left: 0; padding-left: 0; border-top: 1px dashed var(--line); padding-top: 10px; } }
.headline-ex .ex7-panels { gap: 10px 18px; }

/* methods: the pre-registration link */
.bridge { margin: 22px 0 6px; color: var(--ink-2); font-size: 1rem; max-width: 72ch; }
.btn { font: inherit; font-weight: 700; font-size: 0.88rem; padding: 8px 13px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; }
.btn:hover { border-color: var(--ink-2); }

/* the pre-registration log page */
.prereg .toc { margin-top: 18px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 12px 18px; }
.prereg .toc h2 { font-family: var(--font-body); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.prereg .toc ul { columns: 2 320px; column-gap: 28px; padding-left: 0; list-style: none; font-size: 0.86rem; }
.prereg .toc li { break-inside: avoid; margin-bottom: 3px; }
.md { padding: 18px 0 16px; font-size: 0.93rem; display: flex; flex-direction: column; gap: 10px; max-width: 92ch; overflow-wrap: anywhere; }
.md h2 { font-size: 1.45rem; margin-top: 22px; padding-top: 10px; border-top: 1px solid var(--ink); scroll-margin-top: 12px; }
.md h3, .md h4 { font-size: 1rem; margin-top: 8px; scroll-margin-top: 12px; }
.md ul, .md ol { padding-left: 1.2em; display: flex; flex-direction: column; gap: 4px; }
.md li > ul, .md li > ol { margin-top: 4px; }
.md table { font-size: 0.8rem; }
.md .table-wrap { margin: 2px 0; }
.md code { background: var(--sunk); padding: 0 4px; border-radius: 3px; }

footer { border-top: 1px solid var(--line); padding-block: 18px 28px; color: var(--ink-2); font-size: 0.84rem; margin-top: 40px; }
footer .wrap { display: flex; justify-content: center; text-align: center; }

/* charts */
.plot-tip { font-family: var(--font-body); }
.exhibit .chart svg { --plot-background: var(--surface); }    /* Plot's tooltips take the page surface, light or dark */
[data-loading]::after { content: "Loading…"; color: var(--ink-3); font-size: 0.86rem; }
@media (prefers-reduced-motion: no-preference) { html.smooth { scroll-behavior: smooth; } }
@media print { .chapters, .mast nav, .theme-btn, details.more > summary { display: none; } .chapter { break-inside: avoid; } }

/* live now: directly under the hero, unnumbered */
.live-now { background: var(--paper); padding-top: 18px; }
.live-box { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 12px 16px 8px; display: flex; flex-direction: column; gap: 10px; }
.lv-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.lv-head h2 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); display: inline-flex; align-items: center; gap: 8px; }
.lv-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--p-live); box-shadow: 0 0 0 3px color-mix(in srgb, var(--p-live) 25%, transparent); }
.live-box .live-cards { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.live-box .lcard { padding: 10px 12px; gap: 4px; }
.live-box details.more .body { padding-bottom: 8px; }

/* the definition box beside exhibit 1 */
.defs { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.defs h3 { font-family: var(--font-display); font-size: 1.1rem; }
.defs dl { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.defs dt { margin: 0; }
.defs dd { margin: 4px 0 0; font-size: 0.9rem; }
.motivation { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.5; max-width: 76ch; }

/* exhibit 4: the two small charts, their headings, x-axis titles and the entry-rule legend */
.sub-ex { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.sub-ex h4 { font-size: 0.95rem; }
.axis-title { font-size: 0.78rem; color: var(--ink-2); text-align: center; margin-top: 2px; }
.rule-legend { margin: 4px 0 0; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 4px 10px; font-size: 0.8rem; }
.rule-legend dt { font-weight: 700; white-space: nowrap; }
.rule-legend dd { margin: 0; color: var(--ink-2); }
@media (max-width: 560px) { .rule-legend { grid-template-columns: minmax(0, 1fr); } .rule-legend dd { margin-bottom: 4px; } }

/* holding-period study (exhibits 5 and 6) and the context box of the timing chapter */
.post-tag { font-size: 0.72rem; font-weight: 600; padding: 3px 8px; border: 1px dashed var(--ink-3); border-radius: 4px; color: var(--ink-2); }
.context { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 18px 16px; }
.context h3 { font-size: 1rem; margin-bottom: 6px; }
.context p { max-width: 80ch; }
.pf-exit { color: var(--ink-2); margin: 4px 0 0; }
table.hold-table td { vertical-align: top; }
table.hold-books tr.grp th { text-align: left; font-size: 0.82rem; padding-top: 12px; border-bottom: 1px solid var(--line); }
table.hold-books tr.adopted td, table.hold-books tr.grp.adopted th { background: var(--take-bg); }
table.hold-books tr.bench td:first-child { color: var(--ink-2); }
