/* Hol Historielag — design-tokens + basisstil.
   Henta ut frå den godkjende prototypen (design/Hol Historielag.dc.html).
   Bygd på Hallingcast-grunnmuren: harde kantar, ingen skuggar, to-fonts-system.
   Varm Hol-variant: papir-beige, teglraud aksent, djup gran.

   Målgruppa er eldre: brødtekst 19px, klikkflater >= 44px. Sjå docs/10-tilgjenge.md. */

:root {
  --maxw: 1232px;

  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  /* Lyst tema (default) */
  --paper: #FAF8F3;
  --surface: #FFFFFF;
  --surface-2: #F2EDE3;
  --ink: #262320;
  --ink-soft: #6B6355;
  --line: #E3DCCF;
  --line-strong: #262320;
  --accent: #8A4326;   /* teglraud — knappar, lenker, aktiv nav */
  --deep: #2E4440;     /* djup gran — hero, footer, kassa */
  --gold: #C9A45D;     /* messing — årstal, tal */

  /* Tekstskala — brukarstyrt via A-/A+ */
  --tscale: 1;
  --t-body: calc(19px * var(--tscale));
  --t-lead: calc(23px * var(--tscale));
  --t-small: calc(16px * var(--tscale));
}

[data-text="stor"]   { --tscale: 1.16; }
[data-text="storst"] { --tscale: 1.32; }

/* Mørkt tema er fjerna på kundens val (docs/04). Éin palett. */

* { box-sizing: border-box; margin: 0; }

body {
  font-family: var(--font-body);
  font-size: var(--t-body);
  line-height: 1.5;
  background: var(--paper);
  color: var(--ink);
  text-wrap: pretty;
}

/* Display: redaksjonell serif */
h1, h2, h3, .hd {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.012em;
}
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: clamp(24px, 2.4vw, 32px); }

a { color: var(--accent); }
a:hover { opacity: 0.7; }

