/* Eozoe — a product landscape built from cards, not catalogue tiles. */

:root {
  --grond: #eee8dc;
  --grond-diep: #d8cfbe;
  --papier: #fffdf8;
  --papier-koel: #f3f0e7;
  --inkt: #292b26;
  --zacht: #756f64;
  --lijn: rgba(41, 43, 38, .16);
  --accent: #c96c43;
  --blauw: #596b60;
  --mos: #73806e;
  --goud: #a98249;
  /* De actuele start-/Island-kaart is het enige heldere navigatieanker. */
  --island-accent: #85d3dc;
  --island-rand: linear-gradient(180deg, #eaf9fa 0%, #bce7eb 52%, var(--island-accent) 100%);
  --wereldmuur: #a29d96;
  --boekkrul-lijn: rgba(117, 111, 100, .24);
  --veld-b: 230px;
  --veld-h: 325.83px;
  --veld-schaal: .958333;
  /* The world keeps its original warm ground. The card edge is intentionally
     only a paper-on-paper shift; product colour must remain the loudest signal. */
  --kaart-rand-diep: #f9f5ef;
  --kaart-rand: linear-gradient(180deg, #fffefa 0%, #fcfaf6 50%, var(--kaart-rand-diep) 100%);
  --duur: 760ms;
  --ease: cubic-bezier(.3, .72, .25, 1);
}

html[data-visual="editorial-air-v1"],
html[data-visual="editorial-route-v1"] {
  --grond: #eee8dc;
  --grond-diep: #d8cfbe;
}

html[data-visual="collected-flow-v1"] {
  --grond: #e3ddd1;
  --grond-diep: #cfc4b3;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--grond);
  color: var(--inkt);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 16% 13%, rgba(255, 255, 255, .76), transparent 36%),
    radial-gradient(ellipse at 82% 76%, rgba(115, 128, 110, .10), transparent 34%),
    radial-gradient(circle at 64% 19%, rgba(201, 108, 67, .055), transparent 23%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: radial-gradient(rgba(41, 43, 38, .22) .45px, transparent .6px);
  background-size: 5px 5px;
  mix-blend-mode: multiply;
}

button, select, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 500;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--inkt);
  color: white;
}
.skip-link:focus { top: 16px; }

/* ── Landscape ─────────────────────────────────────────────────────────── */

#veld {
  position: fixed;
  inset: 0;
  z-index: 1;
  cursor: grab;
  touch-action: none;
  overscroll-behavior: none;
  outline: none;
}
#veld.sleept { cursor: grabbing; }

.drag-hint {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 34;
  width: min(440px, calc(100vw - 40px));
  aspect-ratio: 1.42;
  padding: 15px;
  border-radius: 34px;
  background: rgba(252, 252, 250, .72);
  box-shadow: 0 5px 12px rgba(35, 31, 28, .10), 0 28px 70px rgba(35, 31, 28, .18);
  color: #514c46;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, calc(-50% + 8px)) scale(.985);
  transition: opacity 220ms ease, transform 260ms ease, visibility 0s linear 260ms;
  backdrop-filter: blur(9px) saturate(.94);
  -webkit-backdrop-filter: blur(9px) saturate(.94);
}
.drag-hint::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    repeating-linear-gradient(0deg, rgba(70, 50, 25, .022) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px);
}
.drag-hint-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 72px 1fr 72px;
  grid-template-rows: 66px 1fr 66px;
  align-items: center;
  justify-items: center;
  border: 1.5px dashed rgba(68, 58, 48, .36);
  border-radius: 23px;
}
.drag-hint-copy {
  grid-column: 2;
  grid-row: 2;
  text-align: center;
  white-space: nowrap;
}
.drag-hint-copy strong {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  font-family: 'Sora', sans-serif;
  font-size: clamp(24px, 3vw, 35px);
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1;
}
.drag-hint-copy strong i {
  color: rgba(81, 76, 70, .48);
  font-family: inherit;
  font-size: .72em;
  font-style: normal;
  font-weight: 400;
}
.drag-hint-copy small {
  display: block;
  margin-top: 13px;
  color: rgba(81, 76, 70, .72);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}
.drag-hint-arrow {
  width: 44px;
  height: 44px;
  fill: none;
  stroke: #746f68;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.drag-hint-arrow--up { grid-column: 2; grid-row: 1; }
.drag-hint-arrow--right { grid-column: 3; grid-row: 2; }
.drag-hint-arrow--down { grid-column: 2; grid-row: 3; }
.drag-hint-arrow--left { grid-column: 1; grid-row: 2; }
.drag-hint.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0s;
}
.drag-hint.is-touch {
  width: min(360px, calc(100vw - 28px));
  padding: 12px;
  border-radius: 29px;
}
.drag-hint.is-touch .drag-hint-frame {
  grid-template-columns: 58px 1fr 58px;
  grid-template-rows: 54px 1fr 54px;
  border-radius: 20px;
}
.drag-hint.is-touch .drag-hint-arrow { width: 36px; height: 36px; }
.drag-hint.is-touch .drag-hint-copy strong { gap: 9px; font-size: 25px; }
.drag-hint.is-touch .drag-hint-copy small {
  margin-top: 10px;
  font-size: 7px;
  letter-spacing: .08em;
}

#laag {
  position: absolute;
  left: 50%;
  top: 50%;
  will-change: transform;
}
#laag.is-toets-glide { transition: transform 260ms var(--ease); }
#laag.is-boundary-spring { transition: transform 360ms cubic-bezier(.22, .88, .30, 1); }

#laag::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1180px;
  height: 1180px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  border: 1px solid rgba(41, 43, 38, .055);
  border-radius: 50%;
  box-shadow:
    0 0 0 150px rgba(255, 255, 255, .05),
    0 0 0 151px rgba(41, 43, 38, .032),
    0 0 0 330px rgba(255, 255, 255, .025),
    0 0 0 331px rgba(41, 43, 38, .024);
}

html[data-visual="field-grid-v1"] #laag::before { display: none; }

#frontier-laag {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.world-boundary {
  position: absolute;
  z-index: 2;
  height: 60px;
  margin-top: -30px;
  background: rgba(162, 157, 150, .18);
  transform-origin: 0 50%;
}
.island-gate {
  position: absolute;
  z-index: 1;
  width: 340px;
  height: 220px;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  border: 0;
  background: transparent;
  color: #777169;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: color .18s ease, filter .18s ease;
  -webkit-user-select: none;
  user-select: none;
}
.island-gate-arrow {
  width: 160px;
  height: 160px;
  flex: 0 0 160px;
  overflow: visible;
  fill: rgba(162, 157, 150, .18);
  transition: fill .18s ease, transform .18s ease;
}
.island-gate-arrow--right { transform: rotate(90deg); }
.island-gate-arrow--down { transform: rotate(180deg); }
.island-gate-arrow--left { transform: rotate(-90deg); }
.island-gate strong {
  max-width: 330px;
  font-family: "IBM Plex Mono", "JetBrains Mono", ui-monospace, monospace;
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .045em;
  text-align: center;
  text-transform: uppercase;
  text-wrap: balance;
}
.island-gate:hover,
.island-gate:focus-visible {
  color: #5f5a54;
  filter: drop-shadow(0 7px 15px rgba(73, 67, 60, .08));
  outline: none;
}
.island-gate:hover .island-gate-arrow,
.island-gate:focus-visible .island-gate-arrow { fill: rgba(162, 157, 150, .30); }
.island-gate:focus-visible strong { text-decoration: underline; text-underline-offset: 7px; }
.frontier-ghost {
  position: absolute;
  width: var(--veld-b);
  height: var(--veld-h);
  overflow: hidden;
  border: 1.5px dashed rgba(84, 88, 82, .30);
  border-radius: calc(15px * var(--veld-schaal));
  background: rgba(255, 254, 250, .20);
  box-shadow: 0 12px 30px rgba(35, 31, 28, .045);
  opacity: .58;
  animation: frontier-breathe 1.7s ease-in-out infinite;
  animation-delay: var(--ghost-delay, 0ms);
}
.frontier-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.62) 48%, transparent 66%);
  transform: translateX(-110%);
  animation: frontier-shimmer 1.9s ease-in-out infinite;
  animation-delay: var(--ghost-delay, 0ms);
}
.frontier-ghost i,
.frontier-ghost b,
.frontier-ghost em {
  position: absolute;
  left: 9%;
  right: 9%;
  display: block;
  border-radius: 999px;
  background: rgba(75, 78, 72, .10);
}
.frontier-ghost i { top: 8%; bottom: 23%; border-radius: 8px; }
.frontier-ghost b { bottom: 14%; right: 38%; height: 3%; }
.frontier-ghost em { bottom: 8%; right: 58%; height: 2%; }
@keyframes frontier-breathe { 50% { opacity: .32; } }
@keyframes frontier-shimmer { 55%, 100% { transform: translateX(110%); } }

