/* UMA — browser for UMDB data releases. Light by default, dark with the system setting. */
:root{
  --bg:#f7f6f2; --surface:#ffffff; --surface-2:#f0eee8; --ink:#1b1f24; --muted:#5d6670; --faint:#8b939c;
  --line:#e2dfd6; --accent:#0f6e5c; --accent-ink:#ffffff; --accent-soft:#e3f1ec; --link:#0b5f9e;
  --ok:#16794f; --ok-soft:#e2f3ea; --no:#a24a14; --no-soft:#fbeadf; --mid:#8a6a00; --mid-soft:#f8f0d2;
  --info:#3c5aa6; --info-soft:#e7ecf8; --off:#6b7280; --off-soft:#eceef1;
  --radius:10px; --shadow:0 1px 2px rgba(20,24,28,.06),0 2px 8px rgba(20,24,28,.04);
  --sans:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
  --mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}
@media (prefers-color-scheme: dark){
  :root{
    --bg:#111416; --surface:#181c1f; --surface-2:#1f2427; --ink:#e7e9ea; --muted:#a3abb2; --faint:#7d868e;
    --line:#2b3236; --accent:#4cc3a5; --accent-ink:#0b1412; --accent-soft:#16302a; --link:#7fb8ec;
    --ok:#5fd09a; --ok-soft:#163026; --no:#f0a36a; --no-soft:#3a2416; --mid:#e3c45a; --mid-soft:#352d12;
    --info:#9db2f0; --info-soft:#1d2540; --off:#9aa3ad; --off-soft:#262b30;
    --shadow:none;
  }
}
*{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{ margin:0; background:var(--bg); color:var(--ink); font:15px/1.55 var(--sans); }
a{ color:var(--link); text-decoration:none; }
a:hover{ text-decoration:underline; }
h1,h2,h3{ line-height:1.2; margin:0 0 .4em; letter-spacing:-.01em; }
h1{ font-size:30px; } h2{ font-size:21px; } h3{ font-size:16px; }
p{ margin:0 0 .8em; }
code,.mono{ font-family:var(--mono); font-size:.92em; }
.wrap{ max-width:1120px; margin:0 auto; padding:0 20px; }
.muted{ color:var(--muted); } .faint{ color:var(--faint); } .small{ font-size:13px; }

/* header */
.top{ background:var(--surface); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:10; }
.top .wrap{ display:flex; align-items:center; gap:18px; min-height:56px; flex-wrap:wrap; }
.brand{ display:flex; align-items:baseline; gap:8px; color:var(--ink); font-weight:700; font-size:18px; }
.brand:hover{ text-decoration:none; }
.brand small{ font-weight:500; font-size:12.5px; color:var(--muted); }
.nav{ display:flex; gap:4px; flex-wrap:wrap; }
.nav a{ color:var(--muted); padding:6px 10px; border-radius:8px; font-size:14px; }
.nav a:hover{ background:var(--surface-2); text-decoration:none; color:var(--ink); }
.nav a.on{ color:var(--ink); background:var(--surface-2); font-weight:600; }
.top .rel{ margin-left:auto; font-size:12.5px; color:var(--muted); white-space:nowrap; }
.top .rel a{ color:inherit; text-decoration:underline; text-underline-offset:2px; }
.topsearch{ display:flex; }
.topsearch input{ width:220px; }

/* layout */
main{ padding:28px 0 48px; }
.hero{ padding:8px 0 20px; }
.hero p.lead{ font-size:17px; color:var(--muted); max-width:760px; }
.grid{ display:grid; gap:14px; }
.g2{ grid-template-columns:repeat(2,minmax(0,1fr)); } .g3{ grid-template-columns:repeat(3,minmax(0,1fr)); }
.g4{ grid-template-columns:repeat(4,minmax(0,1fr)); }
@media (max-width:860px){ .g3,.g4{ grid-template-columns:repeat(2,minmax(0,1fr)); } .top .rel{ margin-left:0; } }
@media (max-width:560px){ .g2,.g3,.g4{ grid-template-columns:1fr; } h1{ font-size:24px; } .topsearch input{ width:100%; } .topsearch{ width:100%; } }
.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px; box-shadow:var(--shadow); min-width:0; }
.card h2,.card h3{ margin-bottom:.5em; }
section{ margin-top:28px; }
.section-head{ display:flex; align-items:baseline; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:10px; }
.stat .n{ font-size:26px; font-weight:700; font-variant-numeric:tabular-nums; }
.stat .l{ color:var(--muted); font-size:13px; }
.kv{ display:grid; grid-template-columns:max-content 1fr; gap:4px 16px; font-size:14px; }
.kv dt{ color:var(--muted); } .kv dd{ margin:0; overflow-wrap:anywhere; }
hr{ border:0; border-top:1px solid var(--line); margin:18px 0; }

