/* lists.exposed — darkroom / declassified */
:root{
  --bg:#0D0D0C; --surface:#151513; --surface-2:#1C1C19; --line:#2B2B27;
  --text:#EDEBE4; --muted:#A3A097; --red:#FF4A2E; --red-deep:#C2321B;
  --display:"Archivo",system-ui,sans-serif; --body:"Inter",system-ui,sans-serif; --mono:"IBM Plex Mono",ui-monospace,monospace;
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--body);line-height:1.5}
a{color:var(--text);text-decoration-color:var(--red);text-underline-offset:3px}
a:hover{color:var(--red)}
::selection{background:var(--red);color:#0D0D0C}
.wrap{max-width:1280px;margin:0 auto;padding:0 28px}
.mono{font-family:var(--mono)}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* header */
.top{border-bottom:1px solid var(--line);position:relative}
.top .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:14px;padding-top:16px;padding-bottom:16px}
.mark{display:inline-flex;align-items:center;font-family:var(--mono);font-weight:600;font-size:18px;letter-spacing:-.01em;text-decoration:none;color:var(--text)}
.mark b{background:var(--red);color:#0D0D0C;padding:2px 6px;margin-left:1px;font-weight:600}
.mark:hover{color:var(--text)}
.nav{display:flex;flex-wrap:wrap;gap:4px;font-family:var(--mono);font-size:13px}
.nav a{padding:12px 12px;text-decoration:none;color:var(--muted);border:1px solid transparent}
.nav a:hover{color:var(--text);border-color:var(--line)}
.nav a[aria-current]{color:var(--text);border-color:var(--red)}

/* type */
.kicker{font-family:var(--mono);font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--red);margin:0 0 14px}
.hero{padding:72px 0 40px}
.hero h1,.page-h1{font-family:var(--display);font-stretch:75%;font-variation-settings:"wdth" 75;font-weight:800;text-transform:uppercase;letter-spacing:-.01em;line-height:.92;margin:0}
.hero h1{font-size:clamp(52px,10vw,132px)}
.page-h1{font-size:clamp(44px,7.5vw,96px)}
.lede{font-size:clamp(17px,2vw,20px);color:var(--muted);max-width:680px;margin:22px 0 0}
.lede strong{color:var(--text);font-weight:500}
h2{font-family:var(--display);font-stretch:75%;font-variation-settings:"wdth" 75;font-weight:800;text-transform:uppercase;font-size:28px;letter-spacing:.01em;margin:0 0 12px}
.redact{background:repeating-linear-gradient(-45deg,var(--red) 0 6px,var(--red-deep) 6px 12px);color:transparent;border-radius:2px;padding:0 .15em;user-select:none}
.hero h1 .redact{display:inline-block;width:3.4ch;height:.78em;vertical-align:-.02em}

/* file index (home) */
.files{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:1px;background:var(--line);border:1px solid var(--line);margin:24px 0 80px}
.file{background:var(--bg);padding:26px 24px 24px;display:flex;flex-direction:column;gap:10px;min-height:250px;text-decoration:none;color:var(--text);position:relative}
a.file:hover{background:var(--surface)}
a.file:hover .go{color:var(--red)}
.file .no{font-family:var(--mono);font-size:12px;color:var(--muted);display:flex;justify-content:space-between}
.file .no .live{color:var(--red)}
.file h3{font-family:var(--display);font-stretch:75%;font-variation-settings:"wdth" 75;font-weight:800;text-transform:uppercase;font-size:34px;line-height:.95;margin:6px 0 0}
.file p{margin:0;color:var(--muted);font-size:15px}
.file .go{margin-top:auto;font-family:var(--mono);font-size:13px}
.file.locked h3,.file.locked p{opacity:.55}
.stamp{position:absolute;right:18px;bottom:20px;font-family:var(--mono);font-size:11px;letter-spacing:.14em;border:1.5px solid var(--red);color:var(--red);padding:4px 8px;transform:rotate(-6deg)}

.manifesto{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:32px;padding:0 0 80px}
.manifesto p{color:var(--muted);margin:0;font-size:15px}
.manifesto .n{font-family:var(--mono);color:var(--red);font-size:12px;display:block;margin-bottom:8px}

/* stats */
.stats{display:flex;flex-wrap:wrap;gap:28px;margin-top:28px;font-family:var(--mono);font-size:13px;color:var(--muted)}
.stats b{color:var(--text);font-weight:500}
.legend{display:flex;flex-wrap:wrap;gap:20px;align-items:center;font-family:var(--mono);font-size:12px;color:var(--muted);margin:36px 0 12px}
.legend i{display:inline-block;width:10px;height:10px;background:var(--red);margin-right:8px;vertical-align:-1px}

