/* Coalitieakkoord.nl site styles. Load order: theme.css, kit.css, signature.css (zonderslop kit a617c62), then this file.
 * Colours come from the theme tokens only: no party colours. */
:root {
    --ink: var(--zs-ink);
    --muted: var(--zs-muted);
    --line: var(--zs-line);
    --surface: var(--zs-surface);
    --accent: var(--zs-accent);
    --radius: var(--zs-radius);
}

a { color: var(--zs-accent); }
a:hover { color: var(--zs-accent-hover); text-decoration-thickness: 2px; }
h1 { font-size: clamp(1.8rem, 2vw + 1.2rem, 2.6rem); margin: .6rem 0 .8rem; }
h2 { font-size: clamp(1.35rem, 1vw + 1rem, 1.8rem); margin: 2.5rem 0 .6rem; }
h3 { margin: 1.4rem 0 .4rem; }
.h3 { font: var(--zs-display-weight) 1.25rem/1.2 var(--zs-font-display); }

.wrap { max-width: 56rem; margin: 0 auto; padding-inline: 1rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: .5rem; background: var(--zs-surface); color: var(--zs-ink); padding: .5rem; z-index: 10; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.zs-logo span { color: var(--zs-accent); }
.review-banner { background: var(--zs-highlight); color: var(--zs-highlight-ink); text-align: center; padding: .35rem 1rem; font-size: .9rem; }

main { padding-bottom: 3rem; }
.breadcrumbs { margin: 1.5rem 0 0; }
.lead { font-size: 1.15rem; color: var(--zs-muted); max-width: 40rem; }
.muted { color: var(--zs-muted); font-size: .95em; }

.home-intro { padding: 2rem 0 .5rem; display: grid; gap: 1.5rem; align-items: center; }
.home-intro h1 { max-width: 20ch; }
@media (min-width: 52rem) { .home-intro { grid-template-columns: 1.15fr .85fr; } .home-intro .ca-hero img { aspect-ratio: 4 / 5; } }

.search-form { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.1rem 0; }
.search-form input[type=search] { flex: 1 1 16rem; min-width: 0; }
.search-form input, .search-form select, .search-form button {
    font: inherit; padding: .6rem .75rem; min-height: 2.9rem; border: 1px solid var(--zs-line); border-radius: var(--zs-radius-btn);
    background: var(--zs-surface); color: var(--zs-ink);
}
.search-form button { background: var(--zs-accent); color: var(--zs-accent-ink); border-color: var(--zs-accent); font-weight: 600; cursor: pointer; padding-inline: 1.1rem; }
.search-form button:hover { background: var(--zs-accent-hover); }

.agreement-list { list-style: none; padding: 0; margin: 0; }
.agreement-list li { padding: .4rem 0; border-bottom: 1px solid var(--zs-line); }

.parties { list-style: none; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }
.seats { color: var(--zs-muted); font-size: .85em; margin-left: .25rem; }

.notice { background: var(--zs-surface-alt); border-left: 2px solid var(--zs-accent); padding: .5rem .75rem; border-radius: 0 var(--zs-radius) var(--zs-radius) 0; font-size: .95rem; }

.hit { border-bottom: 1px solid var(--zs-line); padding: .4rem 0 .75rem; }
.hit h2 { font-size: 1.2rem; margin: .6rem 0 0; }
.hit .muted { margin: .1rem 0 .4rem; }
.snippet { margin: .25rem 0; font-size: .95rem; }
mark { background: var(--zs-highlight); color: var(--zs-highlight-ink); padding: 0 2px; border-radius: 2px; }

.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .45rem .5rem .45rem 0; border-bottom: 1px solid var(--zs-line); vertical-align: top; }
.table thead th { font-size: .8rem; font-weight: 600; color: var(--zs-muted); }

.prose { max-width: 44rem; }
.report { margin-top: 2rem; font-size: .95rem; color: var(--zs-muted); }

.zs-footer p { margin: 0 0 .5rem; }
.zs-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }

/* Keep long words (URLs, party names) inside the viewport at 360px. */
.ca-record dd, .ca-page__text, .snippet { overflow-wrap: anywhere; }

@media (max-width: 37.5rem) {
    .ca-record dl > div { grid-template-columns: 6.5rem 1fr; gap: .75rem; }
    /* Province table: one block per municipality instead of horizontal scrolling. */
    .table-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .table-stack tr { display: block; padding: .5rem 0; border-bottom: 1px solid var(--zs-line); }
    .table-stack td { display: block; border: 0; padding: 0; }
    .table-stack td:first-child { font-weight: 600; }
    .table-stack td[data-label="Coalitie"]:not(:empty) { color: var(--zs-muted); font-size: .9em; }
}

