/* =====================================================================
   Verdal Snøscooterløype – designsystem
   Fjellnatt-blått, snøhvitt og solnedgangsoransje fra fjellet.
   Signaturdetalj: «corduroy»-mønsteret fra en nypreparert løype.
   ===================================================================== */

:root {
  --ink: #121611; /* «fjellsvart» – logoens sorte med et grønt skjær */
  --ink-2: #1b2019;
  --ink-3: #262d23;
  --ink-line: rgba(255, 255, 255, 0.1);
  --snow: #f4f5f1;
  --paper: #ffffff;
  --frost: #e8ebe3;
  --line: #dbe0d5;
  --text: #151a13;
  --muted: #5b6456;
  --muted-on-dark: #a9b3a3;
  /* Fra logoen: scooter- og dressgrønn (#819A69), litt friskere for skjerm */
  --brand: #9bc160;
  --brand-hi: #b0d27e;
  --brand-ink: #4e6e30; /* grønn tekst på lys bakgrunn (5,4:1) */
  --brand-soft: rgba(155, 193, 96, 0.16);
  --glacier: #7cc4ec;
  --ok: #34c27a;
  --warn: #f5b83d;
  --closed: #ef4b4f;

  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(18, 22, 17, 0.06), 0 8px 30px rgba(18, 22, 17, 0.08);
  --shadow-lg: 0 30px 80px -20px rgba(18, 22, 17, 0.45);

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  --corduroy: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.09) 0 2px, transparent 2px 7px);
  --corduroy-dark: repeating-linear-gradient(90deg, rgba(18, 22, 17, 0.06) 0 2px, transparent 2px 7px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--snow);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--brand-ink); outline-offset: 3px; border-radius: 6px; }
.site-header :focus-visible, .hero :focus-visible, .section-dark :focus-visible, .site-footer :focus-visible, .map-sidebar :focus-visible { outline-color: var(--brand); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Typografi */

.display, h1, h2, h3 {
  font-weight: 800;
  font-style: italic;
  font-stretch: 108%;
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(34px, 9.2vw, 116px); text-transform: uppercase; }
@media (max-width: 480px) { h1, h2 { font-stretch: 96%; } }
h2 { font-size: clamp(34px, 5vw, 64px); text-transform: uppercase; }
h3 { font-size: 22px; font-stretch: 100%; letter-spacing: -0.01em; line-height: 1.15; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-ink);
}
.hero .kicker, .section-dark .kicker, .page-hero .kicker, .insta-band .kicker { color: var(--brand); }
.kicker::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); max-width: 60ch; }
.on-dark .lead, .lead.on-dark { color: var(--muted-on-dark); }

/* ---------- Knapper */

.btn {
  --bg: var(--brand);
  --fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 0;
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); background: var(--brand-hi); box-shadow: 0 10px 30px -10px rgba(155, 193, 96, 0.7); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-ghost { --bg: rgba(255, 255, 255, 0.1); --fg: #fff; border: 1.5px solid rgba(255, 255, 255, 0.4); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.2); box-shadow: none; }
.btn-dark { --bg: var(--ink); --fg: #fff; }
.btn-dark:hover { background: var(--ink-3); box-shadow: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Header */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 1000;
  color: #fff;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header.solid, .site-header.always-solid {
  background: rgba(18, 22, 17, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--ink-line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 76px; }
/* Den runde logoen «henger» litt ned under headeren, og krymper når man scroller */
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; align-self: flex-start; margin-top: 8px; }
.brand img { width: 88px; height: 88px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35)); transition: width 0.25s ease, height 0.25s ease, transform 0.25s ease; }
.brand:hover img { transform: rotate(-4deg) scale(1.03); }
.site-header.solid .brand img, .site-header.always-solid .brand img { width: 60px; height: 60px; }
.brand span { font-weight: 800; font-style: italic; font-stretch: 108%; font-size: 20px; line-height: 1; text-transform: uppercase; letter-spacing: 0.01em; margin-top: -6px; }
.site-header.solid .brand span, .site-header.always-solid .brand span { margin-top: 0; }
.brand span small { display: block; font-size: 13px; font-weight: 700; font-stretch: 100%; letter-spacing: 0.14em; color: var(--muted-on-dark); margin-top: 3px; }
@media (max-width: 1080px) { .brand span { display: none; } }
@media (max-width: 860px) { .brand img { width: 66px; height: 66px; } .site-header.solid .brand img { width: 54px; height: 54px; } }