/* matrix */
.matrix-box{overflow-x:auto;border:1px solid var(--line);background:var(--surface)}
.matrix-box:focus-visible{outline:2px solid var(--red);outline-offset:2px}
table.matrix{border-collapse:collapse;width:100%;table-layout:fixed}
.matrix th,.matrix td{border-bottom:1px solid var(--line);vertical-align:top;text-align:left}
.matrix th+th,.matrix td{border-left:1px solid var(--line)}
.matrix thead th{padding:16px;background:var(--surface-2)}
.matrix thead th:first-child{width:150px;font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:500}
.matrix .ch{display:block;font-family:var(--display);font-stretch:75%;font-variation-settings:"wdth" 75;font-weight:800;text-transform:uppercase;font-size:20px;line-height:1.05}
.matrix .cs{display:block;margin-top:6px;font-family:var(--mono);font-size:11px;color:var(--muted);font-weight:400}
.matrix tbody th{padding:18px 16px}
.matrix .rn{display:block;font-family:var(--mono);font-size:12px;color:var(--red)}
.matrix .rl{display:block;margin-top:6px;font-weight:600;font-size:15px;line-height:1.25}
.matrix .rs{display:block;margin-top:4px;font-size:12px;color:var(--muted);font-weight:400}
.matrix td{padding:0}
.matrix tbody tr:last-child th,.matrix tbody tr:last-child td{border-bottom:0}
.cell{all:unset;box-sizing:border-box;display:flex;flex-direction:column;gap:4px;width:100%;min-height:100%;padding:18px 16px 20px;cursor:pointer;position:relative}
.cell:hover{background:var(--surface-2)}
.cell:focus-visible{outline:2px solid var(--red);outline-offset:-2px}
.cell .t{font-weight:600;font-size:16px;line-height:1.25}
.cell .n{font-family:var(--mono);font-size:12px;color:var(--red)}
.cell .g{font-size:13px;color:var(--muted);line-height:1.4}
.cell .dot{position:absolute;top:14px;right:12px;width:9px;height:9px;background:var(--red)}
.cell.empty{cursor:default}
.cell.empty:hover{background:transparent}
.cell.empty .t{color:var(--muted)}

/* drawer */
dialog.drawer{margin:0 0 0 auto;height:100dvh;max-height:none;width:min(460px,100vw);border:0;border-left:1px solid var(--line);background:var(--surface);color:var(--text);padding:0}
dialog.drawer::backdrop{background:rgba(0,0,0,.6)}
.drawer .in{padding:28px;display:flex;flex-direction:column;gap:18px;min-height:100%}
.drawer .close{all:unset;align-self:flex-end;font-family:var(--mono);font-size:13px;color:var(--muted);cursor:pointer;padding:10px;margin:-10px -10px 0 0}
.drawer .close:hover,.drawer .close:focus-visible{color:var(--text)}
.drawer .ctx{font-family:var(--mono);font-size:12px;color:var(--muted);letter-spacing:.06em;text-transform:uppercase}
.drawer h2{font-size:48px;line-height:.95;margin:0}
.drawer .native{font-family:var(--mono);color:var(--red);font-size:15px}
.drawer .gloss{color:var(--muted);font-size:16px;margin:0}
.exposed{border:1px solid var(--line);background:var(--bg);padding:18px}
.exposed .lab{font-family:var(--mono);font-size:11px;letter-spacing:.14em;color:var(--red);margin-bottom:10px;display:block}
.exposed p{margin:0;font-size:16px}
.reveal{all:unset;box-sizing:border-box;display:block;width:100%;cursor:pointer;padding:6px 0}
.reveal .bar{display:block;height:14px;margin:6px 0}
.reveal .bar:nth-child(2){width:82%}
.reveal .bar:nth-child(3){width:58%}
.reveal .hint{display:block;margin-top:10px;font-family:var(--mono);font-size:12px;color:var(--muted)}
.reveal:hover .hint,.reveal:focus-visible .hint{color:var(--text)}
.reveal:focus-visible{outline:2px solid var(--red);outline-offset:4px}
.drawer .src{font-family:var(--mono);font-size:13px;margin-top:auto;color:var(--muted)}

/* notes */
.notes{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:36px;padding:56px 0 88px}
.notes p{color:var(--muted);margin:0;font-size:15px}
.notes ul{margin:0;padding-left:18px;font-size:15px;line-height:1.9}
.notes .rel{display:flex;flex-direction:column;gap:10px;font-family:var(--mono);font-size:14px}

footer{border-top:1px solid var(--line);padding:24px 0 40px;font-family:var(--mono);font-size:12px;color:var(--muted)}
footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}

@media (max-width:640px){
  .wrap{padding:0 18px}
  .hero{padding:48px 0 28px}
  .drawer h2{font-size:38px}
}
@media (prefers-reduced-motion:no-preference){
  .redact.anim{animation:scan 2.4s steps(2) infinite}
  @keyframes scan{50%{filter:brightness(1.25)}}
}

