/* ============================================================
   hardloopschoenwijzer.nl — loads after /assets/css/family.css (shared neutrals, Figtree, pebble radii, lockup).
   The design page ../design/system.html loads both files, so it cannot drift from the site.
   ============================================================ */

/* ACCENT: oker. 5.6 on papier, white on oker 6.2, on soft 5.2. Dark ground: #e3c27a. */
:root {
  --accent: #7b5c0e;
  --accent-soft: #f4ebd3;
  --accent-tint: #e3c27a;
  --accent-text: #ffffff;
  --ok: #2d7048;
  --warn: #8a5a10;
  --warn-soft: #f6ecd9;
}

/* ============================================================
   BASE
   ============================================================ */
h1 { text-wrap: balance; font-size: var(--text-2xl); font-weight: var(--w-head); line-height: 1.12; margin: 0; letter-spacing: -0.022em; }
h2 { font-size: var(--text-l); font-weight: var(--w-head); line-height: 1.2; margin: 0 0 10px; letter-spacing: -0.01em; }
h3 { font-size: var(--text-m); line-height: 1.3; margin: 0; font-weight: var(--w-strong); }
p { margin: 0 0 var(--space-3); max-width: 65ch; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
.soft, .hint { font-size: var(--text-s); color: var(--text-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: var(--surface); padding: 8px; z-index: 9; }

/* ============================================================
   FRAME
   ============================================================ */
main { padding: 10px 16px var(--space-5); }
.site-footer p { margin: 0 0 var(--space-2); max-width: 75ch; }

/* ============================================================
   COMPONENTS
   ============================================================ */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); font: var(--w-strong) var(--text-sm)/1 var(--font); padding: 0 18px; border-radius: var(--radius-pill); border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--accent); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { filter: brightness(1.1); }
