/* App components on top of theme.css + kit.css + signature.css (spoedzoeker design standard).
 * Only app-specific UI lives here: forms, cards, account pages. Tokens come from theme.css. */
:root { --zs-ok: #1f6b3a; --zs-warn: #8a5a00; --zs-error: #a12a2a; }
.zs-logo { font-weight: 800; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--zs-surface); color: var(--zs-ink); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }
:focus-visible { outline: 3px solid var(--zs-highlight); outline-offset: 2px; }
h1 { margin-bottom: .4em; }
h2 { margin: 2rem 0 .75rem; }
h3 { margin: 0 0 .35rem; }
.zs-head h2, .sz-route h3, .zs-footer h2 { margin-top: 0; }
.narrow { max-width: 42rem; }
.lead { font-size: 1.15rem; color: var(--zs-muted); max-width: 40rem; }
.meta { color: var(--zs-muted); font-size: .92rem; }

/* Buttons: legacy .btn markup maps onto the kit button. */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .6rem 1.2rem; border: 2px solid transparent; border-radius: var(--zs-radius-btn); background: var(--zs-accent); color: var(--zs-accent-ink); font: 600 1rem/1.2 var(--zs-font-body); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--zs-accent-hover); color: var(--zs-accent-ink); }
.btn.secondary { background: transparent; color: var(--zs-brand); border-color: var(--zs-line); }
.btn.secondary:hover { border-color: var(--zs-brand); background: transparent; color: var(--zs-brand); }
.btn.small { min-height: 2.2rem; padding: .35rem .9rem; font-size: .92rem; }
.btn.danger { background: var(--zs-error); }
.linkbtn { background: none; border: 0; padding: 0; color: var(--zs-brand); font: inherit; cursor: pointer; text-decoration: underline; }
.linkbtn--nav { color: inherit; opacity: .88; text-decoration: none; padding: .25rem 0; }
.linkbtn--nav:hover { opacity: 1; }

/* Listing cards */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.card { background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); padding: 1.1rem; }
.card p { margin: .35rem 0; }
.card h3 a { color: var(--zs-ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card__top { display: flex; justify-content: space-between; gap: .5rem; align-items: center; margin-bottom: .4rem; font-size: .85rem; color: var(--zs-muted); }
.price { font: 700 1.15rem/1.3 var(--zs-font-display); color: var(--zs-ink); }
.tag { display: inline-block; font-size: .8rem; border: 1px solid var(--zs-line); border-radius: 999px; padding: 0 .55rem; margin: 0 .25rem .25rem 0; color: var(--zs-muted); }
.tag.status-published { color: var(--zs-ok); border-color: currentColor; }
.tag.status-pending, .tag.status-draft { color: var(--zs-warn); border-color: currentColor; }
.tag.status-rejected { color: var(--zs-error); border-color: currentColor; }

/* Forms */
form .field { margin-bottom: 1rem; }
label { display: block; font-weight: 600; margin-bottom: .25rem; }
.check label { display: inline; font-weight: 400; }
.hint { color: var(--zs-muted); font-size: .9rem; margin-top: .15rem; }
input[type=text], input[type=email], input[type=number], input[type=date], input[type=password], select, textarea {
  width: 100%; min-height: 2.75rem; padding: .55rem .75rem; border: 1px solid var(--zs-line); border-radius: var(--zs-radius-sm); background: var(--zs-surface); color: var(--zs-ink); font: inherit;
}
input:focus, select:focus, textarea:focus { border-color: var(--zs-brand); }
textarea { min-height: 10rem; }
.row { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); }
.filters { align-items: end; margin-bottom: 1.5rem; }
.alert { border-radius: var(--zs-radius-sm); padding: .75rem 1rem; margin: 1rem 0; border: 1px solid var(--zs-line); background: var(--zs-surface); }
.alert.ok { border-color: var(--zs-ok); }
.alert.error { border-color: var(--zs-error); color: var(--zs-error); }
.errors { color: var(--zs-error); font-size: .9rem; }

/* Tables (listing details, account) */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--zs-line); vertical-align: top; }
.table-scroll { overflow-x: auto; }

