/* =========================================================
   employeeadvocacy.nl
   Dutch-modernist guide: strict grid, white paper, signal
   yellow for wayfinding, wide Archivo headings, serif reading.
   ========================================================= */

/* Self-hosted, subsetted variable fonts (latin). Fallbacks are metric-matched to limit layout shift on swap. */
@font-face {
    font-family: 'Archivo';
    src: url('/fonts/archivo.woff2') format('woff2');
    font-weight: 500 800;
    font-stretch: 100% 125%;
    font-display: swap;
}
@font-face {
    font-family: 'Source Serif 4';
    src: url('/fonts/serif.woff2') format('woff2');
    font-weight: 400 650;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Source Serif 4';
    src: url('/fonts/serif-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: 'Archivo Fallback';
    src: local('Arial Bold'), local('Arial-BoldMT'), local('Arial');
    size-adjust: 125%;
    ascent-override: 88%;
    descent-override: 21%;
    line-gap-override: 0%;
}
@font-face {
    font-family: 'Source Serif Fallback';
    src: local('Georgia');
    size-adjust: 104%;
    ascent-override: 104%;
    descent-override: 34%;
    line-gap-override: 0%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --paper: #ffffff;
    --fog: #eef1f5;
    --line: #d5dbe3;
    --ink: #13235b;
    --ink-soft: #46527a;
    --ink-mute: #5d6785;
    --signal: #ffc917;
    --signal-soft: #fff4c7;
    --route: #0057c8;
    --route-dark: #003f94;

    --font-display: 'Archivo', 'Archivo Fallback', Arial, sans-serif;
    --font-text: 'Source Serif 4', 'Source Serif Fallback', Georgia, serif;

    --max: 1180px;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --measure: 68ch;
    --header-h: 68px;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 1rem);
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-text);
    font-size: 1.125rem;
    line-height: 1.65;
    font-optical-sizing: auto;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--route); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--route-dark); text-decoration-thickness: 2px; }

:focus-visible {
    outline: 3px solid var(--route);
    outline-offset: 3px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--signal);
    color: var(--ink);
    padding: 0.75rem 1rem;
    z-index: 100;
    font-family: var(--font-display);
    font-weight: 700;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* ---------- Type ---------- */

h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.01em;
    color: var(--ink);
    text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 3.5rem 0 1.25rem; }
h3 { font-size: 1.3rem; font-stretch: 112%; font-weight: 700; line-height: 1.2; margin: 2rem 0 0.6rem; }

p, ul, ol { margin-bottom: 1.1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--ink-mute); }
strong { font-weight: 650; }

.lede {
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    line-height: 1.55;
    color: var(--ink-soft);
    max-width: 60ch;
}

/* ---------- Header ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 800;
    font-size: 1.05rem;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    min-height: 44px;
}
.logo:hover { color: var(--ink); }
.logo-mark {
    width: 28px;
    height: 28px;
    flex: none;
}
.logo-tld { color: var(--ink-mute); font-weight: 600; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    padding: 0;
    margin: 0;
}
.nav-links li { margin: 0; }
.nav-links a {
    display: block;
    padding: 0.5rem 0.75rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 3px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--line); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--signal); }

.nav-toggle {
    display: none;
    background: none;
    border: 1px solid var(--line);
    padding: 0.5rem 0.75rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
    cursor: pointer;
    min-height: 44px;
}

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        padding: 0.5rem var(--gutter) 1rem;
    }
    .nav-links.is-open { display: flex; }
    .nav-links a { padding: 0.85rem 0; border-bottom: 1px solid var(--fog); }
    .nav-links a[aria-current="page"] { border-bottom: 1px solid var(--fog); box-shadow: inset 4px 0 0 var(--signal); padding-left: 0.75rem; }
}

.progress {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 3px;
    width: 100%;
    background: var(--signal);
    transform: scaleX(0);
    transform-origin: left;
}

/* ---------- Buttons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 48px;
    padding: 0.75rem 1.4rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    border: 2px solid var(--ink);
    border-radius: 4px;
    background: var(--ink);
    color: var(--paper);
}
.btn:hover { background: var(--route-dark); border-color: var(--route-dark); color: var(--paper); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ---------- Home hero ---------- */

