/* RUDO(TM) trust pages: rounds, rules, data, verify, models, partners, about, privacy, terms, help, ops, 404.
   Tokens only (rudo.css). Light by default; explicit dark via :root[data-theme="dark"] through the same tokens. */

/* page head: eyebrow, title at page size, one-sentence purpose */
.trust main>h1,.trust #rounds-root>h1,.trust .notfound h1{font-size:clamp(1.75rem,3.2vw,2.25rem);line-height:1.18;max-width:28ch;margin:0 0 .35em}
.trust .lead{margin:0 0 40px;max-width:62ch}
.trust main>.eyebrow,.trust #rounds-root>.eyebrow,.trust .notfound .eyebrow{margin-bottom:8px}
.trust main>.eyebrow a{text-decoration:none}
.trust main>.eyebrow a:hover{text-decoration:underline}
.trust section>h2{margin-top:0;margin-bottom:.4em}
.trust section>.muted{max-width:68ch}
.trust section>.table-wrap,.trust section>.grid{margin-top:16px}
.trust .prose{max-width:68ch}
.trust main>.prose{margin-bottom:56px}
.trust .prose h2{font:400 1.5rem/1.25 var(--font-display);margin:1.8em 0 .4em}
.trust .prose p,.trust .prose li{color:var(--ink)}
.trust .prose p.muted{color:var(--muted)}
.trust .grid{display:grid;gap:16px}
.trust .grid.c2,.trust .grid.c3{grid-template-columns:1fr}
@media(min-width:760px){.trust .grid.c2{grid-template-columns:repeat(2,minmax(0,1fr))}.trust .grid.c3{grid-template-columns:repeat(3,minmax(0,1fr))}}
.trust .card{padding:20px}
@media(min-width:760px){.trust .card{padding:24px}}
.trust section.card{margin-bottom:40px}
.trust .card h2{font-size:1.5rem;margin-top:0}
.gap{margin-top:12px}
.strong{font-weight:600;margin-bottom:0}
.filter{margin-bottom:16px}
.filter select{width:auto;min-width:11em}
.formula-line{font-size:1.1rem;padding:14px 12px;overflow-wrap:anywhere}
.notfound{padding:8px 0 32px}
.notfound .grid{margin:8px 0 28px}
.notfound .guide{margin:0 0 24px}
.trust .toc{margin:24px 0 12px}

/* tables */
.trust table{font-size:.9375rem}
.trust th{font-size:.8125rem;letter-spacing:.02em;white-space:nowrap;background:var(--page);border-bottom:1px solid var(--line)}
.trust td,.trust th{padding:.7em .85em}
.trust tbody tr:last-child td{border-bottom:0}
.trust .table-wrap{box-shadow:var(--shadow)}
td.n,th.n{text-align:right;font-family:var(--font-mono);font-variant-numeric:tabular-nums}
.stats-table{min-width:0!important}
.trust .table-wrap .stats-table td.num{font-size:1.0625rem}
.trust dl.kv{margin:12px 0}

/* rounds: status carries a shape and a word, never colour alone */
.pill[title]::before{display:inline-block;margin-right:.4em;font-size:.8em;line-height:1}
.pill[title="OPEN"]::before{content:"\25CF"}
.pill[title="CLOSED"]::before{content:"\25A0"}
.pill[title="PENDING_DATA"]::before{content:"\25CB"}
.pill[title="SCORED_PROVISIONAL"]::before{content:"\25D0"}
.pill[title="FINAL"]::before{content:"\2713"}
.pill[title="VOID"]::before{content:"\2715"}
#det .card,#det section.card{margin:0}
#det>.grid+.card,#det>.card{margin-top:16px}
#det .refplot{margin:16px 0 8px}
#rounds-root .table-wrap td:first-child a{font-weight:600}

/* help, faq, details */
details{border:1px solid var(--line);border-radius:var(--radius-sm);padding:10px 14px;margin:8px 0;background:var(--surface)}
details>summary{cursor:pointer;font-weight:600;min-height:32px}
details.faq{border:0;border-bottom:1px solid var(--line);border-radius:0;background:none;padding:14px 0;margin:0}
details.faq p{max-width:68ch}

/* language blocks (bilingual long prose) */
html:not([lang="zh-CN"]) .l-zh{display:none!important}
html[lang="zh-CN"] .l-en{display:none!important}

/* models bench */
:root{--chart-a:#1A5FB4;--chart-b:#9A5B00;--chart-c:#0E6B63;--chart-grid:var(--line);--chart-axis:var(--muted)}
:root[data-theme="dark"]{--chart-a:#8DB8E6;--chart-b:#F2CF8E;--chart-c:#5CCBBC}
.hero-band{border-left:3px solid var(--accent);padding:2px 0 2px 18px;margin:0 0 40px;max-width:68ch}
.lede{font-size:1.125rem;line-height:1.65;color:var(--muted);margin:0}
.callout{background:var(--surface);border:1px solid var(--line);border-left:3px solid var(--accent);border-radius:var(--radius-sm);padding:16px 20px;margin:16px 0;max-width:80ch}
.callout p:first-child{margin-top:0}.callout ul{margin-bottom:0}
.bench{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:20px;box-shadow:var(--shadow);min-width:0;margin-top:16px}
.bench .row{align-items:flex-end;margin:0 0 12px}
.bench label{display:flex;flex-direction:column;gap:4px;font-size:.875rem;color:var(--muted)}
.bench input[type=number]{width:8em}
.bench select{width:auto}
.bench textarea{width:100%;min-height:120px;font:13px/1.5 var(--font-mono)}
.inline-field{flex-direction:row!important;align-items:center;gap:8px!important;margin-top:8px}
#out{min-width:560px}
.ladder td:nth-child(3){min-width:14em}
.ladder td:nth-child(2),#out td:nth-child(2){min-width:8.5em}
.bar{height:8px;background:var(--primary);border-radius:4px;min-width:2px}
tr.best td{font-weight:700}
.chart{width:100%;position:relative;margin-top:16px}
.chart svg{display:block;width:100%;height:auto;overflow:visible}
.chart .tip{position:absolute;pointer-events:none;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:4px 8px;font:12px var(--font-mono);box-shadow:var(--shadow);white-space:nowrap;display:none;z-index:2}
.legend{display:flex;flex-wrap:wrap;gap:4px 16px;font-size:.875rem;color:var(--muted);margin:4px 0}
.legend i{display:inline-block;width:18px;height:3px;vertical-align:middle;margin-right:6px;border-radius:2px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.tablewrap{overflow-x:auto;max-width:100%}

/* ops: plain */
body[data-page="ops"] .card{box-shadow:none}
body[data-page="ops"] #key-form,body[data-page="ops"] #void-form{max-width:640px}
body[data-page="ops"] section{margin-bottom:40px}

/* forms */
.trust .field{grid-template-columns:minmax(0,1fr)}
.trust .field>*{min-width:0}
.trust input[type=file]{width:100%;max-width:100%;min-height:44px;padding:.5em;font-size:.875rem}
.trust .grid>*{min-width:0}
.bench .row>label{min-width:0;max-width:100%}
.bench select{max-width:100%;min-width:0}
.tablewrap{border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--surface);margin-top:12px}
.tablewrap table{min-width:420px}
.chart .tablewrap,.chart details{margin-top:8px}
