/*
Theme Name: Saksbehandling
Author: Petter Berg
Versjon: 1.0
*/

/* ===========================
   Basis + variabler (WCAG)
   =========================== */

/* System-fontstack for lesbarhet */
:root{
  /* Farger med god kontrast (sjekket på hvit bakgrunn) */
  --text: #1c2430;              /* ~#24324a ok også */
  --muted: #566072;
  --bg: #ffffff;
  --link: #1248a3;              /* AA på hvit */
  --link-hover: #0b357a;        /* AA+ */
  --border: rgba(0,0,0,.12);
  --focus: #ffbf47;             /* tydelig fokus (gov.uk-aktig) */

  /* Typografi/rytmikk */
  --leading: 1.6;               /* linjehøyde for brødtekst */
  --maxw: 1200px;               /* innholdsbredde */
  --space-1: .25rem;            /* 4px */
  --space-2: .5rem;             /* 8px */
  --space-3: .75rem;            /* 12px */
  --space-4: 1rem;              /* 16px */
  --space-6: 1.5rem;            /* 24px */
  --space-8: 2rem;              /* 32px */
  --radius: .5rem;

  /* Basestørrelse skalerer responsivt (16–18px) */
  --fs-base: clamp(1rem, .9rem + .3vw, 1.125rem);
}

/* Reduser animasjoner ved behov */
@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* CSS reset med tilgjengelighets-hensyn */
*,*::before,*::after{ box-sizing: border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  color:var(--text);
  background:var(--bg);
  font: 400 var(--fs-base) / var(--leading) system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";
  text-rendering: optimizeLegibility;
}

/* Behold tydelig fokus (ikke fjern outlines) */
:focus{ outline: 2px solid var(--focus); outline-offset: 2px; }
:focus:not(:focus-visible){ outline: none; }
:focus-visible{ outline: 3px solid var(--focus); outline-offset: 2px; }

/* Skip-link for tastaturnavigasjon */
.skip-link{
  position: absolute; left:-9999px; top:auto;
}
.skip-link:focus{
  left: var(--space-4); top: var(--space-4);
  background:#000; color:#fff; padding: var(--space-3) var(--space-4);
  z-index: 2000;
}

/* Container */
.wrap{ max-width: var(--maxw); margin-inline:auto; padding-inline:16px; }

/* ===========================
   Typografi
   =========================== */

/* Overskrifter – semantisk, tydelig kontrast og avstand */
h1,h2,h3,h4,h5,h6{
  color:var(--text);
  line-height:1.25;
  margin: var(--space-8) 0 var(--space-4);
  font-weight: 800;
}
h1{ font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
h2{ font-size: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); }
h3{ font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem); }
h4{ font-size: 1.125rem; }
p{ margin: 0 0 var(--space-6); }
small, .muted{ color:var(--muted); }

/* Lenker – tydelig farge + hover/understrek */
a{
  color: var(--link);
  text-underline-offset: 2px;
}
a:hover, a:focus{
  color: var(--link-hover);
  text-decoration: underline;
}

/* Lister – god avstand og innrykk */
ul,ol{
  padding-left: 1.25rem;
  margin: 0 0 var(--space-6);
}
li{ margin: .25rem 0; }

/* Bilde – skalerbar og med alt-tekst i HTML */
img,svg,video{ max-width:100%; height:auto; }

/* Sitering/kode */
blockquote{
  margin: var(--space-6) 0;
  padding: var(--space-4) var(--space-6);
  border-left: 4px solid var(--border);
  background: #fafafa;
}
code,kbd,pre,samp{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .95em;
}
pre{
  overflow:auto;
  background:#0b0e14;
  color:#e6e6e6;
  padding: var(--space-4);
  border-radius: var(--radius);
}

