/* NZB Mentor v3 – site styles (structure from the v0.3 wireframes; final visual design follows) */

:root {
  color-scheme: light;
  --bg: #efeeea;
  --paper: #ffffff;
  --ink: #1b1b1d;
  --ink-2: #4b4b50;
  --ink-3: #808086;
  --line: #d3d2cd;
  --line-2: #e7e6e2;
  --fill: #f6f5f2;
  --fill-2: #ebeae6;
  --accent: #1d5bd8;
  --accent-ink: #ffffff;
  --accent-soft: #e8eefc;
  --good: #1a7f45;  --good-soft: #e1f3e7;
  --warn: #8f5f00;  --warn-soft: #fbefd3;
  --bad: #b42318;   --bad-soft: #fce7e5;
    --shadow: 0 6px 24px rgba(0,0,0,.12);

  /* one fixed colour per backbone – used in every chart, legend and table */
  --c-omicron: #0072b2;
  --c-abavia: #e69f00;
  --c-usenetexpress: #009e73;
  --c-netnews: #cc79a7;
  --c-giganews: #56b4e9;
  --c-uzoreto: #d55e00;
  --c-itshosted: #5f5f5f;

  --r: 6px;
  --maxw: 1140px;
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

:root { --logo-filter: brightness(0); } /* logo is white: black on light backgrounds */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark; --logo-filter: none;
    --bg: #0f0f11; --paper: #18181b; --ink: #ececee; --ink-2: #b7b7bd; --ink-3: #85858c;
    --line: #37373d; --line-2: #2a2a2f; --fill: #202024; --fill-2: #2a2a2f;
    --accent: #7aa7ff; --accent-ink: #0b1020; --accent-soft: #1c2944;
    --good: #4cc98a; --good-soft: #13301f; --warn: #e3b341; --warn-soft: #33290f; --bad: #ff8a80; --bad-soft: #3b1714;
    --shadow: 0 6px 24px rgba(0,0,0,.5);
    --c-omicron: #3d9be0; --c-itshosted: #a3a3a3;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark; --logo-filter: none;
  --bg: #0f0f11; --paper: #18181b; --ink: #ececee; --ink-2: #b7b7bd; --ink-3: #85858c;
  --line: #37373d; --line-2: #2a2a2f; --fill: #202024; --fill-2: #2a2a2f;
  --accent: #7aa7ff; --accent-ink: #0b1020; --accent-soft: #1c2944;
  --good: #4cc98a; --good-soft: #13301f; --warn: #e3b341; --warn-soft: #33290f; --bad: #ff8a80; --bad-soft: #3b1714;
  --shadow: 0 6px 24px rgba(0,0,0,.5);
  --c-omicron: #3d9be0; --c-itshosted: #a3a3a3;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.6 var(--font); overflow-x: hidden; }
a { color: var(--accent); text-underline-offset: 2px; }
img, svg { max-width: 100%; }
p { margin: 0 0 12px; }
code { font-family: var(--mono); font-size: .9em; background: var(--fill-2); padding: 1px 5px; border-radius: 4px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Site header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 60px; position: relative; }
.logo { display: flex; align-items: center; gap: 9px; font-weight: 750; font-size: 17px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.logo-img { display: block; height: 42px; width: auto; filter: var(--logo-filter); }
.logo-mark { width: 30px; height: 30px; border: 2px solid var(--ink); border-radius: 7px; display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.logo small { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; padding: 7px 11px; border-radius: 6px; font-size: 14.5px; white-space: nowrap; }
.nav a:hover { background: var(--fill); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--fill-2); font-weight: 650; }
.site-header .header-cta { margin-left: 8px; }
.site-header .menu-btn { display: none; margin-left: auto; }
@media (max-width: 900px) {
  .nav { display: none; }
  .site-header .wrap { gap: 8px; }
  .site-header .header-cta { margin-left: auto; }
  .site-header .menu-btn { display: inline-flex; margin-left: 0; }
  .nav.open { display: flex; flex-direction: column; position: absolute; top: 60px; left: 0; right: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 14px; box-shadow: var(--shadow); }
}

/* ---------- Type ---------- */
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.2vw, 42px); margin: 0 0 14px; }
h2 { font-size: clamp(21px, 2.6vw, 27px); margin: 0 0 10px; }
h3 { font-size: 17px; margin: 0 0 6px; }
.lead { font-size: clamp(16px, 1.8vw, 19px); color: var(--ink-2); max-width: 66ch; margin-bottom: 18px; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 650; margin-bottom: 6px; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.prose { max-width: 72ch; }
.prose p, .prose li { color: var(--ink-2); }
.prose h3 { margin-top: 26px; }
.prose ul, .prose ol { padding-left: 20px; margin: 0 0 14px; }
.prose li { margin: 4px 0; }
.crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 14px; }
.crumbs a { color: var(--ink-3); }
.meta-line { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--ink-3); }
.meta-line span::before { content: "• "; }
.meta-line span:first-child::before { content: ""; }