.hero {
    padding: clamp(3rem, 8vw, 6rem) 0 clamp(2.5rem, 6vw, 4.5rem);
    border-bottom: 1px solid var(--line);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); margin-bottom: 1.5rem; }
.hero .lede { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.ripple {
    position: relative;
    aspect-ratio: 1;
    width: 100%;
    max-width: 520px;
    justify-self: end;
}
.ripple svg { width: 100%; height: 100%; overflow: visible; }
.ripple-caption {
    margin-top: 0.75rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--ink-mute);
    text-align: right;
}

.ripple .ring { fill: none; stroke: var(--line); stroke-width: 1; }
.ripple .edge { stroke: var(--ink); stroke-width: 1; opacity: 0.25; }
.ripple .node { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.ripple .node-lit { fill: var(--signal); stroke: var(--ink); stroke-width: 1.5; }
.ripple .node-core { fill: var(--ink); }

.ripple .wave {
    fill: none;
    stroke: var(--signal);
    stroke-width: 6;
    opacity: 0;
    transform-origin: 250px 250px;
    animation: wave 3.6s ease-out 0.4s 1 forwards;
}
.ripple .wave-2 { animation-delay: 0.9s; }
@keyframes wave {
    0% { transform: scale(0.05); opacity: 0.9; }
    100% { transform: scale(1); opacity: 0; }
}

@media (max-width: 860px) {
    .hero-grid { grid-template-columns: 1fr; }
    .ripple { justify-self: center; max-width: 300px; }
    .ripple-caption { text-align: center; }
}

/* ---------- Home: key figures strip ---------- */

.figures {
    background: var(--signal);
    padding: clamp(2rem, 5vw, 3rem) 0;
}
.figures-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}
.figure-num {
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 800;
    font-size: clamp(2.4rem, 4.4vw, 3.2rem);
    line-height: 1;
    white-space: nowrap;
}
.figure p { margin: 0.5rem 0 0.25rem; font-size: 1.02rem; }
.figures a,

@media (max-width: 760px) {
    .figures-grid { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ---------- Home: chapter index ---------- */

.index {
    padding: clamp(3rem, 7vw, 5rem) 0;
}
.index-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.index-head h2 { margin: 0; }
.index-head p { margin: 0; color: var(--ink-soft); max-width: 42ch; }

.chapters {
    list-style: none;
    padding: 0;
    margin: 0;
    border-top: 2px solid var(--ink);
}
.chapters li { margin: 0; border-bottom: 1px solid var(--line); }
.chapters a {
    display: grid;
    grid-template-columns: 4.5rem 1fr auto;
    gap: 1.25rem;
    align-items: baseline;
    padding: 1.25rem 0.5rem;
    color: var(--ink);
    text-decoration: none;
}
.chapters a:hover { background: var(--fog); }
.chapters a:hover .ch-title { text-decoration: underline; text-decoration-thickness: 2px; }
.ch-num {
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--ink-mute);
}
.ch-title {
    display: block;
    font-family: var(--font-display);
    font-stretch: 112%;
    font-weight: 700;
    font-size: 1.3rem;
    line-height: 1.2;
}
.ch-desc { display: block; color: var(--ink-soft); font-size: 1rem; margin-top: 0.3rem; }
.ch-time { font-family: var(--font-display); font-size: 0.9rem; color: var(--ink-mute); white-space: nowrap; }

@media (max-width: 600px) {
    .chapters a { grid-template-columns: 2.75rem 1fr; }
    .ch-time { grid-column: 2; }
    .ch-num { font-size: 1.25rem; }
}

/* ---------- Home: tools strip ---------- */

.tools {
    background: var(--fog);
    padding: clamp(3rem, 7vw, 5rem) 0;
}
.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--line);
    background: var(--paper);
}
.tool {
    padding: 1.75rem;
    border-right: 1px solid var(--line);
    text-decoration: none;
    color: var(--ink);
    display: flex;
    flex-direction: column;
}
.tool:last-child { border-right: 0; }
.tool:hover { background: var(--signal-soft); color: var(--ink); }
.tool h3 { margin: 0 0 0.5rem; }
.tool p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.tools h2 { margin-top: 0; }