/* tree */
.tree-box{border:1px solid var(--line);background:var(--surface);padding:28px 24px 32px;overflow-x:auto}
.tree,.tree ul{list-style:none;margin:0;padding:0}
.tree ul{margin-left:15px;padding-left:22px;border-left:1px solid var(--line)}
.tree li{position:relative;padding-top:10px}
.tree ul>li::before{content:"";position:absolute;left:-22px;top:31px;width:18px;border-top:1px solid var(--line)}
.tree li.closed>ul{display:none}
.node{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;min-height:44px}
.tog{all:unset;box-sizing:border-box;width:30px;height:30px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);font-family:var(--mono);font-size:14px;color:var(--muted);cursor:pointer;flex:none;background:var(--bg)}
.tog:hover,.tog:focus-visible{color:var(--text);border-color:var(--red)}
.tog.leaf{border:0;background:transparent;width:30px;cursor:default}
.tog.leaf::after{content:"";width:7px;height:7px;background:var(--line)}
.nbtn{all:unset;box-sizing:border-box;display:inline-flex;align-items:baseline;gap:10px;padding:8px 10px;margin-left:-4px;cursor:pointer;border:1px solid transparent;min-height:44px}
.nbtn:hover{border-color:var(--line);background:var(--surface-2)}
.nbtn:focus-visible{outline:2px solid var(--red);outline-offset:0}
.nbtn .rk{font-family:var(--mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:var(--red)}
.nbtn .nm{font-weight:600;font-size:16px}
.nbtn .dot{width:9px;height:9px;background:var(--red);align-self:center}
.d0>.node .nm{font-family:var(--display);font-stretch:75%;font-variation-settings:"wdth" 75;font-weight:800;text-transform:uppercase;font-size:30px}
.d1>.node .nm{font-family:var(--display);font-stretch:75%;font-variation-settings:"wdth" 75;font-weight:800;text-transform:uppercase;font-size:22px}
.ng{font-size:14px;color:var(--muted);flex:1 1 220px;min-width:0}
@media (max-width:640px){.d0>.node .nm{font-size:24px}.d1>.node .nm{font-size:19px}.tree ul{margin-left:12px;padding-left:14px}.tree ul>li::before{left:-14px;width:10px}.tree-box{padding:20px 14px}}

/* countries */
.countries{padding:72px 0 8px;border-top:1px solid var(--line);margin-top:56px}
.countries h2{font-size:clamp(34px,5vw,56px);line-height:.95;margin:0}
.countries .lede{margin-top:16px}
.ctools{display:flex;flex-wrap:wrap;gap:16px;align-items:end;margin:32px 0 16px}
.search{display:flex;flex-direction:column;gap:6px;flex:1 1 260px;max-width:380px}
.search label{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted)}
.search input{font:inherit;font-size:16px;color:var(--text);background:var(--surface);border:1px solid var(--line);padding:12px 14px;min-height:46px;border-radius:0}
.search input:focus{outline:2px solid var(--red);outline-offset:0;border-color:var(--red)}
.chips{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:20px}
.chip{all:unset;box-sizing:border-box;font-family:var(--mono);font-size:12px;color:var(--muted);border:1px solid var(--line);padding:10px 12px;min-height:44px;display:inline-flex;align-items:center;gap:8px;cursor:pointer}
.chip b{color:var(--text);font-weight:500}
.chip:hover{color:var(--text);border-color:#4a4a44}
.chip[aria-pressed="true"]{border-color:var(--red);color:var(--text);background:rgba(255,74,46,.08)}
.chip:focus-visible{outline:2px solid var(--red);outline-offset:2px}
.sysdesc{font-size:14px;color:var(--muted);margin:-8px 0 20px;min-height:21px}
table.ctab{width:100%;border-collapse:collapse;border:1px solid var(--line);background:var(--surface)}
.ctab caption{caption-side:bottom;text-align:left;font-family:var(--mono);font-size:12px;color:var(--muted);padding:14px 0 0;line-height:1.6}
.ctab th{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);font-weight:500;text-align:left;padding:14px 16px;background:var(--surface-2);border-bottom:1px solid var(--line)}
.ctab td{padding:14px 16px;border-bottom:1px solid var(--line);vertical-align:top;font-size:15px}
.ctab tbody tr:hover td{background:var(--surface-2)}
.ctab .cn{display:flex;align-items:center;gap:12px;font-weight:600}
.ctab .cn img{width:32px;height:24px;flex:none;box-shadow:0 0 0 1px rgba(255,255,255,.12)}
.ctab .sys{font-family:var(--mono);font-size:12px;color:var(--text);white-space:nowrap}
.ctab .sys::before{content:"";display:inline-block;width:8px;height:8px;margin-right:8px;background:var(--sw,var(--muted));vertical-align:0}
.ctab .who{color:var(--muted)}
.ctab .who strong{color:var(--text);font-weight:500}
.cempty{padding:28px 16px;color:var(--muted);font-family:var(--mono);font-size:13px}
@media (max-width:760px){
  .ctab thead{display:none}
  .ctab,.ctab tbody,.ctab tr,.ctab td{display:block;width:100%}
  .ctab tr{border-bottom:1px solid var(--line);padding:14px 14px 12px}
  .ctab td{border:0;padding:3px 0}
  .ctab td[data-l]::before{content:attr(data-l);display:block;font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-top:6px}
}
