/* Companion website: LLM Agents in Financial Markets
   California Lutheran University palette (brand site, Color page): Primary Purple #3B2360, Primary Yellow #FFC222,
   Alternate Purple #6A4C92, Alternate Yellow #FFD589, neutral #997F39. Type: Raleway (CLU sans), Source Serif 4
   (open substitute for Milo Serif), Oswald (open substitute for Tungsten). Minimum text size 14px (CLU digital rule). */

@font-face { font-family: "Raleway"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/raleway-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Raleway"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../fonts/raleway-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Raleway"; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url(../fonts/raleway-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(../fonts/source-serif-4-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif"; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url(../fonts/source-serif-4-latin-wght-italic.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Source Serif"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(../fonts/source-serif-4-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Serif"; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url(../fonts/source-serif-4-latin-ext-wght-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Source Serif"; font-style: normal; font-display: swap; font-weight: 200 900;
  src: url(../fonts/source-serif-4-greek-wght-normal.woff2) format("woff2");
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Source Serif"; font-style: italic; font-display: swap; font-weight: 200 900;
  src: url(../fonts/source-serif-4-greek-wght-italic.woff2) format("woff2");
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF; }
@font-face { font-family: "Oswald"; font-style: normal; font-display: swap; font-weight: 200 700;
  src: url(../fonts/oswald-latin-wght-normal.woff2) format("woff2"); }

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: light;
  --clu-purple: #3B2360;        /* CLU Primary Purple, PMS 2627 */
  --clu-purple-alt: #6A4C92;    /* CLU Alternate Purple, PMS 266 */
  --clu-gold: #FFC222;          /* CLU Primary Yellow, PMS 7406 */
  --clu-gold-alt: #FFD589;      /* CLU Alternate Yellow, PMS 1215 */
  --clu-bronze: #997F39;        /* CLU neutral, PMS 4505 */

  --bg: #F7F5FA;
  --surface: #FFFFFF;
  --surface-2: #F1EDF6;
  --ink: #241B35;
  --ink-2: #4A4258;
  --muted: #6B6478;
  --rule: #E3DEEA;
  --rule-strong: #CFC6DC;
  --link: #6A4C92;
  --link-hover: #3B2360;
  --accent: #3B2360;
  --band: #3B2360;
  --band-ink: #FFFFFF;
  --band-ink-2: #D9CCEF;
  --band-rule: rgba(255,255,255,.18);
  --highlight: #FFD589;
  --focus: #6A4C92;
  --mark-market: #997F39;       /* "prices set by the agents" on light surfaces */
  --ramp-1: #AE9ACF; --ramp-2: #8A70B5; --ramp-3: #6A4C92; --ramp-4: #3B2360;   /* validated ordinal ramp */
  --heat-0: #FFFFFF; --heat-1: #3B2360; --heat-ink-hi: #FFFFFF;
  --shadow: 0 1px 2px rgba(36,27,53,.06), 0 8px 24px rgba(36,27,53,.08);

  --font-sans: "Raleway", "Segoe UI", Verdana, system-ui, sans-serif;
  --font-serif: "Source Serif", Georgia, "Times New Roman", serif;
  --font-accent: "Oswald", "Arial Narrow", Impact, sans-serif;

  --gutter: 16px;
  --maxw: 1200px;
  --read: 68ch;
  --radius: 3px;
}
@media (min-width: 720px) { :root { --gutter: 32px; } }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #120E19; --surface: #19131F; --surface-2: #211A2B;
    --ink: #EEEAF4; --ink-2: #CFC7DC; --muted: #A79EB6;
    --rule: #332A40; --rule-strong: #4A3F5A;
    --link: #C8B6EA; --link-hover: #FFFFFF; --accent: #C8B6EA;
    --band: #241638; --band-ink: #FFFFFF; --band-ink-2: #D9CCEF; --band-rule: rgba(255,255,255,.14);
    --highlight: #4A3A1A; --focus: #FFC222; --mark-market: #FFC222;
    --ramp-1: #5B4485; --ramp-2: #7E64AD; --ramp-3: #A58FD0; --ramp-4: #D5C7EF;
    --heat-0: #19131F; --heat-1: #C8B6EA; --heat-ink-hi: #241B35;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #120E19; --surface: #19131F; --surface-2: #211A2B;
  --ink: #EEEAF4; --ink-2: #CFC7DC; --muted: #A79EB6;
  --rule: #332A40; --rule-strong: #4A3F5A;
  --link: #C8B6EA; --link-hover: #FFFFFF; --accent: #C8B6EA;
  --band: #241638; --band-ink: #FFFFFF; --band-ink-2: #D9CCEF; --band-rule: rgba(255,255,255,.14);
  --highlight: #4A3A1A; --focus: #FFC222; --mark-market: #FFC222;
  --ramp-1: #5B4485; --ramp-2: #7E64AD; --ramp-3: #A58FD0; --ramp-4: #D5C7EF;
  --heat-0: #19131F; --heat-1: #C8B6EA; --heat-ink-hi: #241B35;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: 17px; line-height: 1.55;
  font-variant-numeric: lining-nums proportional-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--ink); line-height: 1.2; margin: 0 0 .5em;
  letter-spacing: .02em; font-variant-numeric: lining-nums; }
h2 { font-size: 28px; font-weight: 600; }
h3 { font-size: 21px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
small, .small { font-size: 15px; }
.muted { color: var(--muted); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--clu-gold); color: #241B35;
  padding: 10px 14px; font-weight: 700; border-radius: var(--radius); }
.skip-link:focus { top: 8px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.num, .tnum { font-variant-numeric: tabular-nums lining-nums; }

/* ---------------------------------------------------------------- header */
.masthead { background: var(--band); color: var(--band-ink); }
.masthead .mh { display: flex; align-items: center; gap: 16px; min-height: 72px; }
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--band-ink); line-height: 1.2;
  padding: 12px 0; margin-right: auto; min-width: 0; }
.brand:hover { color: var(--band-ink); }
.brand-uni { font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--band-ink-2); }
.brand-title { font-size: 19px; font-weight: 600; letter-spacing: .02em; }
.icon-btn { background: transparent; border: 1px solid var(--band-rule); color: var(--band-ink); border-radius: var(--radius);
  width: 44px; height: 44px; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn:hover { background: rgba(255,255,255,.08); }
.icon-btn svg { width: 20px; height: 20px; }
.navbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--band); border-top: 1px solid var(--band-rule);
  border-bottom: 4px solid var(--clu-gold); }