/* Tabeller – lesevennlige med caption */
table{
  width:100%;
  border-collapse: collapse;
  margin: 0 0 var(--space-8);
  font-variant-numeric: tabular-nums;
}
caption{
  text-align:left;
  padding: var(--space-3) 0;
  color: var(--muted);
}
th, td{
  text-align:left;
  border-bottom:1px solid var(--border);
  padding: .6rem .5rem;
}
tbody tr:nth-child(odd){ background: #fafbfd; }

/* ===========================
   Skjemaer (44px touch-mål)
   =========================== */

input, select, textarea, button{
  font: inherit;
  color: inherit;
}
label{ display:inline-block; margin-bottom: .25rem; }

/* Felt */
.input, input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="password"], select, textarea{
  width:100%;
  min-height: 44px;                           /* WCAG anbefalt mål */
  padding: 10px 12px;
  border:1px solid var(--border);
  border-radius: var(--radius);
  background:#fff;
}
input::placeholder, textarea::placeholder{ color:#7a8596; }

/* Knapp */
.btn, button, input[type="submit"]{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; padding: 10px 16px;
  border-radius: var(--radius);
  border: 2px solid currentColor;
  background: transparent;
  color: var(--link-hover);
  font-weight: 700; cursor:pointer; text-decoration:none;
}
.btn:hover, .btn:focus{ background: var(--link-hover); color:#fff; }

/* Feil-/suksessbeskjeder */
.input[aria-invalid="true"], .is-error{ border-color:#b10e1e; }
.form-hint{ color:var(--muted); margin-top: .25rem; }

/* ===========================
   Utils
   =========================== */

.visually-hidden{
  position:absolute !important; width:1px; height:1px;
  margin:-1px; padding:0; border:0; overflow:hidden; clip:rect(0 0 0 0);
}

/* Seksjonsavstand */
.section{ padding: clamp(2rem, 4vw, 4rem) 0; border-top:1px solid var(--border); }
.section:first-of-type{ border-top:0; }

/* Lenker som knapper i lister */
.list-links a{ display:inline-block; padding:.25rem 0; }


/* --- Header layout --- */
#site-header {
  position: sticky;      /* holder seg øverst ved scroll */
  top: 0;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.06);
}

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

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

/* Brand/title */
.header__brand .brand__link {
  font-weight: 800;
  font-size: clamp(20px, 2.5vw, 28px);
  line-height: 1.1;
  color: #24324a;            /* dyp blågrå lik referansebildet */
  text-decoration: none;
}

/* Nav */
.header__nav .nav__list {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.5vw, 36px);
  list-style: none;
  margin: 0;
  padding: 0;
}

.header__nav a {
  text-decoration: none;
  color: #24324a;
  font-weight: 600;
  line-height: 1;
  display: inline-block;
  padding: 10px 0;
}

