/* AD Report # 9: Editorial, two forests (Report 3's Swiss editorial theme plus the forest switch and Backups). Generated from
   adr1/assets/css/site.css plus the editorial and forests layers at the end; edit the layers, not the copied rules above them. */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Archivo+Narrow:wght@500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap");

:root {
  --ground: #E9E2D5;
  --surface: #F1ECE3;
  --well: #ECE6DB;
  --track: #E3DCCE;
  --primary: #0E4F4F;
  --primary-dark: #0A3838;
  --teal-2: #2F8A7E;
  --ink: #26231E;
  --ink-2: #3B362E;
  --muted: #6A6255;
  --rule: rgba(160, 146, 120, .24);

  --pass-bg: #D5E3DD; --pass-fg: #0B4743;
  --warn-bg: #F1DFC0; --warn-fg: #7A4E0B; --warn-strong: #8A5A0F;
  --fail-bg: #F2D3CB; --fail-fg: #8E2A1E; --fail-strong: #9A2F22;
  --info-bg: #DCE3EC; --info-fg: #2F4A68; --info-strong: #3D5A80;
  --fail-solid: #B5452F; --warn-solid: #C98A2B; --info-solid: #5C7896;

  /* categorical chart palette: fixed order, validated (lightness, chroma, CVD, contrast) on --surface */
  /* muted palette for bar charts (one colour per bar) */
  --m1: #5E9F97; --m2: #C99567; --m3: #7E95C4; --m4: #A97FA3; --m5: #9AA25C; --m6: #7FA0AE;
  --c1: #008A7E; --c2: #D27A2C; --c3: #3F6FC4; --c4: #A24F96; --c5: #7C8C1F; --c-other: #A79E8E;
  /* status colours: reserved for state, always shown with a label */
  --s-good: #0E4F4F; --s-warn: #C98A2B; --s-bad: #B5452F; --s-info: #5C7896;
  --r-emea: var(--c1); --r-apac: var(--c2); --r-na: var(--c3); --r-latam: var(--c4);
  --alert-red: #E0261B;

  --sh-raised: 8px 8px 20px rgba(160,146,120,.38), -8px -8px 20px rgba(255,253,248,.95);
  --sh-control: 4px 4px 10px rgba(160,146,120,.34), -4px -4px 10px rgba(255,253,248,.9);
  --sh-small: 3px 3px 8px rgba(160,146,120,.32), -3px -3px 8px rgba(255,253,248,.9);
  --sh-inset: inset 3px 3px 7px rgba(160,146,120,.42), inset -3px -3px 7px rgba(255,253,248,.9);
  --sh-inset-sm: inset 2px 2px 5px rgba(160,146,120,.4), inset -2px -2px 5px rgba(255,253,248,.9);
  --sh-primary: 4px 4px 10px rgba(14,79,79,.32), -4px -4px 10px rgba(255,253,248,.9);

  --link: #0E4F4F; --link-hover: #0A3838;
  --tint: #D9E9E5; --field: #FFF8EA; --edge: rgba(255,255,255,.6);
  --row-hover: rgba(255,253,248,.45); --row-open: rgba(255,253,248,.55);
  --teal-rgb: 14,79,79; --shade-rgb: 14,79,79; --lo-rgb: 160,146,120; --lo-a: 1; --hi-rgb: 255,253,248; --hi-a: 1;
  --tip-bg: #26231E; --tip-edge: transparent;
  --yes-bg: #D3ECDA; --yes-fg: #1B7A40; --no-bg: #E6E1D8; --no-fg: #7D7466;
  --sea: #DCE6E6; --land: #EFE9DF; --land-edge: #A99E89; --land-edge-strong: #6F6555; --land-dim: #E6DFD3;
  --hub-line: #4A4337; --repl-ok: #2E6B66; --map-ring: #FFFFFF; --halo: rgba(255,253,248,.9);
  --topo-bg: #EFE8DA; --topo-land: #E4DCCB; --topo-land-edge: #CDBFA6; --topo-node: rgba(246,242,234,.94); --glass: rgba(246,242,234,.9);
  color-scheme: light;

  --font: "Manrope", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.45; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
button, input, select { font-family: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(var(--teal-rgb), .45); outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: 12px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.layout { min-height: 100vh; padding: 24px; display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.layout > .sidebar { flex: 1 1 260px; max-width: 100%; }
.layout > main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 900px) { .layout > .sidebar { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: thin; } }
@media (max-width: 600px) { .layout { padding: 16px; gap: 20px; } }

/* ---------- sidebar (menu A) ---------- */
.sidebar { background: var(--surface); border-radius: 0; padding: 22px 16px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--sh-raised); border: 1px solid var(--edge); }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 6px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 42px; height: 42px; border-radius: 0; background: var(--primary); display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-primary); flex-shrink: 0; }
.brand-name { display: block; font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.brand-sub { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }
.menu-toggle { display: none; min-height: 44px; padding: 0 14px; border: none; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset); font-weight: 700; font-size: 13px; cursor: pointer; align-items: center; gap: 8px; }
.forest-chip { display: flex; flex-direction: column; gap: 1px; padding: 9px 14px; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset); font-size: 13px; font-weight: 700; }
.forest-chip small { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.nav-collapsible { display: flex; flex-direction: column; gap: 18px; }
.nav-group { display: flex; flex-direction: column; gap: 3px; }
.nav-group-label { all: unset; box-sizing: border-box; display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 4px 14px 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .09em; color: var(--ink-2); cursor: pointer; border-radius: 0; }
.nav-group-label:hover { color: var(--ink); background: var(--well); }
.nav-group-label:focus-visible { outline: 3px solid rgba(var(--teal-rgb), .45); outline-offset: 0; }
.nav-group-label .chev { flex: none; color: var(--muted); transition: transform .18s; }
.nav-group.folded .nav-group-label .chev { transform: rotate(-90deg); }
.nav-group.folded .nav-item { display: none; }
/* a folded section that holds the page you are on: its heading is tinted so you can still see where you are */
.nav-group.folded:has(.nav-item[aria-current="page"]) .nav-group-label { color: var(--link); background: rgba(var(--teal-rgb), .1); }
.nav-group.folded .freshness { display: none; }
.nav-group .freshness { margin-top: 6px; }
.rail-toggle { display: none; flex: none; align-items: center; justify-content: center; width: 34px; height: 34px; border: none; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset-sm); color: var(--link); cursor: pointer; }
.rail-toggle:hover { color: var(--ink); }
.rail-toggle svg { transition: transform .2s; }
@media (min-width: 900px) {
  .rail-toggle { display: inline-flex; }
  /* collapsed: an icon rail */
  .layout.nav-rail > .sidebar { flex: 0 0 auto; width: 84px; padding: 18px 12px; align-items: center; }
  .nav-rail .forest-row { justify-content: center; }
  .nav-rail .forest-row .rail-toggle { width: 38px; height: 38px; }
  .nav-rail .brand { padding: 0; }
  .nav-rail .brand > span:not(.brand-mark), .nav-rail .forest-chip, .nav-rail .freshness, .nav-rail .nav-item span.label { display: none; }
  .nav-rail .rail-toggle svg { transform: rotate(180deg); }
  .nav-rail .nav-collapsible { align-items: center; gap: 10px; }
  .nav-rail .nav-group { align-items: center; padding-top: 10px; border-top: 1px solid var(--rule); }
  .nav-rail .nav-group:first-of-type { border-top: 0; padding-top: 0; }
  .nav-rail .nav-group-label { display: none; }
  .nav-rail .nav-group.folded .nav-item { display: flex; }
  .nav-rail .nav-item { position: relative; width: 48px; justify-content: center; padding: 10px 0; }
  .nav-rail .nav-badge { position: absolute; top: 3px; right: 1px; min-width: 8px; padding: 1px 5px; font-size: 9.5px; }
}
.nav-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; min-height: 44px; border-radius: 0; text-decoration: none; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background .15s, box-shadow .15s; }
.nav-item:hover { background: var(--well); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--primary); color: #fff; box-shadow: var(--sh-primary); }
.nav-item svg { flex-shrink: 0; }
.nav-item span.label { flex-grow: 1; }
.nav-badge { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 0; }
.nav-badge.fail { background: var(--fail-bg); color: var(--fail-fg); }
.nav-badge.warn { background: var(--warn-bg); color: var(--warn-fg); }
.freshness { padding: 14px; border-radius: 0; background: var(--well); display: flex; flex-direction: column; gap: 6px; box-shadow: var(--sh-inset); font-size: 12px; }
.freshness .head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--link); }
.freshness .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.freshness .when { font-size: 13px; font-weight: 700; color: var(--ink); }
@media (max-width: 899px) {
  .menu-toggle { display: inline-flex; }
  .sidebar[data-open="false"] .nav-collapsible { display: none; }
}

/* ---------- page header ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding-top: 6px; }
.page-head .titles { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.crumbs { align-self: flex-start; font-size: 12px; font-weight: 600; color: var(--muted); padding: 7px 14px; border-radius: 0; background: var(--surface); box-shadow: var(--sh-small); }
.crumbs b { color: var(--ink); font-weight: 800; }
.crumbs .sep { opacity: .6; margin: 0 4px; }
h1 { margin: 0; font-size: 34px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.page-sub { margin: 0; font-size: 14px; color: var(--muted); }
.head-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 600px) { h1 { font-size: 26px; } }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: none; border-radius: 0; font-size: 13px; font-weight: 700; cursor: pointer; text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--sh-primary); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--link); box-shadow: var(--sh-control); }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 12px; }
.btn:active { box-shadow: var(--sh-inset); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.spinning svg { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.search { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset); }
.search input { border: none; background: transparent; outline: none; font-size: 13px; width: 200px; min-width: 0; }
.search:focus-within { box-shadow: var(--sh-inset), 0 0 0 2px rgba(var(--shade-rgb), .35); }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 5px; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset); }
.seg button { min-height: 36px; padding: 0 14px; border: none; border-radius: 0; background: transparent; font-size: 13px; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.seg button[aria-selected="true"] { background: var(--primary); color: #fff; box-shadow: 3px 3px 8px rgba(var(--shade-rgb), .3); }
.seg button .n { opacity: .7; font-weight: 600; margin-left: 2px; }

/* ---------- cards & grids ---------- */
.card { background: var(--surface); border-radius: 0; padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--sh-raised); border: 1px solid var(--edge); min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.card h2 { margin: 0; font-size: 17px; font-weight: 800; }
.card h2 .count { color: var(--muted); font-weight: 600; }
.card-link { font-size: 12px; font-weight: 700; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; }
.row { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.row > * { flex: 1 1 300px; }
.row > .wide { flex: 2 1 520px; }
.row > .wider { flex: 3 1 560px; }
@media (max-width: 600px) { .card { padding: 18px; border-radius: 0; } .grid-auto { grid-template-columns: minmax(0, 1fr); } }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.tile { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 0; background: var(--surface); text-decoration: none; color: var(--ink); box-shadow: var(--sh-raised); border: 1px solid var(--edge); }
a.tile:hover { color: var(--ink); box-shadow: var(--sh-control); }
.tile .label, .eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.tile .value { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; color: var(--link); }
.tile .value.warn { color: var(--warn-strong); }
.tile .value.fail { color: var(--fail-strong); }
.tile .value.info { color: var(--info-strong); }
.tile .sub { font-size: 12px; color: var(--muted); font-weight: 500; }
.tiles.with-charts { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tile-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tile-main > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile-chart { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.mini-stack { display: flex; gap: 2px; height: 10px; border-radius: 0; overflow: hidden; background: var(--track); }
.mini-stack > span { display: block; height: 100%; min-width: 3px; }
.mini-stack > span:first-child { border-radius: 0 0 0 999px; }
.mini-stack > span:last-child { border-radius: 0 999px 999px 0; }
.mini-stack > span:only-child { border-radius: 0; }
.mini-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 11.5px; color: var(--ink-2); font-weight: 600; }
.mini-legend li { display: inline-flex; align-items: center; gap: 5px; }
.mini-legend i { width: 8px; height: 8px; border-radius: 0; flex-shrink: 0; }
.mini-legend b { color: var(--ink); font-weight: 800; }
.mini-donut { flex-shrink: 0; }
.mini-donut circle { transition: stroke-width .15s; }
.mini-donut circle:hover { stroke-width: 9; }
.mini-bars { display: flex; align-items: flex-end; gap: 4px; height: 62px; }
.mini-bars .col em { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--ink-2); }
.mini-bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; height: 100%; justify-content: flex-end; min-width: 0; }
.mini-bars .col span.b { width: 100%; max-width: 26px; background: var(--c1); border-radius: 0 0 0; min-height: 2px; }
.mini-bars .col small { font-size: 10px; color: var(--muted); font-weight: 700; white-space: nowrap; max-width: 100%; overflow: hidden; line-height: 1.35; }
.mini-bars:has(.col:nth-child(11)) { gap: 2px; }
.tile-go .mini-bars:has(.col:nth-child(11)) { margin-right: 16px; }
/* compact tiles: four on a row, shorter (Data Collection page) */
.tiles.tiles-compact { grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .tiles.tiles-compact { grid-template-columns: 1fr 1fr; } }
/* wide: one row, the bar chart tile gets the extra width */
@media (min-width: 1280px) { .tiles.tiles-compact { grid-template-columns: 1fr 1.55fr 1fr 1.25fr; } }
.tiles-compact .tile { padding: 14px 16px 12px; gap: 4px; border-radius: 0; }
.tiles-compact .tile .value { font-size: 26px; }
.tiles-compact .tile-main { gap: 8px; }
.tiles-compact .mini-donut { width: 50px; height: 50px; }
.tiles-compact .tile-chart { gap: 6px; margin-top: 2px; }
.tiles-compact .mini-legend { gap: 2px 10px; font-size: 11px; }
.tiles-compact .mini-bars { height: 58px; gap: 2px; }
.tiles-compact .mini-bars .col { gap: 2px; }
.tiles-compact .mini-bars .col em { font-size: 9.5px; }
.tiles-compact .mini-bars .col small { font-size: 9px; letter-spacing: -.2px; }
.tiles-compact .tile-go-arrow { bottom: 8px; right: 10px; }
.mini-bars:has(.col:nth-child(11)) .col small { font-size: 9px; letter-spacing: -.2px; }
.flag { width: 20px; height: 15px; border-radius: 0; object-fit: cover; vertical-align: -2px; box-shadow: 0 0 0 1px rgba(38,35,30,.12); flex-shrink: 0; display: inline-block; }
.flag.lg { width: 32px; height: 24px; border-radius: 0; }
.with-flag { display: inline-flex; align-items: center; gap: 7px; }
.country-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.country-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset-sm); font-size: 12px; font-weight: 700; }
.country-chip .n { color: var(--muted); font-weight: 600; }

.well { padding: 12px 14px; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset-sm); }
.kv { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.kv > div { padding: 12px; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset-sm); min-width: 0; }
.kv dt { font-size: 11px; color: var(--muted); font-weight: 700; }
.kv dd { margin: 2px 0 0; font-size: 14px; font-weight: 800; overflow-wrap: anywhere; }
.proplist { margin: 0; display: grid; grid-template-columns: minmax(140px, 260px) minmax(0, 1fr); }
.proplist dt, .proplist dd { margin: 0; padding: 9px 4px; border-bottom: 1px solid var(--rule); font-size: 13px; }
.proplist dt { color: var(--muted); font-weight: 700; padding-right: 16px; }
.proplist dd { font-weight: 600; overflow-wrap: anywhere; }

/* ---------- status ---------- */
.badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 0; white-space: nowrap; }
.badge.pass { background: var(--pass-bg); color: var(--pass-fg); }
.badge.warn { background: var(--warn-bg); color: var(--warn-fg); }
.badge.fail { background: var(--fail-bg); color: var(--fail-fg); }
.badge.info { background: var(--info-bg); color: var(--info-fg); }
.badge.neutral { background: var(--well); color: var(--muted); box-shadow: var(--sh-inset-sm); }
.sev-High { color: var(--fail-strong); font-weight: 700; }
.sev-Medium { color: var(--warn-strong); font-weight: 700; }
.sev-Low { color: var(--info-strong); font-weight: 700; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 0; }

.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 0; background: var(--primary); color: #fff; box-shadow: 6px 6px 16px rgba(var(--shade-rgb), .3), -6px -6px 16px rgba(var(--hi-rgb), calc(.85 * var(--hi-a))); }
.banner .icon { width: 40px; height: 40px; border-radius: 50%; background: var(--alert-red); box-shadow: 0 0 0 4px rgba(224,38,27,.25), 0 2px 8px rgba(0,0,0,.25); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.banner .text { flex: 1 1 320px; display: flex; flex-direction: column; gap: 2px; }
.banner .text span { font-size: 13px; opacity: .88; }
.banner a.btn { background: var(--surface); color: var(--link); min-height: 40px; font-weight: 800; }
.banner.ok .icon { background: rgba(255,255,255,.18); box-shadow: none; }

.bar { height: 10px; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset-sm); overflow: hidden; display: flex; }
.bar > span { display: block; height: 100%; background: var(--primary); border-radius: 0; }
.bar.thin { height: 8px; background: var(--track); box-shadow: inset 1px 1px 3px rgba(var(--lo-rgb), calc(.45 * var(--lo-a))); }
.stack { height: 14px; border-radius: 0; overflow: hidden; display: flex; box-shadow: var(--sh-inset-sm); }
.stack > span { display: block; height: 100%; }
.meter { display: flex; flex-direction: column; gap: 6px; }
.meter .top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.meter .top b { color: var(--link); }
.meter .note { font-size: 12px; color: var(--muted); }