input[type=search], select { font: var(--text-m) var(--font); min-height: var(--tap); padding: 0.5em 0.9em; border: 1px solid var(--line); border-radius: var(--radius-field); background: var(--surface); color: var(--text); width: 100%; }
input[type=search]:hover, select:hover { border-color: #d9c7b5; }
.badge { display: inline-block; font-size: var(--text-2xs); font-weight: var(--w-strong); padding: 0 0.55em; line-height: 1.6; border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-text); margin-left: 0.3em; }
/* pill: 36px visual, 44px hit area */
.pill { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface); color: var(--text); font-size: var(--text-xs); font-weight: var(--w-label); text-decoration: none; margin: 0 var(--space-1) var(--space-1) 0; }
.pill::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill-x { gap: 0.35em; background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: var(--w-strong); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; }
.chip > span { position: relative; display: inline-flex; align-items: center; gap: 0.4em; min-height: 40px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--bg); font-size: var(--text-s); font-weight: var(--w-label); cursor: pointer; }
.chip > span::before { content: ""; position: absolute; left: 0; right: 0; top: -2px; bottom: -2px; }
.chip > span:hover { color: var(--accent); }
.chip input:checked + span { background: var(--accent); color: var(--accent-text); }
.chip input:checked + span .count { color: inherit; opacity: .85; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.chip.zero > span { opacity: .45; }
.count { font-size: var(--text-xs); font-weight: 500; color: var(--text-soft); font-variant-numeric: tabular-nums; }

/* ============================================================
   HOME
   ============================================================ */
.hero { padding: 0; max-width: 640px; }
.hero h1 { margin-bottom: var(--space-2); }
.lead { font-size: var(--text-m); color: var(--text-soft); margin-bottom: 0; }
/* search: one pill with the button inside */
.bigsearch, .searchbar { display: flex; align-items: center; gap: var(--space-2); background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 5px 5px 5px 18px; }
.bigsearch { margin-top: 20px; }
.bigsearch input, .searchbar input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0; min-height: var(--tap); font-size: var(--text-sm); border-radius: 0; }
.bigsearch input:hover, .searchbar input:hover { border: 0; }
.bigsearch input::placeholder, .searchbar input::placeholder { color: var(--text-soft); }
.bigsearch input:focus-visible, .searchbar input:focus-visible { outline: none; }
.bigsearch:focus-within, .searchbar:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.bigsearch .btn, .searchbar .btn { flex: none; min-height: var(--tap); }
.examples { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; max-width: none; }
.examples .soft { margin-right: 2px; font-size: var(--text-xs); }
.examples .pill { margin: 0; }
section + section { margin-top: 26px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); max-width: 760px; }
.tile-item { background: var(--surface); border-radius: var(--radius-tile); padding: 16px; display: grid; align-content: start; gap: 10px; }
.tile { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; color: var(--text); text-decoration: none; min-height: var(--tap); }
.tile-mark { grid-row: span 2; display: flex; }
.tile-name { font-weight: var(--w-head); font-size: 1.1875rem; line-height: 1.25; }
.tile:hover .tile-name { color: var(--accent); }
.tile-count { font-size: 1.5rem; font-weight: 800; color: var(--accent); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile-unit { font-size: var(--text-s); font-weight: var(--w-label); color: var(--text-soft); }
.tile-note { grid-column: 1 / -1; font-size: var(--text-xs); color: var(--text-soft); margin-top: 6px; }
.tile-links .pill { background: var(--accent-soft); border-color: transparent; color: var(--accent); }
.tile-links .pill:hover { background: var(--accent); color: var(--accent-text); }
.how { max-width: 65ch; }
.how ol { margin: 0 0 var(--space-3); padding-left: 1.2em; }
.how li { margin-bottom: var(--space-2); }
.how li::marker { color: var(--accent); font-weight: var(--w-strong); }
.disclosure { font-size: var(--text-xs); color: var(--text-soft); margin: var(--space-3) 0 0; }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.searchbar { margin-bottom: var(--space-4); max-width: 640px; }
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--space-4) var(--space-5); align-items: start; }
.filters { background: var(--surface); border-radius: var(--radius-tile); }
.filters > summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 18px; font-weight: var(--w-strong); cursor: pointer; list-style: none; }
.filters > summary::-webkit-details-marker { display: none; }
.filters > summary::after { content: ""; width: 0.5em; height: 0.5em; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.filters[open] > summary::after { transform: rotate(-135deg); }
.filters-body { padding: var(--space-3) 18px 18px; display: grid; gap: var(--space-4); border-top: 1px solid var(--line); }
.group { border: 0; padding: 0; margin: 0; min-width: 0; }
.group legend { font-weight: var(--w-strong); font-size: var(--text-sm); padding: 0; margin-bottom: var(--space-2); }
.seg { display: grid; gap: 2px; }
.seg-item { display: flex; justify-content: space-between; align-items: center; min-height: var(--tap); padding: 0 14px; border-radius: var(--radius-pill); color: var(--text); text-decoration: none; font-size: var(--text-sm); font-weight: 500; }
.seg-item:hover { background: var(--bg); }
.seg-item.on { background: var(--accent-soft); color: var(--accent); font-weight: var(--w-strong); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.field { display: grid; gap: var(--space-1); }
.field label { font-size: var(--text-xs); font-weight: var(--w-label); color: var(--text-soft); }
.filters select { background: var(--surface); border-color: var(--line-strong); }
.check { display: flex; align-items: center; gap: 0.6em; min-height: var(--tap); cursor: pointer; font-size: var(--text-sm); }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; flex: none; border: 2px solid var(--line-strong); border-radius: 6px; background: var(--surface) center / 12px 12px no-repeat; cursor: pointer; }
.check input:checked { background-color: var(--accent); border-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6 9.6 3.4' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.check:hover input:not(:checked) { border-color: var(--accent); }
.check-label { flex: 1; min-width: 0; }
.switch { font-weight: var(--w-label); font-size: var(--text-s); min-height: var(--tap); }
.group > .hint { margin: 0; }
.more > summary { cursor: pointer; font-size: var(--text-s); font-weight: var(--w-strong); color: var(--accent); min-height: var(--tap); display: flex; align-items: center; }
.apply { display: flex; align-items: center; gap: var(--space-3); }
.apply .btn { min-height: 52px; padding: 0 22px; font-size: var(--text-m); }
.apply .clear { display: inline-flex; align-items: center; min-height: var(--tap); font-size: var(--text-s); font-weight: var(--w-label); }
.results { min-width: 0; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; margin-bottom: var(--space-3); }
.results-head h2 { font-size: 1.625rem; margin: 0; }
.sortline { display: flex; align-items: center; gap: var(--space-1); font-size: var(--text-s); }
.sort { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--radius-pill); color: var(--text); text-decoration: none; font-weight: var(--w-label); }
.sort::before { content: ""; position: absolute; left: 0; right: 0; top: -4px; bottom: -4px; }
.sort:hover { background: var(--surface); }
.sort.on { background: var(--accent-soft); color: var(--accent); font-weight: var(--w-strong); }
.active { margin: 0 0 var(--space-2); max-width: none; }
.read { margin: 0 0 var(--space-3); }

/* cards: a pebble on vlak, image on a white well, brand, name, price, stock, shop pill. The whole card is the shop link. */
.cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-top: var(--space-3); }
.card { position: relative; background: var(--surface); border-radius: var(--radius-card); padding: 8px 8px 10px; display: flex; flex-direction: column; min-width: 0; }
.card-img { position: relative; aspect-ratio: 1 / 1; background: #fff; border-radius: var(--radius-img); overflow: hidden; }
.card-img img { position: absolute; inset: var(--space-2); width: calc(100% - 2 * var(--space-2)); height: calc(100% - 2 * var(--space-2)); object-fit: contain; }
.card-body { padding: 8px 6px 0; display: flex; flex-direction: column; gap: 0; flex: 1; }
.card p { margin: 0; }
.brandline.wrap { white-space: normal; min-height: 0; }
.brandline { font-size: var(--text-2xs); color: var(--text-soft); min-height: 1.3em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card h3 { font-size: var(--text-sm); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.sizes { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 12px; padding: 0; }
.sizes li { min-width: 28px; padding: 2px 7px; border-radius: var(--radius-pill); background: var(--bg); font-size: var(--text-2xs); font-weight: var(--w-label); line-height: 1.5; text-align: center; font-variant-numeric: tabular-nums; }
.sizes li.more { min-width: 0; padding: 2px 2px; background: none; color: var(--text-soft); font-weight: 500; }
.size-note { font-size: var(--text-xs); color: var(--text-soft); margin: 2px 0 0; }
.sizes li.on { background: var(--accent-soft); color: var(--accent); font-weight: var(--w-strong); }
.price-row { display: flex; align-items: baseline; gap: var(--space-2); margin-top: 4px !important; }
.price { font-size: 1.125rem; font-weight: var(--w-head); font-variant-numeric: tabular-nums; }
.price-row s { font-size: var(--text-xs); color: var(--text-soft); }
.deal { font-size: var(--text-2xs); font-weight: var(--w-strong); color: var(--accent); }
.stock { font-size: var(--text-2xs); font-weight: var(--w-label); display: flex; align-items: center; gap: 0.45em; margin: 6px 0 10px !important; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.stock-ok { color: var(--ok); }
.stock-unknown { color: var(--warn); }
.shop { display: flex; align-items: center; justify-content: center; min-height: 42px; margin: auto -6px 0; border-radius: var(--radius-pill); background: var(--accent-soft); font-size: var(--text-s); font-weight: var(--w-strong); color: var(--accent); text-decoration: none; }
.shop::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-card); }
.card:hover .shop { background: var(--accent); color: var(--accent-text); }
.shop:focus-visible { outline: none; }
.card:has(.shop:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); margin: var(--space-4) 0 0; }
.pg { display: inline-flex; align-items: center; justify-content: center; min-width: var(--tap); min-height: var(--tap); padding: 0 0.9em; border-radius: var(--radius-pill); background: var(--surface); color: var(--text); text-decoration: none; font-weight: var(--w-label); font-variant-numeric: tabular-nums; }
.pg:hover { color: var(--accent); }
.pg.on { background: var(--accent); color: var(--accent-text); }
.gap { padding: 0 var(--space-1); color: var(--text-soft); }

.empty { background: var(--surface-soft); border-radius: var(--radius-tile); padding: var(--space-4) 20px; margin-top: var(--space-3); }
.empty h2 { margin-bottom: var(--space-2); }
.help { margin: 0; padding-left: 1.2em; }
.help li { margin-bottom: var(--space-2); max-width: 65ch; }

/* ============================================================
   CATEGORY PAGES
   ============================================================ */
.crumbs { margin: 0 0 var(--space-1); font-size: var(--text-s); color: var(--text-soft); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; }
.crumbs li { display: flex; align-items: center; }
.crumbs li + li::before { content: "/"; margin: 0 0.55em; color: var(--text-soft); opacity: .6; }
.crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--text-soft); }
.crumbs a:hover { color: var(--accent); }
.crumbs [aria-current] { color: var(--text); font-weight: var(--w-label); }
.cat-head { max-width: 760px; margin-bottom: var(--space-3); }
.cat-head h1 { margin-bottom: var(--space-2); }
.cat-head .lead { margin-bottom: var(--space-3); }
.cat-intro { margin: 0; }
.pills.kenmerken { margin: 0 0 var(--space-4); }
.cat-more { max-width: 65ch; margin-top: var(--space-5); }
.cat-more h2 { margin-bottom: var(--space-2); }
.cat-more p { margin-bottom: var(--space-2); }
.results > .sortline { margin-bottom: var(--space-2); flex-wrap: wrap; }
.check-link { color: var(--text); text-decoration: none; }
.check-link:hover .check-label { text-decoration: underline; text-underline-offset: 3px; }
.fixed { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.fixed .pill { margin: 0; }
.legend-s { flex: 0 0 100%; margin: 0; font-weight: var(--w-strong); font-size: var(--text-sm); }
.related { margin-top: var(--space-5); }
.related h2 { font-size: var(--text-m); margin-bottom: var(--space-2); }
.related h2:not(:first-child) { margin-top: var(--space-4); }
.pills, .tile-links { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.pills .pill, .tile-links .pill { margin: 0; }
.pill .count { margin-left: 0.45em; }
.results > .cards:first-child { margin-top: 0; }
.results > .sortline + .cards { margin-top: var(--space-2); }
@media (min-width: 900px) { .cat-head h1, .hero h1 { font-size: 2.25rem; } }

@media (min-width: 900px) {
  main { padding-top: var(--space-4); }
  .filters > summary { display: none; }
  .filters { position: sticky; top: var(--space-3); max-height: calc(100vh - 2 * var(--space-3)); overflow-y: auto; }
  .filters .filters-body { border-top: 0; padding-top: 18px; }
}
@media (max-width: 899px) {
  .layout { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .apply { flex-direction: column; align-items: stretch; text-align: center; }
  .apply .clear { justify-content: center; }
  .results-head { flex-direction: column; align-items: flex-start; gap: var(--space-1); }
}

/* method page */
.prose { max-width: 65ch; }
.prose h1 { margin-bottom: var(--space-2); }
.prose h2 { margin-top: var(--space-4); }
.prose .btn { margin-top: var(--space-2); }

/* guide page: data table, card block */
.table-wrap { overflow-x: auto; margin: var(--space-2) 0; }
.data-table { width: 100%; border-collapse: collapse; font-size: var(--text-m); }
.data-table th, .data-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-weight: var(--w-strong); color: var(--text-soft); font-size: var(--text-xs); }
.data-table tbody th { font-weight: var(--w-label); white-space: nowrap; }
.data-table.counts td, .data-table.counts th { font-variant-numeric: tabular-nums; vertical-align: middle; }
.guide h3 { font-size: var(--text-m); margin: var(--space-3) 0 var(--space-1); }
.guide-cards { margin-top: var(--space-5); }
.guide-cards h2 { margin-bottom: var(--space-1); }
.guide-cards .cards { margin-top: var(--space-2); }
.prose .soft, .explain figcaption { color: var(--text-soft); font-size: var(--text-m); }
.prose .lead { margin-bottom: var(--space-3); }
.prose ol { max-width: 65ch; padding-left: 1.4em; margin: 0 0 var(--space-3); }
.prose li { margin-bottom: var(--space-2); }
@media (max-width: 640px) { .data-table tbody th { white-space: normal; } .data-table th, .data-table td { padding: 10px 8px; } }

/* Uitleg-illustratie (geanimeerd): the SVG file carries the final frame; .armed (set by the inline script right after the figure) rewinds it, .play runs it once (about 2 s). */
.explain { margin: var(--space-3) 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-tile); padding: var(--space-3); }
.explain svg { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; }
.explain figcaption { margin-top: var(--space-2); }
.explain.armed .grow { transform: none; }
.explain.armed .t0 { opacity: 1; }
.explain.armed .t1 { opacity: 0; }
.explain.armed.play .grow { transform: scaleX(1.05); transition: transform 1.5s ease-in-out .3s; }
.explain.armed.play .t0 { opacity: 0; transition: opacity .4s ease 1.2s; }
.explain.armed.play .t1 { opacity: 1; transition: opacity .5s ease 1.6s; }
@media (prefers-reduced-motion: reduce) {
  .explain.armed .grow { transform: scaleX(1.05); transition: none; }
  .explain.armed .t0 { opacity: 0; transition: none; }
  .explain.armed .t1 { opacity: 1; transition: none; }
}

/* Black Friday: bol's own list price under the price. Plain text, no badge, no red, no hype. */
.advice { margin: 4px 0 0; font-size: var(--text-2xs); line-height: 1.35; color: var(--text-soft); }
.advice-pct { display: block; color: var(--text); font-weight: var(--w-label); }
.bf-note { background: var(--surface-soft); border-radius: var(--radius-tile); padding: var(--space-3); font-size: var(--text-s); max-width: 65ch; margin: 0 0 var(--space-3); }
.bf-note p { margin: 0 0 var(--space-2); }
.bf-note p:last-child { margin-bottom: 0; }
.bf-size { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-3); margin: 0 0 var(--space-3); }
.bf-size label { font-weight: var(--w-strong); font-size: var(--text-sm); }
.bf-size select { width: auto; min-width: 140px; max-width: 100%; flex: 1 1 140px; }
.bf-size .hint { flex: 0 0 100%; max-width: none; margin: 0; }
.more-cards > summary { margin: var(--space-3) 0 0; cursor: pointer; list-style: none; }
.more-cards > summary::-webkit-details-marker { display: none; }
.more-cards[open] > summary { margin-bottom: var(--space-1); }
.more-cards .when-open, .more-cards[open] .when-closed { display: none; }
.more-cards[open] .when-open { display: inline; }
.bf-faq h3 { font-size: var(--text-m); margin: var(--space-3) 0 var(--space-1); }
.results > h2 { margin: var(--space-3) 0 0; }

