/* Selvhostede fonter — hentet fra Google Fonts 2026-07-28 og lagt lokalt, slik at
   besøkendes IP ikke sendes til Google (jf. personvernerklæringen: ingen tredjeparts sporing). */
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap;
  src: url('assets/fonts/cormorant-500i-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap;
  src: url('assets/fonts/cormorant-500i-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/cormorant-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/cormorant-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/cormorant-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/cormorant-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/sourcesans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('assets/fonts/sourcesans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/sourcesans-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('assets/fonts/sourcesans-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/sourcesans-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Source Sans 3'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('assets/fonts/sourcesans-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============================================================
   EUTF — Evangeliet Ut til Folket
   Design «Andektig ro» (variant A) + produksjonskomponenter.
   Statisk HTML5 + CSS. Palett/rytme fra DESIGN-DIRECTION.md.
   ============================================================ */

:root {
  --navy: #0c1b33;
  --navy-soft: #16264a;
  --navy-line: #22304f;
  --gold: #c9a84c;
  --gold-champ: #e3cd92;
  --gold-deep: #9c7e34;
  --cream: #faf6ee;
  --sand: #f1ead9;
  --parchment: #e8dfc8;
  --ink: #1c2230;
  --muted: #5b6b82;
  --sage: #7c9082;
  --accent-red: #8b3a3a;
  --video-red: #FF0000;    /* spill-knapp på nyheter med film */

  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Source Sans 3', -apple-system, system-ui, sans-serif;

  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.94rem);
  --step-0:  clamp(1.05rem, 1rem + 0.25vw, 1.18rem);
  --step-1:  clamp(1.4rem, 1.3rem + 0.5vw, 1.7rem);
  --step-2:  clamp(2rem, 1.7rem + 1.5vw, 2.8rem);
  --step-3:  clamp(2.8rem, 2.2rem + 3vw, 4.2rem);
  --step-4:  clamp(3.8rem, 2.8rem + 5vw, 6.5rem);

  --nav-h: 76px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) - 1px); }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.hidden { display: none !important; }

/* Korntekstur over hele siden */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: var(--navy); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }

/* ===== Seksjonsbånd + rytme ===== */
.band { position: relative; padding: clamp(64px, 10vw, 130px) 0; }
.band--cream { background: var(--cream); }
.band--sand  { background: var(--sand); }
.band--navy  { background: var(--navy); color: var(--cream); }
.band--navy h2, .band--navy h3 { color: var(--cream); }

.band + .band:not(.band--navy)::before,
.band--navy + .band::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(420px, 60%); height: 1px; opacity: 0.5;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* ===== Typografi ===== */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: 0.01em; }
.h-display { font-size: var(--step-4); font-weight: 500; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { max-width: 66ch; }
.lead { font-size: var(--step-1); color: var(--muted); max-width: 60ch; }
.band--navy .lead { color: rgba(232,228,220,0.82); }

.eyebrow { font-size: var(--step--1); font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold-deep); max-width: none; }
.band--navy .eyebrow { color: var(--gold-champ); }

.divider { display: flex; align-items: center; gap: 0.8rem; margin: 1.3rem 0; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; max-width: 70px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { background: linear-gradient(90deg, var(--gold), transparent); }
.divider i { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); }
.section-head .divider { justify-content: center; }
.section-head .divider::before, .section-head .divider::after { max-width: 90px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ===== Knapper ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  padding: 0.95em 1.9em; font-family: var(--font-body); font-size: 0.92rem; font-weight: 600;
  letter-spacing: 0.03em; text-transform: uppercase; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; background: transparent;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-champ); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(201,168,76,0.35); }