/* Pages without breadcrumbs: keep the h1 clear of the header. */
main > h1:first-child, main > .prose:first-child > h1:first-child { margin-top: 2rem; }
/* The browser's clear button is blue in Chrome; no colour outside the theme. */
.search-form input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }

/* Photos (config/photos.php, credits in the colofon) and own pictograms (public/icons/sprite.svg). */
.ca-hero { margin: 1.25rem 0 1.5rem; position: relative; }
.ca-hero img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 7; object-fit: cover; border-radius: 6px; background: var(--zs-surface-alt); }
.ca-hero--slim img { aspect-ratio: 16 / 5; }
.ca-hero figcaption { position: absolute; right: .4rem; bottom: .4rem; font-size: .7rem; line-height: 1.2; padding: .15rem .4rem; border-radius: 3px; background: rgb(0 0 0 / .55); color: #fff; max-width: calc(100% - .8rem); }
.home-intro .ca-hero { margin: 0; }

.ca-picto { --picto-bg: var(--zs-accent); display: inline-grid; place-items: center; flex: none; width: 3rem; height: 3rem; border-radius: 10px; background: var(--picto-bg); color: var(--zs-accent-ink); }
.ca-picto svg { width: 78%; height: 78%; fill: currentColor; }
.ca-picto--lg { width: 4.5rem; height: 4.5rem; border-radius: 14px; }
.ca-picto--sm { width: 2rem; height: 2rem; border-radius: 7px; }
.with-picto { display: flex; align-items: center; gap: .65rem; }

.ca-steps { display: grid; gap: 1rem; margin: 2rem 0 0; padding: 1.25rem; background: var(--zs-surface-alt); border-radius: 6px; }
.ca-steps > div { display: flex; gap: .85rem; align-items: flex-start; }
.ca-steps p { margin: .2rem 0 0; }
@media (min-width: 46rem) { .ca-steps { grid-template-columns: repeat(3, 1fr); } }

.ca-tiles { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .9rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 12.5rem), 1fr)); }
.ca-tiles a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--zs-line); border-radius: 6px; overflow: hidden; background: var(--zs-surface); color: var(--zs-ink); text-decoration: none; }
.ca-tiles img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.ca-tiles__name { display: flex; align-items: center; gap: .6rem; padding: .6rem .7rem; font-weight: 600; line-height: 1.25; }
.ca-tiles__ph { display: grid; place-items: center; aspect-ratio: 16 / 9; background: var(--zs-surface-alt); }
.ca-tiles__ph + .ca-tiles__name .ca-picto { display: none; }
.ca-tiles a:hover { border-color: var(--zs-accent); }
.ca-tiles a:hover .ca-tiles__name { color: var(--zs-accent); }
@media (max-width: 37.5rem) { .ca-tiles { grid-template-columns: 1fr 1fr; gap: .6rem; } .ca-tiles__name { font-size: .9rem; gap: .45rem; padding: .5rem; } }
.credits { font-size: .9rem; }
.ca-seats__head .ca-picto { color: var(--zs-accent-ink); font-size: 1rem; }

/* Kit colours headings with --zs-brand, which is near-black in dark mode: use the ink token so they switch with the theme. */
h1, h2, h3 { color: var(--zs-ink); }
.ca-suggest { display: block; }
.ca-suggest > div { display: flex; gap: .85rem; align-items: flex-start; }
.ca-suggest h2 { margin: .2rem 0 .6rem; }
.ca-chips { list-style: none; padding: 0; margin: 0 0 .6rem; display: flex; flex-wrap: wrap; gap: .45rem; }
.ca-chips a { display: inline-block; padding: .35rem .75rem; border: 1px solid var(--zs-line); border-radius: 999px; background: var(--zs-surface); color: var(--zs-ink); text-decoration: none; }
.ca-chips a:hover { border-color: var(--zs-accent); color: var(--zs-accent); }
.search-form input::placeholder { color: var(--zs-muted); opacity: 1; }

/* Missing agreement: submission form (no cookies; see ArchiveController::submit). */
.ca-submit { margin: 2rem 0 0; padding: 1.25rem; border: 1px solid var(--zs-line); border-radius: 6px; background: var(--zs-surface); max-width: 44rem; }
.ca-submit h2 { margin: 0; }
.ca-form { display: grid; gap: .35rem; margin-top: 1rem; }
.ca-form label { font-weight: 600; margin-top: .6rem; }
.ca-form input[type=url], .ca-form textarea, .ca-form input[type=file] { font: inherit; width: 100%; padding: .6rem .75rem; border: 1px solid var(--zs-line); border-radius: var(--zs-radius-btn); background: var(--zs-bg); color: var(--zs-ink); }
.ca-form input::placeholder, .ca-form textarea::placeholder { color: var(--zs-muted); opacity: 1; }
.ca-form [aria-invalid=true] { border-color: var(--zs-accent); border-width: 2px; }
.ca-form button { justify-self: start; margin-top: 1rem; font: inherit; font-weight: 600; padding: .6rem 1.3rem; min-height: 2.9rem; border: 0; border-radius: var(--zs-radius-btn); background: var(--zs-accent); color: var(--zs-accent-ink); cursor: pointer; }
.ca-form button:hover { background: var(--zs-accent-hover); }
.ca-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ca-thanks { display: block; }
.ca-thanks > div { display: flex; gap: .85rem; align-items: flex-start; }
.ca-thanks h2 { margin: .2rem 0 .4rem; }
.ca-submit > .with-picto { margin-bottom: .6rem; }