/* ============================================================
   TEST: five questions in one pebble, up to three picks with one reason line each; the link box that points to it
   ============================================================ */
.test-head { max-width: 640px; margin-bottom: var(--space-3); }
.test-head h1 { margin-bottom: var(--space-2); }
.quiz { background: var(--surface); border-radius: var(--radius-panel); box-shadow: var(--shadow-pebble); padding: 18px 16px 16px; display: grid; gap: var(--space-3); }
.quiz .field { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz .field > legend, .quiz .qlabel { font-size: var(--text-m); font-weight: var(--w-head); color: var(--text); padding: 0; margin: 0 0 var(--space-2); }
.quiz .field > legend .soft { font-weight: 500; }
.quiz .chip > span { min-height: 44px; font-size: var(--text-sm); }
.quiz .impact { font-weight: 400; font-size: .85em; opacity: .75; }
.quiz .hint { margin: var(--space-2) 0 0; max-width: 60ch; }
.quiz select { max-width: 280px; }
.btn-block { width: 100%; min-height: 52px; font-size: var(--text-m); }
.quiz-details > summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 48px; padding: 0 6px 0 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill); cursor: pointer; list-style: none; font-size: var(--text-sm); }
.quiz-details > summary::-webkit-details-marker { display: none; }
.summary-text b { color: var(--accent); font-weight: var(--w-strong); }
.summary-edit { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--accent-soft); color: var(--accent); font-weight: var(--w-strong); font-size: var(--text-s); flex: none; }
.quiz-details .when-open, .quiz-details[open] .when-closed { display: none; }
.quiz-details[open] .when-open { display: inline; }
.quiz-details .quiz { margin-top: 10px; }
.notice { background: var(--surface-soft); border-radius: var(--radius-tile); padding: var(--space-3); font-size: var(--text-s); margin-top: var(--space-3); }
.notice.pending { margin: 0 0 var(--space-3); max-width: 640px; box-sizing: border-box; }
#keuzes { margin-top: var(--space-4); }
.picks { display: grid; gap: var(--space-3); grid-template-columns: minmax(0, 1fr); margin-top: var(--space-3); }
.pick { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.pick .card { flex: 1; }
.pick-reason { margin: 4px 0 12px !important; max-width: none; font-size: var(--text-s); color: var(--text-soft); }
.pick-note { max-width: 65ch; }
.more-links { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: var(--space-4) 0 0; max-width: none; }
@media (min-width: 700px) { .picks { grid-template-columns: repeat(3, minmax(0, 1fr)); } .quiz, .quiz-details { max-width: 640px; } }
.pick .card-img { aspect-ratio: 3 / 2; } /* a flatter well keeps the reason line near the fold */
@media (max-width: 699px) { .pick .card-img { aspect-ratio: 2 / 1; } }
@media (max-width: 599px) { .more-links { flex-direction: column; } .more-links .btn { width: 100%; min-height: 52px; font-size: var(--text-m); } }
/* link box: a whole-block link to the test, in accent-soft; the only box of its kind on a page */
.test-box { display: grid; gap: 4px; max-width: 640px; margin: var(--space-3) 0; padding: 16px 18px; border-radius: var(--radius-tile); background: var(--accent-soft); color: var(--text); text-decoration: none; }
.test-box:hover { outline: 2px solid var(--accent); }
.test-box:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.test-box-title { font-size: 1.1875rem; font-weight: var(--w-head); line-height: 1.25; color: var(--accent); }
.test-box-text { font-size: var(--text-m); }
.test-box-go { display: inline-flex; align-items: center; justify-self: start; min-height: var(--tap); margin-top: 4px; padding: 0 18px; border-radius: var(--radius-pill); background: var(--accent); color: var(--accent-text); font-weight: var(--w-strong); font-size: var(--text-sm); }
.related .test-box { margin-top: 0; }

/* ============================================================
   VOET METEN: stepper with a line drawing per step, the foot length field and the size per brand
   ============================================================ */
/* Stappen: without script every step shows, as a numbered list. With script (.js) one step shows at a time. From 760 px all steps share one grid cell, so the height never jumps; below that the card is as tall as its own step. */
.stepper { max-width: 780px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.step { background: var(--surface); border-radius: var(--radius-panel); box-shadow: var(--shadow-pebble); padding: 12px 12px 16px; display: grid; gap: var(--space-3); align-content: start; min-width: 0; }
.step-art { margin: 0; background: var(--bg); border-radius: var(--radius-img); padding: 6px; }
.step-body { padding: 0 6px; }
.step-body h2 { display: flex; align-items: flex-start; gap: 10px; margin-bottom: var(--space-2); }
.step-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.6em; height: 1.6em; margin-top: -0.1em; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: var(--text-m); font-variant-numeric: tabular-nums; }
.step-body ul { margin: 0; padding-left: 1.2em; max-width: 60ch; }
.step-body li { margin-bottom: var(--space-2); }
.step-body li:last-child { margin-bottom: 0; }
.step-body li::marker { color: var(--accent); }
.step-body a { color: inherit; }
.stepper.js .steps { gap: 0; }
.stepper.js .step { display: none; }
.stepper.js .step.on { display: grid; }
.step-nav[hidden] { display: none; }
.step-nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-top: var(--space-3); }
.step-nav .btn { min-width: 104px; min-height: 48px; }
.step-nav .btn:disabled { opacity: .4; cursor: default; border-color: var(--line); }
.step-dots { display: flex; }
.step-dot { position: relative; width: 28px; height: var(--tap); padding: 0; border: 0; background: none; cursor: pointer; }
.step-dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: var(--radius-pill); background: var(--line-strong); opacity: .55; transition: width .2s ease, margin .2s ease; }
.step-dot:hover::before { opacity: 1; }
.step-dot[aria-current]::before { width: 22px; margin-left: -11px; background: var(--accent); opacity: 1; }
@media (min-width: 760px) {
  .step { grid-template-columns: minmax(0, 11fr) minmax(0, 10fr); align-items: center; gap: var(--space-4); padding: 14px 20px 14px 14px; }
  .step-body { padding: 0; }
  .stepper.js .step { display: grid; grid-area: 1 / 1; visibility: hidden; }
  .stepper.js .step.on { visibility: visible; }
}
@media (max-width: 420px) { .step-nav .btn { min-width: 0; padding: 0 16px; } }

