/* TOCN MiniGuide – base layout (Design bot: see DESIGN.md + tokens.css) */
@import url("tokens.css?_ship=vgf6j9f");

:root {
  --tocn-red: var(--color-accent, #E31937);
  --tocn-green: #04DB07;
  --tocn-secondary: #6C5879;
  --bg: var(--color-surface, #f7f7f8);
  --surface: var(--color-bg, #ffffff);
  --text: var(--color-text, #1a1a1a);
  --muted: var(--color-text-muted, #5c5c5c);
  --border: var(--color-border, #e2e2e6);
  --sidebar-w: 280px;
  --font: var(--font-sans, "Outfit", system-ui, -apple-system, sans-serif);
}


*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
}

a { color: var(--tocn-red); }
a:hover { text-decoration: underline; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 1.25rem;
  background: var(--surface);
  border-bottom: 3px solid var(--tocn-red);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand-text { display: flex; flex-direction: column; }
.brand-text strong { font-size: 1.05rem; }
.brand-text span { font-size: 0.8rem; color: var(--muted); }

.header-controls {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

#search {
  min-width: 200px;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}

.lang-toggle button {
  border: 0;
  background: var(--surface);
  padding: 0.4rem 0.7rem;
  font: inherit;
  cursor: pointer;
  color: var(--muted);
}

.lang-toggle button[aria-pressed="true"] {
  background: var(--tocn-red);
  color: #fff;
}

.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 80px);
}

.sidebar {
  position: sticky;
  top: 76px;
  align-self: start;
  max-height: calc(100vh - 76px);
  overflow: auto;
  padding: 1rem 0.75rem 2rem;
  background: var(--surface);
  border-right: 1px solid var(--border);
}

.sidebar h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0.5rem 0.5rem;
}

#toc {
  list-style: none;
  margin: 0;
  padding: 0;
}

#toc a {
  display: block;
  padding: 0.35rem 0.5rem;
  border-radius: 6px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}

#toc a:hover,
#toc a[aria-current="true"] {
  background: #fde8eb;
  color: var(--tocn-red);
}

#toc li.hidden { display: none; }

main {
  padding: 1.25rem 1.5rem 3rem;
}

.section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem 1.5rem;
  margin-bottom: 1.25rem;
}

.section.hidden { display: none; }

.section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: var(--text);
  border-bottom: 2px solid var(--tocn-red);
  padding-bottom: 0.4rem;
}

.section .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #f0eef3;
  color: var(--tocn-secondary);
}

.body-md h3 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}

.body-md p { margin: 0.5rem 0; }
.body-md ul, .body-md ol { margin: 0.4rem 0 0.8rem; padding-left: 1.25rem; }
.body-md li { margin: 0.2rem 0; }
.body-md strong { font-weight: 600; }

.section-links {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
}

.section-links h3 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.section-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.9rem;
  background: #fff;
}

.section-links a:hover {
  border-color: var(--tocn-red);
  background: #fde8eb;
}

.model-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: var(--tocn-secondary);
  color: #fff;
}

/* Illustration placeholders for Design bot */
figure.screen-mock {
  margin: 1rem 0;
  padding: 1.5rem 1rem;
  border: 2px dashed var(--tocn-secondary);
  border-radius: 12px;
  background: linear-gradient(135deg, #fafafa, #f0eef3);
  text-align: center;
  color: var(--muted);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

figure.screen-mock::before {
  content: "🖥";
  font-size: 1.5rem;
}

figure.screen-mock figcaption {
  font-size: 0.85rem;
  max-width: 36rem;
}

.no-results {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.site-footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.site-footer a { color: var(--tocn-red); }


/* Mobile nav toggle */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--tocn-red);
  color: var(--tocn-red);
}

.nav-toggle[aria-expanded="true"] {
  background: #fde8eb;
  border-color: var(--tocn-red);
  color: var(--tocn-red);
}

.nav-toggle-icon {
  display: inline-block;
  width: 1.1rem;
  height: 0.85rem;
  position: relative;
  flex-shrink: 0;
  background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

.nav-toggle-icon::before { top: 0; }
.nav-toggle-icon::after { bottom: 0; }

.nav-backdrop {
  display: none;
}

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }

  .nav-toggle { display: inline-flex; }

  .header-controls { width: 100%; margin-left: 0; }
  #search { flex: 1; min-width: 0; }

  /* Collapsed by default; opens as slide-down overlay under header */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 35;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0 0.75rem;
    border-right: 0;
    border-bottom: 0;
    box-shadow: none;
    visibility: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease, padding 0.25s ease, visibility 0.2s;
  }

  body.nav-open .sidebar {
    /* Sit just below sticky header; header height varies with wrap */
    top: var(--header-h, 72px);
    max-height: min(70vh, calc(100vh - var(--header-h, 72px)));
    overflow: auto;
    padding: 0.75rem 0.75rem 1.25rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    visibility: visible;
    opacity: 1;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(0, 0, 0, 0.35);
    border: 0;
    padding: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .nav-backdrop[hidden] {
    display: none !important;
  }

  #toc {
    display: block;
  }
  #toc .toc-group {
    width: 100%;
  }
  #toc .toc-sub a { font-size: 0.8rem; }

  /* Tighter mobile spacing */
  main {
    padding: 0.85rem 0.9rem 2rem;
  }

  .section {
    padding: 0.9rem 1rem 1.1rem;
    margin-bottom: 0.9rem;
    border-radius: 10px;
  }

  .section h2 {
    font-size: 1.2rem;
    margin-bottom: 0.55rem;
  }

  .hero {
    margin-bottom: 1.25rem;
  }

  .hero-meta {
    margin-bottom: 0.85rem;
  }

  .topic-grid {
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .topic-body {
    padding: 0.55rem 0.65rem 0.75rem;
  }

  .site-header {
    padding: 0.55rem 0.85rem;
    gap: 0.5rem 0.75rem;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }
}