.btn-ghost { border-color: rgba(228,228,220,0.45); color: var(--cream); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-champ); transform: translateY(-2px); }
.btn-ghost-dark { border-color: rgba(12,27,51,0.25); color: var(--navy); }
.btn-ghost-dark:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.btn-wide { width: 100%; }
.btn-small { padding: 0.55em 1.2em; font-size: 0.8rem; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px;
}
.radio-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000; height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease), backdrop-filter 0.35s;
}
.nav.scrolled { background: rgba(12,27,51,0.92); backdrop-filter: blur(14px); box-shadow: 0 2px 20px rgba(0,0,0,0.18); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 0 clamp(20px,5vw,56px); display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--gold-champ); letter-spacing: 0.04em; }
.nav-logo .cross { color: var(--gold); }
.nav-links { display: flex; list-style: none; gap: 30px; align-items: center; }
.nav-links a { font-size: 0.84rem; font-weight: 600; color: var(--cream); letter-spacing: 0.06em; text-transform: uppercase; position: relative; padding: 6px 0; opacity: 0.85; }
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--gold-champ); }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px; background: var(--gold); transition: width 0.3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.nav-give { padding: 0.6em 1.7em; border: 1.5px solid var(--gold); border-radius: 999px; color: var(--gold-champ) !important; opacity: 1 !important; line-height: 1; }
.nav-links a.nav-give::after { display: none; }
.nav-links a.nav-give:hover { background: var(--gold); color: var(--navy) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--gold); border-radius: 2px; transition: var(--ease) 0.3s; transform-origin: center; }
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column;
    gap: 18px; padding: 28px; background: rgba(12,27,51,0.97); backdrop-filter: blur(14px);
    display: none;
  }
  .nav-links.open { display: flex; }
}

/* ===== HERO (variant A) ===== */
.hero { position: relative; min-height: 92vh; display: flex; align-items: center; overflow: hidden; background: var(--navy); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(0.74) contrast(1.05); }
.hero-duo { position: absolute; inset: 0; background: linear-gradient(150deg, rgba(12,27,51,0.86), rgba(22,38,74,0.55)); mix-blend-mode: multiply; }
.hero-duo2 { position: absolute; inset: 0; background: radial-gradient(70% 60% at 25% 80%, rgba(201,168,76,0.26), transparent 60%); mix-blend-mode: soft-light; }
.hero-glow { position: absolute; left: 22%; top: 44%; width: 60vmin; height: 60vmin; transform: translate(-50%,-50%); background: radial-gradient(circle, rgba(201,168,76,0.16), transparent 65%); border-radius: 50%; }
.hero-content { position: relative; z-index: 2; padding: calc(var(--nav-h) + 40px) 0 80px; }
.hero h1 { color: var(--cream); margin: 0.3em 0; }
.hero h1 em { font-style: italic; color: var(--gold-champ); }
.hero .lead { color: rgba(232,228,220,0.92); font-family: var(--font-display); font-style: italic; font-size: var(--step-2); max-width: none; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 1px; height: 44px; background: linear-gradient(var(--gold), transparent); animation: scrollPulse 2.4s ease-in-out infinite; z-index: 2; }
@keyframes scrollPulse { 0%,100%{opacity:.3;transform:translateX(-50%) scaleY(.6)} 50%{opacity:1;transform:translateX(-50%) scaleY(1)} }

/* ===== Tillitsbånd / tellere ===== */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: clamp(20px, 4vw, 50px); text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 500; font-size: clamp(3rem, 7vw, 5.2rem); line-height: 1; color: var(--gold-champ); font-feature-settings: "onum" 1; }
.stat .lbl { display: block; margin-top: 8px; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.16em; color: var(--gold-champ); opacity: 0.85; }

/* ===== Om / fakta-bokser ===== */
.om-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px,6vw,80px); align-items: center; }
.factgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.fact { background: var(--cream); border: 1px solid var(--parchment); border-radius: var(--radius); padding: 28px 22px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 150px; gap: 8px; transition: transform 0.35s var(--ease), border-color 0.35s; box-shadow: 0 4px 18px rgba(12,27,51,0.05); }
.fact:hover { transform: translateY(-4px); border-color: var(--gold); }
.fact .fnum { font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; color: var(--navy); line-height: 1; }
.fact .lbl { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }

/* ===== Foto-band ===== */
.photoband { position: relative; min-height: clamp(320px, 50vw, 540px); display: flex; align-items: flex-end; overflow: hidden; background: var(--navy); }
.photoband img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.3) contrast(1.05); }
.photoband::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,27,51,0.15), rgba(12,27,51,0.55) 60%, rgba(12,27,51,0.85)); }
.photoband .cap { position: relative; z-index: 1; color: var(--cream); padding: clamp(30px,6vw,70px); max-width: 760px; }
.photoband .cap p { font-family: var(--font-display); font-style: italic; font-size: var(--step-2); color: var(--cream); }
.photoband--center { align-items: center; justify-content: center; text-align: center; min-height: clamp(360px, 52vw, 560px); }
.photoband--center .cap { margin: 0 auto; max-width: 880px; }
.photoband--center .cap p { font-size: var(--step-3); line-height: 1.3; }
.photoband .cap .verse-ref { font-family: var(--font-body); font-style: normal; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.22em; color: var(--gold-champ); margin-top: 18px; }