/* ---------- Layout ---------- */
.section { padding: 44px 0; }
.section.tight { padding: 28px 0; }
.section + .section { border-top: 1px solid var(--line-2); }
.band { background: var(--fill); }
.page-head { padding: 30px 0 8px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.spread { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 20px; min-width: 0; }
.card.flat { background: var(--fill); }
.card h3 + p { color: var(--ink-2); }
.with-toc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 44px; }
.toc { position: sticky; top: 80px; align-self: start; font-size: 14px; }
.toc ol, .toc ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line-2); }
.toc li a { display: block; padding: 4px 0 4px 12px; color: var(--ink-2); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc li a:hover { color: var(--ink); border-left-color: var(--ink-3); }
@media (max-width: 900px) { .with-toc { grid-template-columns: 1fr; gap: 20px; } .toc { position: static; } }

/* ---------- Controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 7px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-weight: 600; font-size: 14.5px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--fill); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent); filter: brightness(1.08); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 16px; }
.btn-sm { height: 30px; padding: 0 11px; font-size: 13px; font-weight: 550; }
.btn:focus-visible, .seg button:focus-visible, .chip:focus-visible, summary:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 8px; padding: 2px; background: var(--fill); gap: 2px; }
.seg button { border: 0; background: transparent; font: inherit; font-size: 13.5px; padding: 5px 12px; border-radius: 6px; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); font-weight: 650; box-shadow: 0 0 0 1px var(--line); }
.controls { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.control { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lbl { font-size: 11.5px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
a.chip { text-decoration: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 99px; padding: 4px 11px 4px 9px; font: inherit; font-size: 13px; background: var(--paper); cursor: pointer; color: var(--ink); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.chip[aria-pressed="false"] { color: var(--ink-3); background: transparent; }
.chip[aria-pressed="false"] .dot { background: transparent; box-shadow: inset 0 0 0 2px var(--c); }
input[type="date"], select, input[type="search"], input[type="text"] { height: 38px; border: 1px solid var(--line); border-radius: 7px; padding: 0 10px; font: inherit; font-size: 14px; background: var(--paper); color: var(--ink); }
input[type="range"] { width: 100%; accent-color: var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 99px; padding: 3px 11px; font-size: 12.5px; color: var(--ink-2); background: var(--paper); max-width: 100%; }
.pill b { color: var(--ink); font-variant-numeric: tabular-nums; }
details.advanced { border: 1px solid var(--line); border-radius: var(--r); background: var(--fill); }
details.advanced > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; font-size: 14px; }
details.advanced > div { padding: 4px 14px 14px; }

/* ---------- Data display ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data caption { text-align: left; padding: 10px 12px; font-size: 13px; color: var(--ink-3); caption-side: bottom; border-top: 1px solid var(--line-2); }
table.data th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 650; background: var(--fill); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 10px 12px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data .num, .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.data tr.is-mine td { background: var(--accent-soft); }
.bb { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; white-space: nowrap; }
.bb::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); flex: none; }
.sub { display: block; font-size: 12.5px; color: var(--ink-3); font-weight: 400; }
.bar { position: relative; height: 8px; background: var(--fill-2); border-radius: 99px; overflow: hidden; min-width: 90px; }
.bar > i { position: absolute; inset: 0 auto 0 0; background: var(--ink-2); border-radius: inherit; }
.bar.good > i { background: var(--good); } .bar.warn > i { background: var(--warn); } .bar.bad > i { background: var(--bad); }
.bar.c > i { background: var(--c); }
.barcell { display: grid; grid-template-columns: minmax(90px, 1fr) 58px; gap: 10px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 650; padding: 2px 9px; border-radius: 99px; white-space: nowrap; background: var(--fill-2); color: var(--ink-2); }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.delta-up { color: var(--good); } .delta-down { color: var(--bad); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.kpi { padding: 16px 20px; border-left: 1px solid var(--line); min-width: 0; }
.kpi:first-child { border-left: 0; }
.kpi .v { font-size: clamp(22px, 3vw, 30px); font-weight: 750; font-variant-numeric: tabular-nums; line-height: 1.2; }
.kpi .l { font-size: 13.5px; color: var(--ink-2); font-weight: 600; }
.kpi .s { font-size: 12px; color: var(--ink-3); }
@media (max-width: 760px) { .kpis { grid-template-columns: 1fr 1fr; } .kpi:nth-child(3) { border-left: 0; } .kpi:nth-child(n+3) { border-top: 1px solid var(--line); } }
.findings { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.finding { border: 1px solid var(--line); border-top: 3px solid var(--ink); border-radius: var(--r); padding: 14px 16px; background: var(--paper); }
.finding .big { font-size: 24px; font-weight: 750; line-height: 1.2; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.finding p { font-size: 14px; color: var(--ink-2); margin: 0; }
td.heat { text-align: right; font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--accent) var(--p), var(--paper)); }
td.heat.hi { color: var(--accent-ink); font-weight: 650; }
.cells { display: flex; gap: 3px; }
.cells span { width: 34px; height: 22px; border-radius: 3px; font-size: 10.5px; display: grid; place-items: center; font-variant-numeric: tabular-nums; background: color-mix(in srgb, var(--accent) var(--p), var(--paper)); color: var(--ink); }
.cells span.hi { color: var(--accent-ink); }

/* ---------- Charts ---------- */
.chart { position: relative; width: 100%; min-height: 200px; }
.chart svg { display: block; overflow: visible; }
.chart .gl { stroke: var(--line-2); }
.chart .yl, .chart .xl { fill: var(--ink-3); font-size: 11px; font-family: var(--font); }
.chart .xt { fill: var(--ink-3); font-size: 11.5px; font-family: var(--font); }
.chart .xl2 { fill: var(--ink-3); font-size: 10px; font-family: var(--font); opacity: .75; }
.chart .ln { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; transition: opacity .15s; }
.chart .ln.dim { opacity: .12; }
.chart .ln.low { stroke-dasharray: 5 5; opacity: .55; }
.chart .ln.low.dim { opacity: .08; }
.chart .ln.focus { stroke-width: 3.4; }
.chart .cross { stroke: var(--ink-3); stroke-dasharray: 3 3; }
.chart .dots circle { stroke: var(--paper); stroke-width: 2; }
.tip { position: absolute; pointer-events: none; background: var(--paper); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); padding: 8px 10px; font-size: 12.5px; min-width: 190px; z-index: 5; }
.tip .th { font-weight: 700; margin-bottom: 2px; }
.tip .ts { color: var(--ink-3); font-size: 11.5px; margin-bottom: 6px; }
.tip .tr { display: flex; gap: 8px; align-items: center; line-height: 1.7; }
.tip .tr i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.tip .tr b { margin-left: auto; font-variant-numeric: tabular-nums; }
.spark { display: block; }