@media (max-width: 760px) {
    .tools-grid { grid-template-columns: 1fr; }
    .tool { border-right: 0; border-bottom: 1px solid var(--line); }
    .tool:last-child { border-bottom: 0; }
}

/* ---------- Article pages ---------- */

.page-head {
    border-bottom: 1px solid var(--line);
    padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem);
    position: relative;
    overflow: hidden;
}
.page-head .wrap { position: relative; }
.crumbs {
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--ink-mute);
    margin-bottom: 1.5rem;
}
.crumbs a { color: var(--ink-mute); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.crumbs li { margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.4rem; color: var(--line); }

.chapter-tag {
    display: inline-block;
    background: var(--signal);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.2rem 0.6rem;
    margin-bottom: 1rem;
}
.page-head h1 { max-width: 20ch; margin-bottom: 1.25rem; }
.page-meta { font-family: var(--font-display); font-size: 0.9rem; color: var(--ink-mute); margin-top: 1rem; margin-bottom: 0; }

.article-grid {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(2rem, 5vw, 5rem);
    padding-block: clamp(2rem, 5vw, 3.5rem) 4rem;
}

.toc {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
    align-self: start;
    font-family: var(--font-display);
    font-size: 0.92rem;
    border-left: 2px solid var(--ink);
    padding-left: 1rem;
}
.toc-title { font-weight: 700; margin-bottom: 0.6rem; }
.toc ol { list-style: none; padding: 0; margin: 0; }
.toc li { margin: 0; }
.toc a {
    display: block;
    padding: 0.3rem 0;
    color: var(--ink-soft);
    text-decoration: none;
    line-height: 1.35;
}
.toc a:hover { color: var(--ink); text-decoration: underline; }
.toc a.is-active { color: var(--ink); font-weight: 700; }

.prose { max-width: var(--measure); }
.prose { min-width: 0; }
.prose h2 { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.prose > h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }

@media (max-width: 900px) {
    .article-grid { grid-template-columns: minmax(0, 1fr); }
    .toc { position: static; border-left: 0; border-top: 2px solid var(--ink); padding: 1rem 0 0; }
    .toc a { padding: 0.65rem 0; }
}

/* ---------- Content components ---------- */


.callout {
    background: var(--signal-soft);
    border-left: 6px solid var(--signal);
    padding: 1.25rem 1.5rem;
    margin: 2rem 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout-title { font-family: var(--font-display); font-weight: 700; margin-bottom: 0.4rem; }

.quote {
    margin: 2.25rem 0;
    padding: 0 0 0 1.5rem;
    border-left: 2px solid var(--ink);
}
.quote p {
    font-size: 1.35rem;
    line-height: 1.45;
    font-style: italic;
    margin-bottom: 0.5rem;
}
.quote cite { font-style: normal; font-family: var(--font-display); font-size: 0.9rem; color: var(--ink-mute); }

.stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    border-top: 2px solid var(--ink);
    margin: 2rem 0;
}
.stat {
    padding: 1.25rem 1.25rem 1.25rem 0;
    border-bottom: 1px solid var(--line);
}
.stat-num {
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 800;
    font-size: 2.4rem;
    line-height: 1;
}
.stat p { font-size: 1rem; margin: 0.5rem 0 0; }

.steps {
    list-style: none;
    padding: 0;
    counter-reset: step;
    margin: 2rem 0;
}
.steps > li {
    counter-increment: step;
    position: relative;
    padding: 0 0 2rem 4rem;
    margin: 0;
    border-left: 2px solid var(--line);
    margin-left: 1.25rem;
}
.steps > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps > li::before {
    content: counter(step);
    position: absolute;
    left: -1.3rem;
    top: -0.2rem;
    width: 2.5rem;
    height: 2.5rem;
    display: grid;
    place-items: center;
    background: var(--signal);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.1rem;
}
.steps > li > h3 { margin-top: 0; }

.compare {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1rem;
}
.compare th, .compare td {
    text-align: left;
    padding: 0.8rem 0.75rem;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}
.compare thead th {
    font-family: var(--font-display);
    border-bottom: 2px solid var(--ink);
}
.table-scroll { overflow-x: auto; }

.pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2rem 0;
}
.pair > div { border-top: 4px solid var(--ink); padding-top: 1rem; }
.pair > div.do { border-top-color: var(--route); }
.pair h3 { margin-top: 0; }
@media (max-width: 640px) { .pair { grid-template-columns: 1fr; } }

