/* ─────────────────────────────────────────────────────────────
   extras.css — additions beyond the design prototype
   (long-form station chapters, blog post markdown body)
   ───────────────────────────────────────────────────────────── */

/* Long-form station chapters on the guide page */
.stations-detail { margin-top: 8px; }
.station-chapter {
  padding: clamp(28px, 4vw, 40px) 0;
  border-bottom: 1px solid var(--rule);
}
.station-chapter:last-child { border-bottom: none; }
.station-chapter-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.station-chapter-code {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.6px;
  color: var(--accent);
  padding: 4px 9px;
  border: 1px solid var(--accent);
}
.station-chapter h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(26px, 4vw, 36px);
  letter-spacing: -0.6px;
  line-height: 1.1;
  margin: 0;
}
.station-prose {
  max-width: 720px;
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(16px, 1.9vw, 17px);
  line-height: 1.7;
  color: var(--ink);
}
.station-prose h2,
.station-prose h3,
.station-prose h4 {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.3px;
  line-height: 1.2;
  margin: 1.6em 0 0.5em;
}
.station-prose h2 { font-size: clamp(22px, 2.6vw, 26px); }
.station-prose h3 { font-size: clamp(18px, 2.1vw, 20px); color: var(--ink-soft); }
.station-prose h4 {
  font-size: 13px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--accent);
  font-family: var(--font-body);
  font-weight: 700;
  margin-top: 1.4em;
}
.station-prose p { margin: 0 0 1.1em; }
.station-prose ul,
.station-prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.station-prose li { margin-bottom: 0.4em; }
.station-prose strong { color: var(--ink); font-weight: 700; }
.station-prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-alt);
  padding: 1px 6px;
}
.station-prose a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}
.station-prose blockquote {
  margin: 1.2em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}

/* Stations jump-nav (right beneath the route map) */
.stations-jump {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.stations-jump a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .12s, border-color .12s;
}
.stations-jump a:hover { color: var(--accent); border-color: var(--accent); }
.stations-jump-code {
  font-family: var(--font-mono);
  color: var(--accent);
}

/* Blog post markdown body — reuses .post-body from design */
.post-body h2,
.post-body h3 {
  font-family: var(--font-head);
  font-weight: 500;
  letter-spacing: -0.4px;
  line-height: 1.2;
  margin: 1.5em 0 0.5em;
}
.post-body h2 { font-size: clamp(24px, 3vw, 28px); }
.post-body h3 { font-size: clamp(19px, 2.4vw, 22px); color: var(--ink-soft); }
.post-body ul,
.post-body ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.post-body li { margin-bottom: 0.4em; }
.post-body strong { color: var(--ink); font-weight: 700; }
.post-body a {
  color: var(--accent);
  border-bottom: 1px solid currentColor;
}
.post-body blockquote {
  margin: 1.2em 0;
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
  font-style: italic;
}

/* "Kjem snart" coming-soon guide layout */
.guide-coming-soon {
  padding-top: clamp(32px, 6vw, 64px);
  padding-bottom: clamp(48px, 8vw, 96px);
  text-align: center;
}
.guide-coming-soon h2 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(24px, 4vw, 32px);
  letter-spacing: -0.4px;
  margin: 12px 0 14px;
}
.guide-coming-soon p {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(16px, 2vw, 18px);
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.5;
}
.guide-coming-soon .btn { margin-top: 28px; }

/* "Om" + "Nyheitsbrev" pages */
.simple-page {
  padding-top: clamp(20px, 3vw, 32px);
  padding-bottom: clamp(48px, 8vw, 80px);
  max-width: 720px;
  margin: 0 auto;
}
.simple-page h1 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 64px);
  letter-spacing: -1.6px;
  line-height: 1;
  margin: 18px 0 18px;
}
.simple-page .lede {
  font-family: var(--font-head);
  font-style: italic;
  font-size: clamp(17px, 2.2vw, 20px);
  color: var(--ink-soft);
  line-height: 1.45;
  margin-bottom: 28px;
}
.simple-page-body {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: clamp(16px, 2vw, 17px);
  line-height: 1.7;
}
.simple-page-body p { margin: 0 0 1.1em; }
.simple-page-body h2 {
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(22px, 2.6vw, 26px);
  margin: 1.6em 0 0.4em;
  letter-spacing: -0.4px;
}

/* Reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Real image (figure) — used when imgph macro is called with src= */
.imgreal {
  position: relative;
  margin: 0;
  width: 100%;
  background: var(--surface-alt);
  overflow: hidden;
}
.imgreal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.imgreal figcaption {
  position: absolute;
  left: 12px; bottom: 10px;
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.3px;
}
.imgreal-16-9 { aspect-ratio: 16 / 9; }
.imgreal-4-3  { aspect-ratio: 4 / 3; }
.imgreal-3-4  { aspect-ratio: 3 / 4; }
.imgreal-4-5  { aspect-ratio: 4 / 5; }
.imgreal-21-9 { aspect-ratio: 21 / 9; }
.imgreal-1-1  { aspect-ratio: 1 / 1; }

/* Inline images inside post body — markdown ![alt](path) */
.post-body img,
.station-prose img {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.6em 0;
}
.post-body p > img,
.station-prose p > img { margin: 1.6em 0; }

/* Visually hidden helper (for screen-reader-only labels) */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link for accessibility */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-fg);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  z-index: 999;
}
.skip-link:focus { left: 8px; top: 8px; }

/* Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
