/* Light-mode values are set to WCAG measurements, not to taste:
   --tag-fg on --tag-bg 6.24:1, --mid on --card 6.37:1 (both were below 4.5:1),
   --line 1.68:1 for structural edges and --line-strong 3.29:1 for control boundaries,
   which is WCAG 1.4.11. Dark mode already passed; only the control boundary moved. */
:root{
  --bg:#fbfbfa; --fg:#1a1a18; --muted:#6b6b66; --line:#c9c8c0; --line-strong:#8f8e85;
  --card:#fff; --accent:#1f4e5f; --ok:#1f6f4a; --mid:#755c10; --low:#7a4a4a;
  --tag-bg:#eceae5; --tag-fg:#55554f; --wip-bg:#faf1d8; --wip-line:#b8933a;
}
@media (prefers-color-scheme:dark){
  :root{--bg:#16171a; --fg:#e8e8e4; --muted:#9a9a94; --line:#2c2e33; --line-strong:#666b76;
  --card:#1d1f23; --accent:#8fc4d6; --ok:#7fd0a6; --mid:#d9be76; --low:#e0a3a3;
  --tag-bg:#272a2f; --tag-fg:#9a9a94; --wip-bg:#2a2418; --wip-line:#7a6528;}
}
*{box-sizing:border-box}
.coi{border-left:3px solid var(--line-strong);padding:.1rem 0 .1rem .8rem;
  margin:1.1rem 0;font-size:.9rem}
.wip{background:var(--wip-bg);border-bottom:1px solid var(--wip-line)}
.wip p{max-width:64rem;margin:0 auto;padding:.6rem 1.5rem;font-size:.85rem;line-height:1.5;
  color:var(--fg)}
body{margin:0;background:var(--bg);color:var(--fg);
  font:16px/1.6 ui-sans-serif,-apple-system,"Segoe UI",Inter,system-ui,sans-serif}
header{display:flex;flex-wrap:wrap;gap:1rem;align-items:baseline;justify-content:space-between;
  padding:1.1rem 1.5rem;border-bottom:1px solid var(--line);max-width:64rem;margin:0 auto}
.brand{font-weight:650;font-size:1.05rem;text-decoration:none;color:var(--fg);letter-spacing:-.01em}
nav{display:flex;gap:1.1rem;flex-wrap:wrap}
nav a{color:var(--muted);text-decoration:none;font-size:.9rem}
nav a:hover,nav a.on{color:var(--accent)}
main{max-width:64rem;margin:0 auto;padding:2rem 1.5rem 4rem}
footer{max-width:64rem;margin:0 auto;padding:1.5rem;border-top:1px solid var(--line);
  color:var(--muted);font-size:.85rem}
a{color:var(--accent)}
h1{font-size:1.9rem;line-height:1.2;letter-spacing:-.02em;margin:0 0 .6rem}
h2{font-size:1.15rem;margin:2rem 0 .5rem;letter-spacing:-.01em}
h3{font-size:1rem;margin:1.2rem 0 .3rem}
.lede{color:var(--muted);max-width:44rem;margin:0 0 1.5rem}
.muted{color:var(--muted);font-size:.9rem}
.sub{margin:-.9rem 0 1.5rem;max-width:44rem}
.back{font-size:.9rem;margin:0 0 1rem}
.filters{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 .75rem}
.filters input[type=search],.filters select,button{
  padding:.5rem .6rem;border:1px solid var(--line-strong);border-radius:7px;
  background:var(--card);color:var(--fg);font-size:.9rem}
.filters input[type=search]{flex:1 1 15rem}
button{cursor:pointer}
.check{display:flex;align-items:center;gap:.4rem;font-size:.9rem;color:var(--muted)}
.legend{margin:0 0 .5rem}
.vh{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap;border:0}
#empty{border:1px solid var(--line);border-radius:10px;padding:1rem;background:var(--card);
  margin:1rem 0}
#empty p{margin:.3rem 0}
#list{display:grid;gap:.75rem;grid-template-columns:repeat(auto-fill,minmax(20rem,1fr));margin-top:1rem}
.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:1rem}
.card h2{margin:0 0 .15rem;font-size:1rem;line-height:1.35;letter-spacing:0}
.card h2 a{text-decoration:none}
.card p{margin:.3rem 0;font-size:.9rem}
.meta{color:var(--muted);font-size:.85rem!important}
.tags{display:flex;flex-wrap:wrap;gap:.3rem;margin-top:.6rem!important}
.tag{font-size:.75rem;padding:.15rem .45rem;border-radius:20px;background:var(--tag-bg);
  color:var(--tag-fg);white-space:nowrap}
/* Confidence is not a topic tag. No pill, different position, different axis. */
.conf{font-size:.75rem;white-space:nowrap;letter-spacing:.02em;color:var(--muted)}
.conf-ok{color:var(--ok)}
.conf-mid{color:var(--mid)}
.conf-low{color:var(--low)}
.note{margin-top:1rem}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{
  outline:2px solid var(--accent);outline-offset:2px}
@media(max-width:34rem){.filters select{flex:1 1 100%}}
dl{display:grid;grid-template-columns:max-content 1fr;gap:.35rem 1.2rem;margin:.5rem 0}
dt{color:var(--muted);font-size:.9rem}
dd{margin:0;font-size:.95rem}
.claim,.warn,.checked{border:1px solid var(--line);border-radius:10px;padding:.9rem 1rem;margin:1.2rem 0;
  background:var(--card)}
.warn{border-left:3px solid var(--mid)}
.checked h3{margin-top:0}
.stale{columns:2;column-gap:2rem}
.stale li{margin-bottom:.3rem;break-inside:avoid}
@media(max-width:34rem){.stale{columns:1}}

.rv{border:1px solid var(--line);border-radius:10px;padding:.8rem 1rem;margin:.6rem 0;
  background:var(--card)}
.rv.done{opacity:.45}
.rvhead{display:flex;gap:.5rem;align-items:baseline;cursor:pointer;font-size:1.02rem}
.rvn{color:var(--muted);font-variant-numeric:tabular-nums;min-width:1.6rem}
.rvsite{margin:.3rem 0 .1rem;font-size:.85rem}
.rvsum{margin:.3rem 0;font-size:.9rem}
.rvdl{grid-template-columns:max-content 1fr;gap:.1rem .9rem;font-size:.85rem;margin:.4rem 0 0}
#rvcopy,#rvclear{margin-left:.5rem;padding:.3rem .7rem;border:1px solid var(--line-strong);
  border-radius:6px;background:var(--card);color:var(--fg);cursor:pointer;font-size:.85rem}