/* Fokus MÅ vere synleg — tilgjengelegheitskrav */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: #fff; padding: 14px 20px; z-index: 100;
}
.skip:focus { left: 12px; top: 12px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.lead { font-size: var(--t-lead); line-height: 1.5; color: var(--ink-soft); }
.meta { font-size: var(--t-small); color: var(--ink-soft); }

/* Harde kantar overalt. Radius kun for sirklar. */
button, input, select, textarea, .card, .badge { border-radius: 0; }

/* ---------- Knappar: min 44px, i praksis 56-60 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 60px; padding: 0 28px;
  border: none; background: var(--accent); color: #fff;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none;
}
.btn:hover { filter: brightness(0.93); opacity: 1; }

.btn--ghost {
  background: transparent; border: 2px solid var(--line-strong); color: var(--ink);
}
.btn--ghost:hover { border-color: var(--accent); filter: none; }

/* Kassa — den einaste knappen i gran, så han skil seg frå alt anna */
.btn--deep { background: var(--deep); color: #FAF8F3; }
.btn--deep:hover { filter: brightness(1.12); }

.btn--sm { min-height: 48px; padding: 0 20px; font-size: var(--t-small); }

/* Verktøystripe øvst — held verktøya utanfor menylinja (docs/04).
   Ser ut som rein tekst, men klikkflatene er >= 44px (docs/10). */
/* Ingen skiljelinje under stripa (HAND-OVER 3.1) — menylinja under har si
   eiga linje, og to linjer tett i tett vart for tungt. */
.utilbar { background: var(--surface); }
.utilbar-inner {
  display: flex; justify-content: flex-end; align-items: center; gap: 18px;
}
.utilbar-label { font-size: var(--t-small); color: var(--ink-soft); }
.utilbar-sep { width: 1px; height: 20px; background: var(--line); }
.utilbar-inner > button,
.utilbar-inner > a {
  min-width: 44px; height: 44px; padding: 0 4px;
  background: none; border: none; cursor: pointer;
  color: var(--ink); font: inherit; font-size: 15px; font-weight: 600;
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center;
}
.utilbar-inner > button { font-size: var(--t-small); }
.utilbar-inner > button.bigger { font-size: calc(var(--t-small) * 1.25); font-weight: 700; }
.utilbar-inner > a { font-size: var(--t-small); font-weight: 700; letter-spacing: 0.06em; }
.utilbar-inner > button:hover,
.utilbar-inner > a:hover { color: var(--accent); opacity: 1; }
.utilbar-cart { position: relative; }
.cart-bubble {
  position: absolute; top: 3px; right: 0;
  min-width: 19px; height: 19px; padding: 0 4px; border-radius: 10px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Søsterprosjekt-knapp i menyrada (docs/04).
   Fargen er LITERAL, ikkje var(--deep): --deep snur i mørkt tema, og då ville
   knappen mista kontrasten mot den lyse teksten. */
/* Scopa til .mainnav: den generelle `.mainnav > a`-regelen har høgare
   spesifisitet enn .nav-soster åleine, og ville elles overstyre farga slik
   at den lyse teksten vart mørk på grøn flate. */
.nav-soster,
.mainnav > a.nav-soster {
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 46px; margin-left: 10px; padding: 0 16px;
  border: none; border-bottom: none;
  background: #2E4440; color: #FAF8F3;
  font-size: var(--t-small); font-weight: 600;
  text-decoration: none; white-space: nowrap;
}
.nav-soster:hover,
.mainnav > a.nav-soster:hover { filter: brightness(1.15); opacity: 1; }

/* ---------- Kort ---------- */
.card {
  border: 1px solid var(--line); background: var(--surface);
  display: flex; flex-direction: column;
}
.card:hover { border-color: var(--accent); }

/* Biletplass — fyll med lagets eigne foto i produksjon */
.media-slot {
  background: var(--surface-2);
  display: flex; align-items: flex-end; padding: 14px;
}
.media-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- Merke ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--surface-2); color: var(--ink-soft);
}
.badge--accent { background: var(--accent); color: #fff; }
.badge--sold  { background: var(--ink-soft); color: #fff; }

/* ---------- Dato-blokk (arrangement) ---------- */
.datebox {
  flex: 0 0 auto; width: 92px; text-align: center;
  background: var(--surface-2); padding: 14px 8px;
}
.datebox__day   { font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--accent); }
.datebox__month { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); margin-top: 4px; }
.datebox__year  { font-size: 13px; color: var(--ink-soft); }

/* ---------- Mørke band (hero, footer) ---------- */
.band-deep { background: var(--deep); color: #FAF8F3; }
.band-deep a { color: #FAF8F3; }

/* ---------- Rutenett ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.split  { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 52px; align-items: start; }
.split--aside { grid-template-columns: minmax(0,1fr) 340px; }

/* ---------- Rik tekst ---------- */
.prose { font-size: var(--t-body); line-height: 1.75; }
.prose p { margin-bottom: 22px; }
.prose h2, .prose h3 { margin: 34px 0 14px; }
.prose ul, .prose ol { margin: 0 0 22px 1.2em; }
.prose li { margin-bottom: 10px; }
.prose blockquote {
  margin: 28px 0; padding: 20px 26px;
  background: var(--surface-2); border-left: 4px solid var(--accent);
}
/* Hindre klemde/strekte CKEditor-bilete (husstandard) */
.prose img { max-width: 100%; height: auto !important; aspect-ratio: auto !important; }
.prose figcaption { font-size: 15px; color: var(--ink-soft); margin-top: 8px; }

/* ---------- Skjema ---------- */
.field { display: block; margin-bottom: 22px; }
.field > label { display: block; font-weight: 700; font-size: var(--t-small); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 60px; padding: 0 16px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.field textarea { padding: 14px 16px; line-height: 1.5; min-height: 150px; }
.field select { background: var(--surface-2); }

/* ---------- Handlekorg ---------- */
.cart-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20,17,14,0.55);
  display: flex; justify-content: flex-end;
}
.cart-panel {
  width: 100%; max-width: 460px; height: 100%;
  background: var(--surface); border-left: 1px solid var(--line-strong);
  display: flex; flex-direction: column;
}
.qty { display: flex; border: 1px solid var(--line-strong); }
.qty button { width: 54px; height: 60px; background: var(--surface); border: none; cursor: pointer; font-size: 22px; font-weight: 600; }
.qty button:hover { background: var(--surface-2); }
.qty output { width: 64px; height: 60px; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-variant-numeric: tabular-nums;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line); }

/* ---------- Click-to-load video (consent) ---------- */
.video { position: relative; aspect-ratio: 16/9; background: var(--deep); }
.video img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video__play {
  position: absolute; inset: 0; margin: auto;
  width: 78px; height: 78px; border-radius: 50%;
  background: rgba(250,248,243,0.22); border: 2px solid rgba(250,248,243,0.7);
  color: #FAF8F3; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.video__play:hover { background: rgba(250,248,243,0.34); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Brekkpunkt ---------- */
@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .grid-3, .grid-2, .split, .split--aside { grid-template-columns: 1fr; gap: 28px; }
}

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

/* ==================================================================
   Layoutklasser henta ut frå prototypens inline-stilar.
   Målet er identisk visuelt resultat, ikkje identisk markup (docs/04).
   ================================================================== */

/* ---------- Toppen: to linjer (HAND-OVER 3.1) ---------- */
.utilbar-inner { min-height: 44px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--surface); border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-top: 12px; padding-bottom: 12px;
}