#relatie-laag {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}
#relatie-laag.is-visible { opacity: 1; }
.relatie-lijn {
  position: absolute;
  left: var(--rel-x1, 0);
  top: var(--rel-y1, 0);
  width: var(--rel-lengte, 0);
  height: 1px;
  background: linear-gradient(90deg, rgba(169, 130, 73, .8), rgba(115, 128, 110, .45));
  box-shadow: 0 0 13px rgba(169, 130, 73, .32);
  transform: rotate(var(--rel-hoek, 0rad));
  transform-origin: 0 50%;
}
.relatie-punt {
  position: absolute;
  width: 7px;
  height: 7px;
  margin: -3px 0 0 -3px;
  border: 1px solid rgba(255, 253, 248, .92);
  border-radius: 50%;
  background: var(--goud);
  box-shadow: 0 0 0 4px rgba(169, 130, 73, .14);
}
.relatie-punt-van { left: var(--rel-x1, 0); top: var(--rel-y1, 0); }
.relatie-punt-naar { left: var(--rel-x2, 0); top: var(--rel-y2, 0); background: var(--mos); }

.veld-kaart {
  position: absolute;
  width: var(--veld-b);
  height: var(--veld-h);
  margin-left: calc(var(--veld-b) / -2);
  margin-top: calc(var(--veld-h) / -2);
  outline: none;
  cursor: pointer;
  transform: rotate(0deg) translateY(0) scale(1);
  transform-origin: 50% 54%;
  filter: none;
  transition: transform 180ms ease, filter 180ms ease;
  will-change: transform;
}

.veld-kaart > .card-canvas {
  transform: scale(var(--veld-schaal));
  transform-origin: 0 0;
}

.veld-kaart:hover,
.veld-kaart:focus-visible {
  z-index: 100000 !important;
  transform: translate3d(var(--route-pull-x, 0px), var(--route-pull-y, 0px), 0)
    rotate(0deg) scale(1.045);
}

/* De rustpositie blijft onaangeraakt. Pas na een korte, bewuste hover trekt de
   huidige kaart vijf pixels naar de direct volgende Ulam-rang; die volgende
   kaart antwoordt alleen met een nauwelijks zichtbare lichtlift. */
.veld-kaart.is-route-next {
  filter: brightness(1.018) drop-shadow(0 2px 3px rgba(35, 31, 28, .07));
}

.veld-kaart:focus-visible::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 3px solid var(--blauw);
  border-radius: 18px;
}

.veld-kaart.is-root {
  z-index: 90000 !important;
  transform: rotate(0deg) translateY(0) scale(1);
}
.veld-kaart.is-root > .card-canvas {
  box-shadow:
    0 4px 8px rgba(35, 31, 28, .10),
    0 18px 40px rgba(35, 31, 28, .16);
}

/* De enige gekleurde kaart in het veld: het concrete vertrekpunt waar de
   huidige Island omheen is opgebouwd. De maat en positie blijven identiek. */
.veld-kaart.is-island-anchor > .card-canvas {
  background: var(--island-rand);
  box-shadow:
    0 3px 7px rgba(38, 133, 143, .16),
    0 18px 40px rgba(38, 133, 143, .24);
}

html[data-visual="editorial-air-v1"] .veld-kaart[data-visual-role="anchor"],
html[data-visual="editorial-route-v1"] .veld-kaart[data-visual-role="anchor"] {
  transform: rotate(0deg) translateY(0) scale(1);
}
html[data-visual="editorial-air-v1"] .veld-kaart[data-visual-role="anchor"]:hover,
html[data-visual="editorial-air-v1"] .veld-kaart[data-visual-role="anchor"]:focus-visible,
html[data-visual="editorial-route-v1"] .veld-kaart[data-visual-role="anchor"]:hover,
html[data-visual="editorial-route-v1"] .veld-kaart[data-visual-role="anchor"]:focus-visible {
  transform: translate3d(var(--route-pull-x, 0px), var(--route-pull-y, 0px), 0)
    rotate(0deg) scale(1.045);
}

html[data-visual="collected-flow-v1"] .veld-kaart[data-visual-role="anchor"] {
  transform: rotate(0deg) translateY(0) scale(1);
}
html[data-visual="collected-flow-v1"] .veld-kaart[data-visual-role="anchor"]:hover,
html[data-visual="collected-flow-v1"] .veld-kaart[data-visual-role="anchor"]:focus-visible {
  transform: translate3d(var(--route-pull-x, 0px), var(--route-pull-y, 0px), 0)
    rotate(0deg) scale(1.045);
}

html[data-visual="editorial-air-v1"] .card-canvas,
html[data-visual="editorial-route-v1"] .card-canvas {
  box-shadow:
    0 2px 3px rgba(35, 31, 28, .08),
    0 12px 28px rgba(35, 31, 28, .14);
}

html[data-visual="collected-flow-v1"] .card-canvas {
  box-shadow:
    0 2px 3px rgba(35, 31, 28, .08),
    0 12px 28px rgba(35, 31, 28, .14);
}

/* Shared 240 × 340 canvas, copied from the current kenjemenog.nl card.
   Eozoe changes only the content: no title; image begins at the top keyline;
   brand and price occupy the paper below the book wave. */
.card-canvas {
  position: relative;
  isolation: isolate;
  width: 240px;
  height: 340px;
  padding: 7px 7px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 15px;
  background: var(--kaart-rand);
  color: #443a30;
  box-shadow:
    0 2px 3px rgba(35, 31, 28, .08),
    0 12px 28px rgba(35, 31, 28, .14);
  user-select: none;
}

.card-inner {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  padding: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 9.5px;
  background: #fffefa;
}

.card-frame {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(150, 118, 80, .4);
  border-radius: 7px;
}

.card-beeld {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #e9e2d4;
}
.card-beeld::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 25px;
  pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 498 64' preserveAspectRatio='none'><path fill='%23fffefa' d='M0 64 H498 V21 C418 14 353 8 308 8 C270 10 260 24 249 38 C238 24 228 10 190 8 C145 8 80 14 0 21 Z'/><path fill='none' stroke='rgba(153,120,78,.48)' stroke-width='1.4' d='M0 21 C80 14 145 8 190 8 C228 10 238 24 249 38 C260 24 270 10 308 8 C353 8 418 14 498 21'/></svg>") center / 100% 100% no-repeat;
}
.card-beeld img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  padding: 0;
  filter: saturate(1.04) contrast(1.04);
  opacity: 0;
  transform: scale(1);
  transform-origin: 50% 50%;
  transition: opacity 240ms ease, transform 3800ms cubic-bezier(.22, 1, .36, 1);
  -webkit-user-drag: none;
  user-select: none;
}
.card-canvas.is-image-ready .card-beeld img {
  opacity: 1;
  transform: scale(1);
}
.veld-kaart:hover .card-beeld img,
.veld-kaart:focus-visible .card-beeld img {
  transform: scale(1.14) translate(-2%, -1%);
}
.card-canvas.is-image-missing .card-beeld::before {
  content: "IMAGE UNAVAILABLE";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: .16em;
  color: var(--zacht);
}
.card-canvas.is-image-missing .card-beeld img { display: none; }

.card-meta {
  position: relative;
  z-index: 3;
  flex: 0 0 38px;
  min-height: 38px;
  margin-top: -3px;
  padding: 4px 10px 9px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  background: #fffefa;
  font-family: 'Jost', system-ui, sans-serif;
}
.card-brand {
  min-width: 0;
  overflow: hidden;
  color: #443a30;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .115em;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.card-price {
  color: #443a30;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
}

.card-footer {
  position: relative;
  z-index: 1;
  flex: 0 0 23px;
  height: 23px;
  padding: 0 10.5px 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  color: #8f877c;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 4px;
  font-weight: 600;
  letter-spacing: .3em;
  line-height: 1;
  pointer-events: none;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
  white-space: nowrap;
}
.card-footer .turn { display: inline-flex; align-items: center; gap: 3.5px; color: inherit; }
.card-footer .turn-glyph {
  position: relative;
  top: -1.2px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
}
.veld-kaart:hover .card-canvas,
.veld-kaart:focus-visible .card-canvas {
  box-shadow:
    0 8px 18px rgba(35, 31, 28, .12),
    0 28px 60px rgba(35, 31, 28, .20);
}

