/* Dream-Folding-Bench project page. The look follows the paper's figures: one monospaced face for labels and numbers
   (JetBrains Mono), warm greys for everything that is not data, one colour per agent harness. Light theme only. */
@font-face { font-family: Roboto; src: url("../fonts/Roboto-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: Roboto; src: url("../fonts/Roboto-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: Roboto; src: url("../fonts/Roboto-Medium.ttf") format("truetype"); font-weight: 500 600; font-display: swap; }
@font-face { font-family: Roboto; src: url("../fonts/Roboto-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/JetBrainsMono-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #FFFFFF; --panel: #F6F7F9; --panel-2: #ECEEF2; --ink: #000000; --ink-2: #1F2328; --muted: #6B7385; --rule: #D9DDE4; --rule-soft: rgba(0, 0, 0, 0.1);
  --claude: #B5613C; --gemini: #3A78B2; --gpt: #6A9A3A; --ref: #000000; --link: #7125CF; --lede: #D97757;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Roboto, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Source Serif 4", Charter, "Bitstream Charter", Georgia, serif;
  --max: 860px; --col: 648px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--serif); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.mono { font-family: var(--sans); font-size: 0.88em; }

/* ---- top bar */
.top { position: sticky; top: 0; z-index: 20; background: rgba(251, 250, 246, 0.94); backdrop-filter: blur(6px); border-bottom: 1px solid var(--rule-soft); }
.top .wrap { display: flex; align-items: center; gap: 24px; height: 52px; }
.brand { font-family: var(--sans); font-weight: 700; font-size: 14px; letter-spacing: -0.01em; text-decoration: none; white-space: nowrap; }
.top nav { display: flex; gap: 20px; margin-left: auto; overflow-x: auto; }
.top nav a { font-family: var(--sans); font-size: 12.5px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--ink); }

/* ---- hero */
.hero { padding: 64px 0 40px; }
.eyebrow { font-family: var(--sans); font-size: 12.5px; color: var(--muted); letter-spacing: 0.02em; margin: 0 0 14px; }
h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(34px, 5.4vw, 56px); line-height: 1.05; letter-spacing: -0.03em; margin: 0 0 10px; }
h1.claim { font-size: clamp(28px, 4.1vw, 44px); line-height: 1.12; letter-spacing: -0.025em; max-width: 940px; margin-bottom: 16px; }
h1.claim .era { display: block; font-size: 0.5em; letter-spacing: 0; color: var(--muted); font-weight: 500; margin-bottom: 10px; }
/* the findings in a few sentences, set off by a bar of the page's accent */
.tldr { max-width: 820px; border-left: 3px solid var(--claude); padding: 2px 0 2px 20px; margin: 0 0 30px; font-size: 18px; }
.tldr p { margin: 0 0 12px; }
.tldr p:last-child { margin-bottom: 0; }
/* the contents, beside the text where the window is wide enough */
.toc { display: none; }
@media (min-width: 1500px) {
  .toc { display: block; position: fixed; top: 120px; left: max(18px, calc(50% - 540px - 200px)); width: 172px; font-family: var(--sans); font-size: 11.5px; line-height: 1.45; z-index: 5; }
  .toc b { display: block; font-size: 12px; margin-bottom: 8px; }
  .toc a { display: block; color: var(--muted); text-decoration: none; margin: 0 0 8px; }
  .toc a:hover { color: var(--ink); }
}
.hero .sub { font-size: clamp(21px, 2.6vw, 28px); line-height: 1.25; color: var(--ink-2); margin: 0 0 22px; font-style: italic; }
.hero .lead { max-width: 760px; margin: 0 0 26px; font-size: 18px; }
.buttons { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 36px; }
.btn { font-family: var(--sans); font-size: 13.5px; font-weight: 500; padding: 9px 16px; border: 1px solid var(--ink); border-radius: 4px; text-decoration: none; color: var(--ink); background: transparent; cursor: pointer; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn:hover { background: var(--ink); color: var(--bg); }
.btn.primary:hover { background: #000; }
/* a link that is not there yet: shown, and cannot be clicked */
.off { opacity: 0.45; cursor: not-allowed; pointer-events: none; user-select: none; }
.top nav .off { font-family: var(--sans); font-size: 12.5px; color: var(--muted); white-space: nowrap; }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 0 0 36px; }
.tile { background: var(--panel); border-radius: 6px; padding: 16px 18px 14px; }
.tile .value { font-family: var(--sans); font-weight: 700; font-size: 34px; line-height: 1.1; letter-spacing: -0.02em; }
.tile .label { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.tile .key { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: baseline; }

/* ---- sections */
section { padding: 56px 0; border-top: 1px solid var(--rule-soft); }
h2 { font-family: var(--sans); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; margin: 0 0 8px; line-height: 1.2; }
h3 { font-family: var(--sans); font-weight: 700; font-size: 17px; letter-spacing: -0.01em; margin: 36px 0 8px; }
.kicker { font-family: var(--sans); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 8px; }
.intro { max-width: 760px; margin: 0 0 24px; color: var(--ink-2); }
p { margin: 0 0 14px; }
.note { font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.55; margin: 10px 0 0; }
.note + .note { margin-top: 6px; }
strong { font-weight: 700; }

/* ---- cards and controls */
.card { background: #FFFFFF; border: 1px solid var(--rule-soft); border-radius: 8px; padding: 20px 22px; }
.controls { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; margin: 0 0 14px; }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 5px; overflow: hidden; background: #fff; }
.seg button { font-family: var(--sans); font-size: 12.5px; padding: 6px 12px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-right: 1px solid var(--rule); }
.seg button:last-child { border-right: 0; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.seg button:focus-visible, .btn:focus-visible, .linkbtn:focus-visible { outline: 2px solid var(--gemini); outline-offset: 2px; }
.ctl-label { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-right: 8px; }
.linkbtn { font-family: var(--sans); font-size: 12.5px; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.linkbtn:hover { color: var(--ink); }

/* ---- charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; font-family: var(--sans); }
.chart text { fill: var(--muted); font-size: 12px; }
.chart .name { fill: var(--ink); }
.chart .value { fill: var(--ink); font-weight: 500; }
.chart .grid { stroke: var(--rule-soft); stroke-width: 1; }
.chart .axis { stroke: var(--rule); stroke-width: 1; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--sans); font-size: 12px; color: var(--muted); margin: 12px 0 0; }
.legend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.legend i.line { height: 0; width: 18px; border-top: 2px solid; border-radius: 0; }
.legend i.dash { height: 0; width: 18px; border-top: 2px dashed; border-radius: 0; }
.legend i.ring { width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); }
.legend i.dot { width: 10px; height: 10px; border-radius: 50%; }
.tip { position: absolute; z-index: 5; pointer-events: none; background: #fff; border: 1px solid var(--rule); border-radius: 6px; box-shadow: 0 4px 16px rgba(45, 42, 35, 0.12); padding: 9px 11px; font-family: var(--sans); font-size: 12px; color: var(--muted); min-width: 150px; max-width: 320px; display: none; }
.tip .t { color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.tip .row { display: flex; align-items: center; gap: 7px; white-space: nowrap; line-height: 1.6; }
.tip .row b { color: var(--ink); font-weight: 500; margin-left: auto; padding-left: 14px; }
.tip .row i { display: inline-block; width: 12px; height: 0; border-top: 2px solid; flex: none; }
.tip .row.dim { opacity: 0.55; }

/* ---- tables */
.tablewrap { overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; font-family: var(--sans); font-size: 12.5px; }
table.data th { text-align: right; font-weight: 500; color: var(--muted); padding: 7px 10px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
table.data th.l, table.data td.l { text-align: left; }
table.data th.c { text-align: center; }
table.data th.wrap { white-space: normal; line-height: 1.3; vertical-align: bottom; max-width: 96px; }
table.data td { text-align: right; padding: 6px 10px; border-bottom: 1px solid var(--rule-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
table.data tr.group td { border-top: 1px solid var(--rule); }
table.data tr.ref td { color: var(--muted); }
table.data td .sd { color: var(--muted); }
table.data td sup { color: var(--muted); font-size: 9.5px; margin-left: 2px; }
table.data .sw { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 8px; }
table.data td.best { font-weight: 700; }
.hidden { display: none !important; }

/* ---- workflow */
.flow { display: grid; grid-template-columns: 1.5fr auto 0.9fr auto 1fr auto 1.2fr; gap: 10px; align-items: center; margin: 8px 0 8px; font-family: var(--sans); font-size: 12.5px; }
.flow .box { background: var(--panel); border-radius: 6px; padding: 14px 16px; }
.flow .box h4 { font-family: var(--sans); font-size: 13px; margin: 0 0 8px; }
.flow .box .g { font-weight: 700; margin: 8px 0 2px; font-size: 11.5px; color: var(--ink-2); }
.flow .box ul { margin: 0; padding-left: 16px; color: var(--ink-2); }
.flow .arrow { color: var(--muted); font-size: 18px; text-align: center; }
.flow .box.out { background: #EAF1E1; }
.flow .box.zero { background: #F6E6DF; margin-top: 8px; }
.flow .center { text-align: center; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 22px; }
.grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cell { background: var(--panel); border-radius: 6px; padding: 16px 18px; font-size: 15.5px; line-height: 1.55; }
.cell h4 { font-family: var(--sans); font-size: 13.5px; margin: 0 0 6px; }
.cell p:last-child { margin-bottom: 0; }
.cell ul { margin: 0; padding-left: 18px; }
.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.setting { border-radius: 6px; padding: 16px 18px; font-size: 15.5px; border: 1px solid var(--rule); background: #fff; }
.setting h4 { font-family: var(--sans); font-size: 14px; margin: 0 0 6px; }
.setting .tag { font-family: var(--sans); font-size: 11.5px; color: var(--muted); }
/* what the agent has and has not */
.toolbox { margin-top: 26px; background: #fff; border: 1px solid var(--rule-soft); border-radius: 8px; padding: 6px 22px 18px; }
.toolbox h3 { margin-top: 18px; }
.toolbox > p { max-width: 820px; }
.toolbox h4 { font-family: var(--sans); font-size: 13.5px; margin: 0 0 8px; }
.toolbox ul { margin: 0; padding-left: 18px; font-size: 15.5px; line-height: 1.55; }
.toolbox li { margin: 0 0 6px; }
.toolbox .have, .toolbox .havenot { border-radius: 6px; padding: 16px 18px; }
.toolbox .have { background: #EAF1E1; }
.toolbox .havenot { background: #F6E6DF; }
/* what one replayed session used */
.used { margin-top: 14px; background: var(--panel); border-radius: 8px; padding: 16px 20px; font-size: 15.5px; }
.used h4 { font-family: var(--sans); font-size: 13.5px; margin: 0 0 10px; }
.used .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.used .lab { font-family: var(--sans); font-size: 12px; color: var(--muted); margin-right: 4px; }
.used .chip { font-family: var(--sans); font-size: 12px; background: #fff; border: 1px solid var(--rule); border-radius: 4px; padding: 3px 8px; white-space: nowrap; }
.used .chip b { font-weight: 700; }
.used .chip.own { border-color: transparent; background: #EEE9DC; }
.used .chip.zero { color: var(--muted); }
.used details { margin-top: 4px; }
.used p { margin: 0 0 6px; }
.visual { margin-top: 28px; background: #fff; border: 1px solid var(--rule-soft); border-radius: 8px; padding: 6px 22px 18px; }
.visual h3 { margin-top: 18px; }
.visual .vtext { max-width: 820px; }
.visual figure { margin: 10px 0 0; }
.visual img { display: block; width: 100%; height: auto; border: 1px solid var(--rule-soft); border-radius: 4px; background: #fff; }
.visual figcaption { font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.55; margin-top: 8px; }
details { margin-top: 18px; }
details summary { font-family: var(--sans); font-size: 13px; cursor: pointer; color: var(--ink-2); }
pre.task { font-family: var(--sans); font-size: 12px; line-height: 1.55; background: var(--panel); border-radius: 6px; padding: 18px 20px; white-space: pre-wrap; overflow-x: auto; margin: 12px 0 0; }

/* ---- findings */
.finding { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 56px; }
.finding:last-child { margin-bottom: 0; }
.finding .text { max-width: 760px; }
.classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 6px 0 18px; }
.classes .c { background: var(--panel); border-radius: 6px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.classes .c b { font-family: var(--sans); font-size: 12.5px; display: block; margin-bottom: 4px; }
.classes .c span { font-family: var(--sans); font-size: 11.5px; color: var(--muted); display: block; margin-top: 6px; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panels h4 { font-family: var(--sans); font-size: 13px; margin: 0 0 6px; font-weight: 500; }

/* heat table of the targets */
table.heat { border-collapse: separate; border-spacing: 2px; font-family: var(--sans); font-size: 10.5px; margin: 0 auto; }
table.heat th { font-weight: 500; color: var(--muted); padding: 2px 3px; white-space: nowrap; }
table.heat th.rot { height: 88px; position: relative; padding: 0; }
table.heat th.rot div { position: absolute; left: 50%; bottom: 6px; transform: rotate(-50deg); transform-origin: 0 100%; white-space: nowrap; color: var(--ink-2); }
table.heat td { width: 44px; min-width: 34px; height: 21px; text-align: center; border-radius: 2px; font-variant-numeric: tabular-nums; }
table.heat td.t { text-align: left; width: auto; padding-right: 8px; color: var(--ink); white-space: nowrap; }
table.heat td.cl { text-align: left; width: auto; color: var(--muted); padding: 10px 0 3px; font-size: 11.5px; }
table.heat td.sep { width: 8px; }

/* ---- replay */
.replay { background: #FFFFFF; border: 1px solid var(--rule-soft); border-radius: 8px; overflow: hidden; }
.replay .bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 12px 18px; border-bottom: 1px solid var(--rule-soft); font-family: var(--sans); font-size: 12.5px; color: var(--muted); }
.replay .bar b { color: var(--ink); font-weight: 700; }
.replay .bar .clock { margin-left: auto; color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.replay .stage { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); }
.replay .log { border-right: 1px solid var(--rule-soft); height: 380px; overflow: hidden; position: relative; background: #FDFCF9; }
.replay .log .lines { position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 16px 12px; }
.replay .log .ln { font-family: var(--sans); font-size: 11.5px; line-height: 1.45; color: var(--muted); display: grid; grid-template-columns: 34px 10px 1fr; gap: 6px; padding: 2px 0; }
.replay .log .ln .m { color: #9A9485; text-align: right; font-variant-numeric: tabular-nums; }
.replay .log .ln .k { width: 8px; height: 8px; border-radius: 2px; margin-top: 4px; }
.replay .log .ln .x { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.replay .log .ln.now { color: var(--ink); }
.replay .log .ln.ver { color: var(--ink); font-weight: 500; }
.replay .log .ln.ver .k { border-radius: 50%; background: var(--ink) !important; }
.replay .log .fade { position: absolute; top: 30px; left: 0; right: 0; height: 56px; z-index: 2; background: linear-gradient(#FDFCF9, rgba(253, 252, 249, 0)); pointer-events: none; }
.replay .log .head, .replay .view .head { position: absolute; top: 0; left: 0; right: 0; padding: 10px 16px 8px; font-family: var(--sans); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; color: #9A9485; z-index: 3; }
.replay .log .head { background: #FDFCF9; }
.replay .view { position: relative; height: 380px; }
.replay .view canvas { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; }
.replay .view canvas:active { cursor: grabbing; }
.replay .view img.frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: none; }
.replay .view .badge { position: absolute; top: 30px; right: 12px; text-align: right; font-family: var(--sans); z-index: 2; background: rgba(255, 255, 255, 0.84); padding: 4px 6px; border-radius: 4px; }
.replay .view .badge .big { font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.replay .view .badge .small { font-size: 11px; color: var(--muted); margin-top: 4px; line-height: 1.4; }
.replay .view .key { position: absolute; left: 10px; bottom: 6px; right: 10px; background: rgba(255, 255, 255, 0.84); padding: 4px 6px; border-radius: 4px; font-family: var(--sans); font-size: 11px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; z-index: 2; }
.replay .view .key i { display: inline-block; width: 16px; height: 6px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.replay .view .empty { position: absolute; inset: 44px 18px 40px; display: flex; flex-direction: column; justify-content: center; font-family: var(--sans); color: var(--muted); font-size: 12px; z-index: 1; }
.replay .view .empty .seq { word-break: break-all; line-height: 1.55; color: #9A9485; font-size: 11.5px; margin-top: 10px; max-height: 190px; overflow: hidden; }
.replay .view .empty b { color: var(--ink); font-size: 13px; }
.replay .timeline { border-top: 1px solid var(--rule-soft); padding: 8px 18px 4px; }
.replay .timeline svg { display: block; width: 100%; height: auto; font-family: var(--sans); cursor: pointer; overflow: visible; }
.replay .timeline text { font-size: 11px; fill: var(--muted); }
.replay .foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 8px 18px 14px; font-family: var(--sans); font-size: 12px; color: var(--muted); }
.replay .foot .play { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); cursor: pointer; font-size: 13px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.replay .foot .spacer { margin-left: auto; }
.replay.capture { border: 0; border-radius: 0; }
.replay.capture .foot { display: none; }
.report { margin-top: 14px; }
.report pre { font-family: var(--sans); font-size: 12px; line-height: 1.55; background: var(--panel); border-radius: 6px; padding: 16px 18px; white-space: pre-wrap; margin: 10px 0 0; max-height: 420px; overflow: auto; }

/* ---- video */
.video { background: #fff; border: 1px solid var(--rule-soft); border-radius: 8px; overflow: hidden; }
.video video { display: block; width: 100%; height: auto; background: #fff; }
.video .cap { font-family: var(--sans); font-size: 12px; color: var(--muted); padding: 10px 16px 12px; border-top: 1px solid var(--rule-soft); line-height: 1.5; }

.cite { position: relative; max-width: 820px; }
.cite pre { font-family: var(--sans); font-size: 12.5px; line-height: 1.6; background: var(--panel); border-radius: 6px; padding: 16px 18px; margin: 0; overflow-x: auto; }
.cite .linkbtn { position: absolute; top: 10px; right: 14px; }
footer { border-top: 1px solid var(--rule-soft); padding: 28px 0 48px; font-family: var(--sans); font-size: 12px; color: var(--muted); line-height: 1.6; }

@media (max-width: 860px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow .arrow { transform: rotate(90deg); }
  .grid3, .grid2, .twocol, .classes, .panels { grid-template-columns: 1fr; }
  .classes { grid-template-columns: 1fr 1fr; }
  .replay .stage { grid-template-columns: 1fr; }
  .replay .log { height: 220px; border-right: 0; border-bottom: 1px solid var(--rule-soft); }
  .replay .view { height: 320px; }
  .top nav { gap: 14px; }
}


/* =====================================================================================================================
   The article layout (2026-11-27): a white page, one narrow column of text (648px) with figures wider than it (860px),
   Roboto for headings, labels and figures, a serif for the text, the contents beside the opening.
   These rules come last and replace the earlier look where the two differ.
   ===================================================================================================================== */
body { background: #fff; color: #000; font-family: var(--serif); font-size: 17px; line-height: 1.55; }
a { color: var(--link); text-decoration: none; border-bottom: 1px dotted var(--link); }
a:hover { border-bottom-style: solid; }
.mono, pre.task, .cite pre, .report pre, .replay .log .ln, .used .chip.own, .replay .view .empty .seq { font-family: var(--mono); }
.col { max-width: var(--col); margin: 0 auto; padding: 0 20px; }
.wrap { max-width: calc(var(--max) + 40px); padding: 0 20px; }

/* the bar at the top */
.top { background: #fff; border-bottom: 1px solid var(--rule-soft); backdrop-filter: none; }
.top .wrap { max-width: 1010px; height: 56px; }
.brand { font-family: var(--sans); font-weight: 400; font-size: 20px; letter-spacing: 0; border: 0; color: #000; }
.top nav a, .top nav .off { font-family: var(--sans); font-size: 16px; font-weight: 300; color: #000; border: 0; }
.top nav a:hover { color: var(--link); }

/* the title, the byline */
.title { padding: 64px 0 24px; }
.title h1 { font-family: var(--sans); font-weight: 600; font-size: 34px; line-height: 1.18; letter-spacing: 0; margin: 0 0 12px; max-width: none; }
.title h1 { font-size: 44px; line-height: 1.1; }                       /* the slogan leads; the finding stands under it */
.title h1 .claimline { display: block; font-size: 24px; font-weight: 500; line-height: 1.25; margin: 14px 0 4px; }
@media (max-width: 860px) { .title h1 { font-size: 34px; } .title h1 .claimline { font-size: 20px; } }
.title .sub { font-family: var(--sans); font-size: 18px; font-weight: 300; line-height: 1.55; font-style: normal; color: #000; margin: 0; }
.byline { border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); padding: 24px 0; font-family: var(--sans); font-size: 12.8px; font-weight: 300; line-height: 1.8; }
.byline .col { display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: flex-start; }
.byline h3 { font-family: var(--sans); font-size: 9.6px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.02em; margin: 0; }
.byline p { margin: 0; }
.byline p.author { font-weight: 500; }
.byline .links { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.btn { font-family: var(--sans); font-size: 13px; font-weight: 500; padding: 6px 12px; border: 1px solid var(--rule); border-radius: 6px; color: #000; background: #fff; }
.btn:hover { background: var(--panel); color: #000; border-bottom-style: solid; }
.btn.primary { background: #000; color: #fff; border-color: #000; }

/* the opening: the contents beside the summary */
.article-top { position: relative; padding: 32px 0 8px; }
.toc { display: none; }
@media (min-width: 1240px) {
  .toc { display: block; position: absolute; top: 32px; left: max(24px, calc(50% - 324px - 250px)); width: 200px; padding-right: 20px; border-right: 1px solid var(--rule-soft);
         font-family: var(--sans); z-index: 2; }
  .toc h3 { font-family: var(--sans); font-size: 19px; font-weight: 600; margin: 0 0 16px; }
  .toc a { display: block; font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--link); border: 0; margin: 0 0 10px; }
  .toc a:hover { text-decoration: underline; }
}
.tldr { max-width: none; border-left: 3px solid var(--lede); padding: 2px 0 2px 16px; margin: 4px 0 32px; font-size: 17px; }
.update { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; padding: 13px 18px 3px; margin: 0 0 32px; font-size: 15.2px; }
.update p { margin: 0 0 6px; }
.update ul { margin: 0 0 10px; padding-left: 18px; }
.update li { margin: 0 0 6px; }
.tiles { max-width: var(--max); margin: 0 auto 8px; padding: 0 20px; }
.tile { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; }
.tile .value { font-family: var(--sans); font-weight: 700; font-size: 30px; letter-spacing: 0; }
.tile .label { font-family: var(--sans); font-size: 12.5px; font-weight: 400; color: var(--muted); }

/* sections: no rule between them; the heading carries a hairline, as the text column's own heading */
section { border-top: 0; padding: 20px 0 12px; }
section > .wrap > .kicker, section > .wrap > h2, section > .wrap > h3, section > .wrap > p, section > .wrap > details, section > .wrap > .controls,
.finding > .text, .finding > p.note, section > .wrap > .buttons, section > .wrap > .cite, .visual .vtext, .toolbox > p, .toolbox > h3 {
  max-width: var(--col); margin-left: auto; margin-right: auto; }
.finding > .text { width: 100%; }
.kicker { font-family: var(--sans); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
h2 { font-family: var(--sans); font-weight: 600; font-size: 26px; line-height: 1.25; letter-spacing: 0; padding-bottom: 16px; border-bottom: 1px solid var(--rule-soft); margin-top: 20px; margin-bottom: 16px; }
h3 { font-family: var(--sans); font-weight: 600; font-size: 19px; letter-spacing: 0; margin-top: 32px; }
.intro { color: #000; margin-bottom: 20px; }
.note, .video .cap, .visual figcaption { font-family: var(--sans); font-size: 13.3px; font-weight: 300; color: var(--muted); line-height: 1.45; }
.finding { margin-bottom: 36px; gap: 12px; }

/* figures: no frame around them */
.card { background: none; border: 0; border-radius: 0; padding: 0; margin: 12px 0 4px; }
.chart text { font-size: 12.5px; }
.chart .name { fill: #000; }
.chart .value { fill: #000; font-weight: 600; }
.legend, .ctl-label, .seg button, .linkbtn, table.data, table.heat, .tip { font-family: var(--sans); }
.legend { font-size: 12.5px; }
.seg { border-radius: 6px; }
.seg button { font-size: 13px; }
.seg button[aria-pressed="true"] { background: #000; color: #fff; }
.linkbtn { color: var(--link); text-decoration: none; border-bottom: 1px dotted var(--link); font-size: 13px; }
table.data { font-size: 13.3px; }
table.data th { font-weight: 500; }
table.heat { font-size: 11px; }
.tip { font-size: 12.5px; border-radius: 6px; }

/* the boxes of the benchmark section and of the replay, in the page's greys */
.flow, .flow .box h4, .cell h4, .setting h4, .setting .tag, .toolbox h4, .classes .c b, .classes .c span, .panels h4, details summary, .used h4, .used .lab, .used .chip { font-family: var(--sans); }
.flow { font-size: 13.5px; }
.flow .box, .cell, .classes .c, .used { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; }
.setting, .toolbox, .visual, .replay, .video { border-color: var(--rule); border-radius: 8px; }
.cell, .setting, .toolbox ul, .classes .c { font-size: 15.2px; }
.replay .bar, .replay .foot, .replay .log .head, .replay .view .head, .replay .view .badge, .replay .view .key, .replay .timeline svg { font-family: var(--sans); }
.replay .log, .replay .log .head { background: #FAFBFC; }
.replay .log .fade { background: linear-gradient(#FAFBFC, rgba(250, 251, 252, 0)); }
.replay .log .ln { font-size: 11.5px; }
.cite pre, pre.task, .report pre { background: var(--panel); border: 1px solid var(--rule); border-radius: 8px; }
h1.claim { font-family: var(--sans); }

@media (max-width: 860px) {
  .byline .links { margin-left: 0; }
  .title { padding-top: 40px; }
  .title h1 { font-size: 28px; }
}

/* the Method section: the two lists without the box around them */
.toolbox.plain { border: 0; background: none; padding: 0; margin: 18px 0 20px; }
#method .flow { margin-bottom: 26px; }
#method .twocol { margin-bottom: 18px; }

/* Benchmark Approach: what a session has, as one small table */
table.rules { border-collapse: collapse; width: 100%; max-width: var(--col); margin: 16px auto 22px; font-family: var(--sans); font-size: 14px; line-height: 1.45; }
table.rules th { font-weight: 600; font-size: 13px; padding: 6px 10px; border-bottom: 1px solid var(--rule); text-align: center; white-space: nowrap; }
table.rules td { padding: 7px 10px; border-bottom: 1px solid var(--rule-soft); text-align: center; width: 92px; font-size: 15px; }
table.rules td.l { text-align: left; width: auto; font-size: 14px; padding-left: 0; }
table.rules td.y { color: #3F7D3A; }
table.rules td.n { color: #B5482F; }
table.rules tr.sep td { border-top: 1px solid var(--rule); }
#method .flow { margin-top: 22px; }
/* Benchmark Approach: the flow figure at the width of the text, with smaller type */
#method .flow { max-width: 700px; margin: 20px auto 24px; font-size: 12px; gap: 8px; line-height: 1.5; }
#method .flow .box { padding: 10px 12px; }
#method .flow .box h4 { font-size: 12.5px; margin-bottom: 5px; }
#method .flow .box .g { font-size: 10.5px; margin: 6px 0 1px; }
#method .flow .box ul { padding-left: 14px; }
#method .flow .arrow { font-size: 15px; }
/* CASP12 section: charts and the table at about the width of the text */

/* CASP12: one figure of three panels */
.fig3 { margin: 26px 0 22px; }
.fig3 .panels3 { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 26px 30px; align-items: start; }
.fig3 .p.key { align-self: center; padding: 0 4px 0 22px; }
.fig3 .key .legend { flex-direction: column; align-items: flex-start; gap: 7px; margin: 0 0 14px; }
.fig3 .cap { font-family: var(--sans); font-size: 13px; font-weight: 300; color: var(--muted); line-height: 1.5; }
.fig3 .cap b { font-weight: 600; color: var(--ink-2); }
.fig3 .p { min-width: 0; overflow: hidden; }
.fig3 h4 { font-family: var(--sans); font-size: 13.5px; font-weight: 600; line-height: 1.3; margin: 0 0 6px; min-height: 18px; text-align: left; }
.fig3 h4 span { display: inline-block; font-weight: 700; margin-right: 7px; }
.fig3 .controls { margin: 6px 0 0; justify-content: center; }
.fig3 .seg button { font-size: 11.5px; padding: 4px 9px; }

.fig3 figcaption { font-family: var(--sans); font-size: 13.3px; font-weight: 300; color: var(--muted); line-height: 1.45; max-width: var(--col); margin: 12px auto 0; }
.fig3 figcaption b { font-weight: 600; color: var(--ink-2); }
.fig3 .tablewrap { margin-top: 14px; }
@media (max-width: 760px) { .fig3 .panels3 { grid-template-columns: 1fr; } .fig3 h4 { min-height: 0; } }

/* a list of findings in the text column */
ul.points { max-width: var(--col); margin: 0 auto 18px; padding-left: 22px; font-size: 17px; line-height: 1.55; }
ul.points li { margin: 0 0 7px; }
p.lead-in { margin-bottom: 6px; }

/* the video under the title */
.hero { margin: 32px 0 0; padding: 0; border: 0; background: none; }
.hero .video { margin-top: 0; margin-bottom: 0; }
/* More details of the benchmark: everything at the width of the text */
#benchmark .grid3 { max-width: var(--col); margin-left: auto; margin-right: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#benchmark .visual { max-width: var(--col); margin-left: auto; margin-right: auto; box-sizing: border-box; }
#benchmark details { max-width: var(--col); margin-left: auto; margin-right: auto; }
#benchmark pre.task { max-width: 100%; overflow-x: auto; box-sizing: border-box; }
@media (max-width: 760px) { #benchmark .grid3 { grid-template-columns: 1fr; } }

/* CASP16: the four-part figure and the folded details under it */
.fig3 .panels3.even { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.fig4 .p.key { align-self: start; padding-top: 26px; }
details.more { max-width: none; margin: 10px 0 0; border-top: 1px solid var(--rule-soft); padding-top: 10px; }
details.more summary { font-size: 14px; font-weight: 500; color: var(--ink); max-width: var(--col); margin: 0 auto; }
details.more .text, details.more > p.note { max-width: var(--col); margin-left: auto; margin-right: auto; }
details.more .text p { margin-top: 12px; }
details.more .tablewrap { margin: 12px 0 6px; }
/* CASP16: the leaderboard at the width of the text */
#leaderboard > .wrap > .card { max-width: var(--col); margin-left: auto; margin-right: auto; }
details.more table.data { font-size: 12px; }
details.more table.data th, details.more table.data td { padding: 5px 5px; }
details.more table.data th.wrap { max-width: 70px; }
details.more table.data .sw { margin-right: 5px; }
details.more .classes { max-width: var(--col); margin: 10px auto; }
details.more table.data th { white-space: normal; line-height: 1.25; vertical-align: bottom; }
details.more table.data th, details.more table.data td { padding: 5px 4px; }
details.more .controls { max-width: var(--col); margin: 10px auto 8px; }
details.more table.heat { font-size: 10px; }
details.more table.heat td { width: auto; min-width: 30px; }
/* the citation box: long lines wrap instead of running out of the box */
#cite-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; }

/* CASP16: the two-part figure with its key and caption underneath */
.fig4 > .legend { justify-content: center; margin: 14px 0 0; }
.fig4 > .cap { max-width: var(--col); margin: 10px auto 0; }
details.more > .chart, details.more > .legend { max-width: var(--col); margin-left: auto; margin-right: auto; }

/* CASP16: leaderboard and template panel side by side; the key in the fourth cell */
.fig4 .controls { gap: 8px; flex-wrap: wrap; }
.fig4 .key .legend + .legend { margin-top: -6px; }
.fig4 .p.key { padding-top: 24px; }

/* More details of the benchmark, folded inside Benchmark Approach */
#benchmark .grid3 { margin-top: 12px; }
#benchmark > details { margin-top: 14px; }
/* the page top: the contents column always has room; the four numbers at the width of the text */
@media (min-width: 1100px) { .article-top { min-height: 330px; } }
.tiles { max-width: var(--col); padding: 0; margin: 0 auto 8px; gap: 10px; }
.tile { padding: 13px 13px 12px; }
.tile .value { font-size: 26px; }
.tile .label { font-size: 11.8px; }
@media (max-width: 700px) { .tiles { padding: 0 20px; } }
/* the title is one title: both lines in the same type */
.title h1 { font-size: 36px; line-height: 1.2; }
.title h1 .claimline { display: block; font-size: inherit; font-weight: inherit; line-height: inherit; margin: 0; }
@media (max-width: 860px) { .title h1 { font-size: 28px; } .title h1 .claimline { font-size: inherit; } }

/* a figure whose key and caption stand under the panels */
.fig3 > .legend { justify-content: center; margin: 14px 0 0; }
.fig3 > .cap { font-family: var(--sans); font-size: 13.3px; font-weight: 300; color: var(--muted); line-height: 1.45; max-width: var(--col); margin: 10px auto 0; }
.fig3 > .cap b { font-weight: 600; color: var(--ink-2); }

/* the figure's key above its panels, its caption and links under them */
.fig3 > .legend.keyrow { justify-content: center; gap: 6px 26px; margin: 0 0 16px; font-size: 13px; color: var(--ink-2); }
.fig3 > .cap { font-size: 13.5px; font-weight: 400; line-height: 1.6; color: #5B6170; margin-top: 16px; }
.fig3 > .cap b { font-weight: 700; color: var(--ink); margin-right: 1px; }
.fig3 > .figlinks { max-width: var(--col); margin: 6px auto 0; font-family: var(--sans); }

/* a panel or a folded block that a link in the findings points to */
.fig3 .p:target h4, details.more:target > summary { background: #FFF3D6; }
/* narrow screens: every figure's panels in one column */
@media (max-width: 760px) {
  .fig3 .panels3, .fig3 .panels3.even { grid-template-columns: minmax(0, 1fr); }
  .fig3 .p.key, .fig4 .p.key { padding: 0; }
  .fig3 h4 { min-height: 0; }
}
