/* WCAHT explorer look (2026-11-24): shared by the explorer list and detail pages; matches /dashboard. */
:root, [data-theme="dark"] {
  --bg: #02050b; --bg2: #050a14; --card: #0a1425; --card2: #0d1a30; --hover: rgba(138,180,255,.06);
  --line: rgba(148,170,210,.13); --line2: rgba(148,170,210,.22);
  --text: #f4f7ff; --text2: #c9d4e8; --muted: #9baac2; --faint: #6f7f99;
  --accent: #8ab4ff; --accent2: #53c8ff; --chip: rgba(138,180,255,.12);
  --ok: #34d399; --ok-bg: rgba(52,211,153,.12); --warn: #fbbf24; --warn-bg: rgba(251,191,36,.12);
  --bad: #f87171; --bad-bg: rgba(248,113,113,.12);
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 12px 32px rgba(0,0,0,.35);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #f4f6fa; --bg2: #eef1f6; --card: #ffffff; --card2: #f8fafc; --hover: #f5f8fe;
  --line: #e4e9f1; --line2: #d6dde8;
  --text: #0d1524; --text2: #26324a; --muted: #566072; --faint: #8b95a7;
  --accent: #1d5bd8; --accent2: #0e8be6; --chip: rgba(29,91,216,.08);
  --ok: #047857; --ok-bg: #e7f7ef; --warn: #b45309; --warn-bg: #fdf3e3;
  --bad: #c62828; --bad-bg: #fdecec;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 6px 20px rgba(16,24,40,.06);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; overflow-x: hidden; background: var(--bg); color: var(--text);
  font: 400 14px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
[hidden] { display: none !important; }
.num, td { font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; font-size: 13px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Header (always dark, as on the home page) */
.gh { position: sticky; top: 0; z-index: 50; background: rgba(3,8,20,.86); backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(148,170,210,.12); color: #f4f7ff; }
.gh-in { height: 64px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; letter-spacing: .08em; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 50%; background: #fff; padding: 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 4px 14px rgba(83,200,255,.25); }
.brand small { font-weight: 500; letter-spacing: 0; color: #9baac2; font-size: 13px; padding-left: 10px; border-left: 1px solid rgba(148,170,210,.25); }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav > a, .dd > button { color: #c9d4e8; font-family: inherit; font-size: 14px; font-weight: 500; line-height: 1; padding: 10px 12px; border-radius: 8px;
  background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.nav > a:hover, .dd > button:hover, .dd.open > button { color: #fff; background: rgba(138,180,255,.08); text-decoration: none; }
.nav > a.on { color: #fff; }
.dd { position: relative; }
.dd > button svg { width: 10px; height: 10px; opacity: .7; transition: transform .15s; }
.dd.open > button svg { transform: rotate(180deg); }
.dd-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; padding: 6px; border-radius: 12px; background: #0a1425;
  border: 1px solid rgba(148,170,210,.18); box-shadow: 0 18px 40px rgba(0,0,0,.45); display: none; }
.dd.open .dd-menu { display: block; }
.dd-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: #dfe7f5; font-size: 14px; }
.dd-menu a:hover { background: rgba(138,180,255,.10); text-decoration: none; color: #fff; }
.gh-right { display: flex; align-items: center; gap: 10px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px; font-size: 13px; font-weight: 500;
  color: #dfe7f5; border: 1px solid rgba(148,170,210,.18); background: rgba(10,20,37,.7); white-space: nowrap; }
.pill:hover { text-decoration: none; border-color: rgba(148,170,210,.35); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #6f7f99; flex: none; display: inline-block; }
.dot.ok { background: #34d399; box-shadow: 0 0 0 3px rgba(52,211,153,.18); }
.dot.warn { background: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.18); }
.dot.bad { background: #f87171; box-shadow: 0 0 0 3px rgba(248,113,113,.18); }
.ctl { height: 34px; border-radius: 8px; border: 1px solid rgba(148,170,210,.18); background: rgba(10,20,37,.7); color: #dfe7f5;
  font-family: inherit; font-size: 13px; font-weight: 500; padding: 0 10px; cursor: pointer; }
.ctl:hover { border-color: rgba(148,170,210,.35); }
.icon-btn { width: 34px; padding: 0; display: inline-grid; place-items: center; }
.icon-btn svg { width: 16px; height: 16px; }
.cta { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
  color: #04101f; background: linear-gradient(135deg, #b5e4ff, #7fb2ff); box-shadow: 0 6px 20px rgba(83,200,255,.25); white-space: nowrap; }
.cta:hover { text-decoration: none; filter: brightness(1.06); }
.burger { display: none; }

/* Page band (short hero) */
.band { color: #f4f7ff; padding: 26px 0 84px;
  background: radial-gradient(900px 300px at 12% -30%, rgba(83,200,255,.18), transparent 70%),
              radial-gradient(800px 320px at 88% -20%, rgba(139,124,246,.18), transparent 70%), #030814;
  border-bottom: 1px solid rgba(148,170,210,.10); }
.band-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.crumbs { font-size: 13px; color: #9baac2; margin-bottom: 6px; }
.crumbs a { color: #9baac2; }
.crumbs a:hover { color: #fff; }
.band h1 { margin: 0; font-size: 26px; line-height: 1.25; font-weight: 700; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.band .sub { margin-top: 6px; color: #9baac2; font-size: 13.5px; word-break: break-all; }
.search { display: flex; gap: 6px; width: min(520px, 100%); padding: 5px; border-radius: 12px; background: rgba(10,20,37,.85); border: 1px solid rgba(148,170,210,.20); }
.search:focus-within { border-color: rgba(138,180,255,.6); }
.search svg { width: 16px; height: 16px; color: #6f7f99; margin: 0 2px 0 8px; align-self: center; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: #f4f7ff; font-family: inherit; font-size: 14px; padding: 8px 4px; }
.search input::placeholder { color: #6f7f99; }
.search button { border: 0; border-radius: 9px; padding: 0 16px; font-family: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; color: #04101f; background: linear-gradient(135deg, #b5e4ff, #7fb2ff); }
.search-msg { min-height: 18px; margin-top: 6px; font-size: 12.5px; color: #9baac2; }
.search-msg.err { color: #fca5a5; }

/* Content */
main { margin-top: -60px; padding-bottom: 56px; }
.tabs { display: flex; gap: 4px; margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; padding: 8px 14px; border-radius: 9px; font-weight: 500; font-size: 14px; color: #c9d4e8; }
.tabs a:hover { background: rgba(138,180,255,.10); color: #fff; text-decoration: none; }
.tabs a.on { background: rgba(138,180,255,.16); color: #fff; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.card + .card { margin-top: 20px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-h h2 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.card-h .sub { color: var(--muted); font-size: 13px; }
.card-b { padding: 6px 20px 10px; }
.more { font-size: 13px; font-weight: 500; white-space: nowrap; }
.loading { padding: 40px 20px; text-align: center; color: var(--faint); }
.notice { margin: 16px 20px; padding: 14px 16px; border-radius: 12px; background: var(--chip); color: var(--text2); }
.notice b { display: block; color: var(--text); margin-bottom: 2px; }

/* Key/value rows */
.kvl { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.kvl > div { padding: 13px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.kvl > div:nth-last-child(-n+2) { border-bottom: 0; }
.kvl .k { color: var(--muted); padding-right: 16px; }
.kvl .v { color: var(--text); word-break: break-all; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kvl .v .t2 { color: var(--muted); font-size: 13px; }
.copy { border: 1px solid var(--line2); background: var(--card2); color: var(--muted); border-radius: 7px; height: 26px; padding: 0 8px; font-family: inherit; font-size: 12px; cursor: pointer; flex: none; }
.copy:hover { color: var(--text); border-color: var(--accent); }
.big { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.big small { font-size: 14px; color: var(--muted); font-weight: 500; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.stat { padding: 16px 20px; border-right: 1px solid var(--line); min-width: 0; }
.stat:last-child { border-right: 0; }
.stat .k { color: var(--muted); font-size: 13px; }
.stat .v { margin-top: 4px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat .v small { font-size: 13px; color: var(--muted); font-weight: 500; }
details.raw { margin: 0; border-top: 1px solid var(--line); }
details.raw summary { cursor: pointer; padding: 14px 20px; color: var(--muted); font-size: 13px; }
details.raw pre { margin: 0 20px 20px; padding: 14px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line); overflow-x: auto; font-size: 12.5px; color: var(--text2); white-space: pre-wrap; word-break: break-all; }

/* Tables */
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 10px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card2); }
td { padding: 12px 20px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: var(--hover); }
th.r, td.r { text-align: right; }
.two { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.two .t2, .t2 { color: var(--muted); font-size: 12.5px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--chip); color: var(--accent); white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.tag.grey { background: var(--bg2); color: var(--muted); }
.tag .dot { width: 6px; height: 6px; box-shadow: none; }
.arrow { color: var(--faint); margin: 0 6px; }
.empty-row td { color: var(--faint); text-align: center; padding: 28px 20px; white-space: normal; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 20px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pager .btns { display: flex; gap: 8px; }
.btn { border: 1px solid var(--line2); background: var(--card2); color: var(--text); border-radius: 9px; height: 34px; padding: 0 14px; font-family: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.btn:hover:not([disabled]) { border-color: var(--accent); }
.btn[disabled] { opacity: .45; cursor: default; }
.navarrows { display: inline-flex; gap: 6px; }
.navarrows a { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(148,170,210,.25); color: #dfe7f5; font-size: 15px; }
.navarrows a:hover { text-decoration: none; border-color: rgba(138,180,255,.6); }
.skel { display: inline-block; height: 12px; width: 80px; border-radius: 6px; background: linear-gradient(90deg, var(--bg2), var(--line), var(--bg2)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* Footer */
footer { background: #030814; color: #9baac2; border-top: 1px solid rgba(148,170,210,.12); padding: 44px 0 28px; font-size: 13.5px; }
.f-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 28px; }
.f-grid h4 { margin: 0 0 12px; color: #f4f7ff; font-size: 13px; font-weight: 600; }
.f-grid a { display: block; color: #9baac2; padding: 4px 0; }
.f-grid a:hover { color: #fff; text-decoration: none; }
.f-grid a.brand { display: flex; color: #fff; padding: 0; }
.f-brand p { margin: 12px 0 14px; max-width: 320px; line-height: 1.6; }
.f-social { display: flex; gap: 8px; }
.f-social a { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; border: 1px solid rgba(148,170,210,.18); padding: 0; }
.f-social svg { width: 16px; height: 16px; }
.f-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(148,170,210,.12); margin-top: 32px; padding-top: 18px; color: #6f7f99; font-size: 12.5px; }

@media (max-width: 1100px) { .nav > a.hide-md { display: none; } }
@media (max-width: 920px) {
  .nav { display: none; position: fixed; top: 64px; left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #030814; padding: 12px 16px 24px; overflow-y: auto; }
  .nav.open { display: flex; }
  .nav > a, .dd > button { width: 100%; justify-content: space-between; padding: 14px 8px; font-size: 16px; border-radius: 0; border-bottom: 1px solid rgba(148,170,210,.10); }
  .nav > a.hide-md { display: flex; }
  .dd-menu { position: static; display: none; box-shadow: none; border: 0; background: none; padding: 0 0 8px 8px; }
  .burger { display: inline-grid; }
  .pill .pill-text { display: none; }
  .pill { padding: 9px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .f-grid { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .gh-in { gap: 12px; }
  .brand small, .gh-right .cta, #langSel { display: none; }
  .band h1 { font-size: 21px; }
  th, td { padding-left: 14px; padding-right: 14px; }
  .hide-sm { display: none; }
  .card-h, .card-b { padding-left: 16px; padding-right: 16px; }
  .kvl { grid-template-columns: minmax(0, 1fr); }
  .kvl > div { border-bottom: 0; padding: 4px 0; }
  .kvl .k { padding-top: 12px; font-size: 12.5px; }
  .kvl .v { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .stat { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