/* controls */
input[type=search],input[type=text],select{ font:inherit; font-size:14px; color:var(--ink); background:var(--surface);
  border:1px solid var(--line); border-radius:8px; padding:7px 10px; min-width:0; }
input:focus,select:focus,button:focus-visible{ outline:2px solid var(--accent); outline-offset:1px; }
.btn{ font:inherit; font-size:14px; border:1px solid var(--line); background:var(--surface); color:var(--ink);
  border-radius:8px; padding:7px 12px; cursor:pointer; display:inline-flex; align-items:center; gap:6px; }
.btn:hover{ background:var(--surface-2); text-decoration:none; }
.btn.primary{ background:var(--accent); color:var(--accent-ink); border-color:var(--accent); }
.bigsearch{ display:flex; gap:8px; max-width:720px; }
.bigsearch input{ flex:1; font-size:16px; padding:11px 14px; }
.filters{ display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin-bottom:12px; }
.chips{ display:flex; gap:6px; flex-wrap:wrap; }
.chip{ font-size:13px; border:1px solid var(--line); border-radius:999px; padding:3px 10px; background:var(--surface); color:var(--muted); cursor:pointer; }
.chip.on{ background:var(--ink); color:var(--bg); border-color:var(--ink); }

/* status */
.status{ display:inline-block; font-size:12px; font-weight:600; border-radius:999px; padding:2px 9px; white-space:nowrap; }
.s-supported{ color:var(--ok); background:var(--ok-soft); }
.s-not_supported{ color:var(--no); background:var(--no-soft); }
.s-inconclusive{ color:var(--mid); background:var(--mid-soft); }
.s-descriptive{ color:var(--info); background:var(--info-soft); }
.s-planned,.s-not_run,.s-skipped{ color:var(--off); background:var(--off-soft); }
.tier{ font-size:12px; border-radius:6px; padding:1px 7px; background:var(--surface-2); color:var(--muted); white-space:nowrap; }
.tier.confirmed_urban{ background:var(--ok-soft); color:var(--ok); } .tier.probable_urban{ background:var(--accent-soft); color:var(--accent); }
.tier.uncertain{ background:var(--mid-soft); color:var(--mid); }

/* findings */
.finding{ display:flex; flex-direction:column; gap:6px; }
.finding .id{ font-family:var(--mono); font-size:12.5px; color:var(--faint); }
.finding h3{ margin:0; }
.finding .res{ font-size:14px; color:var(--muted); display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.finding .meta{ display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:auto; padding-top:4px; }
a.card:hover{ text-decoration:none; border-color:var(--faint); }
.figure{ background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:8px; }
.figure img{ display:block; width:100%; height:auto; }
.caveats li{ margin-bottom:4px; }
.results-kv{ font-size:13.5px; }
.results-kv dd{ font-family:var(--mono); font-size:12.5px; }
.statusbar{ display:flex; height:10px; border-radius:999px; overflow:hidden; background:var(--surface-2); }
.statusbar span{ display:block; height:100%; }

/* tables */
.tablewrap{ overflow-x:auto; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); }
table{ border-collapse:collapse; width:100%; font-size:13.5px; }
th,td{ text-align:left; padding:7px 10px; border-bottom:1px solid var(--line); vertical-align:top; }
th{ font-weight:600; color:var(--muted); background:var(--surface-2); position:sticky; top:0; white-space:nowrap; }
tr:last-child td{ border-bottom:0; }
td.num,th.num{ text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.pager{ display:flex; gap:8px; align-items:center; justify-content:flex-end; margin-top:8px; font-size:13px; color:var(--muted); }
.bar{ display:grid; grid-template-columns:minmax(90px,170px) 1fr max-content; gap:8px; align-items:center; font-size:13.5px; margin:5px 0; }
.bar .track{ height:8px; background:var(--surface-2); border-radius:999px; overflow:hidden; }
.bar .fill{ display:block; height:100%; background:var(--accent); border-radius:999px; }
.bar .lab{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* footer */
footer{ border-top:1px solid var(--line); padding:22px 0 40px; color:var(--muted); font-size:13px; }
footer p{ margin:0 0 6px; }
.notice{ border:1px solid var(--line); background:var(--surface-2); border-radius:var(--radius); padding:10px 14px; font-size:14px; color:var(--muted); }
.loading{ color:var(--faint); font-size:14px; padding:12px 0; }