figure.screen-mock.has-image {
  border: none;
  padding: 0;
  background: #0b0b0b;
  min-height: 0;
}

figure.screen-mock.has-image::before {
  content: none;
}

figure.screen-mock.has-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

figure.screen-mock.has-image figcaption {
  display: none;
}


/* Hero + topic cards */
.hero {
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
}

.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.hero-lead {
  margin: 0 0 0.35rem;
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

.hero-meta {
  margin: 0 0 1.25rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.topic-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(227, 25, 55, 0.12);
  border-color: var(--tocn-red);
  text-decoration: none;
}

.topic-thumb {
  aspect-ratio: 16 / 9;
  background: #111;
  overflow: hidden;
}

.topic-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.topic-body {
  padding: 0.75rem 0.9rem 1rem;
}

.topic-body h2 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: var(--text);
}

.topic-body p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
}

.hero.hidden { display: none; }


/* Hierarchical TOC (supports .toc-group-label and .toc-group-title) */
#toc .toc-group {
  margin: 0 0 0.55rem;
  list-style: none;
}

#toc .toc-group-label,
#toc .toc-group-title {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font: inherit;
  font-size: 0.7rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  text-align: left;
  color: var(--muted);
  background: transparent;
  border: 0;
  padding: 0.4rem 0.5rem 0.25rem;
  cursor: pointer;
  border-radius: 6px;
}

#toc .toc-group-title:hover,
#toc .toc-group-label:hover {
  color: var(--text);
  background: #f4f4f6;
}

#toc .toc-group.is-active .toc-group-label,
#toc .toc-group.is-active .toc-group-title,
#toc .toc-group:not(.is-collapsed) .toc-group-title:focus-visible {
  color: var(--tocn-red);
}

#toc .toc-group-title::before {
  content: "▾";
  display: inline-block;
  width: 0.9em;
  margin-right: 0.15rem;
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.15s ease;
}

#toc .toc-group.is-collapsed .toc-group-title::before {
  transform: rotate(-90deg);
}

#toc .toc-group.is-collapsed .toc-sub {
  display: none;
}

#toc .toc-sub {
  list-style: none;
  margin: 0.05rem 0 0.15rem;
  padding: 0.1rem 0 0.15rem 0.7rem;
  border-left: 2px solid #ececef;
}

#toc .toc-group.is-active .toc-sub {
  border-left-color: #f5c2cb;
}

#toc .toc-sub li {
  margin: 0;
  list-style: none;
}

#toc .toc-sub a {
  display: block;
  padding: 0.28rem 0.55rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.84rem;
  border-radius: 6px;
  line-height: 1.35;
}

#toc .toc-sub a:hover {
  background: #fde8eb;
  color: var(--tocn-red);
  text-decoration: none;
}

#toc .toc-sub a[aria-current="true"] {
  background: #fde8eb;
  color: var(--tocn-red);
  font-weight: 600;
}

#toc .toc-group.hidden,
#toc li.hidden {
  display: none;
}


/* Club photo gallery (om-klubben) */
.photo-gallery {
  margin: 1.25rem 0 0.5rem;
}