/* Pricing */
.plans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin-bottom: 1.5rem; }
.plans .card.highlight { border: 2px solid var(--zs-brand); }
.plans .amount { font: 800 2rem/1.1 var(--zs-font-display); color: var(--zs-brand); margin: .25rem 0; }
ul.ticks { padding-left: 1.2em; }
.pagination { display: flex; gap: .5rem; margin-top: 1.5rem; flex-wrap: wrap; align-items: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Guide pages */
.prose > * { max-width: 44rem; }
.prose > .sz-situations { max-width: none; }
.prose h2 { font-size: 1.5rem; }
.sources { font-size: .9rem; color: var(--zs-muted); }
.sources li { margin-bottom: .3rem; }
.sz-alert__example { font-size: .78rem; font-weight: 700; color: var(--zs-muted); }
.sz-alert__title a { color: inherit; text-decoration: none; }
.sz-alert__title a:hover { text-decoration: underline; }

/* ---------- Photos + pictograms (mandatory checklist, Terry 18-11) ---------- */
/* Pictogram tile: own sprite /img/icons.svg, white on ink blue. */
.sz-picto { --picto-bg: var(--zs-brand); display: inline-grid; place-items: center; flex: none; width: 3rem; height: 3rem; background: var(--picto-bg); color: #fff; border-radius: var(--zs-radius); }
.sz-picto svg { width: 76%; height: 76%; }
.sz-picto--sm { width: 2.25rem; height: 2.25rem; border-radius: var(--zs-radius-sm); }
.sz-picto--lg { width: 4rem; height: 4rem; }
.sz-picto--light { --picto-bg: #fff; color: var(--zs-brand); }

/* Home hero with photo: ink-blue veil keeps white text >= 7:1 on the left, the street shows on the right. */
.sz-hero--photo { position: relative; isolation: isolate; background: var(--zs-brand-deep); }
.sz-hero--photo > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.sz-hero--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(19 36 60 / .95) 0%, rgb(19 36 60 / .88) 45%, rgb(19 36 60 / .45) 100%); }
@media (max-width: 56rem) { .sz-hero--photo::before { background: rgb(19 36 60 / .9); } }
.sz-credit { position: absolute; right: .75rem; bottom: .4rem; margin: 0; font-size: .72rem; color: #fff; opacity: .75; }
.sz-credit a { color: inherit; }

/* Page banner: photo per page type, title and lead over an ink-blue veil. */
.sz-banner { position: relative; isolation: isolate; color: #fff; background: var(--zs-brand-deep); padding: clamp(2.5rem, 6vw, 4.5rem) 0 3rem; }
.sz-banner > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: var(--focus, center); }
.sz-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(19 36 60 / .6) 0%, rgb(19 36 60 / 0) 70%), linear-gradient(90deg, rgb(19 36 60 / .93) 0%, rgb(19 36 60 / .8) 55%, rgb(19 36 60 / .45) 100%); }
@media (max-width: 48rem) {
  .sz-banner { display: flex; align-items: flex-end; min-height: 17rem; padding-top: 4rem; }
  .sz-banner::before { background: linear-gradient(to top, rgb(19 36 60 / .94) 0%, rgb(19 36 60 / .8) 45%, rgb(19 36 60 / .25) 100%); }
}
.sz-banner__text { display: flex; gap: 1rem; align-items: flex-start; max-width: 44rem; }
.sz-banner h1 { color: #fff; margin: 0; }
.sz-banner p { margin: .6rem 0 0; font-size: 1.12rem; color: var(--zs-on-brand); }

/* Situation tiles on the home page: photo + pictogram, each links to its route. */
.sz-tiles { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); list-style: none; margin: 0; padding: 0; }
.sz-tiles a { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 15rem; height: 100%; padding: 1rem 1.1rem; border-radius: var(--zs-radius); overflow: hidden; color: #fff; text-decoration: none; background: var(--zs-brand); }
.sz-tiles img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.sz-tiles a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgb(19 36 60 / .92) 0%, rgb(19 36 60 / .55) 55%, rgb(19 36 60 / .1) 100%); }
.sz-tiles a:hover img { transform: scale(1.04); }
.sz-tiles a:focus-visible { outline: 3px solid var(--zs-highlight); outline-offset: 3px; }
.sz-tiles .sz-picto { margin-bottom: auto; }
.sz-tiles strong { display: block; margin-top: 2.5rem; font: 800 1.3rem/1.15 var(--zs-font-display); }
.sz-tiles span:not(.sz-picto) { font-size: .92rem; opacity: .95; }

/* Compact situation picker with pictogram (guide pages). */
.sz-situations a { display: flex; gap: .75rem; align-items: flex-start; }
.sz-situations a .sz-picto { color: #fff; }

/* Steps with pictograms. */
.sz-steps { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); counter-reset: step; }
.sz-steps li { background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); padding: 1.1rem; }
.sz-steps .sz-step__when { display: block; margin: .8rem 0 .1rem; font-size: .85rem; font-weight: 700; color: var(--zs-muted); }
.sz-steps h3 { font-size: 1.2rem; }
.sz-steps p { margin: .3rem 0 0; color: var(--zs-muted); }
.sz-steps li.is-now .sz-step__when { display: block; width: fit-content; background: var(--zs-highlight); color: var(--zs-highlight-ink); padding: .05rem .45rem; border-radius: var(--zs-radius-sm); }

