:root{
  color-scheme:dark;
  --bg:#0b0d11;--card:rgba(20,24,30,.82);--text:#eceff3;--muted:#a3adb9;--line:rgba(255,255,255,.12);
  --accent:#ff8a4c;--accent-2:#4cc38a;
  --c1:#e8590c;--c2:#f59f00;--c3:#4263eb;--c4:#7048e8;--c5:#c2255c;--c6:#868e96;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif}
/* Fixed background image with a dark veil for readability; pseudo-element avoids iOS fixed-attachment jank */
body::before{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(rgba(8,10,14,.55),rgba(8,10,14,.75)),url(bg.jpg) center top/cover no-repeat}
.wrap{max-width:1000px;margin:0 auto;padding:0 16px}
header.wrap{padding-top:32px;padding-bottom:8px}
h1{font-size:clamp(1.6rem,4vw,2.3rem);margin:0 0 8px;line-height:1.2}
h2{font-size:1.1rem;margin:20px 0 8px}
h2:first-child{margin-top:0}
h3{font-size:1rem;margin:16px 0 4px}
.lead{color:var(--muted);margin:0 0 16px;max-width:60ch}
.grid{display:grid;grid-template-columns:1fr;gap:16px;margin-bottom:16px}
@media(min-width:800px){.grid{grid-template-columns:1fr 1fr;align-items:start}.result{position:sticky;top:16px}}
.card{background:var(--card);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);border:1px solid var(--line);border-radius:12px;padding:20px;margin-bottom:16px}
.grid .card{margin-bottom:0}
label{display:block;font-size:.9rem;color:var(--muted);margin:10px 0}
.nav{display:flex;gap:16px;padding-top:16px;font-size:.9rem}
.nav a[aria-current]{color:var(--text);font-weight:600;text-decoration:none}
.filters{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:4px 16px;align-items:end}
.filters .check{display:flex;align-items:center;gap:8px;margin:10px 0;color:var(--text)}
.filters .check input{display:inline-block;width:auto;margin:0}
.mat .wraps{white-space:normal;min-width:180px}
tr[hidden]{display:none}
.tablewrap{overflow-x:auto}
.mat th,.mat td{padding:8px 10px;text-align:left;white-space:nowrap}
.mat thead th{color:var(--muted);font-size:.8rem;font-weight:600;border-bottom:2px solid var(--line)}
.mat td{text-align:left}
.mat td.n{text-align:right}
.mat tbody tr:last-child td,.mat tbody tr:last-child th{border-bottom:0}
input,select{display:block;width:100%;margin-top:4px;padding:10px 12px;font:inherit;color:var(--text);background:var(--bg);border:1px solid var(--line);border-radius:8px}
input:focus,select:focus{outline:2px solid var(--accent);outline-offset:1px}
button.ghost{margin-top:12px;padding:8px 12px;font:inherit;font-size:.85rem;color:var(--muted);background:none;border:1px solid var(--line);border-radius:8px;cursor:pointer}
button.ghost:hover{color:var(--text)}
.big{display:flex;flex-direction:column;margin-bottom:10px}
.big span{font-size:2.2rem;font-weight:700;line-height:1.1}
.big.alt span{color:var(--accent-2)}
.big small{color:var(--muted)}
.bar{display:flex;height:12px;border-radius:6px;overflow:hidden;margin:12px 0;background:var(--line)}
.bar i{display:block;height:100%}
table{width:100%;border-collapse:collapse;font-size:.95rem}
td,th{padding:7px 0;border-bottom:1px solid var(--line);text-align:left;font-weight:400}
td{text-align:right;font-variant-numeric:tabular-nums}
tfoot th,tfoot td{font-weight:700;border-bottom:0}
.dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:8px}
.note{color:var(--muted);font-size:.85rem}
.prose{line-height:1.65}
.prose p,.prose ul{margin:8px 0}
#affList{padding-left:18px}
#affList li{margin:6px 0}
a{color:var(--accent)}
footer.wrap{padding:16px;color:var(--muted);font-size:.85rem;text-align:center}