/* Logo. Plassholdaren har prototypens eksakte mål og stipla kant, så det er
   tydeleg at laget skal levere grafikk her. */
.site-logo {
  flex: 0 0 auto; display: flex; align-items: center;
  text-decoration: none; color: var(--ink);
}
.site-logo img { display: block; width: auto; max-height: 70px; }
.site-logo--placeholder {
  width: 210px; height: 70px;
  background: var(--surface-2); border: 1px dashed var(--line-strong);
  flex-direction: column; justify-content: center; gap: 3px;
}
.site-logo--placeholder:hover { border-color: var(--accent); opacity: 1; }
.site-logo__label {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft);
}
.site-logo__size { font-size: 12px; color: var(--ink-soft); }

.mainnav { display: flex; gap: 2px; margin-left: 8px; flex-wrap: wrap; align-items: center; }
.mainnav > a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 12px 14px;
  font-size: var(--t-small); font-weight: 500; color: var(--ink);
  text-decoration: none; border-bottom: 3px solid transparent;
}
.mainnav > a:hover { opacity: 0.7; }
.mainnav > a[aria-current="page"] { font-weight: 700; border-bottom-color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 24px; }
.site-footer .wrap { padding-top: 52px; padding-bottom: 26px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px;
  padding-bottom: 34px; border-bottom: 1px solid rgba(240, 234, 224, 0.2);
}
.footer-name { font-size: 32px; margin-bottom: 14px; }
.site-footer .meta { color: inherit; opacity: 0.8; margin-bottom: 20px; }
.footer-heading {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; opacity: 0.65; margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; align-items: flex-start; }
.footer-links a,
.footer-contact a,
.footer-contact span {
  display: inline-flex; align-items: center;
  min-height: 44px; font-size: var(--t-small); color: #F0EAE0;
}
.footer-links a,
.footer-contact a { text-decoration: none; }
/* Berre e-posten er understreka i prototypen — telefonnummeret er det ikkje. */
.footer-links a:hover, .footer-contact a:hover { opacity: 0.65; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; }
.footer-contact .epost { text-decoration: underline; text-underline-offset: 3px; }
.footer-contact .orgnr { opacity: 0.8; }

