/*
 * Spoedzoeker signature ("the calm helper in a hurry": time is the subject).
 * Load after kit.css + themes/spoedzoeker.css.
 * Elements: alert stack as hero (the product, no photo), freshness stamp, situation picker + route with deadlines,
 * housing types side by side (guide page). Works without JavaScript.
 */

/* ---------- Hero: copy left, alerts arriving right ---------- */
.sz-hero { background: var(--zs-brand); color: var(--zs-on-brand); padding: clamp(2rem, 5vw, 4rem) 0; }
.sz-hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 56rem) { .sz-hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 3.5rem; } }
.sz-hero h1 { color: #fff; font-size: clamp(2.2rem, 3vw + 1.2rem, 3.6rem); line-height: 1.02; }
.sz-hero__lead { font-size: 1.15rem; margin: 1rem 0 1.5rem; max-width: 34rem; color: var(--zs-on-brand); }
.sz-hero .zs-btn--primary { background: var(--zs-highlight); color: var(--zs-highlight-ink); }
.sz-hero .zs-btn--primary:hover { background: #ffe57f; }
.sz-hero .zs-btn--ghost { color: #fff; border-color: rgb(255 255 255 / .5); }
.sz-hero__note { font-size: .9rem; margin: .8rem 0 0; opacity: .85; }

/* ---------- Alert: one listing as it arrives on the phone ---------- */
.sz-alerts { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; max-width: 26rem; }
@media (min-width: 56rem) { .sz-alerts { justify-self: end; width: 100%; } }
.sz-alert { background: var(--zs-surface); color: var(--zs-ink); border-radius: var(--zs-radius); padding: .8rem .95rem; box-shadow: 0 6px 20px rgb(10 20 35 / .25); display: grid; gap: .15rem; }
.sz-alert__app { display: flex; justify-content: space-between; align-items: center; font-size: .78rem; color: var(--zs-muted); }
.sz-alert__app b { color: var(--zs-ink); }
.sz-alert__title { font: 700 1.05rem/1.25 var(--zs-font-display); }
.sz-alert__facts { font-size: .92rem; color: var(--zs-muted); font-variant-numeric: tabular-nums; }
.sz-alert__facts strong { color: var(--zs-ink); }
/* Older alerts sit behind, quieter. */
.sz-alerts li:nth-child(2) .sz-alert { opacity: .85; transform: scale(.97); }
.sz-alerts li:nth-child(n+3) .sz-alert { opacity: .65; transform: scale(.94); }

/* ---------- Freshness stamp: how long ago a listing appeared ---------- */
.sz-fresh { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; font-weight: 700; background: var(--zs-highlight); color: var(--zs-highlight-ink); padding: .1rem .5rem; border-radius: var(--zs-radius-sm); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sz-fresh::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.sz-fresh--old { background: var(--zs-surface-alt); color: var(--zs-muted); }
.sz-fresh--old::before { display: none; }

/* ---------- Situation picker: four ways in ---------- */
/* auto-fit: four in a row on a wide page, two in a narrow column (guide pages), one on phones. */
.sz-situations { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
.sz-situations a { display: block; height: 100%; padding: .8rem 1rem; border: 2px solid var(--zs-line); border-radius: var(--zs-radius); background: var(--zs-surface); color: var(--zs-ink); text-decoration: none; }
.sz-situations a strong { display: block; font: 700 1.1rem/1.2 var(--zs-font-display); }
.sz-situations a span { font-size: .9rem; color: var(--zs-muted); }
.sz-situations a:hover { border-color: var(--zs-brand); }
.sz-situations a[aria-current] { border-color: var(--zs-brand); background: var(--zs-surface-alt); }

/* ---------- Route: steps with a deadline in days ---------- */
.sz-route { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.sz-route li { display: grid; grid-template-columns: 8rem 1.25rem minmax(0, 1fr); gap: 0 .9rem; }
.sz-route__when { font: 700 1rem/1.5 var(--zs-font-display); text-align: right; }
.sz-route__rail { position: relative; }
.sz-route__rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--zs-line); }
.sz-route li:first-child .sz-route__rail::before { top: .75rem; }
.sz-route li:last-child .sz-route__rail::before { bottom: auto; height: .75rem; }
.sz-route__rail::after { content: ""; position: absolute; left: 50%; top: .4rem; width: .75rem; height: .75rem; margin-left: -.375rem; border-radius: 50%; background: var(--zs-surface); border: 2px solid var(--zs-brand); }
.sz-route li.is-now .sz-route__rail::after { background: var(--zs-highlight); border-color: var(--zs-ink); }
.sz-route__body { padding-bottom: 1.2rem; }
.sz-route__body h3 { font-size: 1.15rem; }
.sz-route__body p { margin: .15rem 0 0; color: var(--zs-muted); }
.sz-route__body a { font-weight: 600; }
@media (max-width: 30rem) {
  .sz-route li { grid-template-columns: 1.25rem minmax(0, 1fr); }
  .sz-route__when { grid-column: 2; text-align: left; font-size: .9rem; color: var(--zs-muted); }
  .sz-route__rail { grid-row: 1 / span 2; grid-column: 1; }
  .sz-route__body { grid-column: 2; }
}

/* ---------- Housing types side by side (guide page) ---------- */
.sz-types { width: 100%; border-collapse: collapse; background: var(--zs-surface); border-radius: var(--zs-radius); overflow: hidden; }
.sz-types th, .sz-types td { padding: .75rem .9rem; border-bottom: 1px solid var(--zs-line); text-align: left; vertical-align: top; }
.sz-types thead th { font-size: .85rem; color: var(--zs-muted); font-weight: 600; background: var(--zs-surface-alt); }
.sz-types tbody th { font: 700 1.05rem/1.25 var(--zs-font-display); min-width: 9rem; }
.sz-types tbody th small { display: block; font: 400 .85rem/1.35 var(--zs-font-body); color: var(--zs-muted); margin-top: .15rem; }
.sz-types td b { display: block; }
.sz-types td span { font-size: .88rem; color: var(--zs-muted); }
@media (max-width: 44rem) {
  .sz-types thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .sz-types, .sz-types tbody, .sz-types tr, .sz-types th, .sz-types td { display: block; }
  .sz-types tr { border-bottom: 1px solid var(--zs-line); padding: .5rem 0; }
  .sz-types th, .sz-types td { border: 0; padding: .3rem .9rem; }
  .sz-types td::before { content: attr(data-label); display: block; font-size: .78rem; color: var(--zs-muted); }
}