/* Subtil hover-underline */
.header__nav a:hover,
.header__nav a:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Mobile stacking */
@media (max-width: 800px) {
  .header__inner {
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  .header__nav {
    width: 100%;
    order: 2;
  }
  .header__nav .nav__list {
    gap: 16px;
    flex-wrap: wrap;
  }
}

/* Grunnleggende */
.header__inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;}
.header__nav .nav__list{display:flex;align-items:center;gap:clamp(12px,2.5vw,28px);list-style:none;margin:0;padding:0;}
.header__nav a{text-decoration:none;color:#24324a;font-weight:600;line-height:1;display:inline-block;padding:10px 0;}
.brand__link{font-weight:800;font-size:clamp(1.2rem,3vw,1.7rem);}

/* Mobil-knapp (hamburger) */
.nav-toggle{
  display:none; appearance:none; border:0; background:transparent; padding:.5rem; margin:-.25rem .25rem - .25rem 0;
  border-radius:.5rem; cursor:pointer; position:relative;
}
.nav-toggle:focus-visible{outline:3px solid var(--focus,#4c8bf5); outline-offset:2px;}
.nav-toggle__bar{display:block;width:26px;height:2px;background:#24324a;border-radius:2px;transition:transform .2s,opacity .2s;}
.nav-toggle__bar + .nav-toggle__bar{margin-top:5px;}
/* X-ikon ved åpen meny */
body.menu-open .nav-toggle__bar:nth-child(1){transform:translateY(7px) rotate(45deg);}
body.menu-open .nav-toggle__bar:nth-child(2){opacity:0;}
body.menu-open .nav-toggle__bar:nth-child(3){transform:translateY(-7px) rotate(-45deg);}

/* Backdrop */
.nav-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.35);backdrop-filter:saturate(130%) blur(2px);z-index:98;}
body.menu-open .nav-backdrop{display:block;}
.nav-backdrop[hidden]{display:none;}

/* Desktop OK, mobil: gjør nav til panel */
@media (max-width: 860px){
  .nav-toggle{display:block;}
  .header__nav{
    position:fixed; z-index:99; inset:0 0 0 auto; width:min(85vw,420px);
    background:#fff; border-left:1px solid rgba(0,0,0,.08);
    transform:translateX(100%); transition:transform .22s ease;
    padding:clamp(16px,3vw,24px);
    box-shadow:-10px 0 24px rgba(0,0,0,.08);
  }
  body.menu-open .header__nav{transform:none;}
  .header__nav .nav__list{flex-direction:column; align-items:stretch; gap:.25rem; margin-top:.5rem;}
  .header__nav a{
    padding:14px 10px; border-radius:.6rem;
  }
  .header__nav a:focus-visible, .header__nav a:hover{background:#f1f4f8; text-decoration:none;}
  /* Lås scroll når meny er åpen */
  body.menu-open{overflow:hidden;}
}



/* --- Onepager: forankring mot sticky header --- */
.onepager section{ scroll-margin-top: 90px; }
.onepager section h2 {
	margin-top: 0;
}

/* --- Grid helpers --- */
.grid{ display:grid; gap: clamp(16px, 2vw, 24px); }
.grid-2{ grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3{ grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4{ grid-template-columns: repeat(4, minmax(0,1fr)); }
@media (max-width: 1000px){ .grid-4{ grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 800px){
  .grid-3{ grid-template-columns: 1fr 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
}
@media (max-width: 540px){
  .grid-3, .grid-4{ grid-template-columns: 1fr; }
}

/* --- Cards / chips --- */
.card{
  background:#fff;
  border:1px solid var(--border);
  border-radius: 12px;
  padding: clamp(16px, 2.5vw, 24px);
  box-shadow: 0 1px 0 rgba(0,0,0,.03);
}
.card h2{
	margin-top:0;
}
.card h3{
	margin-top:0;
}
.chips{ display:flex; flex-wrap:wrap; gap:12px; list-style:none; padding:0; margin: var(--space-4) 0 0; }
.chip{
  display:inline-block; padding:.5rem .75rem; border-radius:12px;
  background:#f3f6fb; border:1px solid rgba(0,0,0,.06);
}

/* --- Hero --- */
/* HERO – bakgrunn, gradering og parallax */
.section--hero {
  position: relative;
  color: #fff;
  text-align: center;
  padding: 10rem 1rem 8rem;
  background-image:
    linear-gradient(
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.35)
    ),
    url('/wp-content/uploads/2025/11/saksbehandling_header.jpg');
  background-size: cover;
  background-position: center center;
  background-attachment: fixed; /* skaper scroll-effekten */
  background-repeat: no-repeat;
  isolation: isolate; /* sikrer at overlay ikke påvirker barn */
}

/* Tekst i hero */
.section--hero .wrap {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  z-index: 2;
}

.hero__title {
  font-size: clamp(2rem, 4vw, 3rem);
color: white; 
  line-height: 1.2;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero__lead {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Knapper */
.hero__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn {
  background: #ffffff;
  color: #0a1f44;
  padding: .9rem 1.8rem;
  border-radius: .6rem;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}
.btn:hover,
.btn:focus {
  background: #454da4;
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}
.btn--ghost:hover,
.btn--ghost:focus {
  background: rgba(255, 255, 255, 0.1);
}

/* Scroll-knapp nederst */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: transparent;
  border: none;
  font-size: 2rem;
  color: #fff;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity .3s ease;
}
.hero__scroll:hover,
.hero__scroll:focus {
  opacity: 1;
}

/* CTA-seksjon med bakgrunnsbilde (viser bunnen av bildet) */
.section--cta{
  position: relative;
  color: #fff;
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) 1rem;
  background-image:
    /* mørkere mot bunn/midt for bedre kontrast */
    linear-gradient(to top, rgba(0,0,0,.60) 0%, rgba(0,0,0,.45) 40%, rgba(0,0,0,.25) 75%, rgba(0,0,0,.15) 100%),
    url('/wp-content/uploads/2025/11/saksbehandling_header.jpg');
  background-size: cover;
  background-position: center bottom;   /* <- vis bunnen av bildet */
  background-attachment: fixed;         /* subtil parallax */
  background-repeat: no-repeat;
  isolation: isolate;
}

.section--cta .wrap{
  max-width: 900px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section--cta h2{
  color: white;
}

.section--cta .hero__lead{
  color: rgba(255,255,255,.9);
}

/* iOS/små skjermer har ofte trøbbel med fixed-attachment – fall back */
@media (max-width: 900px){
  .section--cta{
    background-attachment: scroll;
    background-position: center bottom;
  }
}



/* --- Section theming --- */
.section--about .card{ background:#fff; }
.section--municipalities{ background:#f6f8fb; }
.section--resources{ background:#f6f8fb; }
.section--system{ background:#fff; }
.section--cta{
   color:#fff; text-align:center;
}
.section--cta .btn{ background:#fff; color:#123a7e; border-color:#fff; }
.section--contact .card{ background:#f9fbff; }

/* --- Timeline (enkel, lesbar) --- */
.timeline{ list-style:none; padding:0; margin:0; }
.timeline li{ padding: .5rem 0; border-left: 3px solid #d6e2ff; padding-left: .75rem; }

/* --- Små utils --- */
.center{ text-align:center; }

/* --- Footer --- */
#site-footer{
  background:#f6f8fb;
  border-top:1px solid var(--border);
  color:var(--text);
  margin-top: var(--space-8);
}

.footer__grid{
  display:grid;
  gap: clamp(16px, 2vw, 32px);
  grid-template-columns: 2fr 1fr 1fr;       /* 3 kolonner */
  padding: clamp(24px, 4vw, 48px) 16px;
}

@media (max-width: 900px){
  .footer__grid{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px){
  .footer__grid{ grid-template-columns: 1fr; }
}

.footer__brand{
  margin: 0 0 .5rem;
  font-weight: 800;
  font-size: clamp(1.25rem, 1rem + .8vw, 1.5rem);
}

.footer__text{
  color: var(--muted);
  max-width: 48ch;
  margin: 0;
}

.footer__heading{
  margin: 0 0 .5rem;
  font-weight: 800;
  font-size: 1.125rem;
}

.footer__list{
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer__list li{ margin: .4rem 0; }
.footer__list a{
  text-decoration: none;
  color: var(--text);
}
.footer__list a:hover,
.footer__list a:focus{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Bottom bar */
.footer__bottom{
  border-top:1px solid var(--border);
  background:#eef2f8;
}
.footer__bottom-inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:56px;
  gap: 12px;
}
.back-to-top{
  text-decoration:none;
  color: var(--link);
}
.back-to-top:hover,
.back-to-top:focus{
  color: var(--link-hover);
  text-decoration: underline;
}

/* --- Artikkel --- */
.article {
  margin: 0 auto;
  padding: clamp(1rem, 3vw, 2rem);
  max-width: 900px; /* gjelder tittel, bilde og metadata */
}

.article__title {
  margin: 2rem 0 1rem;
  font-weight: 800;
  line-height: 1.15;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.article__figure {
  margin: 0 auto 1.75rem;
  max-width: 900px;
}
.article__image {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Metadata-delen – nå med to linjer */
.article__meta {
  display: flex;
  flex-direction: column; /* sørger for 2 linjer */
  align-items: flex-start;
  color: var(--muted);
  margin: 0 auto 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  max-width: 900px;
  gap: .75rem;
}

.article__meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1rem;
  align-items: center;
}

.meta__sep {
  opacity: .6;
}

.meta__share {
  display: flex;
  align-items: center;
  gap: .75rem;
}

/* Delingslenker */
.share {
  list-style: none;
  display: flex;
  gap: .5rem;
  margin: 0;
  padding: 0;
}
.share__link {
  display: inline-block;
  min-height: 36px;
  line-height: 36px;
  padding: 0 .75rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  text-decoration: none;
  color: var(--text);
  background: #fff;
}
.share__link:hover,
.share__link:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.share--fb { border-color:#3b5998; }
.share--x  { border-color:#111; }
.share--li { border-color:#0a66c2; }

/* --- Innhold --- */
.article__content {
  margin: 2.5rem auto;
  max-width: 700px; /* god linjelengde for brødtekst */
  line-height: 1.7;
}
.article__content p,
.article__content ul,
.article__content ol {
  margin-bottom: 1.25rem;
}
.article__content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}
.article__content figure {
  margin: 1.75rem 0;
}

/* Last-ned-indikator for dokumentlister */
.list-links--download a{
  position: relative;
  padding-left: 28px;              /* plass til ikon */
  display: inline-block;
}

.list-links--download li{
  list-style-type: none;
}

/* SVG-ikon som arver tekstfarge (currentColor) */
.list-links--download a::before{
  content:"";
  position:absolute; left:0; top:50%;
  width:18px; height:18px; transform:translateY(-50%);
  background-repeat:no-repeat; background-size:18px 18px;
  opacity:.9;

  /* Download-ikon (feather style) som data-URI */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' y1='15' x2='12' y2='3'/%3E%3C/svg%3E");
}

/* Fokus/hover – tydelig understrek, god kontrast */
.list-links--download a:hover,
.list-links--download a:focus{
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Dokumentseksjon – enklere, mer fokusert layout */
.section--documents {
  background-color: #f7f9fc;
  padding: clamp(4rem, 6vw, 6rem) 1rem;
  text-align: center;
}

.section--documents .wrap {
  max-width: 800px;
  margin: 0 auto;
}

.section--documents h2 {
  margin-bottom: 1rem;
}

.section--documents p.muted {
  color: #596a83;
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
}

.section--documents .btn {
  background: #24324a;
  color: #fff;
}

.section--documents .btn:hover,
.section--documents .btn:focus {
  background: #3b4a65;
}

/* Samlet hub-seksjon */
.section--hub{
  background:#f6f8fb;
}
.section--hub .wrap{
  max-width: 1100px;
}

/* Grid spacing */
.hub__grid{
  margin-top: clamp(1rem, 2vw, 1.5rem);
}

/* Cards */
.hub__card{
  display:flex;
  flex-direction:column;
  gap: .75rem;
  min-height: 220px;
  padding: clamp(16px, 2.2vw, 24px);
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
}

/* Titler og tekst */
.hub__card-title{
  margin: 0;
  font-weight: 800;
}
.hub__card-lead{
  color: var(--muted);
  margin: 0 0 .5rem;
}

/* CTA-knapp nederst i kortet */
.hub__card-cta{
	width: 100%;
  margin-top: auto;                 /* skyv knappen til bunnen */
  align-self: flex-start;
}

.hub__card-cta{

}

/* (Valgfritt) enkel ikonindikator på korttittel */
.hub__card-title{
  position: relative;

}

/* Responsiv: 3→2→1 kolonner (grid-helperne dine styrer dette også) */
@media (max-width: 900px){
  .section--hub .grid-3{ grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px){
  .section--hub .grid-3{ grid-template-columns: 1fr; }
}


/* Siste nytt */
.section--news { background:#fff; }
.news-grid { margin-top: clamp(12px, 2vw, 16px); }

.news-card{
  display:flex; flex-direction:column;
  border:1px solid var(--border);
  border-radius:12px; overflow:hidden;
  text-decoration:none; color:inherit;
  background:#fff;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.news-card:focus-visible{ outline:3px solid var(--focus); outline-offset:3px; }
.news-card:hover{ transform: translateY(-2px); box-shadow:0 6px 20px rgba(0,0,0,.06); border-color: rgba(0,0,0,.12); }

.news-card__media{ aspect-ratio: 16 / 9; background:#f1f4f8; }
.news-card__img{ width:100%; height:100%; object-fit:cover; display:block; aspect-ratio: 16 / 9; }
.news-card__placeholder{
  width:100%; height:100%;
  background: linear-gradient(135deg, #e9eef6, #f6f8fb);
}

.news-card__body{ padding: 14px 16px 18px; }
.news-card__date{ display:block; color:var(--muted); font-size:.95rem; margin-bottom:.35rem; }
.news-card__title{ margin:0; line-height:1.25; font-weight:800; font-size:1.15rem; }

/* Små skjermer: 3→2→1 kolonner (om du ikke allerede har helpers) */
@media (max-width: 900px){ .section--news .grid-3{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .section--news .grid-3{ grid-template-columns: 1fr; } }

/* Arkiv-intro */
.section--news-archive .archive-intro {
  text-align: center;
  margin-bottom: 1rem;
}
.section--news-archive .archive-intro .muted {
  max-width: 70ch;
  margin: .25rem auto 1rem;
}

/* Paginering */
.pagination {
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
}
.pagination .nav-links {
  display: inline-flex;
  gap: .25rem;
  flex-wrap: wrap;
}
.pagination .page-numbers {
  display: inline-block;
  min-width: 40px;
  min-height: 40px;
  line-height: 40px;
  text-align: center;
  padding: 0 .75rem;
  border: 1px solid var(--border);
  border-radius: .5rem;
  text-decoration: none;
  color: var(--text);
  background: #fff;
}
.pagination .page-numbers.current {
  background: #24324a;
  color: #fff;
  border-color: #24324a;
}
.pagination .page-numbers:hover,
.pagination .page-numbers:focus {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Sider */
.section--page {
  background: #fff;
  padding: clamp(4rem, 6vw, 6rem) 1rem;
}

.section--page .wrap {
  max-width: 900px;
  margin: 0 auto;
}

.page-header {
  margin-bottom: 2rem;
  text-align: left;
}

#page-title {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: .5rem;
}

.page-body {
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
}

.page-body p {
  margin-bottom: 1.2rem;
}

.page-body a {
  color: var(--link, #24324a);
  text-decoration: underline;
}

.page-body a:hover,
.page-body a:focus {
  text-decoration: none;
}

/* Om prosjektet – layout */
.section--about .about__grid {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

/* Responsivt videofelt (16:9) */
.about__video {
	margin: 3rem auto;
	max-width: 900px;
}
.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9-forhold */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.video-wrapper iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