/* ===== Generelle kort ===== */
.grid { display: grid; gap: clamp(18px, 2.5vw, 26px); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: stretch; }
.card { display: flex; flex-direction: column; background: var(--cream); border: 1px solid var(--parchment); border-radius: var(--radius); padding: clamp(24px,3vw,34px); box-shadow: 0 4px 20px rgba(12,27,51,0.06); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s; }
.band--sand .card { background: #fff; }
.card:hover { transform: translateY(-5px); box-shadow: 0 16px 44px rgba(12,27,51,0.14); border-color: var(--gold); }
.card h3 { font-size: var(--step-1); margin-bottom: 0.4em; }
.card p { color: var(--muted); font-size: var(--step-0); }
.card .push { margin-top: auto; }
.band--navy .card { background: var(--navy-soft); border-color: var(--navy-line); box-shadow: none; }
.band--navy .card p { color: rgba(232,228,220,0.8); }
.band--navy .card:hover { border-color: var(--gold); }

/* Gull-strekikoner + draw-on */
.ico { width: 46px; height: 46px; margin-bottom: 16px; fill: none; stroke: var(--gold-deep); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.band--navy .ico, .band--sand .ico { stroke: var(--gold); }
.ico path, .ico circle, .ico rect, .ico line { stroke-dasharray: 240; stroke-dashoffset: 240; transition: stroke-dashoffset 1.1s var(--ease); }
.in-view .ico path, .in-view .ico circle, .in-view .ico rect, .in-view .ico line { stroke-dashoffset: 0; }
.fact .ico { margin: 0; }

/* ===== Scroll-reveal ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in-view { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }

/* ===== Nyheter ===== */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: clamp(18px,2.5vw,26px); align-items: stretch; }
.news-card { display: flex; flex-direction: column; background: var(--cream); border: 1px solid var(--parchment); border-radius: var(--radius); overflow: hidden; box-shadow: 0 4px 20px rgba(12,27,51,0.06); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s; }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 16px 44px rgba(12,27,51,0.14); border-color: var(--gold); }
.news-card .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--navy-soft); position: relative; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.22) contrast(1.03); transition: transform 0.6s var(--ease); }
.news-card:hover .thumb img { transform: scale(1.05); }
/* Placeholder når bilde mangler — diskret gull-monogram på navy */
.news-card .thumb.empty::after { content: "✝"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 3rem; color: rgba(201,168,76,0.4); }
/* Skjul placeholder når det finnes en film — spill-knappen skal ikke bli dekket av korset */
.news-card .thumb.has-video.empty::after { display: none; }
/* Spill-knapp på nyheter med film — ren sirkel, ikke YouTubes merke */
.news-card .thumb.has-video { cursor: pointer; }
.news-card .thumb-play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: none; }
.news-card .thumb-play::before { content: ""; width: 60px; height: 60px; border-radius: 50%; background: var(--video-red); box-shadow: 0 8px 26px rgba(12,27,51,0.34); transition: transform 0.35s var(--ease); }
.news-card .thumb-play::after { content: ""; position: absolute; margin-left: 4px; border-left: 17px solid #fff; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.news-card:hover .thumb-play::before { transform: scale(1.08); }
.news-card .thumb.has-video:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
@media (max-width: 560px) {
  .news-card .thumb-play::before { width: 50px; height: 50px; }
  .news-card .thumb-play::after { border-left-width: 14px; border-top-width: 9px; border-bottom-width: 9px; }
}
.news-card .nbody { padding: clamp(22px,2.5vw,30px); display: flex; flex-direction: column; flex: 1; }
.news-date { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-deep); margin-bottom: 8px; }
.news-card h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--step-1); color: var(--navy); margin-bottom: 0.4em; line-height: 1.2; }
/* ===== Aktuelt-banner i hero (styres fra admin: «Vis som aktuelt øverst på siden») ===== */
.hero-aktuelt-wrap { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.hero-aktuelt-wrap:not(:empty) { margin-bottom: 26px; }
.hero-aktuelt {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 20px;
  font-size: .92rem; font-weight: 600; letter-spacing: .015em;
  color: var(--gold-champ); background: rgba(12,27,51,.45);
  border: 1px solid rgba(201,168,76,.5); border-radius: 999px;
  text-decoration: none; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: border-color .25s, background .25s, transform .25s;
  cursor: pointer; font-family: inherit;
}
.hero-aktuelt:hover { border-color: var(--gold); background: rgba(12,27,51,.66); transform: translateY(-1px); }
.hero-aktuelt .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); animation: aktpulse 2.4s infinite; flex: 0 0 auto; }
.hero-aktuelt .arr { transition: transform .25s; }
.hero-aktuelt:hover .arr { transform: translateX(3px); }
@keyframes aktpulse { 0% { box-shadow: 0 0 0 0 rgba(201,168,76,.55) } 70% { box-shadow: 0 0 0 7px rgba(201,168,76,0) } 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0) } }
@media (prefers-reduced-motion: reduce) { .hero-aktuelt .dot { animation: none } }

