/*
 * Wijkspeurtocht signature ("the route you walk"). Load after kit.css + themes/wijkspeurtocht.css.
 * One drawing runs through the whole page: a dashed route line (--ws-route) with numbered amber stops (--ws-dot).
 * Elements: .ws-route (rail), .ws-route-break (section connector), .ws-dot, .ws-steps (how it works),
 * .ws-card (printed task card with tear-off stub + letter box), .ws-word (secret word), .ws-picto tiles,
 * .ws-hero (photo as <img> with route overlay + address form), .ws-themes (theme choice).
 * Dashes are drawn with repeating gradients so every line has the same rhythm.
 */

/* ---------- Pictogram tile (sprite: icons/wijkspeurtocht/sprite.svg) ---------- */
.ws-picto { --picto-bg: var(--zs-picto); display: inline-grid; place-items: center; flex: none; width: 3rem; height: 3rem; background: var(--picto-bg); color: #fff; border-radius: 14px; }
.ws-picto svg { width: 80%; height: 80%; }
.ws-picto--sm { width: 2.2rem; height: 2.2rem; border-radius: 10px; }
.ws-picto--lg { width: 4.25rem; height: 4.25rem; border-radius: 18px; }
.ws-picto--piraten { --picto-bg: #1f6f8b; }
.ws-picto--detective { --picto-bg: #3d4b5a; }
.ws-picto--sprookjes { --picto-bg: #6b4d96; }
.ws-picto--feest { --picto-bg: #a8346b; }
.ws-picto--sinterklaas { --picto-bg: #a82a22; }
.ws-picto--amber { --picto-bg: var(--ws-dot); color: var(--zs-ink); }

/* ---------- Numbered stop ---------- */
.ws-dot { display: inline-grid; place-items: center; flex: none; width: var(--dot, 2.5rem); height: var(--dot, 2.5rem); border-radius: 50%; background: var(--ws-dot); color: var(--zs-ink); border: 3px solid var(--ws-route); box-shadow: 0 0 0 4px var(--ws-ring); font: 700 1.1rem/1 var(--zs-font-display); font-variant-numeric: tabular-nums; }
.ws-dot--sm { --dot: 2rem; font-size: .95rem; border-width: 2px; box-shadow: 0 0 0 3px var(--ws-ring); }

/* ---------- Route rail: vertical dashed line, children sit on it ---------- */
.ws-route { position: relative; }
.ws-route::before { content: ""; position: absolute; top: 0; bottom: 0; left: calc(var(--dot, 2.5rem) / 2 - 1.5px); width: 3px; background: repeating-linear-gradient(to bottom, var(--ws-route) 0 10px, transparent 10px 18px); }

/* ---------- Route break: zigzag connector between two sections (decorative) ---------- */
.ws-route-break { position: relative; height: 5.5rem; overflow: hidden; }
.ws-route-break::before, .ws-route-break::after, .ws-route-break i { content: ""; position: absolute; }
.ws-route-break::before { left: 15%; top: 0; height: 50%; width: 3px; background: repeating-linear-gradient(to bottom, var(--ws-route) 0 10px, transparent 10px 18px); }
.ws-route-break::after { left: 15%; right: 15%; top: calc(50% - 1.5px); height: 3px; background: repeating-linear-gradient(to right, var(--ws-route) 0 10px, transparent 10px 18px); }
.ws-route-break i { right: 15%; top: 50%; bottom: 0; width: 3px; background: repeating-linear-gradient(to bottom, var(--ws-route) 0 10px, transparent 10px 18px); }
.ws-route-break--flip::before { left: auto; right: 15%; }
.ws-route-break--flip i { right: auto; left: 15%; }
@media (max-width: 40rem) { .ws-route-break { height: 3.5rem; } .ws-route-break::before { left: 8%; } .ws-route-break::after { left: 8%; right: 8%; } .ws-route-break i { right: 8%; } .ws-route-break--flip::before { right: 8%; } .ws-route-break--flip i { left: 8%; } }

/* ---------- Step line: "how it works" on the route ---------- */
.ws-steps { --dot: 2.75rem; list-style: none; margin: 0; padding: 0; position: relative; }
.ws-steps::before { content: ""; position: absolute; top: 1.4rem; bottom: 1.4rem; left: calc(var(--dot) / 2 - 1.5px); width: 3px; background: repeating-linear-gradient(to bottom, var(--ws-route) 0 10px, transparent 10px 18px); }
.ws-steps > li { position: relative; padding: 0 0 2rem calc(var(--dot) + 1.1rem); min-height: var(--dot); }
.ws-steps > li:last-child { padding-bottom: 0; }
.ws-steps .ws-dot { position: absolute; left: 0; top: 0; }
.ws-steps h3 { display: flex; align-items: center; gap: .6rem; margin: .15rem 0 .25rem; font-size: 1.3rem; }
.ws-steps h3 .ws-picto { display: none; }
.ws-steps p { margin: 0; color: var(--zs-muted); max-width: 30rem; }
@media (min-width: 56rem) {
  .ws-steps::before { left: 50%; margin-left: -1.5px; }
  .ws-steps > li { width: 50%; padding: 0 calc(var(--dot) / 2 + 2rem) 2.5rem 0; text-align: right; }
  .ws-steps > li:nth-child(even) { margin-left: 50%; padding: 0 0 2.5rem calc(var(--dot) / 2 + 2rem); text-align: left; }
  .ws-steps > li .ws-dot { left: auto; right: calc(var(--dot) / -2); }
  .ws-steps > li:nth-child(even) .ws-dot { right: auto; left: calc(var(--dot) / -2); }
  .ws-steps > li p { margin-left: auto; }
  .ws-steps > li:nth-child(even) p { margin-left: 0; }
  .ws-steps h3 { justify-content: flex-end; }
  .ws-steps > li:nth-child(even) h3 { justify-content: flex-start; }
  .ws-steps h3 .ws-picto { display: inline-grid; order: 2; }
  .ws-steps > li:nth-child(even) h3 .ws-picto { order: 0; }
}

/* ---------- Task card: like the printed card, with perforated tear-off stub and letter box ---------- */
.ws-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.ws-card { position: relative; display: grid; grid-template-rows: 1fr auto; background: var(--zs-surface); border: 2px solid var(--ws-route); border-radius: 12px; box-shadow: 5px 5px 0 var(--ws-route); }
.ws-card__body { padding: 1.1rem 1.1rem 1rem 1.1rem; }
.ws-card__top { display: flex; align-items: center; gap: .7rem; margin-bottom: .6rem; }
.ws-card__top h3 { font-size: 1.15rem; }
.ws-card__body p { margin: 0 0 .5rem; }
.ws-card__where { font-size: .9rem; color: var(--zs-muted); margin: 0; }
.ws-card__stub { position: relative; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1.1rem; border-top: 3px dashed var(--ws-route); background: var(--zs-surface-alt); border-radius: 0 0 10px 10px; font-size: .9rem; }
/* Half-circle notches where the stub tears off. */
.ws-card__stub::before, .ws-card__stub::after { content: ""; position: absolute; top: -.95rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--ws-ring); border: 2px solid var(--ws-route); }
.ws-card__stub::before { left: calc(-.8rem - 2px); clip-path: inset(0 0 0 50%); }
.ws-card__stub::after { right: calc(-.8rem - 2px); clip-path: inset(0 50% 0 0); }
.ws-card__stub span { flex: 1; min-width: 0; }
.ws-letter { display: inline-grid; place-items: center; flex: none; width: 3rem; height: 3.3rem; background: #fff; border: 3px solid var(--ws-route); border-radius: 8px; font: 700 1.9rem/1 var(--zs-font-display); color: var(--zs-brand); box-shadow: inset 0 -5px 0 var(--zs-surface-alt); }
.ws-letter:empty { background: repeating-linear-gradient(135deg, #fff 0 6px, var(--zs-surface-alt) 6px 8px); }
.ws-cards .ws-card:nth-child(even) { transform: rotate(.5deg); }
.ws-cards .ws-card:nth-child(odd) { transform: rotate(-.4deg); }
@media (prefers-reduced-motion: reduce), print { .ws-cards .ws-card { transform: none; } }

/* ---------- Secret word: row of letter boxes ---------- */
.ws-word { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.ws-word .ws-letter { width: 2.6rem; height: 3rem; font-size: 1.6rem; }

/* ---------- Hero: copy + address form on the left, photo with route overlay on the right ---------- */
.ws-hero { padding: clamp(1.75rem, 4vw, 3.5rem) 0 clamp(2rem, 5vw, 4rem); }
.ws-hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 62rem) { .ws-hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3.5rem; } }
.ws-hero h1 { font-size: clamp(2.2rem, 3vw + 1.2rem, 3.7rem); line-height: 1.02; }
.ws-hero__lead { font-size: 1.2rem; margin: 1rem 0 1.5rem; max-width: 34rem; }
.ws-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 1.5rem 0 0; padding: 0; }
.ws-facts li { display: flex; align-items: center; gap: .55rem; font-size: .95rem; }
.ws-hero__photo { position: relative; margin: 0; border-radius: 22px 22px 22px 70px; overflow: hidden; background: var(--zs-surface-alt); border: 3px solid var(--ws-route); }
.ws-hero__photo img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }
.ws-hero__photo svg.ws-overlay { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ws-hero__photo .ws-overlay path { fill: none; stroke: #fff; stroke-width: 6; stroke-dasharray: 14 12; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.ws-hero__photo .ws-dot { position: absolute; translate: -50% -50%; --ws-ring: #fff; }
.ws-hero__credit { position: absolute; right: .6rem; bottom: .4rem; font-size: .72rem; color: #fff; background: rgb(15 58 74 / .75); padding: .1rem .45rem; border-radius: 4px; }
.ws-hero__note { position: absolute; left: .9rem; top: .9rem; max-width: 13rem; background: var(--zs-surface); border-radius: 10px; padding: .5rem .7rem; font-size: .88rem; box-shadow: 3px 3px 0 var(--ws-route); }
@media (max-width: 40rem) { .ws-hero__photo { border-radius: 18px 18px 18px 44px; } .ws-hero__note { display: none; } }

/* Address form */
.ws-form { background: var(--zs-surface); border: 2px solid var(--ws-route); border-radius: 18px; padding: 1.25rem; box-shadow: 6px 6px 0 var(--ws-route); display: grid; gap: 1rem; }
.ws-form label, .ws-form legend { display: block; font-weight: 700; font-size: .95rem; margin-bottom: .3rem; padding: 0; }
.ws-form fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.ws-form input[type=text], .ws-form select { width: 100%; min-height: 3rem; padding: .6rem .8rem; font: inherit; color: var(--zs-ink); background: #fff; border: 2px solid #9aa8a6; border-radius: 10px; }
.ws-form input:focus-visible, .ws-form select:focus-visible { outline: 3px solid var(--ws-route); outline-offset: 2px; border-color: var(--ws-route); }
.ws-form__row { display: grid; gap: 1rem; }
@media (min-width: 30rem) { .ws-form__row { grid-template-columns: 1fr 1fr; } }
.ws-form small { display: block; color: var(--zs-muted); font-size: .85rem; margin-top: .3rem; }

/* ---------- Theme choice: radios as tiles ---------- */
.ws-themes { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; grid-template-columns: repeat(auto-fit, minmax(5.6rem, 1fr)); }
.ws-themes label { position: relative; display: grid; justify-items: center; gap: .35rem; margin: 0; padding: .6rem .3rem; font-weight: 700; font-size: .85rem; text-align: center; background: #fff; border: 2px solid var(--zs-line); border-radius: 12px; cursor: pointer; }
.ws-themes input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ws-themes label:has(input:checked) { border-color: var(--ws-route); background: #eaf4f7; box-shadow: 0 0 0 2px var(--ws-route); }
.ws-themes label:has(input:focus-visible) { outline: 3px solid var(--ws-route); outline-offset: 2px; }
/* Larger version in a section: a link tile per theme. */
.ws-theme-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.ws-theme-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .15rem .9rem; align-items: start; }
.ws-theme-list .ws-picto { grid-row: span 2; }
.ws-theme-list strong { font: 700 1.2rem/1.2 var(--zs-font-display); color: var(--zs-brand); }
.ws-theme-list li > span:not(.ws-picto) { color: var(--zs-muted); font-size: .95rem; }

/* ---------- What you get: pictogram rows, uneven (not a card grid) ---------- */
.ws-gets { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.ws-gets li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .1rem 1rem; align-items: start; }
.ws-gets .ws-picto { grid-row: span 2; }
.ws-gets strong { font: 700 1.15rem/1.25 var(--zs-font-display); color: var(--zs-brand); }
.ws-gets li > span:not(.ws-picto) { color: var(--zs-muted); }

/* ---------- Hunt page: map + cards ---------- */
.ws-map { position: relative; margin: 0; background: #f6f1e4; border: 3px solid var(--ws-route); border-radius: 18px; overflow: hidden; aspect-ratio: 1 / 1; }
.ws-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ws-map .ws-dot { position: absolute; translate: -50% -50%; --dot: 2.2rem; font-size: 1rem; }
.ws-map .ws-start { position: absolute; translate: -50% -50%; }
.ws-map figcaption { position: absolute; left: .7rem; bottom: .6rem; right: .7rem; font-size: .82rem; color: var(--zs-muted); background: rgb(255 255 255 / .85); padding: .2rem .5rem; border-radius: 6px; }
.ws-hunt { display: grid; gap: 2rem; align-items: start; }
@media (min-width: 62rem) { .ws-hunt { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 3rem; } .ws-hunt__map { position: sticky; top: 1rem; } }
.ws-hunt .ws-cards { grid-template-columns: 1fr; }
@media (min-width: 40rem) and (max-width: 61.99rem) { .ws-hunt .ws-cards { grid-template-columns: 1fr 1fr; } }

/* ---------- Price: two options side by side, different weight ---------- */
.ws-prices { display: grid; gap: 1rem; align-items: stretch; }
@media (min-width: 44rem) { .ws-prices { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); } }
.ws-price { background: var(--zs-surface); border: 2px solid var(--zs-line); border-radius: 16px; padding: 1.25rem; display: grid; gap: .4rem; align-content: start; }
.ws-price--theme { border-color: var(--ws-route); box-shadow: 5px 5px 0 var(--ws-route); }
.ws-price h3 { font-size: 1.2rem; }
.ws-price b { font: 700 2.4rem/1 var(--zs-font-display); color: var(--zs-brand); font-variant-numeric: tabular-nums; }
.ws-price ul { margin: .25rem 0 .75rem; padding-left: 1.1rem; }
.ws-price li { margin-bottom: .2rem; }

/* FAQ */
.ws-faq details { border-bottom: 2px dashed var(--zs-line); padding: .9rem 0; }
.ws-faq summary { font: 700 1.1rem/1.3 var(--zs-font-display); cursor: pointer; color: var(--zs-brand); }
.ws-faq summary:focus-visible { outline: 3px solid var(--ws-route); outline-offset: 3px; }
.ws-faq details p { margin: .6rem 0 0; max-width: 42rem; }

.ws-tint { --ws-ring: var(--zs-surface-alt); }

@media print { .ws-route-break, .ws-hero__photo { display: none; } .ws-card { box-shadow: none; break-inside: avoid; } }
