/* Home page components (index.html, nl/index.html). The interim build does not ship this file.
   Colours are the tokens from style.css; nothing here defines a new one. */
[hidden] { display: none !important; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; z-index: 10; background: var(--accent); color: var(--accent-ink); padding: 0.5rem 1rem; font-weight: 700; }
.skip:focus { left: 1rem; top: 0.5rem; }
/* Inset for scrolling tables, and the scope note without a side stripe (overrides style.css on full pages). */
.tablewrap { padding: 0.25rem 0.5rem; }
.scope-card { border-left: none; border-top: 1px solid var(--line-strong); padding: 0.9rem 0 0; }
/* The hero gets the same side gutter as .wrap (style.css sets .hero padding after .wrap). */
.wrap.hero { padding-left: 1.25rem; padding-right: 1.25rem; }
/* Long Dutch compounds (beveiligingsfixes) must not push a narrow screen sideways. */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
/* Notes without a side stripe on full pages; spacing between services; the example label of the checker. */
.note { border: 1px solid var(--warn); border-radius: 3px; }
.ruled + h3 { margin-top: 2.75rem; }
.presets > span { align-self: center; color: var(--ink-soft); font-size: 0.9rem; }
@media (max-width: 520px) { .stamp { white-space: normal; } }
.row > .pill, .row > .chip { justify-self: start; }
summary:focus-visible, .diffview:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.narrow-p { max-width: 44rem; }
.lang-hint { background: var(--paper); border-bottom: 1px solid var(--line-strong); font-size: 0.9rem; }
.lang-hint .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding-top: 0.55rem; padding-bottom: 0.55rem; }
.lang-hint p { margin: 0; }
.lang-hint button { font: inherit; font-size: 0.85rem; color: var(--ink-soft); background: transparent; border: 1px solid var(--line-strong); border-radius: 2px; padding: 0.25rem 0.7rem; cursor: pointer; }