/* ── Almanac world menu ────────────────────────────────────────────────
   The open-book corner, tracing-paper panel and circular reveal are the
   shared Almanac mechanism. Eozoe supplies only its own ink and content. */

#site-header {
  display: contents;
  --site-corner-accent: #746f68;
  --site-corner-bg: rgba(252, 250, 244, .20);
  --site-corner-filter: blur(5px) saturate(1.04);
  --vel-ink: #123c42;
  --vel-ink-rgb: 18, 60, 66;
  --vel-dash: rgba(18, 60, 66, .40);
  --vel-secondary: rgba(18, 60, 66, .68);
  --vel-bg: rgba(252, 250, 244, .72);
  --vel-filter: blur(7px) saturate(1.05);
}

.site-corner {
  position: fixed;
  top: env(safe-area-inset-top, 0px);
  left: env(safe-area-inset-left, 0px);
  z-index: 120;
  width: 126px;
  height: 126px;
  pointer-events: none;
}
.site-corner-vel {
  position: absolute;
  inset: 0;
  -webkit-clip-path: path('M0 0H126 C105 8.25 83.25 23.25 71.25 40.5 C64.5 49.5 61.5 57.75 67.5 67.5 C57.75 61.5 49.5 64.5 40.5 71.25 C23.25 83.25 8.25 105 0 126Z');
  clip-path: path('M0 0H126 C105 8.25 83.25 23.25 71.25 40.5 C64.5 49.5 61.5 57.75 67.5 67.5 C57.75 61.5 49.5 64.5 40.5 71.25 C23.25 83.25 8.25 105 0 126Z');
  background: var(--site-corner-bg, rgba(252, 250, 244, .28));
  backdrop-filter: var(--site-corner-filter, blur(5px) saturate(1.04));
  -webkit-backdrop-filter: var(--site-corner-filter, blur(5px) saturate(1.04));
  filter: drop-shadow(0 3px 7px rgba(20, 40, 44, .16));
}
.site-corner-shape { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.site-corner-line {
  stroke: var(--boekkrul-lijn, rgba(117, 111, 100, .24));
  stroke-width: 1;
  stroke-opacity: 1;
  vector-effect: non-scaling-stroke;
}
.site-corner-button {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #123c42;
  cursor: pointer;
  display: grid;
  place-items: center;
  pointer-events: auto;
}
.site-corner-button svg { width: 34px; height: 34px; display: block; overflow: visible; }
.site-corner-button[aria-expanded="true"] { opacity: 0; visibility: hidden; }
.site-corner-button:hover,
.site-corner-button:focus-visible { color: #123c42; outline: 0; }

html.site-menu-open,
body.site-menu-open { overflow: hidden; overscroll-behavior: none; }
body.site-menu-open {
  position: fixed;
  left: 0;
  right: var(--site-menu-scrollbar-width, 0px);
  width: auto;
}
.site-menu-scrim {
  position: fixed;
  inset: 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  background: rgba(35, 31, 28, .10);
  transition: opacity .4s, visibility .4s;
}
.site-menu-scrim.site-menu-active { opacity: 1; visibility: visible; }
.site-menu-panel {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  left: calc(72px + env(safe-area-inset-left, 0px));
  z-index: 300;
  width: min(380px, calc(100vw - 84px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
  height: min(650px, calc(100vh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  height: min(650px, calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
  box-sizing: border-box;
  padding: 19px 19px 0;
  overflow: hidden;
  border-radius: 34px;
  display: flex;
  flex-direction: column;
  color: var(--vel-ink, #443a30);
  background: var(--vel-bg, rgba(252, 250, 244, .72));
  backdrop-filter: var(--vel-filter, blur(7px) saturate(1.05));
  -webkit-backdrop-filter: var(--vel-filter, blur(7px) saturate(1.05));
  box-shadow: var(--vel-shadow, 0 4px 8px rgba(35, 31, 28, .10), 0 20px 42px rgba(35, 31, 28, .18));
  clip-path: circle(0 at -38px 22px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: clip-path .52s cubic-bezier(.22, 1, .36, 1), opacity .16s ease, visibility .52s;
}
.site-menu-panel.site-menu-active {
  clip-path: circle(150vmax at -38px 22px);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.site-menu-frame {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  border: 1.5px dashed var(--vel-dash, rgba(68, 58, 48, .38));
  border-radius: 25px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.site-menu-close {
  position: fixed;
  top: calc(3px + env(safe-area-inset-top, 0px));
  left: calc(3px + env(safe-area-inset-left, 0px));
  z-index: 310;
  width: 62px;
  height: 62px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #123c42;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: background .18s, color .18s, transform .22s, opacity .16s, visibility .22s;
}
.site-menu-close.site-menu-active { opacity: 1; visibility: visible; pointer-events: auto; }
.site-menu-close svg { width: 34px; height: 34px; display: block; overflow: visible; }
.site-menu-close:hover {
  color: #123c42;
  transform: rotate(90deg);
}
.site-menu-close:focus { outline: none; }
.site-menu-close:focus-visible { outline: none; }
.site-menu-items {
  list-style: none;
  padding: 18px 0 0;
  margin: 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.site-menu-items li { border-bottom: 1.5px dashed var(--vel-dash, rgba(68, 58, 48, .38)); }
.site-menu-items li:first-child { border-top: 1.5px dashed var(--vel-dash, rgba(68, 58, 48, .38)); }
.site-menu-action {
  width: 100%;
  padding: 1.1rem 2rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--vel-ink, #443a30);
  cursor: pointer;
  font-family: 'Sora', sans-serif;
  font-size: 17px;
  font-weight: 400;
  text-align: left;
  transition: background .18s, padding-left .2s;
}
.site-menu-action small {
  min-width: 24px;
  color: var(--vel-secondary, rgba(68, 58, 48, .60));
  font: inherit;
  font-size: 12px;
  text-align: right;
}
.site-menu-action:hover,
.site-menu-action:focus-visible {
  padding-left: 2.5rem;
  background: color-mix(in srgb, var(--site-corner-accent, #443a30) 18%, transparent);
}
.site-menu-action:focus-visible { outline: 2px solid var(--vel-ink, #443a30); outline-offset: -4px; }
.site-menu-action:disabled { opacity: .48; cursor: wait; }
.site-menu-foot {
  position: relative;
  z-index: 1;
  flex: 0 0 52px;
  padding: 0 12px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
}
.site-menu-foot-centered { justify-content: center; }
.site-menu-logo {
  width: auto;
  height: 34px;
  padding: 2px 0;
  display: block;
  object-fit: contain;
  opacity: .85;
}

#wereld-laden {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 45;
  transform: translate(-50%, -50%);
  min-width: 230px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  border: 1px solid rgba(41, 43, 38, .14);
  border-radius: 999px;
  background: rgba(255, 253, 247, .92);
  box-shadow: 0 18px 50px rgba(54, 45, 33, .16);
  color: var(--inkt);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}
.loading-mark {
  width: 13px;
  height: 13px;
  border: 2px solid rgba(23, 35, 31, .18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: draai 800ms linear infinite;
}
@keyframes draai { to { transform: rotate(1turn); } }

/* ── Card flip: source position → edge-aware anchored reverse side ────── */

.kaart-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.kaart-modal.is-visible { display: block; }
.kaart-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  background: rgba(47, 42, 34, .30);
  backdrop-filter: blur(6px) saturate(.82);
  -webkit-backdrop-filter: blur(6px) saturate(.82);
  transition: opacity 480ms ease;
}
.kaart-modal.is-open::before { opacity: 1; }

.flip-kaart {
  position: fixed;
  left: 50%;
  top: 50%;
  width: min(90vw, calc(92vh * .70562), 620px);
  aspect-ratio: 640 / 907;
  perspective: 2600px;
  transform-origin: 50% 50%;
  --doel-x: 0px;
  --doel-y: 0px;
  transform:
    translate(-50%, -50%)
    translate(var(--van-x, 0px), var(--van-y, 0px))
    rotate(var(--van-draai, 0deg))
    scale(var(--van-schaal, .25));
  transition: transform var(--duur) var(--ease);
  will-change: transform;
}
.kaart-modal.is-open .flip-kaart {
  transform:
    translate(-50%, -50%)
    translate(var(--doel-x), var(--doel-y))
    rotate(0deg)
    scale(1);
}

.flip-stage {
  position: relative;
  width: 100%;
  height: 100%;
  transform: rotateY(0deg) scale(1);
  transform-style: preserve-3d;
  transition: transform var(--duur) var(--ease);
  will-change: transform;
}
.kaart-modal.is-preparing .flip-kaart,
.kaart-modal.is-preparing .flip-stage {
  transition: none !important;
}
.kaart-modal.is-open .flip-stage {
  transform: rotateY(180deg) scale(1);
  transition-delay: 90ms;
}

/* Follow is a direct world jump, not a second card performance. The selected
   front remains briefly visible at the exact centre while the field loads. */
.kaart-modal.is-world-jump::before,
.kaart-modal.is-world-jump .flip-kaart,
.kaart-modal.is-world-jump .flip-stage {
  transition: none !important;
}

.flip-pane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 40px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.flip-voor { pointer-events: none; }
.flip-voor .card-canvas {
  transform: scale(var(--voor-schaal, 1));
  transform-origin: 0 0;
}
.flip-achter {
  cursor: pointer;
  transform: rotateY(180deg);
}
.flip-achter button,
.flip-achter a { touch-action: manipulation; }
.kaart-modal.is-activating .flip-achter { pointer-events: none; }

/* The reverse is the 240 × 340 front anatomy enlarged by 8/3: the same
   gradient edge, inner paper ring, keyline, radii and raised system strip. */
.detail-canvas {
  position: relative;
  isolation: isolate;
  width: 640px;
  height: 907px;
  padding: 18.667px 18.667px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--kaart-rand);
  border: 0;
  border-radius: 40px;
  color: #f2ead6;
  box-shadow: 0 6px 14px rgba(54, 45, 33, .11), 0 34px 70px rgba(54, 45, 33, .23);
  transform: scale(var(--detail-schaal, 1));
  transform-origin: 0 0;
}
.kaart-modal.is-island-anchor .detail-canvas,
.kaart-modal.is-island-anchor .flip-voor .card-canvas {
  background: var(--island-rand);
}
.detail-inner {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 25.333px;
  background: #fffefa;
}
.detail-frame {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 2.667px solid rgba(117, 111, 100, .48);
  border-radius: 18.667px;
  background: #fffefa;
}
.detail-kop {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 7;
  min-height: 100px;
  padding: 20px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  overflow: visible;
  border-bottom: 1px solid rgba(255, 254, 250, .20);
  background: linear-gradient(180deg, rgba(35, 31, 28, .62) 0%, rgba(35, 31, 28, .34) 72%, rgba(35, 31, 28, .16) 100%);
  backdrop-filter: blur(8px) saturate(1.04);
  -webkit-backdrop-filter: blur(8px) saturate(1.04);
}
.detail-merchant,
.context-label {
  margin: 0 0 7px;
  color: var(--zacht);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.detail-kop h2 {
  min-width: 0;
  max-width: 500px;
  margin: 0;
  overflow: hidden;
  display: block;
  color: #f2ead6;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 25px;
  font-weight: 700;
  letter-spacing: .015em;
  line-height: 1;
  text-overflow: ellipsis;
  text-shadow: 0 1px 8px rgba(24, 20, 17, .38);
  white-space: nowrap;
}
.detail-kop h2[hidden] { display: none; }

/* ── Card controls: Almanac head grammar ───────────────────────────────
   The hamburger is part of the title line and directly precedes the title. */
.flip-achter .card-tools {
  position: relative;
  z-index: 6;
  flex: 0 0 auto;
  height: auto;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0 0 0 -10px;
  border: 0;
}
.flip-achter .tools-tab {
  position: relative;
  z-index: 3;
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  /* Primary Card affordance: this control must announce itself before hover.
     Almanac's 42/23 geometry and heavier 2.3 stroke remain fully present in
     rest; hover only adds a surface response, never the missing contrast. */
  color: #fffefa;
  cursor: pointer;
  filter: drop-shadow(0 1px 3px rgba(24, 20, 17, .42));
}
.flip-achter .tools-tab svg { width: 23px; height: 23px; display: block; }
.flip-achter .tools-tab svg path { stroke-width: 2.3; }
.flip-achter .tools-tab .ic-x { display: none; }
.flip-achter .card-tools.tools-open .tools-tab .ic-ham { display: none; }
.flip-achter .card-tools.tools-open .tools-tab .ic-x { display: block; }
.flip-achter .tools-tab:hover { color: #fffefa; background: rgba(255, 254, 250, .12); }
.flip-achter .tools-tab:focus-visible { outline: 2px solid #f2ead6; outline-offset: 2px; }

/* The scrim is clipped by the reverse side. Clicking it only closes the menu. */
.flip-achter .tools-scrim {
  display: none;
  position: absolute;
  inset: -2000px;
  z-index: 1;
  background: rgba(35, 31, 28, .05);
  cursor: default;
}
.flip-achter .card-tools.tools-open .tools-scrim { display: block; }

.flip-achter .tools-tray {
  display: none;
  position: absolute;
  top: calc(100% + 14px);
  left: -8px;
  z-index: 2;
  width: 310px;
  padding: 9px;
  border: 1.5px dashed rgba(68, 58, 48, .38);
  border-radius: 14px;
  background: rgba(252, 250, 244, .92);
  box-shadow: 0 4px 8px rgba(35, 31, 28, .10), 0 14px 30px rgba(35, 31, 28, .16);
  backdrop-filter: blur(7px) saturate(1.05);
  -webkit-backdrop-filter: blur(7px) saturate(1.05);
}
.flip-achter .tools-tray::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(70, 50, 25, .028) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px);
}
.flip-achter .card-tools.tools-open .tools-tray { display: block; }
.flip-achter .tools-tray > button {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 46px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(68, 58, 48, .78);
  cursor: pointer;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1;
  text-align: left;
}
.flip-achter .tools-tray > button b { font-weight: 700; color: var(--inkt); }
.flip-achter .tools-tray > button small {
  display: block;
  margin-bottom: 3px;
  color: rgba(68, 58, 48, .52);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .15em;
}
.flip-achter .tools-tray > button svg {
  width: 22px;
  height: 22px;
  flex: none;
  display: block;
  color: rgba(68, 58, 48, .55);
}
.flip-achter .tools-tray > button:hover:not(:disabled) {
  color: var(--inkt);
  background: rgba(255, 255, 255, .82);
}
.flip-achter .tools-tray > button:hover:not(:disabled) svg { color: var(--inkt); }
.flip-achter .tools-tray > button:disabled { color: rgba(68, 58, 48, .30); cursor: default; }
.flip-achter .tools-tray > button:disabled svg { color: rgba(68, 58, 48, .22); }
.flip-achter .tools-mode {
  position: relative;
  z-index: 1;
  min-height: 52px;
  padding: 5px 10px 5px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  color: rgba(68, 58, 48, .78);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
}
.ronde-knop {
  flex: none;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  padding: 0 0 4px;
  border: 1.5px solid var(--inkt);
  border-radius: 50%;
  background: transparent;
  color: var(--inkt);
  cursor: pointer;
  font-size: 31px;
  font-weight: 300;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}
.ronde-knop:hover,
.ronde-knop:focus-visible {
  background: var(--inkt);
  color: white;
  outline: none;
  transform: rotate(90deg);
}

.detail-inhoud {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.detail-beeldvak {
  position: relative;
  flex: 0 0 62%;
  width: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #e9e2d4;
}
.detail-beeldvak::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 60px;
  pointer-events: none;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 498 64' preserveAspectRatio='none'><path fill='%23fffefa' d='M0 64 H498 V21 C418 14 353 8 308 8 C270 10 260 24 249 38 C238 24 228 10 190 8 C145 8 80 14 0 21 Z'/><path fill='none' stroke='rgba(153,120,78,.48)' stroke-width='1.4' d='M0 21 C80 14 145 8 190 8 C228 10 238 24 249 38 C260 24 270 10 308 8 C353 8 418 14 498 21'/></svg>") center / 100% 100% no-repeat;
}
#detail-beeld {
  width: 100%;
  height: 100%;
  display: block;
  max-height: none;
  object-fit: cover;
  padding: 0;
  filter: saturate(1.04) contrast(1.04);
  -webkit-user-drag: none;
}
.detail-info {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  margin-top: -1px;
  padding: 17px 30px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.detail-merchant { color: #756f64; }
.detail-prijs {
  margin: 0 0 18px;
  font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -.03em;
  color: #443a30;
}
.detail-beschrijving {
  margin: 0 0 20px;
  overflow: hidden;
  display: -webkit-box;
  color: rgba(68, 58, 48, .78);
  font-size: 14.5px;
  line-height: 1.53;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.kaart-navigatie {
  margin: 0 0 13px;
  padding: 10px;
  border: 1px solid rgba(89, 107, 96, .24);
  border-radius: 12px;
  background: rgba(89, 107, 96, .055);
}
.kaart-nav-kop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}
.kaart-nav-kop > span {
  color: var(--blauw);
  font-size: 8px;
  font-weight: 850;
  letter-spacing: .13em;
  line-height: 1.25;
}
.kaart-routes {
  margin-top: 8px;
  display: flex;
  gap: 7px;
}
.kaart-route {
  flex: 1 1 50%;
  min-height: 30px;
  padding: 5px 8px;
  border: 1px solid var(--lijn);
  border-radius: 7px;
  background: rgba(255, 253, 247, .72);
  color: var(--inkt);
  cursor: pointer;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.kaart-route:hover { border-color: var(--inkt); }
.detail-acties {
  flex: 0 0 auto;
  margin-top: auto;
  display: grid;
  gap: 9px;
}
.koop-link,
.verken-knop,
.context-klaar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  text-decoration: none;
  backdrop-filter: blur(10px) saturate(1.04);
  -webkit-backdrop-filter: blur(10px) saturate(1.04);
}
.koop-link {
  border: 1.5px solid rgba(117, 111, 100, .68);
  background: rgba(255, 254, 250, .46);
  color: #443a30;
  box-shadow: 0 5px 16px rgba(68, 58, 48, .08);
}
.koop-link[aria-disabled="true"] { opacity: .4; pointer-events: none; }
.koop-link:hover { background: rgba(255, 254, 250, .78); border-color: #756f64; }
.detail-sold-out {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  margin: 0;
  padding: 13px 22px 12px;
  transform: translate(-50%, -50%) rotate(-2deg);
  border: 1px solid rgba(255, 254, 250, .82);
  border-radius: 999px;
  background: rgba(53, 48, 43, .72);
  color: #fffefa;
  box-shadow: 0 8px 30px rgba(20, 18, 16, .18);
  backdrop-filter: blur(12px) saturate(.8);
  -webkit-backdrop-filter: blur(12px) saturate(.8);
  font-size: 15px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}
.is-sold-out .detail-beeldvak img { filter: saturate(.45) contrast(.92); }
.verken-knop {
  padding: 0 22px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fffefa;
  box-shadow: none;
  text-shadow: 0 1px 5px rgba(24, 20, 17, .34);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.verken-knop:hover { background: rgba(255, 254, 250, .16); }
.verken-knop:disabled { opacity: .45; cursor: wait; }
.verken-knop--primary {
  background: rgba(255, 254, 250, .88);
  color: #443a30;
  text-shadow: none;
}
.verken-knop--primary:hover { background: #fffefa; }
.verken-richtingen {
  display: flex;
  border-bottom: 1px solid rgba(255, 254, 250, .34);
}
.verken-richtingen .verken-knop + .verken-knop {
  border-left: 1px solid rgba(255, 254, 250, .34);
}
.verken-overlay > .verken-knop--primary { width: 100%; }
.verken-overlay {
  position: absolute;
  bottom: 68px;
  left: 50%;
  z-index: 3;
  width: max-content;
  max-width: calc(100% - 60px);
  display: grid;
  overflow: hidden;
  border: 1.5px solid rgba(255, 254, 250, .58);
  border-radius: 10px;
  background: rgba(35, 31, 28, .34);
  box-shadow: 0 8px 24px rgba(35, 31, 28, .16);
  backdrop-filter: blur(10px) saturate(1.04);
  -webkit-backdrop-filter: blur(10px) saturate(1.04);
  transform: translateX(-50%);
}
.verken-overlay .verken-knop { border-radius: 0; }
.verken-overlay:hover { border-color: rgba(255, 254, 250, .88); }

.kaart-lage-acties {
  flex: 0 0 96px;
  display: flex;
  border-top: 1.5px solid var(--lijn);
}
.waarom-knop,
.current-knop {
  flex: 1 1 50%;
  padding: 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  background: rgba(89, 107, 96, .065);
  color: var(--inkt);
  cursor: pointer;
  text-align: left;
}
.current-knop {
  border-left: 1.5px solid var(--lijn);
  background: rgba(201, 108, 67, .07);
}
.waarom-knop span,
.current-knop span { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 19px; font-weight: 700; }
.waarom-knop small,
.current-knop small {
  display: block;
  margin-bottom: 3px;
  color: var(--blauw);
  font-family: Inter, ui-sans-serif, sans-serif;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .17em;
}
.current-knop small { color: var(--accent); }
.waarom-knop b,
.current-knop b { font-size: 27px; transition: transform 180ms ease; }
.waarom-knop:hover b,
.current-knop:hover b { transform: translateX(7px); }

.detail-voet {
  position: relative;
  z-index: 1;
  flex: 0 0 61.333px;
  margin: 0 -18.667px;
  padding: 0 28px 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  color: #8f877c;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 10.667px;
  font-weight: 600;
  letter-spacing: .3em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
}
.context-voet {
  flex: 0 0 63px;
  margin: 0 -14px;
  padding: 0 28px 1px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #30312b;
  color: #f7fbf4;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .13em;
}
.detail-voet button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 3px 8px 10px;
  border: 0;
  background: transparent;
  color: #6c655c;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  border-radius: 999px;
  transition: color 160ms ease, background 160ms ease;
}
.detail-voet button:hover,
.detail-voet button:focus-visible {
  outline: none;
  color: #292b26;
  background: rgba(255, 254, 250, .38);
}
.detail-voet button b {
  position: relative;
  top: -2px;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 27px;
  font-weight: 400;
  letter-spacing: 0;
}

/* ── Ghostcard overlays: exact translucent-sheet grammar ───────────────
   Third entity beside field card and flip. The milk-white tracing paper,
   dashed contour, linen grain and tall lower margin mirror kenjemenog.nl. */
.ghostcard {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  width: 640px;
  height: 907px;
  padding: 19px 19px 0;
  display: none;
  flex-direction: column;
  border-radius: 40px;
  background: rgba(252, 252, 250, .68);
  color: #443a30;
  box-shadow: 0 4px 8px rgba(35, 31, 28, .10), 0 20px 42px rgba(35, 31, 28, .18);
  backdrop-filter: blur(7px) saturate(1.05);
  -webkit-backdrop-filter: blur(7px) saturate(1.05);
  transform: scale(var(--detail-schaal, 1));
  transform-origin: 0 0;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  --ghost-ink: #443a30;
  --ghost-dash: rgba(68, 58, 48, .38);
  --ghost-soft: rgba(68, 58, 48, .60);
}
.ghostcard.is-open { display: flex; pointer-events: auto; }
.ghostcard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(70, 50, 25, .028) 0 1px, transparent 1px 3px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 3px);
}
.ghostcard .ghost-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 24px 38px 22px;
  display: flex;
  flex-direction: column;
  border: 1.5px dashed var(--ghost-dash);
  border-radius: 25px;
}
.ghostcard .ghost-foot {
  position: relative;
  z-index: 1;
  flex: 0 0 61px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ghost-soft);
  font-size: 8px;
  font-weight: 500;
  letter-spacing: .11em;
  text-align: center;
}
.ghostcard .ghost-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 46px;
  height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--ghost-ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ghost-ink);
  cursor: pointer;
  transition: background .18s, color .18s, transform .22s;
}
.ghostcard .ghost-close svg { width: 19px; height: 19px; }
.ghostcard .ghost-close:hover,
.ghostcard .ghost-close:focus-visible {
  outline: none;
  background: var(--ghost-ink);
  color: rgba(252, 252, 250, .95);
  transform: rotate(90deg);
}
.ghostcard .ghost-body { flex: 1 1 auto; min-height: 0; overflow: hidden; }
.ghostcard .ghost-title {
  max-width: 475px;
  margin: 14px 0 0;
  color: var(--ghost-ink);
  font-family: inherit;
  font-size: 31px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.1;
}
.ghostcard .ghost-title::after {
  content: "";
  display: block;
  width: 66px;
  height: 2.5px;
  margin-top: 11px;
  background: var(--ghost-ink);
}
.ghostcard .ghost-rule {
  margin: 22px 0 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--ghost-soft);
  font-size: 10.5px;
  letter-spacing: .3em;
  white-space: nowrap;
}
.ghostcard .ghost-rule::before,
.ghostcard .ghost-rule::after {
  content: "";
  flex: 1;
  border-top: 1.5px dashed var(--ghost-dash);
}
.ghostcard .ghost-cta {
  position: relative;
  z-index: 1;
  flex: none;
  width: 100%;
  margin-top: 18px;
  padding: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1.5px solid var(--ghost-ink);
  border-radius: 15px;
  background: transparent;
  color: var(--ghost-ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  transition: background .2s, color .2s;
}
.ghostcard .ghost-cta svg { width: 22px; height: 22px; }
.ghostcard .ghost-cta:hover,
.ghostcard .ghost-cta:focus-visible {
  outline: none;
  background: var(--ghost-ink);
  color: rgba(252, 252, 250, .95);
}

.context-label { margin-top: 14px; color: var(--ghost-soft); }
.context-lead {
  max-width: 500px;
  margin: 20px 0 0;
  color: var(--ghost-ink);
  font-size: 14px;
  line-height: 1.5;
}
.context-feiten { display: flex; flex-direction: column; }
.context-feit {
  min-height: 74px;
  padding: 12px 0;
  display: grid;
  grid-template-columns: 128px 70px 1fr;
  align-items: baseline;
  gap: 14px;
  border-bottom: 1.5px dashed var(--ghost-dash);
}
.context-feit:last-child { border-bottom: 0; }
.context-feit strong {
  color: var(--ghost-ink);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.context-feit b { color: var(--ghost-ink); font-size: 20px; }
.context-feit span { color: var(--ghost-ink); font-size: 12px; line-height: 1.42; }
.context-noot {
  margin: 17px 0 0;
  padding: 12px 15px;
  border: 1.5px dashed var(--ghost-dash);
  border-radius: 13px;
  color: var(--ghost-soft);
  font-size: 10px;
  line-height: 1.45;
}

/* ── Journey content inside the same Ghostcard shell ─────────────────── */
.pad-scrim {
  position: fixed;
  inset: 0;
  z-index: 450;
  opacity: 0;
  visibility: hidden;
  background: rgba(35, 31, 28, .10);
  transition: opacity .4s, visibility .4s;
}
.pad-scrim.is-open { opacity: 1; visibility: visible; }
.navigatie-kaart {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 460;
  width: min(640px, calc(100vw - 38px));
  height: min(907px, calc(100dvh - 38px));
  transform: translate(-50%, -50%);
  transform-origin: center;
}
.navigatie-kaart.is-card-bound {
  left: var(--pad-card-left);
  top: var(--pad-card-top);
  width: var(--pad-card-width);
  height: var(--pad-card-height);
  transform: none;
  transform-origin: 0 0;
}

/* ── Island Map: one panable atlas inside the Ghostcard grammar ─────── */
.atlas-scrim {
  position: fixed;
  inset: 0;
  z-index: 470;
  opacity: 0;
  visibility: hidden;
  background: rgba(35, 31, 28, .13);
  transition: opacity .35s, visibility .35s;
}
.atlas-scrim.is-open { opacity: 1; visibility: visible; }
.atlas-card {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 480;
  width: min(1080px, calc(100vw - 38px));
  height: min(790px, calc(100dvh - 38px));
  transform: translate(-50%, -50%);
  transform-origin: center;
}
.atlas-card .ghost-frame { padding: 23px 27px 25px; }
.atlas-card .ghost-close { z-index: 12; }
.atlas-body { display: flex; flex-direction: column; }
.atlas-heading {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  padding: 0 72px 15px 11px;
}
.atlas-heading .ghost-title { max-width: 780px; margin-top: 9px; font-size: clamp(25px, 3.1vw, 39px); }
.atlas-heading > p:last-child {
  max-width: 720px;
  margin: 13px 0 0;
  color: var(--ghost-soft);
  font-size: 11px;
  line-height: 1.45;
}
.atlas-viewport {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(91, 82, 72, .32);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 43%, rgba(255,255,255,.38), transparent 64%),
    linear-gradient(rgba(91,82,72,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91,82,72,.07) 1px, transparent 1px),
    rgba(220, 225, 220, .92);
  background-size: auto, 48px 48px, 48px 48px, auto;
  cursor: grab;
  touch-action: none;
  outline: none;
  box-shadow:
    inset 0 0 52px rgba(70, 76, 70, .13),
    inset 0 1px 0 rgba(255,255,255,.58),
    0 1px 0 rgba(255,255,255,.42);
}
.atlas-viewport:active,
.atlas-viewport.is-dragging { cursor: grabbing; }
.atlas-viewport:focus-visible {
  box-shadow: inset 0 0 0 2px #443a30, inset 0 0 52px rgba(70,76,70,.13);
}
.atlas-canvas {
  position: absolute;
  left: 0;
  top: 0;
  width: 2300px;
  height: 1400px;
  transform: translate3d(var(--atlas-x, 0px), var(--atlas-y, 0px), 0) scale(var(--atlas-scale, .84));
  transform-origin: 0 0;
  will-change: transform;
}
.atlas-canvas::before,
.atlas-canvas::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(94, 101, 95, .20);
  border-radius: 49% 51% 46% 54% / 55% 47% 53% 45%;
  pointer-events: none;
}
.atlas-canvas::before { left: 4%; top: 5%; width: 46%; height: 61%; transform: rotate(-8deg); }
.atlas-canvas::after { right: 3%; bottom: 3%; width: 48%; height: 66%; transform: rotate(11deg); }
.atlas-routes { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.atlas-route-shadow,
.atlas-route { fill: none; stroke-linecap: round; }
.atlas-route-shadow { stroke: rgba(255,255,255,.68); stroke-width: 7; }
.atlas-route { stroke: url(#atlasRouteFade); stroke-width: 2.15; stroke-dasharray: 3 9; }
.atlas-island {
  --atlas-island-scale: 1;
  position: absolute;
  width: 330px;
  min-height: 275px;
  padding: 42px 35px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid rgba(119, 113, 105, .46);
  border-radius: 49% 51% 45% 55% / 53% 44% 56% 47%;
  background: rgba(249, 247, 241, .94);
  color: #443a30;
  box-shadow: 0 18px 42px rgba(55,59,54,.14), inset 0 0 0 8px rgba(255,255,255,.30);
  cursor: pointer;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-align: center;
  transform: translate(-50%, -50%) scale(var(--atlas-island-scale));
  transform-origin: center;
  transition: border-color .18s, box-shadow .18s, background .18s, transform .18s;
  -webkit-user-select: none;
  user-select: none;
}
.atlas-island::before,
.atlas-island::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: inherit;
}
.atlas-island::before { inset: -13px -17px; border: 1px dashed rgba(119,113,105,.28); transform: rotate(-3deg); }
.atlas-island::after { inset: 13px 17px; border: 1px solid rgba(119,113,105,.16); transform: rotate(2deg); }
.atlas-island:hover,
.atlas-island:focus-visible {
  outline: none;
  background: rgba(255,254,250,.98);
  border-color: #6f6962;
  box-shadow: 0 18px 40px rgba(64,55,46,.15), inset 0 0 0 8px rgba(255,255,255,.32);
  transform: translate(-50%, -50%) translateY(-3px) scale(var(--atlas-island-scale));
}
.atlas-island.is-active {
  border-color: #63c8d2;
  box-shadow: 0 17px 40px rgba(83,180,191,.18), inset 0 0 0 8px rgba(133,211,220,.16);
}
.atlas-island.is-active::before { border-color: rgba(99,200,210,.62); }
.atlas-island-copy { position: relative; z-index: 1; }
.atlas-island-copy small { color: #777169; font-size: 7px; letter-spacing: .2em; }
.atlas-island-copy strong { display: block; margin-top: 4px; font-size: 25px; line-height: 1; }
.atlas-island-copy em { display: block; max-width: 255px; margin-top: 8px; color: #777169; font-size: 8px; font-style: normal; line-height: 1.4; }
.atlas-preview-row {
  position: relative;
  z-index: 1;
  height: 118px;
  margin-top: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
}
.atlas-preview {
  position: relative;
  width: 69px;
  height: 100px;
  padding: 4px 4px 15px;
  overflow: hidden;
  border: 1px solid rgba(119,113,105,.29);
  border-radius: 7px;
  background: #fdfcf9;
  box-shadow: 0 5px 12px rgba(54,47,40,.15);
}
.atlas-preview:nth-child(1) { transform: rotate(-3deg) translateY(6px); }
.atlas-preview:nth-child(3) { transform: rotate(3deg) translateY(6px); }
.atlas-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
  pointer-events: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}
.atlas-preview::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: 6px;
  height: 2px;
  border-radius: 2px;
  background: #a29d96;
  opacity: .7;
}
.atlas-island-count { position: relative; z-index: 1; margin-top: 3px; color: #777169; font-size: 7px; letter-spacing: .12em; }
.atlas-drag-note {
  position: absolute;
  right: 14px;
  bottom: 12px;
  z-index: 3;
  padding: 6px 9px;
  border: 1px solid rgba(119,113,105,.25);
  border-radius: 999px;
  background: rgba(250,248,243,.76);
  color: #777169;
  font-size: 7px;
  letter-spacing: .14em;
  pointer-events: none;
}
.island-explain {
  position: absolute;
  left: 53.5%;
  top: clamp(108px, 22%, 145px);
  z-index: 6;
  width: min(390px, calc(100% - 34px));
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.96);
  transition: opacity 220ms ease, transform 360ms cubic-bezier(.22, 1, .36, 1), visibility 360ms;
}
.island-explain.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}
.island-explain-frame {
  min-height: 210px;
  padding: 17px;
  display: grid;
  grid-template-columns: 46px 1fr 46px;
  grid-template-rows: 46px 1fr 46px;
  align-items: center;
  justify-items: center;
  background: transparent;
}
.island-explain-arrow {
  width: 35px;
  height: 35px;
  fill: none;
  stroke: #746f68;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .78;
}
.island-explain-arrow--up { grid-column: 2; grid-row: 1; }
.island-explain-arrow--right { grid-column: 3; grid-row: 2; }
.island-explain-arrow--down { grid-column: 2; grid-row: 3; }
.island-explain-arrow--left { grid-column: 1; grid-row: 2; }
.island-explain-copy {
  grid-column: 2;
  grid-row: 2;
  min-width: 220px;
  color: #443a30;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-align: center;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .72);
}
.island-explain-copy strong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: .035em;
  white-space: nowrap;
}
.island-explain-copy i { color: #a29d96; font-style: normal; }
.island-explain-copy small {
  display: block;
  margin-top: 9px;
  color: #777169;
  font-size: 7px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.atlas-loading {
  position: absolute;
  left: 50%; top: 50%;
  color: #777169;
  font-size: 9px;
  letter-spacing: .14em;
  transform: translate(-50%, -50%);
}

@media (max-width: 699px) {
  .atlas-card { width: calc(100vw - 20px); height: calc(100dvh - 20px); padding: 10px 10px 0; border-radius: 25px; }
  .atlas-card .ghost-frame { padding: 14px 13px 16px; border-radius: 17px; }
  .atlas-card .ghost-close { top: 12px; right: 12px; width: 39px; height: 39px; }
  .atlas-heading { padding: 0 49px 11px 4px; }
  .atlas-heading .context-label { font-size: 7px; }
  .atlas-heading .ghost-title { margin-top: 8px; font-size: 23px; }
  .atlas-heading > p:last-child { margin-top: 10px; font-size: 9px; }
  .atlas-viewport { border-radius: 13px; }
  /* Counterweight for the wider mobile atlas overview: Islands remain large
     enough to read while their centres move close enough to reveal neighbours. */
  .atlas-island { --atlas-island-scale: .96; }
  .atlas-card .ghost-foot { flex-basis: 42px; font-size: 6px; }
  .island-explain { left: 50%; width: min(310px, calc(100% - 24px)); }
  .island-explain-frame { min-height: 185px; padding: 12px; grid-template-columns: 38px 1fr 38px; grid-template-rows: 38px 1fr 38px; }
  .island-explain-arrow { width: 29px; height: 29px; }
  .island-explain-copy { min-width: 190px; }
  .island-explain-copy strong { gap: 5px; font-size: 9px; }
}
.journey-inhoud { display: flex; flex-direction: column; }
.pad-lead {
  max-width: 500px;
  margin: 20px 0 18px;
  color: var(--ghost-ink);
  font-size: 13px;
  line-height: 1.5;
}
.pad-tijdlijn {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  padding: 4px 8px 10px 2px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--ghost-dash) transparent;
}
.pad-hoofdstuk { position: relative; }
.pad-hoofdstuk + .pad-hoofdstuk { margin-top: 17px; }
.pad-overgang {
  position: relative;
  margin: 0 0 9px 13px;
  padding-left: 16px;
  color: var(--ghost-soft);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .15em;
}
.pad-overgang::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 9px;
  height: 1px;
  background: currentColor;
}
.pad-hoofdstuk-kop {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 10px 13px 11px;
  border: 1px solid var(--ghost-dash);
  border-radius: 13px;
  background: rgba(255, 255, 255, .28);
  color: var(--ghost-ink);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 160ms ease, transform 160ms ease;
}
.pad-hoofdstuk-kop:hover,
.pad-hoofdstuk-kop:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, .62);
  transform: translateX(3px);
}
.pad-hoofdstuk-kop:focus-visible { box-shadow: inset 0 0 0 1.5px var(--ghost-ink); }
.pad-hoofdstuk-kop:disabled { opacity: .45; cursor: wait; }
.pad-hoofdstuk-kop small {
  margin-bottom: 4px;
  color: var(--ghost-soft);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: .15em;
}
.pad-hoofdstuk-kop strong {
  overflow: hidden;
  font-size: 16px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pad-hoofdstuk-kop em {
  margin-top: 4px;
  color: var(--ghost-soft);
  font-size: 10px;
  font-style: normal;
}
.pad-hoofdstuk-momenten {
  position: relative;
  margin: 2px 0 0 9px;
}
.pad-hoofdstuk-momenten::before {
  content: "";
  position: absolute;
  left: 33px;
  top: 0;
  bottom: 18px;
  width: 1px;
  background: var(--ghost-dash);
}
.pad-moment {
  position: relative;
  width: 100%;
  min-height: 79px;
  padding: 8px 12px 8px 0;
  display: grid;
  grid-template-columns: 74px 1fr;
  align-items: center;
  gap: 13px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: var(--ghost-ink);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: background 160ms ease, transform 160ms ease;
}
.pad-moment.is-departure .pad-mini {
  border-color: var(--island-accent);
  background: rgba(133, 211, 220, .22);
  box-shadow: 0 7px 18px rgba(66, 125, 132, .16);
}
.pad-moment.is-departure .pad-moment-tekst small { color: #3e7d84; }
.pad-moment:hover,
.pad-moment:focus-visible {
  outline: none;
  background: rgba(255, 255, 255, .58);
  transform: translateX(5px);
}
.pad-moment:focus-visible { box-shadow: inset 0 0 0 1.5px var(--ghost-ink); }
.pad-moment:disabled { opacity: .45; cursor: wait; }
.pad-mini {
  position: relative;
  z-index: 1;
  width: 68px;
  height: 68px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--ghost-dash);
  border-radius: 13px;
  background: rgba(252, 252, 250, .5);
  color: var(--ghost-ink);
  box-shadow: 0 6px 16px rgba(35, 31, 28, .09);
  font-size: 27px;
}
.pad-mini img { width: 100%; height: 100%; display: block; object-fit: contain; padding: 5px; }
.pad-moment-tekst { min-width: 0; display: flex; flex-direction: column; }
.pad-moment-tekst small {
  margin-bottom: 4px;
  color: var(--ghost-soft);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .15em;
}
.pad-moment-tekst strong {
  overflow: hidden;
  color: var(--ghost-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.13;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pad-moment-tekst em {
  margin-top: 4px;
  color: var(--ghost-soft);
  font-size: 10px;
  font-style: normal;
}
.pad-leeg {
  margin: auto;
  color: var(--ghost-soft);
  font-size: 17px;
  text-align: center;
}
.pad-vergeet {
  align-self: center;
  margin: 10px 0 1px;
  padding: 4px 2px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: var(--ghost-soft);
  cursor: pointer;
  font: inherit;
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: border-color 150ms ease, color 150ms ease;
}
.pad-vergeet:hover,
.pad-vergeet:focus-visible {
  outline: none;
  border-color: currentColor;
  color: var(--ghost-ink);
}
.pad-vergeet.is-armed { color: var(--ghost-ink); }
.pad-vergeet[hidden] { display: none; }

/* ── Responsive and input modes ───────────────────────────────────────── */

@media (hover: none) {
  .veld-kaart:active { z-index: 100000 !important; }
}

@media (min-width: 761px) and (max-width: 1199px) {
  :root {
    --veld-b: 182.4px;
    --veld-h: 258.4px;
    --veld-schaal: .76;
  }
}

@media (max-width: 760px) {
  :root {
    --veld-b: 134.4px;
    --veld-h: 190.4px;
    --veld-schaal: .56;
  }
  .site-corner { width: 112px; height: 112px; }
  .site-corner-vel {
    -webkit-clip-path: path('M0 0H112 C93.33 7.33 74 20.67 63.33 36 C57.33 44 54.67 51.33 60 60 C51.33 54.67 44 57.33 36 63.33 C20.67 74 7.33 93.33 0 112Z');
    clip-path: path('M0 0H112 C93.33 7.33 74 20.67 63.33 36 C57.33 44 54.67 51.33 60 60 C51.33 54.67 44 57.33 36 63.33 C20.67 74 7.33 93.33 0 112Z');
  }
  .site-menu-panel {
    top: calc(72px + env(safe-area-inset-top, 0px));
    left: calc(8px + env(safe-area-inset-left, 0px));
    width: calc(100vw - 16px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    height: min(9999px, calc(100vh - 80px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    height: min(9999px, calc(100dvh - 80px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
    padding: 14px 14px 0;
    border-radius: 28px;
    clip-path: circle(0 at 26px -38px);
  }
  .site-menu-panel.site-menu-active { clip-path: circle(150vmax at 26px -38px); }
  .site-menu-items { padding-top: 14px; }
  .site-menu-logo { height: 26px; }
  .flip-kaart { width: min(92vw, calc(94vh * .70562)); }
  .flip-pane { border-radius: 22px; }
  /* Your Path is a journey navigator, not a miniature product reverse. On a
     narrow viewport it therefore always receives the full usable screen,
     including when it was opened from a Card. The desktop Card-bound form is
     deliberately preserved above this breakpoint. */
  .navigatie-kaart,
  .navigatie-kaart.is-card-bound {
    left: calc(10px + env(safe-area-inset-left, 0px));
    top: calc(10px + env(safe-area-inset-top, 0px));
    right: calc(10px + env(safe-area-inset-right, 0px));
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    width: auto;
    height: auto;
    padding: 10px 10px 0;
    border-radius: 25px;
    transform: none;
    transform-origin: center;
  }
  .navigatie-kaart .ghost-frame {
    padding: 14px 13px 11px;
    border-radius: 17px;
  }
  .navigatie-kaart .ghost-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
  }
  .navigatie-kaart .ghost-body { min-height: 0; }
  .navigatie-kaart .context-label {
    margin: 3px 48px 0 3px;
    font-size: 7px;
  }
  .navigatie-kaart .ghost-title {
    max-width: calc(100% - 48px);
    margin-top: 9px;
    font-size: 24px;
  }
  .navigatie-kaart .ghost-title::after {
    width: 48px;
    height: 2px;
    margin-top: 8px;
  }
  .navigatie-kaart .pad-lead {
    margin: 11px 2px 9px;
    font-size: 10px;
    line-height: 1.42;
  }
  .navigatie-kaart .pad-tijdlijn {
    padding: 3px 4px 8px 1px;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
  .navigatie-kaart .pad-hoofdstuk-kop { min-height: 48px; }
  .navigatie-kaart .pad-moment {
    min-height: 68px;
    grid-template-columns: 60px 1fr;
    gap: 9px;
  }
  .navigatie-kaart .pad-mini {
    width: 56px;
    height: 56px;
    border-radius: 11px;
  }
  .navigatie-kaart .pad-hoofdstuk-momenten::before { left: 27px; }
  .navigatie-kaart .pad-vergeet {
    min-height: 44px;
    margin: 1px 0 0;
    padding: 8px 7px;
  }
  .navigatie-kaart .ghost-cta {
    min-height: 48px;
    margin-top: 7px;
    padding: 10px;
    border-radius: 11px;
    font-size: 13px;
  }
  .navigatie-kaart .ghost-foot {
    flex-basis: 34px;
    padding: 0 8px;
    font-size: 5.5px;
  }

  .detail-canvas {
    width: 100%;
    height: 100%;
    padding: 10px 10px 0;
    border-radius: 22px;
    transform: none;
  }
  .detail-inner {
    padding: 4px;
    border-radius: 14px;
  }
  .detail-frame {
    flex: 1 1 auto;
    border-width: 1px;
    border-radius: 10px;
  }
  .detail-kop {
    min-height: 61px;
    padding: 10px 13px 9px;
    gap: 0;
  }
  .detail-kop h2 { font-size: 18px; line-height: 1.03; }
  .detail-merchant { margin-bottom: 3px; font-size: 7px; }
  .flip-achter .card-tools { margin-left: -6px; }
  .flip-achter .tools-tab { width: 42px; height: 42px; }
  .flip-achter .tools-tab svg { width: 23px; height: 23px; }
  .flip-achter .tools-tray { top: calc(100% + 8px); left: -3px; }
  .ronde-knop {
    width: 34px;
    height: 34px;
    padding-bottom: 3px;
    font-size: 22px;
  }
  .detail-beeldvak { flex-basis: 57%; }
  .detail-beeldvak::after { height: 34px; }
  #detail-beeld { max-height: none; padding: 0; }
  .detail-info { padding: 9px 12px 9px; }
  .detail-prijs { margin-bottom: 7px; font-size: 19px; }
  .detail-beschrijving {
    margin-bottom: 8px;
    font-size: 11px;
    line-height: 1.34;
    -webkit-line-clamp: 2;
  }
  .kaart-navigatie { margin-bottom: 7px; padding: 6px; border-radius: 8px; }
  .kaart-nav-kop > span { font-size: 6px; }
  .kaart-routes { margin-top: 5px; gap: 4px; }
  .kaart-route { min-height: 28px; padding: 4px 5px; font-size: 6.5px; }
  .detail-acties { gap: 6px; }
  .koop-link,
  .verken-knop {
    min-height: 40px;
    border-radius: 7px;
    font-size: 10px;
  }
  .verken-overlay {
    bottom: 38px;
    max-width: calc(100% - 24px);
  }
  .verken-knop { padding-right: 14px; padding-left: 14px; }
  .kaart-lage-acties { flex-basis: 58px; }
  .waarom-knop,
  .current-knop { padding: 0 11px; }
  .waarom-knop span,
  .current-knop span { font-size: 12px; }
  .waarom-knop small,
  .current-knop small { margin-bottom: 1px; font-size: 5.5px; }
  .waarom-knop b,
  .current-knop b { font-size: 17px; }
  .detail-voet {
    flex-basis: 34px;
    margin: 0 -10px;
    padding: 0 15px 1px;
    font-size: 6px;
  }
  .detail-voet button { gap: 5px; padding: 5px 2px 5px 7px; font-size: 7px; }
  .detail-voet button b { top: -1px; font-size: 17px; }
}

/* kenjemenog.nl switches its physical card to the tablet size from 700px. */
@media (min-width: 700px) and (max-width: 760px) {
  :root {
    --veld-b: 182.4px;
    --veld-h: 258.4px;
    --veld-schaal: .76;
  }
}

@media (max-width: 760px) and (max-height: 600px) {
  .navigatie-kaart .context-label,
  .navigatie-kaart .pad-lead,
  .navigatie-kaart .ghost-foot { display: none; }
  .navigatie-kaart .ghost-title {
    margin-top: 2px;
    font-size: 20px;
  }
  .navigatie-kaart .ghost-frame { padding-bottom: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
  .kaart-modal::before,
  .veld-kaart,
  .site-menu-scrim,
  .site-menu-panel,
  .site-menu-close { transition-duration: .01ms !important; }
  /* Essential motion: the flip explains that the product and its interface
     are two sides of one Card. Windows' animation preference must not erase
     this core interaction, although decorative motion still reduces above. */
  .flip-kaart,
  .flip-stage { transition-duration: var(--duur) !important; }
  .kaart-modal.is-open .flip-stage { transition-delay: 90ms !important; }
  #laag.is-toets-glide { transition-duration: .01ms !important; }
  .drag-hint { transition-duration: .01ms !important; }
  .card-beeld img { opacity: 1; transform: scale(1); }
}

@media (forced-colors: active) {
  .card-canvas,
  .detail-canvas,
  .ghostcard { border: 2px solid CanvasText; }
  .veld-kaart.is-root > .card-canvas,
  .veld-kaart.is-island-anchor > .card-canvas { outline: 3px solid Highlight; }
  .relatie-lijn { background: CanvasText; }
  .relatie-punt { background: Highlight; border-color: Canvas; }
}