.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a:not(.btn) {
  padding: 8px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  color: rgba(255, 255, 255, 0.86);
}
.nav a:not(.btn):hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.nav a[aria-current='page'] { color: #fff; background: rgba(255, 255, 255, 0.12); }
.nav .btn { margin-left: 10px; }
.nav .live-link { display: inline-flex; align-items: center; gap: 8px; }

.menu-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .menu-toggle { display: grid; place-items: center; }
  .nav {
    position: fixed;
    inset: 76px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px var(--gutter) 24px;
    background: rgba(18, 22, 17, 0.97);
    backdrop-filter: blur(14px);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a:not(.btn) { padding: 14px 16px; font-size: 18px; border-radius: 12px; }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- Live-indikator */

.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); flex: none; }
.pulse::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  animation: pulse 1.8s ease-out infinite;
}
.pulse.idle { background: var(--muted-on-dark); }
.pulse.idle::after { display: none; }
@keyframes pulse { from { transform: scale(0.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }
.dot.open { background: var(--ok); box-shadow: 0 0 0 4px rgba(52, 194, 122, 0.2); }
.dot.limited, .dot.warning { background: var(--warn); box-shadow: 0 0 0 4px rgba(245, 184, 61, 0.2); }
.dot.closed { background: var(--closed); box-shadow: 0 0 0 4px rgba(239, 75, 79, 0.2); }

/* ---------- Hero */

.hero {
  position: relative;
  min-height: max(680px, 100svh);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #fff;
  background: var(--ink);
  isolation: isolate;
  overflow: hidden;
}
.hero-media, .hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-media video { opacity: 0; transition: opacity 1.2s ease; }
.hero-media video.ready { opacity: 1; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(18, 22, 17, 0.55) 0%, rgba(18, 22, 17, 0) 26%),
    linear-gradient(0deg, rgba(18, 22, 17, 0.96) 6%, rgba(18, 22, 17, 0.5) 42%, rgba(18, 22, 17, 0.05) 70%),
    linear-gradient(90deg, rgba(18, 22, 17, 0.55), rgba(18, 22, 17, 0) 65%);
}
.hero-content { padding-top: 140px; padding-bottom: 44px; }
.hero h1 { max-width: 13.5ch; margin: 18px 0 22px; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25); }
.hero h1 em { color: var(--brand); font-style: italic; }
.hero .lead { color: rgba(255, 255, 255, 0.82); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.status-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink-line);
  background: rgba(18, 22, 17, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.status-strip > * { padding: 22px var(--gutter); border-right: 1px solid var(--ink-line); min-width: 0; }
.status-strip > *:last-child { border-right: 0; }
.status-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-dark); margin-bottom: 6px; }
.status-value { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 700; line-height: 1.2; }
.status-value small { font-size: 14px; font-weight: 500; color: var(--muted-on-dark); }
.status-live { text-decoration: none; background: var(--corduroy); transition: background-color 0.2s; }
.status-live.is-live { background-color: rgba(155, 193, 96, 0.16); }
.status-live:hover { background-color: rgba(255, 255, 255, 0.06); }
.status-live .status-value { font-size: 18px; }
.status-live .arrow { margin-left: auto; opacity: 0.6; }

@media (max-width: 900px) {
  .status-strip { grid-template-columns: 1fr 1fr; }
  .status-strip > *:nth-child(2) { border-right: 0; }
  .status-strip > *:nth-child(-n + 2) { border-bottom: 1px solid var(--ink-line); }
  .status-strip > * { padding: 16px var(--gutter); }
  .status-value { font-size: 17px; }
}