/* ---------- Home: dropzone & result ---------- */
.hero { padding: 40px 0 34px; text-align: center; }
.hero .lead { margin-left: auto; margin-right: auto; }
.dropzone { display: block; border: 2px dashed var(--ink-3); border-radius: 14px; background: var(--fill); padding: 52px 20px 44px; text-align: center; cursor: pointer; transition: background .15s, border-color .15s; max-width: 900px; margin: 26px auto 0; }
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: var(--accent-soft); }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }
.dz-icon { width: 60px; height: 60px; margin: 0 auto 16px; border: 2px solid var(--ink-2); border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); }
.dz-title { font-size: clamp(20px, 2.6vw, 26px); font-weight: 750; margin-bottom: 4px; }
.dz-or { color: var(--ink-3); margin: 6px 0 14px; }
.dz-meta { font-size: 13px; color: var(--ink-3); margin-top: 16px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; font-size: 13.5px; color: var(--ink-2); margin-top: 18px; }
.trust span::before { content: "✓ "; color: var(--good); font-weight: 700; }
.state { display: none; }
[data-state="empty"] .state-empty, [data-state="scanning"] .state-scanning, [data-state="result"] .state-result { display: block; }
.result { max-width: 980px; margin: 0 auto; text-align: left; }
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--good); border-radius: var(--r); background: var(--paper); }
.verdict .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--good-soft); color: var(--good); display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.progress-list { display: grid; gap: 10px; }
.progress-row { display: grid; grid-template-columns: 130px 1fr 52px; gap: 12px; align-items: center; font-size: 14px; }
.steps { counter-reset: s; display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0,1fr)); }
.steps li { list-style: none; counter-increment: s; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: var(--paper); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--ink); font-weight: 750; margin-bottom: 10px; font-size: 14px; }
@media (max-width: 760px) { .verdict { grid-template-columns: 1fr; } .steps { grid-template-columns: 1fr; } .progress-row { grid-template-columns: 100px 1fr 46px; } }