/* Admin: aktuelt-feltene (skjult til avkryssingsboksen er på) */
.featured-block { margin: 4px 0 20px; padding: 16px 18px; background: var(--sand); border: 1px solid var(--parchment); border-radius: var(--radius); }
.checkbox-row { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.95rem; font-weight: 600; }
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--gold-deep); cursor: pointer; }
.field-hint { margin: 6px 0 0; font-size: 0.8rem; line-height: 1.45; color: var(--muted); }
.featured-fields { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--parchment); }
.featured-fields .form-group:last-child { margin-bottom: 0; }
.pill-file { margin-top: 8px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink); }

/* pre-line bevarer avsnittene admin skriver; line-clamp holder kortene like høye */
.news-card .excerpt { color: var(--muted); font-size: var(--step-0); white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.news-more { align-self: flex-start; margin: 0 0 .3em; padding: 0; background: none; border: none; border-bottom: 1px solid var(--gold); color: var(--gold-deep); font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; transition: color .25s, border-color .25s; }
.news-more:hover { color: var(--navy); border-color: var(--navy); }
/* Lesevisning */
.modal-inner.reader { max-width: 720px; }
.modal-inner.reader .modal-head h3 { padding-right: 16px; } /* lange nyhetstitler skal ikke krype inn i lukk-knappen */
.reader-figure { margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; background: var(--navy-soft); }
.reader-figure img { display: block; width: 100%; height: auto; }
.reader-video { aspect-ratio: 16/9; background: #000; }
.reader-video iframe { display: block; width: 100%; height: 100%; border: 0; }
.reader-body { white-space: pre-line; color: var(--ink); font-size: var(--step-0); line-height: 1.75; margin-bottom: .8em; }
.cal-more { display: block; margin: 14px auto 0; padding: 9px 22px; background: none; border: 1px solid var(--parchment); border-radius: 999px; color: var(--gold-deep); font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer; transition: border-color .25s, color .25s; }
.cal-more:hover { border-color: var(--gold); color: var(--navy); }
/* Honeypot mot skjema-roboter — skal aldri være synlig for mennesker */
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.news-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--parchment); }
.news-card-share, .news-card-edit, .news-card-delete { background: none; border: none; cursor: pointer; font: inherit; font-size: 0.82rem; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; transition: color 0.3s; }
.news-card-share { color: var(--gold-deep); }
.news-card-edit { color: var(--navy); opacity: 0.7; }
.news-card-delete { color: var(--accent-red); opacity: 0.7; }
.news-card-share:hover { color: var(--navy); }
.news-card-edit:hover, .news-card-delete:hover { opacity: 1; }
.btn-ico { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.empty-note { text-align: center; color: var(--muted); grid-column: 1/-1; padding: 20px; }
.admin-hint { display: none; text-align: center; margin-top: 32px; }
body.admin-mode .admin-hint { display: block; }
/* Hjelpesiden: bare synlig når redaktøren er innlogget. hjelp.php sender uansett
   vanlige besøkende til forsiden, så dette er kun for å holde bunnteksten ren. */
.hjelp-link { display: none; }
body.admin-mode .hjelp-link { display: inline; }
.giver-link { display: none; }
body.admin-mode .giver-link { display: inline; }
.hjelp-hint { display: block; margin-top: 12px; font-size: 0.88rem; color: var(--gold-deep); }
.hjelp-hint:hover { color: var(--navy); }
/* Redaktørknapper skjult for vanlige besøkende */
.news-card-edit, .news-card-delete, .cal-edit, .cal-delete { display: none; }
body.admin-mode .news-card-edit, body.admin-mode .news-card-delete,
body.admin-mode .cal-edit, body.admin-mode .cal-delete { display: inline-flex; }

/* ===== Kalender ===== */
.cal { display: flex; flex-direction: column; gap: 14px; max-width: 860px; margin: 0 auto; }
.cal-item { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--parchment); border-radius: var(--radius); padding: 20px 26px; box-shadow: 0 4px 18px rgba(12,27,51,0.05); transition: transform 0.35s var(--ease), border-color 0.35s; }
.cal-item:hover { transform: translateX(4px); border-color: var(--gold); }
.cal-item.past { opacity: 0.55; }
.cal-date { text-align: center; min-width: 56px; }
.cal-date .d { font-family: var(--font-display); font-weight: 600; font-size: 2.1rem; color: var(--navy); line-height: 1; }
.cal-date .m { display: block; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.1em; color: var(--gold-deep); }
.cal-info h4 { font-size: var(--step-1); margin: 0 0 2px; color: var(--navy); }
.cal-info .meta { color: var(--muted); font-size: var(--step-0); margin: 0; }
.cal-info .loc { display: inline-block; margin-top: 4px; font-size: 0.85rem; color: var(--gold-deep); }
.cal-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cal-add-btn, .cal-edit, .cal-delete { background: none; border: 1px solid var(--parchment); border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 0.75rem; cursor: pointer; white-space: nowrap; transition: all 0.3s; }
.cal-add-btn { color: var(--gold-deep); }
.cal-add-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.cal-edit { color: var(--navy); }
.cal-edit:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.cal-delete { color: var(--accent-red); border-color: rgba(139,58,58,0.25); }
.cal-delete:hover { background: var(--accent-red); color: var(--cream); border-color: var(--accent-red); }
.cal-sep { text-align: center; padding: 8px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 600; }
.cal-item.has-img { grid-template-columns: 72px auto 1fr auto; }
.cal-thumb { width: 72px; height: 72px; border-radius: 10px; overflow: hidden; }
.cal-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Bildebibliotek */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.media-thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--navy-soft); aspect-ratio: 4/3; transition: border-color 0.2s, transform 0.2s; }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-thumb:hover { border-color: var(--gold); transform: translateY(-2px); }
#mediaModal .modal-inner { max-width: 680px; }