/* Sosiale ikon: firkanta rammeknappar, 44×44 (docs/04) */
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 44px; height: 44px;
  border: 1px solid rgba(240, 234, 224, 0.35);
  display: flex; align-items: center; justify-content: center;
  color: #F0EAE0;
}
.footer-social a:hover { border-color: #F0EAE0; opacity: 1; }

.footer-legal {
  padding-top: 22px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: var(--t-small); opacity: 0.72;
}
.footer-legal a { color: #F0EAE0; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Felles seksjonsmønster ---------- */
.page { padding-top: 52px; padding-bottom: 84px; }
.page--narrow { max-width: 820px; padding-top: 44px; padding-bottom: 90px; }
.page-title { font-size: clamp(40px, 7vw, 72px); margin-bottom: 16px; }
.page-lead { max-width: 680px; margin-bottom: 40px; }

.section { margin-bottom: 76px; }
.section:last-child { margin-bottom: 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
  border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 26px;
}
.section-head h2 { font-size: clamp(30px, 4vw, 40px); }

/* Tekstlenke som ser ut som rein tekst, men har 44px klikkflate */
.textlink {
  display: inline-flex; align-items: center; min-height: 44px;
  background: none; border: none; padding: 0; cursor: pointer;
  color: var(--accent); font: inherit; font-size: var(--t-small); font-weight: 600;
  text-decoration: none;
}
.textlink:hover { opacity: 0.7; }

.kicker {
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 20px;
}
.eyebrow {
  font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
  font-weight: 700; color: var(--accent); margin-bottom: 14px;
}

/* ---------- Hero (asymmetrisk redaksjonell) ---------- */
.hero { background: var(--deep); color: #FAF8F3; overflow: hidden; }
.hero .wrap { padding-top: 76px; padding-bottom: 68px; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 52px; align-items: end;
}
.hero h1 { font-size: clamp(40px, 7vw, 88px); margin-bottom: 22px; }
.hero-lead { font-size: var(--t-lead); line-height: 1.5; max-width: 560px; opacity: 0.95; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-facts { border-left: 1px solid rgba(250, 248, 243, 0.28); padding-left: 32px; }
.hero-fact { margin-bottom: 26px; }
.hero-fact:last-child { margin-bottom: 0; }
.hero-fact__tal { font-size: 52px; color: var(--gold); line-height: 1; }
.hero-fact__tekst { font-size: var(--t-small); opacity: 0.85; line-height: 1.4; }

.btn--paper { background: #FAF8F3; color: #262320; }
.btn--paper:hover { opacity: 0.85; filter: none; }
.btn--outline-paper {
  background: transparent; color: #FAF8F3;
  border: 2px solid rgba(250, 248, 243, 0.55); font-weight: 600;
}
.btn--outline-paper:hover { border-color: #FAF8F3; filter: none; }

/* ---------- Forside: velkomen ---------- */
.velkomen { margin-bottom: 76px; }
.foto-slot {
  width: 100%; max-width: 560px; aspect-ratio: 560 / 330;
  background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.foto-slot--placeholder { border: 1px dashed var(--line-strong); }
.foto-slot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.velkomen-lede {
  font-size: var(--t-lead); line-height: 1.5;
  color: var(--accent); font-weight: 500; margin-bottom: 22px;
}
.velkomen-tekst { display: flex; flex-direction: column; gap: 18px; }
.velkomen-tekst p { font-size: var(--t-body); line-height: 1.65; }

figure { margin: 0; }
figcaption { font-size: var(--t-small); color: var(--ink-soft); margin-top: 8px; line-height: 1.5; }

/* ---------- Kort ---------- */
.card__media { aspect-ratio: 3 / 2; border-bottom: 1px solid var(--line); }
.card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card__body h3 { font-size: clamp(24px, 2.4vw, 29px); margin-bottom: 12px; }
.card__utdrag { font-size: var(--t-small); line-height: 1.55; color: var(--ink-soft); flex: 1; }
.card__meta {
  font-size: var(--t-small); color: var(--ink-soft);
  margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line);
}
.card a { text-decoration: none; color: inherit; }
.card a:hover { opacity: 1; }
.media-slot__label {
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft);
}

/* Forsidas to promo-kort */
.promo { padding: 34px; display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; text-decoration: none; }
.promo h3 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 10px; }
.promo--soft { background: var(--surface-2); color: var(--ink); }
.promo--soft:hover { filter: brightness(0.98); opacity: 1; }
.promo--deep { background: var(--deep); color: #FAF8F3; }
.promo--deep:hover { filter: brightness(1.08); opacity: 1; }
.promo--deep .eyebrow { color: var(--gold); }
.promo__tekst { font-size: var(--t-body); }
.promo--soft .promo__tekst { color: var(--ink-soft); }
.promo--deep .promo__tekst { opacity: 0.9; }
.promo__meir { font-size: var(--t-small); font-weight: 600; margin-top: 20px; }
.promo--soft .promo__meir { color: var(--accent); }
.promo--deep .promo__meir { color: var(--gold); }

/* ---------- Artikkelliste (full breidd) ---------- */
.artikkelrad {
  border-top: 1px solid var(--line); padding: 30px 0;
  display: grid; grid-template-columns: 230px minmax(0, 1fr) auto;
  gap: 30px; align-items: start;
}
.artikkelrad:hover { opacity: 0.82; }
.artikkelrad h2 { font-size: clamp(28px, 3vw, 36px); margin-bottom: 12px; }
.artikkelrad__media { aspect-ratio: 3 / 2; }
.artikkelrad__utdrag { font-size: var(--t-body); line-height: 1.6; color: var(--ink-soft); margin-bottom: 16px; }
.artikkelrad a { text-decoration: none; color: inherit; }

/* ---------- Artikkel ---------- */
.artikkel-byline {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 30px;
}
.avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink-soft);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; flex: 0 0 auto;
  object-fit: cover;
}
.artikkel-hero { aspect-ratio: 16 / 9; background: var(--surface-2); margin-bottom: 12px; }
.artikkel-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.artikkel-ingress { font-size: var(--t-lead); line-height: 1.6; margin-bottom: 26px; }
.kjeldeboks {
  margin-top: 44px; padding: 26px;
  background: var(--surface-2); border-left: 4px solid var(--accent);
  font-size: var(--t-body); line-height: 1.6;
}

/* ---------- Filmar ---------- */
.film-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.film-body { padding: 20px; }
.film-body h3 { font-size: 27px; margin-bottom: 8px; }
.video__merke {
  position: absolute; left: 14px; bottom: 12px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: rgba(250, 248, 243, 0.75);
}

/* ---------- Arrangement ---------- */
.arr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.arr-liste { display: flex; flex-direction: column; gap: 16px; }
/* .card set flex-direction: column — arrangementkortet må eksplisitt attende
   til rad, elles hamnar dato-blokka OVER teksten i staden for ved sida av. */
.arr-kort { padding: 24px; display: flex; flex-direction: row; gap: 24px; align-items: flex-start; }
.arr-kort h3 { font-size: 29px; margin-bottom: 8px; }
.arr-kort__nar { font-size: var(--t-small); color: var(--ink-soft); margin-bottom: 10px; }
.arr-kort__omtale { font-size: var(--t-body); line-height: 1.55; color: var(--ink-soft); }
.arr-kort__body { flex: 1; min-width: 0; }
.arr-aside { border: 1px solid var(--line); background: var(--surface); padding: 24px; }
.arr-aside h2 { font-size: 27px; margin-bottom: 16px; }
.arr-aside p { font-size: var(--t-small); line-height: 1.6; color: var(--ink-soft); margin-bottom: 20px; }
.arr-aside .btn { width: 100%; min-height: 56px; }
.underhead { font-size: 34px; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }

/* ---------- Butikk ---------- */
.filterrad { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 34px; }
.filter {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 13px 20px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: inherit; font-size: var(--t-small); font-weight: 600;
  text-decoration: none; cursor: pointer;
}
.filter:hover { border-color: var(--accent); opacity: 1; }
.filter[aria-current="true"] { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 700; }
.filter__tal { opacity: 0.6; font-weight: 500; }

.produktgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.produkt__media { aspect-ratio: 3 / 4; position: relative; }
.produkt__media .badge--sold { position: absolute; top: 14px; left: 14px; }
.produkt__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.produkt__body h3 { font-size: 27px; margin-bottom: 8px; }
.produkt__forfattar { font-size: var(--t-small); color: var(--ink-soft); margin-bottom: 14px; flex: 1; }
.produkt__botn { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.produkt__pris { font-size: 30px; color: var(--ink); }

.produktside { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 52px; align-items: start; }
.produktside__media { aspect-ratio: 3 / 4; }
.produktside h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 14px; }
.produktside .meta { margin-bottom: 26px; }
.produktside__pris { font-size: 44px; margin-bottom: 28px; }
.produktside__omtale { font-size: var(--t-body); line-height: 1.7; margin-bottom: 32px; }
.detaljliste { border-top: 1px solid var(--line); padding-top: 24px; }
.detaljliste div {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small);
}
.detaljliste dt { color: var(--ink-soft); }
.detaljliste dd { font-weight: 600; margin: 0; }

.notat {
  margin-top: 40px; padding: 22px;
  background: var(--surface-2); border-left: 4px solid var(--gold);
  font-size: var(--t-small); line-height: 1.6; color: var(--ink-soft);
}

/* ---------- Om laget ---------- */
.om-hero { background: var(--deep); color: #FAF8F3; }
.om-hero .wrap { padding-top: 64px; padding-bottom: 56px; }
.om-hero h1 { font-size: clamp(40px, 7vw, 80px); margin-bottom: 20px; }
.om-hero .page-lead { font-size: var(--t-lead); line-height: 1.55; max-width: 720px; opacity: 0.95; color: inherit; margin-bottom: 0; }
.om-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; padding-top: 56px; padding-bottom: 90px; }
.om-seksjon { margin-bottom: 48px; }
.om-seksjon:last-child { margin-bottom: 0; }
.om-seksjon h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 18px; }
.om-seksjon p { font-size: var(--t-body); line-height: 1.7; margin-bottom: 18px; }

.punktliste { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.punktliste li { display: flex; gap: 14px; align-items: flex-start; font-size: var(--t-body); line-height: 1.55; }
.punktliste li::before {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px;
  background: var(--accent); margin-top: 11px;
}

.publiseringar { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.publiseringar li {
  display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 20px;
  padding: 15px 0; border-bottom: 1px solid var(--line); align-items: baseline;
}
.publisering__ar { font-family: var(--font-display); font-size: 25px; color: var(--gold); }
.publisering__tittel { font-size: var(--t-body); font-weight: 600; line-height: 1.4; }
.publisering__forfattar { font-size: var(--t-small); color: var(--ink-soft); margin-top: 3px; }

.leiarliste { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.leiarliste li {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--t-small);
}
.leiarliste .periode { color: var(--ink-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }

.talboks { background: var(--surface-2); padding: 24px; border-left: 4px solid var(--accent); }
.talboks__tal { font-size: 44px; color: var(--accent); line-height: 1; margin-bottom: 8px; }
.talboks p { font-size: var(--t-small); line-height: 1.55; color: var(--ink-soft); }

.om-aside { display: flex; flex-direction: column; gap: 24px; }
.om-aside .card { padding: 24px; }
.om-aside .card h2 { font-size: 27px; margin-bottom: 16px; }

/* ---------- Kontakt ---------- */
.kontakt-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 52px; align-items: start; }
.kontakt-aside { display: flex; flex-direction: column; gap: 20px; }
.kontakt-aside .card { padding: 24px; }
.kontakt-aside .card h2 { font-size: 27px; margin-bottom: 18px; }
.kontaktrad { margin-bottom: 16px; }
.kontaktrad:last-child { margin-bottom: 0; }
.kontaktrad__label {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-soft); margin-bottom: 5px;
}
.kontaktrad__verdi { font-size: var(--t-body); font-weight: 600; }
.kontaktrad__verdi a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.samtykke {
  display: flex; gap: 13px; align-items: flex-start;
  font-size: var(--t-small); line-height: 1.55; cursor: pointer;
  font-weight: 400; margin-bottom: 22px;
}
.samtykke input { width: 22px; height: 22px; min-height: 22px; margin-top: 2px; accent-color: var(--accent); flex: 0 0 auto; }

.skjemafeil {
  padding: 16px 20px; margin-bottom: 22px;
  border-left: 4px solid var(--accent); background: var(--surface-2);
  font-size: var(--t-small); line-height: 1.6;
}
.skjemakvittering {
  padding: 16px 20px; margin-bottom: 22px;
  border-left: 4px solid var(--deep); background: var(--surface-2);
  font-size: var(--t-body); line-height: 1.6;
}
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Blokker frå innhald-Matrix ---------- */
.blokk { margin-bottom: 34px; }
.blokk:last-child { margin-bottom: 0; }
.blokk-bildetekst { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.blokk-bildetekst--hogre .blokk-bildetekst__media { order: 2; }
.blokk-galleri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blokk-sitat {
  padding: 26px 30px; background: var(--surface-2); border-left: 4px solid var(--accent);
}
.blokk-sitat blockquote { font-family: var(--font-display); font-size: 27px; line-height: 1.3; margin: 0; }
.blokk-sitat cite { display: block; margin-top: 12px; font-family: var(--font-body); font-size: var(--t-small); font-style: normal; color: var(--ink-soft); }
.blokk-fakta { padding: 26px; background: var(--surface-2); border-left: 4px solid var(--gold); }
.blokk-fakta h3 { font-size: 27px; margin-bottom: 12px; }
.blokk-tabell { width: 100%; border-collapse: collapse; font-size: var(--t-body); }
.blokk-tabell td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.blokk-tabell td:first-child { width: 25%; padding-right: 20px; font-weight: 600; }
.blokk-faq { border-top: 1px solid var(--line); }
.blokk-faq details { border-bottom: 1px solid var(--line); }
.blokk-faq summary {
  display: flex; align-items: center; min-height: 60px;
  font-size: var(--t-body); font-weight: 600; cursor: pointer;
}

/* Alle tabellar og breie flater skal rulle i sin eigen boks,
   ikkje dytte sida sidelengs. */
.scroll-x { overflow-x: auto; }

/* ---------- Tomme lister ---------- */
.tomt {
  padding: 44px 0; color: var(--ink-soft);
  font-size: var(--t-lead); line-height: 1.5;
}

/* ---------- Brekkpunkt ---------- */
@media (max-width: 1080px) {
  .produktgrid { grid-template-columns: repeat(2, 1fr); }
  .blokk-galleri { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero-grid,
  .footer-grid,
  .arr-layout,
  .om-layout,
  .kontakt-layout,
  .produktside,
  .produktgrid,
  .film-grid,
  .blokk-bildetekst,
  .blokk-galleri { grid-template-columns: 1fr; gap: 28px; }

  .hero-facts { border-left: none; padding-left: 0; }
  .blokk-bildetekst--hogre .blokk-bildetekst__media { order: 0; }
  .artikkelrad { grid-template-columns: 1fr; gap: 18px; }
  .artikkelrad__media { max-width: 320px; }
  .arr-kort { flex-wrap: wrap; }
  .om-layout, .page { padding-top: 36px; }
}

/* Overskrifta for tidlegare arrangement treng luft frå lista over. */
.arr-tidlegare { margin-top: 48px; }

/* Hovudbilete på ei underside */
.side-hero { padding-top: 32px; }
.side-hero img { width: 100%; height: auto; display: block; }

/* Tabell-blokker i sidespalta: namn til venstre, periode høgrejustert på éi
   linje, som leiarlista i prototypen. Den smale spalta gjer 25 % for trongt. */
.om-aside .blokk-tabell td:first-child { width: auto; padding-right: 12px; }
/* `width: 1%` + nowrap krympar periode-kolonna til innhaldet, så namnet får
   resten av breidda i staden for å brekke over to linjer. */
.om-aside .blokk-tabell td:last-child { width: 1%; text-align: right; white-space: nowrap; }
.om-aside .blokk { margin-bottom: 0; }
.om-aside .blokk-fakta h3 { font-size: 44px; color: var(--accent); line-height: 1; margin-bottom: 8px; }