.ring { width: 140px; height: 140px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 6px 6px 14px rgba(var(--lo-rgb), calc(.4 * var(--lo-a))), -6px -6px 14px rgba(var(--hi-rgb), calc(.95 * var(--hi-a))); flex-shrink: 0; }
.ring .hole { width: 106px; height: 106px; border-radius: 50%; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--sh-inset); }
.ring .big { font-size: 28px; font-weight: 800; color: var(--link); line-height: 1; }
.ring .small { font-size: 11px; color: var(--muted); font-weight: 700; }
.legend { display: flex; flex-direction: column; gap: 10px; font-size: 13px; }
.legend > div { display: flex; align-items: center; gap: 10px; }
.legend .sw { width: 10px; height: 10px; border-radius: 0; flex-shrink: 0; }
.legend .grow { flex-grow: 1; }
.legend-inline { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.legend-inline span { display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

.issue { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding: 14px 16px; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset); }
.issue .what { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.issue .what b { font-size: 13px; }
.issue .what span { font-size: 12px; color: var(--muted); }
.flow { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; }
.flow .node { padding: 6px 10px; border-radius: 0; background: var(--surface); box-shadow: 2px 2px 5px rgba(var(--lo-rgb), calc(.35 * var(--lo-a))); }
.list-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.list-row:last-child { border-bottom: none; }
.list-row .end { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 12px; text-align: right; }

/* ---------- table ---------- */
.dt { display: flex; flex-direction: column; gap: 14px; }
.dt-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.dt-tools .left, .dt-tools .right { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.dt-scroll { overflow-x: auto; border-radius: 0; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
/* one font for all table data: names, DNs, IPs and event IDs use the body font too (figures line up via tabular numbers) */
table.data td { font-variant-numeric: tabular-nums; }
table.data td .mono, table.data td.mono, table.data td .flow, table.data td a.evt-link, table.data td code { font-family: var(--font); font-size: inherit; }
table.data thead th { position: sticky; top: 0; background: var(--well); text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 0; white-space: nowrap; }
table.data thead th:first-child { border-radius: 0 0 0 12px; }
table.data thead th:last-child { border-radius: 0 12px 12px 0; }
table.data thead th button { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 5px; width: 100%; padding: 11px 9px; cursor: pointer; }
table.data thead th button:focus-visible { outline: 3px solid rgba(var(--teal-rgb), .45); outline-offset: -3px; border-radius: 0; }
table.data thead th .arrow { display: inline-flex; flex: none; color: var(--link); opacity: .55; transition: opacity .12s; }
table.data thead th .arrow svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
table.data thead th button:hover .arrow { opacity: .95; }
table.data thead th[aria-sort="ascending"] .arrow, table.data thead th[aria-sort="descending"] .arrow { opacity: 1; }
table.data thead th[aria-sort="ascending"] .arrow .dn, table.data thead th[aria-sort="descending"] .arrow .up { opacity: .25; }
table.data thead th[aria-sort="ascending"] .arrow svg, table.data thead th[aria-sort="descending"] .arrow svg { stroke-width: 2.3; }
table.data thead tr { box-shadow: var(--sh-small); }
table.data tbody td { white-space: nowrap; padding: 10px 9px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.data tbody td.wrap { min-width: 220px; }
table.data tbody td.nowrap { white-space: nowrap; }
table.data tbody tr:hover td { background: var(--row-hover); }
table.data td.num { text-align: left; font-variant-numeric: tabular-nums; }
table.data td .cellbar { display: flex; align-items: center; gap: 6px; min-width: 96px; }
table.data td .cellbar .bar { flex: 1; height: 8px; background: var(--track); box-shadow: none; }
.dt-empty { padding: 28px; text-align: center; color: var(--muted); font-weight: 600; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset-sm); }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.pager .range { font-size: 12px; color: var(--muted); font-weight: 600; }
.pager .pages { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; padding: 0 10px; border: none; border-radius: 0; background: transparent; font-size: 13px; font-weight: 800; cursor: pointer; color: var(--ink-2); }
.pager button.edge { font-size: 12px; letter-spacing: .06em; color: var(--link); }
.pager button.edge[disabled] { color: var(--muted); opacity: .5; cursor: default; }
.pager button[aria-current="page"] { background: var(--primary); color: #fff; box-shadow: 3px 3px 8px rgba(var(--shade-rgb), .3), -3px -3px 8px rgba(var(--hi-rgb), calc(.9 * var(--hi-a))); }
.pager .gap { color: var(--muted); padding: 0 4px; }
.pager .pg-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; margin-left: auto; }
.pg-size { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 0; background: var(--tint); }
.pager .pg-size button { min-width: 0; height: 32px; padding: 0 10px; border-radius: 0; font-size: 12px; font-weight: 800; color: var(--link); display: inline-flex; align-items: center; gap: 5px; }
.pager .pg-size button:hover { background: rgba(var(--teal-rgb), .12); }
.pager .pg-size button[aria-pressed="true"] { background: var(--primary); color: #fff; }
.pg-sel select { appearance: none; -webkit-appearance: none; height: 32px; border: none; border-radius: 0; background: transparent; padding: 0 22px 0 10px; font: inherit; font-size: 12px; font-weight: 800; color: var(--link); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23888' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 9px 6px; }
.pg-sel select:hover { background-color: rgba(var(--teal-rgb), .12); }
.pg-sel.on select { background-color: var(--primary); color: #fff; }
.pg-sel select option { color: var(--ink); background: var(--surface); }
@media (max-width: 560px) { .pager .pg-right { justify-content: flex-start; margin-left: 0; } }

/* ---------- map ---------- */
.map { position: relative; aspect-ratio: 2 / 1; max-height: 560px; min-height: 260px; border-radius: 0; overflow: hidden; background: var(--sea); box-shadow: inset 4px 4px 10px rgba(var(--lo-rgb), calc(.45 * var(--lo-a))), inset -4px -4px 10px rgba(var(--hi-rgb), calc(.85 * var(--hi-a))); }
.map svg { display: block; width: 100%; height: 100%; }
.map .country { fill: var(--land); stroke: var(--land-edge); stroke-width: .7px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.map .country.has-sites { fill-opacity: .3; stroke: var(--land-edge-strong); stroke-width: 1px; }
.map .country.other-region { fill: var(--land-dim) !important; fill-opacity: 1; }
.map .country:hover { fill-opacity: .5; }
.map .graticule { fill: none; stroke: rgba(var(--teal-rgb), .08); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.map .hub-line { fill: none; stroke: var(--hub-line); stroke-width: 1.6px; stroke-dasharray: 6 5; vector-effect: non-scaling-stroke; opacity: .55; }
.map .site { cursor: pointer; outline: none; }
.map .site circle { stroke: var(--map-ring); vector-effect: non-scaling-stroke; stroke-width: 2px; transition: opacity .2s; }
.map .site:hover circle, .map .site:focus-visible circle { stroke: var(--ink); }
.map .site.selected .halo { fill: rgba(var(--teal-rgb), .22); }
.map .site.dim { opacity: .2; }
.map .lbl { font-family: var(--font); font-weight: 800; fill: var(--ink-2); paint-order: stroke; stroke: var(--halo); stroke-linejoin: round; pointer-events: none; }
.map .lbl.hub { font-family: var(--mono); font-weight: 500; fill: var(--ink); }
.map-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; }
.map-zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.map-zoom button { width: 36px; height: 36px; border: none; border-radius: 0; background: var(--surface); box-shadow: var(--sh-control); font-size: 18px; font-weight: 800; color: var(--link); cursor: pointer; }
@media (max-width: 600px) { .map { aspect-ratio: 4 / 3; } }
.site-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.site-chip { text-align: left; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border: none; border-radius: 0; cursor: pointer; background: var(--surface); box-shadow: var(--sh-control); }
.site-chip[aria-pressed="true"] { background: var(--well); box-shadow: var(--sh-inset); }
.site-chip .top { display: flex; align-items: center; gap: 8px; }
.site-chip .meta { margin-left: auto; font-size: 11px; font-weight: 700; color: var(--muted); }
.site-chip .where { font-size: 12px; color: var(--muted); font-weight: 600; }

.loading { padding: 60px 20px; text-align: center; color: var(--muted); font-weight: 700; }
.error-box { padding: 16px 18px; border-radius: 0; background: var(--fail-bg); color: var(--fail-fg); font-weight: 600; font-size: 13px; }
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 8px 4px 16px; font-size: 12px; color: var(--muted); }
.map .spoke-line { stroke-width: 0.9px; vector-effect: non-scaling-stroke; opacity: .6; stroke-linecap: round; }
.map .spoke-line.hover { stroke-width: 2.5px !important; }
/* replication map */
.map .repl { fill: none; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.map .repl.ok { stroke: var(--repl-ok); stroke-width: 1.2px; opacity: .45; }
.map .repl.ok.intra { stroke-dasharray: 2 3; }
.map .repl.fail { stroke: #E0261B; stroke-width: 3px; opacity: .95; }
.map .repl.dim { opacity: .08; }
.map .repl.hl { opacity: .9; stroke-width: 2.2px; }
.map .repl-alert { cursor: pointer; outline: none; }
.map .repl-alert circle { fill: #E0261B; stroke: #fff; stroke-width: 2px; vector-effect: non-scaling-stroke; }
.map .repl-alert:hover circle, .map .repl-alert:focus-visible circle { stroke: var(--ink); }
.map .repl-alert text { fill: #fff; font-weight: 900; font-family: var(--font); pointer-events: none; }
.map .repl-alert .pulse { fill: none; stroke: #E0261B; stroke-width: 2px; vector-effect: non-scaling-stroke; animation: pulse 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { from { opacity: .8; transform: scale(1); } to { opacity: 0; transform: scale(2.2); } }
@media (prefers-reduced-motion: reduce) { .map .repl-alert .pulse { animation: none; opacity: 0; } }
.link-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset-sm); border: none; text-align: left; width: 100%; cursor: pointer; font: inherit; color: inherit; }
.link-row:hover { box-shadow: var(--sh-inset); }
.alert-dot { width: 22px; height: 22px; border-radius: 50%; background: var(--alert-red); color: #fff; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; flex-shrink: 0; }
.list-row .mono { white-space: nowrap; }
/* map hover targets + tooltip */
.map .hit { fill: none; stroke: transparent !important; stroke-width: 16px; vector-effect: non-scaling-stroke; pointer-events: stroke; cursor: pointer; }
.map .hit.hit-fail { cursor: pointer; }
.map .hover { opacity: 1 !important; stroke-width: 4px !important; }
.map .hub-line.hover { stroke: var(--ink); }
.map-tip { position: absolute; z-index: 6; pointer-events: none; max-width: 300px; padding: 9px 12px; border-radius: 0; background: var(--tip-bg); color: #FFF; border: 1px solid var(--tip-edge); font-size: 12px; line-height: 1.45; box-shadow: 0 6px 18px rgba(0,0,0,.25); white-space: pre-line; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.map-tip.show { opacity: 1; transform: none; }
.map-tip b { font-size: 13px; }
.map-tip .bad { color: #FF9C94; font-weight: 700; }
.map-tip .ok { color: #8FE0D4; font-weight: 700; }
/* table tools on the card title line */
.card-head.has-tools { flex-wrap: wrap; row-gap: 10px; }
.card-head.has-tools > h2 { flex: 0 0 auto; white-space: nowrap; }
.card-head.has-tools > .dt-tools { flex: 1 1 auto; justify-content: flex-end; gap: 8px; }
.card-head.has-tools > .dt-tools .left { gap: 8px; }
.card-head.has-tools .btn-small { padding: 0 12px; }
.card-head.has-tools > .dt-tools .left { justify-content: flex-end; }
.card-head.has-tools .search input { width: 140px; }
.card-head.has-tools .seg { padding: 4px; }
.card-head.has-tools .seg button { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
.card-head.has-tools .search { min-height: 38px; }
.card-head.has-tools > .card-link { flex: 0 0 auto; }
@media (max-width: 700px) { .card-head.has-tools > .dt-tools, .card-head.has-tools > .dt-tools .left { justify-content: flex-start; } }
.map-tip .flag { width: 20px; height: 15px; vertical-align: -2px; margin: 0 6px 0 2px; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.card-head.has-tools.compact .search input { width: 90px; }
.card-head.has-tools.compact .seg button { padding: 0 8px; }
/* region filter pill + reset */
.region-reset { display: inline-flex; align-items: center; gap: 8px; }
.region-reset[hidden] { display: none; }
.region-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 0; background: var(--primary); color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.region-pill .dot { width: 9px; height: 9px; border-radius: 50%; box-shadow: 0 0 0 2px #fff; }
/* compact select (region picker) */
.select { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 10px 0 12px; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset); position: relative; }
.select select { appearance: none; -webkit-appearance: none; border: none; background: transparent; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink); padding: 0 20px 0 0; cursor: pointer; outline: none; }
.select::after { content: ''; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border-right: 2px solid var(--link); border-bottom: 2px solid var(--link); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.select:focus-within { box-shadow: var(--sh-inset), 0 0 0 2px rgba(var(--shade-rgb), .35); }
table.data thead th:first-child button, table.data tbody td:first-child { padding-left: 14px; }

/* ---------- DC & site links + hover card ---------- */
a.ent-link { color: var(--link); font-weight: 700; text-decoration: none; border-radius: 0; padding: 1px 3px; margin: -1px -3px; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1.5px; background-position: 0 100%; background-repeat: no-repeat; transition: background-size .15s ease, background-color .15s ease, box-shadow .15s ease; cursor: pointer; }
a.ent-link:hover { color: var(--link-hover); background-color: rgba(var(--teal-rgb), .08); background-size: 100% 1.5px; }
a.ent-link:active { background-color: rgba(var(--teal-rgb), .16); box-shadow: var(--sh-inset-sm); }
a.ent-link:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; background-color: rgba(var(--teal-rgb), .08); }
a.ent-link.with-flag { display: inline-flex; gap: 6px; }
.mono a.ent-link, a.ent-link.mono { font-weight: 600; }
.ent-list { display: inline; }
.ent-tip { position: absolute; z-index: 50; pointer-events: none; min-width: 210px; max-width: 320px; padding: 11px 13px; border-radius: 0; background: var(--tip-bg); color: #FFF; border: 1px solid var(--tip-edge); font-size: 12px; line-height: 1.45; box-shadow: 0 8px 22px rgba(0,0,0,.28); display: flex; flex-direction: column; gap: 4px; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .12s, transform .12s, visibility 0s .12s; }
.ent-tip.on { opacity: 1; visibility: visible; transform: none; transition: opacity .12s, transform .12s; }
.ent-tip .et-head { display: flex; align-items: center; gap: 7px; font-size: 14px; }
.ent-tip .et-head b { font-family: var(--mono); font-size: 13px; }
.ent-tip .muted { color: #CFC6B5; }
.ent-tip .mono { font-size: 11px; color: #CFC6B5; }
.ent-tip .et-badges { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 2px; }
.ent-tip .et-badges > span { display: inline-flex; gap: 6px; align-items: center; color: #CFC6B5; }
.ent-tip .badge { font-size: 10px; padding: 2px 8px; }
.ent-tip .et-foot { margin-top: 4px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.14); color: #8FE0D4; font-weight: 700; }
.ent-tip .flag { box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
/* site and country cards: place, a row of counts, computers by type, the sites in a country */
.ent-tip .et-head .et-region { margin-left: auto; padding-left: 10px; color: #CFC6B5; font-size: 11px; font-weight: 700; }
.ent-tip .et-head .et-name { font-family: inherit; font-size: 14px; }
.ent-tip .et-place { font-weight: 700; font-size: 13px; }
.ent-tip .flag.lg { width: 24px; height: 17px; }
.ent-tip .et-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 4px 0 2px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
.ent-tip .et-stats div { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ent-tip .et-stats b { font-size: 15px; font-weight: 800; line-height: 1.15; font-variant-numeric: tabular-nums; }
.ent-tip .et-stats small { color: #CFC6B5; font-size: 9.5px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.ent-tip .et-sites { display: grid; grid-template-columns: 1fr 1fr; gap: 1px 12px; font-size: 11px; }
.ent-tip .et-sites div { display: flex; gap: 6px; min-width: 0; }
.ent-tip .et-sites b { font-family: var(--mono); font-weight: 700; }
.ent-tip .et-sites span { color: #CFC6B5; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ent-tip { max-width: 340px; }
/* detail pages */
.detail-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.detail-bar .nav-btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.detail-hero { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.detail-hero .mark { width: 56px; height: 56px; border-radius: 0; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-control); flex-shrink: 0; }
.detail-hero .facts { display: flex; flex-wrap: wrap; gap: 8px; }
h1 .flag.xl, .flag.xl { width: 34px; height: 25px; border-radius: 0; vertical-align: -3px; margin-right: 12px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row .chip { text-decoration: none; }
dl.proplist dd a.ent-link { font-family: inherit; }
.banner a.ent-link { color: #FFF; background-size: 100% 1px; }
.banner a.ent-link:hover { color: #FFF; background-color: rgba(255,255,255,.16); }
.banner a.ent-link:focus-visible { outline-color: #FFF; }

/* ---------- one line per row + expand ---------- */
table.data .cl { max-width: 420px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 3px; margin: -2px -3px; }
table.data td.wrap .cl { max-width: 460px; }
table.data .cl .line2 { margin-left: 8px; }
table.data tr.open td { vertical-align: top; }
table.data tr.open .cl { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
table.data tr.open td.nowrap .cl { white-space: nowrap; }
table.data tr.open .cl .line2 { display: block; margin: 3px 0 0; }
table.data tr.open td { background: var(--row-open); }
table.data .xcol { width: 30px; padding: 0 0 0 10px !important; text-align: center; }
table.data thead th.xcol { padding: 0 0 0 10px !important; }
table.data:not(.has-x) .xcol { display: none; }
table.data:not(.has-x) thead th:nth-child(2) { border-radius: 0 0 0 12px; }
table.data:not(.has-x) thead th:nth-child(2) button, table.data:not(.has-x) tbody td:nth-child(2) { padding-left: 14px; }
.row-x { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 0; color: var(--link); background: rgba(var(--teal-rgb), .09); cursor: pointer; transition: background .12s, color .12s, transform .15s; }
.row-x svg { transition: transform .15s; }
.row-x:hover { background: var(--primary); color: #FFF; }
.row-x:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.row-x[aria-expanded="true"] svg { transform: rotate(90deg); }
.row-x[aria-expanded="true"] { background: var(--primary); color: #FFF; }
table.data tbody tr:not([data-over="1"]) .row-x { visibility: hidden; }
table.data tr.open .xcol { padding-top: 8px !important; }
thead .row-x.all { width: 22px; height: 22px; margin-top: 1px; }
@media (prefers-reduced-motion: reduce) { .row-x, .row-x svg { transition: none; } }

/* ---------- Yes / No ---------- */
.yn { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; vertical-align: middle; flex-shrink: 0; }
.yn.yes { background: var(--yes-bg); color: var(--yes-fg); }
.yn.no { background: var(--no-bg); color: var(--no-fg); }
dl.proplist dd .yn { margin-top: -2px; }

/* ---------- page navigation buttons ---------- */
.detail-bar .btn-secondary { background: var(--tint); color: var(--link); box-shadow: var(--sh-small); }
.detail-bar .btn-secondary:hover { background: var(--teal-2); color: #FFF; }
.detail-bar .btn-secondary:hover svg { stroke: #FFF; }
.detail-bar .nav-btns:last-child > a.btn { background: var(--primary); color: #FFF; box-shadow: var(--sh-primary); }
.detail-bar .nav-btns:last-child > a.btn:hover { background: var(--primary-dark); }
.detail-bar .select { background: var(--field); box-shadow: var(--sh-inset-sm), 0 0 0 2px rgba(var(--shade-rgb), .18); }
.jump-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.jump-nav .jump { display: inline-flex; align-items: center; gap: 7px; padding: 7px 8px 7px 13px; border-radius: 0; font-size: 12px; font-weight: 700; text-decoration: none; color: var(--link); background: var(--tint); box-shadow: var(--sh-small); transition: background .12s, color .12s; }
.jump-nav .jump .n { min-width: 20px; padding: 1px 7px; border-radius: 0; background: var(--primary); color: #FFF; font-size: 11px; text-align: center; }
.jump-nav .jump:hover { background: var(--primary); color: #FFF; }
.jump-nav .jump:hover .n { background: #FFF; color: var(--link); }
.jump-nav .jump:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.jump-nav .jump:only-child .n:empty { display: none; }
.pager button.edge:not([disabled]) { background: var(--tint); }
.pager button.edge:not([disabled]):hover { background: var(--primary); color: #FFF; }
.pager button:not(.edge):not([aria-current]):hover { background: rgba(var(--teal-rgb), .09); }
.dt-scroll, .yn { position: relative; }
table.data th, table.data td { text-align: left; }
/* coloured buttons: soft tinted drop shadow only (the white neumorphic highlight looks wrong on colour) */
.detail-bar .btn-secondary, .jump-nav .jump { box-shadow: 0 2px 5px rgba(var(--shade-rgb), .16), 0 1px 1px rgba(var(--shade-rgb), .08); }
.detail-bar .nav-btns:last-child > a.btn { box-shadow: 0 3px 8px rgba(var(--shade-rgb), .28), 0 1px 2px rgba(var(--shade-rgb), .18); }
.detail-bar .btn-secondary:hover, .jump-nav .jump:hover, .detail-bar .nav-btns:last-child > a.btn:hover { box-shadow: 0 4px 10px rgba(var(--shade-rgb), .26); }
.detail-bar .btn:active, .jump-nav .jump:active { box-shadow: inset 0 2px 4px rgba(0,0,0,.18); }
.detail-bar .select { box-shadow: inset 0 1px 3px rgba(var(--shade-rgb), .14), 0 0 0 2px rgba(var(--shade-rgb), .18); }

/* ---------- DC topology ---------- */
.row > .server-card { flex: 1 1 300px; }
.row > .topo-card { flex: 1.45 1 380px; }
.topo { position: relative; flex: 1 1 auto; min-height: 380px; border-radius: 0; overflow: hidden; background: var(--topo-bg); box-shadow: var(--sh-inset-sm); }
.topo .topo-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.topo .topo-fg { position: absolute; inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
.topo .tt { font: 800 13.5px var(--mono); }
.topo .ts { font: 600 11px var(--font); }
.topo .tl { font: 700 10px var(--font); }
.topo a.topo-link { padding: 0; margin: 0; background: none; }
.topo a.topo-link:hover text, .topo a.topo-link:focus text { text-decoration: underline; }
.topo a.topo-link:focus { outline: none; }
.topo a.topo-link:focus-visible text { text-decoration: underline; text-decoration-thickness: 2px; }
.topo-country { position: absolute; left: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 6px; border-radius: 0; background: var(--glass); font-size: 11px; font-weight: 800; color: var(--ink-2); box-shadow: 0 1px 4px rgba(90,74,46,.18); }
.topo-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.topo-kv dd { overflow-wrap: anywhere; }
.topo-dns-kv dd { font-size: 13px; }
.topo-dns-kv.full { grid-column: 1 / -1; }
h1 .h1-kind { font-weight: 600; color: var(--muted); }
.server-card .proplist { grid-template-columns: minmax(96px, 38%) minmax(0, 1fr); }
.server-card .proplist dt { padding-right: 10px; }
.topo-card .topo { max-height: 560px; }

/* ---------- dark theme ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #111615; --surface: #1A201F; --well: #151B1A; --track: #28312F;
  --primary: #15766B; --primary-dark: #0F5D55; --teal-2: #24978A;
  --link: #6FD0C1; --link-hover: #A3E6DB;
  --ink: #E7ECEA; --ink-2: #C7D0CD; --muted: #95A29E; --rule: rgba(255,255,255,.08);
  --pass-bg: #163A35; --pass-fg: #8FE0CF;
  --warn-bg: #3B2D14; --warn-fg: #F1C47E; --warn-strong: #EBB25C;
  --fail-bg: #43211C; --fail-fg: #FFA899; --fail-strong: #FF8F7E;
  --info-bg: #1D2A3A; --info-fg: #AEC6E8; --info-strong: #9FBBE3;
  --fail-solid: #D9634C; --warn-solid: #D89C3E; --info-solid: #7F9BBA;
  --m1: #4F978E; --m2: #B98555; --m3: #6E87B8; --m4: #9A7194; --m5: #8C9450; --m6: #6F909E;
  --c1: #1DAE9F; --c2: #E28D42; --c3: #6E95E2; --c4: #C875BC; --c5: #A3B43F; --c-other: #6C7774;
  --s-good: #2BA392; --s-warn: #D89C3E; --s-bad: #D9634C; --s-info: #7F9BBA;
  --tint: #1D3936; --field: #121A19; --edge: rgba(255,255,255,.05);
  --row-hover: rgba(255,255,255,.035); --row-open: rgba(255,255,255,.05);
  --teal-rgb: 111,208,193; --shade-rgb: 0,0,0; --lo-rgb: 0,0,0; --lo-a: 1.35; --hi-rgb: 255,255,255; --hi-a: .045;
  --tip-bg: #0B0F0E; --tip-edge: rgba(255,255,255,.12);
  --yes-bg: #173D2A; --yes-fg: #6FDB9A; --no-bg: #2A3130; --no-fg: #9AA6A3;
  --sea: #13201F; --land: #232C2B; --land-edge: #43504D; --land-edge-strong: #7D8C88; --land-dim: #1C2423;
  --hub-line: #AEB9B6; --repl-ok: #5EC2B3; --map-ring: #111615; --halo: rgba(17,22,21,.9);
  --topo-bg: #151C1B; --topo-land: #222B2A; --topo-land-edge: #3B4745; --topo-node: rgba(28,35,34,.95); --glass: rgba(26,32,31,.92);
  --sh-raised: 8px 8px 20px rgba(0,0,0,.5), -6px -6px 16px rgba(255,255,255,.03);
  --sh-control: 4px 4px 10px rgba(0,0,0,.45), -3px -3px 8px rgba(255,255,255,.03);
  --sh-small: 3px 3px 8px rgba(0,0,0,.4), -2px -2px 6px rgba(255,255,255,.03);
  --sh-inset: inset 3px 3px 7px rgba(0,0,0,.5), inset -2px -2px 6px rgba(255,255,255,.03);
  --sh-inset-sm: inset 2px 2px 5px rgba(0,0,0,.45), inset -2px -2px 5px rgba(255,255,255,.03);
  --sh-primary: 4px 4px 10px rgba(0,0,0,.45), -3px -3px 8px rgba(255,255,255,.03);
}
:root[data-theme="dark"] .flag { box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
:root[data-theme="dark"] .banner { background: #0F4F49; }
:root[data-theme="dark"] .tile .value:not(.warn):not(.fail):not(.info) { color: var(--link); }
html { transition: background-color .2s; }

/* ---------- header rows + theme switch ---------- */
.page-head { flex-direction: column; align-items: stretch; flex-wrap: nowrap; gap: 10px; }
.page-head .head-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.page-head .head-top .crumbs { align-self: auto; min-width: 0; }
.page-head .head-main { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.theme-toggle { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 0; background: var(--surface); box-shadow: var(--sh-small); cursor: pointer; font-size: 12px; font-weight: 800; color: var(--ink-2); flex-shrink: 0; }
.theme-toggle:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.theme-toggle .tt-track { position: relative; display: inline-flex; align-items: center; justify-content: space-between; width: 58px; height: 28px; padding: 0 7px; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset-sm); color: var(--muted); }
.theme-toggle .tt-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #F4C150; box-shadow: 0 2px 5px rgba(0,0,0,.25); transition: transform .22s cubic-bezier(.4,1.4,.6,1), background .2s; }
.theme-toggle[aria-checked="true"] .tt-knob { transform: translateX(30px); background: #CFE3F0; }
.theme-toggle .tt-sun, .theme-toggle .tt-moon { position: relative; z-index: 1; transition: color .2s; }
.theme-toggle[aria-checked="false"] .tt-sun { color: #7A4E0B; }
.theme-toggle[aria-checked="true"] .tt-moon { color: #1D3550; }
.theme-toggle:hover .tt-track { box-shadow: var(--sh-inset-sm), 0 0 0 2px rgba(var(--teal-rgb), .25); }
@media (prefers-reduced-motion: reduce) { .theme-toggle .tt-knob { transition: none; } html { transition: none; } }
@media (max-width: 480px) { .theme-toggle .tt-label { display: none; } .theme-toggle { padding: 4px; } }
/* event ID links */
a.evt-link { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--link); text-decoration: none; padding: 2px 7px; margin: -2px -7px; border-radius: 0; transition: background .12s; }
a.evt-link svg { opacity: .55; }
a.evt-link:hover { background: rgba(var(--teal-rgb), .1); text-decoration: underline; }
a.evt-link:hover svg { opacity: 1; }
a.evt-link:focus-visible { outline: 2px solid var(--link); outline-offset: 1px; }

/* ---------- user / group / computer pages ---------- */
.kind-pill { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 0; font-size: 11.5px; font-weight: 800; letter-spacing: .02em; vertical-align: 1px; }
.kind-pill.user { background: var(--tint); color: var(--link); }
.kind-pill.shared { background: var(--info-bg); color: var(--info-fg); }
.kind-pill.admin { background: var(--warn-bg); color: var(--warn-fg); }
.kind-pill.builtin { background: var(--well); color: var(--muted); box-shadow: var(--sh-inset-sm); }
.detail-hero .mark.kind-user { background: var(--c1); }
.detail-hero .mark.kind-shared { background: var(--c3); }
.detail-hero .mark.kind-admin { background: var(--c2); }
.detail-hero .mark.kind-builtin { background: var(--c-other); }
/* drop-down lists: the open list uses option colours, which default to white */
select option, select optgroup { background-color: var(--surface); color: var(--ink); }
select optgroup { font-weight: 800; color: var(--muted); }
select option:checked { background-color: var(--primary); color: #FFFFFF; }
:root[data-theme="dark"] select { color-scheme: dark; }
.jump-nav .jump.alert .n { background: var(--fail-solid); color: #FFF; }
.jump-nav .jump.alert:hover .n { background: #FFF; color: var(--fail-solid); }
.gp-step { width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 11px; font-weight: 800; background: var(--primary); color: #FFF; }
.gp-step.off { background: var(--well); color: var(--muted); box-shadow: var(--sh-inset-sm); }

/* ---------- DC performance charts (perf.js) ---------- */
.perf-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.perf-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.perf-head > p { flex: 1 1 260px; }
.perf-chart, .perf-heat { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.perf-plot { position: relative; width: 100%; min-width: 0; }
.perf-svg { display: block; overflow: visible; font-family: var(--font); }
.perf-svg:focus-visible { outline: 3px solid rgba(var(--teal-rgb), .45); outline-offset: 4px; border-radius: 0; }
.perf-svg .grid { stroke: var(--rule); stroke-width: 1; }
.perf-svg .grid.day { stroke-dasharray: 2 3; }
.perf-svg .grid.over { stroke: var(--surface); stroke-opacity: .9; stroke-dasharray: none; stroke-width: 1.5; }
.perf-svg .axis { stroke: var(--muted); stroke-opacity: .45; stroke-width: 1; }
.perf-svg .tick { fill: var(--muted); font-size: 11px; font-weight: 600; }
.perf-svg .tick.unit { font-weight: 700; }
.perf-svg .tick.th { font-size: 10.5px; font-weight: 700; paint-order: stroke; stroke: var(--surface); stroke-width: 3px; }
.perf-svg .threshold { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 5 4; stroke-opacity: .8; }
.perf-svg .series { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; transition: opacity .15s; }
.perf-svg .dl { fill: var(--ink-2); font-size: 11.5px; font-weight: 700; }
.perf-svg .dim { opacity: .14; }
.perf-svg .cross { stroke: var(--ink-2); stroke-width: 1; stroke-dasharray: 3 3; }
.perf-svg .dot { stroke: var(--surface); stroke-width: 2; }
.perf-svg .rlabel { fill: var(--link); font-family: var(--mono); font-size: 11px; font-weight: 500; }
.perf-svg a:hover .rlabel, .perf-svg a:focus .rlabel { text-decoration: underline; }
.perf-svg .rlabel.flagged { font-weight: 700; }
.perf-svg .gname { fill: var(--ink-2); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.perf-svg .cellhl { fill: none; stroke: var(--ink); stroke-width: 1.5; pointer-events: none; }
.perf-legend .sw { width: 12px; height: 12px; border-radius: 0; display: inline-block; }
.perf-legend .sw.nodata { background: repeating-linear-gradient(45deg, var(--track) 0 2px, color-mix(in oklab, var(--muted) 55%, var(--track)) 2px 3px); }
.perf-tip { position: absolute; z-index: 6; pointer-events: none; min-width: 170px; max-width: 300px; padding: 9px 12px; border-radius: 0; background: var(--tip-bg); color: #FFF; border: 1px solid var(--tip-edge); font-size: 12px; line-height: 1.5; box-shadow: 0 6px 18px rgba(0,0,0,.25); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.perf-tip.show { opacity: 1; transform: none; }
.perf-tip .h { font-weight: 800; font-size: 12.5px; margin-bottom: 2px; }
.perf-tip .sub { color: rgba(255,255,255,.72); font-size: 11.5px; }
.perf-tip .r { display: flex; align-items: center; gap: 7px; }
.perf-tip .r i { width: 9px; height: 9px; border-radius: 0; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(255,255,255,.35); }
.perf-tip .r b { margin-left: auto; padding-left: 12px; font-weight: 800; }
.perf-dc { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px 28px; }
.perf-dc h3 { margin: 0 0 4px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .perf-tip, .perf-svg .series { transition: none; } }
@media (forced-colors: active) { .perf-svg .series { stroke: CanvasText; } }
/* DC page: performance window slider */
.perf-range { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 14px; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset-sm); }
.perf-range input[type=range] { flex: 1 1 200px; max-width: 360px; }
.perf-range output { min-width: 56px; font-weight: 800; color: var(--link); font-variant-numeric: tabular-nums; }
/* DC page: performance summary tiles on the card's header line */
.card-head.perf-head-row { align-items: flex-start; flex-wrap: wrap; row-gap: 14px; }
.perf-head-row .perf-title { flex: 0 0 auto; display: flex; flex-direction: column; gap: 8px; max-width: 240px; }
.perf-head-row .perf-title > div { font-size: 12px; }
.perf-head-row .perf-title .muted { font-size: 12px !important; }
.perf-head-row .perf-kv { flex: 1 1 620px; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.perf-head-row .perf-kv > div { padding: 9px 11px; }
.perf-head-row .perf-kv dd { font-size: 14px; }
.perf-head-row > .card-link { flex: 0 0 auto; padding-top: 3px; }
@media (max-width: 1100px) { .perf-head-row .perf-kv { grid-template-columns: repeat(auto-fit, minmax(124px, 1fr)); order: 3; flex-basis: 100%; } }
/* performance page: three equal cards (needs attention · busiest DCs · injected faults) */
.row > .perf-third { flex: 1 1 300px; }
.busy-list { display: flex; flex-direction: column; gap: 4px; }
.busy-row { display: grid; grid-template-columns: minmax(0, 132px) minmax(60px, 1fr) 54px; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.busy-row:last-child { border-bottom: none; }
.busy-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.busy-bar { position: relative; height: 10px; border-radius: 0; background: var(--track); }
.busy-bar > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0; background: var(--s-good); }
.busy-bar > span.warn { background: var(--s-warn); }
.busy-bar > span.fail { background: var(--s-bad); }
.busy-bar > i { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-left: -1px; background: var(--s-warn); opacity: .55; border-radius: 0; }
.busy-bar > i.f { background: var(--s-bad); }
.busy-val { text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; }
.busy-val.warn { color: var(--warn-strong); }
.busy-val.fail { color: var(--fail-strong); }

/* ---------- long lists in cards: first few, then "+N more" (core.js ADR.capLists) ---------- */
.cap-hidden { display: none !important; }
.cap-more-row { display: flex; padding-top: 10px; }
.cap-more { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 12px; font-weight: 700; color: var(--link); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: none; }
.cap-more b { font-weight: 800; }
.cap-more .cap-sep { color: var(--muted); font-weight: 600; }
.cap-more:hover b, .cap-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.cap-more:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; border-radius: 0; }
.cap-more svg { flex: none; }
.chip.cap-chip { color: var(--link); background: transparent; box-shadow: inset 0 0 0 1.5px rgba(var(--teal-rgb), .45); padding: 6px 12px; }
.chip.cap-chip:hover { text-decoration: none; background: rgba(var(--teal-rgb), .08); }
.issue + .cap-more-row, .list-row + .cap-more-row { border-top: 0; }
@keyframes cap-flash { 0%, 40% { outline-color: rgba(var(--teal-rgb), .55); } 100% { outline-color: rgba(var(--teal-rgb), 0); } }
.card.cap-flash { outline: 3px solid transparent; outline-offset: 4px; animation: cap-flash 1.6s ease-out 1; }

/* DC Performance page: day slider sits beside the CPU / Memory / Network switch */
.perf-ctrls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 14px; }
.perf-range.compact { flex-wrap: nowrap; gap: 10px; padding: 7px 14px; }
.perf-range.compact .eyebrow { margin: 0; }
.perf-range.compact input[type=range] { flex: 0 1 150px; width: 150px; min-width: 90px; }
.perf-range.compact output { min-width: 48px; font-size: 13px; }
@media (max-width: 560px) { .perf-ctrls { justify-content: flex-start; } .perf-range.compact input[type=range] { width: auto; flex: 1 1 120px; } }

/* DC Performance: the three cards at the top share one title line and a one-line subtitle, so their lists start level */
.row > .perf-third > .card-head { min-height: 42px; flex-wrap: nowrap; }
.row > .perf-third > .card-head > h2 { white-space: nowrap; }
.row > .perf-third > .card-head .seg { flex-wrap: nowrap; padding: 4px; gap: 2px; }
.row > .perf-third > .card-head { gap: 10px; }
.row > .perf-third > .card-head .seg button { min-height: 32px; padding: 0 9px; font-size: 12px; }
.perf-sub { margin: -6px 0 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* DC page Location card: region map with the DC's site glowing */
.loc-map { position: relative; aspect-ratio: 4 / 3; flex: 1 0 auto; min-height: 200px; border-radius: 0; overflow: hidden; background: var(--sea); box-shadow: var(--sh-inset-sm); }
.loc-map svg { display: block; width: 100%; height: 100%; }
.loc-map .loc-c { fill: var(--land); stroke: var(--land-edge); stroke-width: .6px; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.loc-map .loc-c.reg { fill-opacity: .16; stroke: var(--land-edge-strong); }
.loc-map .loc-c.me { fill-opacity: .38; stroke: var(--land-edge-strong); stroke-width: 1.1px; }
.loc-map .loc-site { fill: var(--ink-2); fill-opacity: .55; stroke: var(--sea); stroke-width: 1px; vector-effect: non-scaling-stroke; }
.loc-map a:hover .loc-site { fill: var(--link); fill-opacity: 1; }
.loc-pulse { transform-box: fill-box; transform-origin: center; animation: loc-pulse 2.4s ease-out infinite; }
@keyframes loc-pulse { 0% { transform: scale(.35); opacity: .9; } 80%, 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .loc-pulse { animation: none; opacity: .5; } }
.loc-map .loc-label { font-weight: 800; fill: var(--ink); paint-order: stroke; stroke: var(--sea); stroke-width: 3px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.loc-map .loc-region { position: absolute; left: 10px; bottom: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 0; background: rgba(var(--hi-rgb), .75); font-size: 11px; font-weight: 700; color: var(--ink-2); }
:root[data-theme="dark"] .loc-map .loc-region { background: rgba(0, 0, 0, .45); }
.loc-map .loc-region .dot { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- global search: header box + results pop-up ---------- */
.gsearch { position: relative; }
.gsearch .search { min-height: 44px; }
.gsearch .search input { width: 230px; }
.gs-key { font: 700 11px/1 var(--font-mono, ui-monospace, monospace); color: var(--muted); padding: 3px 6px; border-radius: 0; box-shadow: inset 0 0 0 1px var(--rule); }
.gsearch:focus-within .search > .gs-key { display: none; }
.gs-pop { position: absolute; z-index: 60; right: 0; top: calc(100% + 8px); width: min(460px, calc(100vw - 32px)); max-height: min(70vh, 560px); overflow-y: auto; padding: 8px; border-radius: 0; background: var(--surface); border: 1px solid var(--edge); box-shadow: 0 18px 40px rgba(var(--shade-rgb), .22), 0 2px 6px rgba(var(--shade-rgb), .12); }
.gs-group + .gs-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--rule); }
.gs-head { display: flex; justify-content: space-between; padding: 6px 10px 4px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gs-head .n { font-weight: 700; }
.gs-item, .gs-more, .gs-all { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 0; text-decoration: none; color: var(--ink); }
.gs-item.active, .gs-item:hover, .gs-more.active, .gs-more:hover, .gs-all.active, .gs-all:hover { background: rgba(var(--teal-rgb), .1); }
.gs-ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 0; color: var(--link); background: rgba(var(--teal-rgb), .1); }
.gs-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.gs-txt b { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; min-width: 0; }
.gs-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.gs-txt > span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gs-more { padding: 4px 10px 6px 48px; font-size: 12px; font-weight: 700; color: var(--link); }
.gs-all { margin-top: 6px; border-top: 1px solid var(--rule); border-radius: 0 0 12px 12px; font-size: 13px; font-weight: 700; color: var(--link); }
.gs-all kbd { margin-left: auto; font: 700 11px/1 var(--font-mono, ui-monospace, monospace); color: var(--muted); padding: 3px 6px; border-radius: 0; box-shadow: inset 0 0 0 1px var(--rule); }
.gs-empty { padding: 14px 12px; font-size: 13px; color: var(--muted); }
.gs-pop mark, .gs-res mark, table.data mark { background: rgba(var(--teal-rgb), .16); color: inherit; border-radius: 0; padding: 0 1px; }
.gs-res { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--link); }
.gs-res .gs-ico { width: 24px; height: 24px; border-radius: 0; }
.gs-res:hover b { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 700px) { .head-actions { width: 100%; } .gsearch { flex: 1 1 100%; } .gsearch .search input { width: 100%; } .gsearch .search { width: 100%; } .gs-key { display: none; } .gs-pop { left: 0; right: auto; width: 100%; } }
.forest-row { display: flex; align-items: stretch; gap: 8px; }
.forest-row .forest-chip { flex: 1 1 auto; min-width: 0; }
.forest-row .rail-toggle { width: 38px; height: auto; min-height: 38px; }

/* card whose title flags a problem (e.g. replication failures present): red ! dot before the title */
.card-alert > .card-head > h2 { display: inline-flex; align-items: center; gap: 10px; }
.card-alert > .card-head > h2 .alert-dot { margin-right: 0; }

/* ---------- pop-out (ADR.popOut): a card shown at 80% of the screen ---------- */
.pop-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border: none; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset-sm); color: var(--link); cursor: pointer; }
.pop-btn:hover { color: var(--ink); background: rgba(var(--teal-rgb), .1); }
.pop-back { position: fixed; inset: 0; z-index: 90; background: rgba(12, 22, 22, .55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; }
.card.popped { width: 80vw; height: 80vh; max-width: none; overflow: hidden; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.card.popped .map { flex: 1 1 auto; aspect-ratio: auto; max-height: none; min-height: 0; }
html.pop-open { overflow: hidden; }
@media (max-width: 700px) { .card.popped { width: 96vw; height: 88vh; } }

/* maps: drag to pan */
.map > svg { cursor: grab; }
.map.dragging > svg, .map.dragging > svg * { cursor: grabbing !important; }
.map.dragging { user-select: none; -webkit-user-select: none; }
a.site-chip { text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s; }
a.site-chip:hover { transform: translateY(-1px); box-shadow: var(--sh-control), 0 0 0 2px rgba(var(--teal-rgb), .35); }
a.site-chip:hover .mono { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
a.site-chip:focus-visible { outline: 3px solid rgba(var(--teal-rgb), .45); outline-offset: 2px; }

/* country page */
.mark-sm { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 0; }
.loc-card .country-map { aspect-ratio: 16 / 10; min-height: 300px; }
.loc-map a.loc-me { cursor: pointer; }
.loc-map a.loc-me:hover .loc-label { fill: var(--link); text-decoration: underline; }
a.country-chip { text-decoration: none; color: var(--ink); transition: box-shadow .12s; }
a.country-chip:hover { box-shadow: var(--sh-inset), 0 0 0 2px rgba(var(--teal-rgb), .35); color: var(--link); }
.country-flag-big { position: absolute; object-fit: cover; border-radius: 0; box-shadow: 0 6px 18px rgba(0, 0, 0, .22), 0 0 0 3px rgba(var(--hi-rgb), .85); pointer-events: none; }
:root[data-theme="dark"] .country-flag-big { box-shadow: 0 6px 18px rgba(0, 0, 0, .5), 0 0 0 3px rgba(255, 255, 255, .12); }

/* tiles that jump to their table */
.tile.tile-go { position: relative; cursor: pointer; transition: transform .12s, box-shadow .12s; }
.tile.tile-go:hover { transform: translateY(-1px); box-shadow: var(--sh-raised), 0 0 0 2px rgba(var(--teal-rgb), .3); }
.tile.tile-go:focus-visible { outline: 3px solid rgba(var(--teal-rgb), .45); outline-offset: 2px; }
.tile-go-arrow { position: absolute; right: 14px; bottom: 12px; display: inline-flex; color: var(--link); opacity: .35; transition: opacity .12s, transform .12s; }
.tile.tile-go:hover .tile-go-arrow { opacity: 1; transform: translateX(2px); }

/* collection.html: data collected box + Live / Enriched / Synthetic explanation */
.run-fresh { margin-bottom: 2px; }
.ds-bar { display: flex; height: 12px; border-radius: 0; overflow: hidden; background: var(--track); box-shadow: var(--sh-inset-sm); }
.ds-bar > span { display: block; height: 100%; }
.ds-kinds { display: flex; flex-direction: column; gap: 10px; }
.ds-kind { padding: 12px 14px; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset-sm); }
.ds-kind p { margin: 4px 0 0; font-size: 12.5px; line-height: 1.5; }
.ds-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.ds-head .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ds-head .ds-n { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); }
/* two label/value pairs per line (Collection run) */
.proplist.proplist-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.proplist.proplist-2 > div { display: grid; grid-template-columns: minmax(90px, 32%) minmax(0, 1fr); gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.proplist.proplist-2 > div > dt, .proplist.proplist-2 > div > dd { margin: 0; padding: 0; border: 0; }
@media (max-width: 700px) { .proplist.proplist-2 { grid-template-columns: 1fr; } }
.ds-kind { padding: 9px 12px; }
.ds-kind p { margin-top: 3px; }

/* table with a narrow card to its left (OU tree on ous.html) */
.aside-row { display: grid; grid-template-columns: minmax(240px, 300px) minmax(0, 1fr); gap: 24px; align-items: start; }
.aside-row > .card { margin: 0; min-width: 0; }
@media (max-width: 900px) { .aside-row { grid-template-columns: minmax(0, 1fr); } }
.ou-tree-card { align-self: start; }
.ot-tools { display: flex; gap: 6px; margin: -4px 0 10px; }
.ot-root { display: flex; align-items: center; gap: 7px; font-size: 13px; padding: 2px 0 6px; color: var(--ink); }
.ou-tree, .ou-tree ul { list-style: none; margin: 0; padding: 0; }
.ou-tree ul { padding-left: 14px; margin-left: 9px; border-left: 1px dashed var(--rule); display: none; }
.ou-tree li.open > ul { display: block; }
.ot-row { display: flex; align-items: center; gap: 5px; padding: 3px 4px; border-radius: 0; font-size: 13px; color: var(--muted); min-width: 0; }
.ot-row:hover { background: rgba(var(--teal-rgb), .08); }
.ot-row a.ent-link { color: var(--ink); font-weight: 650; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ot-row a.ent-link:hover { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.ot-row em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; padding-left: 6px; }
.ot-x { all: unset; flex: none; width: 18px; height: 18px; display: inline-grid; place-items: center; border-radius: 0; cursor: pointer; color: var(--link); }
span.ot-x { cursor: default; }
.ot-x svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
li.open > .ot-row .ot-x svg { transform: rotate(90deg); }
button.ot-x:hover { background: rgba(var(--teal-rgb), .14); }
button.ot-x:focus-visible { outline: 2px solid rgba(var(--teal-rgb), .5); }

/* GPO report pop-up (policy.html) */
.gpr-btn { all: unset; box-sizing: border-box; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 0; font-size: 12px; font-weight: 800; color: var(--link); background: var(--tint); cursor: pointer; white-space: nowrap; }
.gpr-btn:hover { background: var(--primary); color: #fff; }
.gpr-btn:focus-visible { outline: 3px solid rgba(var(--teal-rgb), .45); outline-offset: 2px; }
.card.gpr-card { display: flex; flex-direction: column; gap: 12px; width: min(1180px, 88vw); height: 86vh; }
.gpr-card > .card-head { flex: none; flex-wrap: wrap; gap: 10px; }
.gpr-card > .card-head h2 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.gpr-card > .card-head h2 .count { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gpr-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.gpr-tools .pop-btn { position: static; }
.gpr-body { position: relative; flex: 1 1 auto; min-height: 0; border-radius: 0; overflow: hidden; box-shadow: var(--sh-inset-sm); background: var(--surface); }
.gpr-frame { display: block; width: 100%; height: 100%; border: 0; background: var(--surface); opacity: 0; transition: opacity .15s; }
.gpr-ready .gpr-frame { opacity: 1; }
.gpr-loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.gpr-ready .gpr-loading { display: none; }
@media (max-width: 700px) { .card.gpr-card { width: 96vw; height: 90vh; } .gpr-tools a { display: none; } }

/* short headline tiles (policy.html): tighter padding, smaller figures */
.tiles.tiles-short { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.tiles-short .tile { padding: 14px 16px 12px; gap: 3px; border-radius: 0; }
.tiles-short .tile .value { font-size: 22px; }
/* wide screens: the first (status) tile gets room for a two-word value such as "Computer Only" */
@media (min-width: 1200px) { .tiles.tiles-short { grid-template-columns: 200px repeat(auto-fit, minmax(140px, 1fr)); } }
.tiles-short .tile .sub { font-size: 11.5px; }
.tiles-short .tile-go-arrow { bottom: 8px; right: 10px; }

/* policy.html: GPO | GPO Report preview | Linked To */
.row.gpo-row { display: grid; grid-template-columns: minmax(300px, 1.2fr) minmax(0, 1.45fr) minmax(220px, .75fr); gap: 24px; align-items: stretch; }
.row.gpo-row > .card { min-width: 0; margin: 0; }
/* mid widths: GPO on the left, Linked To above the report on the right */
@media (max-width: 1280px) { .row.gpo-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); grid-template-rows: auto 1fr; }
  .row.gpo-row > .gpo-props { grid-row: 1 / span 2; } .row.gpo-row > .gpo-links { grid-column: 2; grid-row: 1; } .row.gpo-row > .gpr-preview-card { grid-column: 2; grid-row: 2; } }
@media (max-width: 760px) { .row.gpo-row { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; } .row.gpo-row > .card { grid-column: auto !important; grid-row: auto !important; } }
.gpo-props .proplist { grid-template-columns: minmax(124px, 40%) minmax(0, 1fr); }
.gpo-props .proplist dd .mono { font-size: 11px; }
.gpo-props .proplist dt, .gpo-props .proplist dd { padding: 6px 2px; font-size: 12.5px; }
.gpo-props .proplist dt { padding-right: 10px; }
.gpr-preview-card { display: flex; flex-direction: column; }
.gpr-preview-card > .card-head { align-items: center; }
.gpr-preview-card > .card-head .pop-btn { margin-left: auto; }
.gpr-preview { position: relative; flex: 1 1 auto; min-height: 380px; border-radius: 0; overflow: hidden; cursor: zoom-in; background: var(--surface); box-shadow: var(--sh-inset-sm); }
.gpr-preview iframe { position: absolute; top: 0; left: 0; border: 0; transform-origin: 0 0; pointer-events: none; background: var(--surface); opacity: 0; transition: opacity .2s; }
.gpr-preview.ready iframe { opacity: 1; }
.gpr-preview .gpr-fade { position: absolute; left: 0; right: 0; bottom: 0; height: 70px; background: linear-gradient(to bottom, transparent, var(--surface)); pointer-events: none; }
.gpr-preview .gpr-hint { position: absolute; right: 12px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 0; background: var(--primary); color: #fff; font-size: 11.5px; font-weight: 800; opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; pointer-events: none; }
.gpr-preview:hover .gpr-hint, .gpr-preview:focus-visible .gpr-hint, .gpr-preview.failed .gpr-hint { opacity: 1; transform: none; }
.gpr-preview.failed { cursor: default; }
.gpr-preview:focus-visible { outline: 3px solid rgba(var(--teal-rgb), .45); outline-offset: 2px; }
.gpr-preview:not(.ready)::before { content: 'Loading report…'; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 600; }

/* setting help (explain text) pop-up and the ? button in the Settings table */
.help-back { z-index: 95; }
.card.help-card { width: min(680px, 92vw); max-height: 82vh; overflow: auto; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.help-card > .card-head { align-items: flex-start; gap: 12px; flex-wrap: nowrap; }
.help-card > .card-head h2 { display: flex; align-items: flex-start; gap: 8px; font-size: 17px; line-height: 1.35; }
.help-card > .card-head h2 svg { flex: none; margin-top: 3px; }
.help-card > .card-head .pop-btn { margin-left: auto; }
.help-path { font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 10px; border-radius: 0; background: var(--well); overflow-wrap: anywhere; }
.help-sup { font-size: 12.5px; color: var(--ink-2); }
.help-sup b { color: var(--muted); font-weight: 800; margin-right: 6px; }
.help-text { font-size: 13.5px; line-height: 1.6; color: var(--ink); padding: 12px 14px; border-radius: 0; background: var(--field); box-shadow: var(--sh-inset-sm); }
.help-i { all: unset; box-sizing: border-box; display: inline-grid; place-items: center; width: 17px; height: 17px; margin-right: 7px; vertical-align: -3px; border-radius: 50%; background: var(--tint); color: var(--link); font-size: 11px; font-weight: 900; cursor: pointer; }
.help-i:hover { background: var(--primary); color: #fff; }
.help-i:focus-visible { outline: 2px solid rgba(var(--teal-rgb), .5); outline-offset: 1px; }

.help-text p { margin: 0 0 12px; }
.help-text p:last-child { margin-bottom: 0; }
.help-text p.help-warn { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 0; background: var(--fail-bg); color: var(--fail-fg); font-weight: 600; }
.help-text p.help-warn .alert-dot { flex: none; margin-top: 2px; }
.help-text p.help-important { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 0; background: var(--warn-bg); color: var(--warn-fg); font-weight: 600; }
.help-text p.help-important .alert-dot { flex: none; margin-top: 2px; background: var(--warn-solid); }

/* tiles that link to a page: a "view all"-style link on the label row */
.tile-top { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.tile-top .label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-link { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--link); }
.tile-link svg { transition: transform .12s; }
a.tile-href:hover .tile-link { text-decoration: underline; text-underline-offset: 3px; }
a.tile-href:hover .tile-link svg { transform: translateX(2px); }

/* Live / Enriched / Synthetic badges (Data Sets table), coloured as in the "Live, Enriched And Synthetic Data" card */
.dk-badges { display: inline-flex; gap: 4px; flex-wrap: nowrap; white-space: nowrap; }
.badge.dk-live { background: var(--pass-bg); color: var(--pass-fg); }
.badge.dk-enriched { background: color-mix(in srgb, var(--r-latam) 18%, transparent); color: color-mix(in srgb, var(--r-latam) 80%, var(--ink)); }
.badge.dk-synthetic { background: color-mix(in srgb, var(--r-na) 18%, transparent); color: color-mix(in srgb, var(--r-na) 80%, var(--ink)); }

/* generic pop-up card (ADR.modal) and the event ID pop-up */
.modal-back { z-index: 96; }
.card.modal-card { width: min(720px, 92vw); max-height: 84vh; overflow: auto; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
.modal-card > .card-head { flex-wrap: nowrap; align-items: flex-start; gap: 12px; }
.modal-card > .card-head h2 { display: flex; align-items: center; gap: 8px; font-size: 18px; min-width: 0; flex-wrap: wrap; }
.modal-card > .card-head .pop-btn { margin-left: auto; }
.evt-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.evt-meta .chip { padding: 4px 10px; font-size: 12px; }
.evt-theme { padding: 12px 14px; border-radius: 0; background: var(--tint); }
.evt-theme b { display: block; font-size: 13px; color: var(--link); margin-bottom: 4px; }
.evt-theme p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.evt-sec h3 { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.evt-msg { font-size: 13px; line-height: 1.55; padding: 10px 12px; border-radius: 0; background: var(--field); box-shadow: var(--sh-inset-sm); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; }
.evt-dcs { display: flex; flex-wrap: wrap; gap: 6px; }
.evt-dc { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset-sm); font-size: 12px; text-decoration: none; color: var(--ink); }
.evt-dc b { font-weight: 700; }
.evt-dc span { color: var(--muted); font-weight: 700; font-variant-numeric: tabular-nums; }
.evt-dc:hover b { color: var(--link); text-decoration: underline; text-underline-offset: 2px; }
.evt-dc.more { color: var(--link); font-weight: 800; }
.evt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 4px; border-top: 1px solid var(--rule); padding-top: 12px; }
.evt-look { font-size: 12px; color: var(--muted); font-weight: 600; }
.evt-look a { color: var(--link); font-weight: 700; }

/* full screen button in every page header */
.btn.fs-btn { padding: 0; width: 42px; justify-content: center; }
.btn.fs-btn[aria-pressed="true"] { color: var(--link); }

/* full-screen pill beside the light/dark switch, highlighted so it stands out */
.page-head .head-tools { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.fs-pill { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px 0 11px; border-radius: 0; cursor: pointer; font-size: 12px; font-weight: 800; letter-spacing: .02em;
  background: linear-gradient(135deg, #F4C150, #E89A2C); color: #3A2504; box-shadow: var(--sh-small), 0 0 0 0 rgba(244,193,80,.55); animation: fsPulse 2.6s ease-out 3; transition: transform .15s, filter .15s; }
.fs-pill:hover { filter: brightness(1.06); transform: translateY(-1px); }
.fs-pill:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.fs-pill .fs-ico { display: inline-flex; }
.fs-pill .fs-ico svg { width: 16px; height: 16px; }
.fs-pill[aria-pressed="true"] { background: var(--surface); color: var(--ink-2); animation: none; }
@keyframes fsPulse { 0% { box-shadow: var(--sh-small), 0 0 0 0 rgba(244,193,80,.6); } 70% { box-shadow: var(--sh-small), 0 0 0 10px rgba(244,193,80,0); } 100% { box-shadow: var(--sh-small), 0 0 0 0 rgba(244,193,80,0); } }
@media (prefers-reduced-motion: reduce) { .fs-pill { animation: none; } }
@media (max-width: 480px) { .fs-pill .fs-label { display: none; } .fs-pill { padding: 0 10px; } }
/* tables with many filter buttons: title, search and CSV on one line, the buttons on a full-width row underneath */
.card-head.has-tools.split { flex-wrap: nowrap; }
.card-head.has-tools.split > .dt-tools { flex-wrap: nowrap; }
.card-head.has-tools.split > .dt-tools .left { flex-wrap: nowrap; }
.card-head.has-tools.split .search input { width: 240px; }
.dt-filter-row { margin-top: -4px; }
.dt-filter-row .seg { padding: 4px; flex-wrap: wrap; width: fit-content; max-width: 100%; }
.dt-filter-row .seg button { min-height: 32px; padding: 0 10px; font-size: 12.5px; }
@media (max-width: 700px) { .card-head.has-tools.split { flex-wrap: wrap; } .card-head.has-tools.split .search input { width: 160px; } }
/* compact page header: breadcrumb + tools on one line, title with its subtitle beside it on the next */
.page-head .head-top { flex-wrap: wrap; row-gap: 10px; }
.page-head .head-tools { flex-wrap: wrap; justify-content: flex-end; min-width: 0; flex-shrink: 1; }
.page-head .head-tools .gsearch .search { min-height: 38px; }
.page-head .head-tools .gsearch .search input { width: 210px; }
.page-head .head-tools .btn-refresh { min-height: 38px; height: 38px; padding: 0 14px; font-size: 12.5px; }
.page-head .titles { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 18px; row-gap: 4px; }
.page-head .titles h1 { flex: 0 1 auto; }
.page-head .titles .page-sub { flex: 1 1 260px; min-width: 0; }
/* every table search box is the same comfortable width */
.card-head.has-tools .search input, .card-head.has-tools.compact .search input, .dt-tools .search input { width: 240px; }
@media (max-width: 700px) { .page-head .head-tools { width: 100%; justify-content: flex-start; } .card-head.has-tools .search input, .dt-tools .search input { width: 160px; } }
.page-head .head-tools { margin-left: auto; }
@media (max-width: 1280px) and (min-width: 701px) { .page-head .head-tools .gsearch .search input { width: 130px; } .page-head .head-tools .gs-key { display: none; } }
/* header row: search, Refresh and Full screen all the same height; the search box is lit up so it stands out */
.page-head .head-tools .gsearch .search, .page-head .head-tools .btn-refresh, .page-head .head-tools .fs-pill { box-sizing: border-box; height: 42px; min-height: 42px; }
.page-head .head-tools .gsearch .search { background: #FFFDF7; border: 1.5px solid rgba(var(--teal-rgb), .45); box-shadow: 0 0 0 3px rgba(var(--teal-rgb), .07), var(--sh-small); transition: border-color .15s, box-shadow .15s; }
.page-head .head-tools .gsearch .search:hover { border-color: rgba(var(--teal-rgb), .7); }
.page-head .head-tools .gsearch:focus-within .search { border-color: var(--link); box-shadow: 0 0 0 4px rgba(var(--teal-rgb), .18), var(--sh-small); }
:root[data-theme="dark"] .page-head .head-tools .gsearch .search { background: #22302D; border-color: rgba(var(--teal-rgb), .5); }
/* page subtitle: larger and a little darker so it reads easily beside the title */
.page-head .titles .page-sub { font-size: 17px; line-height: 1.4; font-weight: 500; color: var(--ink-2); }
/* global search box: off-white centre with black text in both themes, keeping the teal border */
.page-head .head-tools .gsearch .search { background: #E7E7E4; }
:root[data-theme="dark"] .page-head .head-tools .gsearch .search { background: #C9CDCB; }
.page-head .head-tools .gsearch .search input { color: #14181A; caret-color: #0E4F4F; }
.page-head .head-tools .gsearch .search input::placeholder { color: #5C615E; opacity: 1; }
.page-head .head-tools .gsearch .search > svg, .page-head .head-tools .gsearch .search > svg * { stroke: #0E4F4F; }
.page-head .head-tools .gsearch .search .gs-key { color: #3F4542; background: #F4F3F0; box-shadow: none; }
/* page subtitle in teal; links inside it keep a dotted underline so they still stand out */
.page-head .titles .page-sub { color: var(--link); }
.page-head .titles .page-sub a { color: inherit; font-weight: 800; text-decoration: underline dotted; text-underline-offset: 3px; }
/* Replication page: the alert list scrolls once there are more than three, and the side panel never outgrows the map */
.repl-side.fitted { overflow-y: auto; overscroll-behavior: contain; }
.repl-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 6px; margin-left: 6px; border-radius: 0; background: var(--alert-red, #E0261B); color: #FFF; font-size: 10.5px; letter-spacing: 0; vertical-align: 1px; }
.repl-alerts { display: flex; flex-direction: column; gap: 10px; }
.repl-alerts.scrolls { max-height: 400px; overflow-y: auto; padding: 4px 6px 4px 2px; margin: -4px -6px -4px -2px; overscroll-behavior: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }
.repl-alerts.scrolls.at-end { -webkit-mask-image: none; mask-image: none; }
/* "Exit full screen" keeps the same amber colour and the same size as "Full screen" */
.fs-pill[aria-pressed="true"] { background: linear-gradient(135deg, #F4C150, #E89A2C); color: #3A2504; animation: none; }
.fs-pill { min-width: 148px; justify-content: center; }
@media (max-width: 480px) { .fs-pill { min-width: 0; } }
/* header row: the light/dark switch matches the other buttons' height, and every button uses the same text size */
.page-head .head-tools .theme-toggle { box-sizing: border-box; height: 42px; min-height: 42px; padding: 4px 14px 4px 5px; }
.page-head .head-tools .theme-toggle .tt-track { height: 32px; width: 64px; }
.page-head .head-tools .theme-toggle .tt-knob { width: 26px; height: 26px; }
.page-head .head-tools .theme-toggle[aria-checked="true"] .tt-knob { transform: translateX(32px); }
.page-head .head-tools .btn-refresh, .page-head .head-tools .fs-pill, .page-head .head-tools .theme-toggle { font-size: 13px; font-weight: 800; }
/* global search: a clear, solid teal border */
.page-head .head-tools .gsearch .search { border: 2px solid #1F9384; }
.page-head .head-tools .gsearch .search:hover { border-color: #16786C; }
.page-head .head-tools .gsearch:focus-within .search { border-color: #16786C; box-shadow: 0 0 0 4px rgba(31, 147, 132, .22), var(--sh-small); }
:root[data-theme="dark"] .page-head .head-tools .gsearch .search { border-color: #3FBFAD; }
:root[data-theme="dark"] .page-head .head-tools .gsearch .search:hover, :root[data-theme="dark"] .page-head .head-tools .gsearch:focus-within .search { border-color: #6FD9C9; }
/* light/dark switch: same teal border as the global search so its full 42px height reads clearly */
.page-head .head-tools .theme-toggle { border: 2px solid #1F9384; padding: 2px 12px 2px 3px; }
.page-head .head-tools .theme-toggle:hover { border-color: #16786C; }
:root[data-theme="dark"] .page-head .head-tools .theme-toggle { border-color: #3FBFAD; }
:root[data-theme="dark"] .page-head .head-tools .theme-toggle:hover { border-color: #6FD9C9; }
/* breadcrumb: larger and darker so it is easy to read */
.page-head .crumbs { font-size: 14.5px; padding: 9px 16px; color: var(--ink-2); }
.page-head .crumbs .sep { margin: 0 6px; }
/* a long breadcrumb shortens with "…" rather than pushing the header buttons onto a second line */
.page-head .head-top .crumbs { flex: 1 1 240px; max-width: max-content; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-head .head-top .head-tools { flex: 0 0 auto; }
@media (max-width: 1100px) { .page-head .head-top .head-tools { flex: 1 1 auto; } }
/* GPO Report expand button: lavender to match the report */
.gpr-preview-card .pop-btn { background: #E6DFF2; color: #5B4A8A; border: 1.5px solid #B9AAD9; box-shadow: var(--sh-small); }
.gpr-preview-card .pop-btn svg, .gpr-preview-card .pop-btn svg * { stroke: currentColor; }
.gpr-preview-card .pop-btn:hover { background: #7D6CA6; color: #FFFFFF; border-color: #7D6CA6; }
:root[data-theme="dark"] .gpr-preview-card .pop-btn { background: #2F2840; color: #C5B6EE; border-color: #5E5185; }
:root[data-theme="dark"] .gpr-preview-card .pop-btn:hover { background: #6B5C93; color: #FFFFFF; border-color: #6B5C93; }
/* filter buttons for things that failed: red, so they stand out from the rest */
.seg button.tone-fail { color: #B42318; background: rgba(224, 38, 27, .10); box-shadow: inset 0 0 0 1.5px rgba(224, 38, 27, .35); }
.seg button.tone-fail .n { color: inherit; opacity: .85; }
.seg button.tone-fail:hover { background: rgba(224, 38, 27, .18); }
.seg button.tone-fail[aria-selected="true"] { background: #C8321F; color: #FFFFFF; box-shadow: 3px 3px 8px rgba(160, 30, 20, .3); }
:root[data-theme="dark"] .seg button.tone-fail { color: #FF8A7A; background: rgba(255, 99, 82, .12); box-shadow: inset 0 0 0 1.5px rgba(255, 99, 82, .4); }
:root[data-theme="dark"] .seg button.tone-fail[aria-selected="true"] { background: #D2432F; color: #FFFFFF; }
/* filter buttons for warnings: amber */
.seg button.tone-warn { color: #8A5A00; background: rgba(232, 154, 44, .14); box-shadow: inset 0 0 0 1.5px rgba(214, 140, 30, .45); }
.seg button.tone-warn .n { color: inherit; opacity: .85; }
.seg button.tone-warn:hover { background: rgba(232, 154, 44, .24); }
.seg button.tone-warn[aria-selected="true"] { background: #D08A1E; color: #FFFFFF; box-shadow: 3px 3px 8px rgba(150, 95, 10, .3); }
:root[data-theme="dark"] .seg button.tone-warn { color: #F2C066; background: rgba(242, 176, 70, .12); box-shadow: inset 0 0 0 1.5px rgba(242, 176, 70, .4); }
:root[data-theme="dark"] .seg button.tone-warn[aria-selected="true"] { background: #C98516; color: #FFFFFF; }
/* Back button: appears at the start of the header row while in full screen */
.back-btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 16px 0 11px; border-radius: 0; cursor: pointer; flex: none;
  font-size: 13px; font-weight: 800; color: #FFFFFF; background: var(--primary); box-shadow: var(--sh-small); transition: filter .15s, transform .15s; }
.back-btn[hidden] { display: none; }
.back-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.back-btn:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.back-btn:disabled { opacity: .45; cursor: default; filter: none; transform: none; }
.page-head .head-top .back-btn + .crumbs { margin-left: -2px; }

/* ================= About & Guide: long-form documentation pages ================= */
.doc-body { display: flex; flex-direction: column; gap: 12px; max-width: 980px; }
.doc-body p, .doc-body li { font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.doc-body p { margin: 0; }
.doc-body b, .doc-body strong { color: var(--ink); }
.doc-body a:not(.btn), .faq-a a:not(.btn) { color: var(--link); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(var(--teal-rgb), .35); text-underline-offset: 3px; }
.doc-body a:not(.btn):hover, .faq-a a:not(.btn):hover { text-decoration-color: currentColor; }
.doc-lead { font-size: 17px !important; line-height: 1.6 !important; color: var(--ink) !important; font-weight: 600; }
.doc-body h3 { margin: 14px 0 0; font-size: 16px; font-weight: 800; color: var(--ink); letter-spacing: -.005em; }
.doc-body h3:first-child { margin-top: 0; }
.doc-body h4 { margin: 8px 0 0; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.doc-body ul, .doc-body ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.doc-body code, .faq-a code { font-family: var(--mono); font-size: 12.5px; padding: 1px 6px; border-radius: 0; background: var(--well); color: var(--ink); white-space: nowrap; }
.doc-body pre, .doc-code { margin: 0; padding: 14px 16px; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset-sm); overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--ink); }
.doc-body pre code { padding: 0; background: none; white-space: pre; }
kbd, .doc-body kbd, .faq-a kbd { display: inline-block; min-width: 20px; padding: 1px 7px; border-radius: 0; background: var(--surface); box-shadow: inset 0 -2px 0 var(--rule), 0 0 0 1px var(--rule); font: 700 12px/1.6 var(--mono); color: var(--ink); text-align: center; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.doc-table th { text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 8px 12px; background: var(--well); }
.doc-table th:first-child { border-radius: 0 0 0 10px; } .doc-table th:last-child { border-radius: 0 10px 10px 0; }
.doc-table td { padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink-2); line-height: 1.5; }
.doc-table td:first-child { color: var(--ink); font-weight: 700; white-space: nowrap; }
.doc-table tr:last-child td { border-bottom: 0; }
.doc-table-wrap { overflow-x: auto; }
.doc-note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 0; background: var(--tint); color: var(--ink); font-size: 14px; line-height: 1.6; }
.doc-note svg { flex: none; margin-top: 2px; color: var(--link); }
.doc-note.warn { background: var(--warn-bg); color: var(--warn-fg); } .doc-note.warn svg { color: currentColor; }
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.doc-tile { padding: 14px 16px; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset-sm); display: flex; flex-direction: column; gap: 6px; }
.doc-tile b { font-size: 14px; color: var(--ink); } .doc-tile span { font-size: 13px; line-height: 1.55; color: var(--ink-2); }
.doc-tile .badge { align-self: flex-start; }
.doc-tree { white-space: pre; }

/* About: summary, flow and FAQs */
.about-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.doc-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; counter-reset: none; }
.doc-flow li { position: relative; }
.doc-flow li + li::before { content: ""; position: absolute; left: -12px; top: 30px; width: 12px; border-top: 2px dashed rgba(var(--teal-rgb), .45); }
.doc-flow a { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset-sm); color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.doc-flow a:hover { transform: translateY(-2px); box-shadow: var(--sh-small); }
.doc-flow b { font-size: 15px; color: var(--ink); } .doc-flow span:not(.flow-n) { font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.flow-n { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; font-size: 13px; }
@media (max-width: 1100px) { .doc-flow { grid-template-columns: 1fr 1fr; } .doc-flow li + li::before { display: none; } }
@media (max-width: 560px) { .doc-flow { grid-template-columns: 1fr; } }
.faq-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.faq-group { display: flex; flex-direction: column; gap: 8px; }
.faq-group[hidden] { display: none; }
.faq-group h3 { margin: 10px 0 2px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.faq { border-radius: 0; background: var(--well); box-shadow: var(--sh-inset-sm); }
.faq > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; cursor: pointer; font-size: 15px; font-weight: 800; color: var(--ink); border-radius: 0; }
.faq > summary::-webkit-details-marker { display: none; }
.faq > summary:hover { color: var(--link); }
.faq > summary:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.faq > summary .chev { flex: none; color: var(--link); transition: transform .2s; }
.faq[open] > summary .chev { transform: rotate(180deg); }
.faq[open] { background: var(--surface); box-shadow: var(--sh-small), inset 0 0 0 1.5px rgba(var(--teal-rgb), .25); }
.faq-a { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 10px; max-width: 900px; }
.faq-a p, .faq-a li { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.faq-a ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.faq-a b { color: var(--ink); }

/* Guide: contents sidebar beside the sections */
.guide-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.guide-toc { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding: 18px 14px 18px 18px; }
.guide-toc h2 { margin: 0 0 10px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.guide-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.guide-toc a { display: block; padding: 6px 10px; border-radius: 0; font-size: 13.5px; font-weight: 700; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.guide-toc a:hover { background: var(--well); color: var(--ink); }
.guide-toc a.on { background: var(--primary); color: #fff; }
.guide-toc ol ol { margin: 2px 0 6px 10px; padding-left: 8px; border-left: 2px solid var(--rule); }
.guide-toc ol ol a { font-size: 12.5px; font-weight: 600; padding: 4px 8px; }
.guide-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.guide-main .card { scroll-margin-top: 16px; }
.guide-main .doc-body h3 { scroll-margin-top: 16px; }
.part-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 0; background: var(--tint); color: var(--link); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-right: 10px; vertical-align: 2px; }
@media (max-width: 1100px) { .guide-layout { grid-template-columns: 1fr; } .guide-toc { position: static; max-height: none; } }
/* About: "works with real data" callout at the foot of the summary */
.about-real { display: flex; gap: 14px; align-items: flex-start; margin-top: 6px; padding: 16px 18px; border-radius: 0;
  background: color-mix(in srgb, var(--s-good) 12%, var(--surface)); box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--s-good) 45%, transparent); }
.about-real-icon { flex: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--primary); color: #fff; }
.about-real > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.about-real b:first-child { font-size: 16px; color: var(--ink); }
.about-real p, .about-real li { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.about-real ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 3px; }
/* About: summary on the left, the six headline tiles beside it in two rows of three */
.about-top { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.about-top > .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 16px; align-content: stretch; }
.about-top > .tiles .tile { padding: 16px; min-width: 0; }
.about-top > .tiles .tile .value { font-size: 30px; }
@media (max-width: 1350px) { .about-top { grid-template-columns: 1fr; } .about-top > .tiles { grid-auto-rows: auto; } }
@media (max-width: 700px) { .about-top > .tiles { grid-template-columns: 1fr 1fr; } }
.about-top > .tiles .tile { justify-content: center; gap: 8px; padding: 18px 18px; }
.about-top > .tiles .tile .value { font-size: 40px; }
.about-top > .tiles .tile-top { align-items: flex-start; }
.about-top > .tiles .tile-top .label { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.35; }
.about-top > .tiles .tile-link { font-size: 0; gap: 0; }          /* arrow only: the whole tile is the link */
.about-top > .tiles .tile-link svg { width: 15px; height: 15px; }
.about-top > .tiles .sub { line-height: 1.45; }
/* Guide: Windows Terminal-style PowerShell window (always dark, like the real thing) */
.ps-win { margin: 2px 0; border-radius: 0; overflow: hidden; background: #0C0C0C; border: 1px solid #3A3A3A; box-shadow: 0 14px 34px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.18); }
.ps-bar { display: flex; align-items: flex-end; gap: 2px; height: 40px; padding: 0 0 0 8px; background: #202020; user-select: none; }
.ps-tab { display: flex; align-items: center; gap: 9px; height: 32px; min-width: 0; max-width: 60%; padding: 0 12px; border-radius: 0 0 0; background: #0C0C0C; color: #F2F2F2; font: 400 12.5px/1 "Segoe UI", system-ui, sans-serif; }
.ps-tab span:first-of-type { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ps-logo { flex: none; }
.ps-x { margin-left: 12px; color: #9D9D9D; font-size: 11px; }
.ps-new { align-self: center; padding: 0 9px; color: #BDBDBD; font: 400 14px/1 "Segoe UI", system-ui, sans-serif; }
.ps-ctrls { margin-left: auto; align-self: stretch; display: flex; }
.ps-ctrls i { font-style: normal; width: 46px; display: grid; place-items: center; color: #E6E6E6; font: 400 13px/1 "Segoe UI", system-ui, sans-serif; }
.ps-body { position: relative; }
.ps-body pre { margin: 0; padding: 14px 16px 16px; background: transparent; box-shadow: none; border-radius: 0; overflow-x: auto;
  font: 400 13px/1.6 "Cascadia Mono", "Cascadia Code", Consolas, var(--mono), monospace; color: #CCCCCC; }
.ps-body pre code { font: inherit; color: inherit; background: none; padding: 0; white-space: pre; }
.ps-prompt { color: #F2F2F2; }
.ps-cmd { color: #F9F1A5; }                 /* PSReadLine: command - yellow */
.ps-par { color: #A0A0A0; }                 /* parameter - grey */
.ps-arg { color: #CCCCCC; }
.ps-str { color: #3A96DD; }                 /* string - dark cyan */
.ps-var { color: #16C60C; }                 /* variable - green */
.ps-com { color: #13A10E; }                 /* comment - dark green */
.ps-op { color: #9D9D9D; }
.ps-out { color: #CCCCCC; }
.ps-copy { position: absolute; top: 10px; right: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 0; cursor: pointer;
  border: 1px solid #4A4A4A; background: rgba(45,45,45,.92); color: #E6E6E6; font: 600 12px/1 "Segoe UI", system-ui, sans-serif; transition: background .15s, border-color .15s; }
.ps-copy:hover { background: #3A3A3A; border-color: #6A6A6A; }
.ps-copy:focus-visible { outline: 2px solid #3A96DD; outline-offset: 2px; }
.ps-copy.done { background: #0F5132; border-color: #16C60C; color: #FFFFFF; }
@media (max-width: 600px) { .ps-ctrls i { width: 32px; } .ps-new { display: none; } }
/* Guide: larger type throughout - contents menu and content */
.guide-toc h2 { font-size: 13px; }
.guide-toc a { font-size: 15.5px; padding: 7px 11px; }
.guide-toc ol ol a { font-size: 14.5px; padding: 5px 9px; }
.guide-main .card-head h2 { font-size: 22px; }
.guide-main .part-tag { font-size: 12px; padding: 4px 11px; }
.guide-main .doc-body { gap: 14px; }
.guide-main .doc-body p, .guide-main .doc-body li { font-size: 16.5px; line-height: 1.7; }
.guide-main .doc-lead { font-size: 19px !important; }
.guide-main .doc-body h3 { font-size: 19px; margin-top: 18px; }
.guide-main .doc-body code { font-size: 14px; }
.guide-main .doc-table { font-size: 15.5px; }
.guide-main .doc-table th { font-size: 12px; padding: 10px 14px; }
.guide-main .doc-table td { padding: 11px 14px; }
.guide-main .doc-note { font-size: 16px; }
.guide-main .doc-tile b { font-size: 16px; }
.guide-main .doc-tile span { font-size: 15px; }
.guide-main .doc-body pre, .guide-main .doc-tree { font-size: 14px; }
.guide-main .ps-body pre { font-size: 14.5px; }
.guide-main .ps-tab { font-size: 13.5px; }
.guide-main kbd { font-size: 13px; }
.guide-layout { grid-template-columns: 290px minmax(0, 1fr); }
@media (max-width: 1100px) { .guide-layout { grid-template-columns: 1fr; } }

/* ---------- animated flow charts (assets/js/flow.js, Guide page) ---------- */
.adr-flow { margin: 18px 0 8px; border-radius: 0; background: var(--well); box-shadow: var(--sh-inset-sm); overflow: hidden; outline: none; }
.adr-flow:focus-visible { box-shadow: var(--sh-inset-sm), 0 0 0 3px rgba(var(--teal-rgb), .35); }
.flow-stage { overflow-x: auto; padding: 14px 14px 4px; }
.flow-stage svg { display: block; width: 100%; min-width: 760px; height: auto; font-family: var(--font); }
.adr-flow {
  --fl-ink: var(--ink); --fl-muted: var(--muted); --fl-line: rgba(var(--teal-rgb), .55); --fl-track: rgba(var(--teal-rgb), .12);
  --k-phase: #1F8A7C; --k-phase-t: #D3E7E2; --k-input: #7766B0; --k-input-t: #E2DDF0; --k-script: #C98A2B; --k-script-t: #F3E3C6;
  --k-store: #4F6F8F; --k-store-t: #D9E2EB; --k-output: #2E7D4F; --k-output-t: #D3EAD9; --k-dc: #0E4F4F; --k-dc-t: #CFE1DD;
  --k-data: #A0526E; --k-data-t: #F0DCE3; --k-web: #3F6FC4; --k-web-t: #DAE3F4; --k-secret: #B5452F; --k-secret-t: #F2D3CB;
  --fl-node-bg: var(--surface);
}
:root[data-theme="dark"] .adr-flow {
  --k-phase: #3FBFAD; --k-phase-t: rgba(63,191,173,.16); --k-input: #A99BE0; --k-input-t: rgba(169,155,224,.16); --k-script: #F2B33D; --k-script-t: rgba(242,179,61,.15);
  --k-store: #86A6C6; --k-store-t: rgba(134,166,198,.16); --k-output: #5FCB8C; --k-output-t: rgba(95,203,140,.15); --k-dc: #5FD3C0; --k-dc-t: rgba(95,211,192,.14);
  --k-data: #E08AAA; --k-data-t: rgba(224,138,170,.15); --k-web: #7FA6EE; --k-web-t: rgba(127,166,238,.15); --k-secret: #F0705C; --k-secret-t: rgba(240,112,92,.15);
}
.fl-zone rect { fill: rgba(var(--teal-rgb), .035); stroke: rgba(var(--teal-rgb), .16); stroke-dasharray: 4 5; }
.fl-zone text { fill: var(--fl-muted); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.fl-node { --c: var(--k-phase); --t: var(--k-phase-t); }
.fl-node.k-input { --c: var(--k-input); --t: var(--k-input-t); } .fl-node.k-script { --c: var(--k-script); --t: var(--k-script-t); }
.fl-node.k-store { --c: var(--k-store); --t: var(--k-store-t); } .fl-node.k-output { --c: var(--k-output); --t: var(--k-output-t); }
.fl-node.k-dc { --c: var(--k-dc); --t: var(--k-dc-t); } .fl-node.k-data { --c: var(--k-data); --t: var(--k-data-t); }
.fl-node.k-web { --c: var(--k-web); --t: var(--k-web-t); } .fl-node.k-secret { --c: var(--k-secret); --t: var(--k-secret-t); }
.fl-node rect { fill: var(--fl-node-bg); stroke: var(--c); stroke-width: 1.6; transition: fill .45s, stroke .45s, opacity .45s, filter .45s; }
.fl-node text { text-anchor: middle; transition: fill .45s, opacity .45s; }
.fl-label { font-size: 15px; font-weight: 800; fill: var(--fl-ink); }
.fl-label.sm { font-size: 13px; letter-spacing: -.01em; }
.fl-sub { font-size: 11.5px; font-weight: 600; fill: var(--fl-muted); }
.fl-num { fill: var(--c); stroke: var(--fl-node-bg); stroke-width: 2.5; transition: opacity .45s; }
.fl-numt { fill: #fff; font-size: 11px; font-weight: 800; text-anchor: middle; }
.fl-node.todo rect { fill: transparent; stroke-dasharray: 5 5; opacity: .45; }
.fl-node.todo text, .fl-node.todo .fl-num { opacity: .32; }
.fl-node.done rect { fill: var(--t); }
.fl-node.on rect { fill: var(--c); filter: drop-shadow(0 4px 12px var(--c)); }
.fl-node.on .fl-label, .fl-node.on .fl-sub { fill: #fff; }
:root[data-theme="dark"] .fl-node.on .fl-label, :root[data-theme="dark"] .fl-node.on .fl-sub { fill: #08201D; }
.fl-node.on .fl-sub { opacity: .9; }
.fl-node.on .fl-num { fill: var(--fl-node-bg); stroke: var(--c); } .fl-node.on .fl-numt { fill: var(--c); }
.fl-node.on { animation: fl-pop .5s ease-out; transform-box: fill-box; transform-origin: center; }
@keyframes fl-pop { 0% { transform: scale(.94); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
.fl-track { fill: none; stroke: var(--fl-track); stroke-width: 2; }
.fl-line { fill: none; stroke: var(--fl-line); stroke-width: 2.2; stroke-dasharray: var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset .9s ease-out, stroke .45s; }
.fl-edge.dash .fl-line { stroke-dasharray: 6 6; stroke-dashoffset: 0; opacity: 0; transition: opacity .6s; }
.fl-edge.on .fl-line, .fl-edge.done .fl-line { stroke-dashoffset: 0; }
.fl-edge.dash.on .fl-line, .fl-edge.dash.done .fl-line { opacity: 1; }
.fl-edge.on .fl-line { stroke: var(--k-phase); stroke-width: 2.6; }
.fl-edge.e-secret .fl-line { stroke: var(--k-secret); }
.fl-edge.todo .fl-line { marker-end: none; }
.fl-arrow { fill: var(--fl-line); }
.fl-dot { fill: var(--k-script); opacity: 0; transition: opacity .3s; filter: drop-shadow(0 0 4px var(--k-script)); }
.fl-edge.on .fl-dot { opacity: 1; }
.fl-elabel { fill: var(--fl-muted); font-size: 11.5px; font-weight: 700; opacity: 0; transition: opacity .4s; }
.fl-edge.on .fl-elabel, .fl-edge.done .fl-elabel { opacity: 1; }
.flow-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ctrl cap" "dots dots" "prog prog"; gap: 10px 18px; align-items: center; padding: 12px 18px 0; }
.flow-ctrls { grid-area: ctrl; display: flex; gap: 8px; }
.flow-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: var(--surface); box-shadow: var(--sh-small); color: var(--primary); }
.flow-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.flow-btn.play { width: 48px; height: 48px; background: var(--primary); color: #fff; box-shadow: var(--sh-primary); }
.flow-btn.play svg { fill: currentColor; stroke: none; width: 22px; height: 22px; }
.flow-btn .i-pause, .adr-flow.playing .flow-btn .i-play { display: none; } .adr-flow.playing .flow-btn .i-pause { display: block; }
.flow-btn:hover { filter: brightness(1.06); } .flow-btn:active { box-shadow: var(--sh-inset-sm); }
.flow-cap { grid-area: cap; min-height: 64px; }
.flow-step { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.flow-step span { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-2); }
.flow-step b { font-size: 17px; }
.flow-cap p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.flow-dots { grid-area: dots; display: flex; gap: 6px; flex-wrap: wrap; }
.flow-dots button { border: 0; background: none; padding: 6px 2px; cursor: pointer; }
.flow-dots i { display: block; width: 26px; height: 6px; border-radius: 0; background: rgba(var(--teal-rgb), .16); transition: background .3s, width .3s; }
.flow-dots .done i { background: rgba(var(--teal-rgb), .45); } .flow-dots .on i { background: var(--k-script); width: 40px; }
.flow-prog { grid-area: prog; height: 3px; margin: 0 -18px; background: rgba(var(--teal-rgb), .08); }
.flow-prog i { display: block; height: 100%; width: 0; background: var(--k-script); }
@media (prefers-reduced-motion: reduce) { .fl-node.on { animation: none; } .fl-dot { display: none; } }
@media (max-width: 700px) { .flow-bar { grid-template-columns: 1fr; grid-template-areas: "cap" "ctrl" "dots" "prog"; } }
.flow-dl { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 18px; font-size: 14px; } .flow-dl a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.guide-video { display: block; width: 100%; border-radius: 0; margin: 10px 0 6px; background: #0A1414; box-shadow: var(--sh-raised); }

/* ---------- expand button (ADR.expandable): bigger, over a dimmed page, not browser full screen ---------- */
.xp { position: relative; }
.xp-btn { position: absolute; top: 12px; right: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px; border: 0; border-radius: 0; cursor: pointer;
  background: rgba(10,28,26,.72); color: #fff; font: 700 12.5px/1 var(--font); backdrop-filter: blur(4px); opacity: .85; transition: opacity .2s, background .2s; }
.xp-btn:hover, .xp-btn:focus-visible { opacity: 1; background: rgba(14,79,79,.95); }
.xp-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.xp-ph { border-radius: 0; background: rgba(var(--teal-rgb), .05); margin: 18px 0 8px; }
.xp-back { position: fixed; inset: 0; z-index: 9000; background: rgba(4,12,11,.62); backdrop-filter: blur(3px); animation: xp-fade .2s ease-out; }
.xp.xp-open { position: fixed; z-index: 9001; top: 4vh; left: 50%; width: min(94vw, 1800px); height: 92vh; transform: translateX(-50%); margin: 0;
  box-shadow: 0 24px 80px rgba(0,0,0,.45); animation: xp-in .22s ease-out; }
html.xp-lock, html.xp-lock body { overflow: hidden; }
@keyframes xp-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes xp-in { from { opacity: 0; transform: translateX(-50%) scale(.96); } to { opacity: 1; transform: translateX(-50%) scale(1); } }
/* flow chart when expanded: the diagram fills the space above the caption bar */
.adr-flow.xp-open { display: flex; flex-direction: column; background: var(--well); }
.adr-flow.xp-open .flow-stage { flex: 1; min-height: 0; display: grid; place-items: center; overflow: hidden; padding: 20px 24px 6px; }
.adr-flow.xp-open .flow-stage svg { width: auto; height: 100%; max-width: 100%; min-width: 0; }
.adr-flow.xp-open .flow-cap p { font-size: 16px; } .adr-flow.xp-open .flow-step b { font-size: 19px; }
/* video when expanded */
.guide-video-wrap { margin: 10px 0 6px; border-radius: 0; }
.guide-video-wrap .guide-video { margin: 0; }
/* sized from the video's 16:9 shape, so the whole frame (and its captions) always fits the window */
.guide-video-wrap.xp-open { background: #050B0A; border-radius: 0; overflow: hidden; height: auto; width: min(94vw, calc(92vh * 16 / 9)); top: max(2vh, calc((100vh - min(94vw, calc(92vh * 16 / 9)) * 9 / 16) / 2)); }
.guide-video-wrap.xp-open .guide-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 0; box-shadow: none; background: #050B0A; }
@media (max-width: 700px) { .xp-btn span { display: none; } .xp-btn { padding: 0 9px; } .xp.xp-open { top: 2vh; height: 96vh; width: 96vw; } }
@media (prefers-reduced-motion: reduce) { .xp-back, .xp.xp-open { animation: none; } }
@media (max-width: 700px) { .guide-video-wrap.xp-open { height: auto; width: 96vw; top: calc((100vh - 96vw * 9 / 16) / 2); } }
.guide-video { aspect-ratio: 16 / 9; object-fit: contain; }

/* ================= Range sliders =================
 * Teal-filled track up to the thumb (--pct, set by core.js) and a white thumb with a teal ring and glow,
 * so sliders stand out on the cream wells. Colours are tokens so dark mode flips them. */
:root { --range-a: #00A392; --range-b: #0E4F4F; --range-track: #D8CFBE; --range-thumb: #FFFFFF; --range-ring: #0E4F4F; --range-glow: rgba(0, 138, 126, .22); }
:root[data-theme="dark"] { --range-a: #8FE3D6; --range-b: #1DAE9F; --range-track: #34403D; --range-thumb: #10201D; --range-ring: #6FD0C1; --range-glow: rgba(111, 208, 193, .26); }
input[type=range] { -webkit-appearance: none; appearance: none; height: 24px; margin: 0; padding: 0; background: transparent; cursor: pointer; --pct: 50%; }
input[type=range]:focus { outline: none; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 0; background: linear-gradient(90deg, var(--range-a), var(--range-b)) 0 0 / var(--pct) 100% no-repeat, var(--range-track); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; box-sizing: border-box; width: 22px; height: 22px; margin-top: -7px; border-radius: 50%; background: var(--range-thumb); border: 5px solid var(--range-ring); box-shadow: 0 0 0 5px var(--range-glow), 0 2px 6px rgba(0, 0, 0, .25); transition: box-shadow .15s, transform .15s; }
input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.08); box-shadow: 0 0 0 7px var(--range-glow), 0 2px 8px rgba(0, 0, 0, .3); }
input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--range-thumb), 0 0 0 6px var(--link), 0 2px 8px rgba(0, 0, 0, .3); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 0; background: var(--range-track); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .18); }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 0; background: linear-gradient(90deg, var(--range-a), var(--range-b)); }
input[type=range]::-moz-range-thumb { box-sizing: border-box; width: 22px; height: 22px; border-radius: 50%; background: var(--range-thumb); border: 5px solid var(--range-ring); box-shadow: 0 0 0 5px var(--range-glow), 0 2px 6px rgba(0, 0, 0, .25); transition: box-shadow .15s, transform .15s; }
input[type=range]:hover::-moz-range-thumb { transform: scale(1.08); box-shadow: 0 0 0 7px var(--range-glow), 0 2px 8px rgba(0, 0, 0, .3); }
input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--range-thumb), 0 0 0 6px var(--link), 0 2px 8px rgba(0, 0, 0, .3); }
input[type=range]:disabled { opacity: .5; cursor: default; }

/* "All reports": back to the activedirectoryreports.com gallery, at the start of the header row */
.home-link { box-sizing: border-box; display: inline-flex; align-items: center; gap: 7px; height: 42px; padding: 0 15px 0 12px; border-radius: 0; flex: none;
  font-size: 13.5px; font-weight: 800; color: var(--link); background: var(--surface); box-shadow: var(--sh-small); text-decoration: none; white-space: nowrap; transition: color .15s, transform .15s; }
.home-link:hover { color: var(--link-hover); transform: translateY(-1px); }
.home-link:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
@media (max-width: 480px) { .home-link { padding: 0 12px; } .home-link span { display: none; } }

/* Footer contact: (c) + envelope + email, centred between the collection line and the row counts */
.footer-contact { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.footer-contact svg { flex: none; }
.footer-contact a { color: var(--link); font-weight: 600; text-decoration: none; }
.footer-contact a:hover { color: var(--link-hover); text-decoration: underline; }

/* =====================================================================
   AD Report # 3 · Swiss editorial layer
   Light = white paper, black ink, one red accent; dark = the same on black.
   Archivo / Archivo Narrow, a numbered menu across the top, heavy rules,
   very large headings, open (unboxed) sections, status as small squares.
   ===================================================================== */
:root {
  color-scheme: light;
  --ground: #FFFFFF; --surface: #FFFFFF; --well: #F3F3F3; --track: #E4E4E4;
  --primary: #111111; --primary-dark: #000000; --teal-2: #D7261E;
  --ink: #111111; --ink-2: #2A2A2A; --muted: #5E5E5E; --rule: #E3E3E3;
  --line: #D9D9D9; --line-strong: #111111;
  --accent: #D7261E; --accent-ink: #FFFFFF; --accent-soft: rgba(215, 38, 30, .08);
  --pass-bg: #EEEEEE; --pass-fg: #111111;
  --warn-bg: #FCEFD2; --warn-fg: #6E4500; --warn-strong: #9A5C00;
  --fail-bg: #FBE2DF; --fail-fg: #A01A12; --fail-strong: #D7261E;
  --info-bg: #E2E9FB; --info-fg: #183C9E; --info-strong: #1F4FD8;
  --fail-solid: #D7261E; --warn-solid: #E8A317; --info-solid: #1F4FD8;
  --s-good: #111111; --s-warn: #E8A317; --s-bad: #D7261E; --s-info: #1F4FD8;
  --alert-red: #D7261E;
  --link: #111111; --link-hover: #D7261E;
  --tint: #F3F3F3; --field: #FFFFFF; --edge: transparent;
  --row-hover: #F6F6F6; --row-open: #F3F3F3;
  --teal-rgb: 17,17,17; --shade-rgb: 17,17,17; --lo-rgb: 17,17,17; --lo-a: .4; --hi-rgb: 255,255,255; --hi-a: .6;
  --tip-bg: #111111; --tip-edge: transparent;
  --yes-bg: #EEEEEE; --yes-fg: #111111; --no-bg: #F6F6F6; --no-fg: #5E5E5E;
  --sea: #F3F3F3; --land: #FFFFFF; --land-edge: #9A9A9A; --land-edge-strong: #111111; --land-dim: #EBEBEB;
  --hub-line: #111111; --repl-ok: #111111; --map-ring: #FFFFFF; --halo: rgba(255,255,255,.92);
  --topo-bg: #F6F6F6; --topo-land: #EBEBEB; --topo-land-edge: #C4C4C4; --topo-node: rgba(255,255,255,.96); --glass: rgba(255,255,255,.94);
  --sh-raised: none; --sh-control: none; --sh-small: none; --sh-inset: none; --sh-inset-sm: none; --sh-primary: none;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --narrow: "Archivo Narrow", "Arial Narrow", "Archivo", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --rule-heavy: 6px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ground: #0E0E0E; --surface: #0E0E0E; --well: #1A1A1A; --track: #2B2B2B;
  --primary: #F2F2F2; --primary-dark: #FFFFFF; --teal-2: #FF4A3D; --on-primary: #0E0E0E;
  --ink: #F2F2F2; --ink-2: #DADADA; --muted: #A3A3A3; --rule: #262626;
  --line: #333333; --line-strong: #F2F2F2;
  --accent: #FF4A3D; --accent-ink: #0E0E0E; --accent-soft: rgba(255, 74, 61, .12);
  --pass-bg: #222222; --pass-fg: #F2F2F2;
  --warn-bg: rgba(242, 179, 61, .15); --warn-fg: #F7C766; --warn-strong: #F2B33D;
  --fail-bg: rgba(255, 74, 61, .16); --fail-fg: #FF8A80; --fail-strong: #FF4A3D;
  --info-bg: rgba(111, 149, 255, .16); --info-fg: #A9C0FF; --info-strong: #6F95FF;
  --fail-solid: #FF4A3D; --warn-solid: #F2B33D; --info-solid: #6F95FF;
  --s-good: #F2F2F2; --s-warn: #F2B33D; --s-bad: #FF4A3D; --s-info: #6F95FF;
  --alert-red: #FF4A3D;
  --link: #F2F2F2; --link-hover: #FF4A3D;
  --tint: #1A1A1A; --field: #0E0E0E; --edge: transparent;
  --row-hover: #171717; --row-open: #1A1A1A;
  --teal-rgb: 242,242,242; --shade-rgb: 0,0,0; --lo-rgb: 0,0,0; --lo-a: 1; --hi-rgb: 255,255,255; --hi-a: .04;
  --tip-bg: #000000; --tip-edge: #333333;
  --yes-bg: #222222; --yes-fg: #F2F2F2; --no-bg: #171717; --no-fg: #A3A3A3;
  --sea: #141414; --land: #222222; --land-edge: #555555; --land-edge-strong: #F2F2F2; --land-dim: #1A1A1A;
  --hub-line: #F2F2F2; --repl-ok: #F2F2F2; --map-ring: #0E0E0E; --halo: rgba(14,14,14,.92);
  --topo-bg: #141414; --topo-land: #1F1F1F; --topo-land-edge: #3A3A3A; --topo-node: rgba(20,20,20,.96); --glass: rgba(14,14,14,.94);
  --sh-raised: none; --sh-control: none; --sh-small: none; --sh-inset: none; --sh-inset-sm: none; --sh-primary: none;
}

html, body { font-size: 15px; line-height: 1.5; }
::selection { background: var(--accent); color: #FFFFFF; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
a:hover { color: var(--accent); }
.narrow, .tile .label, .eyebrow, table.data thead th, .nav-group-label, .crumbs, .brand-sub, .page-head .crumbs { font-family: var(--narrow); }

/* ---------- frame: one column, the menu across the top ---------- */
.layout { display: block; max-width: 1440px; margin: 0 auto; padding: 0 40px 48px; }
.layout > .sidebar, .sidebar { position: static !important; top: auto !important; max-height: none !important; height: auto !important; overflow: visible !important;
  display: block; width: auto; min-height: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.layout > main { padding: 0; gap: 28px; }

/* masthead */
.brand-row { padding: 28px 0 14px; border-bottom: var(--rule-heavy) solid var(--ink); align-items: flex-end; }
.brand { padding: 0; gap: 0; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: none; }
.brand > span:last-child { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; }
.brand-name { font-size: 34px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.brand-sub { font-size: 14px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* the menu: six numbered columns under the masthead */
.nav-collapsible { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; border-bottom: 1px solid var(--ink); counter-reset: navgrp; }
.forest-row { display: none !important; }
.nav-group { display: flex; flex-direction: column; gap: 0; padding: 14px 16px 16px 0; counter-increment: navgrp; }
.nav-group-label { all: unset; display: block; padding: 0 0 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
.nav-group-label::before { content: counter(navgrp, decimal-leading-zero) " "; }
.nav-group-label .chev { display: none; }
.nav-group.folded .nav-item { display: flex; }
.nav-item { display: flex; align-items: baseline; gap: 6px; min-height: 0; padding: 2px 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.nav-item svg { display: none; }
.nav-item:hover { background: transparent; color: var(--accent); }
.nav-item[aria-current="page"] { background: transparent; box-shadow: none; color: var(--accent); font-weight: 900; }
.nav-item span.label { flex: 0 1 auto; overflow: visible; white-space: normal; }
.nav-badge, .nav-badge.fail, .nav-badge.warn { min-width: 0; padding: 0; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; font-family: var(--narrow); font-size: 12px; font-weight: 700; color: var(--accent) !important; vertical-align: super; line-height: 1; }
.nav-badge.warn { color: var(--warn-strong) !important; }
.nav-item .nav-badge { margin-left: 1px !important; align-self: flex-start; }
.menu-toggle { border-radius: 0; background: transparent; box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.freshness { background: transparent; box-shadow: none; border-top: 1px solid var(--line); border-radius: 0; padding: 10px 0 0; }

/* ---------- page head ---------- */
.page-head { gap: 0; padding-top: 0; }
.page-head .head-top { padding: 12px 0; border-bottom: 1px solid var(--line); }
.page-head .crumbs, .crumbs { background: transparent; box-shadow: none; border-radius: 0; padding: 6px 0; font-size: 13.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.page-head .crumbs b, .crumbs b { color: var(--ink); font-weight: 700; }
.home-link { height: 44px; padding: 0 2px; background: transparent; box-shadow: none; border-radius: 0; border-bottom: 2px solid var(--ink); font-size: 15px; font-weight: 700; color: var(--ink); }
.home-link svg { display: none; }
.home-link:hover { color: var(--accent); border-bottom-color: var(--accent); transform: none; box-shadow: none; }
.back-btn { border-radius: 0; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

.page-head .titles { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; padding: 36px 0 6px; }
.page-head .titles h1, .page-head h1 { flex: 0 1 auto; margin: 0; font-size: clamp(44px, 6.1vw, 88px); line-height: .94; font-weight: 900; letter-spacing: -0.045em; text-transform: none; color: var(--ink); overflow-wrap: anywhere; }
.page-head .titles .page-sub, .page-sub { flex: 0 1 430px; min-width: 0; margin: 0; font-size: 18px; line-height: 1.45; font-weight: 400; color: var(--ink-2); }
.page-head .titles .page-sub a { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-style: solid; text-underline-offset: 3px; }

/* head tools: search box ruled in black, refresh in red, the rest outlined */
.page-head .head-tools { gap: 10px; }
.page-head .head-tools .gsearch .search, :root[data-theme="dark"] .page-head .head-tools .gsearch .search,
.page-head .head-tools .gsearch .search:hover { height: 44px; min-height: 44px; background: var(--field); border: 2px solid var(--ink); border-radius: 0; box-shadow: none; }
.page-head .head-tools .gsearch:focus-within .search { border-color: var(--accent); box-shadow: none; }
.page-head .head-tools .gsearch .search input { color: var(--ink); caret-color: var(--accent); }
.page-head .head-tools .gsearch .search input::placeholder { color: var(--muted); }
.page-head .head-tools .gsearch .search > svg, .page-head .head-tools .gsearch .search > svg * { stroke: var(--ink); }
.page-head .head-tools .gsearch .search .gs-key { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1px var(--line); border-radius: 0; }
.btn { border-radius: 0; box-shadow: none; font-weight: 800; }
.btn-primary, .page-head .head-tools .btn-refresh { height: 44px; min-height: 44px; padding: 0 18px; background: var(--accent); color: #FFFFFF; box-shadow: none; border: 0; }
.btn-primary:hover, .page-head .head-tools .btn-refresh:hover { background: var(--ink); color: var(--ground); }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .page-head .head-tools .btn-refresh { color: #0E0E0E; }
.btn-secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-secondary:hover { color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.fs-pill, .page-head .head-tools .fs-pill { height: 44px !important; min-height: 44px !important; background: transparent !important; color: var(--ink) !important; box-shadow: inset 0 0 0 2px var(--ink) !important; border: 0 !important; border-radius: 0 !important; }
.fs-pill:hover { color: var(--accent) !important; box-shadow: inset 0 0 0 2px var(--accent) !important; }
.theme-toggle, .page-head .head-tools .theme-toggle { height: 44px !important; min-height: 44px !important; background: transparent !important; box-shadow: inset 0 0 0 2px var(--ink) !important; border: 0 !important; border-radius: 0 !important; color: var(--ink); }
.theme-toggle:hover { box-shadow: inset 0 0 0 2px var(--accent) !important; }
.theme-toggle .tt-track { background: transparent !important; box-shadow: inset 0 0 0 1px var(--line) !important; }
.theme-toggle .tt-knob { background: var(--ink) !important; box-shadow: none !important; }

/* ---------- headline tiles: one ruled row, no boxes ---------- */
.tiles { gap: 0; border-top: 1px solid var(--ink); }
.tile, .tiles-short .tile, .tiles-compact .tile { background: transparent; border: 0; border-radius: 0; box-shadow: none; border-right: 1px solid var(--line); border-bottom: 1px solid var(--ink); padding: 16px 18px 18px; gap: 4px; color: var(--ink); }
.tile .label, .eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.tile .value, :root[data-theme="dark"] .tile .value:not(.warn):not(.fail):not(.info) { font-size: clamp(26px, 15cqi, 56px); font-weight: 900; letter-spacing: -0.04em; line-height: 1.02; color: var(--ink); }
.tile .value.fail { color: var(--accent); }
.tile .value.warn { color: var(--warn-strong); }
.tile .value.info { color: var(--info-strong); }
.tile .sub { font-size: 14px; font-weight: 400; color: var(--ink-2); }
.tiles-short .tile .value { font-size: clamp(26px, 2.6vw, 36px); }
.tiles-compact .tile .value { font-size: clamp(26px, 2.6vw, 36px); }
.tile.tile-go:hover { transform: none; box-shadow: none; background: var(--row-hover); }
.tile.tile-go:hover .value { color: var(--accent); }
.tile-go-arrow { color: var(--ink); opacity: .5; }
.tile { container-type: inline-size; }
.tile .value { overflow-wrap: break-word; hyphens: auto; }

/* ---------- sections: open, under a black rule, with a short red bar ---------- */
.card { background: transparent; border: 0; border-radius: 0; box-shadow: none; border-top: 2px solid var(--ink); padding: 14px 0 0; gap: 14px; }
.card h2 { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.15; padding-bottom: 12px;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 64px 4px no-repeat; }
.card h2 .count { font-weight: 500; color: var(--muted); }
.card-link { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.card-link:hover { color: var(--accent); }
.alert-dot { border-radius: 0; background: var(--accent); }
.modal-card, .card.modal-card { background: var(--surface); border: 2px solid var(--ink); padding: 24px; }
/* pop-ups sit over the page, so they need a solid face (the open .card rule above would leave them see-through) */
.card.popped, .card.help-card { background: var(--surface); border: 2px solid var(--ink); padding: 18px 20px; }
.doc .doc-lead { font-size: 21px; line-height: 1.45; }
.doc-body a, .faq a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.doc-body a:hover, .faq a:hover { color: var(--accent); }

/* filters: words with a red underline on the chosen one */
.seg, .card-head.has-tools .seg { background: transparent; box-shadow: none; padding: 0; gap: 4px 18px; border-radius: 0; }
.seg button, .card-head.has-tools .seg button { min-height: 36px; padding: 6px 0; border-radius: 0; background: transparent !important; box-shadow: none !important; border-bottom: 3px solid transparent;
  font-size: 15px; font-weight: 700; color: var(--muted); }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.seg button.tone-fail, .seg button.tone-bad { color: var(--fail-strong) !important; }
.seg button.tone-warn, :root[data-theme="dark"] .seg button.tone-warn { color: var(--warn-strong) !important; }
.seg button.tone-fail[aria-selected="true"], .seg button.tone-warn[aria-selected="true"] { border-bottom-color: currentColor; }
.search, .dt-tools .search { background: var(--field); border-radius: 0; box-shadow: inset 0 0 0 2px var(--ink); }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
select, .select, .dt-tools select { border-radius: 0 !important; }

/* status: a small square and the word */
.badge, .badge.pass, .badge.warn, .badge.fail, .badge.info, .badge.neutral, .badge.dk-live, .badge.dk-enriched, .badge.dk-synthetic {
  display: inline-flex; align-items: center; gap: 7px; padding: 0; border-radius: 0; background: transparent; box-shadow: none;
  font-size: 13px; font-weight: 700; color: var(--ink); --sq: var(--muted); }
.badge::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--sq); }
.badge.pass { --sq: var(--ink); }
.badge.warn { --sq: var(--s-warn); }
.badge.fail { --sq: var(--accent); color: var(--fail-strong); }
.badge.info { --sq: var(--info-strong); }
.badge.neutral { --sq: var(--line); color: var(--muted); }
.badge.dk-live { --sq: var(--ink); }
.badge.dk-enriched { --sq: var(--r-latam); }
.badge.dk-synthetic { --sq: var(--r-na); }
.chip { border-radius: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); font-weight: 700; }
.chip:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.chip.cap-chip { box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }

/* tables: narrow uppercase heads over a 2px rule, hairlines between rows */
table.data { font-size: 14.5px; }
table.data thead tr { box-shadow: none; }
table.data thead th { background: transparent; border-bottom: 2px solid var(--ink); border-radius: 0 !important; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
table.data thead th .arrow { color: var(--ink); }
table.data tbody td { padding: 11px 12px; border-bottom: 1px solid var(--rule); }
table.data thead th:first-child button, table.data tbody td:first-child,
table.data:not(.has-x) thead th:nth-child(2) button, table.data:not(.has-x) tbody td:nth-child(2) { padding-left: 0; }
table.data tbody td a { color: var(--ink); font-weight: 700; }
table.data tbody td a:hover { color: var(--accent); }
table.data td .cellbar .bar { border-radius: 0; }

/* attention banner: a solid red band */
.banner, :root[data-theme="dark"] .banner { border-radius: 0; box-shadow: none; background: var(--accent); color: #FFFFFF; }
:root[data-theme="dark"] .banner { color: #0E0E0E; }
.banner .icon { border-radius: 0; background: #111111; box-shadow: none; }
.banner.ok, :root[data-theme="dark"] .banner.ok { background: var(--ink); color: var(--ground); }
.banner.ok .icon { background: rgba(255,255,255,.18); }
.banner a.ent-link, .banner a.ent-link:hover { color: inherit; }
.banner a.btn { border-radius: 0; background: #FFFFFF; color: #111111; box-shadow: none; }
.banner a.btn:hover { background: #111111; color: #FFFFFF; }

/* footer */
.footer { border-top: 1px solid var(--ink); padding: 14px 0 0; font-size: 13.5px; color: var(--muted); }
.footer-contact a { color: var(--ink); }

/* loader */
.adr-loader-brand { font-family: var(--font); font-weight: 900; letter-spacing: -0.02em; color: var(--ink); }

/* Guide flow charts: on the page ground under a black rule, square boxes, no glow */
.adr-flow, .flow-stage, .ps-win { border-radius: 0 !important; }
.adr-flow, .adr-flow.xp-open { background: var(--ground); box-shadow: none; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.fl-node rect, .fl-zone rect { rx: 0; ry: 0; }
.fl-node.on rect { filter: none; }
.flow-step span { color: var(--accent); }
.flow-prog { background: var(--rule); }
.flow-prog i { background: var(--accent); }

/* ---------- narrower screens ---------- */
@media (max-width: 1180px) { .nav-collapsible { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 899px) {
  .layout { padding: 0 16px 32px; }
  .brand-row { padding-top: 16px; align-items: center; }
  .brand-name { font-size: 26px; }
  .brand-sub { font-size: 12px; }
  .nav-collapsible { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-head .titles { padding-top: 24px; }
  .page-head .titles .page-sub { font-size: 16px; }
  .card h2 { font-size: 22px; }
  .home-link svg { display: block; }
  .home-link { padding: 0 8px; box-shadow: inset 0 0 0 2px var(--ink); border-bottom: 0; }
}

/* =====================================================================
   AD Report # 9 · Editorial, two forests (on top of Report 3's editorial layer)
   The forest switch in the page header, Forests & Trusts in black and red,
   and the Backups (Quest RMAD) page: two open columns, one per forest.
   ===================================================================== */

/* ---------- forest switch (page header): text tabs, the current one underlined red ---------- */
.forest-switch { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; }
.forest-switch .fsw-label { font: 600 11px var(--narrow); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.forest-switch .fsw-btn { all: unset; box-sizing: border-box; cursor: pointer; padding: 6px 0 3px; border-bottom: 3px solid transparent; font-weight: 700; font-size: 14px; color: var(--ink); white-space: nowrap; }
.forest-switch .fsw-btn:hover { color: var(--accent); }
.forest-switch .fsw-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.forest-switch .fsw-btn[aria-pressed="true"], .forest-switch .fsw-btn[aria-current="page"] { border-bottom-color: var(--accent); cursor: default; }
.forest-switch .fsw-btn[aria-pressed="true"]:hover, .forest-switch .fsw-btn[aria-current="page"]:hover { color: var(--ink); }
@media (max-width: 700px) { .forest-switch .fsw-label { display: none; } }

/* ---------- Forests & Trusts: open cards under heavy rules ---------- */
.fz-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: stretch; }
.fz-grid.fz-pair { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr) minmax(0, 1fr); }
@media (max-width: 1250px) { .fz-grid.fz-pair { grid-template-columns: minmax(0, 1fr); } }
.fz-card { min-width: 0; }
.table-wrap { overflow-x: auto; max-width: 100%; }
.fz-card { gap: 18px; background: transparent; border: 0; border-top: var(--rule-heavy) solid var(--ink); border-radius: 0; box-shadow: none; padding: 14px 0 0; --fz-k: var(--ink); --fz-d: var(--ink); }
.fz-card.fz-b { border-top-color: var(--ink); }
.fz-card.fz-trust { border-top-color: var(--accent); }
.fz-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.fz-id { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fz-kicker { font: 700 12px var(--narrow); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.fz-name { font-size: 40px; line-height: 1; font-weight: 900; letter-spacing: -0.03em; color: var(--ink); overflow-wrap: anywhere; }
.fz-level { font: 500 12.5px var(--mono); color: var(--muted); }
.fz-open { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); border-radius: 0; text-decoration: none; }
.fz-open:hover { color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.fz-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.fz-kpi { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); background: transparent; border-radius: 0; box-shadow: none; }
.fz-kpi b { font-size: 28px; font-weight: 900; color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; }
.fz-kpi span { font: 600 11px var(--narrow); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.fz-facts { display: flex; flex-direction: column; gap: 0; margin: 0; }
.fz-facts > div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: 13px; }
.fz-facts > div:last-child { border-bottom: 0; }
.fz-facts dt { color: var(--muted); font-weight: 600; flex: none; }
.fz-facts dd { margin: 0; font-weight: 700; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.fz-sid { font-size: 11.5px; font-weight: 500; }
.fz-bad { color: var(--fail-fg); font-weight: 800; }
.fz-warn { color: var(--warn-fg); font-weight: 800; }
.fz-trust { gap: 14px; }
.fz-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 0; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); color: var(--ink); }
.fz-pill { padding: 6px 0; font-weight: 900; font-size: 15px; }
.fz-pill-a, .fz-pill-b { background: transparent; color: var(--ink); }
.fz-sides, .fz-notes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.fz-sides li { line-height: 1.5; }
.fz-dot { display: inline-block; width: 9px; height: 9px; margin-right: 6px; vertical-align: 0; }
.fz-dot-a { background: var(--ink); } .fz-dot-b { background: var(--muted); }
.fz-notes li { padding: 8px 0 8px 12px; border-left: 4px solid var(--info-solid); font-weight: 600; }
.fz-notes li.fz-bad { border-left-color: var(--fail-solid); color: var(--ink); }
.fz-h3 { margin: 4px 0 0; font: 700 12px var(--narrow); letter-spacing: .1em; text-transform: uppercase; }
.fz-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13px; }
.fz-table th, .fz-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.fz-table thead th { font: 700 11px var(--narrow); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.fz-table tbody th { font-weight: 700; }
.fz-table th.fz-col-a, .fz-table td.fz-col-a, .fz-table th.fz-col-b, .fz-table td.fz-col-b { text-align: right; background: transparent; }
.fz-table thead th.fz-col-a, .fz-table thead th.fz-col-b { color: var(--ink); }
.fz-table tr.fz-diff td.fz-col { font-weight: 800; }
.fz-table tr.fz-diff th[scope="row"]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 2px 0; background: var(--accent); }

/* ---------- Backups (Quest RMAD) ---------- */
.bk-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.bk-fig { display: flex; flex-direction: column; gap: 2px; padding: 10px 16px 12px 0; }
.bk-fig + .bk-fig { padding-left: 16px; border-left: 1px solid var(--line); }
.bk-fig-l { font: 600 11px var(--narrow); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bk-fig b { font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.bk-fig small { font-size: 12px; color: var(--muted); }
.bk-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.bk-pair.bk-one { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1100px) { .bk-pair { grid-template-columns: minmax(0, 1fr); } }
.bk-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; border-top: var(--rule-heavy) solid var(--ink); padding-top: 12px; }
.bk-id { display: flex; flex-direction: column; gap: 4px; }
.bk-kicker { font: 700 12px var(--narrow); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.bk-name { font-size: 40px; line-height: 1; font-weight: 900; letter-spacing: -0.03em; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.bk-facts { font-size: 13px; color: var(--muted); }
.bk-scores { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: flex-end; }
.bk-score { display: flex; align-items: flex-end; gap: 10px; }
.bk-score b { font-size: 72px; line-height: .85; font-weight: 900; letter-spacing: -0.04em; }
.bk-score span { display: flex; flex-direction: column; font: 700 11px var(--narrow); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-bottom: 2px; }
.bk-score span i { font-style: normal; font: 900 26px var(--font); letter-spacing: 0; color: var(--ink); line-height: 1; }
.bk-score.alert b, .bk-score.alert span i { color: var(--accent); }
.bk-score.warn span i { color: var(--warn-strong); }
.bk-ticks { width: 100%; max-width: 400px; height: 16px; display: block; }
.bk-ticks .on { fill: var(--ink); } .bk-ticks .off { fill: var(--track); }
.bk-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
@media (max-width: 600px) { .bk-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bk-k { display: flex; flex-direction: column; gap: 1px; padding: 10px 10px 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.bk-k b { font-size: 26px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.bk-k span { font-weight: 700; font-size: 12.5px; }
.bk-k small { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.bk-k.alert b { color: var(--accent); } .bk-k.alert { box-shadow: inset 0 3px 0 var(--accent); }
.bk-k.warn b { color: var(--warn-strong); }
.bk-block { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.bk-block h3 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.bk-block h3::before { content: ""; width: 10px; height: 10px; background: var(--accent); flex: none; }
.bk-matrix, .bk-sizes { width: 100%; height: auto; display: block; overflow: visible; }
.bk-rl { font: 700 12px var(--mono); fill: var(--ink); }
.bk-dl, .bk-ax { font: 500 10.5px var(--mono); fill: var(--muted); }
.bk-ll { font: 700 11px var(--mono); fill: var(--ink); }
.bk-c.ok { fill: var(--ink); } .bk-c.warn { fill: var(--warn-solid); } .bk-c.error { fill: var(--accent); }
.bk-c.none { fill: var(--ground); stroke: var(--ink); stroke-width: 1; }
.bk-h-bg { fill: transparent; } .bk-h-ln { stroke: var(--ground); stroke-width: 1.6; }
.bk-grid { stroke: var(--rule); stroke-width: 1; }
.bk-ln { fill: none; stroke-width: 2; }
.bk-ln.s0 { stroke: var(--ink); } .bk-ln.s1 { stroke: var(--muted); } .bk-ln.s2 { stroke: var(--accent); }
.bk-pt.s0 { fill: var(--ink); } .bk-pt.s1 { fill: var(--muted); } .bk-pt.s2 { fill: var(--accent); }
.bk-pt.syn { fill: var(--ground); stroke-width: 1.4; } .bk-pt.syn.s0 { stroke: var(--ink); } .bk-pt.syn.s1 { stroke: var(--muted); } .bk-pt.syn.s2 { stroke: var(--accent); }
.bk-key { display: flex; flex-wrap: wrap; gap: 4px 16px; font: 600 11px var(--narrow); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bk-key span { display: inline-flex; align-items: center; gap: 6px; }
.bk-key i { width: 12px; height: 12px; display: inline-block; }
.bk-key i.ok { background: var(--ink); } .bk-key i.warn { background: var(--warn-solid); } .bk-key i.error { background: var(--accent); }
.bk-key i.none { box-shadow: inset 0 0 0 1px var(--ink); }
.bk-key i.syn { background: repeating-linear-gradient(45deg, var(--ink) 0 2px, var(--ground) 2px 3.4px); }
.bk-att { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.bk-att li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.bk-st { display: inline-flex; align-items: center; gap: 6px; font: 700 11px var(--narrow); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.bk-st i { width: 9px; height: 9px; background: var(--ink); flex: none; }
.bk-st.alert i { background: var(--accent); } .bk-st.warn i { background: var(--warn-solid); } .bk-st.info i { background: var(--muted); }
.bk-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 13px; }
.bk-table th, .bk-table td { padding: 9px 12px 9px 0; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.bk-table thead th { font: 700 11px var(--narrow); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-bottom: 2px solid var(--ink); }
.bk-table tbody th { font-weight: 700; }
.bk-table td small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.bk-table .num { text-align: right; padding-right: 24px; font-family: var(--mono); }
.bk-table tr.bk-total th, .bk-table tr.bk-total td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 900; font-size: 15px; }
.bk-note { font-size: 12.5px; }
.bk-cfg .table-scroll { overflow-x: auto; }
.bk-fig b { overflow-wrap: anywhere; }
.bk-score b { font-size: clamp(48px, 12vw, 72px); }
/* long breadcrumbs (Forests & Trusts, Backups) wrap on a phone */
@media (max-width: 700px) { .page-head .crumbs { white-space: normal; overflow-wrap: anywhere; } .page-head .crumbs b { white-space: normal; } }

/* Backups: pop-up for a heat-map cell or a size point (pages/backups.js) */
.bk-c, .bk-pt { cursor: pointer; }
.bk-c:hover, .bk-c.bk-hot { stroke: var(--accent); stroke-width: 2; }
.bk-pt.bk-hot { stroke: var(--accent); stroke-width: 2; }
.bk-tip { position: fixed; z-index: 60; width: 300px; max-width: calc(100vw - 16px); padding: 12px 14px; background: var(--surface); color: var(--ink); box-shadow: 0 0 0 2px var(--ink), 0 14px 36px rgba(0, 0, 0, .18); font-size: 12.5px; line-height: 1.4; pointer-events: none; }
.bk-tip[hidden] { display: none; }
.bk-tip-hd { display: flex; align-items: center; gap: 8px; }
.bk-tip-hd > i { width: 11px; height: 11px; flex: none; background: var(--ink); }
.bk-tip-hd > i.warn { background: var(--warn-solid); } .bk-tip-hd > i.error { background: var(--accent); } .bk-tip-hd > i.none { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }
.bk-tip-hd b { font: 700 14px var(--mono); }
.bk-tip-hd .bk-st { margin-left: auto; }
.bk-tip-sub { color: var(--muted); font-weight: 600; margin: 2px 0 8px; }
.bk-tip-note { padding: 6px 0 6px 10px; border-left: 4px solid var(--muted); font-weight: 600; margin-bottom: 8px; }
.bk-tip-note.warn { border-left-color: var(--warn-solid); } .bk-tip-note.error { border-left-color: var(--accent); }
.bk-tip-sec { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 6px; }
.bk-tip-sec > span { font: 700 10.5px var(--narrow); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bk-tip dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 12px; margin: 4px 0 0; }
.bk-tip dt { color: var(--muted); }
.bk-tip dd { margin: 0; font-weight: 700; text-align: right; overflow-wrap: anywhere; }
.bk-tip-foot { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11.5px; }

/* Backups: the backup and configuration score bars, one under the other */
.bk-bars { display: flex; flex-direction: column; gap: 6px; max-width: 520px; }
.bk-bar { display: grid; grid-template-columns: 112px minmax(0, 400px) 30px; align-items: center; gap: 12px; }
.bk-bar > span { font: 700 11px var(--narrow); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bk-bar > b { font: 700 12px var(--mono); text-align: right; }
.bk-bar .bk-ticks { max-width: none; }
.bk-bar.warn .bk-ticks .on { fill: var(--warn-solid); }
.bk-bar.alert .bk-ticks .on { fill: var(--accent); }
.bk-bar.alert > b { color: var(--accent); }
