/* Copenhagen.run — main stylesheet
 * Warm paper, harbour green, a little terracotta. Fraunces for display,
 * Inter for everything else. No framework, no build step.
 *
 *  1. Fonts & tokens      7. Hero & widget        13. Clubs & stores
 *  2. Base                8. Weather              14. Guides & prose
 *  3. Layout              9. Events               15. Detail pages & maps
 *  4. Type               10. Routes               16. Forms, notices, ads
 *  5. Buttons & tags     11. Find My Run result   17. Footer & consent
 *  6. Header & nav       12. Sections & bands     18. Motion & print
 */

/* 1. Fonts & tokens ------------------------------------------------------ */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-italic.woff2") format("woff2");
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #F6F1E7;
  --card: #FBF8F2;
  --sand: #EDE4D3;
  --ink: #1C1B19;
  --muted: #6B655C;
  --line: #DDD5C6;
  --green: #0E4D45;
  --green-deep: #093A34;
  --green-tint: #E1E9E2;
  --terra: #C8553D;
  --terra-tint: #F4DED6;
  --amber: #A97A22;

  --serif: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 6px;
  --r: 8px;
  --r-lg: 10px;
  --header-h: 68px;
  --gutter: 16px;
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 700px) { :root { --gutter: 28px; } }
@media (min-width: 1100px) { :root { --gutter: 40px; } }

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background-color: var(--paper);
  /* A whisper of paper grain. */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .3 0 0 0 0 .22 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--green); color: var(--paper); }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
hr { border: 0; border-top: 1px solid var(--line); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r);
}
.skip:focus { top: 12px; color: var(--paper); }

/* 3. Layout -------------------------------------------------------------- */
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.band { background: var(--sand); }
.split { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
}
.split__aside { display: grid; gap: 24px; }
.two-col { display: grid; gap: 8px 40px; }
@media (min-width: 700px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* 4. Type ---------------------------------------------------------------- */
.kicker {
  margin: 0 0 10px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--muted);
}
.display {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  letter-spacing: -.02em;
  line-height: 1.02;
  color: var(--ink);
  text-wrap: balance;
}
.display em, .section-title em { font-style: italic; color: var(--green); }
.display--xl { font-size: clamp(2.6rem, 6.5vw, 5.4rem); }
.display--lg { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.display--md { font-size: clamp(2rem, 3.6vw, 3rem); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section-title {
  margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: -.015em; line-height: 1.08; text-wrap: balance;
}
.subhead { font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: -.01em; margin: 40px 0 14px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.55; color: var(--ink); margin: 0 0 20px; }
.arrow-link {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9375rem;
  text-decoration: none; color: var(--green);
}
.arrow-link span { transition: transform .2s var(--ease); }
.arrow-link:hover span { transform: translateX(3px); }
.empty { color: var(--muted); padding: 24px 0; }

/* 5. Buttons & tags ------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border-radius: var(--r);
  border: 1px solid transparent; font-weight: 600; font-size: .9375rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--green); color: var(--paper); }
.btn--primary:hover { background: var(--green-deep); color: var(--paper); }
.btn--ghost { background: transparent; border-color: #CFC5B2; color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--text { background: none; padding-inline: 6px; color: var(--green); text-decoration: underline; text-underline-offset: .2em; }
.btn--sm { min-height: 38px; padding: 8px 14px; font-size: .875rem; }
.btn--block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; color: inherit; font-size: inherit; }

.tag {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  background: var(--green-tint); color: var(--green);
}
.tag--accent { background: var(--terra-tint); color: #9D3F2B; }
.tag--sponsored { background: var(--ink); color: var(--paper); }
.tag--line { background: transparent; border: 1px solid var(--line); color: var(--muted); }

.chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: .875rem; font-weight: 500; text-decoration: none; white-space: nowrap;
  transition: border-color .15s, background-color .15s, color .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { background: var(--green); border-color: var(--green); color: var(--paper); }
.filters { margin-bottom: 24px; }
.filters ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; font-size: .8125rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #B9AE9B; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green); text-decoration: underline; }

/* 6. Header & nav -------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(246, 241, 231, .96); border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled, body:not(.home) .site-header { border-bottom-color: var(--line); }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  height: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter);
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-weight: 600; font-size: 1.35rem; letter-spacing: -.015em; line-height: 1;
}
.wordmark:hover { color: var(--ink); }
.wordmark em { font-style: italic; font-weight: 500; color: var(--green); }
.wordmark__mark { width: 30px; height: 30px; flex: none; }
.wordmark__mark path { fill: none; stroke: var(--green); stroke-width: 2.6; stroke-linecap: round; }
.wordmark__mark circle { fill: var(--terra); }
.wordmark--lg { font-size: 1.9rem; color: inherit; }

.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) {
  position: relative; display: inline-block; padding: 8px 12px; border-radius: var(--r-sm);
  font-size: .9375rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.site-nav a:not(.btn):hover { background: var(--sand); color: var(--ink); }
.site-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--green);
}
.site-nav__cta { margin-left: 10px; }
.menu-btn { display: none; }

@media (max-width: 899px) {
  .menu-btn {
    display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; font-size: .875rem; font-weight: 600;
  }
  .menu-btn__icon { position: relative; width: 16px; height: 10px; border-block: 2px solid var(--ink); transition: transform .2s; }
  .menu-btn__close { display: none; }
  .menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
  .menu-btn[aria-expanded="true"] .menu-btn__close { display: inline; }
  .menu-btn[aria-expanded="true"] .menu-btn__icon { border-bottom-color: transparent; transform: translateY(2px); }
  .site-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    box-shadow: 0 18px 30px -24px rgba(28, 27, 25, .35);
  }
  .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav a:not(.btn) { display: block; padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-family: var(--serif); font-size: 1.35rem; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav a[aria-current="page"] { color: var(--green); }
  .site-nav__cta { margin: 16px 0 0; }
  .site-nav__cta .btn { width: 100%; min-height: 46px; }
  html:not(.js) .site-nav { display: block; position: static; box-shadow: none; }
  html:not(.js) .menu-btn { display: none; }
}
@media (max-width: 380px) { .wordmark { font-size: 1.15rem; } .wordmark__mark { width: 26px; height: 26px; } }

/* 7. Hero & widget ------------------------------------------------------- */
/* The photo fills the whole hero; headline and widget sit on top of it. */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--sand); }
.hero__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* Phones: the photo is scaled to the tall hero; extending it upwards lifts the
   runner into the gap between headline and widget. It still covers the hero. */
