/* Landskrona halvmarathon. Färgerna ur loggan och kommunens banskiss.
   Byggd efter canvasen "F. Hela sidan" 2026-11-19. */
:root {
  --navy: #0b2838;
  --tone: #143a4f;
  --pink: #f29bbf;
  --pink-ink: #d9719c;
  --sand: #f3f1ec;
  --sky: #dcebf3;
  --muted: #4a6272;
  --line: #e3e0d8;
  --line-2: #d9d5cb;
  --font: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 48px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--sand); color: var(--navy); font-family: var(--font); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; }
h2 { font-size: 44px; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin-bottom: 14px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.lead { font-size: 17px; color: var(--muted); max-width: 40em; }
.small { font-size: 14px; color: var(--muted); }
.muted-s { font-size: 14px; color: var(--muted); margin-bottom: 6px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; text-decoration: none; font-weight: 500; font-size: 16px; transition: background .2s ease, color .2s ease; }
.btn-line { border: 2px solid var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--tone); }
.btn-pink { background: var(--pink); color: var(--navy); min-height: 52px; padding: 0 28px; }
.btn-pink:hover { background: #fff; }
.text-link { font-weight: 500; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { text-decoration-color: var(--navy); }

/* Hjälten */
.hero { position: relative; height: 760px; background: var(--tone); color: #fff; overflow: hidden; }
.hero-bg img, .hero-film { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: luminosity; opacity: .55; }
.hero-film { opacity: 0; transition: opacity .8s ease; }
.hero-film.playing { opacity: .55; }
.hero-bg { transition: opacity .8s ease; }
.hero:has(.hero-film.playing) .hero-bg { opacity: 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,40,56,.55) 0%, rgba(11,40,56,0) 22%); pointer-events: none; }
.top { position: relative; z-index: 2; display: flex; align-items: center; gap: 32px; height: 80px; padding: 0 var(--gutter); }
.top-nav { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.top-nav a { color: #fff; text-decoration: none; font-size: 16px; padding: 4px 0; border-bottom: 2px solid transparent; }
.top-nav a:hover, .top-nav a.is-active { border-color: var(--pink); }
.top-nav a.is-active { font-weight: 500; }
.top-nav a.small { font-size: 14px; color: #fff; }
.top-mark { margin-left: auto; }
.top-mark img, .lockup img { filter: brightness(0) invert(1); }
.top-mark img { width: 34px; height: 34px; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: #fff; padding: 0; align-items: center; justify-content: center; cursor: pointer; }

.hero-inner { position: relative; z-index: 1; height: 600px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 var(--gutter); }
.lockup { display: flex; align-items: flex-end; gap: 16px; line-height: .92; margin-bottom: 34px; }
.lockup-words { display: flex; flex-direction: column; align-items: flex-start; }
.lockup .w1 { font-size: 76px; font-weight: 600; letter-spacing: -0.01em; }
.lockup .w2 { font-size: 61px; font-weight: 300; color: var(--pink); letter-spacing: .01em; }
.lockup img { width: 128px; height: 128px; margin-bottom: -8px; }
.date-row { display: flex; align-items: center; gap: 14px; margin: 0 0 30px; font-size: 22px; letter-spacing: .14em; white-space: nowrap; }
.date-row .wave { width: 120px; height: 14px; fill: none; stroke: var(--pink); stroke-width: 2; stroke-linecap: round; margin: 0 8px; }
.date-row .date { display: inline-flex; align-items: center; height: 48px; padding: 0 20px; background: #fff; color: var(--navy); font-weight: 600; letter-spacing: .01em; font-size: 24px; }
.date-row .place-m { display: none; }
.hero-lead { margin: 0; font-size: 21px; line-height: 1.45; max-width: 28em; }

/* Statuskortet */
.status { position: relative; z-index: 3; max-width: 1180px; margin: -110px auto 0; padding: 0 var(--gutter); }
.status-card { display: flex; flex-wrap: wrap; background: #fff; box-shadow: 0 30px 60px -30px rgba(11,40,56,.35); }
.status-pink { flex: 1 1 460px; min-height: 320px; position: relative; overflow: hidden; background: var(--pink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px; }
.status-pink::before { content: ""; position: absolute; inset: 0; background: url("/img/banskiss.webp") center / cover; opacity: .16; mix-blend-mode: multiply; }
.status-pink p { position: relative; margin: 0; }
.sp-1 { font-size: 18px; font-weight: 500; letter-spacing: .04em; margin-bottom: 6px !important; }
.sp-2 { font-size: 64px; font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.sp-3 { font-size: 20px; margin-top: 10px !important; }
.status-text { flex: 1 1 420px; padding: 40px 44px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.status-text h2 { font-size: 30px; margin-bottom: 14px; }
.status-text > p:not(.muted-s) { color: var(--muted); margin-bottom: 22px; }

/* Distanserna */
.dist { padding-top: 96px; padding-bottom: 40px; }
.dist .lead { font-size: 18px; margin-bottom: 36px; }
.dist-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.dist-card { background: #fff; padding: 32px 28px; display: flex; flex-direction: column; }
.dist-card .km { margin: 0 0 18px; font-size: 72px; font-weight: 300; line-height: 1; letter-spacing: -0.03em; }
.dist-card .km span { font-size: 22px; margin-left: 6px; color: var(--pink-ink); letter-spacing: 0; }
.dist-card h3 { font-size: 20px; font-weight: 600; margin-bottom: 8px; }
.dist-card > p:not(.km) { color: var(--muted); font-size: 16px; line-height: 1.55; margin-bottom: 24px; }
.dist-card dl { margin: auto 0 0; display: flex; gap: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.dist-card dt { font-size: 13px; color: var(--muted); }
.dist-card dd { margin: 0; font-size: 20px; font-weight: 500; }
.dots { display: none; }
.note { font-size: 14px; color: var(--muted); margin: 20px 0 0; }

/* Banan */
.course { padding-top: 72px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 64px; align-items: center; }
.course-text { flex: 1 1 440px; min-width: 0; }
.course-text .lead { line-height: 1.65; margin-bottom: 28px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.facts div { background: #fff; padding: 16px; }
.facts strong { display: block; font-size: 24px; font-weight: 600; }
.facts span { display: block; font-size: 14px; color: var(--muted); line-height: 1.35; }
.course-text .small { margin-bottom: 24px; }
.link-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.course-map { flex: 1 1 400px; min-width: 0; margin: 0; background: var(--sky); padding: 28px; display: flex; justify-content: center; }
.course-map img { width: 100%; max-width: 440px; box-shadow: 0 24px 60px -24px rgba(11,40,56,.4); }

/* Fotot */
.photo { margin: 0; position: relative; height: 520px; overflow: hidden; background: var(--navy); }
.photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 47%; }
.photo figcaption { position: absolute; left: var(--gutter); bottom: 36px; background: #fff; padding: 10px 16px; font-size: 15px; font-weight: 500; }

/* Praktiskt */
.pm { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 64px; align-items: flex-start; }
.pm-head { flex: 1 1 300px; min-width: 0; }
.pm-head .lead { margin-bottom: 20px; }
.pm-grid { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pm-item { background: #fff; padding: 22px; }
.pm-item summary { font-weight: 600; list-style: none; margin-bottom: 6px; cursor: default; }
.pm-item summary::-webkit-details-marker { display: none; }
.pm-item p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

/* Företagstävlingen */
.team { background: var(--navy); color: #fff; }
.team-inner { padding-top: 80px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.team-inner > div { flex: 2 1 520px; min-width: 0; }
.team-inner p { color: #c6d6df; line-height: 1.65; margin-bottom: 10px; }
.team-inner .small { color: #9fb7c4; margin: 0; }

/* Hitta hit */
.find { padding-top: 96px; padding-bottom: 48px; display: flex; flex-wrap: wrap; gap: 64px; }
.find-head { flex: 1 1 300px; min-width: 0; }
.find-head .lead { margin-bottom: 18px; }
.find-grid { flex: 2 1 560px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.find-card { display: flex; justify-content: space-between; gap: 16px; background: #fff; padding: 26px; text-decoration: none; transition: transform .2s ease; }
.find-card:hover { transform: translateY(-2px); }
.find-card strong { display: block; font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.find-card .fc-d { display: block; color: var(--muted); font-size: 15px; line-height: 1.55; }
.find-card svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; align-self: center; }

/* Resultat */
.results { padding-top: 48px; padding-bottom: 96px; }
.results h2 { font-size: 32px; margin-bottom: 20px; }
.doc-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 48px; }
.doc-list li { break-inside: avoid; }
.doc-list a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; font-weight: 500; }
.doc-list a:hover span { color: var(--pink-ink); }
.doc-list em { font-style: normal; color: var(--muted); font-size: 14px; font-weight: 400; white-space: nowrap; }
.show-all { display: none; }

/* Foten */
.foot { background: var(--navy); color: #c9d7df; font-size: 15px; }
.foot-wave { display: block; width: 100%; height: 28px; background: var(--sand); fill: var(--navy); }
.foot-grid { padding-top: 48px; padding-bottom: 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.foot-title { color: var(--pink); margin-bottom: 8px; }
.foot a { color: #fff; }
.foot-small { font-size: 12px; color: #7f99a8; padding-top: 24px; padding-bottom: 32px; margin: 0; }

/* Mellan */
@media (max-width: 1000px) {
  :root { --gutter: 24px; }
  .lockup .w1 { font-size: 60px; }
  .lockup .w2 { font-size: 48px; }
  .lockup img { width: 100px; height: 100px; }
  .date-row .wave { display: none; }
}

/* Mobil, efter "F. Hela sidan, mobil" */
@media (max-width: 680px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  h2 { font-size: 28px; margin-bottom: 8px; }
  .lead { font-size: 15px; }

  .hero { height: 700px; }
  .hero-bg img { object-position: 55% 50%; }
  .hero::after { background: linear-gradient(180deg, rgba(11,40,56,.6) 0%, rgba(11,40,56,0) 18%, rgba(11,40,56,0) 70%, rgba(11,40,56,.4) 100%); }
  .top { height: 64px; justify-content: space-between; }
  .top-mark { order: -1; margin-left: 0; }
  .top-mark img { width: 30px; height: 30px; }
  .menu-btn { display: inline-flex; }
  .top-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--navy); padding: 8px 16px 16px; }
  .top-nav.open { display: flex; }
  .top-nav a, .top-nav a.small { font-size: 18px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .top-nav a.is-active { border-color: rgba(255,255,255,.12); color: var(--pink); }

  .hero-inner { height: 560px; padding: 0 20px; gap: 26px; }
  .lockup { flex-direction: column-reverse; align-items: center; gap: 14px; margin: 0; }
  .lockup-words { align-items: center; }
  .lockup .w1 { font-size: 44px; }
  .lockup .w2 { font-size: 35px; }
  .lockup img { width: 64px; height: 64px; margin: 0; }
  .date-row { flex-direction: column; gap: 12px; margin: 0; font-size: 14px; }
  .date-row .day, .date-row .place { display: none; }
  .date-row .date { height: 44px; padding: 0 18px; font-size: 22px; }
  .date-row .place-m { display: inline; }
  .hero-lead { font-size: 17px; max-width: 18em; }

  .status { margin-top: -70px; }
  .status-card { flex-direction: column; box-shadow: 0 24px 48px -28px rgba(11,40,56,.4); }
  .status-pink { flex: none; min-height: 0; padding: 30px 20px; }
  .sp-1 { font-size: 14px; margin-bottom: 4px !important; }
  .sp-2 { font-size: 46px; }
  .sp-3 { font-size: 16px; margin-top: 8px !important; }
  .status-text { flex: none; padding: 24px 20px 26px; align-items: stretch; }
  .status-text h2 { font-size: 22px; margin-bottom: 10px; }
  .status-text > p:not(.muted-s) { font-size: 15px; margin-bottom: 18px; }
  .muted-s { font-size: 13px; }

  .dist { padding-top: 48px; padding-bottom: 0; }
  .dist .lead { margin-bottom: 18px; }
  .dist-grid { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .dist-grid::-webkit-scrollbar { display: none; }
  .dist-card { flex: 0 0 290px; scroll-snap-align: start; padding: 24px 22px; }
  .dist-card .km { font-size: 56px; margin-bottom: 12px; }
  .dist-card .km span { font-size: 18px; margin-left: 4px; }
  .dist-card h3 { font-size: 18px; margin-bottom: 6px; }
  .dist-card > p:not(.km) { font-size: 15px; margin-bottom: 18px; }
  .dist-card dl { gap: 28px; padding-top: 14px; }
  .dist-card dt { font-size: 12px; }
  .dist-card dd { font-size: 18px; }
  .dots { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
  .dots span { width: 6px; height: 6px; border-radius: 6px; background: #b9cdd8; transition: width .2s ease, background .2s ease; }
  .dots span.on { width: 18px; background: var(--navy); }
  .note { font-size: 13px; }

  .course { padding-top: 56px; padding-bottom: 0; gap: 16px; }
  .course-text { display: contents; }
  .course-text h2 { order: 1; flex: 1 1 100%; margin: 0; }
  .course-text .lead { order: 2; margin: 0; }
  .course-map { order: 3; flex: 1 1 100%; padding: 16px; }
  .course-map img { max-width: none; box-shadow: none; }
  .facts { order: 4; flex: 1 1 100%; gap: 8px; margin: 0; }
  .facts div { padding: 12px; }
  .facts strong { font-size: 17px; }
  .facts span { font-size: 12px; }
  .course-text .small { order: 5; margin: 0; }
  .link-row { order: 6; flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 12px; }
  .link-row .text-link { align-self: flex-start; }

  .photo { margin-top: 48px; height: 300px; }
  .photo figcaption { left: 16px; bottom: 16px; padding: 8px 12px; font-size: 13px; }

  .pm { padding-top: 48px; padding-bottom: 0; gap: 16px; }
  .pm-head .lead { margin-bottom: 8px; }
  .pm-grid { display: block; background: #fff; }
  .pm-item { padding: 0; border-bottom: 1px solid var(--line); }
  .pm-item:last-child { border-bottom: 0; }
  .pm-item summary { cursor: pointer; min-height: 56px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; margin: 0; font-size: 16px; }
  .pm-item summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
  .pm-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
  .pm-item p { padding: 0 18px 18px; font-size: 14px; }

  .team { margin-top: 48px; }
  .team-inner { padding-top: 40px; padding-bottom: 40px; gap: 20px; }
  .team-inner > div { flex: 1 1 100%; }
  .team-inner p { font-size: 15px; }
  .team .btn { width: 100%; min-height: 48px; }

  .find { padding-top: 48px; padding-bottom: 0; gap: 16px; }
  .find-head .lead { margin-bottom: 0; }
  .find-head .text-link { display: none; }
  .find-grid { display: flex; flex-direction: column; gap: 10px; }
  .find-card { padding: 18px; }
  .find-card strong { font-size: 16px; margin-bottom: 2px; }
  .find-card .fc-d { font-size: 14px; }

  .results { padding-top: 48px; padding-bottom: 48px; }
  .results h2 { font-size: 22px; margin-bottom: 12px; }
  .doc-list { columns: 1; }
  .doc-list a { padding: 14px 0; font-size: 15px; }
  .doc-list em { font-size: 13px; }
  .results:not(.all) .doc-list li.more { display: none; }
  .show-all { display: block; background: none; border: 0; padding: 14px 0; font-family: inherit; font-size: 14px; font-weight: 500; color: var(--navy); cursor: pointer; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 4px; }
  .results.all .show-all { display: none; }

  .foot { font-size: 14px; }
  .foot-wave { height: 20px; }
  .foot-grid { grid-template-columns: 1fr; gap: 20px; padding-top: 32px; }
  .foot-grid > div:last-child { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .find-card, .dots span, .pm-item summary::after { transition: none; }
}

/* Levande banan, den lätta webbversionen (bana.js). Kartan är kommunens banskiss. */
.course-map[hidden] { display: none; }
.lb { flex-direction: column; justify-content: flex-start; align-items: stretch; gap: 14px; background: #fff; padding: 20px; max-width: 420px; }
.lb-tabs { display: flex; gap: 6px; }
.lb-tabs button { flex: 1; min-height: 44px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font: 500 15px/1 var(--font); cursor: pointer; }
.lb-tabs button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.lb-map { position: relative; background: #e0f2fd; aspect-ratio: 700 / 1140; overflow: hidden; }
.lb-map img, .lb-svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; box-shadow: none; }
.lb-svg { --u: 1; overflow: visible; }
.lb-all path { fill: none; stroke: var(--navy); stroke-opacity: .22; stroke-width: calc(var(--u) * 2px); stroke-linejoin: round; }
.lb-line { fill: none; stroke: #141f34; stroke-width: calc(var(--u) * 2.6px); stroke-linejoin: round; stroke-linecap: round; }
.lb-done { fill: none; stroke: var(--pink); stroke-width: calc(var(--u) * 5px); stroke-linejoin: round; stroke-linecap: round; }
.lb-km-tick circle { r: calc(var(--u) * 9px); fill: #fff; stroke: #141f34; stroke-width: calc(var(--u) * 1.5px); }
.lb-km-tick text { font: 600 calc(var(--u) * 10px) var(--font); fill: var(--navy); }
.lb-start { r: calc(var(--u) * 6px); fill: #8f8fd8; stroke: #fff; stroke-width: calc(var(--u) * 2px); }
[data-d="21"] .lb-start5, [data-d="10"] .lb-start5 { display: none; }
.lb-lab line { stroke: #141f34; stroke-width: calc(var(--u) * 1.4px); }
.lb-lab text { font: 600 calc(var(--u) * 13px) var(--font); fill: #141f34; }
[data-d="21"] .lb-lab-5, [data-d="10"] .lb-lab-5 { display: none; }
.lb-place-name { font: 500 calc(var(--u) * 11px) var(--font); fill: var(--navy); letter-spacing: .04em; }
.lb-dot { r: calc(var(--u) * 8px); fill: var(--pink); stroke: var(--navy); stroke-width: calc(var(--u) * 3px); }
.lb-halo { r: calc(var(--u) * 18px); fill: var(--pink); opacity: .35; transform-box: fill-box; transform-origin: center; }
.is-running .lb-halo { animation: lb-puls 1.1s ease-out infinite; }
@keyframes lb-puls { from { transform: scale(.5); opacity: .55; } to { transform: scale(1.4); opacity: 0; } }
.lb-play { position: absolute; right: 12px; top: 12px; min-height: 44px; padding: 0 18px 0 40px; border: 0; background: var(--navy); color: #fff; font: 500 15px/1 var(--font); cursor: pointer; }
.lb-play::before { content: ""; position: absolute; left: 18px; top: 50%; margin-top: -7px; border-left: 12px solid var(--pink); border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.is-running .lb-play::before { border: 0; width: 4px; height: 14px; margin-top: -7px; box-shadow: 7px 0 0 var(--pink); background: var(--pink); }
.lb-play:hover { background: var(--tone); }
.lb-now { display: flex; align-items: flex-start; gap: 18px; min-height: 64px; }
.lb-km { flex: none; font-size: 15px; color: var(--muted); line-height: 1.1; min-width: 92px; }
.lb-km strong { display: inline-block; font-size: 36px; font-weight: 600; color: var(--navy); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.lb-lap { display: block; font-style: normal; font-size: 13px; color: var(--pink-ink); font-weight: 500; }
.lb-lap:empty { display: none; }
.lb-place b { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; }
.lb-place span { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; }
.lb-scrub { width: 100%; margin: 0; accent-color: var(--navy); height: 32px; cursor: pointer; }
.lb-note { margin: 0; font-size: 12px; color: var(--muted); }

@media (max-width: 680px) {
  .lb { padding: 12px; gap: 12px; max-width: none; }
  .lb-play { right: 8px; top: 8px; }
  .lb-km strong { font-size: 30px; }
  .lb-km { min-width: 78px; }
  .lb-place b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .is-running .lb-halo { animation: none; }
}