/* FAQ */
.faq details {
    border-bottom: 1px solid var(--line);
}
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1.1rem 2.5rem 1.1rem 0;
    position: relative;
    font-family: var(--font-display);
    font-stretch: 112%;
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "+";
    position: absolute;
    right: 0.25rem;
    top: 0.9rem;
    font-size: 1.6rem;
    line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding-bottom: 1.25rem; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Glossary */
.glossary dt {
    font-family: var(--font-display);
    font-stretch: 112%;
    font-weight: 700;
    font-size: 1.15rem;
    margin-top: 1.75rem;
    scroll-margin-top: calc(var(--header-h) + 1rem);
}
.glossary dd { margin: 0.35rem 0 0; }
.az {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
}
.az li { margin: 0; }
.az a {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    font-family: var(--font-display);
    font-weight: 700;
    text-decoration: none;
    color: var(--ink);
}
.az a:hover { background: var(--signal); border-color: var(--signal); }

/* Sources list */

/* Checklist / scan */
.scan { margin: 2rem 0; border-top: 2px solid var(--ink); }
.scan fieldset { border: 0; border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.scan legend { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.35; padding: 0; margin-bottom: 0.6rem; float: left; width: 100%; }
.scan .opts { clear: both; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.scan label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.4rem 0.9rem;
    border: 1px solid #8a93ad;
    font-family: var(--font-display);
    font-size: 0.95rem;
    cursor: pointer;
}
.scan input { accent-color: var(--ink); width: 1.1rem; height: 1.1rem; }
.scan label:has(input:checked) { background: var(--signal-soft); border-color: var(--ink); }
.scan-result {
    margin-top: 1.5rem;
    padding: 1.5rem;
    border: 2px solid var(--ink);
}
.scan-score {
    font-family: var(--font-display);
    font-stretch: 125%;
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1;
}
.scan-bar { height: 10px; background: var(--fog); margin: 1rem 0; }
.scan-bar span { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.3s ease; }
.scan-result h3 { margin-top: 0.75rem; }

/* Calculator */
.calc {
    border: 2px solid var(--ink);
    margin: 2rem 0;
}
.calc-inputs { padding: 1.5rem; display: grid; gap: 1.5rem; }
.calc-field label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-display);
    font-weight: 700;
    margin-bottom: 0.5rem;
}
.calc-field output { font-stretch: 125%; }
.calc-field input[type="range"] { width: 100%; accent-color: var(--ink); min-height: 44px; }
.calc-field .hint { font-size: 0.9rem; color: var(--ink-mute); margin: 0.25rem 0 0; }
.calc-out {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--signal);
    border-top: 2px solid var(--ink);
}
.calc-out > div { padding: 1.25rem 1.5rem; border-right: 1px solid rgba(19, 35, 91, 0.25); }
.calc-out > div:last-child { border-right: 0; }
.calc-out .stat-num { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
.calc-out p { margin: 0.4rem 0 0; font-size: 0.95rem; }

/* Next chapter */
.next {
    border-top: 2px solid var(--ink);
    margin-top: 3.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.next a {
    padding: 1.25rem 0;
    min-height: 44px;
    text-decoration: none;
    color: var(--ink);
    font-family: var(--font-display);
}
.next a:hover .next-title { text-decoration: underline; }
.next .next-label { display: block; font-size: 0.88rem; color: var(--ink-mute); }
.next .next-title { display: block; font-weight: 700; font-stretch: 112%; font-size: 1.15rem; line-height: 1.25; }
.next .is-next { text-align: right; grid-column: 2; }
@media (max-width: 560px) {
    .next { grid-template-columns: 1fr; }
    .next .is-next { grid-column: 1; text-align: left; border-top: 1px solid var(--line); }
}

/* ---------- CTA band ---------- */

.band {
    background: var(--ink);
    color: var(--paper);
    padding: clamp(3rem, 7vw, 4.5rem) 0;
}
.band-inner { text-align: center; }
.band h2 { color: var(--paper); margin: 0 auto 1rem; max-width: 22ch; }
.band p { color: #c9d0e4; max-width: 58ch; margin-inline: auto; }
.band .btn { background: var(--signal); color: var(--ink); border-color: var(--signal); }
.band .btn:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }

/* ---------- Footer ---------- */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 3rem 0 2rem;
    font-family: var(--font-display);
    font-size: 0.95rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 2rem;
}
.footer-grid strong { display: block; margin-bottom: 0.6rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin: 0; line-height: 1.3; }
.footer-grid a { color: var(--ink-soft); text-decoration: none; display: inline-block; padding: 0.6rem 0; }
.footer-grid a:hover { color: var(--ink); text-decoration: underline; }
.footer-about p { color: var(--ink-soft); font-family: var(--font-text); font-size: 1rem; max-width: 36ch; }
.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    color: var(--ink-mute);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.footer-bottom p { margin: 0; }
.footer-bottom a { color: var(--ink-mute); }

@media (max-width: 860px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* ---------- Home: about ---------- */

.about { padding: clamp(3rem, 7vw, 5rem) 0; }
.narrow { max-width: var(--measure); }
.about h2 { margin-top: 0; }
.about .has-art {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}
.about-art { margin: 0; }
.about-art img { width: 100%; height: auto; }
@media (max-width: 900px) {
    .about .has-art { grid-template-columns: minmax(0, 1fr); }
    .about-art { max-width: 300px; }
}
.band-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; margin: 1.5rem 0 0; }
.band .btn-light { background: transparent; color: var(--paper); border-color: var(--paper); }
.band :focus-visible { outline-color: var(--signal); }
.band .btn-light:hover { background: var(--paper); color: var(--ink); }

/* ---------- Page-head illustration ---------- */

.page-head .has-art {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: center;
}
.page-art { margin: 0; }
.page-art img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
}
@media (max-width: 900px) {
    .page-head .has-art { grid-template-columns: minmax(0, 1fr); }
    .page-art { max-width: 340px; }
    .page-art img { aspect-ratio: auto; max-height: 200px; width: auto; max-width: 100%; }
}

