/* brannvesen.org – grunnmur-CSS
   Alle merkeval kjem som custom properties frå globalen «Merkevare» (sjå _partials/tokens.twig).
   Ingen farge, skrift eller radius er skriven direkte i komponentane under. */

:root {
  --brand: #222354; --brand-dark: #1A1B45; --accent: #F1471D; --warning: #F2C200;
  --ink: #1B1C3A; --ink-muted: #4A4B66; --bg: #F6F6F3; --surface: #FFFFFF;
  --line: #D9D9D4; --line-strong: var(--brand); --ok: #2A6B3C; --error: #9B1C1C;
  --focus: var(--brand); --radius: 0px; --hover-bg: #EEEEEA;
  --font: 'Public Sans', system-ui, sans-serif;
  --gutter: 16px; --gap: 24px; --sec: 40px; --max: 1328px;
}
@media (min-width: 1024px) { :root { --gutter: 56px; --gap: 64px; --sec: 48px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
@media (min-width: 1024px) { body { font-size: 17px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); }
a:hover { color: var(--brand); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; text-wrap: pretty; }
p { margin: 0 0 .8em; }
button { font: inherit; color: inherit; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--brand); color: #fff; padding: 10px 14px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 8px; color: #fff; }
.is-hidden { display: none !important; } /* husstandard: aldri [hidden] åleine */

.wrap { max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
@media (min-width: 1024px) { .label { font-size: 13px; } }
.muted { color: var(--ink-muted); }
.meta { font-size: 13px; color: var(--ink-muted); }
@media (min-width: 1024px) { .meta { font-size: 15px; } }
.ingress { font-size: 16px; line-height: 1.4; color: var(--ink-muted); text-wrap: pretty; margin: 0; }
@media (min-width: 1024px) { .ingress { font-size: 22px; } }
.h-display { font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.h1 { font-size: 32px; font-weight: 800; line-height: 1.08; letter-spacing: -.01em; }
.h2 { font-size: 22px; font-weight: 700; line-height: 1.2; }
.h2--forside { font-size: 26px; line-height: 1.15; }
.h3 { font-size: 18px; font-weight: 700; line-height: 1.25; }
@media (min-width: 1024px) {
  .h-display { font-size: 56px; } .h1 { font-size: 48px; } .h2 { font-size: 28px; } .h2--forside { font-size: 32px; } .h3 { font-size: 20px; }
}
.prose { max-width: 76ch; }
.prose img { max-width: 100%; height: auto !important; aspect-ratio: auto !important; }
.prose h2 { font-size: 22px; margin: 1.4em 0 .4em; } .prose h3 { font-size: 19px; margin: 1.2em 0 .3em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.arrow { flex: none; width: 18px; height: 18px; }

/* ---------- toppfane ---------- */
.topfane { background: var(--brand); color: #fff; font-size: 13px; }
.topfane .wrap { display: flex; justify-content: space-between; align-items: center; height: 32px; }
@media (min-width: 1024px) { .topfane .wrap { height: 36px; } }
.topfane nav { display: flex; height: 100%; }
.topfane a, .topfane span { color: #fff; display: flex; align-items: center; padding: 0 12px; height: 100%; text-decoration: none; font-weight: 500; gap: 6px; }
.topfane a:hover { text-decoration: underline; color: #fff; }
.topfane [aria-current] { background: var(--bg); color: var(--brand); font-weight: 700; }
.topfane .lang { display: flex; gap: 12px; align-items: center; }
.topfane .lang a, .topfane .lang strong { padding: 0; height: auto; }
.topfane .lang a { text-decoration: underline; }
.topfane .lang .sep { opacity: .5; padding: 0; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
@media (min-width: 1024px) { .site-header .wrap { padding-top: 18px; padding-bottom: 18px; } }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { height: 40px; width: auto; }
.brand { gap: 10px; min-width: 0; flex: 1 1 auto; }
.brand span { font-weight: 700; font-size: 14px; line-height: 1.2; max-width: 180px; }
.brand small { display: block; font-weight: 500; font-size: 12px; color: var(--ink-muted); }
@media (min-width: 1024px) { .brand img { height: 52px; } .brand span { font-size: 17px; max-width: 210px; } }
.mainnav { display: none; }
.mainnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; flex-wrap: wrap; }
.mainnav a { text-decoration: none; font-weight: 500; font-size: 15px; padding: 6px 0; border-bottom: 2px solid transparent; }
.mainnav a:hover, .mainnav a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--ink); }
.header-tools { display: flex; gap: 8px; align-items: center; flex: none; }
@media (max-width: 1179px) { .header-tools .btn--primary { min-height: 44px; padding: 0 12px; font-size: 14px; } }
.btn-icon, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px; border: 1px solid var(--brand); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; border-radius: var(--radius); cursor: pointer; }
.btn:hover, .btn-icon:hover { background: var(--hover-bg); color: var(--ink); }
.btn--primary { background: var(--brand); color: #fff; min-height: 48px; padding: 0 20px; font-size: 16px; }
.btn--primary:hover { background: var(--brand-dark); color: #fff; }
.btn--outline-light { background: transparent; border-color: #fff; color: #fff; min-height: 48px; padding: 0 22px; font-size: 16px; }
.btn--outline-light:hover { background: #fff; color: var(--brand); }
.searchform { display: none; }
.searchform input { height: 46px; width: 150px; border: 1px solid var(--brand); padding: 0 12px 0 34px; font: inherit; font-size: 15px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%234A4B66' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") 12px 50% no-repeat; border-radius: var(--radius); }
@media (min-width: 1180px) {
  .mainnav { display: block; }
  .searchform { display: block; }
  .menu-toggle, .search-toggle { display: none !important; }
}
.mobilnav { border-bottom: 1px solid var(--line); background: var(--surface); }
.mobilnav ul { list-style: none; margin: 0; padding: 8px 0; }
.mobilnav a { display: flex; justify-content: space-between; align-items: center; min-height: 48px; text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobilnav form { padding: 12px 0; }
.mobilnav input { width: 100%; height: 46px; border: 1px solid var(--brand); padding: 0 12px; font: inherit; border-radius: var(--radius); }

/* ---------- 110 ---------- */
.stripe110 { display: block; background: var(--accent); color: #fff; text-align: center; text-decoration: none; font-weight: 700; font-size: 17px; line-height: 44px; min-height: 44px; }
.stripe110 u { text-underline-offset: 3px; }
.stripe110:hover { color: #fff; }
@media (min-width: 1024px) { .stripe110 { font-size: 19px; } }

/* ---------- varsel ---------- */
.varsel { display: grid; grid-template-columns: 40px 1fr; background: var(--surface); border: 1px solid var(--brand); margin-top: 16px; border-radius: var(--radius); }
.varsel__etikett { background: var(--warning); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.varsel__etikett span { writing-mode: vertical-rl; transform: rotate(180deg); }
.varsel--oppheva .varsel__etikett { background: var(--ok); color: #fff; }
.varsel__body { padding: 12px 14px; }
.varsel__title { font-size: 17px; font-weight: 700; line-height: 1.25; margin: 0 0 6px; }
.varsel__meta { font-size: 13px; color: var(--ink-muted); margin: 0 0 6px; }
.varsel__meta b { color: var(--ink); font-weight: 700; }
.varsel__les { font-weight: 700; font-size: 14px; }
@media (min-width: 1024px) {
  .varsel { grid-template-columns: 120px 1fr auto; margin-top: 24px; }
  .varsel__etikett { flex-direction: row; font-size: 13px; padding: 0; }
  .varsel__etikett span { writing-mode: horizontal-tb; transform: none; }
  .varsel__body { padding: 16px 24px; }
  .varsel__title { font-size: 20px; }
  .varsel__meta { font-size: 15px; margin: 0; }
  .varsel__meta span + span::before { content: "  "; white-space: pre; }
  .varsel__les { align-self: center; padding: 0 24px; font-size: 17px; }
  .varsel__body .varsel__les { display: none; }
}
@media (max-width: 1023px) { .varsel > .varsel__les { display: none; } }

/* ---------- figure / bilete ---------- */
.fig { margin: 0; position: relative; background: var(--line); }
.fig img { width: 100%; height: 100%; object-fit: cover; }
.fig figcaption { position: absolute; left: 0; bottom: 0; background: var(--brand); color: #fff; font-size: 13px; padding: 6px 12px; max-width: 90%; }
.ar-16x9 { aspect-ratio: 16/9; } .ar-4x3 { aspect-ratio: 4/3; } .ar-3x4 { aspect-ratio: 3/4; } .ar-21x8 { aspect-ratio: 21/8; } .ar-4x5 { aspect-ratio: 4/5; }

/* ---------- seksjonar ---------- */
.sec { padding: var(--sec) 0; border-top: 1px solid var(--line); }
.sec--first { border-top: 0; }
.sec--kvit { background: var(--surface); }
.sec--brand { background: var(--brand); color: #fff; }
.sec--brand a, .sec--brand .label, .sec--brand .muted, .sec--brand .ingress { color: #fff; }
.grid-53 { display: grid; gap: 32px; }
@media (min-width: 1024px) { .grid-53 { grid-template-columns: 5fr 3fr; gap: var(--gap); } .grid-35 { display: grid; grid-template-columns: 3fr 5fr; gap: var(--gap); } }
.stack > * + * { margin-top: 24px; }
.stack-sm > * + * { margin-top: 12px; }

/* hero forside */
.hero { padding: 24px 0 var(--sec); }
.hero__grid { display: grid; gap: 24px; }
.hero__main { display: contents; }
.hero__head { order: 1; }
.hero__snarvegar { order: 2; }
.hero__hytte { order: 3; }
.hero__bilete { order: 4; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
@media (min-width: 1024px) {
  .hero { padding-top: 48px; }
  .hero__grid { grid-template-columns: 5fr 3fr; gap: var(--gap); align-items: start; }
  .hero__main { display: block; grid-column: 1; }
  .hero__main > * + * { margin-top: 36px; }
  .hero__snarvegar { grid-column: 2; grid-row: 1; padding-top: 8px; }
  .hero__bilete { margin: 36px 0 0; }
}
.hero__head .ingress { margin-top: 12px; }

/* snarvegar */
.snarvegar__label { margin-bottom: 12px; }
.snarvegar ul { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--brand); }
.snarvegar li { border-bottom: 1px solid var(--line); }
.snarvegar a { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 12px 0; text-decoration: none; }
.snarvegar strong { display: block; font-size: 17px; font-weight: 600; }
.snarvegar small { display: block; font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.snarvegar a:hover strong { text-decoration: underline; text-underline-offset: 3px; color: var(--brand); }
@media (min-width: 1024px) { .snarvegar a { min-height: 60px; } .snarvegar strong { font-size: 19px; } .snarvegar small { font-size: 14px; } }
@media (max-width: 1023px) { .hero .snarvegar__label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }

/* framheva inngang */
.inngang { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px solid var(--brand); background: var(--surface); padding: 16px; text-decoration: none; border-radius: var(--radius); }
.inngang:hover { background: var(--hover-bg); color: var(--ink); }
.inngang strong { display: block; font-size: 16px; } .inngang small { display: block; font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
@media (min-width: 1024px) { .inngang { padding: 24px; } .inngang strong { font-size: 18px; } .inngang small { font-size: 15px; } }

/* sesongråd */
.sesong { display: grid; gap: 16px; }
.sesong__list { display: grid; gap: 0; }
.sesong__item { border-top: 2px solid var(--brand); padding: 12px 0 16px; }
.sesong__item h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.sesong__item p { margin: 0; font-size: 15px; }
@media (max-width: 1023px) { .sesong__item h3 { display: inline; } .sesong__item h3::after { content: ". "; } .sesong__item p { display: inline; } }
@media (min-width: 1024px) { .sesong { grid-template-columns: 3fr 5fr; gap: var(--gap); } .sesong__list { grid-template-columns: repeat(3, 1fr); gap: 32px; } .sesong__item h3 { font-size: 16px; } .sesong__item p { font-size: 16px; } }

/* nyheiter */
.nyheiter { display: grid; gap: 12px; }
.nyheiter ul { list-style: none; margin: 0; padding: 0; }
.nyheiter li { border-bottom: 1px solid var(--line); padding: 14px 0; display: grid; gap: 2px; }
.nyheiter time { font-size: 13px; color: var(--ink-muted); }
.nyheiter a { font-weight: 600; text-decoration: none; font-size: 16px; }
.nyheiter a:hover { text-decoration: underline; }
@media (min-width: 1024px) { .nyheiter { grid-template-columns: 3fr 5fr; gap: var(--gap); } .nyheiter li { grid-template-columns: 140px 1fr; gap: 24px; padding: 18px 0; } .nyheiter time { font-size: 15px; } .nyheiter a { font-size: 19px; } }
.empty { color: var(--ink-muted); font-style: italic; }

/* video */
.video { display: grid; gap: 24px; align-items: center; }
@media (min-width: 1024px) { .video { grid-template-columns: 5fr 3fr; gap: var(--gap); } }
.video__player { position: relative; aspect-ratio: 4/3; background: var(--brand); overflow: hidden; }
@media (min-width: 768px) { .video__player { aspect-ratio: 16/9; } }
.video__play { position: absolute; inset: 0; width: 100%; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; color: #fff; }
.video__play img { width: 100%; height: 100%; object-fit: cover; }
.video__play::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, color-mix(in srgb, var(--brand) 85%, transparent) 0%, transparent 55%); }
.video__cap { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 1; display: flex; gap: 16px; align-items: flex-end; }
.video__btn { flex: none; width: 56px; height: 56px; background: var(--accent); display: grid; place-items: center; }
.video__btn svg { width: 22px; height: 22px; fill: var(--ink); margin-left: 3px; }
.video__cap strong { display: block; font-size: 18px; line-height: 1.2; font-weight: 700; }
.video__cap .label { color: #fff; }
.video__play:hover .video__btn, .video__play:focus-visible .video__btn { outline: 3px solid #fff; outline-offset: 2px; }
.video__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__note { font-size: 13px; color: var(--ink-muted); margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 18px; }
@media (min-width: 1024px) { .video__btn { width: 64px; height: 64px; } .video__cap { left: 28px; bottom: 28px; } .video__cap strong { font-size: 24px; } .video__note { font-size: 15px; } }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border: 1px solid currentColor; margin-right: 6px; }
.linklist { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.linklist a { font-weight: 600; text-underline-offset: 3px; }

/* fagdel-inngang */
.fagdel-inngang { background: var(--brand); color: #fff; padding: 24px; display: grid; gap: 16px; border-radius: var(--radius); }
.fagdel-inngang .label { color: #fff; }
.fagdel-inngang h2 { font-size: 20px; }
@media (min-width: 1024px) { .fagdel-inngang { grid-template-columns: 1fr auto; align-items: center; padding: 40px; } .fagdel-inngang h2 { font-size: 22px; } }

/* ---------- undersider ---------- */
.breadcrumb { font-size: 14px; color: var(--ink-muted); padding-top: 16px; }
.breadcrumb ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; }
.pagehead { padding: 16px 0 24px; }
.pagehead .ingress { margin-top: 12px; max-width: 760px; }
@media (min-width: 1024px) { .pagehead { padding: 24px 0 40px; } }
.layout { display: grid; gap: 32px; padding-bottom: var(--sec); }
@media (min-width: 1024px) { .layout { grid-template-columns: 5fr 3fr; gap: var(--gap); } .layout aside { position: sticky; top: 24px; align-self: start; } }
.layout main > * + *, .blocks > * + * { margin-top: 40px; }
.blocks .sec { margin-top: 0; }
.kortsvar { border: 1px solid var(--brand); background: var(--surface); padding: 20px; border-radius: var(--radius); }
.kortsvar p { font-size: 18px; font-weight: 600; line-height: 1.4; margin: 6px 0 0; }
@media (min-width: 1024px) { .kortsvar { padding: 24px 28px; } .kortsvar p { font-size: 20px; } }
.steg { list-style: none; counter-reset: s; margin: 16px 0 0; padding: 0; display: grid; gap: 0; }
.steg li { border-top: 2px solid var(--brand); padding: 12px 0 16px; }
.steg b { display: block; font-size: 17px; margin-bottom: 2px; }
.steg p { margin: 0; color: var(--ink-muted); font-size: 15px; }
@media (min-width: 768px) { .steg { grid-template-columns: 1fr 1fr; column-gap: 16px; } }
.faq { margin-top: 16px; border: 1px solid var(--brand); background: var(--surface); border-radius: var(--radius); }
.faq details + details { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; font-weight: 700; font-size: 17px; min-height: 60px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 500; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq .svar { padding: 0 20px 20px; }
.faq .handsamar { font-size: 14px; color: var(--ink-muted); margin-top: 8px; }
@media (min-width: 1024px) { .faq summary { font-size: 20px; padding: 24px; min-height: 84px; } .faq .svar { padding: 0 24px 24px; } }
.liste { list-style: none; margin: 16px 0 0; padding: 0; background: var(--surface); border: 1px solid var(--line); }
.liste li + li { border-top: 1px solid var(--line); }
.liste a, .liste .rad { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; text-decoration: none; min-height: 60px; }
.liste a:hover { background: var(--hover-bg); }
.liste strong { font-weight: 600; }
.liste small { font-size: 14px; color: var(--ink-muted); text-align: right; flex: none; }
.kontakt-kort { background: var(--surface); border: 1px solid var(--line); padding: 20px; border-radius: var(--radius); }
.kontakt-kort + .kontakt-kort { margin-top: 16px; }
.kontakt-kort h3 { font-size: 17px; margin: 8px 0 4px; }
.kontakt-kort p { font-size: 15px; color: var(--ink-muted); margin: 0 0 4px; }
.kort-brand { background: var(--brand); color: #fff; padding: 24px; border-radius: var(--radius); }
.kort-brand .label, .kort-brand a { color: #fff; }
.kort-brand h2 { font-size: 22px; margin: 8px 0; }
.kort-brand p { font-size: 15px; margin-bottom: 16px; }
.kort-brand .btn--outline-light { width: 100%; }
.fagstoff { border-top: 1px solid var(--line); padding-top: 24px; color: var(--ink-muted); }
.fagstoff h2 { color: var(--ink); margin-bottom: 8px; }
.fagstoff .kjelder { font-size: 14px; margin-top: 8px; }
.sidemeta { font-size: 13px; color: var(--ink-muted); line-height: 1.6; }
.faktaboks { background: var(--surface); border: 1px solid var(--line); padding: 16px 20px; }
.faktaboks dl { margin: 8px 0 0; }
.faktaboks div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.faktaboks dt { color: var(--ink-muted); } .faktaboks dd { margin: 0; font-weight: 600; text-align: right; }
.paa-sida { border-left: 2px solid var(--brand); padding-left: 16px; }
.paa-sida ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 12px 0 0; }
.chips li, .chip { border: 1px solid var(--line); background: var(--surface); padding: 6px 12px; font-size: 14px; border-radius: var(--radius); }
.btnrow { margin-top: 8px; }

/* portrett */
.portrett { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; list-style: none; margin: 16px 0 0; padding: 0; }
@media (min-width: 768px) { .portrett--3 { grid-template-columns: repeat(3, 1fr); } .portrett--4 { grid-template-columns: repeat(4, 1fr); } }
.portrett__bilete { aspect-ratio: 3/4; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 36px; font-weight: 800; overflow: hidden; }
.portrett__bilete img { width: 100%; height: 100%; object-fit: cover; }
.portrett h3 { font-size: 17px; margin: 12px 0 2px; }
.portrett p { margin: 0; font-size: 14px; color: var(--ink-muted); }
.portrett a { font-size: 14px; }
@media (min-width: 1024px) { .portrett h3 { font-size: 18px; } .portrett p { font-size: 15px; } }

/* stasjonar / kart */
.stasjonar { display: grid; gap: 24px; margin-top: 16px; }
@media (min-width: 1024px) { .stasjonar { grid-template-columns: 3fr 2fr; } }
.kart { position: relative; aspect-ratio: 4/3; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.kart svg { width: 100%; height: 100%; display: block; }
.kart__note { position: absolute; left: 0; bottom: 0; right: 0; background: color-mix(in srgb, var(--surface) 92%, transparent); font-size: 13px; padding: 8px 12px; color: var(--ink-muted); }
.stasjonsliste { list-style: none; padding: 0; margin: 0; }
.stasjonsliste li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.stasjonsliste .nr { width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.stasjonsliste .nr--adm { border-radius: 0; }
.stasjonsliste h3 { font-size: 16px; } .stasjonsliste p { margin: 2px 0 0; font-size: 14px; color: var(--ink-muted); }

/* tal-rad, anlegg, kurs, booking, partnarar */
.talrad { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.talrad li { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.talrad b { display: block; font-size: 36px; font-weight: 800; line-height: 1.1; }
.talrad span { font-size: 15px; }
@media (min-width: 1024px) { .talrad { grid-template-columns: repeat(5, 1fr); border-bottom: 1px solid var(--line); } .talrad li { border-bottom: 0; border-left: 1px solid var(--line); padding: 16px 24px; } .talrad li:first-child { border-left: 0; padding-left: 0; } .talrad b { font-size: 48px; } }
.kortgrid { display: grid; gap: 24px; list-style: none; padding: 0; margin: 16px 0 0; }
@media (min-width: 768px) { .kortgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .kortgrid--3 { grid-template-columns: repeat(3, 1fr); } }
.kort { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; }
.kort .fig { aspect-ratio: 4/3; }
.kort__body { padding: 20px; display: grid; gap: 6px; align-content: start; }
.kort__body h3 { font-size: 19px; }
.kort__body p { margin: 0; font-size: 15px; color: var(--ink-muted); }
a.kort { text-decoration: none; }
a.kort:hover h3 { text-decoration: underline; }
.booking { border: 1px solid var(--line); background: var(--surface); padding: 24px; display: grid; gap: 8px; align-content: start; }
.booking .btn { justify-self: start; margin-top: 8px; }

/* ---------- kontaktmal ---------- */
.sentralbord { background: var(--surface); border: 1px solid var(--brand); padding: 24px; }
.sentralbord .tlf { font-size: 24px; font-weight: 700; display: block; margin: 8px 0 4px; text-decoration: none; }
.saka { display: grid; gap: 0; list-style: none; padding: 0; margin: 16px 0 0; border-top: 1px solid var(--brand); }
.saka a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; min-height: 60px; }
.saka strong { display: block; font-size: 17px; } .saka small { display: block; font-size: 14px; color: var(--ink-muted); }
@media (min-width: 1024px) {
  .saka { grid-template-columns: repeat(4, 1fr); gap: 16px; border-top: 0; }
  .saka a { flex-direction: column; align-items: flex-start; justify-content: space-between; min-height: 200px; padding: 24px; background: var(--surface); border: 1px solid var(--line); }
  .saka a:hover { background: var(--hover-bg); }
}
.kol3 { display: grid; gap: 24px; }
@media (min-width: 1024px) { .kol3 { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.kol3 p { white-space: pre-line; }

/* ---------- fagdel (mørkt tema) ---------- */
.tema-fag { --bg: var(--brand-dark); --surface: color-mix(in srgb, var(--brand-dark) 70%, #000); --ink: #FFFFFF; --ink-muted: rgba(255,255,255,.78); --line: rgba(255,255,255,.28); --focus: var(--accent); --hover-bg: rgba(255,255,255,.08); background: var(--brand-dark); color: #fff; }
.tema-fag a { color: #fff; }
.tema-fag .topfane { background: color-mix(in srgb, var(--brand-dark) 80%, #000); border-bottom: 1px solid var(--line); }
.tema-fag .topfane [aria-current] { background: transparent; color: #fff; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.tema-fag .site-header { background: var(--brand-dark); }
.tema-fag .mainnav a:hover, .tema-fag .mainnav a[aria-current="page"] { border-bottom-color: #fff; color: #fff; }
.tema-fag .btn, .tema-fag .btn-icon, .tema-fag .searchform input { background-color: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.tema-fag .btn--primary { background: #fff; color: var(--brand-dark); }
.tema-fag .faq, .tema-fag .kortsvar, .tema-fag .liste, .tema-fag .kort, .tema-fag .booking, .tema-fag .kontakt-kort { border-color: var(--line); }
.tema-fag .steg li, .tema-fag .snarvegar ul { border-top-color: #fff; }
.tema-fag .site-footer { border-top-color: var(--line); }
.fag-hero { position: relative; min-height: 420px; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.fag-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fag-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--brand-dark) 0%, color-mix(in srgb, var(--brand-dark) 40%, transparent) 60%, transparent 100%); }
.fag-hero .wrap { position: relative; z-index: 1; width: 100%; padding-bottom: 40px; display: grid; gap: 16px; }
.fag-hero h1 { font-size: 38px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.fag-hero .ingress { color: #fff; }
.fag-hero figcaption { position: absolute; top: 24px; left: var(--gutter); background: var(--brand); color: #fff; font-size: 13px; padding: 6px 12px; z-index: 1; }
@media (min-width: 1024px) { .fag-hero { min-height: 620px; } .fag-hero .wrap { grid-template-columns: 1fr 1fr; align-items: end; gap: var(--gap); padding-bottom: 48px; } .fag-hero h1 { font-size: 60px; } }
.inngangskort { display: grid; gap: 24px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 1024px) { .inngangskort { grid-template-columns: repeat(3, 1fr); } }
.inngangskort a { display: flex; flex-direction: column; border: 1px solid var(--line); text-decoration: none; height: 100%; }
.inngangskort a:hover { border-color: #fff; }
.inngangskort .fig { aspect-ratio: 16/9; }
.inngangskort .kort__body h3 { font-size: 22px; }
@media (min-width: 1024px) { .inngangskort .kort__body h3 { font-size: 24px; } .inngangskort .kort__body { padding: 24px; } }
.filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.filter button { flex: none; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-weight: 600; border-radius: var(--radius); }
.filter button[aria-pressed="true"] { background: #fff; color: var(--brand-dark); border-color: #fff; }
.videogrid { display: grid; gap: 32px; list-style: none; padding: 0; margin: 24px 0 0; }
@media (min-width: 1024px) { .videogrid { grid-template-columns: 1fr 1fr; } }
.videogrid .video { grid-template-columns: 1fr; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--brand); padding: 40px 0 24px; font-size: 15px; }
.site-footer .cols { display: grid; gap: 24px; }
@media (min-width: 1024px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; } }
.site-footer h2 { font-size: 17px; margin-bottom: 12px; }
.site-footer p { margin: 0 0 4px; color: var(--ink-muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; } .site-footer ul a:hover { text-decoration: underline; }
.site-footer .botn { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; color: var(--ink-muted); }
.site-footer .botn a { color: inherit; }

/* ---------- consent ---------- */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--surface); color: var(--ink); border-top: 2px solid var(--brand); box-shadow: 0 -4px 16px rgba(0,0,0,.08); }
.consent .wrap { display: grid; gap: 12px; padding-top: 16px; padding-bottom: 16px; }
.consent p { margin: 4px 0 0; font-size: 14px; color: var(--ink-muted); }
.consent__actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (min-width: 1024px) { .consent .wrap { grid-template-columns: 1fr auto; align-items: center; } }
.tema-fag .consent { --surface: #fff; --ink: #1B1C3A; --ink-muted: #4A4B66; color: #1B1C3A; }
.tema-fag .consent .btn { border-color: #222354; color: #1B1C3A; }
.tema-fag .consent .btn--primary { background: #222354; color: #fff; }

/* ---------- KI-panel ---------- */
.ki-backdrop { position: fixed; inset: 0; background: rgba(246,246,243,.55); z-index: 40; }
@media (min-width: 1024px) { .ki-backdrop { top: var(--ki-top, 170px); } }
.ki { position: fixed; z-index: 50; background: #fff; color: #1B1C3A; display: flex; flex-direction: column; inset: 0; }
@media (min-width: 1024px) { .ki { left: auto; width: 480px; top: var(--ki-top, 170px); border-left: 1px solid #222354; } }
.ki__head { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid #D9D9D4; }
.ki__head h2 { font-size: 19px; }
.ki__info { background: #F6F6F3; padding: 14px 24px; font-size: 14px; color: #4A4B66; border-bottom: 1px solid #D9D9D4; }
.ki__info b { color: #1B1C3A; }
.ki__demo { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 8px; border: 1px solid #222354; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ki__info--demo { background: #FFF6D6; }
.ki__forslag { display: flex; flex-wrap: wrap; gap: 8px; }
.ki__forslag .meta { width: 100%; margin: 0; }
.ki .chip { border: 1px solid #222354; background: #fff; color: #1B1C3A; padding: 8px 12px; font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.ki .chip:hover, .ki .chip:focus-visible { background: #222354; color: #fff; }
.ki__log { flex: 1; overflow-y: auto; padding: 20px 24px; display: grid; gap: 16px; align-content: start; }
.ki__q { justify-self: end; background: #222354; color: #fff; padding: 12px 16px; max-width: 85%; }
.ki__a { border: 1px solid #D9D9D4; padding: 16px; }
.ki__a--usikker { border-color: #222354; }
.ki__akutt { border: 2px solid #222354; }
.ki__akutt header { background: #222354; color: #fff; padding: 12px 16px; font-weight: 700; }
.ki__akutt .ring { display: flex; align-items: center; justify-content: center; margin: 16px; min-height: 72px; background: var(--accent); color: #fff; font-size: 28px; font-weight: 800; text-decoration: none; }
.ki__akutt ul { margin: 0 16px 16px; padding-left: 1.2em; }
.ki__kjelder { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 8px; }
.ki__kjelder a { display: flex; justify-content: space-between; border: 1px solid #D9D9D4; padding: 10px 12px; text-decoration: none; font-weight: 600; font-size: 14px; color: #1B1C3A; }
.ki__form { border-top: 1px solid #D9D9D4; padding: 16px 24px; }
.ki__form form { display: flex; gap: 8px; }
.ki__form input { flex: 1; height: 48px; border: 1px solid #222354; padding: 0 12px; font: inherit; }
.ki__form p { font-size: 13px; color: #4A4B66; margin: 10px 0 0; }
.ki__form a, .ki a { color: #1B1C3A; }
.ki .btn { background: #fff; color: #1B1C3A; border-color: #222354; }
.ki .btn--primary { background: #222354; color: #fff; }
body.ki-open main, body.ki-open .site-footer { pointer-events: none; }

@media print { .topfane, .site-header nav, .consent, .ki, .header-tools { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* fagdel-undersider: fullbreidde blokker, kort-grid kan bli 3 kolonnar */
.tema-fag .blocks .kortgrid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tema-fag .blocks > section > .liste, .tema-fag .blocks .booking { max-width: 1000px; }
.booking-rad { display: grid; gap: 24px; }
@media (min-width: 1024px) { .booking-rad { grid-template-columns: 1fr 1fr; } }