@media (max-width: 899px) { .hero .hero__media picture { top: -62%; } }
.hero__media picture { position: absolute; inset: 0; }
.hero__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: var(--hero-focus-sm, 50% 50%);
  transform: scale(1.06); transform-origin: 50% 45%; will-change: transform;
  animation: hero-drift 32s ease-in-out infinite alternate;
}
/* Slow drift-and-zoom, like a camera breathing in over the Marble Bridge. */
@keyframes hero-drift {
  0%   { transform: scale(1.06) translate3d(-1.2%, .8%, 0); }
  50%  { transform: scale(1.12) translate3d(.6%, -.8%, 0); }
  100% { transform: scale(1.17) translate3d(1.4%, -1.6%, 0); }
}
/* A band of warm light drifting across, as when clouds move off the sun. */
.hero__light {
  position: absolute; inset: -20%; pointer-events: none; mix-blend-mode: soft-light; opacity: .55;
  background: radial-gradient(38% 46% at 30% 40%, rgba(255, 228, 170, .95), rgba(255, 228, 170, 0) 70%);
  animation: hero-light 19s ease-in-out infinite alternate;
}
@keyframes hero-light {
  0%   { transform: translate3d(-18%, 6%, 0); opacity: .25; }
  50%  { opacity: .6; }
  100% { transform: translate3d(34%, -8%, 0); opacity: .35; }
}
/* Paper veil: keeps the headline legible and blends the photo into the page. */
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(246, 241, 231, .94) 0%, rgba(246, 241, 231, .78) 22%, rgba(246, 241, 231, .05) 46%, rgba(246, 241, 231, 0) 70%, rgba(246, 241, 231, .55) 100%);
}
.hero.is-paused .hero__img, .hero.is-paused .hero__light,
.hero.is-offscreen .hero__img, .hero.is-offscreen .hero__light { animation-play-state: paused; }