/* hero: the claim on the left, one line of a fake fix and its verdict on the right */
.hero-split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 900px) { .hero-split { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.hero-split h1 { max-width: 18ch; }
/* In the two-column hero the h1 column is narrow: a slightly smaller size keeps "Verify AI-written"
   on one line instead of leaving "Verify" alone. */
@media (min-width: 900px) { .hero-split h1 { font-size: clamp(2.2rem, 4.2vw, 3.2rem); } }
.proof { margin: 0; background: var(--paper); border: 1px solid var(--line-strong); border-left: 3px solid var(--fail); border-radius: 3px; padding: 1rem 1.1rem; }
.proof figcaption { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.proof pre.term { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; border-left: none; }
.pl { display: block; }
.pl.del { color: var(--fail); }
.pl.add { color: var(--pass); }
.proof-verdict { margin: 0.9rem 0 0.4rem; }
.proof-findings { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font-size: 0.85rem; }

/* why a clean scan is not proof: four steps */
.flow { list-style: none; padding: 0; margin: 1.5rem 0 1rem; display: grid; gap: 0.75rem; counter-reset: step; }
@media (min-width: 760px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.flow li { counter-increment: step; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 3px; padding: 0.9rem 1rem; }
.flow .step { display: block; font-family: var(--cond); font-weight: 800; font-size: 1rem; }
.flow .step::before { content: counter(step) ". "; color: var(--ink-faint); }
.flow code { display: block; background: none; padding: 0; margin: 0.45rem 0; color: var(--ink); overflow-wrap: anywhere; }
.flow p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }
.flow .flow-end { border-color: var(--fail); }
.flow .flow-end code { color: var(--fail); font-weight: 700; }
.rule { font-family: var(--cond); font-weight: 800; font-size: clamp(1.15rem, 2.6vw, 1.45rem); margin: 1.25rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--line-strong); }

/* fake-fix explorer */
.tabs { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 1.25rem 0 0; border-bottom: 1px solid var(--line-strong); }
.tabs [role="tab"] { font: inherit; font-family: var(--cond); font-weight: 700; font-size: 1rem; color: var(--ink-soft); background: transparent; border: 1px solid transparent; border-bottom: none; border-radius: 3px 3px 0 0; padding: 0.55rem 0.85rem; cursor: pointer; display: inline-flex; align-items: center; gap: 0.5rem; }
.tabs [role="tab"][aria-selected="true"] { color: var(--ink); background: var(--ground); border-color: var(--line-strong); margin-bottom: -1px; }
.tab-mark { font-size: 0.7rem; letter-spacing: 0.04em; text-transform: uppercase; padding: 0.05rem 0.35rem; border: 1.5px solid currentColor; border-radius: 2px; }
.tab-mark.fail { color: var(--fail); }
.tab-mark.pass { color: var(--pass); }
.explorer .panel { padding-top: 0.5rem; }
.case-view { display: grid; gap: 1rem; margin-top: 1rem; }
@media (min-width: 900px) { .case-view { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: start; } }
.diffview { position: relative; max-height: 30rem; overflow: auto; background: var(--code-bg); border: 1px solid var(--line-strong); border-radius: 3px; padding: 0.5rem 0; font-family: var(--mono); font-size: 0.78rem; line-height: 1.6; }
.dl { display: grid; grid-template-columns: 2.6em 2.6em 1.6em max-content; padding-right: 0.8rem; white-space: pre; }
.dl .ln { color: var(--ink-faint); text-align: right; padding-right: 0.6em; user-select: none; }
.dl .mk { text-align: center; }
.dl code { background: none; padding: 0; font-size: inherit; color: var(--code-ink); }
.dl.del { background: var(--fail-soft); }
.dl.del .mk { color: var(--fail); }
.dl.add { background: var(--pass-soft); }
.dl.add .mk { color: var(--pass); }
.dl.hit { box-shadow: inset 3px 0 0 var(--fail); }
.dl.focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.findings { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.findings button { display: block; width: 100%; text-align: left; font: inherit; color: var(--ink); background: var(--ground); border: 1px solid var(--line-strong); border-left: 3px solid var(--fail); border-radius: 3px; padding: 0.6rem 0.75rem; cursor: pointer; }
.findings button.warn-f { border-left-color: var(--warn); }
.findings button[aria-pressed="true"] { border-color: var(--accent); }
.f-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; }
.f-title { font-weight: 700; }
.f-line { margin-left: auto; font-family: var(--mono); font-size: 0.75rem; color: var(--ink-faint); }
.f-id { display: block; margin-top: 0.3rem; font-size: 0.75rem; background: none; padding: 0; color: var(--ink-faint); }
.f-detail { display: block; margin-top: 0.3rem; font-size: 0.85rem; color: var(--ink-soft); }
.findings-empty { margin: 0; color: var(--ink-soft); }
.raw summary { cursor: pointer; margin-top: 1rem; font-size: 0.9rem; color: var(--ink-soft); }

/* how to read a report */
.anatomy { white-space: pre-wrap; overflow-wrap: anywhere; }
.a-sev { color: var(--fail); font-weight: 700; }
.a-prov { color: var(--warn); }
.a-check { color: var(--accent); }
.a-line { text-decoration: underline dotted; text-underline-offset: 3px; }
.a-key { font-family: var(--mono); font-size: 0.85em; background: var(--code-bg); border: 1px solid var(--line-strong); border-radius: 2px; padding: 0.05em 0.35em; }
.legend { display: grid; gap: 0 2rem; margin: 1.2rem 0; }
@media (min-width: 900px) { .legend { grid-template-columns: 1fr 1fr; } }
.legend > div, .families > div { border-top: 1px solid var(--line-strong); padding: 0.8rem 0; }
.legend dt { font-weight: 700; margin-bottom: 0.3rem; }
.legend dd { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.legend .prov { margin-right: 0.35rem; }

/* what it checks */
.families { display: grid; gap: 0 2rem; margin: 1.2rem 0; }
@media (min-width: 760px) { .families { grid-template-columns: 1fr 1fr; } }
.families dt { font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.families dd { margin: 0.3rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.catalogue > summary { cursor: pointer; font-weight: 700; margin: 1rem 0 0.5rem; }
.filters, .chart-switch { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.8rem 0; }
.filters button, .chart-switch button { font: inherit; font-size: 0.85rem; color: var(--ink-soft); background: transparent; border: 1px solid var(--line-strong); border-radius: 2px; padding: 0.35rem 0.75rem; cursor: pointer; }
.filters button[aria-pressed="true"], .chart-switch button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.cat-table td p { margin: 0.3rem 0 0; max-width: 60ch; font-size: 0.82rem; color: var(--ink-soft); }
.cat-table td code { font-size: 0.75rem; }

/* coverage chart: one bar per reference tool; the tables below carry the same numbers */
.chart { display: grid; gap: 0.7rem; margin: 1rem 0 1.25rem; }
.bar-row { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.25rem 0.8rem; align-items: center; }
.bar-name { font-family: var(--mono); font-size: 0.8rem; }
.bar { display: flex; height: 1.1rem; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar span { display: block; height: 100%; }
.bar span + span { margin-left: 2px; }
.bar span:last-child { border-radius: 0 4px 4px 0; }
.seg-block { background: var(--pass); }
.seg-warn { background: var(--warn); }
.seg-miss { background: var(--fail); }
.bar-note { grid-column: 2; font-size: 0.8rem; color: var(--ink-soft); }
@media (max-width: 520px) { .bar-row { grid-template-columns: minmax(0, 1fr); } .bar-note { grid-column: 1; } }
.cov-tables { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
/* Grid children may not grow past the viewport because of a wide table or code line inside them. */
.cov, .hero-split > *, .case-view > *, .quick li, .ruled dd, .legend > div, .families > div { min-width: 0; }
.cov h3 { font-size: 1rem; margin-top: 0.5rem; }

/* measured: one square per file */
.waffles { display: grid; gap: 1.25rem; margin: 1rem 0; }
@media (min-width: 760px) { .waffles { grid-template-columns: 1fr 1fr; } }
.waffle svg { display: block; width: 100%; height: auto; }
.w-label { margin: 0 0 0.4rem; font-size: 0.85rem; color: var(--ink-soft); }
.w-note { margin: 0.4rem 0 0; font-family: var(--mono); font-size: 0.8rem; }
.w-ok { fill: var(--ink-faint); }
.w-new { fill: var(--warn); }
.w-false { fill: var(--fail); }
.waffle-key { font-size: 0.85rem; color: var(--ink-soft); }
.sw { display: inline-block; width: 0.8em; height: 0.8em; margin: 0 0.3em 0 0.9em; vertical-align: -0.05em; }
.sw:first-child { margin-left: 0; }
.sw-ok { background: var(--ink-faint); }
.sw-block { background: var(--pass); }
.sw-new { background: var(--warn); }
.sw-false { background: var(--fail); }

/* Windows high-contrast mode drops background colours; keep the chart colours, the labels say the rest. */
@media (forced-colors: active) { .bar span, .sw, .waffles svg { forced-color-adjust: none; } }

/* use it */
.quick { list-style: none; padding: 0; margin: 1rem 0 1.75rem; display: grid; gap: 1.25rem; counter-reset: q; }
@media (min-width: 900px) { .quick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quick li { counter-increment: q; border-top: 2px solid var(--accent); padding-top: 0.6rem; }
.quick .step { font-weight: 700; }
.quick .step::before { content: counter(q) ". "; color: var(--accent); }
.quick pre.term, .ruled pre.term { white-space: pre-wrap; overflow-wrap: anywhere; }
.quick p { margin: 0.5rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.ruled { margin: 0.5rem 0 0; }
.ruled > div { display: grid; gap: 0.3rem 1.5rem; border-top: 1px solid var(--line-strong); padding: 1rem 0; }
@media (min-width: 900px) { .ruled > div { grid-template-columns: 12rem minmax(0, 1fr); } }
.ruled dt { font-weight: 700; }
.ruled dd { margin: 0; }
.ruled pre.term { margin-top: 0; }
.ruled dd p { margin: 0.5rem 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.plans td:first-child { font-weight: 700; white-space: nowrap; }

/* questions */
.faq { border-top: 1px solid var(--line-strong); padding: 0.8rem 0; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq p { margin: 0.6rem 0 0; color: var(--ink-soft); }