/* Stap-illustratie: foot from above. Ink lines, oker for what you do (pen, marks, ruler, the foot that counts), soft labels. The SVG is the final frame. */
.ms { display: block; width: 100%; height: auto; font-family: var(--font); }
.ms text { fill: var(--text-soft); font-size: 15px; font-weight: 600; }
.ms .ms-num { fill: var(--accent); font-size: 19px; font-weight: 750; }
.ms-wall { fill: var(--line); }
.ms-edge { fill: none; stroke: var(--text); stroke-width: 3.5; stroke-linecap: round; }
.ms-paper { fill: var(--surface); stroke: var(--text); stroke-opacity: .22; stroke-width: 2; }
.ms-foot { fill: var(--bg); stroke: var(--text); stroke-width: 3.5; stroke-linejoin: round; }
.ms-foot.ms-hi { fill: var(--accent-soft); stroke: var(--accent); }
.ms-ghost { fill: none; stroke: var(--text); stroke-opacity: .28; stroke-width: 2.5; stroke-dasharray: 3 7; stroke-linecap: round; }
.ms-mark { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; }
.ms-draw { stroke-dasharray: 1; }
.ms-nib { fill: var(--text); }
.ms-barrel { fill: var(--accent); }
.ms-lead, .ms-guide, .ms-base { fill: none; stroke: var(--text-soft); stroke-width: 2; stroke-linecap: round; }
.ms-guide { stroke-dasharray: 2 6; }
.ms-base { stroke: var(--text); stroke-opacity: .25; stroke-width: 3; }
.ms-ruler { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 3; }
.ms-tick { fill: none; stroke: var(--accent); stroke-width: 2; }
.ms-grow { transform-box: fill-box; transform-origin: left center; }
@media (prefers-reduced-motion: no-preference) {
  .step.play .ms-slide { animation: ms-slide .9s cubic-bezier(.3, .7, .2, 1) .25s both; }
  .step.play .ms-draw { animation: ms-draw .7s ease-in-out .35s both; }
  .step.play .ms-pen { animation: ms-pen .7s ease-in-out .35s both; }
  .step.play .ms-grow { animation: ms-grow 1s cubic-bezier(.3, .7, .2, 1) .25s both; }
  .step.play .ms-fade { animation: ms-fade .4s ease 1.1s both; }
  .step.play .ms-hi { animation: ms-hi .6s ease .5s both; }
  .step.play .ms-hi ~ .ms-fade { animation-delay: .7s; }
}
@keyframes ms-slide { from { transform: translateX(30px); } }
@keyframes ms-draw { from { stroke-dashoffset: 1; } }
@keyframes ms-pen { from { transform: translateY(-30px); } }
@keyframes ms-grow { from { transform: scaleX(0); } }
@keyframes ms-fade { from { opacity: 0; } }
@keyframes ms-hi { from { fill: var(--bg); stroke: var(--text); } }