/* Pictogram in a types-table row header and on listing cards. */
.sz-types tbody th .sz-picto { margin-bottom: .45rem; }
.card__type { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--zs-ink); }

/* Trust block on the home page: seal + checked facts next to the explanation. */
.sz-trust { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 56rem) { .sz-trust { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3rem; } }
.sz-trust__facts { list-style: none; margin: 0; padding: 1.25rem; background: var(--zs-surface); border: 1px solid var(--zs-line); border-radius: var(--zs-radius); display: grid; gap: 1rem; }
.sz-trust__facts li { display: flex; gap: .8rem; align-items: flex-start; }
.sz-trust__facts strong { display: block; font-family: var(--zs-font-display); }
.sz-trust__facts span:not(.sz-picto) { color: var(--zs-muted); font-size: .95rem; }

/* Photo credits page. */
.sz-credits { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.sz-credits img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--zs-radius-sm); }
.sz-credits p { margin: .3rem 0 0; font-size: .9rem; }
label.check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; font-size: .9rem; margin: .75rem 0; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .95rem; } .legal th, .legal td { text-align: left; vertical-align: top; padding: .5rem .6rem; border-bottom: 1px solid var(--zs-line); } .legal th { background: var(--zs-surface-alt); }

/* ---------- Dark mode (design rule 8): same roles, own steps, AA contrast ---------- */
/* Brand blue stays the surface colour (header, hero, footer, picto tiles); text that used brand blue
   switches to a light blue via --sz-brand-text, because dark ink blue on a dark page fails contrast. */
:root { --sz-brand-text: var(--zs-brand); color-scheme: light dark; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --zs-bg: #0e141c; --zs-surface: #16202c; --zs-surface-alt: #1d2a3a;
    --zs-ink: #e6ebf1; --zs-muted: #a9b4c1; --zs-line: #2f3d50;
    --zs-brand: #1d3557; --zs-brand-deep: #0a121d; --zs-on-brand: #f1f4f8;
    --zs-accent: #a9c7ee; --zs-accent-hover: #c6dbf5; --zs-accent-ink: #0e141c;
    --zs-ok: #74d39a; --zs-warn: #eab863; --zs-error: #f39a9a;
    --sz-brand-text: #a9c7ee;
  }
  :root:not([data-theme="light"]) h1, :root:not([data-theme="light"]) h2, :root:not([data-theme="light"]) h3 { color: var(--sz-brand-text); }
  :root:not([data-theme="light"]) a { color: var(--sz-brand-text); }
  :root:not([data-theme="light"]) a:hover { color: var(--zs-accent-hover); }
  :root:not([data-theme="light"]) .zs-header a, :root:not([data-theme="light"]) .zs-footer a, :root:not([data-theme="light"]) .sz-credit a,
  :root:not([data-theme="light"]) .sz-tiles a, :root:not([data-theme="light"]) .sz-situations a, :root:not([data-theme="light"]) .card h3 a,
  :root:not([data-theme="light"]) .sz-alert__title a { color: inherit; }
  :root:not([data-theme="light"]) .btn, :root:not([data-theme="light"]) .zs-btn--primary { color: var(--zs-accent-ink); }
  :root:not([data-theme="light"]) .sz-hero .zs-btn--primary { color: var(--zs-highlight-ink); }
  :root:not([data-theme="light"]) .sz-hero .zs-btn--ghost { color: #fff; }
  :root:not([data-theme="light"]) .btn.secondary, :root:not([data-theme="light"]) .linkbtn, :root:not([data-theme="light"]) .plans .amount { color: var(--sz-brand-text); }
  :root:not([data-theme="light"]) .sz-hero h1, :root:not([data-theme="light"]) .sz-banner h1 { color: #fff; }
  :root:not([data-theme="light"]) .sz-situations a:hover, :root:not([data-theme="light"]) .sz-situations a[aria-current],
  :root:not([data-theme="light"]) .plans .card.highlight, :root:not([data-theme="light"]) input:focus,
  :root:not([data-theme="light"]) select:focus, :root:not([data-theme="light"]) textarea:focus { border-color: var(--sz-brand-text); }
  :root:not([data-theme="light"]) .sz-picto { --picto-bg: #2c4f7c; }
  :root:not([data-theme="light"]) .sz-picto--light { --picto-bg: #f1f4f8; color: #1d3557; }
  :root:not([data-theme="light"]) .sz-alert { box-shadow: 0 6px 20px rgb(0 0 0 / .45); }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .zs-footer h2 { color: var(--zs-on-brand); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sz-route__rail::before { background: #4a5d75; } :root:not([data-theme="light"]) .sz-route__rail::after { border-color: var(--sz-brand-text); } }