.photo-gallery-title {
  margin: 0 0 0.75rem;
  font-size: 1.05rem;
  font-weight: 650;
  color: var(--text);
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.photo-gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0b0b;
}

.photo-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.photo-gallery-item figcaption {
  padding: 0.45rem 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--border);
}

@media (max-width: 860px) {
  .photo-gallery-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }
}

/* Block printing — content hidden in print preview / print */
@media print {
  html, body {
    background: #fff !important;
  }

  body * {
    visibility: hidden !important;
  }

  body::after {
    content: "Utskrift av MiniGuiden er ikke tilgjengelig. Se https://miniguiden.shipstatic.com";
    visibility: visible !important;
    display: block !important;
    position: fixed;
    inset: 0;
    padding: 2rem;
    font: 16px/1.5 system-ui, sans-serif;
    color: #111;
    background: #fff;
  }
}

/* Block text selection / copy */
body {
  -webkit-user-select: none;
  user-select: none;
}
input, textarea, [contenteditable="true"] {
  -webkit-user-select: text;
  user-select: text;
}

/* —— Supercharger price explorer —— */
.price-explorer {
  margin: 1.25rem 0 0.5rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: 14px;
  border: 1px solid #c5d9c8;
  background: #f0f4f0;
}

.price-explorer-meta,
.price-explorer-loading,
.price-explorer-error,
.price-empty {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
  color: var(--muted, #4b5669);
}

.price-explorer-error {
  color: var(--tocn-red, #e31937);
}

.price-toggle {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.2rem;
  margin-bottom: 0.85rem;
  border-radius: 9999px;
  background: #fff;
  border: 1px solid var(--border, #d2d7df);
}

.price-toggle-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--text, #15181e);
  font: 600 0.875rem/1 var(--font-sans, Outfit, system-ui, sans-serif);
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  cursor: pointer;
}

.price-toggle-btn[aria-pressed="true"] {
  background: var(--tocn-red, #e31937);
  color: #fff;
}

.price-toggle-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(227 25 55 / 35%);
}

.price-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.price-chip {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--border, #d2d7df);
  background: #fff;
  color: var(--text, #15181e);
  font: 500 0.8125rem/1 var(--font-sans, Outfit, system-ui, sans-serif);
  padding: 0.4rem 0.7rem;
  border-radius: 9999px;
  cursor: pointer;
}

.price-chip.is-active,
.price-chip[aria-pressed="true"] {
  border-color: var(--tocn-red, #e31937);
  background: #fde8eb;
  color: var(--tocn-red, #e31937);
}

.price-chip-count {
  display: inline-flex;
  min-width: 1.35rem;
  justify-content: center;
  padding: 0.1rem 0.35rem;
  border-radius: 9999px;
  background: rgb(0 0 0 / 6%);
  font-size: 0.75rem;
  font-weight: 600;
}

.price-chip.is-active .price-chip-count,
.price-chip[aria-pressed="true"] .price-chip-count {
  background: rgb(227 25 55 / 15%);
}

.price-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgb(227 25 55 / 35%);
}

.price-search-wrap {
  margin-bottom: 1rem;
}

.price-search {
  width: 100%;
  max-width: 28rem;
  box-sizing: border-box;
  border: 1px solid var(--border, #d2d7df);
  border-radius: 10px;
  background: #fff;
  color: var(--text, #15181e);
  font: 400 0.9375rem/1.4 var(--font-sans, Outfit, system-ui, sans-serif);
  padding: 0.65rem 0.85rem;
}

.price-search:focus {
  outline: none;
  border-color: var(--tocn-red, #e31937);
  box-shadow: 0 0 0 3px rgb(227 25 55 / 25%);
}

.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;
}

.price-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.price-region-heading {
  position: sticky;
  top: calc(var(--header-h, 64px) + 0.25rem);
  z-index: 2;
  margin: 0 0 0.55rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: #111318;
  color: #f2f2f2;
  font-size: 1rem;
  font-weight: 650;
  scroll-margin-top: calc(var(--header-h, 64px) + 0.5rem);
}

.price-fylke {
  margin-bottom: 0.75rem;
}

.price-fylke-heading {
  margin: 0 0 0.4rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted, #4b5669);
}

.price-stations {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.price-station {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "name price"
    "meta price"
    "hours hours";
  gap: 0.15rem 0.85rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid #c5d9c8;
  background: #f3f7f3;
}

.price-station-name {
  grid-area: name;
  font-weight: 600;
  color: var(--text, #15181e);
}

.price-station-meta {
  grid-area: meta;
  font-size: 0.8125rem;
  color: var(--muted, #4b5669);
}

.price-station-price {
  grid-area: price;
  justify-self: end;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--tocn-red, #e31937);
  white-space: nowrap;
}


.price-station-hours {
  grid-area: hours;
  margin-top: 0.4rem;
  padding-top: 0.35rem;
  border-top: 1px solid #d5e4d7;
}

.price-station-hours-toggle {
  cursor: pointer;
  list-style: none;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--tocn-red, #e31937);
  user-select: none;
}

.price-station-hours-toggle::-webkit-details-marker {
  display: none;
}

.price-station-hours-toggle::before {
  content: "▸ ";
  display: inline-block;
  transition: transform 0.15s ease;
}

.price-station-hours[open] > .price-station-hours-toggle::before {
  transform: rotate(90deg);
}

.price-station-hours-table {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.price-hour-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  background: #d9d9d9;
  font-size: 0.8125rem;
  font-variant-numeric: tabular-nums;
  color: #1a1a1a;
}

/* Same scale as Ladepriser Excel/PNG (per station min/mid/max) */
.price-hour-row.is-cheap {
  background: #c6efce;
}

.price-hour-row.is-mid {
  background: #ffeb9c;
}

.price-hour-row.is-expensive {
  background: #ffc7ce;
}

.price-hour-row.is-missing {
  background: #d9d9d9;
}

.price-hour-time {
  font-weight: 600;
}

.price-hour-price {
  font-weight: 700;
  white-space: nowrap;
}

.price-station-idle {
  margin-top: 0.4rem;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: #eef2ee;
  font-size: 0.75rem;
  color: var(--muted, #4b5669);
}

.price-empty[hidden] {
  display: none;
}

@media (max-width: 860px) {
  .price-explorer {
    padding: 0.85rem 0.8rem 1rem;
  }

  .price-station {
    grid-template-columns: 1fr;
    grid-template-areas:
      "name"
      "meta"
      "price"
      "hours";
  }

  .price-station-price {
    justify-self: start;
    margin-top: 0.2rem;
  }

  .price-station-hours {
    margin-top: 0.35rem;
    padding-top: 0.35rem;
  }

  .price-search {
    max-width: none;
  }
}


/* Sort + current price badge */
.price-sort {
  margin-top: 0.35rem;
}
.price-sort-hint {
  margin: 0.25rem 0 0.6rem;
  font-size: 0.8rem;
  color: #6b7280;
}
.price-now-badge {
  display: inline-block;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}
.price-station-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.15rem;
}
.price-station-range {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}
.price-hour-row.is-now {
  outline: 2px solid #E31937;
  outline-offset: 1px;
}


/* When a region chip filters to one landsdel, sticky heading would cover the
   first station after scrollIntoView — keep heading in normal flow then. */
.price-list > .price-region:only-child .price-region-heading {
  position: static;
  top: auto;
}
.price-region {
  scroll-margin-top: calc(var(--header-h, 72px) + 0.75rem);
}
.price-list > .price-region:only-child .price-station:first-child {
  scroll-margin-top: calc(var(--header-h, 72px) + 0.5rem);
}

.price-region-nearest .price-station {
  position: relative;
  padding-left: 2.4rem;
}
.price-nearest-rank {
  position: absolute;
  left: 0.65rem;
  top: 0.85rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  background: #E31937;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Internal links without href (status-bar hidden) keep link look */
a[data-hash] { cursor: pointer; }

/* —— Embed mode: embed/ladepriser.html (ladepriser.tocn.no iframe) ——
   Only the price explorer; no header/sidebar. --header-h is 0 so sticky
   region headings and scroll-margins work inside the iframe. */
html:has(body[data-mode="prices-embed"]),
body[data-mode="prices-embed"] {
  --header-h: 0px;
  background: transparent;
}
body[data-mode="prices-embed"] {
  margin: 0;
  padding: 0;
}
body[data-mode="prices-embed"] #ladepriser {
  display: flow-root; /* contain child margins so height is measured right */
}
body[data-mode="prices-embed"] .price-explorer {
  margin: 0;
}
body[data-mode="prices-embed"].is-standalone {
  background: var(--surface, #fff);
}
body[data-mode="prices-embed"].is-standalone #ladepriser {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
}
.price-embed-source {
  margin: 0.5rem 0.25rem 0;
  font-size: 0.8125rem;
  color: var(--muted, #4b5669);
}
.price-embed-source:empty {
  display: none;
}