.navbar .nb { position: relative; }
.navbar ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.navbar a { display: block; padding: 11px 10px 9px; color: var(--band-ink); text-decoration: none; font-size: 15px;
  font-weight: 500; letter-spacing: .02em; border-bottom: 3px solid transparent; }
.navbar a:hover { color: #fff; border-bottom-color: var(--band-ink-2); }
.navbar a[aria-current="page"] { border-bottom-color: var(--clu-gold); font-weight: 700; }
.nav-toggle { display: none; align-items: center; gap: 10px; background: transparent; border: 0; color: var(--band-ink);
  font: 600 16px var(--font-sans); padding: 10px 0; cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .current { color: var(--band-ink-2); font-weight: 500; }
.nav-toggle .current::before { content: "/"; margin-right: 10px; color: var(--band-rule); }
@media (max-width: 1000px) {
  .nav-toggle { display: inline-flex; }
  .navbar ul { display: none; flex-direction: column; gap: 0; padding: 0 0 12px; }
  .navbar ul.open { display: flex; }
  .navbar a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--band-rule); }
  .navbar a[aria-current="page"] { border-bottom-color: var(--band-rule); box-shadow: inset 4px 0 0 var(--clu-gold); padding-left: 14px; }
}
.progress { position: absolute; left: 0; bottom: -4px; height: 4px; background: #fff; width: 0; opacity: .9; }
.colon { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------------------------------------------------------------- buttons, chips, inputs */
.btn { display: inline-flex; align-items: center; gap: 8px; font: 600 16px/1 var(--font-sans); letter-spacing: .02em;
  padding: 13px 18px; border-radius: var(--radius); border: 1px solid transparent; text-decoration: none; cursor: pointer; }
.btn-gold { background: var(--clu-gold); color: #241B35; }
.btn-gold:hover { background: #FFD24F; color: #241B35; }
.btn-purple { background: var(--clu-purple); color: #fff; }
.btn-purple:hover { background: #4C2F7A; color: #fff; }
:root[data-theme="dark"] .btn-purple { background: #C8B6EA; color: #241B35; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-purple { background: #C8B6EA; color: #241B35; } }
.btn-line { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-line:hover { border-color: var(--ink-2); color: var(--ink); }
.on-band .btn-line { color: #fff; border-color: rgba(255,255,255,.45); }
.on-band .btn-line:hover { border-color: #fff; color: #fff; }
.btn[aria-disabled="true"] { cursor: default; border: 1px dashed var(--rule-strong); background: transparent; color: var(--muted); }
.on-band .btn[aria-disabled="true"] { border-color: rgba(255,255,255,.45); color: var(--band-ink-2); }
.btn-sm { padding: 8px 12px; font-size: 15px; }
.placeholder-note { font-size: 15px; color: var(--band-ink-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; letter-spacing: .02em;
  padding: 3px 9px; border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--ink-2); background: var(--surface);
  white-space: nowrap; }
.chip-cat { font-family: var(--font-accent); font-weight: 500; letter-spacing: .06em; min-width: 26px; justify-content: center; }
.chip-market { background: var(--clu-gold); border-color: var(--clu-gold); color: #241B35; }
input[type="search"], input[type="text"], select {
  font: 400 16px var(--font-sans); color: var(--ink); background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: var(--radius); padding: 10px 12px; width: 100%; }
input[type="search"]:focus, select:focus { outline: 3px solid var(--focus); outline-offset: 1px; }
label { font-size: 15px; }
.seg { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--radius); overflow: hidden; flex-wrap: wrap; }
.seg button { font: 600 15px var(--font-sans); padding: 8px 12px; border: 0; background: var(--surface); color: var(--ink-2); cursor: pointer;
  border-right: 1px solid var(--rule); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--clu-purple); color: #fff; }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: #C8B6EA; color: #241B35; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seg button[aria-pressed="true"] { background: #C8B6EA; color: #241B35; } }

/* ---------------------------------------------------------------- page scaffolding */
main { display: block; }
.page-head { background: var(--band); color: var(--band-ink); padding: 40px 0 36px; }
.page-head h1 { color: #fff; font-size: 40px; font-weight: 300; letter-spacing: .015em; margin-bottom: 10px; }
.page-head .lede { color: var(--band-ink-2); font-size: 19px; max-width: 70ch; margin: 0; }
.page-head .lede a { color: #fff; }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--rule); }
.section-head { max-width: 72ch; margin-bottom: 28px; }
.section-head p { color: var(--ink-2); }
.prose { font-family: var(--font-serif); font-size: 19px; line-height: 1.65; letter-spacing: -.005em; max-width: var(--read); }
.prose p { margin: 0 0 1.05em; hyphens: auto; overflow-wrap: break-word; }
.prose em { font-style: italic; }
.quote-src { font: 500 15px var(--font-sans); color: var(--muted); }
.quote-src a { color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; }
.grid-2 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- hero (overview) */
.hero { background: var(--band); color: var(--band-ink); padding: 48px 0 56px; position: relative; }
.hero-grid { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; } }
.hero .status { font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--clu-gold); margin: 0 0 18px; }
.hero h1 { margin: 0 0 22px; color: #fff; letter-spacing: .01em; }
.hero h1 .t-main { display: block; font-size: clamp(34px, 4.4vw, 52px); font-weight: 300; line-height: 1.08; letter-spacing: .005em; }
.hero h1 .t-sub { display: block; font-size: clamp(20px, 2.2vw, 25px); font-weight: 500; letter-spacing: .03em; color: var(--band-ink-2); margin-top: 16px; line-height: 1.3; }
.hero .byline { font-size: 17px; color: var(--band-ink-2); margin: 0 0 8px; }
.hero .byline strong { color: #fff; font-weight: 600; }
.hero .byline strong a { color: #fff; }
.byline-links { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.hero .byline-links { font-size: 16px; margin: 0 0 26px; }
.hero .byline-links a { color: var(--band-ink-2); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dotfield-wrap { background: rgba(0,0,0,.14); border: 1px solid var(--band-rule); border-radius: 4px; padding: 20px 20px 16px; }
.dotfield-title { font-size: 17px; font-weight: 600; color: #fff; margin: 0 0 4px; letter-spacing: .02em; }
.dotfield-sub { font-size: 15px; color: var(--band-ink-2); margin: 0 0 14px; }
.dotfield svg { display: block; width: 100%; height: auto; }
.dotfield .dot { fill: #B9A8D9; }
.dotfield .dot.market { fill: var(--clu-gold); }
.dotfield .dot.same { fill: var(--clu-gold); }
.dotfield .ring { fill: none; stroke: #fff; stroke-width: 2; }
.dotfield a:focus-visible .dot, .dotfield a:hover .dot { fill: #fff; }
.dotfield-legend { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; color: var(--band-ink-2); }
.dotfield-legend li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: baseline; }
.dotfield-legend b { color: #fff; font-weight: 700; font-size: 17px; margin-right: 4px; }
.sw { width: 12px; height: 12px; border-radius: 50%; display: inline-block; flex: none; transform: translateY(1px); }
.sw-lav { background: #B9A8D9; } .sw-gold { background: var(--clu-gold); }
.sw-ring { background: var(--clu-gold); box-shadow: 0 0 0 2px #2d1b4a, 0 0 0 4px #fff; margin-left: 2px; }
.dotfield-note { font-size: 14px; color: var(--band-ink-2); margin: 12px 0 0; }
.dotfield-note a { color: #fff; }

/* conclusions */
.conclusions { display: grid; gap: 0; grid-template-columns: 1fr; counter-reset: c; border-top: 1px solid var(--rule); }
@media (min-width: 880px) { .conclusions { grid-template-columns: 1fr 1fr; } }
.conclusion { padding: 26px 28px 22px 64px; position: relative; border-bottom: 1px solid var(--rule); }
@media (min-width: 880px) { .conclusion:nth-child(odd) { border-right: 1px solid var(--rule); } }
.conclusion .n { position: absolute; left: 20px; top: 22px; font: 500 30px/1 var(--font-accent); color: var(--clu-purple-alt); letter-spacing: .04em; }
:root[data-theme="dark"] .conclusion .n { color: var(--clu-gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .conclusion .n { color: var(--clu-gold); } }
.conclusion .lead { font: 600 19px/1.4 var(--font-sans); margin: 0 0 10px; color: var(--ink); letter-spacing: .01em; }
.conclusion .rest { font-family: var(--font-serif); font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.conclusion details summary { cursor: pointer; font-size: 15px; font-weight: 600; color: var(--link); list-style: none; }
.conclusion details summary::-webkit-details-marker { display: none; }
.conclusion details[open] summary { margin-bottom: 8px; }

/* level ladder (overview + framework) */
.ladder { display: grid; gap: 10px; }
.ladder-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; text-decoration: none; color: var(--ink); }
.ladder-row:hover { border-color: var(--rule-strong); color: var(--ink); }
.ladder-row .lv { font: 500 15px var(--font-accent); letter-spacing: .08em; color: var(--muted); padding-top: 3px; }
.ladder-row .t { font-weight: 700; display: block; margin-bottom: 2px; }
.ladder-row .d { color: var(--ink-2); font-size: 16px; }
.ladder-row.outcome { background: var(--surface-2); }

/* explore list */
.explore { display: grid; grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 880px) { .explore { grid-template-columns: repeat(3, 1fr); } }
.explore a { display: block; padding: 22px 22px 24px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
@media (min-width: 880px) { .explore a { padding: 22px 24px 26px; border-right: 1px solid var(--rule); }
  .explore a:nth-child(3n) { border-right: 0; } .explore a:nth-child(3n+1) { padding-left: 0; } }
.explore a:hover .t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.explore .t { font-size: 19px; font-weight: 700; color: var(--link); display: block; margin-bottom: 6px; }
.explore .d { font-size: 16px; color: var(--ink-2); }

/* ---------------------------------------------------------------- reader */
.reader { display: grid; grid-template-columns: 1fr; gap: 0; }
@media (min-width: 1080px) { .reader { grid-template-columns: 250px minmax(0, 1fr); gap: 32px; } }
.toc { display: none; }
@media (min-width: 1080px) {
  .toc { display: block; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 64px); align-self: start; max-height: calc(100vh - 80px); overflow: auto;
    padding: 28px 0 40px; font-size: 15px; scrollbar-width: thin; }
}
.toc h2 { font-size: 15px; font-weight: 700; letter-spacing: .04em; color: var(--muted); margin: 0 0 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc li { margin: 0; }
.toc a { display: grid; grid-template-columns: 2.4em 1fr; gap: 2px; padding: 5px 8px 5px 10px; color: var(--ink-2); text-decoration: none;
  border-left: 2px solid var(--rule); line-height: 1.35; }
.toc a:hover { color: var(--ink); border-left-color: var(--rule-strong); }
.toc a.active { color: var(--ink); border-left-color: var(--clu-purple-alt); font-weight: 600; background: var(--surface-2); }
:root[data-theme="dark"] .toc a.active { border-left-color: var(--clu-gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .toc a.active { border-left-color: var(--clu-gold); } }
.toc ol ol a { padding-left: 22px; font-size: 14.5px; }
.toc ol ol { margin-bottom: 4px; }
.toc .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.toc-mobile { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 50px); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--rule); padding: 8px 0; }
@media (min-width: 1080px) { .toc-mobile { display: none; } }
.toc-mobile select { font-weight: 600; }
.paper { background: var(--surface); border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); padding: 36px var(--gutter) 64px; min-width: 0; }
@media (min-width: 1080px) { .paper { padding: 44px 52px 80px; } .paper .table-block { margin-left: -40px; margin-right: -40px; } }
.paper-title { max-width: var(--read); }
.paper-title h1 { margin-bottom: 16px; }
.paper-title h1 .t-main { display: block; font-weight: 300; font-size: clamp(30px, 4vw, 46px); line-height: 1.1; letter-spacing: .005em; }
.paper-title h1 .t-sub { display: block; font-weight: 600; font-size: clamp(18px, 1.8vw, 21px); letter-spacing: .03em; color: var(--clu-purple-alt); margin-top: 12px; line-height: 1.3; }
:root[data-theme="dark"] .paper-title h1 .t-sub { color: var(--clu-gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .paper-title h1 .t-sub { color: var(--clu-gold); } }
.paper-meta { font-size: 16px; color: var(--ink-2); margin-bottom: 8px; }
.paper-meta a { color: var(--ink-2); }
.paper-meta strong a { color: var(--ink); }
.paper-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 30px; }
.abstract { background: var(--surface-2); border-left: 4px solid var(--clu-gold); padding: 22px 26px; margin: 0 0 18px; max-width: var(--read); }
.paper .abstract h2 { font-size: 17px; letter-spacing: .06em; margin: 0 0 8px; }
.abstract p { font-family: var(--font-serif); font-size: 18px; line-height: 1.6; margin: 0; }
.kw { max-width: var(--read); font-size: 15px; color: var(--ink-2); margin: 0 0 6px; }
.kw b { color: var(--ink); }
.paper section { scroll-margin-top: 72px; }
.paper h2 { font-size: 26px; margin: 2.2em 0 .7em; max-width: var(--read); }
.paper h3 { font-size: 20px; margin: 1.9em 0 .6em; max-width: var(--read); }
.paper .hn { color: var(--clu-purple-alt); margin-right: .5em; font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .paper .hn { color: var(--clu-gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .paper .hn { color: var(--clu-gold); } }
.paper .anchor { opacity: 0; margin-left: .35em; font-size: .8em; text-decoration: none; color: var(--muted); }
.paper h2:hover .anchor, .paper h3:hover .anchor, .paper .anchor:focus { opacity: 1; }
.paper .prose p { max-width: var(--read); }
a.cite { color: inherit; text-decoration: underline; text-decoration-color: var(--rule-strong); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a.cite:hover, a.cite.active { background: var(--highlight); text-decoration-color: var(--clu-bronze); color: inherit; }
a.xref { color: var(--link); }
.decl dt { font-weight: 700; margin-top: 12px; }
.decl dd { margin: 2px 0 0; }
.refs-inline { font-size: 16px; max-width: var(--read); }
.refs-inline li { margin-bottom: 10px; padding-left: 1.5em; text-indent: -1.5em; overflow-wrap: anywhere; }

/* tables */
.table-block { margin: 30px 0 34px; }
.table-block .cap { font: 400 16px/1.45 var(--font-sans); color: var(--ink-2); margin: 0 0 10px; max-width: 90ch; }
.cap-label { font-weight: 700; color: var(--ink); margin-right: .45em; }
.table-scroll { overflow-x: auto; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface);
  -webkit-overflow-scrolling: touch; }
table.data { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 1.45; }
table.data th, table.data td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
table.data thead th { background: var(--surface-2); font-weight: 700; color: var(--ink); position: sticky; top: 0; z-index: 1; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.n, table.data th.n { text-align: right; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; }
table.data tbody tr:hover td { background: var(--surface-2); }
table.data td:first-child { font-weight: 600; }
table.data.wide { min-width: 860px; }
table.data.xwide { min-width: 880px; }
table.data td:first-child, table.data th:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
table.data thead th:first-child { background: var(--surface-2); z-index: 2; }
table.data tbody tr:hover td:first-child { background: var(--surface-2); }
.cap-tools { float: right; margin-left: 12px; }
.cap-tools button { font: 600 14px var(--font-sans); background: none; border: 1px solid var(--rule-strong); border-radius: var(--radius); color: var(--ink-2); padding: 3px 9px; cursor: pointer; }
.cap-tools button:hover { color: var(--ink); border-color: var(--ink-2); }
dialog.table-dialog { width: min(1400px, 96vw); max-height: 92vh; overflow: auto; border: 1px solid var(--rule-strong); border-radius: 6px; padding: 18px 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
dialog.table-dialog::backdrop { background: rgba(20,12,32,.55); }
dialog.table-dialog .table-scroll { max-height: calc(92vh - 150px); overflow: auto; }
dialog.table-dialog table.data { min-width: 0; }
dialog.table-dialog .dlg-close { float: right; }
.table-note { font-size: 15px; color: var(--ink-2); margin: 10px 0 0; max-width: 100ch; line-height: 1.5; }
.table-tools { display: flex; gap: 10px; margin: 8px 0 0; }

/* figures */
figure.fig { margin: 32px 0 36px; }
figure.fig .frame { background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 16px; display: grid; place-items: center; }
figure.fig img { width: 100%; height: auto; max-width: 620px; display: block; }
figure.fig figcaption { font: 400 16px/1.5 var(--font-sans); color: var(--ink-2); margin-top: 12px; max-width: 90ch; }
figure.fig .fig-actions { margin-top: 8px; font-size: 15px; display: flex; gap: 16px; flex-wrap: wrap; }

/* popover */
.popover { position: absolute; z-index: 80; width: min(440px, calc(100vw - 24px)); background: var(--surface); color: var(--ink);
  border: 1px solid var(--rule-strong); border-radius: 6px; box-shadow: var(--shadow); padding: 16px 18px 14px; font-size: 15px; line-height: 1.5; overflow: auto; }
.popover[hidden] { display: none; }
.popover .p-ref { font-family: var(--font-serif); font-size: 16px; margin: 0 0 10px; padding-right: 26px; overflow-wrap: anywhere; }
.popover .p-links { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0 0 8px; }
.popover .p-meta { color: var(--muted); font-size: 14px; margin: 0; }
.popover .p-close { position: absolute; top: 6px; right: 6px; border: 0; background: transparent; color: var(--muted); width: 32px; height: 32px; cursor: pointer; font-size: 20px; }
@media (max-width: 600px) {
  .popover { position: fixed; left: 12px !important; right: 12px; bottom: 12px; top: auto !important; width: auto; max-height: 60vh; overflow: auto; }
}

/* ---------------------------------------------------------------- evidence explorer */
.ex-layout { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 1000px) { .ex-layout { grid-template-columns: 290px minmax(0, 1fr); } }
.filters { font-size: 15px; }
@media (min-width: 1000px) { .filters { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 70px); align-self: start; max-height: calc(100vh - 90px); overflow: auto; padding-right: 6px; } }
.filters fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.filters legend { font-weight: 700; font-size: 15px; letter-spacing: .02em; margin-bottom: 8px; color: var(--ink); padding: 0; }
.facet { display: grid; gap: 2px; }
.facet label { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 6px; padding: 4px 6px; border-radius: 3px; cursor: pointer; color: var(--ink-2); }
.facet label:hover { background: var(--surface-2); }
.facet input { width: 16px; height: 16px; accent-color: var(--clu-purple-alt); margin: 0; }
.facet .c { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 14px; }
.facet label.zero { opacity: .5; }
.facet .more { background: none; border: 0; color: var(--link); font: 600 14px var(--font-sans); padding: 4px 6px; text-align: left; cursor: pointer; }
.filters-toggle { display: none; }
@media (max-width: 999px) {
  .filters-toggle { display: inline-flex; }
  .filters { display: none; background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 16px; }
  .filters.open { display: block; }
}
.ex-top { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.ex-top .search { flex: 1 1 320px; }
.ex-count { font-size: 16px; color: var(--ink-2); margin: 0 0 12px; }
.ex-count b { color: var(--ink); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.active-filters button { font: 600 14px var(--font-sans); border: 1px solid var(--rule-strong); background: var(--surface-2); color: var(--ink);
  border-radius: 999px; padding: 4px 10px; cursor: pointer; }
.active-filters button::after { content: " \00d7"; color: var(--muted); }
.results { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.result { border-bottom: 1px solid var(--rule); }
.result > button.r-head { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; width: 100%;
  padding: 16px 6px 16px 4px; cursor: pointer; }
.result > button.r-head:focus-visible { outline: 3px solid var(--focus); outline-offset: -2px; }
.r-title { font-weight: 700; font-size: 17px; color: var(--ink); line-height: 1.35; }
.r-meta { font-size: 15px; color: var(--muted); margin-top: 3px; }
.r-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; align-items: flex-start; max-width: 280px; }
.r-body { padding: 4px 6px 22px 4px; }
.r-body[hidden] { display: none; }
.kv { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; gap: 6px 16px; font-size: 15px; margin: 0 0 14px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
@media (max-width: 600px) { .kv { grid-template-columns: 1fr; } .kv dd { margin-bottom: 6px; } }
@media (max-width: 480px) { .result > button.r-head { grid-template-columns: minmax(0, 1fr); } .r-badges { justify-content: flex-start; max-width: none; } }
.r-sub { font: 700 15px var(--font-sans); letter-spacing: .02em; margin: 18px 0 8px; color: var(--ink); }
.r-finding { font-family: var(--font-serif); font-size: 16.5px; line-height: 1.55; color: var(--ink-2); margin: 0 0 12px; }
.coded { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.coded li { border-left: 3px solid var(--rule-strong); padding: 4px 0 4px 12px; font-size: 15px; }
.coded .f { color: var(--ink); }
.coded .n { color: var(--ink-2); margin-top: 4px; font-variant-numeric: tabular-nums; }
.coded .m { color: var(--muted); margin-top: 2px; font-size: 14px; }
.pager { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 24px 0 0; flex-wrap: wrap; }
.note-box { background: var(--surface-2); border: 1px solid var(--rule); border-radius: 4px; padding: 14px 16px; font-size: 15px; color: var(--ink-2); }

/* charts */
.chart-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 20px 20px 14px; }
.chart-card h3 { font-size: 18px; margin-bottom: 4px; }
.chart-card .sub { font-size: 15px; color: var(--muted); margin: 0 0 12px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font-sans); fill: var(--ink-2); font-size: 14px; font-variant-numeric: tabular-nums lining-nums; }
.chart .axis line, .chart .grid line { stroke: var(--rule); stroke-width: 1; shape-rendering: crispEdges; }
.chart .lbl-strong { fill: var(--ink); font-weight: 600; }
.chart .bar { cursor: pointer; }
.chart .bar:hover, .chart .bar:focus { filter: brightness(1.12); }
.chart .y1 { fill: var(--ramp-1); } .chart .y2 { fill: var(--ramp-2); } .chart .y3 { fill: var(--ramp-3); } .chart .y4 { fill: var(--ramp-4); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; color: var(--ink-2); margin: 10px 0 0; padding: 0; list-style: none; }
.legend li { display: inline-flex; gap: 8px; align-items: center; }
.legend .key { width: 14px; height: 14px; border-radius: 2px; display: inline-block; }
.key.y1 { background: var(--ramp-1); } .key.y2 { background: var(--ramp-2); } .key.y3 { background: var(--ramp-3); } .key.y4 { background: var(--ramp-4); }
.tooltip { position: fixed; z-index: 90; pointer-events: none; background: var(--surface); color: var(--ink); border: 1px solid var(--rule-strong);
  border-radius: 4px; box-shadow: var(--shadow); padding: 8px 10px; font-size: 14px; line-height: 1.4; max-width: 280px; }
.tooltip[hidden] { display: none; }
.tooltip .v { font-weight: 700; font-size: 16px; }
.tooltip .l { color: var(--ink-2); }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }

/* evidence map */
.evmap { width: 100%; border-collapse: separate; border-spacing: 3px; font-size: 15px; }
.evmap th { font-weight: 600; color: var(--ink-2); padding: 6px 6px; vertical-align: bottom; text-align: center; font-size: 14px; line-height: 1.25; }
.evmap th.rowh { text-align: right; vertical-align: middle; color: var(--ink); min-width: 150px; }
.evmap th.rowh span { display: block; color: var(--muted); font-weight: 500; }
.evmap td { padding: 0; }
.evmap td button { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 100%; min-height: 64px; padding: 8px 4px;
  border-radius: 3px; cursor: pointer; text-align: center; line-height: 1.25; font-variant-numeric: tabular-nums lining-nums; }
.evmap td button:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.evmap td button .k { font-weight: 700; font-size: 16px; }
.evmap td button .p { font-size: 14px; }
.evmap td button { background: color-mix(in oklab, var(--heat-1) calc(var(--s) * 100%), var(--heat-0)); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--rule); }
.evmap td button.hi { color: var(--heat-ink-hi); box-shadow: none; }
.evmap td button:hover { outline: 2px solid var(--ink-2); outline-offset: -2px; }
.evmap td button[aria-pressed="true"] { box-shadow: 0 0 0 3px var(--clu-gold); }
.evmap-wrap { overflow-x: auto; }
.evmap-wrap table { min-width: 760px; }

/* markets matrix */
.mx-wrap { overflow: auto; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); max-height: 78vh; }
table.mx { border-collapse: separate; border-spacing: 0; font-size: 15px; min-width: 1060px; width: 100%; }
table.mx th, table.mx td { border-bottom: 1px solid var(--rule); padding: 0; }
table.mx thead th { position: sticky; top: 0; z-index: 3; background: var(--surface-2); font-weight: 600; font-size: 14px; color: var(--ink-2);
  padding: 10px 4px; text-align: center; vertical-align: bottom; line-height: 1.2; }
table.mx thead th.grp { top: 0; }
table.mx th.study { position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; padding: 0; min-width: 210px; }
table.mx thead th.study { z-index: 4; background: var(--surface-2); padding: 10px 12px; }
table.mx th.study button { all: unset; box-sizing: border-box; display: block; width: 100%; padding: 9px 12px; cursor: pointer; font-weight: 600; color: var(--ink); }
table.mx th.study button:hover { color: var(--link); text-decoration: underline; }
table.mx th.study button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
table.mx th.study .dep { display: block; font-weight: 500; font-size: 14px; color: var(--muted); }
table.mx td button { all: unset; box-sizing: border-box; display: grid; place-items: center; width: 100%; height: 100%; min-height: 44px; min-width: 64px; cursor: pointer; }
table.mx td button:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
table.mx td button:hover { background: var(--surface-2); }
table.mx tr.sel th.study, table.mx tr.sel td { background: var(--surface-2); }
table.mx .colsel { box-shadow: inset 0 3px 0 var(--clu-gold); }
table.mx tfoot td, table.mx tfoot th { background: var(--surface-2); font-weight: 700; text-align: center; padding: 10px 4px; position: sticky; bottom: 0; z-index: 2; border-top: 1px solid var(--rule-strong); }
table.mx tfoot th.study { z-index: 3; padding: 10px 12px; text-align: left; }
.sym { width: 20px; height: 20px; display: block; }
.sym-yes { fill: var(--clu-purple-alt); }
:root[data-theme="dark"] .sym-yes { fill: #C8B6EA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sym-yes { fill: #C8B6EA; } }
.sym-partly .half { fill: var(--clu-purple-alt); }
:root[data-theme="dark"] .sym-partly .half { fill: #C8B6EA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sym-partly .half { fill: #C8B6EA; } }
.sym-ring { fill: none; stroke: var(--ink-2); stroke-width: 1.6; }
.sym-no { fill: none; stroke: var(--muted); stroke-width: 1.6; }
.sym-text { font: 700 14px var(--font-sans); fill: var(--muted); }
.changed { outline: 2px dashed var(--mark-market); outline-offset: -4px; }
.mx-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 12px 0 0; font-size: 15px; color: var(--ink-2); }
.mx-legend li { display: inline-flex; align-items: center; gap: 8px; }
.detail-panel { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 22px 24px; margin-top: 20px; }
.detail-panel h3 { margin-bottom: 6px; }
.detail-panel[hidden] { display: none; }

/* criteria checklist */
.claim-picker { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .claim-picker { grid-template-columns: repeat(5, 1fr); } }
.claim-picker button { all: unset; box-sizing: border-box; cursor: pointer; background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: 4px; padding: 14px 14px 16px; display: flex; flex-direction: column; justify-content: flex-start; }
.claim-picker button:hover { border-color: var(--ink-2); }
.claim-picker button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.claim-picker button[aria-pressed="true"] { background: var(--clu-purple); border-color: var(--clu-purple); color: #fff; }
.claim-picker button[aria-pressed="true"] .d { color: #E6DDF5; }
:root[data-theme="dark"] .claim-picker button[aria-pressed="true"] { background: #C8B6EA; border-color: #C8B6EA; color: #241B35; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .claim-picker button[aria-pressed="true"] { background: #C8B6EA; border-color: #C8B6EA; color: #241B35; } }
:root[data-theme="dark"] .claim-picker button[aria-pressed="true"] .d { color: #3B2360; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .claim-picker button[aria-pressed="true"] .d { color: #3B2360; } }
.claim-picker .t { font-weight: 700; display: block; margin-bottom: 4px; font-size: 16.5px; }
.claim-picker .d { font-size: 14.5px; color: var(--ink-2); display: block; line-height: 1.4; }
.checklist { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 22px; }
@media (min-width: 900px) { .checklist { grid-template-columns: 1fr 1fr; } }
.cl-group { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 18px 20px 12px; }
.cl-group h3 { font-size: 17px; margin-bottom: 2px; }
.cl-group .why { font-size: 14.5px; color: var(--muted); margin: 0 0 10px; }
.cl-group .sub-label { font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); margin: 10px 0 4px; }
.cl-item { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; padding: 7px 0; border-top: 1px solid var(--rule); font-size: 16px; }
.cl-item:first-of-type { border-top: 0; }
.cl-item input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--clu-purple-alt); }
.cl-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-top: 18px; padding: 14px 16px;
  background: var(--surface-2); border-radius: 4px; }
.meter { height: 8px; width: 220px; background: var(--rule); border-radius: 4px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--clu-purple-alt); width: 0; transition: width .2s ease; }
:root[data-theme="dark"] .meter > span { background: var(--clu-gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .meter > span { background: var(--clu-gold); } }
.conditions { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.condition { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--rule); }
.condition .n { font: 500 34px/1 var(--font-accent); color: var(--clu-purple-alt); }
:root[data-theme="dark"] .condition .n { color: var(--clu-gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .condition .n { color: var(--clu-gold); } }
.condition h3 { margin-bottom: 6px; }
.condition .req { font-weight: 600; margin: 0 0 8px; }
.condition .doc { font-size: 16px; color: var(--ink-2); margin: 0 0 10px; }
.threats { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .threats { grid-template-columns: 1fr 1fr; } }
.threat { background: var(--surface); border: 1px solid var(--rule); border-radius: 4px; padding: 20px 22px; }
.threat h3 { font-size: 18px; }
.threat p { font-family: var(--font-serif); font-size: 16.5px; line-height: 1.6; color: var(--ink-2); }

/* agenda */
.agenda { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.agenda li { display: grid; grid-template-columns: 64px 1fr; gap: 18px; padding: 28px 0; border-bottom: 1px solid var(--rule); }
.agenda .n { font: 500 38px/1 var(--font-accent); color: var(--clu-purple-alt); }
:root[data-theme="dark"] .agenda .n { color: var(--clu-gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .agenda .n { color: var(--clu-gold); } }
.agenda .lead { font: 700 20px/1.35 var(--font-sans); margin: 0 0 10px; }
.agenda .rest { font-family: var(--font-serif); font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 70ch; }

/* framework */
.fw { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .fw { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.fw-stack { display: grid; gap: 0; }
.fw-box { all: unset; box-sizing: border-box; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; cursor: pointer; background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: 4px; padding: 16px 18px; }
.fw-box:hover { border-color: var(--ink-2); }
.fw-box:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.fw-box[aria-pressed="true"] { border-color: var(--clu-purple); box-shadow: inset 5px 0 0 var(--clu-purple); }
:root[data-theme="dark"] .fw-box[aria-pressed="true"] { border-color: var(--clu-gold); box-shadow: inset 5px 0 0 var(--clu-gold); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .fw-box[aria-pressed="true"] { border-color: var(--clu-gold); box-shadow: inset 5px 0 0 var(--clu-gold); } }
.fw-box .lv { font: 500 15px var(--font-accent); letter-spacing: .08em; color: var(--muted); display: block; }
.fw-box .t { font-weight: 700; font-size: 18px; display: block; margin: 2px 0 4px; }
.fw-box .d { color: var(--ink-2); font-size: 16px; display: block; }
.fw-box .c { display: block; margin-top: 8px; font-size: 15px; color: var(--ink); font-weight: 600; }
.fw-box.outcome { background: var(--surface-2); }
.fw-arrow { display: grid; grid-template-columns: 40px 1fr; align-items: center; min-height: 48px; color: var(--ink-2); font-size: 15px; font-style: italic; }
.fw-arrow svg { width: 20px; height: 40px; justify-self: center; }
.fw-arrow svg path { stroke: var(--ink-2); fill: none; stroke-width: 1.6; }
.fw-arrow svg polygon { fill: var(--ink-2); }
.fw-valid { display: flex; flex-direction: column; gap: 12px; }
.fw-threats { background: var(--surface); border: 1px dashed var(--rule-strong); border-radius: 4px; padding: 6px 18px 12px; flex: 1; }
.fw-threats ol { margin: 0 0 12px; padding-left: 1.3em; font-size: 16px; color: var(--ink-2); }
.fw-threats li { margin-bottom: 8px; }
.fw-detail { margin-top: 24px; }
.roles { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .roles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .roles { grid-template-columns: repeat(4, 1fr); } }
.role { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--clu-purple-alt); border-radius: 4px; padding: 18px 18px 16px; }
:root[data-theme="dark"] .role { border-top-color: #C8B6EA; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .role { border-top-color: #C8B6EA; } }
.role h3 { font-size: 18px; margin-bottom: 6px; }
.role .std { font-family: var(--font-serif); font-size: 17px; line-height: 1.5; color: var(--ink); margin: 0 0 12px; }
.role .cnt { font-size: 15px; color: var(--muted); margin: 0; }
.role .cnt b { color: var(--ink); font-size: 18px; }

/* PRISMA */
.prisma { display: grid; gap: 12px; }
.prisma-stage { display: grid; grid-template-columns: 34px 1fr; gap: 12px; }
.prisma-stage .stg { writing-mode: vertical-rl; transform: rotate(180deg); background: var(--surface-2); border: 1px solid var(--rule);
  border-radius: 4px; font-weight: 700; font-size: 14px; letter-spacing: .06em; text-align: center; color: var(--ink-2); padding: 8px 0; }
.prisma-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .prisma-row.two { grid-template-columns: 1.3fr 1fr; } .prisma-row.three { grid-template-columns: repeat(3, 1fr); } }
.pbox { background: var(--surface); border: 1px solid var(--rule-strong); border-radius: 4px; padding: 12px 14px; font-size: 15.5px; line-height: 1.45; }
.pbox .h { font-weight: 700; display: block; margin-bottom: 2px; }
.pbox .big { font: 600 22px var(--font-sans); color: var(--ink); }
.pbox.excl { background: var(--surface-2); }
.pbox.final { border-color: var(--clu-purple-alt); box-shadow: inset 4px 0 0 var(--clu-purple-alt); }
.arms { display: grid; grid-template-columns: repeat(3, auto); gap: 2px 14px; margin-top: 6px; font-variant-numeric: tabular-nums; justify-content: start; }
.arms span:nth-child(odd) { color: var(--muted); }

/* references page */
.ref-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.ref-item { padding: 16px 0 14px; border-bottom: 1px solid var(--rule); scroll-margin-top: 76px; }
.ref-item:target { background: var(--surface-2); box-shadow: -12px 0 0 var(--surface-2), 12px 0 0 var(--surface-2); }
.ref-item .rt { font-family: var(--font-serif); font-size: 17px; line-height: 1.55; margin: 0 0 8px; overflow-wrap: anywhere; }
.ref-item .rm { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; font-size: 15px; color: var(--muted); }
.ref-item .rm a { font-weight: 600; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--band); color: var(--band-ink-2); margin-top: 0; border-top: 4px solid var(--clu-gold); font-size: 15px; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: 1fr; padding-top: 40px; padding-bottom: 28px; }
@media (min-width: 880px) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 16px; letter-spacing: .04em; margin-bottom: 10px; }
.site-footer a { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer .cite-text { font-family: var(--font-serif); font-size: 16px; color: #F1ECFA; }
.site-footer .base { border-top: 1px solid var(--band-rule); padding-top: 16px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.wordmark { font-size: 14px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #fff; }

/* toast */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--surface);
  padding: 10px 16px; border-radius: 4px; font-size: 15px; z-index: 100; box-shadow: var(--shadow); }
.toast[hidden] { display: none; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* ---------------------------------------------------------------- print (reader) */
@media print {
  .masthead, .navbar, .site-footer, .toc, .toc-mobile, .paper-actions, .fig-actions, .table-tools, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .reader { display: block; }
  .paper { border: 0; padding: 0; }
  .prose { font-size: 11pt; max-width: none; }
  a.cite { text-decoration: none; }
  .table-scroll { overflow: visible; border: 0; }
  table.data.wide, table.data.xwide { min-width: 0; font-size: 8.5pt; }
  table.data thead th { position: static; }
  h2, h3 { break-after: avoid; }
  figure, .table-block { break-inside: avoid; }
}

/* HTML bar charts (labels stay at real size) */
.charts-row { display: grid; gap: 24px; grid-template-columns: 1fr; }

.hbars { display: grid; gap: 18px 28px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.hb-label { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.hb-row { display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 8px; height: 18px; }
.hb-y { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hb-track { display: flex; align-items: center; gap: 6px; min-width: 0; }
.hb-bar { all: unset; box-sizing: border-box; height: 14px; border-radius: 0 4px 4px 0; cursor: pointer; flex: none; }
.hb-bar:hover { filter: brightness(1.12); }
.hb-bar:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hb-bar.y1 { background: var(--ramp-1); } .hb-bar.y2 { background: var(--ramp-2); } .hb-bar.y3 { background: var(--ramp-3); } .hb-bar.y4 { background: var(--ramp-4); }
.hb-v { font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.vbars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; align-items: end; padding-top: 8px; }
.vb-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 236px; }
.vb-bar { width: min(64px, 64%); background: var(--ramp-4); border-radius: 4px 4px 0 0; }
.vb-v { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.vb-x { font-size: 14px; color: var(--muted); border-top: 1px solid var(--rule-strong); width: 100%; text-align: center; padding-top: 6px; }

/* small-screen refinements */
.charts-row > *, .grid-2 > *, .ex-layout > * { min-width: 0; }
@media (max-width: 700px) {
  .brand-uni { letter-spacing: .06em; }
  .brand-title { font-size: 17px; }
  .seg { display: grid; width: 100%; }
  .seg button { border-right: 0; border-bottom: 1px solid var(--rule); text-align: left; }
  .seg button:last-child { border-bottom: 0; }
  .page-head h1 { font-size: 34px; }
  .section { padding: 40px 0; }
  .conclusion { padding: 22px 8px 18px 52px; }
  .conclusion .n { left: 8px; }
  .agenda li { grid-template-columns: 40px 1fr; gap: 10px; }
  .condition { grid-template-columns: 40px 1fr; gap: 10px; }
}

/* ---------------------------------------------------------------- menu with Online Resources 1 and 2 (1 Oct 2026)
   Eleven items need about 1,104px in one row (Raleway 15px), so the side padding drops from 10px to 8px and the
   Menu button takes over below 1200px instead of 1000px. The rules in the block repeat those of the 1000px block. */
.navbar a { padding-left: 8px; padding-right: 8px; }
@media (max-width: 1199px) {
 .nav-toggle { display: inline-flex; }
 .navbar ul { display: none; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 0 0 12px; }
 .navbar ul.open { display: flex; max-height: calc(100vh - 56px); max-height: calc(100dvh - 56px); overflow-y: auto; overscroll-behavior-y: contain; }
 .navbar a { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid var(--band-rule); }
 .navbar a[aria-current="page"] { border-bottom-color: var(--band-rule); box-shadow: inset 4px 0 0 var(--clu-gold); padding-left: 14px; }
}

/* ---------------------------------------------------------------- review of 1 October 2026: filters, evidence map, market audit and checklist controls */
.hero-orient { margin: 12px 0 0; font-size: 17px; line-height: 1.5; color: var(--band-ink-2); max-width: 52ch; }
.hero-orient a, .dotfield-legend a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; }
.hero-orient a:hover, .dotfield-legend a:hover { text-decoration-color: currentColor; }
.hero-orient a:focus-visible, .dotfield-legend a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.dotfield-legend a { color: var(--band-ink-2); }
.chip-sec { background: transparent; border-style: dashed; }
.quick-picks { margin: 0 0 16px; }
.quick-picks .qp-title { font: 700 13px var(--font-sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.quick-picks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 15px; }
.quick-picks button[aria-pressed="true"] { font-weight: 700; color: var(--ink); text-decoration: none; }
.tag-mode label { display: flex; gap: 8px; align-items: center; padding: 3px 6px; cursor: pointer; color: var(--ink-2); }
.tag-mode p { margin: 6px 6px 0; }
.ev-scope { margin: 0 0 14px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: 4px; background: var(--surface); }
.ev-scope[hidden] { display: none; }
.load-error { border-left: 4px solid var(--clu-gold); }
.mx-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.mx-pick { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0 4px; }
.mx-pick label { font-weight: 700; font-size: 15px; }
.mx-pick select { width: auto; max-width: 100%; }
.mx-hint { display: none; margin: 4px 0 10px; }
.mx td.cellsel button { outline: 3px solid var(--focus); outline-offset: -3px; }
.cell-evidence { border-left: 4px solid var(--clu-gold); background: var(--surface-2); padding: 14px 16px; margin: 0 0 18px; border-radius: 0 4px 4px 0; }
.cell-evidence h4 { margin: 0 0 4px; font: 700 17px var(--font-sans); color: var(--ink); }
.cell-evidence dd { overflow-wrap: anywhere; }
.cl-study { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 18px 0 4px; }
.cl-study label { font-weight: 700; font-size: 15px; }
.cl-study input { flex: 1 1 280px; max-width: 520px; }
.cl-note { display: block; width: calc(100% - 30px); margin: 2px 0 8px 30px; font-size: 14px; padding: 5px 8px; }
.cl-note[hidden] { display: none; }
.site-versions { margin-top: 12px; }
@media (max-width: 900px) { .mx-hint { display: block; } .mx-tools { margin-left: 0; } }
@media print { .cap-tools, .mx-tools, .mx-pick, .mx-hint, .quick-picks, .tag-mode, .ev-scope, .cl-note { display: none !important; } }
