/* Dataset/benchmark visualisation. Values are injected from the machine summary. */
.db-page { background: var(--paper); }
.current-bar-row { display:grid; grid-template-columns:170px minmax(80px,1fr) 80px; gap:16px; align-items:center; margin:14px 0; font-size:14px; }
.current-bar-track { height:20px; background:#ffffff20; border-radius:3px; overflow:hidden; }
.current-bar-track i { display:block; height:100%; background:#80a99d; transition:width 420ms ease; }
.current-bar-track i.echo { background:#d9ff43; }
#kpis { padding:20px 0; grid-template-columns:repeat(3,minmax(0,1fr)); }
#benchmark-matrix td p { max-width:220px; font-size:13px; }
@media(max-width:620px) { .current-bar-row { grid-template-columns:100px minmax(40px,1fr) 62px; gap:8px; } #leaderboard .db-chart-toolbar label { flex-basis:100%; } }
@media(prefers-reduced-motion:reduce) { .current-bar-track i { transition:none; } }
.db-main { overflow: hidden; }
.db-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .62fr); gap: 52px; align-items: end; max-width: 1280px; min-height: 470px; margin: 0 auto; padding: 78px 5vw 60px; }
.db-hero h1 { max-width: 800px; margin: 14px 0 22px; font-family: var(--serif); font-size: clamp(3.15rem, 6.2vw, 5.65rem); font-weight: 600; letter-spacing: -.06em; line-height: .92; }
.db-hero__lede { max-width: 735px; color: var(--ink-soft); font-size: clamp(1.03rem, 1.35vw, 1.22rem); line-height: 1.58; }
.db-hero__status { display: grid; gap: 13px; padding: 25px; color: var(--white); background: var(--green-dark); border-radius: var(--radius); }
.db-hero__status strong { color: #d9ff43; font-family: var(--mono); font-size: .73rem; letter-spacing: .1em; text-transform: uppercase; }
.db-hero__status p { margin: 0; color: #d3e6e1; font-size: .84rem; line-height: 1.55; }
.db-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.db-toc a { padding: 5px 8px; color: var(--white); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; font-family: var(--mono); font-size: .61rem; text-decoration: none; }
.db-toc a:hover { color: #d9ff43; border-color: #d9ff43; }
.db-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; max-width: 1280px; margin: 0 auto; padding: 0 5vw 28px; background: var(--paper); }
.db-kpis article { display: grid; gap: 8px; min-height: 112px; padding: 19px 18px; background: var(--white); border: 1px solid var(--line); }
.db-kpis article:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.db-kpis article:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.db-kpis span { color: var(--slate); font-family: var(--mono); font-size: .64rem; font-weight: 800; line-height: 1.35; text-transform: uppercase; }
.db-kpis strong { color: var(--ink); font-family: var(--serif); font-size: 2.15rem; font-weight: 600; line-height: 1; }
.db-kpis small { color: #9a6415; font-family: var(--mono); font-size: .59rem; font-weight: 800; letter-spacing: .05em; }
.db-kpi-note { max-width: 1170px; margin: 0 auto 42px; padding: 0 5vw; color: var(--slate); font-family: var(--mono); font-size: .7rem; line-height: 1.55; }
.db-section { padding: 70px 5vw; }
.db-section--dark { color: var(--white); background: var(--ink); }
.db-section--tinted { background: var(--paper-deep); }
.db-section__inner { max-width: 1240px; margin: 0 auto; }
.db-section-heading { max-width: 790px; margin-bottom: 28px; }
.db-section-heading h2 { margin: 9px 0 12px; font-family: var(--serif); font-size: clamp(2.15rem, 4vw, 3.65rem); font-weight: 600; letter-spacing: -.045em; line-height: .98; }
.db-section-heading p { color: var(--ink-soft); font-size: .9rem; line-height: 1.58; }
.db-section--dark .db-section-heading p { color: #c7d0cb; }
.db-kicker { color: var(--green); font-family: var(--mono); font-size: .67rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.db-section--dark .db-kicker { color: #80cfb9; }
.db-chart-toolbar, .db-table-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 22px; }
.db-chart-toolbar label, .db-table-toolbar label { display: grid; gap: 5px; color: #bcd8cf; font-family: var(--mono); font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.db-table-toolbar label { color: var(--slate); }
.db-chart-toolbar select, .db-table-toolbar select { min-width: 158px; padding: 9px 28px 9px 10px; color: var(--white); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.23); border-radius: 5px; font: inherit; font-size: .68rem; letter-spacing: 0; text-transform: none; }
.db-table-toolbar select { color: var(--ink); background: var(--white); border-color: var(--line); }
.db-chart-shell { min-height: 150px; padding: 18px 20px; background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius); overflow: hidden; }
.db-chart-shell--wide { padding: 12px 16px 16px; background: var(--white); border-color: var(--line); }
.leaderboard-svg svg, .generator-svg-scroll svg { display: block; width: 100%; height: auto; }
.chart-axis line { stroke: rgba(255,255,255,.15); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-axis text { fill: #9db8ae; font-family: var(--mono); font-size: 12px; }
.chart-label { fill: #f7f9f4; font-family: var(--sans); font-size: 16px; font-weight: 700; }
.chart-value { fill: #d9ff43; font-family: var(--mono); font-size: 17px; font-weight: 800; }
.chart-detail { fill: #9db8ae; font-family: var(--mono); font-size: 11px; }
.chart-bar { fill: rgba(128,207,185,.7); }
.chart-bar--primary { fill: #d9ff43; }
.chart-whisker { stroke: #fff; stroke-width: 2; }
.db-chart--animate .chart-bar { animation: db-bar-grow .42s cubic-bezier(.2,.75,.25,1) both; transform-origin: left center; }
@keyframes db-bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.chart-footnote, .db-chart-note { margin: 15px 0 0; color: #9db8ae; font-family: var(--mono); font-size: .68rem; line-height: 1.5; }
.db-chart-marker { display: inline-block; width: 9px; height: 9px; margin-right: 5px; background: var(--amber); border-radius: 50%; }
.chart-empty { margin: 18px 0; color: #c7d0cb; font-family: var(--mono); font-size: .75rem; }
.db-method-toggles { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.method-toggle { padding: 8px 10px; color: var(--slate); background: var(--white); border: 1px solid var(--line); border-radius: 999px; font-family: var(--mono); font-size: .65rem; cursor: pointer; }
.method-toggle[aria-pressed="true"] { color: var(--ink); background: #d9ff43; border-color: #d9ff43; }
.method-toggle:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.generator-svg-scroll { overflow-x: auto; }
.generator-svg-scroll svg { min-width: 1040px; }
.generator-band--c2i { fill: rgba(31,111,176,.07); }
.generator-band--t2i { fill: rgba(182,73,102,.055); }
.generator-gridline { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 5; }
.generator-axis { stroke: var(--slate); stroke-width: 1.3; }
.generator-axis-label, .generator-sub { fill: var(--slate); font-family: var(--mono); font-size: 11px; }
.generator-label { fill: var(--ink); font-family: var(--sans); font-size: 12px; font-weight: 700; }
.generator-bar { fill: rgba(31,111,176,.72); }
.generator-bar--primary { fill: var(--green); }
.generator-value { fill: var(--ink); font-family: var(--mono); font-size: 10px; font-weight: 800; }
.generator-tbd { fill: #a7aaa4; font-family: var(--mono); font-size: 9px; }
.db-chart--animate .generator-bar { animation: db-bar-rise .42s cubic-bezier(.2,.75,.25,1) both; transform-origin: center bottom; }
@keyframes db-bar-rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
.generator-chart-legend { display: flex; flex-wrap: wrap; gap: 13px; margin: 11px 0 0 55px; color: var(--slate); font-family: var(--mono); font-size: .64rem; }
.method-swatch { display: inline-block; width: 10px; height: 10px; margin-right: 5px; background: rgba(31,111,176,.72); border-radius: 2px; }
.method-swatch--primary { background: var(--green); }
.db-table-legend { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; margin-bottom: 12px; color: var(--slate); font-family: var(--mono); font-size: .64rem; }
.db-scale { display: inline-block; width: 24px; height: 8px; margin-right: 4px; border-radius: 3px; vertical-align: middle; }
.db-scale--low { background: #dbe8ef; }
.db-scale--mid { background: #94c5d9; }
.db-scale--high { background: #d9ff43; }
.db-table-wrap, .db-leakage-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.db-matrix { width: max-content; min-width: 1160px; border-collapse: separate; border-spacing: 0; color: var(--ink); font-size: .73rem; }
.db-matrix th, .db-matrix td { min-width: 104px; padding: 10px 11px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.db-matrix thead th { position: sticky; top: 0; z-index: 4; background: #f7f9f4; color: var(--ink); font-family: var(--mono); font-size: .62rem; letter-spacing: .04em; text-transform: uppercase; }
.db-matrix thead tr:first-child th { top: 0; padding-top: 13px; padding-bottom: 13px; background: var(--ink); color: #d9ff43; }
.db-matrix thead tr:nth-child(2) th { top: 39px; }
.db-matrix thead th small { display: block; margin-top: 4px; color: var(--slate); font-size: .55rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
.db-matrix .matrix-method { position: sticky; left: 0; z-index: 5; width: 190px; min-width: 190px; background: var(--white); box-shadow: 5px 0 10px rgba(9,23,21,.06); }
.db-matrix thead .matrix-method { z-index: 7; background: var(--ink); color: #d9ff43; }
.db-matrix .matrix-method span { display: block; font-weight: 800; }
.db-matrix .matrix-method small { display: block; margin-top: 4px; color: var(--slate); font-family: var(--mono); font-size: .55rem; font-weight: 400; line-height: 1.3; }
.matrix-header-labels th { white-space: normal; }
.matrix-regime-row th { position: sticky; left: 0; z-index: 3; padding: 8px 11px; color: var(--green-dark); background: #edf4e8; font-family: var(--mono); font-size: .63rem; letter-spacing: .08em; text-transform: uppercase; }
.matrix-cell { position: relative; min-width: 112px; background: linear-gradient(90deg, color-mix(in srgb, #dbe8ef calc((1 - var(--score, 0)) * 100%), #d9ff43) 0%, color-mix(in srgb, #dbe8ef calc((1 - var(--score, 0)) * 100%), #d9ff43) 100%); }
.matrix-cell.is-tbd { background: #f7f9f4; }
.matrix-detail summary { min-width: 76px; color: var(--ink); font-family: var(--mono); font-size: .72rem; font-weight: 800; cursor: pointer; list-style: none; }
.matrix-detail summary::-webkit-details-marker { display: none; }
.matrix-detail summary::after { content: "＋"; float: right; color: var(--slate); font-size: .68rem; }
.matrix-detail[open] summary::after { content: "−"; }
.matrix-detail__text { display: block; min-width: 185px; max-width: 250px; margin-top: 7px; color: var(--slate); font-family: var(--mono); font-size: .61rem; font-weight: 400; line-height: 1.45; }
.rank-label { margin-left: 4px; color: #996413; font-size: .52rem; font-style: normal; text-transform: uppercase; }
.rank-label--best { color: var(--green-dark); }
.db-legacy { margin-top: 15px; border: 1px solid #df9a87; border-radius: var(--radius); background: #fff0ec; }
.db-legacy summary { padding: 12px 14px; color: #8e2e1d; font-family: var(--mono); font-size: .68rem; font-weight: 800; cursor: pointer; }
.db-legacy summary span { margin-right: 8px; padding: 3px 5px; color: #fff; background: #b8462d; }
.db-legacy p { margin: 0; padding: 0 14px 14px; color: #8e2e1d; font-size: .78rem; line-height: 1.5; }
.db-leakage { width: 100%; min-width: 760px; border-collapse: collapse; color: var(--white); font-size: .75rem; }
.db-leakage th, .db-leakage td { padding: 13px 14px; border-bottom: 1px solid rgba(255,255,255,.14); text-align: left; vertical-align: top; }
.db-leakage thead th { color: #80cfb9; background: rgba(255,255,255,.05); font-family: var(--mono); font-size: .62rem; letter-spacing: .05em; text-transform: uppercase; }
.db-leakage tbody th { font-family: var(--sans); font-size: .8rem; }
.db-leakage td { color: #c7d0cb; line-height: 1.45; }
.db-links { margin: 20px 0 0; color: #c7d0cb; font-size: .72rem; line-height: 1.8; }
.db-links strong { color: var(--white); }
.db-links a { color: #d9ff43; text-decoration: none; }
.db-links a:hover { text-decoration: underline; }
.db-contract-strip { padding-top: 36px; padding-bottom: 36px; }
.db-contract-strip p { max-width: 980px; margin: 0; color: var(--ink-soft); font-size: .8rem; line-height: 1.55; }
.db-contract-strip .db-boundary { margin-top: 10px; }
.db-contract-strip .db-boundary strong { color: var(--ink); }
.db-back { color: #80cfb9; font-family: var(--mono); font-size: .7rem; font-weight: 800; text-decoration: none; }
.db-back:hover { color: var(--white); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) {
  .db-chart--animate .chart-bar, .db-chart--animate .generator-bar { animation: none; }
}
@media (max-width: 920px) {
  .db-hero { grid-template-columns: 1fr; gap: 28px; min-height: auto; }
  .db-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .db-kpis article:first-child { border-radius: var(--radius) 0 0 0; }
  .db-kpis article:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
  .db-kpis article:nth-child(3) { border-radius: 0 0 0 var(--radius); }
  .db-kpis article:last-child { border-radius: 0 0 var(--radius) 0; }
}
@media (max-width: 620px) {
  .db-hero, .db-section, .db-kpi-note { padding-right: 20px; padding-left: 20px; }
  .db-hero { padding-top: 52px; padding-bottom: 46px; }
  .db-hero h1 { font-size: clamp(3rem, 15vw, 4.4rem); }
  .db-kpis { grid-template-columns: 1fr 1fr; padding-right: 20px; padding-left: 20px; }
  .db-kpis article { min-height: 105px; padding: 15px 13px; }
  .db-kpis strong { font-size: 1.8rem; }
  .db-kpis span { font-size: .56rem; }
  .db-kpis small { font-size: .51rem; }
  .db-section { padding-top: 50px; padding-bottom: 50px; }
  .db-chart-toolbar, .db-table-toolbar { align-items: stretch; }
  .db-chart-toolbar label, .db-table-toolbar label { flex: 1 1 145px; }
  .db-chart-toolbar select, .db-table-toolbar select { width: 100%; min-width: 0; }
  .db-chart-shell { padding: 13px; }
  .db-matrix { min-width: 1160px; }
  .db-matrix .matrix-method { width: 160px; min-width: 160px; }
  .db-table-wrap { margin-right: -20px; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
  .db-legacy { margin-right: -20px; border-right: 0; border-radius: var(--radius) 0 0 var(--radius); }
}
/* 2026-09-18: dark leakage table on the dark section; wrapping prose tables for mechanism/roster. */
.db-leakage-wrap { background: transparent; border-color: rgba(255,255,255,.16); }
.db-leakage tbody th { color: var(--white); background: transparent; }
.db-leakage code { color: #d9ff43; }
#mechanism-table, #roster-table { width: 100%; min-width: 720px; table-layout: fixed; }
#mechanism-table th, #mechanism-table td, #roster-table th, #roster-table td { white-space: normal; overflow-wrap: anywhere; }
#mechanism-table .matrix-method, #roster-table .matrix-method { position: static; width: 150px; min-width: 150px; box-shadow: none; }
#mechanism-table th:nth-child(2) { width: 150px; }
#mechanism-table th:nth-child(3) { width: 34%; }
@media (max-width: 620px) { #mechanism-table, #roster-table { min-width: 620px; } }
table.db-leakage { background: transparent; }
table.db-leakage th, table.db-leakage td { text-transform: none; letter-spacing: 0; }
table.db-leakage td:nth-child(2) { width: 34%; }
table.db-leakage tbody th { color: var(--white); background: transparent; font-size: .8rem; }