.hero__grid { position: relative; display: grid; gap: 20px; padding-block: 22px 64px; }
.hero__copy { min-width: 0; }
.hero__widget { min-width: 0; margin-top: min(74vw, 340px); }
.hero__kicker { margin-bottom: 8px; color: #4E4A43; }
.hero__title { font-size: clamp(3rem, 13vw, 4.2rem); font-weight: 500; line-height: .95; letter-spacing: -.035em; }
.hero__title .dot { color: var(--terra); }
.hero__lede { margin: 14px 0 0; max-width: 32em; font-size: 1.0625rem; line-height: 1.5; color: #2E2B27; }
.hero__lede [lang="da"] { font-style: italic; font-family: var(--serif); color: var(--green); }
.hero .widget { background: rgba(251, 248, 242, .97); box-shadow: 0 1px 0 rgba(28, 27, 25, .04), 0 24px 48px -28px rgba(28, 27, 25, .55); }

.hero__meta {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none;
}
.hero__credit, .hero__toggle {
  pointer-events: auto; display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 5px 11px;
  background: rgba(246, 241, 231, .92); color: var(--ink); border: 0; border-radius: 999px;
  font-size: .75rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.hero__credit:hover { color: var(--green); }
.hero__toggle-icon { width: 9px; height: 10px; border-inline: 3px solid currentColor; }
.hero.is-paused .hero__toggle-icon { border: 0; border-left: 9px solid currentColor; border-block: 5px solid transparent; width: 0; height: 0; }
.hero__toggle-play, .hero.is-paused .hero__toggle-pause { display: none; }
.hero.is-paused .hero__toggle-play { display: inline; }

@media (min-width: 900px) {
  .hero__img { object-position: var(--hero-focus, 50% 50%); }
  .hero__veil {
    background:
      linear-gradient(90deg, rgba(246, 241, 231, .96) 0%, rgba(246, 241, 231, .9) 33%, rgba(246, 241, 231, .55) 45%, rgba(246, 241, 231, 0) 60%),
      linear-gradient(180deg, rgba(246, 241, 231, 0) 72%, rgba(246, 241, 231, .5) 100%);
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); align-items: center; gap: clamp(32px, 6vw, 120px);
    min-height: clamp(560px, calc(100svh - var(--header-h)), 860px); padding-block: 32px 56px;
  }
  .hero__widget { margin-top: 0; }
  .hero__copy { max-width: 560px; }
  .hero__lede { max-width: 28em; }
  .hero__title { font-size: clamp(3.4rem, min(6.6vw, 12vh), 6.8rem); }
  .hero__lede { margin-top: clamp(12px, 2vh, 22px); font-size: clamp(1.05rem, 1.3vw, 1.2rem); }
  .hero__meta { bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero__img, .hero__light { animation: none !important; }
  .hero__light { opacity: .3; }
}

/* Widget */
.widget {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; box-shadow: 0 1px 0 rgba(28, 27, 25, .03), 0 12px 30px -24px rgba(28, 27, 25, .35);
  transition: opacity .2s;
}
.widget.is-loading { opacity: .6; pointer-events: none; }
.widget__form { display: grid; gap: 12px; margin-top: 14px; }
.widget.has-result .widget__form { display: none; }
.widget__result:not([hidden]) { margin-top: 14px; }
.seg { margin: 0; padding: 0; border: 0; min-width: 0; }
.seg__legend { padding: 0; margin-bottom: 7px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
.seg__opts { display: grid; gap: 6px; }
.seg__opts--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.seg__opts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 420px) { .seg__opts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.seg__opt { position: relative; display: block; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span {
  display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 4px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper);
  font-size: .875rem; font-weight: 500; white-space: nowrap; text-align: center; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.seg__opt:hover span { border-color: #B9AE9B; }
.seg__opt input:checked + span { background: var(--green); border-color: var(--green); color: var(--paper); font-weight: 600; }
.seg__opt input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.widget__submit { margin-top: 2px; }
@media (min-width: 900px) and (max-height: 720px) {
  .widget { padding: 14px; }
  .widget__form { gap: 10px; margin-top: 12px; }
  .seg__opt span { min-height: 36px; }
  .btn.widget__submit { min-height: 42px; }
}

/* 8. Weather ------------------------------------------------------------- */
.wx { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.wx__temp { grid-row: span 2; margin: 0; font-family: var(--serif); font-size: 2.6rem; font-weight: 500; line-height: 1; letter-spacing: -.03em; color: var(--green); }
.wx__now p { margin: 0; }
.wx__place { font-size: .8125rem; font-weight: 600; color: var(--ink); }
.wx__place span { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.wx__line { font-size: .8125rem; color: var(--muted); }
.wx__cond { grid-column: 2; margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: .8125rem; color: var(--muted); }
.wx__badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--green-tint); color: var(--green); font-weight: 700; font-size: .75rem; }
.wx__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wx[data-cond="fair"] .wx__badge { background: #F3E7CC; color: #7E5A14; }
.wx[data-cond="tough"] .wx__badge { background: var(--terra-tint); color: #9D3F2B; }
.wx--none { display: block; }
.wx__none { margin: 2px 0 0; font-size: .875rem; color: var(--muted); }
@media (max-width: 420px) { .wx__cond { grid-column: 1 / -1; } }

/* 9. Events -------------------------------------------------------------- */
.event-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.event-row { border-bottom: 1px solid var(--line); }
.event-row__link {
  display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 4px 14px; align-items: start;
  padding: 18px 4px; color: var(--ink); text-decoration: none; transition: background-color .15s;
}
.event-row__link:hover { background: var(--card); color: var(--ink); }
.event-row__date { display: flex; flex-direction: column; line-height: 1; }
.event-row__day { font-family: var(--serif); font-size: 2.1rem; font-weight: 500; letter-spacing: -.03em; color: var(--green); font-variant-numeric: lining-nums; white-space: nowrap; }
.event-row__mon { margin-top: 6px; font-size: .75rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.event-row--tba .event-row__day { color: #B9AE9B; }
.event-row__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.event-row__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.event-row__meta { font-size: .875rem; font-weight: 500; color: var(--ink); }
.event-row__place { color: var(--muted); font-weight: 400; }
.event-row__summary { font-size: .9375rem; color: var(--muted); max-width: 62ch; }
.event-row__end { grid-column: 2; display: flex; align-items: center; gap: 10px; }
.event-row__arrow { display: none; color: var(--green); font-size: 1.2rem; transition: transform .2s var(--ease); }
.event-row__link:hover .event-row__arrow { transform: translateX(4px); }
.event-row--featured .event-row__name { font-size: 1.6rem; }
.event-list__ad { list-style: none; padding: 18px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 760px) {
  .event-row__link { grid-template-columns: 110px minmax(0, 1fr) auto; padding: 24px 12px; align-items: center; }
  .event-row__day { font-size: 2.8rem; }
  .event-row__end { grid-column: auto; }
  .event-row__arrow { display: inline; }
}

/* 10. Routes ------------------------------------------------------------- */
.route-grid { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 640px) { .route-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .route-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.route-grid--three { margin-top: clamp(32px, 5vw, 56px); }
.route-grid--compact { margin-top: 8px; }
@media (min-width: 1000px) { .route-grid--compact { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.route-grid__ad { list-style: none; }
.route-card { min-width: 0; }
.route-card__link {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  color: var(--ink); text-decoration: none; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.route-card__link:hover { color: var(--ink); border-color: #C9BEA9; transform: translateY(-2px); box-shadow: 0 16px 30px -26px rgba(28, 27, 25, .5); }
.route-card__media {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden;
  background-color: var(--sand);
  background-image: radial-gradient(rgba(14, 77, 69, .14) 1px, transparent 1.2px);
  background-size: 14px 14px;
}
.route-card__media img { width: 100%; height: 100%; object-fit: cover; }
.route-card__media .route-sig { width: 100%; height: 100%; }
.route-card__km {
  position: absolute; left: 12px; bottom: 12px; padding: 4px 10px 5px; border-radius: var(--r-sm);
  background: var(--paper); font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.1; letter-spacing: -.01em;
}
.route-card__km small { font-family: var(--sans); font-size: .75rem; font-weight: 600; color: var(--muted); }
.route-card__body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 18px; flex: 1; }
.route-card__types { font-size: .75rem; font-weight: 600; color: var(--green); letter-spacing: .02em; }
.route-card__name { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.route-card__summary { font-size: .9375rem; color: var(--muted); line-height: 1.5; }
.route-card__meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: auto; padding-top: 10px; font-size: .8125rem; color: var(--muted); }
.route-card__meta span + span::before { content: "·"; margin-right: 12px; color: #B9AE9B; }

.route-sig__line { fill: none; stroke: var(--green); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.route-sig__start { fill: var(--paper); stroke: var(--terra); stroke-width: 3; vector-effect: non-scaling-stroke; }
.route-sig--draw .route-sig__line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.6s var(--ease) .1s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* Route of the week */
.feature { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .feature { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.feature__art a {
  display: block; aspect-ratio: 5 / 4; border-radius: var(--r-lg); overflow: hidden; background-color: var(--paper);
  background-image: radial-gradient(rgba(14, 77, 69, .13) 1px, transparent 1.2px); background-size: 16px 16px;
}
.feature__art .route-sig, .feature__art img { width: 100%; height: 100%; object-fit: cover; }
.feature__km { margin: 14px 0 0; font-size: .9375rem; color: var(--muted); }
.feature__km strong { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--green); margin-right: 2px; }
.feature__text { font-size: 1.0625rem; margin: 12px 0 20px; max-width: 46ch; }
.feature__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin: 24px 0 0; }

/* Fact lists */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 0; border-top: 1px solid rgba(28, 27, 25, .14); }
.facts div { padding: 10px 12px 10px 0; border-bottom: 1px solid rgba(28, 27, 25, .14); }
.facts dt { font-size: .75rem; font-weight: 600; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-size: .9375rem; font-weight: 500; }
.facts--stack { grid-template-columns: 1fr; border-color: var(--line); }
.facts--stack div { border-color: var(--line); }

/* 11. Find My Run result ------------------------------------------------- */
.result { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; }
.result--enter { animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result__art {
  aspect-ratio: 1; border-radius: var(--r); background-color: var(--sand);
  background-image: radial-gradient(rgba(14, 77, 69, .14) 1px, transparent 1.2px); background-size: 10px 10px;
}
.result__art .route-sig { width: 100%; height: 100%; }
.result__body .kicker { margin-bottom: 4px; }
.result__name { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.45rem; line-height: 1.1; letter-spacing: -.01em; }
.result__km { margin: 6px 0 0; font-size: .875rem; color: var(--muted); }
.result__km strong { color: var(--green); font-size: 1rem; }
.result__note { margin: 8px 0 0; padding: 6px 10px; border-radius: var(--r-sm); background: var(--terra-tint); color: #7F3422; font-size: .8125rem; }
.result__facts { margin: 6px 0 0; font-size: .8125rem; color: var(--muted); }
.result__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.result__alts { margin: 10px 0 0; font-size: .8125rem; color: var(--muted); }
.result__alts span { font-weight: 600; color: var(--ink); }
.result__change { margin-top: 6px; padding-left: 0; font-size: .8125rem; }
.find-page .widget { max-width: 640px; }
.find-page .widget__result .result { grid-template-columns: 140px minmax(0, 1fr); }

/* 12. Sections & bands --------------------------------------------------- */
.page-head { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(8px, 2vw, 16px); }
.page-head .display { max-width: 18ch; }
.page-head__lede { max-width: 60ch; margin: 18px 0 0; font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: #3B3833; }

.editorial { background: var(--sand); }
.editorial__grid { display: grid; gap: 24px 64px; }
@media (min-width: 900px) { .editorial__grid { grid-template-columns: 1fr 1.25fr; } }
.editorial__text p { max-width: 60ch; }
.guide-links { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid rgba(28, 27, 25, .14); }
.guide-links a {
  display: flex; justify-content: space-between; gap: 16px; padding: 14px 2px; border-bottom: 1px solid rgba(28, 27, 25, .14);
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500; color: var(--ink); text-decoration: none;
}
.guide-links a:hover { color: var(--green); }
.stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 24px; margin-top: clamp(40px, 6vw, 72px); padding-top: 32px;
  /* Hairline inside the gutters (the element itself spans them). */
  background: linear-gradient(rgba(28, 27, 25, .14), rgba(28, 27, 25, .14)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats strong { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 500; letter-spacing: -.03em; line-height: 1; color: var(--green); }
.stats small { font-size: .45em; font-weight: 600; letter-spacing: 0; }
.stats span { display: block; margin-top: 8px; font-size: .875rem; color: var(--muted); max-width: 22ch; }

/* FAQ */
.faq__list { border-top: 1px solid var(--line); max-width: 920px; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 2px;
  font-family: var(--serif); font-size: 1.2rem; font-weight: 500; line-height: 1.3; cursor: pointer; list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--green); }
.faq__icon { position: relative; flex: none; width: 14px; height: 14px; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 0; top: 6px; width: 14px; height: 2px; border-radius: 2px; background: var(--green); transition: transform .2s; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__a { padding: 0 2px 20px; max-width: 70ch; color: #3B3833; }
.faq__a p { margin: 0; }

/* På dansk */
.da-note { border-top: 1px solid var(--line); padding-block: clamp(36px, 5vw, 56px); }
.da-note__inner { display: grid; gap: 10px 48px; }
@media (min-width: 800px) { .da-note__inner { grid-template-columns: 180px minmax(0, 1fr); } }
.da-note__label { margin: 4px 0 0; font-size: .8125rem; font-weight: 700; letter-spacing: .04em; color: var(--terra); }
.da-note__title { margin: 0 0 10px; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; letter-spacing: -.01em; }
.da-note__body { max-width: 72ch; }
.da-note__body p { margin: 0 0 10px; color: #3B3833; }

/* Offer grid (advertise) */
.offer-grid { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .offer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.offer-grid li { padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.offer-grid .kicker { color: var(--terra); }
.offer-grid h2 { margin: 0 0 8px; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; }
.offer-grid p:last-child { margin: 0; color: var(--muted); font-size: .9375rem; }

/* 13. Clubs & stores ----------------------------------------------------- */
.club-grid { display: grid; gap: 18px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 700px) { .club-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .club-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.club {
  display: flex; flex-direction: column; padding: 20px; min-width: 0;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.club--featured { border-color: #C9BEA9; }
.club__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.club__name { margin: 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.2; letter-spacing: -.01em; }
.club__facts { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 4px 10px; margin: 14px 0 12px; font-size: .875rem; }
.club__facts div { display: contents; }
.club__facts dt { color: var(--muted); }
.club__facts dd { margin: 0; font-weight: 500; }
.club__desc { margin: 0 0 14px; font-size: .9375rem; color: #3B3833; }
.club__links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: auto 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.club__links--none { font-size: .875rem; color: var(--muted); }
.club-grid__ad { list-style: none; }

.store-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.store { display: grid; gap: 10px 32px; padding: 22px 2px; border-bottom: 1px solid var(--line); }
@media (min-width: 700px) { .store { grid-template-columns: minmax(0, 1fr) 240px; } }
.store__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.store__name { margin: 0 6px 0 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.store__desc { margin: 8px 0 6px; font-size: .9375rem; color: #3B3833; }
.store__cats { margin: 0; font-size: .8125rem; color: var(--green); font-weight: 500; }
.store__side p { margin: 0; }
.store__area { font-size: .75rem; font-weight: 600; color: var(--muted); }
.store__addr { margin: 2px 0 8px !important; font-size: .9375rem; }

/* Sponsored cards */
.sponsor__link {
  display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--r-lg);
  background: var(--green); color: var(--paper); text-decoration: none;
}
.sponsor__link:hover { background: var(--green-deep); color: var(--paper); }
.sponsor--house .sponsor__link { background: var(--card); color: var(--ink); border: 1px dashed #C9BEA9; }
.sponsor--house .sponsor__link:hover { background: var(--paper); color: var(--ink); border-color: var(--green); }
.sponsor__img { border-radius: var(--r); margin-bottom: 6px; }
.sponsor__label { font-size: .75rem; font-weight: 700; letter-spacing: .03em; opacity: .75; }
.sponsor--house .sponsor__label { color: var(--terra); opacity: 1; }
.sponsor__title { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.sponsor__text { font-size: .9375rem; opacity: .85; }
.sponsor__cta { margin-top: 4px; font-weight: 600; font-size: .9375rem; color: inherit; }
.sponsor--house .sponsor__cta { color: var(--green); }
.sponsor--card, .sponsor--card .sponsor__link { height: 100%; }
.sponsor--card .sponsor__link { justify-content: center; }

/* 14. Guides & prose ----------------------------------------------------- */
.guide-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.guide-row {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: start;
  padding: 22px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: background-color .15s;
}
.guide-row:hover { background: var(--card); color: var(--ink); }
.guide-row__num { font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--terra); line-height: 1.2; }
.guide-row__main { display: flex; flex-direction: column; gap: 2px; }
.guide-row__main .kicker { margin: 0; }
.guide-row__title { font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 500; line-height: 1.2; letter-spacing: -.01em; }
.guide-row__desc { margin-top: 4px; color: var(--muted); font-size: .9375rem; max-width: 64ch; }
.guide-row__arrow { color: var(--green); font-size: 1.3rem; line-height: 1.6; }
.guide-list--compact .guide-row { grid-template-columns: minmax(0, 1fr) auto; }

.article__head { padding-top: clamp(24px, 4vw, 48px); }
.article__head .display { max-width: 20ch; }
.article__meta { margin: 16px 0 0; font-size: .875rem; color: var(--muted); }
.article__grid { display: grid; gap: 40px; padding-block: 32px 64px; }
@media (min-width: 1000px) { .article__grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; } }
.article__side { display: grid; gap: 24px; align-content: start; }

.prose { max-width: 68ch; font-size: 1.0625rem; line-height: 1.7; }
.prose--narrow { max-width: 760px; }
.prose > :first-child { margin-top: 0; }
.prose h2 { margin: 2em 0 .5em; font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.2; letter-spacing: -.015em; }
.prose h3 { margin: 1.6em 0 .4em; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; }
.prose p { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--green); }
.prose blockquote { margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--terra); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.prose code { font-size: .875em; background: var(--sand); padding: 1px 5px; border-radius: 4px; }
.prose .lead { font-size: clamp(1.15rem, 1.7vw, 1.35rem); }

/* 15. Detail pages & maps ------------------------------------------------ */
.detail-head { padding-top: clamp(24px, 4vw, 48px); padding-bottom: 28px; }
.detail-head .display--xl { font-size: clamp(2.5rem, 6vw, 4.8rem); max-width: 16ch; }
.detail-head__da { margin: 10px 0 0; font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--green); }
.detail-head__grid { display: grid; gap: 18px 36px; align-items: end; }
@media (min-width: 760px) { .detail-head__grid { grid-template-columns: auto minmax(0, 1fr); } }
.detail-head__when { margin: 14px 0 0; font-size: 1rem; color: #3B3833; }
.bigdate { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 132px; padding: 16px 18px; border-radius: var(--r-lg); background: var(--green); color: var(--paper); text-align: center; }
.bigdate__day { font-family: var(--serif); font-size: 3.6rem; font-weight: 500; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.bigdate__mon { margin-top: 6px; font-size: .8125rem; font-weight: 600; opacity: .85; white-space: nowrap; }
.statline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 28px 0 0; border-top: 1px solid var(--line); }
@media (min-width: 760px) { .statline { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.statline div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.statline dt { font-size: .75rem; font-weight: 600; color: var(--muted); }
.statline dd { margin: 4px 0 0; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; line-height: 1.2; }
.statline small { font-family: var(--sans); font-size: .8125rem; color: var(--muted); }

.detail-body { display: grid; gap: 40px; padding-block: 36px 64px; }
@media (min-width: 1000px) { .detail-body { grid-template-columns: minmax(0, 1fr) 300px; gap: 72px; } }
.detail-main { min-width: 0; }
.detail-side { display: grid; gap: 24px; align-content: start; }
.detail-photo { margin: 0 0 20px; border-radius: var(--r-lg); overflow: hidden; }

.map {
  position: relative; overflow: hidden; border-radius: var(--r-lg); border: 1px solid var(--line);
  background-color: var(--sand); background-image: radial-gradient(rgba(14, 77, 69, .12) 1px, transparent 1.2px); background-size: 16px 16px;
}
.map--lg { aspect-ratio: 4 / 3; }
@media (min-width: 760px) { .map--lg { aspect-ratio: 16 / 8; } }
.map--sm { aspect-ratio: 16 / 9; }
.map__fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center; color: var(--muted); font-size: .9375rem; }
.map__fallback .route-sig { width: 100%; height: 100%; }
.map.is-ready .map__fallback { visibility: hidden; }
.map .leaflet-container { font-family: var(--sans); background: var(--sand); }
/* Calm the default OSM palette towards the paper tones of the site. */
.map .leaflet-tile-pane { filter: saturate(.5) sepia(.18) contrast(.96) brightness(1.02); }
.cr-pin { width: 18px; height: 18px; border-radius: 50%; background: var(--terra); border: 3px solid var(--paper); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.map-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 2px 0; }
.map-bar p { margin: 0; display: flex; align-items: center; gap: 8px; font-size: .9375rem; }
.map-bar__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 3px solid var(--terra); }

.cta-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin: 32px 0; padding: 22px; border-radius: var(--r-lg); background: var(--green-tint);
}
.cta-box__title { margin: 0; font-family: var(--serif); font-size: 1.3rem; font-weight: 600; }
.cta-box__text { margin: 4px 0 0; max-width: 46ch; font-size: .9375rem; color: #3B3833; }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding: 8px 0 8px 26px; border-bottom: 1px solid var(--line); font-size: .9375rem; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 10px; height: 6px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
.ticks--note li::before { width: 7px; height: 7px; top: 16px; left: 3px; border: 0; border-radius: 50%; background: var(--terra); transform: none; }
.sticky-ad { position: sticky; top: calc(var(--header-h) + 20px); }

/* 404 */
.lost { padding-block: clamp(48px, 10vw, 120px); }
.lost__text { font-size: 1.2rem; color: #3B3833; margin: 18px 0 0; }
.lost__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 28px; }
.lost__loop { width: min(600px, 100%); margin-top: 48px; }
.lost__loop path { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 6 9; }
.lost__loop circle { fill: var(--paper); stroke: var(--terra); stroke-width: 3; }
.lost__loop .lost__x { stroke: var(--terra); stroke-dasharray: none; }

/* 16. Forms, notices, ads ------------------------------------------------ */
.form { display: grid; gap: 18px; max-width: 620px; }
.form__row { display: grid; gap: 6px; }
.form label { font-size: .875rem; font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #CFC5B2; border-radius: var(--r);
  background: var(--card); font: inherit; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.has-error input, .has-error textarea { border-color: var(--terra); }
.form__err { margin: 0; font-size: .8125rem; color: #9D3F2B; }
.form__small { margin: 0; font-size: .8125rem; color: var(--muted); }
.form__hp { position: absolute; left: -9999px; }
.notice { padding: 14px 18px; border-radius: var(--r); background: var(--terra-tint); color: #6B2C1E; font-size: .9375rem; }
.notice--ok { background: var(--green-tint); color: var(--green-deep); }

.ad { position: relative; display: block; margin-block: 32px; text-align: center; }
.ad__label { display: block; margin-bottom: 6px; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; color: var(--muted); text-align: left; }
.ad--leaderboard ins, .ad--leaderboard .ad__placeholder { min-height: 90px; }
.ad--in-feed ins, .ad--in-feed .ad__placeholder { min-height: 250px; }
.ad--in-article ins, .ad--in-article .ad__placeholder { min-height: 280px; }
.ad--sidebar ins, .ad--sidebar .ad__placeholder { min-height: 250px; }
@media (min-width: 1000px) { .ad--sidebar ins, .ad--sidebar .ad__placeholder { min-height: 600px; } }
.ad__placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border: 1px dashed #C9BEA9; border-radius: var(--r); background: var(--card); color: var(--muted); font-size: .8125rem;
}
.ad:has(ins[data-ad-status="unfilled"]) { display: none; }
.event-list__ad:has(.ad) .ad, .route-grid__ad .ad { margin: 0; }

/* 17. Footer & consent --------------------------------------------------- */
.site-footer { margin-top: 0; background: var(--green); color: #E7EEE8; }
.site-footer a { color: #F6F1E7; }
.site-footer__grid { display: grid; gap: 40px; padding-block: 56px 36px; }
@media (min-width: 800px) { .site-footer__grid { grid-template-columns: 1.2fr 1fr; } }
.site-footer .wordmark { color: var(--paper); }
.site-footer .wordmark em { color: #9FC4B7; }
.site-footer__tag { margin: 14px 0 0; max-width: 34ch; font-family: var(--serif); font-size: 1.15rem; font-style: italic; color: #DCE6DF; }
.site-footer__coords { margin: 18px 0 0; font-size: .75rem; letter-spacing: .06em; color: #9FC4B7; font-variant-numeric: tabular-nums; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.site-footer__h { margin: 0 0 10px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; color: #9FC4B7; }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer__nav a, .site-footer .linklike { text-decoration: none; font-size: .9375rem; }
.site-footer__nav a:hover, .site-footer .linklike:hover { text-decoration: underline; color: #fff; }
.site-footer__legal {
  padding-block: 22px 32px; font-size: .8125rem; color: #B9D0C6;
  background: linear-gradient(rgba(246, 241, 231, .18), rgba(246, 241, 231, .18)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat;
}
.site-footer__legal p { margin: 0 0 6px; max-width: 90ch; }

.consent {
  position: fixed; left: var(--gutter); right: var(--gutter); bottom: 16px; z-index: 60;
  max-width: 760px; margin-inline: auto; padding: 18px 20px; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 20px 50px -24px rgba(28, 27, 25, .45);
}
.consent__inner { display: grid; gap: 12px; }
.consent__title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 1.1rem; }
.consent__text { margin: 4px 0 0; font-size: .875rem; color: #3B3833; }
.consent__opts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .875rem; }
.consent__opts label { display: inline-flex; align-items: center; gap: 6px; }
.consent__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* 18. Motion & print ----------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .route-sig--draw .route-sig__line { stroke-dashoffset: 0; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .site-footer, .ad, .sponsor, .consent, .hero__media, .hero__meta, .widget__form { display: none !important; }
  body { background: #fff; }
}