@media (max-width: 640px) {
  .cal-item, .cal-item.has-img { grid-template-columns: auto 1fr; }
  .cal-thumb { display: none; }
  .cal-actions { grid-column: 1/-1; justify-content: flex-end; }
}

/* ===== Mobil: skaler ned overskrifter så de ikke flyter ut i kanten + litt mer sideluft ===== */
@media (max-width: 600px) {
  :root {
    --step-4: clamp(2.1rem, 9vw, 3.4rem);   /* hero-tittel */
    --step-3: clamp(1.7rem, 6.6vw, 2.5rem); /* h2 / sitater */
    --step-2: clamp(1.35rem, 5vw, 2rem);    /* h3 / ingress */
  }
  .wrap { padding: 0 24px; }
  .h-display, h2, h3, .lead { overflow-wrap: break-word; }
  .hero-aktuelt { font-size: 0.82rem; padding: 8px 16px; }
}

/* ===== Donasjon ===== */
#gi { overflow: hidden; }
.gi-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); opacity: 0.2; }
#gi::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--navy), rgba(12,27,51,0.62) 45%, var(--navy)); }
#gi .wrap { position: relative; z-index: 1; }
.donate-card .label { display: block; font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.2em; color: var(--gold-champ); margin-bottom: 10px; }
.donate-card .big { font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-champ); letter-spacing: 0.04em; margin: 6px 0; }
.copy-chip { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); color: var(--cream); padding: 4px 12px; border-radius: 999px; font: inherit; font-size: 0.75rem; font-weight: 500; cursor: pointer; transition: all 0.3s; }
.copy-chip:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }
/* Oppsigelsesinfo for fast givertjeneste (krav fra Vipps for faste donasjoner) */
.give-note { margin-top: 12px; font-size: 0.86rem; line-height: 1.5; color: rgba(232,228,220,0.72); }
.band--navy .card p.give-note { color: rgba(232,228,220,0.72); }
.give-note a { color: var(--gold-champ); border-bottom: 1px solid rgba(227,205,146,0.4); }
.give-note a:hover { border-bottom-color: var(--gold-champ); }
.recurring-form-wrap { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--navy-line); }
.recurring-form-wrap[hidden] { display: none; }
.vipps-button { display: flex; align-items: center; gap: 14px; background: #ff5b24; color: #fff; padding: 14px 20px; border-radius: var(--radius); transition: all 0.3s var(--ease); }
.vipps-button:hover { background: #e8501e; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,91,36,0.35); color: #fff; }
.vipps-button-icon { width: 42px; height: 42px; flex-shrink: 0; background: rgba(255,255,255,0.2); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.vipps-button-text { display: flex; flex-direction: column; line-height: 1.2; }
.vipps-button-text strong { font-size: 1.05rem; }
.vipps-button-text small { opacity: 0.85; font-size: 0.8rem; }
.vipps-number-row { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.vipps-number-small { font-size: 0.85rem; color: rgba(232,228,220,0.75); }
.vipps-number-small strong { color: var(--gold-champ); }

/* ===== Skjema ===== */
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%; padding: 0.8em 1em; border: 1.5px solid var(--parchment); border-radius: var(--radius); font: inherit; color: var(--ink); background: #fff;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus, .form-group textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,0.15); }
.form-group textarea { resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.recurring-amounts { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.radio-chip { cursor: pointer; }
.radio-chip input { position: absolute; opacity: 0; }
.radio-chip span { display: block; padding: 8px 18px; border: 1.5px solid rgba(255,255,255,0.25); border-radius: 999px; font-size: 0.9rem; color: var(--cream); transition: all 0.3s; }
.radio-chip input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.recurring-form .form-group input { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); color: var(--cream); }
.recurring-form .form-group label { color: var(--cream); }
.recurring-form .form-group input::placeholder { color: rgba(255,255,255,0.4); }

/* Bilde-velger (admin) */
.image-preview { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.image-preview img { max-height: 150px; border-radius: var(--radius); border: 1px solid var(--parchment); }
.image-remove { background: none; border: none; color: var(--accent-red); cursor: pointer; font-size: 0.82rem; padding: 0; align-self: flex-start; }
.form-group input[type="file"] { padding: 10px; background: var(--cream); cursor: pointer; }

/* ===== Kontakt ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px,6vw,72px); }
.contact-details { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-top: 28px; }
.contact-details li { display: flex; align-items: flex-start; gap: 14px; }
.contact-details .ci { width: 22px; height: 22px; min-width: 22px; margin-top: 3px; fill: none; stroke: var(--gold-deep); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.contact-details strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.contact-details a:hover { color: var(--gold-deep); }
.contact-form-wrap { background: var(--cream); border: 1px solid var(--parchment); border-radius: var(--radius-lg); padding: clamp(28px,4vw,40px); box-shadow: 0 10px 40px rgba(12,27,51,0.08); }

/* ===== Bibelvers + nyhetsbrev (lyst kort) ===== */
.verse-block { text-align: center; max-width: 820px; margin: 0 auto clamp(50px,7vw,80px); }
.verse-block p { font-family: var(--font-display); font-style: italic; font-size: var(--step-3); color: var(--navy); line-height: 1.35; margin: 0 auto; }
.news-letter { background: var(--cream); border: 1px solid var(--gold); border-radius: var(--radius-lg); padding: clamp(40px,6vw,70px); text-align: center; max-width: 760px; margin: 0 auto; box-shadow: 0 10px 40px rgba(12,27,51,0.08); }
.news-letter .ico { stroke: var(--gold-deep); margin: 0 auto 14px; }
.news-letter h2 { font-size: var(--step-2); }
.nl-row { display: flex; gap: 10px; margin-top: 26px; }
.nl-row input { flex: 1; min-width: 0; padding: 0.85em 1.1em; border: 1.5px solid var(--parchment); border-radius: 999px; font: inherit; background: #fff; }
.nl-success { margin-top: 18px; padding: 14px; background: rgba(124,144,130,0.15); border-radius: var(--radius); color: var(--sage); font-weight: 600; }

/* ===== Footer ===== */
.foot { background: var(--navy); color: rgba(232,228,220,0.7); padding: 56px 0 30px; text-align: center; }
.foot .wrap { display: flex; flex-direction: column; align-items: center; }
.foot .mark { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-champ); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 20px 0 8px; }
.foot-links a { font-size: 0.9rem; opacity: 0.8; }
.foot-links a:hover { color: var(--gold-champ); opacity: 1; }
.foot .small { font-size: var(--step--1); opacity: 0.6; margin-top: 14px; max-width: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px; }
.foot .small .dot { color: var(--gold-deep); }
.admin-link { font-size: 0.78rem; color: rgba(232,228,220,0.6); border-bottom: 1px dotted rgba(255,255,255,0.3); }
.admin-link:hover { color: var(--gold-champ); }

/* ===== Back to top ===== */
.back-to-top { position: fixed; bottom: 28px; right: 28px; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: var(--gold); border: 2px solid var(--gold); font-size: 1.2rem; cursor: pointer; z-index: 900; opacity: 0; pointer-events: none; display: flex; align-items: center; justify-content: center; transition: all 0.3s var(--ease); }
.back-to-top.visible { opacity: 1; pointer-events: auto; }
.back-to-top:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

/* ===== Modaler / paneler ===== */
.modal { display: none; position: fixed; inset: 0; z-index: 2000; background: rgba(12,27,51,0.65); backdrop-filter: blur(8px); align-items: center; justify-content: center; padding: 24px; }
.modal.active { display: flex; animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal-inner { background: var(--cream); border-radius: var(--radius-lg); padding: clamp(28px,4vw,40px); max-width: 540px; width: 100%; max-height: 90vh; overflow-y: auto; box-shadow: 0 24px 60px rgba(0,0,0,0.3); }
.modal-inner.narrow { max-width: 400px; text-align: center; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.modal-head h3 { font-size: var(--step-2); color: var(--navy); }
.modal-close { background: none; border: none; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--muted); padding: 4px 8px; }
.modal-close:hover { color: var(--accent-red); }
.pw-error { color: var(--accent-red); font-size: 0.85rem; margin-bottom: 12px; display: none; }
.modal-inner.narrow input { width: 100%; padding: 0.8em 1em; border: 1.5px solid var(--parchment); border-radius: var(--radius); font: inherit; text-align: center; margin-bottom: 12px; }
.share-buttons { display: flex; flex-direction: column; gap: 10px; }
.share-btn { display: flex; align-items: center; gap: 12px; padding: 13px 18px; border: 1px solid var(--parchment); border-radius: var(--radius); background: #fff; font: inherit; font-weight: 500; cursor: pointer; transition: all 0.3s; }
.share-btn:hover { background: var(--gold); color: var(--navy); border-color: var(--gold); }

/* ===== Toast ===== */
.toast { position: fixed; bottom: 88px; right: 28px; background: var(--navy); color: var(--cream); padding: 14px 24px; border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0,0,0,0.25); font-size: 0.92rem; font-weight: 500; z-index: 3000; border-left: 3px solid var(--gold); animation: toastIn 0.4s ease, toastOut 0.4s ease 2.8s forwards; max-width: calc(100vw - 56px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(20px); } }

@media (max-width: 820px) {
  .om-grid, .contact-grid { grid-template-columns: 1fr; }
  .nl-row { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .ico path, .ico circle, .ico rect, .ico line { stroke-dashoffset: 0; }
}

/* ---------- Admin: faste givere ---------- */
.giver-modal { max-width: 860px; }
.giver-sum { margin-bottom: 6px; font-size: 1.05rem; color: var(--navy); }
.giver-cron { margin-bottom: 18px; font-size: 0.88rem; color: var(--muted); }
.giver-cron.varsel { color: var(--accent-red); font-weight: 600; }
.giver-tom { color: var(--muted); }
.giver-tabell { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.giver-tabell th { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1.5px solid var(--parchment);
                   font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 600; }
.giver-tabell td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--parchment); vertical-align: top; color: var(--ink); }
.giver-tabell tr:last-child td { border-bottom: none; }
.giver-tabell .nowrap { white-space: nowrap; }
.giver-status { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.giver-status.aktiv { background: rgba(201,168,76,0.22); color: var(--gold-deep); }
.giver-status.venter { background: rgba(12,27,51,0.08); color: var(--muted); }
.giver-status.slutt { background: rgba(12,27,51,0.06); color: var(--muted); }
.btn-liten { padding: 5px 12px; font-size: 0.8rem; }
/* Tabellen må kunne rulle vannrett på mobil — ellers presses hele siden ut */
.giver-rull { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* ---------- Admin: økonomi og deling ---------- */
.giver-faner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 20px;
               padding-bottom: 12px; border-bottom: 1px solid var(--parchment); }
.giver-fane { padding: 7px 16px; border: none; background: none; border-radius: 999px; cursor: pointer;
              font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--muted); transition: background .2s, color .2s; }
.giver-fane:hover { color: var(--navy); }
.giver-fane.aktiv { background: rgba(201,168,76,0.2); color: var(--gold-deep); }
.giver-synk { margin-left: auto; }

/* Nøkkeltall: hver verdi er sin egen sak, ikke en graf med én søyle */
.kpi-rad { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { padding: 14px 16px; background: #fff; border: 1px solid var(--parchment); border-radius: var(--radius); }
.kpi-tall { font-family: var(--font-display); font-size: 1.65rem; line-height: 1.1; color: var(--navy); }
.kpi-enhet { font-size: 0.95rem; color: var(--muted); margin-left: 3px; }
.kpi-navn { display: block; margin-top: 5px; font-size: 0.78rem; text-transform: uppercase;
            letter-spacing: 0.07em; color: var(--muted); font-weight: 600; }

.giver-h { margin: 26px 0 3px; font-size: 1.02rem; color: var(--navy); font-weight: 600; }
.giver-under { margin-bottom: 12px; font-size: 0.86rem; color: var(--muted); }
.giver-feil { color: var(--accent-red); font-weight: 600; }

/* Grafen: tallene står i teksttoner, aldri i stolpefargen */
.graf-boks { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.graf-boks svg { display: block; }
.graf-verdi { font-size: 10px; font-weight: 600; fill: var(--navy); font-family: inherit; }
.graf-akse { font-size: 9px; fill: var(--muted); font-family: inherit; text-transform: uppercase; letter-spacing: .04em; }
.graf-boks [data-i] { cursor: default; transition: opacity .15s; }
.graf-boks:has([data-i]:hover) [data-i] { opacity: .5; }
.graf-boks [data-i]:hover { opacity: 1; }
.giver-detalj { margin-top: 10px; }
.giver-detalj summary { cursor: pointer; font-size: 0.84rem; color: var(--gold-deep); font-weight: 600; }
.giver-detalj .giver-tabell { margin-top: 10px; max-width: 340px; }
.graf-tip { position: absolute; z-index: 5; transform: translateX(-50%); pointer-events: none;
            padding: 5px 10px; border-radius: var(--radius); background: var(--navy); color: #fff;
            font-size: 0.8rem; white-space: nowrap; box-shadow: 0 6px 18px rgba(12,27,51,.25); }

/* Deling: lenke + QR */
.del-rad { display: flex; gap: 8px; align-items: center; margin-bottom: 16px; }
.del-lenke { flex: 1; min-width: 0; padding: 9px 12px; border: 1.5px solid var(--parchment);
             border-radius: var(--radius); font: inherit; font-size: 0.88rem; color: var(--ink); background: #fff; }
.qr-rad { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
.qr { margin: 0; padding: 12px; background: #fff; border: 1px solid var(--parchment);
      border-radius: var(--radius); text-align: center; }
.qr img { width: 100%; max-width: 120px; height: auto; image-rendering: pixelated; }
.qr figcaption { margin-top: 8px; font-size: 0.76rem; color: var(--muted); line-height: 1.5; }
.qr figcaption a { color: var(--gold-deep); }
/* Skiller de automatiske kodene fra den som må innom beløpsvalget — den
   forskjellen avgjør hvilken kode Svein setter på hvilken trykksak. */
.qr-hva { display: inline-block; margin-top: 2px; font-size: 0.72rem; color: var(--gold-deep); }
.graf-svg { display: block; width: 100%; max-width: 470px; height: auto; }
.giver-sok-rad { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.giver-sok { flex: 1; min-width: 0; padding: 9px 13px; border: 1.5px solid var(--parchment);
             border-radius: var(--radius); font: inherit; font-size: 0.9rem; color: var(--ink); background: #fff; }
.giver-sok:focus { outline: none; border-color: var(--gold); }
.giver-treff { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.giver-filter { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
                font-size: 0.86rem; color: var(--muted); cursor: pointer; }
.giver-filter input { width: 16px; height: 16px; accent-color: var(--gold-deep); cursor: pointer; }

/* ---------- Fast giver: det anbefalte valget ---------- */
/* Fast givertjeneste er det som gjør at arbeidet kan planlegges, men kortet var
   det svakeste av de tre. En gullkant og et lite merke løfter det uten å rope. */
.donate-card--fremhevet { border-color: rgba(201,168,76,.5); box-shadow: 0 0 0 1px rgba(201,168,76,.25), 0 18px 44px rgba(12,27,51,.18); }
.label--gull { display: block; }
.label-merke { margin-left: 12px; }
.label-merke { padding: 2px 9px; border-radius: 999px; background: var(--gold);
               color: var(--navy); font-size: .68rem; font-weight: 700;
               text-transform: uppercase; letter-spacing: .08em; }
