/* Copyright (c) Microsoft Corporation. Licensed under the MIT License. */
/* WordEval homepage styles.
   One file, in the order index.html used to load its parts; each part keeps its own header below. */
/* ==================== fonts ==================== */
/* Inter and JetBrains Mono, bundled so the page needs no network (SIL OFL 1.1: web/fonts/OFL-*.txt). The faces and
   unicode ranges are Google Fonts' own; only the subsets whose characters the page uses are kept. */
/* Inter, greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/inter-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* Inter, latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/inter-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter, latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/inter-latin.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;
}
/* JetBrains Mono, greek */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-greek.woff2) format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* JetBrains Mono, latin-ext */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* JetBrains Mono, latin */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(../fonts/jetbrains-mono-latin.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;
}

/* ==================== v2.css ==================== */
/* Copyright (c) Microsoft Corporation. Licensed under the MIT License. */
/* WordEval v2: one reading column, wide figures, a single accent. */
:root {
  color-scheme: light;
  --page: #ffffff;
  --surface: #ffffff;
  --surface-2: #f6f6f7;
  --ink: #18181b;
  --body: #52525b;
  --muted: #71717a;
  --border: #e4e4e7;
  --border-strong: #d4d4d8;
  --accent: #2563c4;
  --accent-soft: #eaf1fc;
  --pass: #15803d;
  --pass-soft: #e8f6ec;
  --fail: #b91c1c;
  --fail-soft: #fdecec;
  --missing: #a1a1aa;
  --atomic: #2563c4;
  --comp: #d9822b;
  --paper: #ffffff;
  --on-accent: #ffffff;
  --missing-ink: #18181b;
  --comp-ink: #b45309;
  /* RQ1 heatmap bins (<20, 20-40, 40-60, 60-80, 80-95, >=95); v2 uses the paper colors. */
  --heat-0: #B5443A;
  --heat-1: #D67A6E;
  --heat-2: #E9A89C;
  --heat-3: #F2C8BE;
  --heat-4: #F8DDD4;
  --heat-5: #FCEFE9;
  --heat-ink-0: #ffffff; --heat-ink-1: #0F1114; --heat-ink-2: #0F1114; --heat-ink-3: #0F1114; --heat-ink-4: #0F1114; --heat-ink-5: #0F1114;
  --shadow: 0 1px 2px rgba(24,24,27,.05), 0 8px 24px -14px rgba(24,24,27,.18);
  /* Figures sit on a gray stage so white documents read as paper, not page. */
  --stage: #eceef2;
  --lift: 0 1px 2px rgba(24,24,27,.07), 0 12px 28px -14px rgba(24,24,27,.28);
  --col: 56rem;
  --gutter: 24px;
  --font: "Noto Sans", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
html { scroll-behavior: auto; }
* { transition: none !important; }
}
body { margin: 0; background: var(--page); color: var(--body); font: 18px/1.75 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
h1, h2, h3 { color: var(--ink); line-height: 1.25; letter-spacing: -.015em; }
h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; font-weight: 650; margin: 2.5rem 0 .75rem; }
p + p { margin-top: 1.1rem; }
strong { color: var(--ink); font-weight: 600; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; }
:is(a, button):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
small { font-size: .8em; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: fixed; left: 16px; top: -80px; z-index: 10; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
/* Layout: two widths only. */
/* One column width for text, figures, and tables. */
.prose, .wide, .footer { width: min(var(--col), calc(100% - 2 * var(--gutter))); margin-inline: auto; }
main > section.prose { margin-top: 5rem; }
main > section.prose:has(> h3:first-child) { margin-top: 3.5rem; }
.figure { margin-top: 2rem; }
.figure + .figure { margin-top: 1.5rem; }
figcaption { margin-top: .8rem; font-size: .85rem; line-height: 1.6; color: var(--muted); }
figcaption b { color: var(--ink); font-weight: 600; }
/* Masthead */
.subtitle { display: block; margin-top: .7rem; font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 500; color: var(--body); letter-spacing: -.01em; }
.authors { margin: 1.8rem auto 0; max-width: 54rem; font-size: 1rem; line-height: 1.9; color: var(--ink); }
.authors span { white-space: nowrap; margin: 0 .35rem; }
.authors sup, .affiliations sup { font-size: .68em; margin-left: 1px; color: var(--muted); }
.affiliations { margin-top: .5rem; font-size: 1rem; color: var(--body); }
.affiliations span + span { margin-left: 1.2rem; }
.author-notes { margin-top: .2rem; font-size: .82rem; color: var(--muted); }
.links { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 1.6rem; }
.pill { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem 1.05rem; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--ink); font-size: .92rem; font-weight: 500; line-height: 1.4; }
.pill:hover { background: var(--surface-2); text-decoration: none; }
.pill-dark { background: var(--ink); border-color: var(--ink); color: var(--page); }
.pill-dark:hover { background: var(--ink); opacity: .88; }
.pill-small { padding: .25rem .8rem; font-size: .82rem; }
/* Lede + teaser */
.teaser { border-radius: 18px; background: var(--stage); padding: 1.4rem; }
.request { display: flex; gap: .7rem; align-items: baseline; font-size: .98rem; color: var(--ink); line-height: 1.5; }
.tag { flex: none; font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.paper { border-radius: 12px; overflow: hidden; background: var(--surface); box-shadow: var(--lift); }
/* Figure 1: X-ray layer drawn on the real render */
.checked { display: inline-block; padding: 0 .4rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font: 600 .66rem/1.6 var(--font); letter-spacing: .02em; vertical-align: 1px; }
.kicker { display: block; margin-bottom: .2rem; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.checks { list-style: none; padding: 0; display: grid; gap: .35rem; }
.checks li { display: flex; align-items: baseline; gap: .5rem; font-size: .9rem; color: var(--ink); font-weight: 500; }
.checks small { color: var(--muted); font-weight: 400; font-size: .78rem; }
.mark { width: 1.25rem; height: 1.25rem; flex: none; display: inline-grid; place-items: center; border-radius: 50%; font-size: .72rem; font-weight: 700; transform: translateY(2px); }
.pass .mark { background: var(--pass-soft); color: var(--pass); }
.fail .mark { background: var(--fail-soft); color: var(--fail); }
/* Stats strip */
/* Generic panel */
.panel { border-radius: 18px; background: var(--stage); padding: 1.4rem; }
.note { margin-top: .9rem; font-size: .82rem; color: var(--muted); }
.notice { padding: 1rem; border-radius: 10px; background: var(--surface-2); font-size: .9rem; }
/* Figure 2: the evaluation loop */
.flow-bar { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: .8rem; }
.flow-bar .kicker { margin: 0; }
.link-btn { border: 0; background: none; padding: .2rem; font-size: .84rem; color: var(--accent); }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.flow { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1.4rem 1fr 1.4rem 1fr 1.4rem 1.25fr 1.4rem 1fr; align-items: end; }
.flow > li { min-width: 0; }
.stage { display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; width: 100%; min-height: 8.2rem; padding: .75rem .75rem .8rem; border: 0; border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(24,24,27,.08); text-align: left; transition: box-shadow .2s, transform .2s; }
.stage:hover { box-shadow: 0 1px 2px rgba(24,24,27,.08), 0 0 0 1px var(--border-strong); }
.stage[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink), var(--lift); transform: translateY(-2px); }
.stage strong { font-size: .88rem; color: var(--ink); line-height: 1.25; }
.stage-n { display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: .7rem; font-weight: 700; }
.stage[aria-pressed="true"] .stage-n { background: var(--ink); color: var(--page); }
.stage.oracle { background: color-mix(in oklab, var(--accent) 7%, var(--surface)); }
.chips { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: auto; }
.chip { display: inline-block; padding: .1rem .45rem; border-radius: 6px; background: var(--surface-2); font-size: .7rem; color: var(--ink); line-height: 1.5; }
.chip.doc { font-family: var(--mono); font-size: .68rem; }
.chip.doc::before { content: "W"; display: inline-grid; place-items: center; width: .9rem; height: .9rem; margin-right: .3rem; border-radius: 3px; background: #2b579a; color: #fff; font: 700 .55rem/1 var(--font); vertical-align: 1px; }
.chip.quote { font-style: italic; }
.chip.faint { background: none; padding-inline: 0; color: var(--muted); }
.chip.check { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.flow-arrow { position: relative; align-self: center; height: 8.2rem; margin-top: 0; }
.flow-arrow::before { content: ""; position: absolute; left: 15%; right: 25%; top: 50%; border-top: 2px solid var(--border-strong); transition: border-color .3s; }
.flow-arrow::after { content: ""; position: absolute; right: 10%; top: calc(50% - 5px); border: 5px solid transparent; border-left: 7px solid var(--border-strong); transition: border-color .3s; }
.flow-arrow.lit::before { border-color: var(--ink); }
.flow-arrow.lit::after { border-left-color: var(--ink); }
.oracle-cell { display: flex; flex-direction: column; align-items: stretch; }
.ref-feed { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding-bottom: .55rem; position: relative; }
.ref-feed::after { content: ""; position: absolute; bottom: 0; left: 50%; height: .55rem; border-left: 2px dashed var(--border-strong); }
.ref-feed small { font-size: .66rem; color: var(--muted); }
.chip.ref { background: var(--pass-soft); }
.gate { display: inline-flex; align-items: center; gap: .15rem; font-size: .72rem; }
.gate i { display: inline-grid; place-items: center; width: 1.05rem; height: 1.05rem; border-radius: 50%; font-style: normal; font-weight: 700; font-size: .6rem; }
.gate i.ok { background: var(--pass-soft); color: var(--pass); }
.gate i.no { background: var(--fail-soft); color: var(--fail); }
.gate b { margin-left: .3rem; color: var(--fail); }
.stage-detail { margin-top: 1.1rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(24,24,27,.08); font-size: .9rem; }
.stage-title { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); margin-bottom: .35rem; }
.stage-title .stage-n { background: var(--ink); color: var(--page); }
.stage-example { margin-top: .6rem; padding: .5rem .7rem; border-radius: 8px; background: var(--surface-2); font-size: .84rem; color: var(--ink); }
.stage-example .kicker { display: inline; margin-right: .5rem; }
/* Landscape: Atomic -> combine -> Compositional */
.tl-draws { margin-top: .8rem; font-size: .8rem; color: var(--muted); }
.tl-draws b { color: var(--ink); font-weight: 600; }
.dist-detail-head .class-mark { margin-right: -.2rem; }
.dist-detail { grid-column: 1 / -1; padding: 1rem 1.1rem; border-radius: 12px; background: var(--surface); box-shadow: 0 1px 2px rgba(24,24,27,.08); }
.dist-detail-head { display: flex; align-items: baseline; gap: .6rem; padding-bottom: .5rem; margin-bottom: .7rem; border-bottom: 2px solid var(--atomic); }
.dist-detail[data-track="comp"] .dist-detail-head { border-color: var(--comp); }
.dist-detail-head strong { font-size: 1rem; color: var(--ink); }
.dist-detail-head span { font-size: .8rem; color: var(--muted); }
.dist-detail-desc { margin: -.2rem 0 .7rem; font-size: .84rem; color: var(--body); }
.cmd-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.cmd-chips li { display: inline-flex; align-items: baseline; gap: .4rem; padding: .22rem .6rem; border-radius: 999px; background: var(--surface-2); font-size: .82rem; color: var(--ink); line-height: 1.4; }
.cmd-chips small { font-size: .7rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.class-mark { font-family: var(--mono); font-size: .9rem; font-weight: 600; color: var(--comp-ink); }
/* Results */
.legend { display: flex; flex-wrap: wrap; gap: 1.1rem; font-size: .82rem; color: var(--body); margin-bottom: .6rem; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.dot { width: .7rem; height: .7rem; border-radius: 50%; display: inline-block; }
.outcomes svg { width: 100%; height: auto; display: block; overflow: visible; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.results-table { width: 100%; border-collapse: collapse; font-size: .86rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.results-table caption { caption-side: bottom; text-align: left; padding-top: .9rem; font-size: .85rem; color: var(--muted); line-height: 1.6; }
.results-table caption b { color: var(--ink); font-weight: 600; }
.results-table th, .results-table td { padding: .42rem .6rem; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
.results-table thead th { font-size: .74rem; font-weight: 600; color: var(--muted); text-align: center; }
.results-table thead tr:first-child th { color: var(--ink); font-size: .8rem; border-bottom-color: var(--border-strong); }
.results-table thead small { color: var(--muted); font-weight: 400; margin-left: .2rem; }
.results-table tbody th { text-align: left; font-weight: 600; color: var(--ink); }
.results-table tbody th small { margin-left: .4rem; font-weight: 400; color: var(--muted); font-size: .78rem; }
.results-table td { color: var(--body); }
.results-table td.best { color: var(--ink); font-weight: 700; }
.sort-btn { display: inline-flex; align-items: center; gap: .25rem; border: 0; background: none; padding: .1rem .3rem; border-radius: 6px; font: inherit; color: inherit; cursor: pointer; }
.sort-btn:hover { background: var(--surface-2); color: var(--ink); }
.sort-ind { width: .6rem; font-size: .7rem; color: var(--muted); }
.sort-ind::before { content: "↕"; opacity: .45; }
th[aria-sort="descending"] .sort-btn, th[aria-sort="ascending"] .sort-btn { color: var(--accent); font-weight: 700; }
th[aria-sort="descending"] .sort-ind::before { content: "↓"; opacity: 1; color: var(--accent); }
th[aria-sort="ascending"] .sort-ind::before { content: "↑"; opacity: 1; color: var(--accent); }
.results-table td.sorted { background: color-mix(in oklab, var(--accent) 6%, transparent); }
.results-table tr.human-row th, .results-table tr.human-row td { border-top: 1px solid var(--border-strong); color: var(--muted); font-style: italic; }
.results-table td:nth-child(6), .results-table td:nth-child(7) { background: var(--surface-2); }
/* Heatmap */
.heat-legend { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem 1rem; margin-bottom: .6rem; font-size: .76rem; color: var(--muted); }
.heat-bins { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .25rem; color: var(--body); }
.heat-bins i { display: inline-block; width: .85rem; height: .85rem; margin-left: .45rem; border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); }
.heatmap table { width: 100%; border-collapse: separate; border-spacing: 2px; font-size: .74rem; min-width: 720px; }
.heatmap th { font-weight: 500; color: var(--muted); }
.heatmap thead th { height: 5.6rem; vertical-align: bottom; padding: 0; }
.heatmap thead th span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; font-size: .72rem; }
.heatmap tbody th { text-align: right; padding-right: .5rem; white-space: nowrap; color: var(--ink); }
.heat-cell { width: 100%; min-width: 2.3rem; height: 1.75rem; border: 0; border-radius: 4px; font-size: .7rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.heat-cell[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.heat-detail { margin-top: .8rem; font-size: .88rem; color: var(--body); min-height: 1.5em; }
/* Composition */
/* RQ2, paper format */
.cpf-row + .cpf-row { margin-top: 1.1rem; }
.cpf-rowlabel { display: flex; align-items: baseline; gap: .55rem; margin-bottom: .2rem; font-size: .8rem; font-weight: 600; color: var(--body); }
.cpf-rowlabel b { font-size: 1.05rem; color: var(--ink); }
.cpf-panels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem 1.2rem; }
.cpf .cpf-panel figcaption { margin: 0 0 .1rem; padding-left: 16%; font-size: .86rem; font-weight: 700; line-height: 1.4; color: var(--ink); text-align: center; }
.cpf .cpf-row[data-row="B"] .cpf-panel figcaption { visibility: hidden; height: 0; margin: 0; }
.cpf-panel svg { display: block; width: 100%; height: auto; overflow: visible; }
.cpf-axis { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.cpf-tick { stroke: var(--ink); stroke-width: 1.2; }
.cpf-ylab { font: 700 10.5px var(--font); fill: var(--ink); }
.cpf-bar rect:not(.cpf-hit) { stroke: #584567; stroke-width: 1.6; transition: opacity .15s; }
.cpf-hit { fill: transparent; }
.cpf-panels:hover .cpf-bar rect:not(.cpf-hit) { opacity: .45; }
.cpf-panels .cpf-bar:hover rect:not(.cpf-hit) { opacity: 1; }
.cpf-legend { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem 1.4rem; font-size: .84rem; color: var(--ink); }
.cpf-legend li { display: inline-flex; align-items: center; gap: .45rem; }
.cpf-legend i { width: 1.4rem; height: .8rem; border: 1.4px solid #584567; border-radius: 1px; }
.composition { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem 2rem; }
/* Resources, citation, footer */
.citation-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.citation-head h2 { margin: 0; }
pre { margin: 0; padding: 1.1rem 1.2rem; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font: .8rem/1.65 var(--mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
.footer { margin-top: 6rem; padding: 1.6rem 0 2.4rem; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.5rem; font-size: .85rem; color: var(--muted); }
/* Responsive */
@media (max-width: 900px) {
.dist-detail-head { flex-wrap: wrap; row-gap: .1rem; }
.flow { grid-template-columns: 1fr; }
.flow-arrow { height: 1.4rem; }
.flow-arrow::before { left: 50%; right: auto; top: 10%; bottom: 30%; border-top: 0; border-left: 2px solid var(--border-strong); }
.flow-arrow::after { right: auto; left: calc(50% - 4px); top: auto; bottom: 5%; border: 5px solid transparent; border-top: 7px solid var(--border-strong); }
.flow-arrow.lit::before { border-left-color: var(--ink); }
.flow-arrow.lit::after { border-top-color: var(--ink); border-left-color: transparent; }
.stage { min-height: 0; }
.ref-feed { flex-direction: row; justify-content: center; gap: .4rem; }
}
@media (max-width: 640px) {
.cpf-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cpf .cpf-panel figcaption { padding-left: 12%; font-size: .78rem; white-space: nowrap; }
.cpf .cpf-row[data-row="B"] .cpf-panel figcaption { visibility: visible; height: auto; margin: .3rem 0 .1rem; }
:root { --gutter: 16px; }
body { font-size: 17px; }
.authors { font-size: .92rem; }
.teaser { padding: .8rem; }
.teaser .request { flex-direction: column; gap: .25rem; }
.composition { grid-template-columns: 1fr; }
}
/* ==================== v3.css ==================== */
/* Copyright (c) Microsoft Corporation. Licensed under the MIT License. */
/* WordEval v3: a product-style shell over the v2 figures (loaded after v2.css). */
.v3 {
  --col: 66rem;
  --display: "Inter", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --grad: linear-gradient(100deg, #1d4ed8 0%, #6d28d9 48%, #0891b2 100%);
  --accent: #2557d6;
  --accent-soft: #e8efff;
  --atomic: #2557d6;
  --stage: #edf0f6;
  --night: #070b18;
  /* Chart palette in the page tone: Atomic blue, Compositional violet, softer status colors. */
  --comp: #8b5cf6;
  --comp-ink: #6d28d9;
  --pass: #047857;
  --pass-soft: #e6f6ef;
  --fail: #e11d48;
  --fail-soft: #fdebef;
  --missing: #cbd5e1;
  --missing-ink: #0f172a;
  /* RQ1: darker always marks a weaker area (lower pass rate), as in the paper; blue in this page's tone. */
  --heat-0: #2a2f9e; --heat-1: #4b63d6; --heat-2: #8197ea; --heat-3: #b8c4f5; --heat-4: #dde3fb; --heat-5: #f1f3fe;
  --heat-ink-0: #ffffff; --heat-ink-1: #ffffff; --heat-ink-2: #0f172a; --heat-ink-3: #0f172a; --heat-ink-4: #0f172a; --heat-ink-5: #0f172a;
}
html { scroll-padding-top: 76px; }
.v3 h1, .v3 h2, .v3 h3 { font-family: var(--display); }
.v3 h2 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; margin-bottom: 1rem; }
.v3 h3 { font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; }
/* Top navigation */
.topnav { position: fixed; inset: 0 0 auto; z-index: 50; height: 60px; display: flex; align-items: center; gap: 1.5rem; padding: 0 max(24px, calc((100% - 72rem) / 2)); background: rgba(255,255,255,.68); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, background-color .2s; }
.topnav.scrolled { background: rgba(255,255,255,.86); border-bottom-color: rgba(15,23,42,.08); }
.brand { display: inline-flex; align-items: center; gap: .5rem; font: 800 1.05rem var(--display); letter-spacing: -.02em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.topnav-links { display: flex; gap: .15rem; margin-left: auto; }
.topnav-links a { padding: .35rem .75rem; border-radius: 999px; font-size: .86rem; font-weight: 500; color: var(--body); transition: background-color .2s, color .2s; }
.topnav-links a:hover { background: rgba(15,23,42,.05); color: var(--ink); text-decoration: none; }
.topnav-links a.active { background: rgba(37,87,214,.1); color: var(--accent); }
.topnav-cta { padding: .4rem .95rem; font-size: .84rem; }
/* Hero */
.hero { position: relative; overflow: hidden; padding: 9.5rem 0 3.5rem; text-align: center; background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 78%); }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(3rem, 2.5rem, 0) scale(1.12); } }
.hero-inner { position: relative; width: min(62rem, calc(100% - 2 * var(--gutter))); margin: 0 auto; }
.hero-title { margin: 1.8rem 0 0; }
.hero-title .grad { display: block; font-size: clamp(4.6rem, 15vw, 10.5rem); font-weight: 800; line-height: .9; letter-spacing: -.065em; padding-bottom: .1em; background: linear-gradient(100deg, #1d4ed8 0%, #6d28d9 30%, #0891b2 60%, #6d28d9 80%, #1d4ed8 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 9s linear infinite; filter: drop-shadow(0 18px 40px rgba(79,70,229,.22)); }
@keyframes shimmer { to { background-position: -220% 0; } }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid rgba(15,23,42,.12); background: rgba(255,255,255,.82); color: var(--ink); font: 600 .95rem var(--display); box-shadow: 0 1px 2px rgba(15,23,42,.06); transition: transform .15s, box-shadow .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 20px -10px rgba(15,23,42,.4); }
.btn-primary { background: #0f172a; border-color: #0f172a; color: #fff; }
.hero-authors { margin-top: 2.8rem; }
.hero-authors .authors { margin-top: 0; font-size: .95rem; }
/* Bands */
.band { position: relative; padding: 6.5rem 0; }
.band-overview { padding-top: .5rem; }
.band > .figure:first-child { margin-top: 0; }
.band > .prose + .figure, .band > .prose + .figure + .figure { margin-top: 2.4rem; }
.band > .figure + .prose { margin-top: 4.5rem; }
.band > .prose.rq { margin-top: 5rem; }
.band > .prose + .prose { margin-top: 4rem; }
.sec-intro { text-align: center; }
.sec-intro > p:not(.eyebrow) { max-width: 44rem; margin-inline: auto; }
.eyebrow { display: inline-block; margin-bottom: .9rem; font: 700 .78rem var(--display); letter-spacing: .14em; text-transform: uppercase; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Abstract: a reading-width column in slightly smaller text. */
#abstract.sec-intro > p:not(.eyebrow) { text-align: left; max-width: 46rem; font-size: 1.02rem; line-height: 1.75; }
.band-closing .prose { margin-top: 0; }
.band-closing .prose + .prose { margin-top: 3.5rem; }
/* Figures: bigger radius and a soft lift */
.v3 .panel, .v3 .teaser { border-radius: 24px; }
.v3 .teaser { background: rgba(237,240,246,.92); box-shadow: 0 40px 90px -45px rgba(30,41,90,.45), 0 0 0 1px rgba(15,23,42,.04); }
.v3 .panel { box-shadow: 0 0 0 1px rgba(15,23,42,.03); }
.v3 .results-table caption { padding-bottom: .8rem; }
.v3 .stage[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent), 0 18px 40px -22px rgba(37,87,214,.55); }
.v3 .stage[aria-pressed="true"] .stage-n, .v3 .stage-title .stage-n { background: var(--accent); }
.v3 .flow-arrow.lit::before { border-color: var(--accent); }
.v3 .flow-arrow.lit::after { border-left-color: var(--accent); }
.v3 .heat-cell { box-shadow: inset 0 0 0 1px rgba(37,87,214,.14); }
.v3 .heat-cell[aria-pressed="true"] { outline-color: var(--accent); }
/* Dark band: numbers and demo */
.counters { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 5.5rem; }
.counters > div { padding: 1.4rem 1.3rem 1.3rem; border-radius: 20px; border: 1px solid rgba(255,255,255,.09); background: rgba(255,255,255,.04); backdrop-filter: blur(6px); }
.counters strong { display: block; font: 800 clamp(2.2rem, 4.6vw, 3.3rem)/1 var(--display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; background: linear-gradient(180deg, #ffffff 30%, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.counters span { display: block; margin-top: .7rem; font-size: .95rem; font-weight: 600; color: #e5e9f2; }
.counters small { display: block; margin-top: .15rem; font-size: .8rem; color: #8b93a7; }
/* Footer */
.footer-inner { display: grid; gap: .5rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.3rem; }
/* Scroll reveal (enabled by v3.js unless motion is reduced) */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal-ready [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
.hero-title .grad { animation: none; }
.reveal-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
}
@media (max-width: 900px) {
.topnav-links { display: none; }
.topnav-cta { margin-left: auto; }
.band { padding: 4.5rem 0; }
}
@media (max-width: 640px) {
.hero { padding: 7.5rem 0 2.5rem; }
.hero-cta .btn { padding: .6rem 1.05rem; font-size: .9rem; }
.counters { gap: .6rem; margin-bottom: 3.5rem; }
.counters { grid-template-columns: 1fr; }
.counters > div { padding: 1rem 1.1rem; }
.band { padding: 3.5rem 0; }
}
/* ==================== v5.css ==================== */
/* Copyright (c) Microsoft Corporation. Licensed under the MIT License. */
/* WordEval v5: a calm product shell over v2/v3 (loaded after v2.css and v3.css).
   One type family, two background tones, hairline borders, one accent, little motion. */
.v5 {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --display: var(--font);
  --ink: #0b1020;
  --body: #4a5268;
  --muted: #7b8296;
  --border: #e6e8ef;
  --border-strong: #d5d9e3;
  --hairline: #e9ebf1;
  --surface-2: #f4f5f8;
  --accent: #4338ca;
  --accent-soft: #eef0ff;
  --atomic: #3b5bdb;
  --stage: #f2f3f7;
  --lift: 0 1px 2px rgba(11,16,32,.05), 0 10px 26px -18px rgba(11,16,32,.22);
}
body.v5 { font-size: 16.5px; line-height: 1.7; letter-spacing: -.006em; }
.v5 h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); font-weight: 700; line-height: 1.12; letter-spacing: -.035em; }
.v5 h3 { font-size: 1.3rem; font-weight: 650; letter-spacing: -.02em; }
.v5 strong { font-weight: 600; }
/* Navigation */
.v5 .topnav { background: rgba(255,255,255,.82); }
.v5 .topnav.scrolled { background: rgba(255,255,255,.9); border-bottom-color: var(--hairline); }
.v5 .brand { font-weight: 700; }
.v5 .topnav-links a { font-weight: 500; color: var(--muted); }
.v5 .topnav-links a:hover { background: none; color: var(--ink); }
.v5 .topnav-links a.active { background: var(--surface-2); color: var(--ink); }
.v5 .topnav-cta { border-radius: 8px; background: var(--ink); border-color: var(--ink); }
/* Hero: white page, one soft light from above, a static title */
.v5 .hero { padding: 8.5rem 0 3rem; background: radial-gradient(64rem 28rem at 50% -8rem, #eceffe 0%, rgba(236,239,254,0) 72%), #fff; }
.hero-meta { font-size: .84rem; font-weight: 500; color: var(--muted); }
.hero-meta span { margin: 0 .35rem; }
.v5 .hero-title { margin-top: 1rem; }
.v5 .hero-title .grad { font-size: clamp(3.6rem, 10vw, 7.2rem); font-weight: 700; letter-spacing: -.055em; line-height: .95; background: linear-gradient(100deg, #1e1b4b 0%, #3730a3 45%, #6d28d9 100%); background-size: auto; -webkit-background-clip: text; background-clip: text; animation: none; filter: none; }
.v5 .hero-cta { gap: .5rem; margin-top: 1.8rem; }
.v5 .btn { padding: .62rem 1.1rem; border-radius: 8px; border-color: var(--border-strong); background: #fff; font: 600 .9rem var(--font); box-shadow: none; transition: background-color .15s, border-color .15s; }
.v5 .btn:hover { transform: none; box-shadow: none; background: var(--surface-2); }
.v5 .btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.v5 .btn-primary:hover { background: #222844; }
.v5 .hero-authors { margin-top: 2.4rem; }
.v5 .hero-authors .authors { font-size: .9rem; color: var(--body); line-height: 1.85; }
.v5 .affiliations { font-size: .9rem; }
.v5 .author-notes { font-size: .78rem; }
/* Bands: white and a faint gray, nothing else */
.v5 .band { padding: 6rem 0; }
.band-alt { background: #f8f9fb; border-block: 1px solid var(--hairline); --stage: #eceef4; }
.v5 .band-overview { padding-top: .5rem; }
.v5 .eyebrow { margin-bottom: .8rem; font: 600 .74rem var(--font); letter-spacing: .12em; text-transform: uppercase; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--accent); }
.v5 .sec-intro > p:not(.eyebrow) { max-width: 40rem; color: var(--body); }
.v5 #abstract.sec-intro > p:not(.eyebrow) { max-width: 44rem; font-size: 1rem; }
.v5 .band-closing h2 { font-size: 1.6rem; letter-spacing: -.025em; }
/* Figures: hairline frames, almost no shadow */
.v5 .panel, .v5 .teaser { border-radius: 20px; }
.v5 .panel { border: 1px solid var(--hairline); background: var(--stage); box-shadow: none; }
.v5 .teaser { background: var(--stage); border: 1px solid var(--hairline); box-shadow: 0 30px 80px -52px rgba(11,16,32,.38); }
.v5 figcaption { color: var(--muted); }
.v5 .table-scroll { padding: .3rem 1rem .2rem; border-radius: 16px; border: 1px solid var(--hairline); background: #fff; }
.v5 .stage[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--accent); transform: none; }
/* Key numbers under Figure 1 */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 3.5rem; border-top: 1px solid var(--hairline); }
.stat-row > div { padding: 1.5rem 1.2rem 0; text-align: center; }
.stat-row > div + div { border-left: 1px solid var(--hairline); }
.stat-row strong { display: block; font: 700 clamp(2rem, 4vw, 2.6rem)/1 var(--font); letter-spacing: -.045em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-row span { display: block; margin-top: .55rem; font-size: .92rem; font-weight: 600; color: var(--ink); }
.stat-row small { display: block; margin-top: .1rem; font-size: .8rem; color: var(--muted); }
/* Demo */
/* Task landscape: Sankey first; selecting a node opens the list beside it (drawn by v4.js) */
.sankey-panel { position: relative; padding: 1.2rem 1.3rem 1rem; border-radius: 20px; border: 1px solid var(--hairline); background: #fff; }
.sk-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0fr); gap: 0; align-items: start; transition: grid-template-columns .5s cubic-bezier(.4,0,.2,1), gap .5s; }
.sankey-panel.open .sk-body { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 1.3rem; }
.sankey { position: relative; width: 100%; min-height: 16rem; }
.sankey svg { display: block; width: 100%; height: auto; overflow: visible; }
.sk-hint { margin-top: .5rem; text-align: center; font-size: .8rem; color: var(--muted); transition: opacity .3s; }
.sankey-panel.open .sk-hint { opacity: 0; }
.sk-head { font: 700 14px var(--font); letter-spacing: -.01em; }
.sk-head.atomic { fill: var(--atomic); }
.sk-head.comp { fill: var(--comp-ink); }
.sk-head-sub { font: 500 11px var(--font); fill: #9aa1b2; }
.sk-head-mid { font: 600 10px var(--font); letter-spacing: .12em; text-transform: uppercase; fill: #b4b9c8; }
.sk-link { fill: none; stroke: url(#sk-grad); stroke-opacity: .22; transition: stroke-opacity .25s; }
.sankey.focused .sk-link { stroke-opacity: .06; }
.sankey.focused .sk-link.on { stroke-opacity: .55; }
.sk-spark { fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1 16; opacity: 0; pointer-events: none; }
.sk-spark.on { opacity: .85; animation: sk-flow 1.2s linear infinite; }
@keyframes sk-flow { to { stroke-dashoffset: -34; } }
@keyframes sk-grow { to { stroke-dashoffset: 0; } }
.sk-node { cursor: pointer; outline: none; }
.sk-hit { fill: transparent; }
.sk-node.atomic .sk-bar { fill: #4f6fe0; }
.sk-node.comp .sk-bar { fill: #9575ee; }
.sk-node:focus-visible .sk-bar { stroke: var(--ink); stroke-width: 2; }
.sk-label { font: 500 12px var(--font); fill: #4a5268; transition: fill .2s; }
.sk-label.strong { font: 600 13px var(--font); fill: var(--ink); }
.sk-count { font-size: 11px; font-weight: 500; fill: #a9afbd; }
.sk-mark { font: 600 11px var(--mono); fill: var(--comp-ink); }
.sankey.focused .sk-node .sk-label { fill: #c3c8d3; }
.sankey.focused .sk-node.on .sk-label, .sk-node.pinned .sk-label { fill: var(--ink); }
.sk-node.pinned .sk-label { font-weight: 600; }
.v5 .sk-detail { grid-column: auto; position: relative; margin: 0; padding: 0; min-width: 0; overflow: hidden; border: 0; background: transparent; box-shadow: none; opacity: 0; visibility: hidden; transform: translateX(12px); transition: opacity .3s, transform .35s, visibility 0s .35s; }
.sankey-panel.open .sk-detail { overflow-y: auto; opacity: 1; visibility: visible; transform: none; transition: opacity .35s .18s, transform .4s .18s, visibility 0s; scrollbar-width: thin; }
.sk-inner { position: relative; min-width: 17rem; padding: 1rem 1.1rem 1.1rem; border-radius: 14px; border: 1px solid var(--hairline); background: #fbfbfd; }
.sk-close { position: absolute; top: .55rem; right: .6rem; width: 1.8rem; height: 1.8rem; border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 1.1rem; line-height: 1; }
.sk-close:hover { background: var(--surface-2); color: var(--ink); }
.sk-kind { margin: 0 2rem .35rem 0; font-size: .68rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--atomic); }
.sk-detail[data-track="comp"] .sk-kind { color: var(--comp-ink); }
.sk-kind .class-mark { margin-left: .3rem; font-size: .72rem; letter-spacing: 0; }
.v5 .sk-detail .dist-detail-head { flex-wrap: wrap; row-gap: .1rem; }
/* Footer */
.footer-light { padding: 2.6rem 0 3rem; border-top: 1px solid var(--hairline); background: #fff; color: var(--muted); font-size: .85rem; }
.footer-light .brand { color: var(--ink); }
.footer-light a { color: var(--body); }
/* Motion: a short, small reveal */
.reveal-ready [data-reveal] { transform: translateY(14px); transition-duration: .7s; }
@media (prefers-reduced-motion: reduce) {
.sk-spark.on { animation: none; }
.sk-body, .v5 .sk-detail, .sankey-panel.open .sk-detail { transition: none; }
}
@media (max-width: 900px) {
.sk-body, .sankey-panel.open .sk-body { grid-template-columns: 1fr; gap: 1rem; }
.v5 .sk-detail { display: none; transform: none; }
.sankey-panel.open .sk-detail { display: block; }
.sk-inner { min-width: 0; }
.v5 .band { padding: 4.5rem 0; }
}
@media (max-width: 640px) {
.v5 .hero { padding: 7rem 0 2.5rem; }
.stat-row > div { padding: 1.1rem .4rem 0; }
.stat-row span { font-size: .82rem; }
.stat-row small { display: none; }
.sankey-panel { padding: 1rem .7rem; }
.sk-label { font-size: 11px; }
.sk-label.strong { font-size: 12px; }
.v5 .band { padding: 3.5rem 0; }
}
/* ==================== v6.css ==================== */
/* Copyright (c) Microsoft Corporation. Licensed under the MIT License. */
/* WordEval v6: v5's calm layout with color brought back in a few chosen places (loaded after v5.css).
   Static light, gradient accents on the title, numbers, and labels; no shimmer or drifting. */
.v6 { --accent: #4f46e5; --accent-soft: #eef0ff; --brand: linear-gradient(100deg, #2b3fd6 0%, #6d28d9 48%, #0e9fc4 100%); }
/* Hero: a still mesh of soft color and a faint grid */
.v6 .hero { background: linear-gradient(180deg, #f4f6ff 0%, #ffffff 92%); }
/* The drifting aurora from v3 is back (markup in the hero; animation in v3.css). */
.v6 .hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(15,23,42,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15,23,42,.05) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 60% 52% at 50% 36%, #000 15%, transparent 72%); mask-image: radial-gradient(ellipse 60% 52% at 50% 36%, #000 15%, transparent 72%); }
.v6 .hero-meta { display: inline-flex; align-items: center; padding: .3rem .85rem; border-radius: 999px; border: 1px solid rgba(79,70,229,.16); background: rgba(255,255,255,.78); color: #4338ca; font-weight: 600; font-size: .8rem; }
/* Flowing title gradient (shimmer keyframes from v3.css). */
.v6 .hero-title { margin-top: 5.6rem; }
.v6 .hero-title .grad { display: inline-block; background: linear-gradient(100deg, #2b3fd6 0%, #6d28d9 30%, #0e9fc4 60%, #6d28d9 80%, #2b3fd6 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; animation: shimmer 9s linear infinite; filter: drop-shadow(0 14px 32px rgba(79,70,229,.2)); }
/* Mascot: a small robot resting its chin on its hands, elbows on the wordmark */
/* The wrap carries the wordmark size so the mascot (in em) scales with it. */
.wordmark-wrap { position: relative; display: inline-block; font-size: clamp(3.6rem, 10vw, 7.2rem); line-height: .95; }
.v6 .wordmark-wrap .grad { font-size: 1em; }
/* Anchored to the "E": Inter caps start about .24em below the line box top, so the elbows rest on the E. */
@keyframes mascot-sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes mascot-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.v6 .btn-primary { background: linear-gradient(135deg, #1e1b4b, #4338ca); border-color: transparent; box-shadow: 0 10px 24px -12px rgba(67,56,202,.7); }
.v6 .btn-primary:hover { background: linear-gradient(135deg, #272463, #4f46e5); }
.v6 .btn:not(.btn-primary):not(.btn-ghost):hover { border-color: rgba(79,70,229,.35); background: #fff; color: #4338ca; }
/* Navigation */
.v6 .topnav-links a.active { background: var(--accent-soft); color: #4338ca; }
/* Numbers and section labels carry the brand color */
.v6 .stat-row { border-top-color: #e6e8f6; }
.v6 .stat-row strong { background: linear-gradient(120deg, #1e3a8a, #4f46e5 55%, #7c3aed); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v6 .eyebrow { padding: .28rem .75rem; border-radius: 999px; background: var(--accent-soft); color: #4338ca; letter-spacing: .1em; }
.v6 .sec-intro h2::after { content: ""; display: block; width: 44px; height: 3px; margin: .95rem auto 0; border-radius: 3px; background: var(--brand); }
/* Bands: the second tone is a cool tint instead of gray */
.v6 .band-alt { background: linear-gradient(180deg, #f5f6ff 0%, #faf9ff 100%); border-color: #eceefa; --stage: #eceef9; }
/* Figures lift a little on hover; the demo and the Sankey get a colored glow */
.v6 .panel, .v6 .teaser, .v6 .sankey-panel, .v6 .table-scroll { transition: box-shadow .3s, border-color .3s; }
.v6 .panel:hover, .v6 .sankey-panel:hover, .v6 .table-scroll:hover { border-color: #dfe2f6; box-shadow: 0 26px 64px -44px rgba(79,70,229,.45); }
.v6 .teaser { box-shadow: 0 40px 100px -56px rgba(67,56,202,.45); }
.v6 .sankey-panel { box-shadow: 0 30px 80px -56px rgba(79,70,229,.4); }
@media (prefers-reduced-motion: reduce) {
.v6 .hero-title .grad { animation: none; }
}
@media (max-width: 640px) {
.v6 .hero-meta { font-size: .74rem; }
.v6 .hero-title { margin-top: 3.6rem; }
}
/* ==================== v7.css ==================== */
/* Copyright (c) Microsoft Corporation. Licensed under the MIT License. */
/* WordEval v7: refined surfaces over v6 (loaded after v6.css).
   Dawn-toned hero with film grain, hairline gradient borders, a robot peeking out from behind the W. */
.v7 {
  --edge: linear-gradient(135deg, rgba(99,102,241,.32), rgba(226,232,240,.95) 38%, rgba(226,232,240,.95) 62%, rgba(168,85,247,.26));
  --page-tint: #f7f8fc;
}
/* Hero: a dawn wash, slower aurora, faint grid, and film grain */
.v7 .hero { padding-bottom: 3.5rem; background: linear-gradient(180deg, #ecf0fd 0%, #f5f4fd 48%, #ffffff 100%); }
.v7 .hero-grid { background-image: linear-gradient(rgba(30,27,75,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(30,27,75,.045) 1px, transparent 1px); background-size: 64px 64px; }
.v7 .hero-meta { gap: .5rem; border-color: rgba(99,102,241,.2); background: rgba(255,255,255,.7); backdrop-filter: blur(8px); }
.v7 .hero-meta::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #a855f7); box-shadow: 0 0 0 3px rgba(129,140,248,.2); }
.v7 .hero-title { margin-top: 1.5rem; }
.v7 .btn-primary { box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 24px -12px rgba(67,56,202,.7); }
.v7 .btn:not(.btn-primary):not(.btn-ghost) { background: rgba(255,255,255,.75); backdrop-filter: blur(6px); }
/* Robot peeking from behind the W (its head is clipped along the W's left edge) */
.wm-w { position: relative; }
.peek { position: absolute; width: .62em; height: auto; right: calc(100% - .13em); top: .05em; overflow: visible; filter: drop-shadow(0 10px 14px rgba(79,70,229,.16)); }
.peek-antenna { transform-origin: 100px 36px; animation: mascot-sway 3.4s ease-in-out infinite; }
.peek-eyes ellipse { transform-box: fill-box; transform-origin: center; animation: mascot-blink 5s infinite; }
/* Navigation: a gradient hairline once the page scrolls */
.v7 .topnav.scrolled { border-bottom-color: transparent; box-shadow: 0 1px 0 rgba(99,102,241,.14); }
/* Sections: white and a faint tint, separated by hairlines */
.v7 .band-alt { background: var(--page-tint); border: 0; box-shadow: inset 0 1px 0 #eceef6, inset 0 -1px 0 #eceef6; --stage: #eff0f7; }
.v7 .eyebrow { display: inline-flex; align-items: center; gap: .45rem; }
.v7 .eyebrow::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #a855f7); }
.v7 .sec-intro h2::after { width: 32px; height: 2px; margin-top: 1rem; opacity: .9; }
.v7 h2 { letter-spacing: -.04em; }
/* Surfaces: hairline gradient edges instead of flat borders */
.v7 .teaser { border: 1px solid transparent; background: linear-gradient(var(--stage), var(--stage)) padding-box, var(--edge) border-box; }
.v7 .panel { border: 1px solid transparent; background: linear-gradient(var(--stage), var(--stage)) padding-box, var(--edge) border-box; }
.v7 .sankey-panel, .v7 .table-scroll { border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--edge) border-box; }
.v7 .panel:hover, .v7 .sankey-panel:hover, .v7 .table-scroll:hover { border-color: transparent; }
/* Key numbers in one glass strip */
.v7 .stat-row { margin-top: 3rem; padding: .3rem 0 1.4rem; border: 1px solid transparent; border-radius: 20px; background: linear-gradient(rgba(255,255,255,.85), rgba(255,255,255,.85)) padding-box, var(--edge) border-box; box-shadow: 0 24px 60px -44px rgba(67,56,202,.45); }
.v7 .stat-row > div + div { border-left-color: #eceef6; }
/* Footer */
.v7 .footer-light { background: var(--page-tint); }
@media (prefers-reduced-motion: reduce) {
.peek-antenna, .peek-eyes ellipse { animation: none; }
}
@media (max-width: 640px) {
.v7 .hero-title { margin-top: 1.2rem; }
.v7 .stat-row { border-radius: 16px; }
}
/* ==================== v8.css ==================== */
/* Copyright (c) Microsoft Corporation. Licensed under the MIT License. */
/* WordEval v8 (loaded after v7.css): neutral white and gray surfaces; all color goes into one
   saturated, slanted ribbon behind Figure 1, with aurora light drifting inside it. */
.v8 {
  --ink: #0a0f1f;
  --page-tint: #f6f7f9;
  --edge: linear-gradient(135deg, rgba(99,102,241,.28), rgba(15,23,42,.09) 32%, rgba(15,23,42,.09) 68%, rgba(219,39,119,.22));
}
/* Hero: clean white with a faint grid around the wordmark */
.v8 .hero { background: #fff; padding-bottom: 2.5rem; }
.v8 .hero-grid { background-image: linear-gradient(rgba(10,15,31,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(10,15,31,.045) 1px, transparent 1px); background-size: 64px 64px; -webkit-mask-image: radial-gradient(ellipse 55% 50% at 50% 34%, #000 10%, transparent 70%); mask-image: radial-gradient(ellipse 55% 50% at 50% 34%, #000 10%, transparent 70%); }
.v8 .hero-meta { background: #fff; border-color: rgba(10,15,31,.1); color: var(--ink); box-shadow: 0 1px 2px rgba(10,15,31,.05); }
.v8 .hero-title .grad { background-image: linear-gradient(100deg, #3730a3 0%, #7c3aed 28%, #db2777 52%, #7c3aed 76%, #3730a3 100%); filter: none; }
.v8 .btn-primary { background: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 8px 20px -12px rgba(10,15,31,.6); }
.v8 .btn-primary:hover { background: #1c2236; }
.v8 .btn:not(.btn-primary):not(.btn-ghost) { background: #fff; backdrop-filter: none; }
/* The ribbon: one bold slanted field of color; Figure 1 floats over it */
.v8 .band-overview { position: relative; overflow: hidden; background: #fff; padding-top: 1.5rem; }
.ribbon { position: absolute; left: -10%; right: -10%; top: 9rem; height: 26rem; transform: skewY(-6deg); overflow: hidden; background: linear-gradient(100deg, #312e81 0%, #6d28d9 30%, #db2777 62%, #f59e0b 100%); }
.ribbon span { position: absolute; border-radius: 50%; filter: blur(56px); mix-blend-mode: screen; animation: drift 16s ease-in-out infinite alternate; }
.ribbon span:nth-child(1) { width: 44rem; height: 26rem; left: -4rem; top: -6rem; background: #22d3ee; opacity: .75; }
.ribbon span:nth-child(2) { width: 36rem; height: 24rem; left: 32%; top: 6rem; background: #6366f1; opacity: .8; animation-delay: -5s; }
.ribbon span:nth-child(3) { width: 34rem; height: 22rem; right: 4%; top: -4rem; background: #f472b6; opacity: .7; animation-delay: -10s; }
.ribbon span:nth-child(4) { width: 28rem; height: 18rem; right: -6rem; top: 10rem; background: #38bdf8; opacity: .55; animation-delay: -14s; }
.v8 .band-overview > .figure, .v8 .band-overview > .stat-row { position: relative; z-index: 1; }
.v8 .teaser { background: linear-gradient(#f4f5f8, #f4f5f8) padding-box, linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)) border-box; box-shadow: 0 50px 100px -40px rgba(10,15,31,.45), 0 30px 60px -30px rgba(49,46,129,.35); }
.v8 .band-overview > .figure figcaption { position: relative; margin-top: 1rem; padding: .7rem 1rem; border-radius: 12px; background: rgba(255,255,255,.92); }
.v8 .stat-row { margin-top: 3.5rem; background: linear-gradient(#fff, #fff) padding-box, var(--edge) border-box; box-shadow: 0 24px 60px -40px rgba(10,15,31,.3); }
.v8 .stat-row strong { background: linear-gradient(120deg, #312e81, #7c3aed 50%, #db2777); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Sections: white and a neutral gray, hairlines between */
.v8 .band-alt { background: var(--page-tint); box-shadow: inset 0 1px 0 #ececf0, inset 0 -1px 0 #ececf0; --stage: #eceef2; }
.v8 .band:not(.band-alt) { --stage: #f3f4f7; }
.v8 .eyebrow { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(10,15,31,.1); }
.v8 .eyebrow::before { background: linear-gradient(135deg, #6366f1, #db2777); }
.v8 .sec-intro h2::after { background: linear-gradient(90deg, #6366f1, #db2777); }
.v8 .topnav-links a.active { background: #f1f2f5; color: var(--ink); }
.v8 .topnav.scrolled { box-shadow: 0 1px 0 rgba(10,15,31,.08); }
.v8 .footer-light { background: #fafafa; }
@media (prefers-reduced-motion: reduce) {
.ribbon span { animation: none; }
}
@media (max-width: 640px) {
.ribbon { top: 6rem; height: 18rem; transform: skewY(-9deg); }
.v8 .band-overview > .figure figcaption { padding: .6rem .8rem; }
}
/* ==================== v9.css ==================== */
/* Copyright (c) Microsoft Corporation. Licensed under the MIT License. */
/* WordEval v9 (loaded after v8.css): make the name stick.
   A bigger wordmark, a one-line brand statement, the robot as the logo, a scanning Figure 1,
   and the wordmark again, huge, at the bottom of the page. */
/* Logo: the robot head next to the name */
.brand-bot { flex: none; filter: drop-shadow(0 2px 4px rgba(79,70,229,.25)); }
.v9 .brand { gap: .45rem; font-size: 1.08rem; letter-spacing: -.03em; }
/* Hero */
.v9 .hero { padding: 9.5rem 0 3rem; }
.v9 .hero-title { margin-top: 1.6rem; }
.v9 .hero-title .grad { font-size: clamp(4.4rem, 13.5vw, 9.6rem); letter-spacing: -.06em; }
/* The paper title sits under the wordmark as its subtitle. */
.hero-paper { display: block; margin: 1rem auto 0; max-width: 46rem; font: 600 clamp(1.1rem, 2.2vw, 1.45rem)/1.35 var(--font); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
/* One fact instead of a slogan: 559 of 642 tasks pass for the best system (Table 1). */
.v9 .hero-cta { margin-top: 2rem; }
.v9 .hero-authors .authors { font-size: .86rem; }
/* Footer: the name, one more time, as large as the page allows */
.v9 .footer-light { overflow: hidden; padding-bottom: 0; }
.footer-wordmark { margin: 2.4rem 0 0; text-align: center; font: 800 clamp(5rem, 22vw, 20rem)/.78 var(--font); letter-spacing: -.07em; background: linear-gradient(180deg, rgba(99,102,241,.2) 0%, rgba(219,39,119,.08) 55%, rgba(219,39,119,0) 92%); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; }
@media (max-width: 640px) {
.v9 .hero { padding: 7.5rem 0 2.5rem; }
}
/* ==================== v10.css ==================== */
/* Copyright (c) Microsoft Corporation. Licensed under the MIT License. */
/* WordEval v10 (loaded after v9.css): a focused first screen.
   The hero fills the viewport; the name, its title, one fact, and two actions sit in the optical
   center, and the author block waits at the bottom edge instead of competing with the name. */
.v10 .hero { padding: 0; }
.v10 .hero-inner { display: flex; flex-direction: column; align-items: center; min-height: 100svh; padding: 6.5rem 0 2rem; }
.v10 .hero-meta { margin-top: auto; }
.v10 .hero-title { margin-top: 1.4rem; }
.v10 .hero-paper { margin-top: .9rem; font-weight: 500; color: var(--body); }
.v10 .hero-cta { margin-top: 2.2rem; }
.v10 .btn { padding: .72rem 1.35rem; font-size: .95rem; }
/* A quiet scroll cue between the call to action and the authors */
.hero-scroll { margin-top: auto; margin-bottom: 1.4rem; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--muted); }
.hero-scroll span { width: .5rem; height: .5rem; margin-top: -.2rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); animation: cue 2.2s ease-in-out infinite; }
.hero-scroll:hover { color: var(--ink); border-color: var(--ink); }
@keyframes cue { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: .5; } 50% { transform: translateY(3px) rotate(45deg); opacity: 1; } }
/* Authors: small and even, at the bottom of the first screen */
.v10 .hero-authors { margin-top: 0; padding-top: 1.2rem; border-top: 1px solid var(--hairline); width: min(56rem, 100%); }
.v10 .hero-authors .authors { font-size: .82rem; line-height: 1.75; color: var(--body); }
.v10 .hero-authors .authors span { margin: 0 .28rem; }
.v10 .affiliations { margin-top: .3rem; font-size: .82rem; }
.v10 .author-notes { font-size: .74rem; }
@media (prefers-reduced-motion: reduce) {
.hero-scroll span { animation: none; }
}
@media (max-width: 640px) {
.v10 .hero-inner { min-height: 0; padding: 6.5rem 0 1.5rem; }
.v10 .hero-meta { margin-top: 0; }
.hero-scroll { display: none; }
.v10 .hero-authors { margin-top: 2.2rem; }
}
/* ==================== v11.css ==================== */
/* Copyright (c) Microsoft Corporation. Licensed under the MIT License. */
/* WordEval v11 (loaded after v10.css): "midnight", a dark stage for the name and a white page below.
   Scoped to html[data-bg="midnight"]. */
/* ---------- Shared ---------- */
.v11 .ribbon, .v11 .hero-grid { display: none; }
.v11 .band-overview { background: transparent; padding-top: 1rem; }
.v11 .hero { background: var(--hero-bg, var(--page)); }
/* Earlier layers redefine --stage per band; restore the theme value everywhere. */
.v11 .band:not(.x-none) { --stage: var(--stage-t, #eff1f5); }
.v11 .teaser { border: 1px solid var(--hairline); background: var(--stage); }
.v11 .panel { border: 1px solid var(--hairline); background: var(--stage); }
.v11 .sankey-panel, .v11 .table-scroll { border: 1px solid var(--hairline); background: var(--card, #fff); }
.v11 .stat-row { border: 1px solid var(--hairline); background: var(--card, #fff); }
.v11 .band-alt { background: var(--page-tint); box-shadow: inset 0 1px 0 var(--hairline), inset 0 -1px 0 var(--hairline); }
.v11 .footer-light { background: var(--page-tint); }
.v11 .topnav { background: color-mix(in srgb, var(--page) 82%, transparent); }
.v11 .topnav.scrolled { background: color-mix(in srgb, var(--page) 92%, transparent); box-shadow: 0 1px 0 var(--hairline); }
.v11 .topnav-links a.active { background: var(--surface-2); color: var(--ink); }
.v11 .hero-title .grad { background-image: var(--title-grad); }
.v11 .stat-row strong { background-image: var(--num-grad); }
.v11 .footer-wordmark { background-image: var(--foot-grad); }
.v11 .sk-node.atomic .sk-bar { fill: var(--atomic); }
.v11 .sk-node.comp .sk-bar { fill: var(--comp); }
.v11 #sk-grad stop:first-child { stop-color: var(--atomic); }
.v11 #sk-grad stop:last-child { stop-color: var(--comp); }
/* ---------- Midnight: a dark stage for the name, white page below ---------- */
html[data-bg="midnight"] body.v11 {
  --page: #ffffff; --page-tint: #f6f7f9; --hairline: #eceef2; --stage: #eff1f5; --stage-t: #eff1f5;
  --hero-bg: radial-gradient(46rem 28rem at 50% 36%, rgba(99,102,241,.32), transparent 70%), radial-gradient(28rem 18rem at 52% 30%, rgba(56,189,248,.16), transparent 70%), #07090f;
  --title-grad: linear-gradient(100deg, #a5b4fc 0%, #c4b5fd 30%, #f0abfc 55%, #c4b5fd 80%, #a5b4fc 100%);
  --num-grad: linear-gradient(110deg, #312e81, #6d28d9 60%, #a21caf);
  --foot-grad: linear-gradient(180deg, rgba(99,102,241,.18) 0%, rgba(99,102,241,0) 85%);
}
html[data-bg="midnight"] .v11 .hero-meta { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #e5e7eb; box-shadow: none; }
html[data-bg="midnight"] .v11 .hero-paper { color: #cbd5e1; }
/* Motivation, in one plain sentence under the title */
html[data-bg="midnight"] .v11 .hero-motive { margin: 1.1rem auto 0; max-width: 36rem; font-size: clamp(1rem, 1.7vw, 1.12rem); line-height: 1.6; color: #94a3b8; text-wrap: balance; }
html[data-bg="midnight"] .v11 .btn:not(.btn-primary):not(.btn-ghost) { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #f1f5f9; }
html[data-bg="midnight"] .v11 .btn-primary { background: #fff; border-color: #fff; color: #07090f; box-shadow: 0 0 30px -8px rgba(165,180,252,.6); }
html[data-bg="midnight"] .v11 .hero-authors { border-top-color: rgba(255,255,255,.1); }
html[data-bg="midnight"] .v11 .hero-authors .authors { color: #cbd5e1; }
html[data-bg="midnight"] .v11 .affiliations { color: #94a3b8; }
html[data-bg="midnight"] .v11 .author-notes, html[data-bg="midnight"] .v11 .hero-authors sup { color: #64748b; }
html[data-bg="midnight"] .v11 .hero-scroll { border-color: rgba(255,255,255,.2); color: #94a3b8; }
html[data-bg="midnight"] .v11 .topnav:not(.scrolled) { background: transparent; box-shadow: none; }
html[data-bg="midnight"] .v11 .topnav:not(.scrolled) .brand { color: #fff; }
html[data-bg="midnight"] .v11 .topnav:not(.scrolled) .topnav-links a { color: #cbd5e1; }
html[data-bg="midnight"] .v11 .topnav:not(.scrolled) .topnav-cta { background: #fff; border-color: #fff; color: #07090f; }
/* Figure 1 rises out of the dark stage */
html[data-bg="midnight"] .v11 .band-overview { background: linear-gradient(180deg, #07090f 0, #07090f 15rem, var(--page) 15rem); padding-top: 2.5rem; }
/* The example's one-line setup, on the dark stage just above Figure 1 */
.fig-lead { margin-bottom: 1.3rem; display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: .4rem .7rem; text-align: center; font-size: clamp(1.05rem, 2vw, 1.3rem); font-weight: 600; letter-spacing: -.015em; color: #e5e7eb; }
.fig-lead-tag { padding: .18rem .6rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #a5b4fc; }
html[data-bg="midnight"] .v11 .teaser { border-color: rgba(255,255,255,.12); box-shadow: 0 50px 110px -50px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04); }
/* The page closes on the same dark stage */
html[data-bg="midnight"] .v11 .footer-light { background: #07090f; color: #8b93a7; border-top: 0; }
html[data-bg="midnight"] .v11 .footer-light .brand { color: #fff; }
html[data-bg="midnight"] .v11 .footer-light a { color: #cbd5e1; }
html[data-bg="midnight"] .v11 .footer-wordmark { background-image: linear-gradient(180deg, rgba(165,180,252,.34) 0%, rgba(192,132,252,.12) 55%, rgba(192,132,252,0) 92%); }
@media (max-width: 640px) {
html[data-bg="midnight"] .v11 .band-overview { background: linear-gradient(180deg, #07090f 0, #07090f 12rem, var(--page) 12rem); }
}
/* RQ2 and RQ3 charts at 95% of the panel width */
.v11 #comp-paper, .v11 #outcomes { width: 95%; margin-inline: auto; }
/* ==================== v12.css ==================== */
/* Copyright (c) Microsoft Corporation. Licensed under the MIT License. */
/* WordEval v12 (loaded after v11.css): one palette, one surface, one rhythm.
   Indigo carries the brand and every data figure, teal and rose mark pass and fail, all figures share
   one white card, and section labels drop their pills and rules. Scoped to body.v12. */
/* ---------- Tokens ---------- */
/* Earlier layers set tokens on body.v11 under html[data-bg]; match that to take over. */
html[data-bg] body.v12 {
  --night: #06070d;
  --page: #ffffff; --page-tint: #f7f8fb; --card: #ffffff;
  --hairline: #e8eaf0; --border: #e3e6ee; --border-strong: #d3d8e2;
  --surface-2: #f5f6f9; --stage: #eef0f5; --stage-t: #eef0f5;
  --ink: #0b1020; --body: #475067; --muted: #6a7186;
  --accent: #4f46e5; --accent-ink: #4338ca; --accent-soft: #eef0ff;
  /* Data: Atomic indigo flows into Compositional violet; one indigo ramp for every sequential scale. */
  --atomic: #4f46e5; --comp: #a855f7; --comp-ink: #7e22ce;
  --pass: #0f766e; --pass-soft: #e2f3f0;
  --fail: #e11d48; --fail-soft: #fdecef;
  --missing: #d5d9e3; --missing-ink: #1f2633;
  --heat-0: #312e81; --heat-1: #4f46e5; --heat-2: #8b93f6; --heat-3: #b9c0fb; --heat-4: #dde1fd; --heat-5: #f3f4ff;
  --heat-ink-0: #ffffff; --heat-ink-1: #ffffff; --heat-ink-2: #0b1020; --heat-ink-3: #0b1020; --heat-ink-4: #0b1020; --heat-ink-5: #0b1020;
  --cpf-0: #312e81; --cpf-1: #4f46e5; --cpf-2: #818cf8; --cpf-3: #b4bcfb; --cpf-4: #e0e4ff;
  --brand-grad: linear-gradient(100deg, #4f46e5 0%, #7c3aed 55%, #a855f7 100%);
  --num-grad: linear-gradient(110deg, #312e81 0%, #4f46e5 45%, #7e22ce 100%);
  --title-grad: linear-gradient(100deg, #b4c0fd 0%, #c4b5fd 30%, #f0c6fd 60%, #c4b5fd 80%, #b4c0fd 100%);
  --hero-bg: radial-gradient(54rem 30rem at 50% 36%, rgba(99,102,241,.28), transparent 70%), radial-gradient(30rem 18rem at 64% 28%, rgba(168,85,247,.15), transparent 70%), radial-gradient(26rem 16rem at 36% 44%, rgba(56,189,248,.08), transparent 70%), var(--night);
  --card-shadow: 0 1px 2px rgba(11,16,32,.04), 0 18px 40px -30px rgba(11,16,32,.24);
  --card-shadow-hover: 0 1px 2px rgba(11,16,32,.05), 0 26px 56px -32px rgba(49,46,129,.34);
  --r-lg: 20px; --r-md: 14px;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;
  --ease: cubic-bezier(.2,.7,.2,1);
}
/* ---------- Type ---------- */
body.v12 { font-size: 16.5px; line-height: 1.7; letter-spacing: -.004em; font-optical-sizing: auto; }
.v12 ::selection { background: #dfe3ff; color: var(--ink); }
.v12 p { text-wrap: pretty; }
.v12 h2 { font-size: clamp(2rem, 3.5vw, 2.7rem); font-weight: 650; line-height: 1.08; letter-spacing: -.032em; text-wrap: balance; }
.v12 h3 { font-weight: 640; letter-spacing: -.022em; text-wrap: balance; }
.v12 figcaption { margin-top: 1rem; font-size: .84rem; line-height: 1.6; }
.v12 figcaption b { font-weight: 650; }
/* ---------- Navigation ---------- */
.v12 .topnav { gap: 2rem; }
.v12 .topnav-links a { padding: .38rem .8rem; font-size: .86rem; transition: background-color .2s, color .2s; }
.v12 .topnav-links a.active { background: var(--accent-soft); color: var(--accent-ink); }
.v12 .topnav-cta { border-radius: 10px; }
html[data-bg] .v12 .topnav:not(.scrolled) .topnav-links a { color: #b9bfd3; }
html[data-bg] .v12 .topnav:not(.scrolled) .topnav-links a:hover { color: #fff; }
/* Reading progress along the bottom edge of the bar (scroll-driven; hidden where unsupported). */
.v12 .topnav::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand-grad); transform: scaleX(0); transform-origin: 0 50%; opacity: 0; transition: opacity .3s; pointer-events: none; }
.v12 .topnav.scrolled::after { opacity: 1; }
@supports (animation-timeline: scroll()) {
.v12 .topnav::after { animation: v12-progress linear both; animation-timeline: scroll(root block); }
}
@keyframes v12-progress { to { transform: scaleX(1); } }
/* ---------- Hero ---------- */
.v12 .hero-grid { display: block; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 64px 64px; background-position: center top; -webkit-mask-image: radial-gradient(ellipse 58% 46% at 50% 38%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 58% 46% at 50% 38%, #000 10%, transparent 72%); }
html[data-bg] .v12 .hero-meta { gap: .55rem; padding: .32rem .9rem; border-color: rgba(255,255,255,.12); background: rgba(255,255,255,.045); color: #d6daea; font-weight: 500; letter-spacing: .01em; }
.v12 .hero-meta::before { background: linear-gradient(135deg, #818cf8, #c084fc); box-shadow: 0 0 0 3px rgba(129,140,248,.16), 0 0 12px rgba(167,139,250,.7); }
.v12 .hero-title .grad { animation-duration: 14s; filter: drop-shadow(0 14px 44px rgba(99,102,241,.22)); }
html[data-bg] .v12 .hero-paper { color: #e2e5f0; font-weight: 500; letter-spacing: -.018em; }
html[data-bg] .v12 .hero-motive { max-width: 46rem; color: #8e96ad; }
.v12 .btn { height: 2.85rem; padding: 0 1.3rem; border-radius: 10px; font-size: .94rem; font-weight: 600; letter-spacing: -.005em; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s; }
html[data-bg] .v12 .btn-primary { background: #fff; border-color: #fff; color: var(--night); box-shadow: 0 0 0 1px rgba(255,255,255,.1), 0 10px 30px -10px rgba(165,180,252,.55); }
html[data-bg] .v12 .btn-primary:hover { background: #eef0ff; border-color: #eef0ff; }
html[data-bg] .v12 .btn:not(.btn-primary):not(.btn-ghost) { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); color: #eef0f7; backdrop-filter: blur(8px); }
html[data-bg] .v12 .btn:not(.btn-primary):not(.btn-ghost):hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.26); color: #fff; }
html[data-bg] .v12 .hero-scroll { border-color: rgba(255,255,255,.16); color: #8e96ad; transition: border-color .2s, color .2s; }
html[data-bg] .v12 .hero-scroll:hover { border-color: rgba(255,255,255,.4); color: #fff; }
/* ---------- Figure 1 on the dark stage ---------- */
/* The stage now ends at a fixed share of Figure 1 (through the documents), at any width. */
html[data-bg] .v12 .band-overview { background: var(--page); padding-top: 2.75rem; isolation: isolate; }
.v12 .band-overview > .fig-lead { position: relative; z-index: 2; }
.v12 #teaser::before { content: ""; position: absolute; z-index: -1; top: -40rem; bottom: 60%; left: 50%; width: 100vw; transform: translateX(-50%); background: var(--night); pointer-events: none; }
/* The stage belongs to Figure 1, so Figure 1 is always shown rather than revealed on scroll. */
.reveal-ready .v12 #teaser { opacity: 1; transform: none; transition: none; }
.v12 .fig-lead { display: block; max-width: 44rem; color: #e6e8f2; font-weight: 550; line-height: 1.45; text-wrap: balance; }
.v12 .fig-lead-tag { display: table; margin: 0 auto .75rem; border-color: rgba(165,180,252,.28); background: rgba(129,140,248,.08); color: #b4bcfb; }
html[data-bg] .v12 .teaser { border-color: rgba(148,163,184,.24); background: var(--stage); box-shadow: 0 44px 96px -48px rgba(6,7,13,.6), 0 0 0 1px rgba(255,255,255,.03); }
.v12 .band-overview > .figure figcaption { margin-top: 1rem; padding: 0; border-radius: 0; background: none; }
.v12 .teaser .request { flex-direction: column; gap: .3rem; font-size: 1.02rem; line-height: 1.5; }
/* X-ray: a deep indigo field, with the output in the fail rose and the reference in the pass teal */
/* Key numbers: open, divided by hairlines */
.v12 .stat-row { margin-top: 4rem; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.v12 .stat-row > div { padding: .3rem 1.5rem; }
.v12 .stat-row > div + div { border-left: 1px solid var(--hairline); }
.v12 .stat-row strong { font-size: clamp(2.3rem, 4.4vw, 3.1rem); font-weight: 680; letter-spacing: -.045em; line-height: 1; }
.v12 .stat-row span { margin-top: .8rem; font-size: .92rem; }
/* ---------- Sections ---------- */
.v12 .band { padding: 7rem 0; }
.v12 .eyebrow { display: inline-flex; align-items: center; gap: .7rem; margin-bottom: 1.1rem; padding: 0; border-radius: 0; background: none; box-shadow: none; color: var(--accent); font: 600 .74rem/1.2 var(--font); letter-spacing: .16em; text-transform: uppercase; -webkit-text-fill-color: currentColor; }
.v12 .eyebrow::before, .v12 .eyebrow::after { content: ""; width: 1.4rem; height: 1px; border-radius: 0; background: currentColor; box-shadow: none; opacity: .35; }
.v12 .sec-intro h2::after { content: none; }
/* One text measure for section intros and the abstract, narrower than the figures. RQ blocks keep the full column. */
body.v12 { --measure: 52rem; }
.v12 .sec-intro > p:not(.eyebrow) { max-width: var(--measure); margin-inline: auto; font-size: 1.05rem; color: var(--body); text-wrap: pretty; }
.v12 #abstract.sec-intro > p:not(.eyebrow) { max-width: var(--measure); font-size: 1.02rem; line-height: 1.8; text-wrap: pretty; }
.v12 .band > .prose + .figure, .v12 .band > .prose + .figure + .figure { margin-top: 2.8rem; }
/* Research questions: the question, then its finding below it (as in v11) */
.v12 .band > .prose.rq { margin-top: 6.5rem; }
.v12 .rq h3 { margin: 0 0 .7rem; font-size: 1.5rem; line-height: 1.25; }
.v12 .rq p { font-size: 1.05rem; }
/* Run-in paragraph heads and a labeled findings list, as in the paper's analysis paragraphs */
.v12 .run-in { color: var(--ink); font-weight: 650; }
.v12 .findings { margin: 1.4rem 0; border-top: 1px solid var(--hairline); }
.v12 .findings > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--hairline); }
.v12 .findings dt { color: var(--ink); font-weight: 650; }
.v12 .findings dd { min-width: 0; margin: 0; font-size: 1.05rem; }
.v12 .findings + p { margin-top: 1.4rem; }
.v12 .rq-n { display: block; width: max-content; margin-bottom: .6rem; padding: .18rem .55rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent-ink); font: 600 .72rem/1.4 var(--font); letter-spacing: .08em; }
/* ---------- One card for every figure ---------- */
.v12 .panel, .v12 .sankey-panel, .v12 .figure > .table-scroll { border: 1px solid var(--hairline); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--card-shadow); transition: box-shadow .35s var(--ease), border-color .35s; }
.v12 .panel:hover, .v12 .sankey-panel:hover, .v12 .figure > .table-scroll:hover { border-color: #dfe2ec; box-shadow: var(--card-shadow-hover); }
.v12 .panel { padding: 1.6rem 1.75rem; }
.v12 .panel .table-scroll { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
/* Panel labels read the same in every figure: sentence case, ink, semibold (Figures 2, 4, 5, 6). */
.v12 .flow-bar .kicker, .v12 .heat-legend > span:first-child { font: 600 .86rem/1.4 var(--font); letter-spacing: 0; text-transform: none; color: var(--ink); }
.v12 .cpf-rowlabel { font-size: .86rem; color: var(--ink); }
/* Figure 2: stages are quiet tiles on the card; the selected one lifts */
.v12 .flow-bar { align-items: center; margin-bottom: 1.1rem; }
.v12 .link-btn { padding: .3rem .85rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border); font-size: .8rem; font-weight: 600; color: var(--accent-ink); transition: background-color .2s, box-shadow .2s; }
.v12 .link-btn:hover { text-decoration: none; background: var(--accent-soft); box-shadow: inset 0 0 0 1px transparent; }
.v12 .stage { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline); transition: box-shadow .2s, background-color .2s; }
.v12 .stage:hover { background: #fff; box-shadow: inset 0 0 0 1px var(--border-strong); }
.v12 .stage.oracle { background: color-mix(in oklab, var(--accent) 5%, var(--surface-2)); }
.v12 .stage[aria-pressed="true"] { background: #fff; box-shadow: 0 0 0 2px var(--accent), 0 14px 30px -18px rgba(79,70,229,.55); }
.v12 .stage-n { background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.v12 .stage[aria-pressed="true"] .stage-n, .v12 .stage-title .stage-n { background: var(--accent); color: #fff; box-shadow: none; }
.v12 .chip { background: #fff; box-shadow: inset 0 0 0 1px var(--hairline); }
.v12 .chip.faint { background: none; box-shadow: none; }
.v12 .chip.check { background: var(--accent-soft); box-shadow: none; color: var(--accent-ink); }
.v12 .chip.ref { background: var(--pass-soft); box-shadow: none; }
.v12 .stage-detail { margin-top: 1.2rem; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline); }
.v12 .stage-example { background: #fff; box-shadow: inset 0 0 0 1px var(--hairline); }
/* Figure 3 */
.v12 .sankey-panel { padding: 1.5rem 1.6rem 1.1rem; }
.v12 .sk-inner { background: var(--surface-2); border-color: var(--hairline); }
.v12 .sk-inner .cmd-chips li { background: #fff; box-shadow: inset 0 0 0 1px var(--hairline); }
/* Table 1: the Overall columns read as one tinted band; the leader in indigo */
.v12 .figure > .table-scroll { padding: .5rem 1.4rem .6rem; }
.v12 .results-table { font-size: .9rem; }
.v12 .results-table th, .v12 .results-table td { padding: .62rem .75rem; border-bottom-color: var(--hairline); }
.v12 .results-table thead tr:first-child th { font-size: .82rem; font-weight: 600; border-bottom-color: var(--border); }
.v12 .results-table thead tr:last-child th { font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.v12 .results-table tbody tr { transition: background-color .15s; }
.v12 .results-table tbody tr:hover { background: #fafbfe; }
.v12 .results-table td.sorted { background-color: transparent; background-image: linear-gradient(rgba(79,70,229,.06), rgba(79,70,229,.06)); color: var(--ink); }
.v12 .results-table td:nth-child(6), .v12 .results-table td:nth-child(7),
.v12 .results-table thead tr:first-child th:last-child,
.v12 .results-table thead tr:last-child th:nth-child(5), .v12 .results-table thead tr:last-child th:nth-child(6) { background-color: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.v12 .results-table td.best { color: var(--accent-ink); font-weight: 650; }
.v12 .sort-btn { letter-spacing: inherit; text-transform: inherit; }
/* Phone-only hints (shown in the narrow-screen block) */
.v12 .scroll-hint { display: none; margin: 0 0 .5rem; text-align: right; font-size: .74rem; color: var(--muted); }
/* Figure 4: indigo heatmap */
.v12 .heat-legend { margin-bottom: 1rem; }
.v12 .heat-bins i { border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(49,46,129,.1); }
.v12 .heatmap table { border-spacing: 3px; }
.v12 .heat-cell { height: 2rem; border-radius: 6px; font-size: .72rem; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(49,46,129,.08); transition: transform .15s var(--ease), box-shadow .15s; }
.v12 .heat-cell:hover { position: relative; z-index: 1; transform: scale(1.06); box-shadow: inset 0 0 0 1px rgba(49,46,129,.2), 0 6px 14px -6px rgba(49,46,129,.45); }
.v12 .heat-cell[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 1px; }
.v12 .heat-detail { margin-top: 1.1rem; padding-top: .9rem; border-top: 1px solid var(--hairline); }
/* Figure 5: the paper's layout in the page palette */
.v12 .cpf-rowlabel b { color: var(--accent-ink); }
.v12 .cpf .cpf-panel figcaption { font-weight: 600; }
.v12 .cpf-bar rect:not(.cpf-hit) { stroke: rgba(49,46,129,.5); stroke-width: 1; }
.v12 .cpf-axis, .v12 .cpf-tick { stroke: #b7bdcb; stroke-width: 1.2; }
.v12 .cpf-ylab { font: 500 10px var(--font); fill: var(--muted); }
.v12 .cpf-legend i { width: 1.1rem; height: .75rem; border: 1px solid rgba(49,46,129,.5); border-radius: 3px; }
/* Figure 6: the paper's two-panel failure analysis, drawn by v12.js.
   Incorrect and invalid outputs share the fail hue (invalid darker); missing outputs stay neutral. */
/* Failure categories use the page's indigo, like Figures 4 and 5: incorrect dark, invalid light, missing gray. */
.v12 #outcomes { width: 100%; --incorrect: #4338ca; --invalid: #a5b4fc; --fa-gap: .9rem; --fa-val: 3.2rem; --fa-sep: var(--card); }
.v12 .fa-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.4rem 3.5rem; }
.v12 .fa-panel { min-width: 0; display: grid; align-content: start; gap: .85rem; }
/* Side by side, the two panels share rows (label, legend, bars, axis, axis title), so their bars start and end together. */
@media (min-width: 901px) {
.v12 .fa-grid { grid-template-rows: repeat(5, auto); row-gap: .85rem; }
.v12 .fa-panel { grid-row: 1 / -1; grid-template-rows: subgrid; }
.v12 .fa-b .fa-bars { align-content: space-between; }
}
.v12 .fa-a { --fa-name: 8.5rem; }
.v12 .fa-b { --fa-name: 10.5rem; }
.v12 .fa-label { display: flex; align-items: baseline; gap: .55rem; margin: 0; font-size: .86rem; font-weight: 600; color: var(--ink); }
.v12 .fa-label b { font-size: 1.05rem; color: var(--accent-ink); }
.v12 .fa-legend { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; margin: 0 0 .4rem; padding: 0; list-style: none; font-size: .8rem; color: var(--body); }
.v12 .fa-legend li { display: inline-flex; align-items: center; gap: .45rem; }
.v12 .fa-legend i { width: .7rem; height: .7rem; border-radius: 2px; }
/* Bars: name | bar | value. Gridlines are one layer behind the bar column, unbroken from the first row to the last. */
.v12 .fa-bars { position: relative; display: grid; gap: .55rem; margin: 0; padding: .35rem 0; list-style: none; }
.v12 .fa-bars::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--fa-name) + var(--fa-gap)); right: calc(var(--fa-val) + var(--fa-gap)); background: linear-gradient(90deg, var(--hairline) 1px, transparent 1px) 0 0 / calc(100% / 3) 100%; box-shadow: inset 1px 0 0 var(--border-strong), inset -1px 0 0 var(--hairline); pointer-events: none; }
.v12 .fa-bars li, .v12 .fa-axis { position: relative; display: grid; grid-template-columns: var(--fa-name) minmax(0, 1fr) var(--fa-val); align-items: center; gap: var(--fa-gap); }
.v12 .fa-name { text-align: right; font-size: .86rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v12 .fa-bars li.lead .fa-name, .v12 .fa-bars li.lead .fa-val { font-weight: 700; }
.v12 .fa-track { display: flex; align-items: center; height: 1.25rem; }
.v12 .fa-stack { display: flex; height: 100%; overflow: hidden; border-radius: 0 3px 3px 0; }
.v12 .fa-seg { flex: 1 1 0; min-width: 2px; height: 100%; transition: filter .15s; }
.v12 .fa-seg + .fa-seg { box-shadow: inset 1.5px 0 0 var(--fa-sep); }
.v12 .fa-seg:hover { filter: brightness(1.12); }
.v12 .fa-seg.incorrect, .v12 .fa-legend .incorrect, .v12 .fa-seg.type { background: var(--incorrect); }
.v12 .fa-seg.invalid, .v12 .fa-legend .invalid { background: var(--invalid); }
.v12 .fa-seg.missing, .v12 .fa-legend .missing { background: var(--missing); }
.v12 .fa-val { text-align: right; font-size: .82rem; font-weight: 500; color: var(--body); font-variant-numeric: tabular-nums; }
.v12 .fa-bars li.lead .fa-val { color: var(--ink); }
.v12 .fa-ticks { position: relative; height: 1.1rem; margin-top: .35rem; }
.v12 .fa-ticks i { position: absolute; top: 0; transform: translateX(-50%); font-style: normal; font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.v12 .fa-axis-title { margin: .2rem 0 0; padding: 0 calc(var(--fa-val) + var(--fa-gap)) 0 calc(var(--fa-name) + var(--fa-gap)); text-align: center; font-size: .78rem; color: var(--muted); }
/* ---------- Closing ---------- */
.v12 .band-closing { padding-bottom: 7.5rem; }
.v12 .statement { text-align: center; }
.v12 .band-closing h2.eyebrow { margin: 0 0 1.4rem; font-size: .74rem; letter-spacing: .16em; }
.v12 .statement p { max-width: var(--measure); margin-inline: auto; font-size: clamp(1.2rem, 2.1vw, 1.5rem); line-height: 1.5; letter-spacing: -.018em; color: var(--body); text-wrap: balance; }
.v12 .statement .lead-in { color: var(--ink); font-weight: 600; }
.v12 .band-closing .prose + .prose { margin-top: 4.5rem; }
.v12 #more + .split { padding-top: 4.5rem; border-top: 1px solid var(--hairline); }
.v12 .split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1rem 4rem; align-items: start; }
.v12 .band-closing .split h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.025em; }
.v12 .split .citation-head { display: block; margin: 0; }
.v12 .split .citation-head .pill { margin-top: 1.1rem; }
.v12 #copy-citation { padding: .32rem .95rem; border-radius: 8px; font-weight: 600; }
/* BibTeX as in v5: the title and Copy on one row, then a full-width gray block in plain monospace. */
.v12 #more + #citation { padding-top: 4.5rem; border-top: 1px solid var(--hairline); }
.v12 #citation .citation-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.v12 #citation .citation-head h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.025em; }
.v12 #copy-citation { border-radius: 999px; }
.v12 #citation pre { padding: 1.15rem 1.3rem; border: 1px solid var(--border); border-radius: 12px; background: #f1f3f7; color: var(--ink); font-size: .8rem; line-height: 1.65; box-shadow: none; }
/* ---------- Footer ---------- */
html[data-bg] .v12 .footer-light { background: var(--night); box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
html[data-bg] .v12 .footer-light a { transition: color .2s; }
html[data-bg] .v12 .footer-light a:hover { color: #fff; text-decoration: none; }
html[data-bg] .v12 .footer-wordmark { background-image: linear-gradient(180deg, rgba(165,180,252,.28) 0%, rgba(167,139,250,.09) 55%, rgba(167,139,250,0) 92%); }
/* ---------- Narrow screens ---------- */
.v12 .sankey-viewport { min-width: 0; }
.v12 .sankey-viewport:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
@media (max-width: 900px) {
.v12 .band { padding: 5rem 0; }
.v12 .split { grid-template-columns: 1fr; gap: .6rem; }
.v12 .fa-grid { grid-template-columns: 1fr; gap: 2.2rem; }
.v12 .band > .prose.rq { margin-top: 5rem; }
.v12 .split > :first-child { margin-bottom: .8rem; }
}
@media (max-width: 640px) {
.v12 .band { padding: 3.75rem 0; }
html[data-bg] .v12 .band-overview { padding-top: 2rem; }
.v12 .stat-row { margin-top: 3rem; }
.v12 .stat-row > div { padding: .2rem .4rem; }
.v12 .stat-row strong { font-size: 1.9rem; }
.v12 .panel { padding: 1.1rem 1rem; }
/* Keep the flow columns apart on phones; scrolling preserves readable labels. */
.v12 .sankey-viewport { overflow-x: auto; overscroll-behavior-x: contain; }
.v12 .sankey { min-width: 420px; }
.v12 .figure > .table-scroll { padding: .3rem .5rem; }
/* Table 1 scrolls sideways; keep the system names in view. */
.v12 .results-table tbody th, .v12 .results-table thead tr:first-child th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); }
.v12 .results-table tbody th small { display: block; margin: 0; }
/* Figure 1 inspector: each property becomes a card, with the two values side by side under its name. */
/* Wide tables scroll sideways: say so, and keep the row names in view. */
.v12 .scroll-hint { display: block; }
.v12 .heatmap tbody th, .v12 .heatmap thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); }
/* Figure 6: narrower name columns */
.v12 .fa-a { --fa-name: 6.6rem; }
.v12 .fa-b { --fa-name: 9rem; }
.v12 #outcomes { --fa-gap: .55rem; --fa-val: 2.7rem; }
.v12 .fa-name, .v12 .fa-val { font-size: .76rem; }
.v12 .cpf-ylab { font-size: 13px; }
.v12 .rq h3 { font-size: 1.3rem; }
.v12 .findings > div { grid-template-columns: minmax(0, 1fr); gap: .25rem; }
.v12 .band > .prose.rq { margin-top: 4rem; }
.v12 #more + .split { padding-top: 3.5rem; }
.v12 .band-closing .prose + .prose { margin-top: 3.5rem; }
}
/* ==================== stage-embed.css ==================== */
/* Copyright (c) Microsoft Corporation. Licensed under the MIT License. */
/* WordEval stage, embedded in index.html as Figure 1. First generated from archive/web/css/stage.css by scoping
   every selector under .stage-embed; the tokens below shadow the page's own for the stage only. Edit it here. */
.stage-embed {
  --ink: #2b2b31; --ink-2: #45454d; --muted: #75757f; --line: #e6e6ea; --bg: #ffffff; --bg-alt: #f7f7f9;
  --link: #2b5fd9; --accent: #2b5fd9; --accent-soft: #eaf0fc;
  --pass: #15803d; --pass-soft: #e8f6ec; --fail: #b91c1c; --fail-soft: #fdecec;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 6px 20px -12px rgba(0,0,0,.18);
  --sans: var(--font, "Noto Sans", system-ui, sans-serif);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display: "Inter", var(--font, "Noto Sans"), system-ui, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  --grad: linear-gradient(90deg, #2563eb 0%, #6366f1 34%, #a855f7 68%, #ec4899 100%);
  --grad-soft: linear-gradient(90deg, rgba(37,99,235,.55), rgba(99,102,241,.55), rgba(168,85,247,.55), rgba(236,72,153,.55));
  width: min(70rem, calc(100% - 2 * var(--gutter, 24px)));
  margin-inline: auto;
  color: var(--ink);
  text-align: left;
}
.stage-embed .stage, .stage-embed .stage-foot { text-align: left; }
.stage-embed .tab { font-family: inherit; }
.stage-embed figcaption { margin-top: 1.1rem; }
@media (prefers-reduced-motion: reduce) {
.stage-embed * { animation: none !important; transition: none !important; }
}
/* ================= STAGE ================= */
.stage-embed .stage { position: relative; display: grid; grid-template-columns: 1.15fr 190px 1.45fr; align-items: stretch; gap: 0 6px; border: 1.5px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad-soft) border-box; border-radius: 20px; padding: 26px 30px 30px; box-shadow: var(--shadow); text-align: left; }
.stage-embed .zone { min-width: 0; }
.stage-embed .zone-label { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; min-height: 1.6rem; }
.stage-embed .zone-label .chip { font-family: var(--sans); font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink-2); background: #f0f0f2; padding: 1px 9px; border-radius: 6px; font-size: .76rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-embed .zone-label .chip.atomic { background: var(--accent-soft); color: #1e40af; }
.stage-embed .zone-label .chip.comp { background: #fff1e5; color: #b45309; }
/* document cards */
.stage-embed .doc { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px -16px rgba(0,0,0,.35); transition: transform .7s var(--ease), opacity .5s ease, filter .5s ease; }
.stage-embed .doc.notrans { transition: none; }
.stage-embed .doc-head { border-radius: 12px 12px 0 0; display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: #fafafb; font-family: var(--mono); font-size: .72rem; color: var(--ink-2); }
.stage-embed .doc-head .w { flex: none; width: 16px; height: 16px; border-radius: 3px; background: #185abd; color: #fff; font: 700 10px/16px var(--sans); text-align: center; font-style: normal; }
.stage-embed .doc-body { position: relative; aspect-ratio: 16 / 8.2; background: #fff; display: flex; align-items: center; justify-content: center; }
.stage-embed .doc-body img { width: 92%; height: 90%; object-fit: contain; }
.stage-embed .doc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stage-embed .doc-pair .doc-body { aspect-ratio: 16 / 12.5; }
.stage-embed .doc-pair .doc-head { padding: 5px 8px; font-size: .68rem; }
.stage-embed .doc-cap { border-top: 1px solid var(--line); padding: 4px 8px; font-size: .68rem; color: var(--muted); }
.stage-embed .doc-in { opacity: 0; transform: translateY(8px) scale(.97); }
.stage-embed .doc-in.show { opacity: 1; transform: none; }
.stage-embed .doc-in.sent { opacity: 0; transform: translateX(60%) scale(.4); }
.stage-embed .doc-in.ghost { opacity: .72; transform: none; }
.stage-embed .bubble { position: relative; margin-top: 12px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: .9rem; line-height: 1.5; color: var(--ink-2); min-height: 106px; transition: transform .6s var(--ease), opacity .5s ease; transform-origin: 100% 50%; }
.stage-embed .bubble.notrans { transition: none; }
.stage-embed .bubble.sent { opacity: 0; transform: translateX(40%) scale(.5); }
.stage-embed .bubble.ghost { opacity: .5; }
.stage-embed .bubble-k { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.stage-embed .bubble .caret { display: inline-block; width: 2px; height: 1em; background: var(--accent); vertical-align: -2px; margin-left: 2px; animation: se-blink 1s steps(1) infinite; }
.stage-embed .bubble.done .caret, .stage-embed .bubble.sent .caret, .stage-embed .bubble.ghost .caret { display: none; }
@keyframes se-blink { 50% { opacity: 0; } }
/* node */
.stage-embed .zone-node { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 250px; gap: 8px; }
.stage-embed .zone-node::before, .stage-embed .zone-node::after { content: ""; position: absolute; top: calc(50% - 22px); height: 2px; width: calc(50% - 66px); background: repeating-linear-gradient(90deg, #d9d9de 0 6px, transparent 6px 12px); }
.stage-embed .zone-node::before { left: 0; }
.stage-embed .zone-node::after { right: 0; }
.stage-embed .zone-node.flow-in::before { background: repeating-linear-gradient(90deg, #6366f1 0 8px, transparent 8px 16px); animation: se-flowr .7s linear infinite; }
.stage-embed .zone-node.flow-out::after { background: repeating-linear-gradient(90deg, #a855f7 0 8px, transparent 8px 16px); animation: se-flowr .7s linear infinite; }
@keyframes se-flowr { to { background-position: 16px 0; } }
.stage-embed .node { position: relative; width: 124px; height: 124px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.stage-embed .node-core { position: relative; z-index: 2; width: 108px; height: 108px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px -14px rgba(0,0,0,.35); transition: transform .4s var(--ease); }
.stage-embed .node-core svg { width: 62px; height: 62px; }
.stage-embed .node.active .node-core { transform: scale(1.06); }
.stage-embed .ring { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #2563eb, #6366f1, #a855f7, #ec4899, #2563eb); opacity: 0; z-index: 1; animation: se-spin 3s linear infinite; transition: opacity .4s; }
.stage-embed .node.active .ring { opacity: 1; }
@keyframes se-spin { to { transform: rotate(360deg); } }
.stage-embed .node-label { font-family: var(--display); font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .1em; }
.stage-embed .node-sub { font-size: .72rem; color: var(--muted); text-align: center; line-height: 1.35; max-width: 176px; }
/* verdict zone: the two JSON readouts Word produced, one per file */
.stage-embed .out-wrap { position: relative; }
.stage-embed .jsons { display: grid; gap: 12px; opacity: 0; transform: scale(.97) translateX(12px); transition: transform .6s var(--ease), opacity .5s ease; }
.stage-embed .jsons.show { opacity: 1; transform: none; }
.stage-embed .json { background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px -16px rgba(0,0,0,.35); overflow: hidden; }
.stage-embed .json-head { display: flex; align-items: center; gap: 7px; padding: 6px 10px; border-bottom: 1px solid var(--line); background: #fafafb; font-family: var(--mono); font-size: .72rem; color: var(--ink-2); }
.stage-embed .json-head i { flex: none; font-style: normal; font-weight: 700; font-size: .62rem; letter-spacing: -.05em; color: #fff; background: #6366f1; border-radius: 3px; padding: 2px 3px; line-height: 1.1; }
.stage-embed .json-head .json-by { margin-left: auto; font-family: var(--sans); font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage-embed .json-body { margin: 0; padding: 8px 12px 10px; background: #fff; border: 0; border-radius: 0; box-shadow: none; font-family: var(--mono); font-size: .76rem; line-height: 1.6; color: var(--ink-2); white-space: pre-wrap; overflow-wrap: anywhere; min-height: calc(9.6em + 22px); }
/* ^ 4 properties + braces, so the stage keeps one height across examples */
.stage-embed .json-body .ln { display: block; position: relative; opacity: 0; transition: opacity .5s ease; border-radius: 4px; margin: 0 -6px; padding: 0 28px 0 6px; }
.stage-embed .json-body .ln.show { opacity: 1; }
.stage-embed .json-body .ln.no { background: var(--fail-soft); }
.stage-embed .json-body .k { color: #4f46e5; }
.stage-embed .json-body .s { color: #0e7490; }
.stage-embed .json-body .n { color: #b45309; }
.stage-embed .json-body .p { color: var(--muted); }
.stage-embed .json-body .ln.no .s, .stage-embed .json-body .ln.no .n { color: var(--fail); font-weight: 600; }
.stage-embed .json-body .mark { position: absolute; right: 6px; top: .2em; width: 16px; height: 16px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-family: var(--sans); font-size: .62rem; font-weight: 800; }
.stage-embed .json-body .ln.ok .mark { background: var(--pass-soft); color: var(--pass); }
.stage-embed .json-body .ln.no .mark { background: #fff; color: var(--fail); border: 1px solid var(--fail-soft); }
.stage-embed #json-ref .json-body .ln.no { background: #fff7f7; }
.stage-embed .stamp { position: absolute; right: 12px; bottom: -14px; display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px 5px 7px; font-size: .8rem; font-weight: 700; color: var(--ink-2); box-shadow: 0 8px 24px -12px rgba(0,0,0,.35); opacity: 0; transition: opacity .45s ease; z-index: 3; }
.stage-embed .stamp.show { opacity: 1; }
.stage-embed .stamp i { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: .7rem; font-weight: 800; }
.stage-embed .stamp.pass i { background: var(--pass-soft); color: var(--pass); }
.stage-embed .stamp.fail i { background: var(--fail-soft); color: var(--fail); }
.stage-embed .stamp.pass b { color: var(--pass); }
.stage-embed .stamp.fail b { color: var(--fail); }
.stage-embed .stamp span { font-weight: 500; color: var(--muted); }
.stage-embed .stage-foot { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 0 4px; text-align: left; }
.stage-embed .tabs { display: flex; flex-wrap: wrap; gap: 8px; max-width: 560px; }
.stage-embed .tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px 5px 6px; font: inherit; font-size: .82rem; font-weight: 600; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: all .2s; position: relative; overflow: hidden; }
.stage-embed .tab i { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-style: normal; font-size: .66rem; font-weight: 800; flex: none; }
.stage-embed .tab.pass i { background: var(--pass-soft); color: var(--pass); }
.stage-embed .tab.fail i { background: var(--fail-soft); color: var(--fail); }
.stage-embed .tab:hover { border-color: #bbb; }
.stage-embed .tab.active { background: #2b2b31; color: #fff; border-color: #2b2b31; }
.stage-embed .tab.active i { background: rgba(255,255,255,.14); color: #fff; }
.stage-embed .tab.active::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--grad); animation: se-tabprog var(--cycle, 14s) linear forwards; }
.stage-embed .tab.active.paused::after { animation: none; width: 0; }
@keyframes se-tabprog { to { width: 100%; } }
.stage-embed .stage-caption { font-size: .86rem; color: var(--muted); max-width: 480px; line-height: 1.55; min-height: 7.75em; }
/* ^ five lines: the longest caption */
.stage-embed .stage-caption b { color: var(--ink-2); font-weight: 600; }
@media (max-width: 980px) {
.stage-embed .stage { grid-template-columns: 1fr; padding: 22px; }
.stage-embed .zone-node { min-height: 190px; }
.stage-embed .zone-node { padding: 26px 0; }
.stage-embed .zone-node::before, .stage-embed .zone-node::after { width: 2px; height: 18px; left: 50%; top: auto; }
.stage-embed .zone-node::before { top: 0; }
.stage-embed .zone-node::after { bottom: 0; }
.stage-embed .zone-node.flow-in::before, .stage-embed .zone-node.flow-out::after { background: repeating-linear-gradient(180deg, var(--accent) 0 8px, transparent 8px 16px); animation: se-flowd .7s linear infinite; }
@keyframes se-flowd { to { background-position: 0 16px; } }
.stage-embed .doc-in.sent { transform: translateY(45%) scale(.4); }
.stage-embed .json-head .json-by { display: none; }
.stage-embed .json-body { min-height: calc(11.2em + 22px); }
.stage-embed .stage-caption { max-width: none; min-height: 9.3em; }
}
/* ==================== v13.css ==================== */
/* Copyright (c) Microsoft Corporation. Licensed under the MIT License. */
/* v13: the embedded Figure 1 stage restyled with the v12 surface system (loaded after stage-embed.css).
   Same markup and behaviour; only tokens and surfaces change so the stage reads as one of the page's own
   cards: hairline borders, 20 px / 14 px radii, the page's Inter, indigo for Atomic and violet for
   Compositional, and the nav's indigo→violet→pink gradient as the only decorative colour. */
.v13 .stage-embed {
  --ink: #18181b; --ink-2: #3f3f46; --muted: #71717a; --line: var(--hairline, #e8eaf0);
  --bg: var(--card, #fff); --bg-alt: var(--surface-2, #f5f6f9);
  --accent: #4f46e5; --accent-soft: #eef0ff;
  --sans: var(--font); --display: var(--font);
  --ease: cubic-bezier(.2,.7,.2,1);
  --shadow: var(--card-shadow);
  --grad: linear-gradient(90deg, #4f46e5 0%, #a855f7 55%, #ec4899 100%);
  --card-soft: 0 1px 2px rgba(11,16,32,.04), 0 10px 24px -18px rgba(11,16,32,.28);
}
/* the stage card itself: a v12 panel */
.v13 .stage-embed .stage { border: 1px solid var(--hairline); background: var(--card); border-radius: var(--r-lg, 20px); box-shadow: var(--card-shadow); padding: 28px 32px 32px; gap: 0 10px; }
/* labels and chips */
.v13 .stage-embed .zone-label { font: 700 .68rem/1.2 var(--font); letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; }
.v13 .stage-embed .zone-label .chip { font: 600 .74rem/1.4 var(--font); letter-spacing: 0; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); }
.v13 .stage-embed .zone-label .chip.atomic { background: #eef0ff; color: #4338ca; }
.v13 .stage-embed .zone-label .chip.comp { background: #f3e8ff; color: #7e22ce; }
/* document, request and JSON cards (JSON syntax colours stay as in index-v2: the user prefers them) */
.v13 .stage-embed .doc, .v13 .stage-embed .json { border: 1px solid var(--hairline); border-radius: var(--r-md, 14px); box-shadow: var(--card-soft); }
.v13 .stage-embed .doc-head { background: var(--surface-2); }
.v13 .stage-embed .doc-head, .v13 .stage-embed .json-head { border-bottom-color: var(--hairline); border-radius: var(--r-md, 14px) var(--r-md, 14px) 0 0; color: var(--ink-2); }
.v13 .stage-embed .doc-cap { border-top-color: var(--hairline); color: var(--muted); }
.v13 .stage-embed .bubble { background: var(--surface-2); border: 1px solid var(--hairline); border-radius: var(--r-md, 14px); color: var(--ink-2); }
.v13 .stage-embed .bubble-k { color: var(--muted); letter-spacing: .08em; }
/* node */
.v13 .stage-embed .zone-node::before, .v13 .stage-embed .zone-node::after { background: repeating-linear-gradient(90deg, #d3d8e2 0 6px, transparent 6px 12px); }
.v13 .stage-embed .zone-node.flow-in::before { background: repeating-linear-gradient(90deg, #4f46e5 0 8px, transparent 8px 16px); }
.v13 .stage-embed .zone-node.flow-out::after { background: repeating-linear-gradient(90deg, #a855f7 0 8px, transparent 8px 16px); }
.v13 .stage-embed .node-core { border-color: var(--hairline); box-shadow: var(--card-soft); }
.v13 .stage-embed .ring { background: conic-gradient(from 0deg, #4f46e5, #a855f7, #ec4899, #4f46e5); }
.v13 .stage-embed .node-label { font: 800 1.3rem/1.2 var(--font); letter-spacing: -.03em; }
.v13 .stage-embed .node-sub { color: var(--muted); }
/* verdict stamp */
.v13 .stage-embed .stamp { border-color: var(--hairline); box-shadow: var(--card-shadow-hover); font-family: var(--font); }
/* tabs and caption under the card: the nav's pill language */
.v13 .stage-embed .stage-foot { margin-top: 18px; }
.v13 .stage-embed .tab { border-color: var(--hairline); background: var(--card); color: var(--ink-2); font-size: .84rem; transition: background-color .2s, color .2s, border-color .2s; }
.v13 .stage-embed .tab:hover { border-color: var(--border-strong, #d3d8e2); background: var(--surface-2); }
.v13 .stage-embed .tab.active { background: var(--accent-soft); color: var(--accent-ink, #4338ca); border-color: transparent; }
.v13 .stage-embed .tab.active i { background: #fff; }
.v13 .stage-embed .tab.active.pass i { color: var(--pass); }
.v13 .stage-embed .tab.active.fail i { color: var(--fail); }
.v13 .stage-embed .tab.active::after { background: var(--grad); border-radius: 0 0 999px 999px; }
.v13 .stage-embed .stage-caption { color: var(--body, #52525b); font-size: .9rem; }
.v13 .stage-embed .stage-caption b { color: var(--ink); }
@media (max-width: 980px) {
.v13 .stage-embed .stage { padding: 22px; }
.v13 .stage-embed .zone-node::before, .v13 .stage-embed .zone-node::after { background: repeating-linear-gradient(180deg, #d3d8e2 0 6px, transparent 6px 12px); }
.v13 .stage-embed .zone-node.flow-in::before, .v13 .stage-embed .zone-node.flow-out::after { background: repeating-linear-gradient(180deg, #4f46e5 0 8px, transparent 8px 16px); }
}
/* lead over the figure: one short statement, lighter, with more air before the card */
.v13 .band-overview > .fig-lead { max-width: 38rem; font-size: clamp(1.05rem, 1.6vw, 1.22rem); font-weight: 500; line-height: 1.5; color: #c9cddb; margin-bottom: 2.6rem; }
.v13 .band-overview > .fig-lead-tag, .v13 .fig-lead .fig-lead-tag { margin-bottom: .9rem; }
/* White surface for the whole figure (user preference): the dark hero ends with the hero, and the lead,
   tag and card sit on the page like every other section. */
.v13 #teaser::before { display: none; }
.v13 .stage-embed .stage-foot { margin-top: 2.2rem; }
.v13 .band-overview > .fig-lead { color: var(--body, #52525b); }
.v13 .band-overview > .fig-lead .fig-lead-tag, .v13 .fig-lead-tag { border-color: transparent; background: var(--accent-soft, #eef0ff); color: var(--accent-ink, #4338ca); }
html[data-bg] .v13 .band-overview { padding-top: 5rem; }
/* Hero: content height instead of a full viewport, so the scroll cue and the authors sit right under the buttons. */
.v13 .hero-inner { min-height: 0; padding: 6.5rem 0 2.25rem; }
.v13 .hero-meta { margin-top: 0; }
.v13 .hero-scroll { margin-top: 2.8rem; margin-bottom: 1.6rem; }
.v13 .hero-authors { padding-top: 1.4rem; }
/* First screen fully dark at any window height: the hero keeps the viewport height, with the whole group
   (title … buttons, scroll cue, authors) centred in it instead of the authors pinned to the bottom edge. */
.v13 .hero-inner { min-height: 100svh; justify-content: center; padding: 5.5rem 0 2.5rem; }
.v13 .hero-meta { margin-top: 0; }
/* ==================== v14.css ==================== */
/* Copyright (c) Microsoft Corporation. Licensed under the MIT License. */
/* v14: reviewer feedback on the v13 page (loaded after v13.css).
   Figure 5B follows the paper's small-sample rule: a system/class cell with fewer than five eligible cases
   shows its count in place of a bar (v2.js renders the count only when body has the v14 class). */
.v14 .cpf-bar.small .cpf-small { font: 600 7.5px/1 var(--mono, ui-monospace, monospace); fill: var(--muted, #71717a); letter-spacing: -.02em; }
.v14 .cpf-bar.small:hover .cpf-small { fill: var(--ink, #18181b); }
/* ==================== explorer-tree.css ==================== */
/* Copyright (c) Microsoft Corporation. Licensed under the MIT License. */
/* Figure 4: the benchmark as an upside-down tree (web/js/explorer-tree.js). On the v12/v13 surface system;
   motion is limited to opacity and colour fades. */
/* one colour per atomic intent number: phrase marks, badges, ports, card outlines, wires */
.xt [data-n="1"] { --ph: #4f46e5; }
.xt [data-n="2"] { --ph: #0d9488; }
.xt [data-n="3"] { --ph: #d97706; }
.xt [data-n="4"] { --ph: #db2777; }
.xt [data-n="5"] { --ph: #0284c7; }
.xt [data-n="6"] { --ph: #7c3aed; }
/* shell, pills */
.xt { border: 1px solid var(--hairline); border-radius: var(--r-lg, 20px); background: var(--card, #fff); box-shadow: var(--card-shadow); }
.xt-nav { padding: 1rem 1.5rem .5rem; border-bottom: 1px solid var(--hairline); }
.xt-label { margin: .4rem 0 .35rem; font: 600 .72rem/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink, #4338ca); }
.xt-label:first-child { margin-top: 0; }
.xt-label.comp { color: var(--comp-ink, #7e22ce); }
.xt-label span { margin-left: .5rem; font-weight: 500; letter-spacing: .02em; text-transform: none; color: var(--muted); }
.xt-pills { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .6rem; }
.xt-pill { padding: .28rem .7rem; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--hairline); font: 500 .8rem/1.4 var(--font); color: var(--ink-2, #3f3f46); cursor: pointer; transition: background-color .2s, color .2s; }
.xt-pill:hover { background: var(--surface-2); }
.xt-pill.active { background: var(--accent-soft, #eef0ff); color: var(--accent-ink, #4338ca); box-shadow: none; }
.xt-pill.comp.active { background: #f3e8ff; color: var(--comp-ink, #7e22ce); }
.xt-pill .class-mark { margin-right: .4rem; }
.xt-card { padding: 1.3rem 1.5rem 1.4rem; opacity: 0; transition: opacity .25s ease; }
.xt-card.is-in { opacity: 1; }
.xt-kind { margin: 0 0 .4rem; font: 700 1.05rem/1.3 var(--font); letter-spacing: -.01em; color: var(--ink); }
.xt-kind span { display: inline-block; margin-left: .4rem; font: 400 .8rem/1.5 var(--font); color: var(--muted); }
.xt-kind .class-mark { margin-right: .4rem; color: var(--comp-ink, #7e22ce); }
.xt-note { margin: .4rem 0 0; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.xt-check { margin: .25rem 0 0; font-size: .8rem; line-height: 1.5; color: var(--body); }
.xt-check b { color: var(--ink); font-weight: 600; }
/* tree grid: level labels on the left */
.xt-tree { position: relative; display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 2.4rem 1rem; align-items: center; margin: .2rem 0 1rem; }
.xt-lv { margin: 0; font: 600 .66rem/1.3 var(--font); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: right; }
.xt-lv small { display: block; margin-top: .2rem; font: 400 .7rem/1.35 var(--font); letter-spacing: 0; text-transform: none; text-wrap: balance; }
.xt-lv.comp { color: var(--comp-ink, #7e22ce); }
.xt-row { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(var(--cols, 1), minmax(0, 1fr)); gap: .8rem; justify-items: center; }
/* feature-area axis */
.xt-axis { position: relative; z-index: 1; display: flex; justify-content: space-between; align-self: end; height: 6rem; padding: 0 .4rem 0 3rem; border-bottom: 1px solid var(--hairline); }
.xt-area { position: relative; width: 0; }
.xt-area i { position: absolute; left: -.3rem; bottom: -.3rem; width: .6rem; height: .6rem; border-radius: 50%; background: #d4d4d8; }
.xt-area > span { position: absolute; right: 0; bottom: .55rem; transform: rotate(38deg); transform-origin: 100% 100%; white-space: nowrap; font-size: .72rem; color: var(--muted); }
.xt-area.used i { background: var(--comp-ink, #7e22ce); box-shadow: 0 0 0 3px #f3e8ff; }
.xt-area.used > span { color: var(--ink); font-weight: 600; }
/* task cards */
.xt-node { display: grid; gap: .25rem; width: 100%; max-width: 15rem; padding: .55rem .6rem .6rem; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--ph, #c7d2fe) 40%, #fff); font-size: .8rem; line-height: 1.4; color: var(--body); transition: box-shadow .2s, opacity .2s; }
.xt-node.lit { box-shadow: inset 0 0 0 2px var(--ph); }
.xt-node.solo { max-width: 30rem; padding: .7rem .8rem .75rem; box-shadow: inset 0 0 0 1.5px #c7d2fe; }
.xt-h { display: flex; align-items: center; gap: .4rem; margin: 0; }
.xt-h b { min-width: 0; overflow-wrap: anywhere; line-height: 1.25; color: var(--ink); font-weight: 600; }
.xt-h small { color: var(--muted); font-size: .72rem; }
.xt-n { display: inline-grid; place-items: center; flex: none; min-width: 1.35rem; height: 1.35rem; padding: 0 .3rem; border-radius: 6px; background: var(--ph, var(--ink)); color: #fff; font: 600 .68rem/1 var(--mono); }
.xt-n.solo { background: #4f46e5; }
.xt-key { margin: 0; font-size: .7rem; color: var(--muted); }
.xt-key code { display: block; font: 500 .72rem/1.4 var(--mono); color: var(--ink-2, #3f3f46); overflow-wrap: anywhere; }
.xt-instr { margin: .2rem 0 .1rem; font-size: .86rem; line-height: 1.45; color: var(--ink); }
.xt-pair { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .35rem; align-items: start; margin: .2rem 0; }
.xt-pair figure { margin: 0; }
.xt-pair img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border: 1px solid var(--hairline); border-radius: 6px; background: #fff; }
.xt-pair figcaption { margin-top: .2rem; font: 500 .62rem/1.3 var(--mono); color: var(--muted); }
.xt-pair > span { align-self: center; margin-top: -1rem; font: 500 .8rem/1 var(--mono); color: var(--muted); }
/* the Compositional task */
.xt-root { position: relative; width: 100%; max-width: 46rem; padding: 1.2rem 1.2rem 1.1rem; border-radius: 16px; background: #faf5ff; box-shadow: inset 0 0 0 1.5px #e9d5ff; }
.xt-ports { position: absolute; left: 50%; top: 0; display: flex; gap: .35rem; margin: 0; transform: translate(-50%, -50%); }
.xt-port { display: grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--ph); color: #fff; font: 700 .64rem/1 var(--mono); box-shadow: 0 0 0 2.5px #faf5ff, 0 0 0 4px #e9d5ff; }
.xt .xt-sent { margin: 0 0 .9rem; font: 500 1.08rem/1.7 var(--font); color: var(--ink); text-wrap: balance; }
.xt-ph { padding: 0 .1rem; border-radius: 3px; background: transparent; color: inherit; box-shadow: inset 0 -2px 0 var(--ph); transition: background-color .2s; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.xt-ph sup { margin-left: .12rem; font: 600 .6rem/1 var(--mono); color: var(--ph); }
.xt-ph.lit { background: color-mix(in srgb, var(--ph) 14%, transparent); }
.xt-root-b { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: .8rem 1.2rem; align-items: center; }
.xt-root-b .xt-pair { margin: 0; }
.xt-root-k { margin: 0 0 .4rem; font: 600 .7rem/1.3 var(--font); letter-spacing: .06em; text-transform: uppercase; color: var(--comp-ink, #7e22ce); }
.xt-root-k .class-mark { margin-right: .45rem; }
/* wires */
.xt-wires { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: visible; }
.xt-wires path { fill: none; stroke: var(--ph, #4f46e5); stroke-width: 1.6; opacity: .5; transition: opacity .2s; }
.xt-wires path.up { opacity: .3; }
.xt-wires path[data-n="1"] { stroke: #4f46e5; }
.xt-wires path[data-n="2"] { stroke: #0d9488; }
.xt-wires path[data-n="3"] { stroke: #d97706; }
.xt-wires path[data-n="4"] { stroke: #db2777; }
.xt-wires path[data-n="5"] { stroke: #0284c7; }
.xt-wires path[data-n="6"] { stroke: #7c3aed; }
.xt-wires path[data-n=""] { stroke: #4f46e5; opacity: .5; }
.xt-wires path.lit { opacity: 1; stroke-width: 2.4; }
.xt-tree.focus .xt-wires path:not(.lit) { opacity: .12; }
.xt-tree.focus .xt-node:not(.lit) { opacity: .55; }
@media (prefers-reduced-motion: reduce) {
.xt-card, .xt-node, .xt-wires path, .xt-ph { transition: none; }
}
@media (max-width: 860px) {
.xt-nav { padding: .9rem 1rem .4rem; }
.xt-card { padding: 1rem 1rem 1.2rem; }
.xt-tree { grid-template-columns: 1fr; gap: .6rem; }
.xt-lv { text-align: left; margin-top: .6rem; }
.xt-row { grid-template-columns: 1fr; justify-items: stretch; }
.xt-node, .xt-node.solo { max-width: none; }
.xt-axis { flex-wrap: wrap; gap: .3rem; height: auto; border: 0; padding: 0; justify-content: flex-start; }
.xt-area { width: auto; padding: .15rem .5rem; border-radius: 999px; background: var(--surface-2); }
.xt-area i { display: none; }
.xt-area > span { position: static; transform: none; font-size: .72rem; }
.xt-area.used { background: #f3e8ff; }
.xt-ports { display: none; }
.xt-root-b { grid-template-columns: 1fr; }
.xt-sent { font-size: 1rem; }
}
/* ==================== coverage.css ==================== */
/* Copyright (c) Microsoft Corporation. Licensed under the MIT License. */
/* Object–property coverage (web/js/coverage.js): the sunburst, the three columns, and the block in Figure 4's area
   view. On the v12/v13 surface system; motion is limited to opacity and colour fades. */
/* shared: heads, object rows, property chips, readout */
.cov-kind { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 0 0 .3rem; font: 600 .7rem/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink, #4338ca); }
.cov-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .6rem; margin: 0 0 .5rem; padding-bottom: .5rem; border-bottom: 2px solid var(--atomic, #4f46e5); }
.cov-head strong { font: 700 1.02rem/1.3 var(--font); color: var(--ink); }
.cov-head span { font-size: .8rem; color: var(--muted); }
.cov-panel .cov-head span { flex-basis: 100%; }
.cov-panel .cov-read { position: sticky; bottom: 0; margin-bottom: 0; padding-bottom: .2rem; background: var(--card, #fff); box-shadow: 0 -12px 12px -10px rgba(11, 16, 32, .1); }
.cov-desc { margin: 0 0 .7rem; font-size: .84rem; line-height: 1.5; color: var(--body); }
.cov-objs { display: grid; gap: .45rem; margin: 0; }
.cov-obj { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .5rem; align-items: start; transition: opacity .2s; }
.cov-obj dt { margin: 0; padding-top: .2rem; }
.cov-obj dt code { font: 600 .76rem/1.35 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.cov-obj dt small { display: block; margin-top: .1rem; font-size: .68rem; color: var(--muted); }
.cov-obj dd { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0; }
.cov-objs.stack { gap: .7rem; }
.cov-objs.stack .cov-obj { grid-template-columns: 1fr; gap: .3rem; }
.cov-objs.stack .cov-obj dt { padding: 0; }
.cov-prop { display: inline-flex; align-items: baseline; gap: .35rem; padding: .16rem .55rem; border: 0; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--border, #e3e6ee); font: 500 .74rem/1.4 var(--mono); color: var(--ink-2, #3f3f46); cursor: default; transition: background-color .2s, color .2s, box-shadow .2s; }
.cov-prop small { font: 500 .66rem/1 var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.cov-prop:hover, .cov-prop.on { background: var(--accent-soft, #eef0ff); color: var(--accent-ink, #4338ca); box-shadow: inset 0 0 0 1px #c7d2fe; }
.cov-prop.read { background: #4f46e5; color: #fff; box-shadow: none; }
.cov-prop.read small { color: rgba(255, 255, 255, .78); }
.cov-note { margin: .7rem 0 0; font-size: .8rem; line-height: 1.5; color: var(--muted); }
.cov-read { min-height: 2.9em; margin: .7rem 0 0; padding-top: .6rem; border-top: 1px solid var(--hairline); font-size: .8rem; line-height: 1.5; color: var(--body); }
.cov-read code, .cov-note code { font: 500 .76rem/1.4 var(--mono); color: var(--ink); }
.cov-read small { color: var(--muted); }
.cov-hint { margin: .7rem 0 0; font-size: .78rem; color: var(--muted); }
/* sunburst */
.cov-sun { padding: 1.4rem 1.6rem 1.1rem; border: 1px solid var(--hairline); border-radius: var(--r-lg, 20px); background: var(--card, #fff); box-shadow: var(--card-shadow); }
.cov-sun-body { display: grid; grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr); gap: 1.6rem; align-items: start; }
.cov-chart { position: relative; transition: opacity .2s ease; }
.cov-chart.swap { opacity: 0; }
.cov-svg { display: block; overflow: visible; }
.cov-arc { stroke: #fff; stroke-width: 1; cursor: pointer; transition: opacity .2s; }
.cov-arc.area { stroke-width: 1.5; }
.cov-arc.prop { stroke-width: .7; }
.cov-arc.off { opacity: .2; }
.cov-arc:focus-visible { outline: none; stroke: var(--ink); stroke-width: 2; }
.cov-lbl { font: 500 10px/1 var(--font); fill: #1e1b4b; pointer-events: none; }
.cov-lbl.obj { font-weight: 600; fill: #fff; }
.cov-lbl.obj.small { font-weight: 500; fill: #1e1b4b; opacity: .82; }
.cov-lbl.prop { font: 500 10.5px/1 var(--mono); fill: #1e1b4b; }
.cov-sun.focused .cov-labels .cov-lbl { opacity: .55; }
.cov-out { font: 500 12px/1 var(--font); fill: var(--ink); cursor: pointer; transition: opacity .2s; }
.cov-lead { fill: none; stroke: #c9cde0; stroke-width: 1; transition: opacity .2s; }
.cov-out.off, .cov-lead.off { opacity: .25; }
.cov-center { position: absolute; left: 50%; top: 50%; display: grid; place-content: center; justify-items: center; gap: .15rem; border-radius: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.cov-center b { font: 700 .98rem/1.2 var(--font); color: var(--ink); text-wrap: balance; }
.cov-center .cov-c-n { font-size: 2rem; line-height: 1; letter-spacing: -.02em; background: var(--num-grad, linear-gradient(110deg, #312e81, #4f46e5)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cov-center span { font-size: .74rem; line-height: 1.35; color: var(--muted); }
.cov-sun.narrow .cov-center .cov-c-n { font-size: 1.5rem; }
.cov-sun.narrow .cov-center b { font-size: .86rem; }
.cov-center .cov-c-k { font: 600 .62rem/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink, #4338ca); }
.cov-back { padding: .15rem .55rem; border: 0; border-radius: 999px; background: var(--accent-soft, #eef0ff); color: var(--accent-ink, #4338ca); font: 500 .72rem/1.4 var(--font); cursor: pointer; pointer-events: auto; }
.cov-back.link { padding: 0; background: none; letter-spacing: 0; text-transform: none; }
.cov-back:hover { text-decoration: underline; }
.cov-center .cov-back { margin-top: .35rem; }
.cov-tip { position: absolute; left: 0; top: 0; z-index: 3; display: grid; gap: .15rem; max-width: 17rem; padding: .45rem .65rem; border-radius: 8px; background: #0b1020; color: #fff; font-size: .76rem; line-height: 1.4; pointer-events: none; opacity: 0; transition: opacity .15s; }
.cov-tip.on { opacity: 1; }
.cov-tip b { font: 600 .78rem/1.35 var(--mono); }
.cov-tip span { color: #c7cbe0; }
.cov-panel { overflow-y: auto; padding-right: .3rem; opacity: 0; transition: opacity .25s ease; scrollbar-width: thin; }
.cov-panel.is-in { opacity: 1; }
.cov-areas { display: grid; gap: .1rem; margin: .2rem 0 0; padding: 0; list-style: none; }
.cov-area { display: grid; grid-template-columns: .7rem minmax(0, 1fr) auto; align-items: center; gap: .6rem; width: 100%; padding: .19rem .55rem; border: 0; border-radius: 8px; background: none; font: 400 .84rem/1.3 var(--font); color: var(--ink); text-align: left; cursor: pointer; transition: background-color .2s; }
.cov-area i { width: .7rem; height: .7rem; border-radius: 3px; }
.cov-area b { font-weight: 500; }
.cov-area span { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cov-area:hover, .cov-area.on { background: var(--surface-2, #f4f5f8); }
/* three columns */
.cov-cols { padding: 1.3rem 1.6rem 1.1rem; border: 1px solid var(--hairline); border-radius: var(--r-lg, 20px); background: var(--card, #fff); box-shadow: var(--card-shadow); }
/* heads line up with the area list, the object names (9rem + .5rem gap in .cov-obj) and the property chips */
.cv-heads { display: grid; grid-template-columns: 15rem 3.5rem 9.5rem minmax(0, 1fr); padding-bottom: .55rem; margin-bottom: .7rem; border-bottom: 1px solid var(--hairline); }
.cv-heads p { margin: 0; font: 600 .68rem/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.cv-heads p small { margin-left: .45rem; font: 600 .74rem/1 var(--font); letter-spacing: 0; color: var(--accent-ink, #4338ca); }
.cv-heads p:first-child { display: flex; align-items: baseline; padding-right: .6rem; white-space: nowrap; }
.cv-heads p:first-child span { margin-left: auto; white-space: nowrap; font: 500 .66rem/1.3 var(--font); letter-spacing: 0; text-transform: none; color: var(--muted); }
.cv-heads p:nth-child(2) { grid-column: 3; }
.cv-heads p:nth-child(3) { grid-column: 4; }
.cv-body { position: relative; display: grid; grid-template-columns: 15rem 3.5rem minmax(0, 1fr); align-items: start; }
.cv-areas { grid-column: 1; display: grid; gap: .1rem; margin: 0; padding: 0; list-style: none; }
.cv-area { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: .5rem; width: 100%; padding: .4rem .6rem .5rem; border: 0; border-radius: 8px; background: none; font: 500 .84rem/1.3 var(--font); color: var(--ink); text-align: left; cursor: pointer; transition: background-color .2s, color .2s; }
.cv-area span { font: 400 .72rem/1.3 var(--font); color: var(--muted); font-variant-numeric: tabular-nums; }
.cv-area i { position: absolute; left: .6rem; bottom: .22rem; width: calc((100% - 1.2rem) * var(--bar) / 100); height: 3px; border-radius: 2px; background: var(--sw); opacity: .45; transition: opacity .2s; }
.cv-area:hover { background: var(--surface-2, #f4f5f8); }
.cv-area.active { background: var(--accent-soft, #eef0ff); color: var(--accent-ink, #4338ca); }
.cv-area.active i { opacity: 1; }
.cv-wires { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: visible; }
.cv-wires path { fill: none; stroke: #a5b4fc; stroke-width: 1.4; opacity: .8; transition: opacity .2s, stroke .2s; }
.cv-body.focus .cv-wires path:not(.lit) { opacity: .18; }
.cv-wires path.lit { stroke: #4f46e5; stroke-width: 2; opacity: 1; }
.cv-right { grid-column: 3; position: relative; z-index: 1; opacity: 0; transition: opacity .25s ease; }
.cv-right.is-in { opacity: 1; }
.cv-right .cov-obj { padding: .15rem 0; }
.cv-body.focus .cv-obj:not(.lit) { opacity: .5; }
.cv-obj.lit dt code { color: var(--accent-ink, #4338ca); }
.cv-read { margin-top: .9rem; }
/* Figure 4 area view: the area's runtime objects with the task's properties lit */
.cov-block { width: 100%; max-width: 50rem; padding: .85rem 1rem .8rem; border-radius: 12px; background: #fafbff; box-shadow: inset 0 0 0 1px var(--hairline); }
.cov-objs.inline { display: flex; flex-wrap: wrap; gap: .55rem 1.3rem; }
.cov-objs.inline .cov-obj { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .45rem; }
.cov-objs.inline .cov-obj dt { padding: 0; }
.cov-objs.inline .cov-obj dd { display: contents; }
.cov-block .cov-note { margin-top: .75rem; color: var(--body); }
.cov-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; margin: 0 0 .45rem; font: 600 .66rem/1.3 var(--font); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink, #4338ca); }
.cov-sub span { font: 400 .76rem/1.4 var(--font); letter-spacing: 0; text-transform: none; color: var(--muted); }
.cov-sub code { font: 500 .72rem/1.4 var(--mono); color: var(--ink); }
.cov-sub.rest { margin-top: .9rem; padding-top: .75rem; border-top: 1px dashed var(--border, #e3e6ee); color: var(--muted); }
.cov-block .cov-read { min-height: 0; margin-top: .5rem; padding-top: .5rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) {
.cov-chart, .cov-panel, .cv-right, .cov-arc, .cov-prop, .cov-tip, .cv-wires path { transition: none; }
}
@media (max-width: 900px) {
.cov-sun { padding: 1rem; }
.cov-sun-body { grid-template-columns: 1fr; }
.cov-panel { max-height: none; overflow: visible; }
}
@media (max-width: 860px) {
.cov-cols { padding: 1rem; }
.cv-heads { display: none; }
.cv-body { grid-template-columns: 1fr; }
.cv-areas { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: 1rem; }
.cv-area { width: auto; padding: .28rem .65rem; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hairline); }
.cv-area span, .cv-area i { display: none; }
.cv-right { grid-column: 1; }
.cov-obj { grid-template-columns: 1fr; gap: .25rem; }
}
