/* The static pages of the rankings (standing-web/pages/build.py) — the colours of bb84.com/standing. */
:root { --bg:#0c0c12; --surface:#13131f; --card:#1a1a2e; --border:#252538; --border-hl:#353558; --text:#e2e8f0; --muted:#7a879c; --subtle:#94a3b8; --accent:#4a7fb5; --accent-text:#7fb0e0; --teal:#14b8a6; }
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Inter",sans-serif; background:var(--bg); color:var(--text); line-height:1.55; }
a { color:var(--accent-text); text-decoration:none; }
a:hover { text-decoration:underline; }
:focus-visible { outline:2px solid var(--accent); outline-offset:2px; border-radius:6px; }
header.top { display:flex; align-items:center; gap:18px; flex-wrap:wrap; padding:14px 20px; border-bottom:1px solid var(--border); background:var(--surface); }
.brand { display:inline-flex; align-items:center; gap:8px; color:var(--text); font-weight:700; letter-spacing:.02em; }
header.top nav { display:flex; gap:16px; flex-wrap:wrap; flex:1; font-size:14px; }
header.top nav a { color:var(--subtle); }
.cta { display:inline-block; background:var(--teal); color:#0c0c12; font-weight:700; border-radius:8px; padding:8px 14px; font-size:14px; }
.cta:hover { text-decoration:none; filter:brightness(1.08); }
main { max-width:1000px; margin:0 auto; padding:24px 20px 40px; }
.crumbs { font-size:13px; color:var(--muted); margin:0 0 10px; }
.crumbs a { color:var(--subtle); }
h1 { font-size:clamp(26px,4.4vw,38px); line-height:1.15; margin:0 0 16px; }
h2 { font-size:20px; margin:34px 0 12px; }
.lead { font-size:18px; color:var(--text); margin:0 0 14px; }
.more { font-size:15px; margin:0 0 20px; }
.note, .facts, .dim { color:var(--subtle); font-size:14px; }
.scroll { overflow-x:auto; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
table { border-collapse:collapse; width:100%; font-size:15px; }
th, td { text-align:left; padding:9px 12px; border-bottom:1px solid var(--border); vertical-align:top; }
tbody tr:last-child td { border-bottom:0; }
th { font-size:12px; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:600; white-space:nowrap; background:var(--card); }
th.n, td.n { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
a.src { font-size:12px; color:var(--muted); margin-left:6px; }
ul { padding-left:20px; }
ul.cols { columns:3 220px; list-style:none; padding:0; }
ul.cols li { break-inside:avoid; padding:2px 0; }
ul.quotes q { color:var(--subtle); }
.az { display:flex; flex-wrap:wrap; gap:6px; }
.az a { display:inline-block; min-width:30px; text-align:center; padding:4px 6px; border:1px solid var(--border); border-radius:8px; }
.bio { display:flex; gap:20px; align-items:flex-start; flex-wrap:wrap; }
.bio figure { margin:0; max-width:220px; }
.bio figure img { width:100%; height:auto; border-radius:12px; border:1px solid var(--border); display:block; }
.bio figcaption { font-size:11px; color:var(--muted); margin-top:6px; }
.bio > div { flex:1; min-width:240px; }
.method { margin-top:36px; padding:16px 18px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.method h2 { margin:0 0 6px; font-size:15px; color:var(--subtle); }
.method p { margin:0; font-size:14px; color:var(--subtle); }
.badge { margin:22px 0; padding:16px; border:1px solid var(--border); border-radius:12px; background:var(--surface); }
.badge label { display:block; font-size:13px; color:var(--subtle); }
.badge textarea { display:block; width:100%; margin-top:6px; background:var(--bg); color:var(--text); border:1px solid var(--border-hl); border-radius:8px; padding:8px; font:12px/1.4 "SF Mono","Fira Code",ui-monospace,Menlo,monospace; resize:vertical; }
footer { border-top:1px solid var(--border); background:var(--surface); padding:22px 20px 34px; font-size:14px; color:var(--subtle); }
footer p { max-width:1000px; margin:0 auto 10px; }
footer .tool { color:var(--text); }
/* a narrow window: a ranking keeps its columns and is pushed sideways instead of breaking every name over three lines */
@media (max-width:640px) { th, td { padding:8px 9px; font-size:14px; } header.top nav { order:3; flex-basis:100%; } .scroll table { min-width:600px; } .scroll table.slim { min-width:0; } }