/* ---------- Placeholders & annotations ---------- */
.ph { border: 1px solid var(--line); border-radius: var(--r); background:
      linear-gradient(to top right, transparent calc(50% - .6px), var(--line) 50%, transparent calc(50% + .6px)),
      linear-gradient(to top left, transparent calc(50% - .6px), var(--line) 50%, transparent calc(50% + .6px)), var(--fill);
      display: grid; place-items: center; color: var(--ink-3); font-size: 12px; min-height: 120px; text-align: center; padding: 10px; }
.tbd { background: var(--warn-soft); color: var(--warn); border-radius: 3px; padding: 0 5px; font-size: .82em; font-weight: 700; white-space: nowrap; }

/* ---------- FAQ ---------- */
.faq-tools { position: sticky; top: 60px; z-index: 10; background: var(--paper); padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.faq-search { width: 100%; height: 48px !important; font-size: 16px !important; padding: 0 16px !important; }
.faq-cat { padding-top: 30px; }
.faq-cat > h2 { font-size: 21px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); margin-bottom: 0; }
details.qa { border-bottom: 1px solid var(--line-2); }
details.qa > summary { list-style: none; cursor: pointer; padding: 15px 40px 15px 0; position: relative; }
details.qa > summary::-webkit-details-marker { display: none; }
details.qa > summary h3 { display: inline; font-size: 16.5px; font-weight: 650; margin: 0; }
details.qa > summary::after { content: "+"; position: absolute; right: 6px; top: 11px; font-size: 22px; color: var(--ink-3); font-weight: 300; }
details.qa[open] > summary::after { content: "–"; }
details.qa .a { padding: 0 0 18px; max-width: 76ch; }
details.qa .a p, details.qa .a li { color: var(--ink-2); }
details.qa .a > p:first-child { color: var(--ink); }
details.qa .a ul, details.qa .a ol { padding-left: 20px; margin: 0 0 12px; }
details.qa .a .plink { font-size: 12.5px; color: var(--ink-3); }
.hidden { display: none !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--fill); border-top: 1px solid var(--line); padding: 40px 0 26px; font-size: 14px; margin-top: 30px; }
.site-footer .cols { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 26px; }
.site-footer h4 { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-3); margin: 0 0 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 5px 0; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 900px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > :first-child { grid-column: 1 / -1; } }

@media (max-width: 640px) {
  .filterbar, .faq-tools { position: static; }
}