/* Voetlengte: one field with its unit, and the answer under it in the same pebble. */
.size-tool { margin-top: var(--space-4); }
.size-tool .quiz h2 { margin-bottom: var(--space-2); }
.size-tool .quiz h2 label { font: inherit; color: inherit; }
.stepper, .size-tool { scroll-margin-top: var(--space-2); }
.cm-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.cm-field { display: inline-flex; align-items: center; gap: 6px; min-height: 52px; padding: 0 16px 0 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-field); background: var(--surface); font-weight: var(--w-label); color: var(--text-soft); }
.cm-field:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.cm-field input { width: 4.6em; min-height: 44px; padding: 0 0 0 12px; border: 0; background: none; color: var(--text); font: var(--w-head) 1.375rem/1 var(--font); font-variant-numeric: tabular-nums; }
.cm-field input::placeholder { color: var(--text-soft); opacity: .5; font-weight: 500; }
.cm-field input:focus-visible { outline: none; }
.cm-row .btn { min-height: 52px; font-size: var(--text-m); }
.size-result:empty { display: none; }
.size-result { border-top: 1px solid var(--line); padding-top: var(--space-3); }
.size-result h3 { margin-bottom: var(--space-2); }
.size-result .notice { margin: 0; }
.brand-sizes { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: 6px; }
.brand-sizes li { background: var(--bg); border-radius: var(--radius-field); padding: 10px 14px; }
.brand-sizes b { font-size: 1.0625rem; font-weight: var(--w-head); margin-right: 4px; white-space: nowrap; }
.brand-sizes .soft a { color: inherit; }
.size-go { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0 0 var(--space-2); max-width: none; }
.size-go .btn { min-height: 52px; font-size: var(--text-m); line-height: 1.25; padding: 8px 22px; text-align: center; }
.size-result p:last-child { margin-bottom: 0; }
.size-tool .prose ul { max-width: 65ch; padding-left: 1.2em; margin: 0 0 var(--space-3); }
@media (max-width: 599px) { .size-go { flex-direction: column; } .cm-row .btn { flex: 1; } .brand-sizes .soft { display: block; } }
@media (min-width: 700px) { .size-tool .quiz { max-width: 780px; padding: 20px 20px 18px; } }

