/* Stedssidene (#319). Farger og skrift som nettstedet (landing.css, docs/ux/00-designsprak.md).
   Ingen eksterne ressurser: skriftene ligger ved siden av. Bare kartet over landene har JavaScript (assets/map.js). */
@font-face { font-family: 'Figtree'; font-weight: 500; font-display: swap; src: url('fonts/figtree-500.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 700; font-display: swap; src: url('fonts/figtree-700.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 800; font-display: swap; src: url('fonts/figtree-800.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-weight: 800; font-display: swap; src: url('fonts/bricolage-800.woff2') format('woff2'); }

:root {
  --ink: #12263A;
  --ink-muted: #4F6070;
  --paper: #F4F7F9;
  --surface: #FFFFFF;
  --line: #DCE3E8;
  --line-strong: #C3CED7;
  --teal-600: #0B7A75;
  --teal-900: #0A4F4C;
  --sun-600: #C2441E;
  --gold: #F2B33D;
  --map-land: #ECF0E9;
  --display: 'Bricolage Grotesque', Georgia, serif;
  --body: 'Figtree', system-ui, sans-serif;
  /* Én farge per kategorigruppe på kart og nåler */
  --g-museums: #7A4E0B;
  --g-castles: #6B3420;
  --g-parks: #3F8F3A;
  --g-viewpoints: #2F6FEB;
  --g-nature: #0A4F4C;
  --g-lighthouses: #C2441E;
  --g-art: #9B3D8F;
  --g-stages: #5B4BB7;
  --g-family: #E07A1F;
  --g-fountains: #1D8FB0;
  --g-squares: #B7791F;
  --g-historic: #4F6070;
  --g-churches: #12263A;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: var(--body); font-weight: 500; color: var(--ink); background: var(--paper); font-size: 16px; line-height: 1.55; }
a { color: var(--teal-600); }
a:hover { color: var(--teal-900); }
h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.015em; margin: 0; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

.ex-wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

.ex-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.ex-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.ex-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.ex-logo span { font-family: var(--display); font-weight: 800; font-size: 20px; }
.ex-lang { font-weight: 700; font-size: 14px; color: var(--ink); text-decoration: none; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 8px 12px; }

.ex-hero { padding: 48px 0 40px; background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.ex-hero__grid { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; }
.ex-hero__text { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.ex-hero__art { flex: 0 1 260px; display: flex; justify-content: center; color: var(--sun-600); }
.ex-hero__art--map { flex: 1 1 420px; }
.ex-hero__art--photo { flex: 1 1 420px; min-width: 0; }
.ex-photo { margin: 0; width: 100%; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.ex-photo__frame { position: relative; }
.ex-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; background: var(--map-land); }
.ex-photo__stamp { position: absolute; right: 14px; bottom: 14px; width: 96px; height: 96px; display: flex; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--sun-600); box-shadow: 0 2px 10px rgba(15, 34, 51, .25); }
.ex-photo__stamp .ex-stamp { width: 100%; height: 100%; }
.ex-credit { font-size: 12px; line-height: 1.4; color: var(--ink-muted); overflow-wrap: anywhere; }
.ex-credit a { color: inherit; }
.ex-trip-map__route { fill: none; stroke: var(--teal-600); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.ex-trip-map__route--guess { stroke-dasharray: 6 6; stroke-width: 2; }
.ex-trip-map__stop circle { fill: var(--sun-600); stroke: #FFFFFF; stroke-width: 2; }
.ex-trip-map__stop text { fill: #FFFFFF; font-size: 12px; font-weight: 800; text-anchor: middle; }
.ex-trip-about { gap: 12px; font-size: 17px; line-height: 1.55; }
.ex-trip-stops { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ex-trip-stop { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.ex-trip-stop h3 { font-size: 18px; margin: 0 0 4px; overflow-wrap: anywhere; }
.ex-trip-stop p { margin: 0; color: var(--ink-muted); line-height: 1.5; }
.ex-trip-stop__text { flex: 1 1 auto; min-width: 0; }
.ex-trip-stop__number { flex: 0 0 32px; height: 32px; border-radius: 50%; background: var(--sun-600); color: #FFFFFF; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.ex-trip-stop__tip { flex: 0 0 auto; padding: 4px 10px; border-radius: 999px; background: var(--map-land); color: var(--teal-600); font-size: 13px; font-weight: 800; }
.ex-trip-stop img { flex: 0 0 120px; width: 120px; height: 80px; object-fit: cover; border-radius: 10px; }
@media (max-width: 480px) { .ex-trip-stop img { display: none; } }
.ex-ext { display: inline-block; width: 0.7em; height: 0.7em; margin-left: 0.3em; vertical-align: baseline; }
.ex-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.ex-photo-card { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ex-photo-card > a { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); }
.ex-photo-card > a:hover { border-color: var(--line-strong); color: var(--ink); }
.ex-photo-card img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--map-land); }
.ex-photo-card__text { display: flex; flex-direction: column; padding: 10px 14px 12px; }
.ex-photo-card__text strong { overflow-wrap: anywhere; }
.ex-photo-card__text span { font-size: 13px; color: var(--ink-muted); }
.ex-hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.05; overflow-wrap: anywhere; }
.ex-eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-600); }
.ex-eyebrow a { text-decoration: none; }
.ex-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 8px; }
.ex-crumbs a { text-decoration: none; color: inherit; }
.ex-crumbs a:hover { text-decoration: underline; }
.ex-crumbs [aria-current] { color: var(--ink-muted); }
.ex-lead { font-size: 19px; color: var(--ink-muted); max-width: 560px; }
.ex-note { font-size: 14px; color: var(--ink-muted); max-width: 520px; }
.ex-muted { color: var(--ink-muted); }
.ex-btn { display: inline-flex; align-items: center; min-height: 52px; padding: 14px 26px; border-radius: 14px; background: var(--sun-600); color: #FFFFFF; font-weight: 800; font-size: 17px; text-decoration: none; box-shadow: 0 6px 16px rgba(194, 68, 30, .35); }
.ex-btn:hover { color: #FFFFFF; background: #A93A18; }

.ex-stamp { transform: rotate(-12deg); max-width: 100%; height: auto; }
@media (max-width: 760px) { .ex-hero { padding: 32px 0 28px; } .ex-hero__art:not(.ex-hero__art--map):not(.ex-hero__art--photo) { flex: 0 0 auto; } .ex-hero__art--photo { flex: 1 1 100%; } .ex-hero__art:not(.ex-hero__art--map) .ex-stamp { width: 132px; height: 132px; } }
.ex-stamp text { fill: currentColor; font-family: var(--display); font-weight: 800; }
.ex-stamp__small { font-size: 10px; letter-spacing: .08em; }
.ex-stamp__big { font-size: 15px; }
.ex-stamp__mid { font-size: 11.5px; }

.ex-section { padding: 40px 0 56px; }
.ex-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 760px) { .ex-split { grid-template-columns: minmax(0, 1fr); } }

.ex-map { width: 100%; height: auto; display: block; }
.ex-map__bg { fill: var(--map-land); stroke: var(--line); }
.ex-map__land { fill: #FFFFFF; stroke: var(--line-strong); stroke-width: 1.2; stroke-linejoin: round; }
.ex-dot { fill-opacity: .85; stroke: #FFFFFF; stroke-width: 1; }
.ex-dot--faint { fill-opacity: .35; stroke-width: 0; }
.ex-marker__halo { fill: var(--sun-600); fill-opacity: .2; }
.ex-marker__dot { fill: var(--sun-600); stroke: #FFFFFF; stroke-width: 2.5; }

.ex-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.ex-stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ex-facts { gap: 12px; }
.ex-wiki { gap: 10px; }
.ex-badge { margin-top: 24px; gap: 10px; }
.ex-badge summary { cursor: pointer; font-weight: 800; color: var(--teal-600); }
.ex-badge p { margin: 0; }
.ex-badge__downloads { display: flex; flex-wrap: wrap; gap: 16px; }
.ex-badge__download { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 700; }
.ex-badge__label { font-size: 14px; color: var(--ink-muted); }
.ex-badge__code { margin: 0; padding: 10px 12px; background: var(--map-land); border-radius: 10px; font-size: 13px; white-space: pre-wrap; overflow-wrap: anywhere; }
.ex-category-about { font-size: 16px; max-width: 560px; }
.ex-wiki__text { font-size: 17px; line-height: 1.55; overflow-wrap: anywhere; }
.ex-facts__title { font-size: 24px; }
.ex-facts__about { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.ex-facts__list { display: flex; flex-direction: column; margin: 0; }
.ex-facts__list > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
@media (max-width: 480px) { .ex-facts__list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.ex-facts__list dt { font-size: 14px; font-weight: 700; color: var(--ink-muted); }
.ex-facts__list dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.ex-hours { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.ex-hours li { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 2px 12px; font-variant-numeric: tabular-nums; }
.ex-hours li span:first-child { font-weight: 500; }
.ex-card__big { font-family: var(--display); font-weight: 800; font-size: 26px; }
.ex-h2 { font-size: 24px; margin: 28px 0 12px; display: flex; align-items: center; gap: 10px; }
.ex-count { font-family: var(--body); font-size: 15px; font-weight: 700; color: var(--ink-muted); }

.ex-list { display: flex; flex-direction: column; gap: 8px; }
.ex-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.ex-row:hover { border-color: var(--line-strong); color: var(--ink); }
.ex-row__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ex-row__text strong { overflow-wrap: anywhere; }
.ex-row__text span { font-size: 13px; color: var(--ink-muted); }
.ex-row__meta { font-size: 14px; font-weight: 700; color: var(--ink-muted); white-space: nowrap; }
.ex-row__pin { width: 14px; height: 14px; border-radius: 50%; flex: none; border: 2px solid #FFFFFF; box-shadow: 0 0 0 1px var(--line-strong); }

.ex-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ex-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; }

.ex-groups { padding-bottom: 56px; }
.ex-group { padding-top: 16px; }
.ex-group .ex-muted { margin-bottom: 14px; }
.ex-group .ex-h2 a { color: inherit; text-decoration: none; }
.ex-group .ex-h2 a:hover { text-decoration: underline; }
.ex-more { margin-top: 14px; font-weight: 700; }
.ex-jump { padding-top: 20px; }
.ex-area { scroll-margin-top: 12px; }
.ex-regions { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ex-region__name { font-family: var(--display); font-size: 24px; margin: 0 0 4px; }
.ex-region__name a { color: var(--ink); text-decoration: none; }
.ex-region__name a:hover { text-decoration: underline; }
.ex-region .ex-chips { margin-top: 12px; }
.ex-steps { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 17px; }
.ex-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 8px; }
.ex-tile { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); font-weight: 700; overflow-wrap: anywhere; }
.ex-tile .ex-row__text span:not(.ex-tile__name) { font-weight: 500; }
.ex-tile__name { font-size: inherit; color: var(--ink); }
.ex-row__text .ex-tile__name { font-size: inherit; color: var(--ink); }
.ex-tile:hover { border-color: var(--line-strong); color: var(--ink); }

.ex-footer { background: #0F2233; color: #C9D6E0; padding: 32px 0 40px; font-size: 14px; }
.ex-footer .ex-wrap { display: flex; flex-direction: column; gap: 8px; }
.ex-footer a { color: #FFFFFF; }

/* Fargen til hver gruppe, på prikker og nåler */
.ex-dot--museums, .ex-pin--museums { fill: var(--g-museums); background: var(--g-museums); }
.ex-dot--castles, .ex-pin--castles { fill: var(--g-castles); background: var(--g-castles); }
.ex-dot--parks, .ex-pin--parks { fill: var(--g-parks); background: var(--g-parks); }
.ex-dot--viewpoints, .ex-pin--viewpoints { fill: var(--g-viewpoints); background: var(--g-viewpoints); }
.ex-dot--nature, .ex-pin--nature { fill: var(--g-nature); background: var(--g-nature); }
.ex-dot--lighthouses, .ex-pin--lighthouses { fill: var(--g-lighthouses); background: var(--g-lighthouses); }
.ex-dot--art, .ex-pin--art { fill: var(--g-art); background: var(--g-art); }
.ex-dot--stages, .ex-pin--stages { fill: var(--g-stages); background: var(--g-stages); }
.ex-dot--family, .ex-pin--family { fill: var(--g-family); background: var(--g-family); }
.ex-dot--fountains, .ex-pin--fountains { fill: var(--g-fountains); background: var(--g-fountains); }
.ex-dot--squares, .ex-pin--squares { fill: var(--g-squares); background: var(--g-squares); }
.ex-dot--historic, .ex-pin--historic { fill: var(--g-historic); background: var(--g-historic); }
.ex-dot--churches, .ex-pin--churches { fill: var(--g-churches); background: var(--g-churches); }

/* Kartet over landene dine (#431). Nattkartets farger: mørkt hav, dempet land, og gull på det brukeren velger. */
.mp-intro { padding: 32px 0 20px; background: var(--surface); }
.mp-intro h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.08; }
.mp-intro .ex-lead { margin-top: 10px; }
.mp-tool { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); grid-template-areas: "stage picker" "actions picker"; grid-template-rows: auto 1fr; gap: 16px 24px; padding-top: 20px; padding-bottom: 32px; }
.mp-stage { grid-area: stage; display: grid; gap: 10px; min-width: 0; }
.mp-picker { grid-area: picker; min-width: 0; display: grid; gap: 14px; align-content: start; }
.mp-actions { grid-area: actions; display: grid; gap: 10px; align-content: start; min-width: 0; }
.mp-night { position: relative; background: #0F2233; border-radius: 16px; overflow: hidden; aspect-ratio: 1000 / 438; }
.mp-svg { display: block; width: 100%; height: 100%; }
.mp-land path, .mp-land circle { fill: #1E3A50; stroke: #2C4D66; stroke-width: .6; vector-effect: non-scaling-stroke; }
.mp-land [data-c] { cursor: pointer; }
.mp-land [data-c]:hover { fill: #2C4D66; }
.mp-land circle { fill: #4A6B85; stroke: none; }
.mp-land .is-on { fill: #F2B33D; stroke: #F2B33D; }
.mp-lit { pointer-events: none; }
.mp-lit path, .mp-lit circle { fill: #F2B33D; stroke: #F2B33D; stroke-width: .8; vector-effect: non-scaling-stroke; }
.mp-count { position: absolute; left: 14px; bottom: 10px; margin: 0; color: #C9D6E0; font-size: 13px; line-height: 1.25; pointer-events: none; text-shadow: 0 1px 4px #0F2233; }
.mp-count strong { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 6vw, 44px); color: #F2B33D; line-height: 1; }
.mp-count #mp-count-word { color: #FFFFFF; font-weight: 700; font-size: 15px; }
.mp-chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mp-chip { flex: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.mp-chip[aria-pressed="true"] { background: #0F2233; border-color: #0F2233; color: #FFFFFF; }
.mp-shared { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 10px 14px; border-radius: 12px; background: #FFF4D9; font-weight: 700; }
.mp-shared button, .mp-link { font: inherit; font-weight: 700; background: none; border: 0; padding: 0; color: var(--teal-600); text-decoration: underline; cursor: pointer; }
.mp-link:disabled { color: var(--ink-muted); text-decoration: none; cursor: default; }
/* display på en klasse overstyrer ellers hidden, så elementer skjult fra skriptet ville blitt stående */
.mp-tool [hidden] { display: none; }
.mp-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.mp-search input, .mp-name input { width: 100%; font: inherit; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; }
.mp-groups { display: grid; gap: 16px; }
.mp-group h3 { font-family: var(--display); font-weight: 800; font-size: 18px; margin: 0 0 6px; }
.mp-group.is-empty { display: none; }
.mp-group ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 2px 10px; }
.mp-row { display: flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.mp-row input { width: 20px; height: 20px; flex: none; accent-color: var(--teal-600); }
.mp-row span { overflow-wrap: anywhere; }
.mp-name { display: grid; gap: 4px; font-weight: 700; }
.mp-name small { font-weight: 500; }
.mp-take { justify-content: center; text-align: center; }
.mp-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.mp-secondary { font: inherit; font-weight: 700; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.mp-secondary:disabled { color: var(--ink-muted); cursor: default; opacity: .7; }
.mp-status:empty { display: none; }
.mp-status { font-weight: 700; color: var(--teal-900); }
.mp-faq h3 { font-size: 17px; margin: 16px 0 4px; }
.mp-faq p { max-width: 680px; }
.mp-chip:focus-visible, .mp-secondary:focus-visible, .mp-link:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 2px; }
@media (max-width: 760px) {
  .mp-tool { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "stage" "picker" "actions"; }
  .mp-stage { position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 6px 0; }
  .mp-actions { position: sticky; bottom: 0; z-index: 2; background: var(--paper); padding: 10px 0; border-top: 1px solid var(--line); }
  .mp-take-note { display: none; }
  .mp-take { min-height: 46px; padding: 10px 16px; font-size: 16px; }
  .mp-secondary { padding: 8px 12px; font-size: 14px; }
}
