/* GeneProv website. Tokens follow the validated reference palette (light and dark are each chosen, not flipped). */
:root {
  color-scheme: light;
  --page:#f9f9f7; --surface:#fcfcfb; --surface-2:#f1f0ec; --ink:#0b0b0b; --ink-2:#52514e; --muted:#898781;
  --grid:#e1e0d9; --axis:#c3c2b7; --line:rgba(11,11,11,0.10); --line-2:rgba(11,11,11,0.18);
  --blue:#2a78d6; --orange:#eb6834; --aqua:#1baf7a; --aqua-ink:#0d7a52; --annot:#898781;
  --accent:#2a78d6; --accent-ink:#1c5cab; --accent-wash:rgba(42,120,214,0.10);
  --good:#006300; --chip:#f1f0ec; --chip-on:#0b0b0b; --chip-on-fg:#fcfcfb; --shadow:0 8px 28px rgba(11,11,11,0.10);
  --font:system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,"Liberation Mono",monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page:#0d0d0d; --surface:#1a1a19; --surface-2:#232322; --ink:#f0efec; --ink-2:#c3c2b7; --muted:#898781;
    --grid:#2c2c2a; --axis:#383835; --line:rgba(255,255,255,0.10); --line-2:rgba(255,255,255,0.18);
    --blue:#3987e5; --orange:#d95926; --aqua:#199e70; --aqua-ink:#7fdcb5; --annot:#898781;
    --accent:#3987e5; --accent-ink:#86b6ef; --accent-wash:rgba(57,135,229,0.16);
    --good:#0ca30c; --chip:#232322; --chip-on:#f0efec; --chip-on-fg:#1a1a19; --shadow:0 8px 28px rgba(0,0,0,0.45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page:#0d0d0d; --surface:#1a1a19; --surface-2:#232322; --ink:#f0efec; --ink-2:#c3c2b7; --muted:#898781;
  --grid:#2c2c2a; --axis:#383835; --line:rgba(255,255,255,0.10); --line-2:rgba(255,255,255,0.18);
  --blue:#3987e5; --orange:#d95926; --aqua:#199e70; --aqua-ink:#7fdcb5; --annot:#898781;
  --accent:#3987e5; --accent-ink:#86b6ef; --accent-wash:rgba(57,135,229,0.16);
  --good:#0ca30c; --chip:#232322; --chip-on:#f0efec; --chip-on-fg:#1a1a19; --shadow:0 8px 28px rgba(0,0,0,0.45);
}
* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body { margin:0; background:var(--page); color:var(--ink); font-family:var(--font); font-size:15px; line-height:1.5; }
a { color:var(--accent-ink); text-decoration:none; } a:hover { text-decoration:underline; }
code, pre, .mono { font-family:var(--mono); }
code { font-size:0.88em; background:var(--surface-2); padding:1px 5px; border-radius:4px; }
pre { background:var(--surface-2); border:1px solid var(--line); border-radius:8px; padding:12px 14px; overflow-x:auto; font-size:12.5px; line-height:1.5; }
pre code { background:none; padding:0; font-size:inherit; }
h1, h2, h3 { line-height:1.2; letter-spacing:-0.01em; margin:0; text-wrap:balance; }
h1 { font-size:34px; font-weight:650; } h2 { font-size:22px; font-weight:620; margin-top:36px; margin-bottom:10px; }
h3 { font-size:16px; font-weight:620; margin-top:22px; margin-bottom:6px; }
p { margin:8px 0; } p.lead { font-size:17px; color:var(--ink-2); max-width:70ch; }
.wrap { max-width:1120px; margin:0 auto; padding-left:max(16px, env(safe-area-inset-left, 0px)); padding-right:max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-size:11.5px; letter-spacing:0.08em; text-transform:uppercase; color:var(--muted); margin-bottom:8px; }
.muted { color:var(--muted); } .small { font-size:13px; } .num { font-variant-numeric:tabular-nums; }
hr { border:0; border-top:1px solid var(--line); margin:28px 0; }
ul, ol { padding-left:22px; } li { margin:4px 0; }
/* header and nav */
.site-header { position:sticky; top:env(safe-area-inset-top, 0px); z-index:20; background:color-mix(in srgb, var(--page) 88%, transparent); backdrop-filter:blur(8px); border-bottom:1px solid var(--line); }
.site-header .wrap { display:flex; align-items:center; gap:18px; min-height:56px; }
.brand { display:flex; align-items:center; gap:9px; font-weight:650; font-size:17px; color:var(--ink); white-space:nowrap; }
.brand svg { width:22px; height:22px; } .brand .ver { font-weight:500; font-size:12px; color:var(--muted); margin-left:2px; }
nav.main { display:flex; gap:2px; overflow-x:auto; scrollbar-width:none; margin-left:auto; } nav.main::-webkit-scrollbar { display:none; }
nav.main a { padding:7px 10px; border-radius:7px; color:var(--ink-2); font-size:14px; white-space:nowrap; }
nav.main a:hover { background:var(--surface-2); text-decoration:none; color:var(--ink); } nav.main a[aria-current="page"] { color:var(--ink); background:var(--surface-2); font-weight:560; }
nav.main a.ext::after { content:"\2197"; font-size:11px; margin-left:3px; color:var(--muted); }
.theme-btn { border:1px solid var(--line); background:var(--surface); color:var(--ink-2); border-radius:7px; width:34px; height:32px; cursor:pointer; display:inline-flex; align-items:center; justify-content:center; flex:none; }
.theme-btn:hover { color:var(--ink); } .theme-btn svg { width:16px; height:16px; }
@media (max-width:720px) { .site-header .wrap { flex-wrap:wrap; padding-bottom:6px; } nav.main { margin-left:0; width:100%; order:3; } }
/* buttons, chips, badges */
.btn { display:inline-flex; align-items:center; gap:7px; padding:8px 14px; border-radius:8px; border:1px solid var(--line-2); background:var(--surface); color:var(--ink); font:inherit; font-size:14px; font-weight:540; cursor:pointer; }
.btn:hover { text-decoration:none; background:var(--surface-2); } .btn.primary { background:var(--ink); color:var(--page); border-color:var(--ink); } .btn.primary:hover { opacity:0.9; }
.btn svg { width:15px; height:15px; }
.chip { font:inherit; font-size:13px; padding:5px 11px; border-radius:999px; border:1px solid var(--line); background:var(--chip); color:var(--ink); cursor:pointer; }
.chip[aria-pressed="true"] { background:var(--chip-on); color:var(--chip-on-fg); border-color:var(--chip-on); }
.chip:focus-visible, .btn:focus-visible, .theme-btn:focus-visible { outline:2px solid var(--accent); outline-offset:2px; }
.badge { display:inline-block; font-size:11px; font-weight:600; letter-spacing:0.02em; padding:1px 7px; border-radius:999px; border:1px solid var(--line-2); color:var(--ink-2); vertical-align:middle; }
.badge.v11 { color:var(--accent-ink); border-color:var(--accent-ink); }
.actions { display:flex; flex-wrap:wrap; gap:10px; margin:18px 0 6px; }
/* cards, grids, tiles */
.card { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:18px 20px; }
.grid { display:grid; gap:14px; } .grid.c3 { grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); } .grid.c2 { grid-template-columns:repeat(auto-fit, minmax(300px, 1fr)); }
.tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); gap:12px; margin:16px 0; }
.tile { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:14px 16px; }
.tile .v { font-size:26px; font-weight:620; letter-spacing:-0.01em; line-height:1.15; } .tile .k { font-size:12.5px; color:var(--ink-2); margin-top:4px; } .tile .s { font-size:11.5px; color:var(--muted); margin-top:3px; }
.callout { border-left:3px solid var(--accent); background:var(--accent-wash); border-radius:0 10px 10px 0; padding:10px 14px; margin:14px 0; }
.callout.warn { border-left-color:var(--orange); background:color-mix(in srgb, var(--orange) 10%, transparent); }
/* hero */
.hero { padding:44px 0 18px; } .hero h1 { font-size:40px; max-width:22ch; } .hero .lead { margin-top:12px; }
.hero .meta { display:flex; flex-wrap:wrap; gap:8px 18px; font-size:13px; color:var(--muted); margin-top:14px; }
@media (max-width:720px) { .hero { padding-top:28px; } .hero h1 { font-size:30px; } h1 { font-size:28px; } }
/* tables */
.tbl-wrap { overflow-x:auto; border:1px solid var(--line); border-radius:10px; background:var(--surface); }
table.data { border-collapse:collapse; width:100%; font-size:13px; font-variant-numeric:tabular-nums; }
table.data th, table.data td { padding:7px 10px; border-bottom:1px solid var(--line); text-align:right; white-space:nowrap; vertical-align:top; }
table.data th:first-child, table.data td:first-child, table.data .l { text-align:left; } table.data th.l, table.data td.l { text-align:left; }
table.data th { font-weight:540; color:var(--ink-2); font-size:12px; position:sticky; top:0; background:var(--surface); z-index:1; }
table.data th.sortable { cursor:pointer; user-select:none; } table.data th.sortable:hover { color:var(--ink); }
table.data th[aria-sort="descending"]::after { content:" \2193"; } table.data th[aria-sort="ascending"]::after { content:" \2191"; }
table.data tr:last-child td { border-bottom:0; } table.data tbody tr:hover td { background:var(--surface-2); }
table.data td.name { font-weight:540; max-width:360px; white-space:normal; } table.data td.dim, table.data .dim { color:var(--muted); }
table.data tr.sel td { background:var(--accent-wash); }
table.prose { border-collapse:collapse; width:100%; font-size:14px; } table.prose th, table.prose td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
table.prose th { font-weight:580; color:var(--ink-2); font-size:12.5px; } table.prose tr:last-child td { border-bottom:0; }
.dot { display:inline-block; width:10px; height:10px; border-radius:2px; margin-right:7px; vertical-align:-1px; }
.dot.bio { background:var(--aqua); } .dot.gen { background:var(--orange); } .dot.clean { background:var(--blue); } .dot.annot { background:var(--annot); }
.dot.biotext { background:repeating-linear-gradient(135deg, var(--aqua) 0 2px, var(--aqua-ink) 2px 3px); }
/* leaderboard */
.controls { display:flex; flex-wrap:wrap; gap:10px 22px; align-items:center; margin:16px 0 8px; }
.group { display:flex; align-items:center; gap:6px; flex-wrap:wrap; } .group .lbl { font-size:12px; color:var(--muted); margin-right:2px; }
.legend { display:flex; flex-wrap:wrap; gap:8px 18px; font-size:12.5px; color:var(--ink-2); margin:8px 0 6px; }
.legend span { display:inline-flex; align-items:center; gap:7px; } .sw { width:14px; height:14px; border-radius:3px; display:inline-block; }
.chart-card { background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:14px 8px 8px; overflow-x:auto; }
.chart-card svg { display:block; max-width:100%; min-width:760px; height:auto; font-family:var(--font); }
.bar-row { cursor:pointer; outline:none; } .bar-row:hover rect.bar, .bar-row:focus rect.bar { filter:brightness(0.92); } .bar-row:focus-visible rect.hit { stroke:var(--accent); stroke-width:1.5; }
.tip { position:fixed; pointer-events:none; background:var(--surface); color:var(--ink); border:1px solid var(--line-2); border-radius:9px; padding:9px 11px; font-size:12.5px; box-shadow:var(--shadow); max-width:300px; z-index:30; line-height:1.4; }
.tip .t { font-weight:600; margin-bottom:3px; } .tip .r { display:flex; justify-content:space-between; gap:14px; } .tip .r b { font-weight:600; font-variant-numeric:tabular-nums; } .tip .r span { color:var(--ink-2); }
.detail { margin-top:12px; } .detail .kv { display:grid; grid-template-columns:max-content 1fr; gap:4px 16px; font-size:13.5px; } .detail .kv dt { color:var(--muted); } .detail .kv dd { margin:0; }
.detail .skills { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0; } .detail .skill { background:var(--surface-2); border-radius:8px; padding:8px 12px; min-width:110px; } .detail .skill .v { font-size:18px; font-weight:620; } .detail .skill .k { font-size:11.5px; color:var(--muted); }
.detail table.data { font-size:12.5px; } .detail .close { float:right; }
.footnote { font-size:12.5px; color:var(--ink-2); max-width:84ch; } .footnote code { font-size:11.5px; }
.toolbar { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; margin:16px 0 8px; }
/* steps and definition lists */
ol.steps { counter-reset:s; list-style:none; padding:0; margin:14px 0; } ol.steps > li { counter-increment:s; position:relative; padding-left:40px; margin:14px 0; }
ol.steps > li::before { content:counter(s); position:absolute; left:0; top:1px; width:26px; height:26px; border-radius:50%; background:var(--ink); color:var(--page); font-size:13px; font-weight:620; display:flex; align-items:center; justify-content:center; }
ol.steps > li > b:first-child { display:block; margin-bottom:3px; }
dl.spec { display:grid; grid-template-columns:max-content 1fr; gap:6px 18px; margin:10px 0; font-size:14px; } dl.spec dt { color:var(--muted); } dl.spec dd { margin:0; }
@media (max-width:560px) { dl.spec, .detail .kv { grid-template-columns:1fr; } dl.spec dt, .detail .kv dt { margin-top:6px; } }
/* footer */
.site-footer { margin-top:56px; border-top:1px solid var(--line); padding:22px 0 40px; font-size:13px; color:var(--muted); }
.site-footer .wrap { display:flex; flex-wrap:wrap; gap:8px 24px; justify-content:space-between; }
@media (prefers-reduced-motion: reduce) { * { transition:none !important; scroll-behavior:auto !important; } }
@media print { .site-header, .theme-btn, .controls, .toolbar { display:none; } body { background:#fff; color:#000; } .card, .tile, .tbl-wrap { border-color:#ccc; } }

/* Keyboard sorting retains the native table structure. */
table.data th.sortable:focus-visible { outline:2px solid var(--accent); outline-offset:-2px; }

.skip-link { position:absolute; left:12px; top:-80px; z-index:40; padding:8px 16px; background:var(--surface); color:var(--ink); }
.skip-link:focus { top:8px; }
html { scroll-padding-top:76px; }
.wrap { max-width:1190px; padding-inline:max(clamp(18px,3.5vw,48px),env(safe-area-inset-left,0px)); }
.site-header .wrap { min-height:64px; }
.site-header .brand { font-weight:720; letter-spacing:-.035em; font-size:20px; }
.site-header .brand svg { width:27px; height:27px; }
.site-header .brand .ver { font:11px var(--mono); letter-spacing:0; border-left:1px solid var(--line-2); padding-left:9px; }
@media (max-width:820px) {
  .site-header .wrap { flex-wrap:wrap; gap:3px 14px; padding-top:9px; padding-bottom:4px; }
  .site-header .theme-btn { margin-left:auto; }
  .site-header nav.main { margin-left:0; order:3; width:100%; }
  .site-header nav.main a { font-size:13px; }
  html { scroll-padding-top:98px; }
}