.status-banner {
  background: var(--warn);
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  padding: 12px var(--gutter);
  font-size: 15px;
}
.status-banner.closed { background: var(--closed); color: #fff; }
.status-banner.open { background: var(--brand); color: var(--ink); }

/* ---------- Seksjoner */

.section { padding: clamp(72px, 10vw, 130px) 0; }
.section-dark { background: var(--ink); color: #fff; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { margin-top: 14px; }
.section-head .lead { margin: 0; }

.corduroy-band { height: 14px; background: var(--ink) var(--corduroy); }

/* ---------- Kart på forsiden */

.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: stretch; }
.map-frame {
  position: relative;
  min-height: 580px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-2);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--ink-line);
}
.map-frame .map { position: absolute; inset: 0; }
.map-overlay-btn { position: absolute; z-index: 500; right: 14px; bottom: 14px; }
.trail-panel {
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  flex-direction: column;
  max-height: 580px;
}
.trail-panel-head { padding: 14px 14px 10px; display: flex; justify-content: space-between; align-items: baseline; }
.trail-panel-head strong { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-on-dark); }
.trail-panel-head span { font-size: 14px; color: var(--muted-on-dark); }
.trail-list { list-style: none; margin: 0; padding: 0; overflow-y: auto; }
@media (max-width: 980px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-frame { min-height: 460px; }
  .trail-panel { max-height: none; }
}