/* link row: a slim whole-row link on a page that already has its link box, or inside a form */
.link-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px var(--space-3); max-width: 640px; margin: var(--space-3) 0; padding: 8px 8px 8px 16px; border-radius: var(--radius-tile); background: var(--accent-soft); color: var(--text); text-decoration: none; font-weight: var(--w-label); }
.link-row:hover { outline: 2px solid var(--accent); }
.link-row-go { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border-radius: var(--radius-pill); background: var(--surface); color: var(--accent); font-weight: var(--w-strong); font-size: var(--text-s); }
.quiz .link-row { margin: var(--space-2) 0 0; max-width: 420px; }

/* Insluiten: the compact tool for other sites (/embed/voet-meten) and the code box on /voet-meten-insluiten. */
.embed { max-width: 640px; margin: 0 auto; padding: var(--space-3) 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-tile); box-sizing: border-box; }
.embed h1 { font-size: var(--text-l); margin-bottom: var(--space-2); }
.embed-steps { margin: 0 0 var(--space-3); padding-left: 1.4em; display: grid; gap: 4px; max-width: none; }
.embed-steps li { padding-left: 4px; }
.embed .cm-row { margin-bottom: var(--space-2); }
.embed .hint { margin: 0 0 var(--space-3); }
.embed .size-result { margin-bottom: var(--space-3); }
.embed-ad { margin: 0 0 var(--space-1); }
.embed-go { display: grid; gap: 2px; margin: 0; max-width: none; }
.embed-go a { display: flex; align-items: center; min-height: 44px; font-weight: var(--w-strong); color: var(--accent); }
.embed .embed-credit { margin: 0 0 var(--space-2); padding: var(--space-2) 0 0; }
.embed-credit { margin: var(--space-3) 0 0; padding-top: var(--space-2); border-top: 1px solid var(--line); font-size: var(--text-s); color: var(--text-soft); text-align: center; max-width: none; }
.embed-credit a { color: var(--accent); font-weight: var(--w-label); }
.code-box { margin: 0 0 var(--space-3); max-width: 720px; }
.code-box h3 { margin-bottom: 6px; }
.code-box .code-row { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--space-2); }
.code-box pre { flex: 1 1 280px; min-width: 0; margin: 0; padding: 12px 14px; background: var(--surface-soft); border-radius: var(--radius-field); overflow-x: auto; font: 500 .8125rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--text); white-space: pre; }
.code-box .btn { min-height: 48px; align-self: flex-start; }
.code-box .hint { margin: 6px 0 0; }
.embed-preview { max-width: 720px; margin: 0 0 var(--space-4); padding: var(--space-3); background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius-panel); }
.embed-preview > .soft { margin: 0 0 var(--space-2); }
.embed-preview iframe { display: block; width: 100%; border: 0; }
.embed-facts { max-width: 65ch; padding-left: 1.2em; margin: 0 0 var(--space-3); display: grid; gap: 6px; }