/* ---------- Tables: keyboard-scrollable with edge cue ---------- */

.table-scroll {
    background:
        linear-gradient(to right, var(--paper) 30%, rgba(255, 255, 255, 0)) left / 2rem 100% no-repeat local,
        linear-gradient(to left, var(--paper) 30%, rgba(255, 255, 255, 0)) right / 2rem 100% no-repeat local,
        radial-gradient(farthest-side at 0 50%, rgba(19, 35, 91, 0.18), transparent) left / 0.75rem 100% no-repeat scroll,
        radial-gradient(farthest-side at 100% 50%, rgba(19, 35, 91, 0.18), transparent) right / 0.75rem 100% no-repeat scroll;
}

/* ---------- Sticky progress for quickscan and calculator on small screens ---------- */

.scan-sticky {
    position: sticky;
    bottom: 0;
    z-index: 5;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--font-display);
    font-weight: 700;
}
.scan-sticky a { color: var(--signal); }
@media (max-width: 900px) {
    .calc-out { position: sticky; bottom: 0; z-index: 5; }
    .calc-out > div { padding: 0.6rem 1rem; }
    .calc-out .stat-num { font-size: 1.15rem; font-stretch: 100%; }
    .calc-out p { font-size: 0.85rem; margin-top: 0.15rem; }
    .calc-out { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .calc-out > div { padding: 0.6rem 0.6rem; }
    .calc-out .stat-num { overflow-wrap: anywhere; }
    .calc-out > div { border-right: 1px solid rgba(19, 35, 91, 0.25); border-bottom: 0; }
}
.scan-intro { margin: 0.25rem 0 0; }
.calc-network { margin: 0; padding: 1rem 1.5rem; border-top: 1px solid var(--line); }
.faq-after { margin-top: 2.5rem; }
.scan-result:focus { outline: none; }
.scan-result:focus-visible { outline: 3px solid var(--route); outline-offset: 3px; }