.trail-item {
  display: grid;
  grid-template-columns: 6px 1fr auto;
  gap: 4px 14px;
  align-items: center;
  padding: 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.trail-item:hover, .trail-item.active { background: rgba(255, 255, 255, 0.06); }
.trail-swatch { grid-row: span 2; align-self: stretch; border-radius: 4px; background: var(--c); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
.trail-name { font-weight: 700; font-size: 16px; line-height: 1.2; }
.trail-meta { grid-column: 2 / 4; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; color: var(--muted-on-dark); }
.trail-chip { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(52, 194, 122, 0.16); color: #7fe3ad; }
.trail-chip.warning { background: rgba(245, 184, 61, 0.18); color: #ffd47a; }
.trail-chip.closed { background: rgba(239, 75, 79, 0.18); color: #ff9c9e; }
.groom { grid-column: 2 / 4; display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted-on-dark); }
.groom-bar { flex: 1; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.groom-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--brand) var(--corduroy); border-radius: 6px; transition: width 0.6s ease; }
.groom.fresh { color: #c5e09b; }

/* ---------- Løyve (billetter) */

.passes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; }
.pass {
  --notch: 18px;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  -webkit-mask: radial-gradient(circle var(--notch) at calc(100% - 132px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - 132px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at calc(100% - 132px) 0, transparent 98%, #000) top / 100% 51% no-repeat,
                radial-gradient(circle var(--notch) at calc(100% - 132px) 100%, transparent 98%, #000) bottom / 100% 51% no-repeat;
}
.pass-main { padding: 30px 30px 28px; }
.pass-type { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.pass-price { font-size: clamp(52px, 6vw, 72px); font-weight: 800; font-style: italic; font-stretch: 108%; line-height: 1; margin: 12px 0 8px; letter-spacing: -0.03em; }
.pass-price small { font-size: 22px; font-weight: 700; font-style: normal; letter-spacing: 0; margin-left: 4px; }
.pass-desc { color: var(--muted); margin: 0; font-size: 15px; }
.pass-stub {
  width: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 20px 12px;
  border-left: 2px dashed var(--line);
  background: var(--brand);
  color: var(--ink);
  text-align: center;
}
.pass-stub.alt { background: var(--ink); color: #fff; }
.pass-stub span { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; opacity: 0.85; }
.pass-stub strong { font-size: 24px; font-weight: 800; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.pass-stub button { background: rgba(18, 22, 17, 0.12); color: inherit; border: 0; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; cursor: pointer; }
.pass-stub button:hover { background: rgba(18, 22, 17, 0.2); }
.pass-stub.alt button { background: rgba(255, 255, 255, 0.16); }
.pass-stub.alt button:hover { background: rgba(255, 255, 255, 0.28); }

.loyve-layout { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 960px) { .loyve-layout { grid-template-columns: 1fr; } }
.photo-stack { position: relative; }
.photo-stack img { width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.photo-stack .photo-tag {
  position: absolute;
  left: -14px;
  bottom: 28px;
  background: var(--ink);
  color: #fff;
  padding: 14px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  gap: 12px;
  align-items: center;
}
@media (max-width: 600px) { .photo-stack .photo-tag { left: 12px; } }

.note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: #3f5c25;
  font-size: 15px;
  margin-top: 22px;
}
.note svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }

/* ---------- Regler */

.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.rule { padding: 30px 26px 10px 0; }
.rule + .rule { padding-left: 26px; border-left: 1px solid var(--line); }
.rule-num { font-size: 14px; font-weight: 800; font-style: italic; color: var(--brand-ink); letter-spacing: 0.06em; }
.rule h3 { margin: 12px 0 10px; font-size: 21px; }
.rule p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 900px) {
  .rules { grid-template-columns: 1fr 1fr; }
  .rule:nth-child(3) { border-left: 0; padding-left: 0; }
  .rule:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .rules { grid-template-columns: 1fr; }
  .rule, .rule + .rule { border-left: 0; padding-left: 0; }
  .rule + .rule { border-top: 1px solid var(--line); }
}

/* ---------- Nyheter */

.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.news-card .thumb { aspect-ratio: 16 / 10; background: var(--ink) var(--corduroy); overflow: hidden; position: relative; }
.news-card .thumb::before { content: ''; position: absolute; inset: -20px; background: var(--img) center / cover; filter: blur(18px) brightness(0.8); }
.news-card .thumb img { position: relative; width: 100%; height: 100%; object-fit: contain; transition: transform 0.5s ease; }
.news-card:hover .thumb img { transform: scale(1.04); }
.news-card .thumb .placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.news-card .thumb .placeholder img { width: 34%; height: auto; object-fit: contain; opacity: 0.85; transform: rotate(-6deg); }
.news-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card time { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-ink); }
.news-card h3 { font-size: 20px; }
.news-card p { margin: 0; color: var(--muted); font-size: 15px; }

.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 14px; border-radius: 999px; text-decoration: none; font-weight: 700; background: var(--paper); box-shadow: var(--shadow); }
.pagination span { background: var(--ink); color: #fff; }

/* ---------- Instagram-bånd */

.insta-band { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.insta-band img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.insta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 22, 17, 0.92), rgba(18, 22, 17, 0.35)); }
.insta-band .wrap { padding-top: clamp(80px, 10vw, 130px); padding-bottom: clamp(80px, 10vw, 130px); }
.insta-band h2 { max-width: 14ch; margin: 16px 0 26px; }

/* ---------- Sideheader for undersider */

.page-hero { background: var(--ink); color: #fff; padding: 150px 0 64px; position: relative; overflow: hidden; }
.page-hero::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 14px; background: var(--corduroy); }
.page-hero h1 { font-size: clamp(42px, 7vw, 88px); margin-top: 16px; }
.page-hero .lead { margin-top: 18px; }

/* ---------- Artikkel */

.article { max-width: 760px; margin: 0 auto; }
.article-cover { margin: -40px auto 40px; max-width: 980px; padding: 0 var(--gutter); position: relative; z-index: 2; }
.article-cover img { width: auto; max-width: 100%; margin: 0 auto; border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 640px; object-fit: cover; }
.prose { font-size: 19px; line-height: 1.7; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--brand-ink); }
.back-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; color: var(--muted-on-dark); font-size: 15px; }
.back-link:hover { color: #fff; }

/* ---------- Footer */

.site-footer { background: var(--ink); color: var(--muted-on-dark); position: relative; }
.site-footer::before { content: ''; display: block; height: 14px; background: var(--corduroy); border-bottom: 1px solid var(--ink-line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 72px 0 48px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { width: 120px; height: auto; margin-bottom: 18px; }
.footer-brand p { margin: 0; max-width: 32ch; font-size: 15px; }
.site-footer h4 { margin: 0 0 14px; color: #fff; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--ink-line); padding: 22px 0 30px; display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; font-size: 14px; }

/* «Designet og levert av WLG Media» */
.made-by {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px 6px 6px;
  border-radius: 999px;
  border: 1px solid var(--ink-line);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.made-by img { width: 46px; height: 46px; transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.made-by span { display: flex; flex-direction: column; line-height: 1.15; }
.made-by small { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-on-dark); }
.made-by strong { font-size: 17px; font-weight: 800; font-style: italic; letter-spacing: 0.01em; }
.made-by svg { width: 18px; height: 18px; color: var(--muted-on-dark); transition: transform 0.2s ease, color 0.2s ease; }
.made-by:hover { border-color: rgba(155, 193, 96, 0.6); background: rgba(155, 193, 96, 0.08); }
.made-by:hover img { transform: rotate(-12deg) scale(1.06); }
.made-by:hover svg { transform: translate(2px, -2px); color: var(--brand); }

/* ---------- Leaflet-tilpasning */

.leaflet-container { font-family: var(--font); background: #e4e8e0; }
.leaflet-control-attribution { font-size: 10px; }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: var(--shadow-lg); }
.leaflet-popup-content { margin: 16px 18px; font-size: 14px; line-height: 1.5; }
.popup-title { font-weight: 800; font-style: italic; font-size: 18px; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.popup-title i { width: 14px; height: 4px; border-radius: 2px; background: var(--c); }
.popup-row { color: var(--muted); }

.layer-switch {
  position: absolute;
  z-index: 500;
  top: 14px;
  right: 14px;
  display: flex;
  background: rgba(18, 22, 17, 0.82);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.layer-switch button { border: 0; background: none; color: rgba(255, 255, 255, 0.75); font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.layer-switch button.on { background: #fff; color: var(--ink); }

.groomer-icon { position: relative; }
.groomer-icon .ring { position: absolute; inset: 0; border-radius: 50%; background: rgba(155, 193, 96, 0.25); animation: pulse 2s ease-out infinite; }
.groomer-icon .core {
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  display: grid;
  place-items: center;
}
.groomer-icon .core svg { width: 16px; height: 16px; color: var(--ink); }
.groomer-icon .heading {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-origin: 0 0;
}
.groomer-icon .heading::before {
  content: '';
  position: absolute;
  left: -7px;
  top: -33px;
  border: 7px solid transparent;
  border-bottom: 11px solid var(--brand);
}
.groomer-icon.idle .ring { display: none; }
.groomer-icon.idle .core { background: #7d8b98; }
.groomer-label {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translate(-50%, 4px);
  white-space: nowrap;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

.poi-icon { width: 30px; height: 30px; border-radius: 8px; color: #fff; font-weight: 800; font-size: 17px; font-family: 'Archivo', system-ui, sans-serif; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3); }
.poi-icon.poi-danger { border-radius: 50%; }
.me-icon { width: 18px; height: 18px; border-radius: 50%; background: #1e88e5; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(30, 136, 229, 0.25); }

/* ---------- Fullskjermkart (/kart) */

.map-page { height: 100svh; overflow: hidden; background: var(--ink); }
.map-page .site-footer { display: none; }
.fullmap { position: fixed; inset: var(--header-h, 76px) 0 0 0; }
.fullmap .map { position: absolute; inset: 0; }
.map-sidebar {
  position: absolute;
  z-index: 600;
  top: 16px;
  left: 16px;
  bottom: 16px;
  width: 370px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}
.map-sidebar > * { pointer-events: auto; }
.live-card {
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-lg);
  background-image: var(--corduroy);
}
.live-card.is-live { background-color: #132416; background-image: linear-gradient(135deg, rgba(155, 193, 96, 0.35), rgba(155, 193, 96, 0) 70%), var(--corduroy); }
.live-card-head { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-on-dark); }
.live-card.is-live .live-card-head { color: #c5e09b; }
.live-card-title { font-size: 22px; font-weight: 800; font-style: italic; margin: 8px 0 4px; line-height: 1.15; }
.live-card-sub { font-size: 14px; color: var(--muted-on-dark); }
.live-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.live-stats div { background: rgba(255, 255, 255, 0.06); border-radius: 10px; padding: 8px 10px; }
.live-stats span { display: block; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-on-dark); }
.live-stats strong { font-size: 17px; font-variant-numeric: tabular-nums; }
.live-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.chip-btn { border: 1.5px solid rgba(255, 255, 255, 0.25); background: transparent; color: #fff; border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 700; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.chip-btn.on { background: #fff; color: var(--ink); border-color: #fff; }
.chip-btn svg { width: 16px; height: 16px; }

.map-sidebar .trail-panel { flex: 1; min-height: 0; max-height: none; background: rgba(27, 32, 25, 0.94); backdrop-filter: blur(12px); color: #fff; box-shadow: var(--shadow-lg); }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 10px 14px 6px; font-size: 12.5px; color: var(--muted-on-dark); border-top: 1px solid var(--ink-line); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 22px; height: 4px; border-radius: 2px; background: var(--brand); }
.map-legend i.old { background: rgba(155, 193, 96, 0.4); }

.sheet-toggle { display: none; }

@media (max-width: 760px) {
  .map-sidebar {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: auto;
    max-height: 62%;
    gap: 0;
    background: var(--ink);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s ease;
    transform: translateY(calc(100% - 196px));
  }
  .map-sidebar.expanded { transform: none; }
  .sheet-toggle { display: block; width: 100%; background: none; border: 0; padding: 10px 0 2px; cursor: pointer; }
  .sheet-toggle::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.3); margin: 0 auto; }
  .live-card { border-radius: 0; box-shadow: none; padding: 10px 18px 16px; }
  .map-sidebar .trail-panel { border-radius: 0; border: 0; box-shadow: none; overflow: auto; }
  .layer-switch { top: 10px; right: 10px; }
}

/* ---------- Diverse */

.empty { padding: 40px; text-align: center; color: var(--muted); background: var(--paper); border-radius: var(--radius); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
section[id], div[id] { scroll-margin-top: 90px; }

/* ---------- Været på fjellet */

.weather-band { background: var(--frost); border-bottom: 1px solid var(--line); }
.weather-layout { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 20px 48px; align-items: center; padding-top: 44px; padding-bottom: 28px; }
.wx-icon { width: 44px; height: 44px; color: var(--ink); flex: none; }
.wx-icon.wx-sun, .wx-icon.wx-partly { color: #e98a10; }
.wx-icon.wx-snow, .wx-icon.wx-sleet { color: #2f86c4; }
.wx-icon.wx-rain { color: #3b6fa8; }
.wx-now-main { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.wx-now-main .wx-icon { width: 64px; height: 64px; }
.wx-temp { font-size: 76px; font-weight: 800; font-style: italic; font-stretch: 108%; letter-spacing: -0.04em; line-height: 0.9; }
.wx-temp.cold { color: #2f86c4; }
.wx-now-text { display: flex; flex-direction: column; font-size: 15px; color: var(--muted); line-height: 1.4; }
.wx-now-text strong { color: var(--text); font-size: 18px; }
.wx-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.wx-days li { background: var(--paper); border-radius: 14px; padding: 14px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; box-shadow: var(--shadow); }
.wx-day { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.wx-days .wx-icon { width: 40px; height: 40px; }
.wx-range strong { font-size: 19px; font-weight: 800; }
.wx-range span { color: var(--muted); font-size: 15px; margin-left: 4px; }
.wx-precip { font-size: 12.5px; color: var(--muted); }
.wx-snow { font-size: 11.5px; font-weight: 800; color: #1d6fa8; background: #e1f0fb; border-radius: 999px; padding: 3px 8px; }
.wx-credit { grid-column: 1 / -1; margin: 0; font-size: 12.5px; color: var(--muted); }
.wx-credit a { color: inherit; }
@media (max-width: 960px) {
  .weather-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wx-days { grid-template-columns: repeat(5, minmax(64px, 1fr)); overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scroll-snap-type: x mandatory; }
  .wx-days li { scroll-snap-align: start; }
  .wx-temp { font-size: 60px; }
}

.map-weather {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 6px 6px 2px; padding: 10px 12px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); text-decoration: none; font-size: 14px; color: var(--muted-on-dark);
}
.map-weather:hover { background: rgba(255, 255, 255, 0.1); }
.map-weather .wx-icon { width: 28px; height: 28px; color: #fff; }
.map-weather strong { font-size: 20px; color: #fff; font-style: italic; }
.map-weather em { font-style: normal; font-size: 12px; font-weight: 800; color: #9fd4fa; background: rgba(124, 196, 236, 0.15); padding: 2px 8px; border-radius: 999px; }

.legend-poi { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 4px; color: #fff; font-size: 11px; font-weight: 800; font-style: normal; }

/* ---------- «Norges sørligste»-merket */
.hero-content { position: relative; }
.south-badge { position: absolute; right: var(--gutter); bottom: 36px; width: 190px; height: 190px; color: var(--ink); filter: drop-shadow(0 14px 30px rgba(0, 0, 0, 0.35)); }
.sb-ring { width: 100%; height: 100%; animation: sb-spin 40s linear infinite; }
.sb-bg { fill: var(--brand); }
.sb-text { font-family: var(--font); font-size: 15.5px; font-weight: 800; font-style: italic; letter-spacing: 0.06em; fill: var(--ink); }
.sb-center { position: absolute; inset: 42px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1px; }
.sb-center svg { width: 22px; height: 22px; color: var(--brand); margin-bottom: 2px; }
.sb-center strong { font-size: 19px; font-weight: 800; font-style: italic; letter-spacing: -0.01em; line-height: 1; }
.sb-center small { font-size: 9.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-on-dark); margin-top: 4px; }
@keyframes sb-spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) {
  .south-badge { position: relative; right: auto; top: auto; width: 128px; height: 128px; margin: 0 0 18px; }
  .sb-text { font-size: 15.5px; }
  .sb-center { inset: 28px; }
  .sb-center svg { width: 16px; height: 16px; }
  .sb-center strong { font-size: 14px; }
  .sb-center small { display: none; }
}

/* ---------- Instagram */
.ig-section { background: var(--paper); }
.row-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-outline { --bg: transparent; --fg: var(--text); border: 1.5px solid var(--line); }
.btn-outline:hover { background: var(--frost); box-shadow: none; }
.ig-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 860px) { .ig-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ig-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } }
.ig-tile { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--frost); cursor: zoom-in; }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.ig-tile:hover img { transform: scale(1.05); }
.ig-overlay { position: absolute; inset: auto 0 0 0; padding: 30px 12px 10px; background: linear-gradient(transparent, rgba(18, 22, 17, 0.85)); color: #fff; font-size: 13px; line-height: 1.35; text-align: left; opacity: 0; transform: translateY(6px); transition: 0.25s ease; }
.ig-tile:hover .ig-overlay, .ig-tile:focus-visible .ig-overlay { opacity: 1; transform: none; }
.ig-badge { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 50%; background: rgba(18, 22, 17, 0.7); color: #fff; display: grid; place-items: center; font-size: 12px; }
@media (hover: none) { .ig-overlay { display: none; } }

.ig-dialog { border: 0; padding: 0; border-radius: 18px; max-width: min(1000px, 94vw); width: 100%; background: var(--paper); box-shadow: var(--shadow-lg); }
.ig-dialog::backdrop { background: rgba(18, 22, 17, 0.8); backdrop-filter: blur(4px); }
.ig-dialog-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); max-height: 88vh; }
.ig-dialog img { width: 100%; height: 100%; max-height: 88vh; object-fit: contain; background: var(--ink); }
.ig-dialog-text { padding: 28px 26px; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; }
.ig-dialog time { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-ink); }
.ig-dialog p { margin: 0; white-space: pre-line; font-size: 16px; line-height: 1.6; }
.ig-dialog .btn { align-self: flex-start; margin-top: auto; }
.ig-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(18, 22, 17, 0.75); color: #fff; font-size: 24px; line-height: 1; cursor: pointer; }
@media (max-width: 760px) {
  .ig-dialog-inner { grid-template-columns: 1fr; max-height: none; }
  .ig-dialog img { max-height: 60vh; }
  .ig-dialog { max-height: 92vh; overflow-y: auto; }
}

.privacy h2 { font-size: 26px; text-transform: none; margin: 1.6em 0 0.5em; }
.privacy h2:first-child { margin-top: 0; }
.privacy ul { padding-left: 1.2em; }
.privacy li { margin-bottom: 0.5em; }