/* Search: municipality filter and pager */
.search-form input[name=gemeente] { flex: 0 1 12rem; min-width: 0; }
.ca-pager { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin: 1.5rem 0 .5rem; }
.ca-pager a { font-weight: 600; }
.ca-pager span { color: var(--zs-muted); }

/* Insights (/inzichten, province and agreement word blocks) */
.ca-bars { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; grid-template-columns: max-content minmax(3rem, 1fr) max-content; gap: .55rem .75rem; font-variant-numeric: tabular-nums; }
.ca-bars li { display: grid; grid-column: 1 / -1; grid-template-columns: subgrid; align-items: center; row-gap: .3rem; }
.ca-bars__label { display: flex; align-items: center; gap: .45rem; min-width: 0; white-space: nowrap; }
.ca-bars--links .ca-bars__text { color: var(--zs-accent); }
.ca-bars__track { display: block; height: .6rem; background: var(--zs-surface-alt); border-radius: 2px; }
.ca-bars__track span { display: block; height: 100%; width: var(--w); background: var(--zs-accent); border-radius: 2px; }
.ca-bars__n { font-weight: 600; white-space: nowrap; text-align: right; }
.ca-bars__note { grid-column: 1 / -1; font-size: .8rem; color: var(--zs-muted); margin-top: -.25rem; }
@media (max-width: 30rem) { .ca-bars { grid-template-columns: minmax(0, 1fr) max-content; } .ca-bars__label { white-space: normal; overflow-wrap: anywhere; } .ca-bars__track { grid-column: 1 / -1; grid-row: 2; } }
.ca-picto--xs { width: 1.6rem; height: 1.6rem; border-radius: 6px; flex: none; }
.ca-chips--count a span { color: var(--zs-muted); font-size: .85em; margin-left: .2rem; font-variant-numeric: tabular-nums; }
.ca-facts { display: grid; gap: 1rem; margin: 1rem 0; }
.ca-facts > div { display: flex; gap: .85rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--zs-surface-alt); border-radius: 6px; }
.ca-facts p { margin: .15rem 0 0; }
@media (min-width: 46rem) { .ca-facts { grid-template-columns: repeat(2, 1fr); } }
.ca-columns { display: grid; gap: 1rem 2rem; }
@media (min-width: 46rem) { .ca-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ca-rank { padding-left: 1.4rem; margin: .4rem 0 0; }
.ca-rank li { margin: .25rem 0; }
.ca-prov-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .1rem 2rem; }
@media (min-width: 46rem) { .ca-prov-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ca-prov-list li { padding: .5rem 0; border-bottom: 1px solid var(--zs-line); }
.ca-prov-list__words { display: block; color: var(--zs-muted); font-size: .92rem; }
.ca-prov-list__theme { display: block; font-size: .92rem; }
.ca-words, .ca-method, .ca-teaser { margin-top: 2rem; }
.ca-teaser > div, .ca-method > div { grid-column: 1 / -1; }
.ca-teaser h2, .ca-method h2 { margin-top: 0; }

/* Long Dutch compounds ("Collegewerkprogramma") must not run into the screen edge on phones. */
h1, h2 { hyphens: auto; overflow-wrap: break-word; }

/* CBS key figures on agreement pages */
.ca-facts-cbs { margin: 2rem 0 0; padding: 1.1rem 1.25rem; border: 1px solid var(--zs-line); border-radius: 6px; background: var(--zs-surface); }
.ca-facts-cbs h2 { margin-top: 0; }
.ca-facts-cbs dl { display: grid; gap: .1rem 2rem; margin: .75rem 0; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.ca-facts-cbs dl > div { display: flex; justify-content: space-between; gap: .75rem; padding: .4rem 0; border-bottom: 1px solid var(--zs-line); }
.ca-facts-cbs dt { color: var(--zs-muted); }
.ca-facts-cbs dd { margin: 0; font-weight: 600; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ca-facts-cbs dd .muted { font-weight: 400; font-size: .8em; }
.ca-budget { margin: 2rem 0 0; }
.ca-budget h2 { margin-top: 0; }
.ca-publications { margin: 2rem 0 0; } .ca-publications h2 { margin-top: 0; } .ca-publications .agreement-list a { overflow-wrap: anywhere; }