/* ---------- v0.2: components ---------- */
.share-opt { max-width: 900px; margin: 14px auto 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 4px 10px; text-align: left; }
.share-opt label { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: 15px; }
.share-opt input { width: 18px; height: 18px; accent-color: var(--accent); }
.callout { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: var(--r); padding: 14px 16px; }
.switch { position: relative; flex: none; width: 44px; height: 24px; margin-top: 1px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; background: var(--ink-3); border-radius: 99px; transition: background .15s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .kpis.k3 { grid-template-columns: 1fr; } .kpis.k3 .kpi { border-left: 0; } .kpis.k3 .kpi + .kpi { border-top: 1px solid var(--line); } }
.dayrow { cursor: pointer; }
.dayrow:hover td { background: var(--fill); }
.daychecks td { background: var(--fill); }
.vsteps { list-style: none; padding: 0; margin: 16px 0; counter-reset: v; }
.vsteps > li { counter-increment: v; position: relative; padding: 0 0 18px 46px; }
.vsteps > li::before { content: counter(v); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 750; font-size: 14px; background: var(--paper); }
.vsteps > li::after { content: ""; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: var(--line); }
.vsteps > li:last-child::after { display: none; }
.vsteps h3 { margin: 4px 0 4px; }
.diagram { border: 1px solid var(--line); border-radius: var(--r); background: var(--fill); padding: 16px; margin: 14px 0 18px; }
.diagram svg { width: 100%; height: auto; display: block; }
.diagram text { font-family: var(--font); fill: var(--ink); }
.diagram .dbox { fill: var(--paper); stroke: var(--ink-2); stroke-width: 1.5; }
.diagram .dline { stroke: var(--ink-3); stroke-width: 1.5; fill: none; }
.diagram .dmuted { fill: var(--ink-3); }
.chapter { padding-top: 34px; }
.chapter + .chapter { border-top: 1px solid var(--line-2); margin-top: 26px; }
.chapter > h2 { font-size: clamp(22px, 2.8vw, 28px); }
.chapter .num-eyebrow { font-size: 12px; font-weight: 700; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.toc .sub-toc a { padding-left: 24px; font-size: 13px; color: var(--ink-3); }
.kv { width: 100%; border-collapse: collapse; font-size: 14px; margin: 8px 0 16px; }
.kv th, .kv td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.kv th { width: 34%; font-weight: 650; }
.toc a[aria-current] { color: var(--ink); font-weight: 650; border-left-color: var(--ink); }

/* v0.3 */
.legal h2 { font-size: 20px; margin-top: 30px; }
.legal p { color: var(--ink-2); }

/* ---------- v3: data states ---------- */
.warnbox { border: 1px solid var(--warn); background: var(--warn-soft); color: var(--warn); border-radius: var(--r); padding: 10px 14px; font-size: 13.5px; margin-top: 12px; }
.bar.indet > i { width: 40% !important; animation: indet 1.3s ease-in-out infinite; opacity: .55; }
@keyframes indet { 0% { left: -40%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .bar.indet > i { animation: none; left: 0; width: 100% !important; opacity: .25; } }
.verdict.warn { border-left-color: var(--warn); } .verdict.warn .ico { background: var(--warn-soft); color: var(--warn); }
.verdict.bad { border-left-color: var(--bad); } .verdict.bad .ico { background: var(--bad-soft); color: var(--bad); }
.hist .cellv.muted { background: none; color: var(--ink-3); }

/* ---------- v3: SEO/GEO tekstblokken (index, retention, performance) ---------- */
.edu h2 { font-size: 22px; }
.edu .prose ul { margin-top: 0; }
.edu-col { display: grid; gap: 36px; }
.status-list { display: grid; gap: 10px; margin: 12px 0 0; }
.status-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; align-items: baseline; }
.status-list dt { margin: 0; }
.status-list dd { margin: 0; font-size: 14px; color: var(--ink-2); }
@media (max-width: 640px) { .status-list > div { grid-template-columns: 1fr; gap: 4px; } }
.ed-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px 48px; align-items: start; }
.ed-side h2 { margin-bottom: 6px; }
.ed-label { font-size: 12.5px; color: var(--ink-3); margin-bottom: 14px; }
.ed-side > p { color: var(--ink-2); }
.takeaway { margin: 18px 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--ink); }
.ed-side .takeaway:last-child { margin-bottom: 0; }
.takeaway p { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.frows { border-top: 1px solid var(--line); }
.frow { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.frow p { margin: 0; color: var(--ink-2); }
.frow p b { color: var(--ink); }
.frow .dots { display: flex; flex-wrap: wrap; gap: 4px; padding-top: 6px; }
.frow .dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
.article { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 48px; margin-top: 12px; align-items: start; }
.article p { color: var(--ink-2); }
.article .pullquote p { color: var(--ink); }
.article p:last-child { margin-bottom: 0; }
.pullquote { margin: 0 0 18px; padding: 4px 0 4px 18px; border-left: 3px solid var(--ink); }
.pullquote p { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.5; color: var(--ink); }
.choose h3 { margin: 0 0 6px; }
.choose p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.avail-p { color: var(--ink-2); max-width: 92ch; }
@media (max-width: 860px) { .ed-grid { grid-template-columns: 1fr; gap: 24px; } .article { grid-template-columns: 1fr; gap: 0; } .article .pullquote { margin-top: 10px; } }
@media (max-width: 640px) { .frow { grid-template-columns: 1fr; gap: 6px; } .frow .dots { padding-top: 0; } }
.hist-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; margin-top: 8px; }
.hist-intro p { color: var(--ink-2); }
@media (max-width: 860px) { .hist-intro { grid-template-columns: 1fr; gap: 0; } }
