/* ==========================================================================
   Bonuselgen.no – main.css
   Designsystem «Lusekofte». Se AI-STYLEGUIDE.md for regler om bruk.
   Struktur: 1 Tokens · 2 Reset/base · 3 Layout · 4 Typografi · 5 Komponenter
             6 Sidespesifikt · 7 Animasjon · 8 Utskrift
   ========================================================================== */

/* 1 · Tokens ------------------------------------------------------------- */
:root {
  --cream: #FBF4E8;
  --sand: #F1E3CA;
  --white: #FFFFFF;
  --red: #B3262E;
  --red-dark: #7E1A20;
  --pink: #F2B8AE;
  --navy: #1C2A44;
  --navy-soft: #3A4A6A;
  --navy-text: #D9DEE8;
  --line: #C9B48F;
  --green: #2F6B4F;
  --muted: #4A5568;
  --placeholder: #5E5440;

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-body: 1.0625rem;              /* 17px */
  --fs-lead: clamp(1.125rem, 1rem + .4vw, 1.25rem);
  --fs-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
  --fs-h2: clamp(1.875rem, 1.5rem + 1.4vw, 2.625rem);
  --fs-h3: 1.375rem;
  --fs-small: .875rem;

  --space-1: .5rem;  --space-2: 1rem;  --space-3: 1.5rem;
  --space-4: 2rem;   --space-5: 3rem;  --space-6: 4.5rem;

  --radius: 8px;
  --radius-inner: 4px;
  --radius-btn: 6px;
  --container: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* 2 · Reset / base -------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: .18em; }
a:hover { color: var(--red-dark); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.section--navy :focus-visible, .site-footer :focus-visible { outline-color: var(--pink); }
button { font: inherit; }
table { border-collapse: collapse; width: 100%; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--navy); color: var(--cream); padding: .75rem 1rem; border-radius: var(--radius-btn);
}
.skip-link:focus { top: 1rem; color: var(--cream); }

/* 3 · Layout ------------------------------------------------------------- */
.container { max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 0 var(--space-6); }
.section--tight { padding-bottom: var(--space-5); }
.section--navy { background: var(--navy); color: var(--cream); padding-block: var(--space-6); margin-bottom: var(--space-6); }
.section--navy a:not(.btn) { color: var(--pink); }
.grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 260px)), 1fr)); }
.grid--2 { --min: 340px; gap: var(--space-4); }
.split { display: flex; flex-wrap: wrap; gap: var(--space-5); align-items: flex-start; }
.split__main { flex: 999 1 560px; min-width: 0; }
.split__aside { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.stack { display: flex; flex-direction: column; gap: var(--space-2); }
.stack--lg { gap: var(--space-3); }
.row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* 4 · Typografi ---------------------------------------------------------- */
h1, h2, h3, .serif { font-family: var(--font-serif); font-weight: 800; line-height: 1.08; margin: 0; }
h1 { font-size: var(--fs-h1); letter-spacing: -.02em; line-height: 1; }
h2 { font-size: var(--fs-h2); letter-spacing: -.01em; margin-bottom: var(--space-3); }
h3 { font-size: var(--fs-h3); }
h1 em, h2 em { color: var(--red); font-style: italic; font-weight: 600; }
p { margin: 0; }
.kicker {
  font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 700;
  letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin-bottom: .75rem;
}
.section--navy .kicker, .stamp--red .kicker, .stamp--navy .kicker { color: var(--pink); }
.lead { font-size: var(--fs-lead); line-height: 1.6; max-width: 640px; }
.small { font-size: var(--fs-small); }
.muted { color: var(--muted); }
.ph { /* plassholder – erstattes før publisering */ background: var(--sand); color: var(--placeholder); padding: 0 .25em; border-radius: 3px; }

/* 5 · Komponenter -------------------------------------------------------- */

/* Reklamebånd */
.adstrip {
  background: var(--navy); color: var(--cream); font-size: var(--fs-small); font-weight: 500;
  padding: .6rem 24px; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; justify-content: center; text-align: center;
}

/* Header */
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; }
.logo { display: inline-flex; align-items: baseline; gap: .6rem; text-decoration: none; color: var(--navy); }
.logo__name { font-family: var(--font-serif); font-weight: 800; font-size: 2rem; letter-spacing: -.01em; }
.logo__tld { font-size: .8125rem; font-weight: 700; color: var(--red); letter-spacing: .15em; text-transform: uppercase; }
.logo:hover { color: var(--navy); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.nav a { display: inline-block; padding: .6rem .25rem; color: var(--navy); font-weight: 500; text-decoration-thickness: 2px; text-decoration-color: transparent; transition: text-decoration-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { text-decoration-color: var(--red); }
.nav-toggle {
  display: none; width: 48px; height: 48px; align-items: center; justify-content: center;
  border: 2px solid var(--navy); border-radius: var(--radius-btn); background: var(--cream); color: var(--navy); cursor: pointer;
}
@media (max-width: 760px) {
  .js .nav-toggle { display: inline-flex; }
  .js .nav { flex-basis: 100%; display: grid; visibility: hidden; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
  .js .nav > ul { overflow: hidden; }
  .js .nav.is-open { grid-template-rows: 1fr; visibility: visible; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li + li { border-top: 1px dashed var(--line); }
  .nav a { display: block; padding: .9rem 0; font-size: 1.125rem; font-weight: 700; }
}

/* Strikkebord */
.knit {
  height: 24px;
  background-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M12 3L20 12L12 21L4 12Z' fill='%23FBF4E8'/%3E%3Cpath d='M12 9L15 12L12 15L9 12Z' fill='%23B3262E'/%3E%3C/svg%3E");
  background-size: 24px 24px;
}
.knit--navy {
  background-color: var(--navy);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24'%3E%3Cpath d='M12 3L20 12L12 21L4 12Z' fill='%23FBF4E8'/%3E%3Cpath d='M12 9L15 12L12 15L9 12Z' fill='%231C2A44'/%3E%3C/svg%3E");
}
.knit--slim { height: 16px; background-size: 16px 16px; }

/* Brødsmuler */
.crumbs { font-size: var(--fs-small); margin-bottom: 1.25rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.crumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--muted); }

/* Hero */
.hero { padding-block: 1.75rem var(--space-5); }
.hero__inner { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.hero__text { flex: 1 1 540px; min-width: 0; }
.hero__text h1 { margin-bottom: 1.25rem; }
.hero__art { flex: 0 1 260px; margin-inline: auto; }
.hero__art--lg { flex-basis: 420px; }
.hero__actions { margin-top: 2rem; }
.brand-logo {
  --logo-padding: var(--space-2);
  position: relative; display: block; width: min(280px, 100%); aspect-ratio: 7 / 3;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.brand-logo img {
  position: absolute; inset: var(--logo-padding); object-fit: contain;
  width: calc(100% - 2 * var(--logo-padding)); height: calc(100% - 2 * var(--logo-padding));
}
.brand-logo--small { --logo-padding: 0.45rem; width: 104px; border-radius: var(--radius-inner); }
.brand-logo--dark { background: var(--navy); }

/* Knapper */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: 50px; padding: 0 1.4rem; border-radius: var(--radius-btn); border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; line-height: 1.2; text-align: center;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 4px 0 rgba(28, 42, 68, .25); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }
.btn--navy { background: var(--navy); color: var(--cream); }
.btn--navy:hover { color: var(--cream); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { color: var(--navy); background: var(--white); }
.btn--cream { background: var(--cream); color: var(--red); }
.btn--cream:hover { color: var(--red-dark); }
.btn--block { display: flex; width: 100%; }
.btn--lg { min-height: 56px; font-size: 1.125rem; padding-inline: 1.75rem; }
.link-btn { background: none; border: 0; padding: 0; min-height: 44px; color: var(--red); font-weight: 700; cursor: pointer; }

/* Frimerkekort (stamp) – grunnboksen */
.stamp { background: var(--cream); color: var(--navy); border-radius: var(--radius); padding: 6px; }
.stamp__inner {
  border: 2px dashed var(--red); border-radius: var(--radius-inner); padding: var(--space-3);
  height: 100%; display: flex; flex-direction: column; gap: .75rem;
}
.stamp--white { background: var(--white); }
.stamp--quiet .stamp__inner { border-color: var(--line); }
.stamp--good .stamp__inner { border-color: var(--green); }
.stamp--red { background: var(--red); color: var(--white); }
.stamp--red .stamp__inner { border-color: var(--pink); }
.stamp--red a:not(.btn) { color: var(--white); }
.stamp--red .disclosure { color: inherit; }
.stamp--navy { background: var(--navy); color: var(--cream); }
.stamp--navy .stamp__inner { border-color: var(--pink); }
.stamp--navy p { color: var(--navy-text); }
.stamp--lg .stamp__inner { padding: var(--space-4); }
.stamp h3 { font-size: 1.375rem; }
a.stamp { text-decoration: none; transition: transform .25s var(--ease); }
a.stamp:hover { transform: translateY(-4px) rotate(-.4deg); color: var(--navy); }
.stamp__more { font-weight: 700; color: var(--red); font-size: .9375rem; }

/* USP-rad */
.usp { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); border-block: 2px solid var(--navy); }
.usp li { padding: var(--space-4) var(--space-3); }
.usp li + li { border-left: 2px dashed var(--line); }
@media (max-width: 860px) { .usp li + li { border-left: 0; border-top: 2px dashed var(--line); } }
.usp h3 { font-size: 1.75rem; margin-bottom: .5rem; }

/* Casino – rad (lister) */
.casino-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.casino-row { background: var(--white); border-radius: var(--radius); padding: 6px; }
.casino-row__inner {
  border: 2px dashed var(--line); border-radius: var(--radius-inner); padding: 1.1rem 1.4rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; transition: border-color .2s;
}
.casino-row:hover .casino-row__inner { border-color: var(--red); }
.casino-row:target { outline: 3px solid var(--red); outline-offset: 2px; }
.casino-row .brand-logo--small { flex: 0 1 104px; }
.casino-row__body { flex: 1 1 200px; min-width: 0; }
.casino-row__inner > .row { flex-wrap: nowrap; }
@media (max-width: 560px) { .casino-row__inner > .row { flex-wrap: wrap; width: 100%; } .casino-row__inner > .row .btn { flex: 1 1 0; } }
.casino-row__body h3 { font-size: 1.375rem; margin-bottom: .2rem; }
.casino-row__meta { font-size: var(--fs-small); color: var(--muted); }
.casino-row__meta p { margin: 0; overflow-wrap: anywhere; }
.casino-row__offer { flex: 0 1 180px; font-weight: 700; color: var(--red); font-size: 1.0625rem; }
.casino-row[hidden] { display: none; }
.rank { font-family: var(--font-serif); font-weight: 800; font-size: 2.25rem; color: var(--red); line-height: 1; min-width: 64px; }
.score { font-family: var(--font-serif); font-weight: 800; font-size: 1.375rem; white-space: nowrap; }
.score__caption { display: block; font: 600 var(--fs-small) var(--font-sans); }
.logo-ph {
  width: 140px; height: 60px; border-radius: var(--radius-inner); background: var(--sand);
  display: flex; align-items: center; justify-content: center; font-size: .8125rem; font-weight: 700; color: var(--placeholder); flex: none;
}
.logo-ph img { max-height: 44px; width: auto; }
.logo-ph--lg { width: 200px; height: 120px; }
.disclosure { font-size: .8125rem; margin-top: 1.1rem; }

/* Casino – kort (grid) */
.casino-card-grid { list-style: none; padding: 0; margin: 0; }
.casino-card-grid > li:only-child { max-width: 24rem; }
.casino-card-grid .casino-card { height: 100%; }
.casino-card .stamp__inner { gap: 1rem; }
.casino-card__top { display: flex; justify-content: space-between; align-items: center; }
.casino-card .rank { font-size: 2.75rem; min-width: 0; }
.casino-card .logo-ph, .casino-card .brand-logo { width: 100%; height: 64px; }
.casino-card__offer { font-size: 1.1875rem; font-weight: 700; color: var(--red); }
.casino-card__details { font-size: .9375rem; }
.casino-card__details a { display: inline-block; padding-block: .65rem; }
.casino-card ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: .35rem; font-size: .9375rem; }
.casino-card .btn { margin-top: auto; }

/* Filter-chips */
.filters { background: var(--white); border-radius: var(--radius); padding: 1.4rem 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.filters__group { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; border: 0; margin: 0; padding: 0; }
.filters__label { font-size: var(--fs-small); font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--red); width: 110px; padding: 0; }
.filters__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; border-top: 1px dashed var(--line); padding-top: .8rem; font-size: .9375rem; }
.chip {
  min-height: 44px; padding: 0 1rem; border-radius: 999px; border: 2px solid var(--navy);
  background: var(--cream); color: var(--navy); font-weight: 700; font-size: .9375rem; cursor: pointer;
  display: inline-flex; align-items: center; text-decoration: none; transition: background-color .15s, color .15s;
}
.chip:hover { background: var(--sand); color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--cream); }

/* Kalkulator */
.calc { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: stretch; }
.calc__form { flex: 1 1 400px; min-width: 0; }
.calc__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.field { display: flex; flex-direction: column; gap: .35rem; font-weight: 700; }
.field input {
  font: inherit; font-size: 1.375rem; font-weight: 700; padding: .7rem 1rem; min-height: 52px;
  border: 2px solid var(--navy); border-radius: var(--radius-btn); background: var(--white); color: var(--navy); width: 100%;
}
.calc__basis { margin-top: 1.1rem; border: 0; padding: 0; }
.calc__basis legend { font-weight: 700; margin-bottom: .5rem; padding: 0; }
.calc__result { flex: 1 1 320px; }
.calc__result .stamp__inner { justify-content: center; padding: var(--space-4); }
.calc__total { font-family: var(--font-serif); font-weight: 800; font-size: clamp(3rem, 2rem + 3vw, 4.75rem); line-height: 1; display: block; }

/* Elgens tips */
.tip { background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: var(--space-3); display: flex; gap: 1.1rem; align-items: flex-start; }
.tip__art { flex: none; width: 64px; }
.tip__title { font-family: var(--font-serif); font-weight: 800; font-size: 1.375rem; margin-bottom: .35rem; }
.tip p { color: var(--navy-text); font-size: 1rem; }

/* Faktaboks «Kort fortalt» */
.factbox { background: var(--sand); border-radius: var(--radius); padding: 1.4rem 1.5rem; }
.factbox .kicker { margin-bottom: .35rem; }

/* Fakta-liste (dl) */
.facts { margin: 0; }
.facts div { display: flex; justify-content: space-between; gap: .75rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: .9375rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; text-align: right; }
.stamp--navy .facts dt, .stamp--red .facts dt { color: inherit; opacity: .85; }
.stamp--navy .facts div { border-color: var(--navy-soft); }

/* Pluss / minus */
.pros-cons { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.pros-cons h2, .pros-cons h3 { font-size: 1.5rem; margin: 0; }
.pros-cons .stamp--good h2, .pros-cons .stamp--good h3 { color: var(--green); }
.pros-cons .stamp:not(.stamp--good) h2, .pros-cons .stamp:not(.stamp--good) h3 { color: var(--red); }
.pros-cons ul { margin: 0; padding-left: 1.25rem; display: flex; flex-direction: column; gap: .5rem; }

/* Poengstolper */
.score-bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .9rem; }
.score-bars li { display: grid; grid-template-columns: minmax(140px, 200px) minmax(0, 1fr) 64px; gap: 1rem; align-items: center; }
.score-bars__track { height: 14px; border-radius: 7px; background: var(--sand); border: 2px solid var(--line); overflow: hidden; }
.score-bars__fill { display: block; height: 100%; width: var(--value, 0%); background: var(--red); border-radius: 5px; transform-origin: left; }
.score-bars__val { font-family: var(--font-serif); font-weight: 800; text-align: right; }
@media (max-width: 560px) { .score-bars li { grid-template-columns: 1fr auto; } .score-bars__track { grid-column: 1 / -1; grid-row: 2; } }

/* Score-segl */
.seal {
  width: 148px; height: 148px; border-radius: 50%; background: var(--red); color: var(--white); flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 6px var(--red), inset 0 0 0 8px var(--pink);
}
.seal__num { font-family: var(--font-serif); font-weight: 800; font-size: 3rem; line-height: 1; }
.seal__label { font-size: var(--fs-small); font-weight: 700; }
.seal--sm { width: 84px; height: 84px; }
.seal--sm .seal__num { font-size: 1.75rem; }

/* 18+-merke */
.badge-18 {
  width: 72px; height: 72px; border-radius: 50%; border: 3px solid var(--navy); flex: none;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 800; font-size: 1.875rem;
}

/* Hjelpebånd */
.help-band { background: var(--sand); border-radius: var(--radius); padding: 1.75rem 2rem; display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; align-items: center; }
.help-band p { flex: 1 1 380px; }

/* Stor hjelpeboks (Ansvarlig spill) */
.help-hero { background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 3rem); display: flex; flex-wrap: wrap; gap: 1.5rem 3rem; align-items: center; }
.help-hero__text { flex: 1 1 420px; }
.help-hero__number { font-family: var(--font-serif); font-weight: 800; font-size: clamp(2.75rem, 1.5rem + 5vw, 5rem); line-height: 1; margin: .6rem 0; display: block; color: var(--cream); text-decoration: none; }
.help-hero p { color: var(--navy-text); font-size: 1.125rem; }
.help-hero__actions { flex: 0 1 280px; display: flex; flex-direction: column; gap: .75rem; }

/* Nummererte steg */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps > li { counter-increment: step; display: flex; gap: 1rem; padding: .9rem 0; border-bottom: 1px dashed var(--line); }
.steps > li::before { content: counter(step); font-family: var(--font-serif); font-weight: 800; font-size: 1.625rem; color: var(--red); width: 32px; flex: none; line-height: 1.2; }
.steps--row { display: flex; flex-wrap: wrap; gap: var(--space-4); border-top: 2px solid var(--navy); padding-top: var(--space-4); }
.steps--row > li { flex: 1 1 200px; flex-direction: column; border: 0; padding: 0; gap: .4rem; }
.steps--row > li::before { font-size: 3rem; line-height: 1; }
.steps strong { display: block; font-size: 1.1875rem; }

/* Tabeller */
.table-wrap { background: var(--white); border-radius: var(--radius); padding: .5rem; overflow-x: auto; }
.table { min-width: 620px; font-size: 1rem; }
.table caption { text-align: left; font-size: var(--fs-small); color: var(--muted); padding: .75rem 1rem; }
.table th, .table td { text-align: left; padding: .9rem 1rem; border-bottom: 1px dashed var(--line); vertical-align: top; }
.table thead th { font-size: .8125rem; letter-spacing: .12em; text-transform: uppercase; border-bottom: 2px solid var(--navy); }
.table tbody th { font-weight: 700; }
.table td.num { font-family: var(--font-serif); font-weight: 800; color: var(--red); text-align: right; font-size: 1.25rem; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: .75rem; }
.faq details { background: var(--white); border: 2px solid var(--sand); border-radius: var(--radius); padding: 0 1.4rem; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 60px; font-weight: 700; font-size: 1.125rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-serif); font-size: 1.75rem; color: var(--red); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__answer { padding-bottom: 1.1rem; }

/* Innholdsfortegnelse */
.toc { background: var(--white); border-radius: var(--radius); padding: var(--space-3); }
.toc h2 { font-size: 1.375rem; margin-bottom: .6rem; }
.toc ol { margin: 0; padding-left: 1.25rem; }
.toc a { display: inline-block; padding: .35rem 0; }

/* Forfatterlinje */
.author { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem; padding: 1rem 0; border-block: 2px solid var(--navy); font-size: .9375rem; }
.author__img { width: 48px; height: 48px; border-radius: 50%; background: var(--sand); flex: none; overflow: hidden; }

/* Ordliste */
.az { display: flex; flex-wrap: wrap; gap: .5rem; }
.az a, .az span { width: 44px; height: 44px; border-radius: var(--radius-btn); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.0625rem; }
.az a { background: var(--navy); color: var(--cream); text-decoration: none; transition: transform .15s; }
.az a:hover { transform: translateY(-2px); color: var(--cream); }
.az span { border: 2px dashed var(--line); color: #6B6352; }
.glossary { display: flex; flex-direction: column; gap: var(--space-4); }
.glossary__letter { display: flex; flex-wrap: wrap; gap: var(--space-4); border-top: 2px solid var(--navy); padding-top: .75rem; scroll-margin-top: 1rem; }
.glossary__letter > h2 { font-size: 4rem; color: var(--red); width: 80px; margin: 0; }
.glossary dl { margin: 0; flex: 1 1 480px; min-width: 0; }
.glossary dl > div { padding: 1.1rem 0; border-bottom: 1px dashed var(--line); scroll-margin-top: 1rem; }
.glossary dt { font-family: var(--font-serif); font-weight: 800; font-size: 1.5rem; }
.glossary dd { margin: .35rem 0 0; font-size: 1.0625rem; max-width: 760px; }

/* Sammenligning */
.versus { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.versus > .stamp { flex: 1 1 340px; min-width: 0; }
.versus__vs { margin-inline: auto; }
.winner-list div { display: flex; justify-content: space-between; gap: .75rem; padding: .9rem 0; border-bottom: 1px dashed var(--navy-soft); }
.winner-list dd { margin: 0; font-weight: 700; color: var(--pink); }

/* Team */
.person__img { aspect-ratio: 1; border-radius: var(--radius-inner); background: var(--sand); display: flex; align-items: center; justify-content: center; font-size: .8125rem; font-weight: 700; color: var(--placeholder); }
.person__role { font-size: var(--fs-small); font-weight: 700; color: var(--red); }

/* Sitat / ingress stor */
.statement { border-block: 2px solid var(--navy); padding-block: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5); }
.statement__big { flex: 1 1 520px; font-family: var(--font-serif); font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); line-height: 1.35; font-weight: 600; }
.statement__small { flex: 1 1 360px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--cream); padding-block: var(--space-5); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3); }
.site-footer__brand { flex: 1 1 320px; }
.site-footer__brand p { font-size: var(--fs-small); color: var(--navy-text); max-width: 420px; margin-top: .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.site-footer a { color: var(--cream); display: inline-block; padding: .5rem 0; }
.site-footer a:hover { color: var(--pink); }

/* Elg-illustrasjon */
.moose { width: 100%; height: auto; overflow: visible; }
.moose__head { transform-origin: 140px 250px; }
.moose__pompom { transform-origin: 140px 54px; }

/* Indholdsområde (lange tekster) ---------------------------------------- */
.content-area { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
@media (min-width: 1024px) {
  .content-area--toc { grid-template-columns: 260px minmax(0, 1fr); }
  .content-area--toc .content-toc { position: sticky; top: 1.5rem; align-self: start; }
}
.content-toc { background: var(--white); border-radius: var(--radius); padding: 1.25rem 1.4rem; font-size: .9375rem; }
.content-toc p { font-weight: 700; font-size: .8125rem; letter-spacing: .15em; text-transform: uppercase; color: var(--red); margin-bottom: .5rem; }
.content-toc ol { margin: 0; padding-left: 1.1rem; }
.content-toc a { display: inline-block; padding: .3rem 0; color: var(--navy); }
.content-toc a:hover { color: var(--red); }

/* Utvidet prosa: styling for alt redaktøren kan skrive */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.15em; }
.prose > h2 { margin-top: 2em; margin-bottom: 0; scroll-margin-top: 1.5rem; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin-top: 1.6em; font-size: 1.5rem; scroll-margin-top: 1.5rem; }
.prose > h3 + p, .prose > h2 + p { margin-top: .6em; }
.prose p, .prose li { font-size: 1.125rem; line-height: 1.75; }
.prose ul:not([class]) { list-style: none; padding: 0; }
.prose ul:not([class]) > li { position: relative; padding-left: 1.6rem; }
.prose ul:not([class]) > li + li { margin-top: .45rem; }
.prose ul:not([class]) > li::before { content: ""; position: absolute; left: .2rem; top: .7em; width: 8px; height: 8px; background: var(--red); transform: rotate(45deg); }
.prose ol:not([class]) { padding-left: 1.4rem; }
.prose ol:not([class]) > li::marker { font-family: var(--font-serif); font-weight: 800; color: var(--red); }
.prose ol:not([class]) > li + li { margin-top: .45rem; }
.prose strong { font-weight: 700; }
.prose hr { border: 0; height: 16px; width: 112px; margin: 2.5em auto; background-color: var(--red);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M8 2L14 8L8 14L2 8Z' fill='%23FBF4E8'/%3E%3C/svg%3E"); background-size: 16px 16px; border-radius: 2px; }
.prose .table-wrap, .prose .stamp, .prose .callout, .prose figure { margin-top: 1.8em; margin-bottom: .4em; }
.prose--wide { max-width: none; }

/* Bilder og plassholdere */
.media { margin: 0; }
.media img { width: 100%; height: auto; border-radius: var(--radius); aspect-ratio: var(--ratio, 16 / 9); object-fit: cover; background: var(--sand); }
.media figcaption { font-size: var(--fs-small); color: var(--muted); margin-top: .6rem; line-height: 1.5; }
.media figcaption::before { content: "◆ "; color: var(--red); font-size: .7em; vertical-align: .15em; }
.img-ph {
  aspect-ratio: var(--ratio, 16 / 9); width: 100%; border-radius: var(--radius); position: relative; overflow: hidden;
  border: 2px dashed var(--line); color: var(--placeholder);
  background-color: var(--sand);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cpath d='M16 6L24 16L16 26L8 16Z' fill='none' stroke='%23E4D1AE' stroke-width='2'/%3E%3C/svg%3E");
  background-size: 32px 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; text-align: center; padding: 1rem;
}
.img-ph svg { width: 44px; height: 44px; flex: none; }
.img-ph__label { font-weight: 700; font-size: .9375rem; max-width: 34ch; background: var(--cream); padding: .3rem .7rem; border-radius: var(--radius-btn); }
.img-ph__size { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; }
.media--wide { max-width: none; }
.media--portrait { --ratio: 4 / 5; }
.media--square { --ratio: 1 / 1; }
.media--card { --ratio: 3 / 2; }
.media--card .img-ph { border-radius: var(--radius-inner); gap: .25rem; }
.media--card .img-ph svg { width: 32px; height: 32px; }

/* Tekst + bilde side om side */
.media-split { display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-5); align-items: center; }
.media-split > .media { flex: 1 1 380px; min-width: 0; }
.media-split__text { flex: 1 1 420px; min-width: 0; }
.media-split__text > * + * { margin-top: 1rem; }
.media-split--reverse { flex-direction: row-reverse; }

/* Utheving */
.callout { border-radius: var(--radius); padding: 1.4rem 1.6rem; display: flex; gap: 1rem; align-items: flex-start; }
.callout__icon { flex: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-weight: 800; font-size: 1.125rem; }
.callout__title { font-weight: 700; font-size: 1.0625rem; margin-bottom: .2rem; }
.callout p { font-size: 1.0625rem; line-height: 1.65; }
.callout--info { background: var(--sand); }
.callout--info .callout__icon { background: var(--navy); color: var(--cream); }
.callout--warn { background: var(--white); border: 2px dashed var(--red); }
.callout--warn .callout__icon { background: var(--red); color: var(--white); }

/* Sitat */
.pullquote { margin: 0; padding: 1.75rem 0; border-block: 2px solid var(--navy); }
.pullquote p { font-family: var(--font-serif); font-weight: 600; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.35; }
.pullquote p::before { content: "«"; color: var(--red); }
.pullquote p::after { content: "»"; color: var(--red); }
.pullquote cite { display: block; margin-top: .75rem; font-style: normal; font-size: var(--fs-small); font-weight: 700; color: var(--muted); }

/* Kort oppsummert */
.takeaways .stamp__inner { padding: var(--space-4); }
.takeaways ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.takeaways li { position: relative; padding-left: 2rem; font-size: 1.0625rem; color: var(--cream); }
.takeaways li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--pink); color: var(--navy); font-weight: 800; font-size: .8rem; display: flex; align-items: center; justify-content: center; }

/* Kort med bilde øverst */
.card-media { margin: -.25rem -.25rem .25rem; }

/* 6 · Sidespesifikt ------------------------------------------------------- */
.hero--home h1 { font-size: clamp(2.875rem, 1.6rem + 4.6vw, 5.75rem); letter-spacing: -.03em; line-height: .98; }
.review-head { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: center; }
.review-head__text { flex: 1 1 380px; }
.review-head .brand-logo { width: min(200px, 100%); }
@media (max-width: 850px) {
  .review-head { gap: var(--space-2); }
  .review-head__text { flex-basis: 100%; order: -1; }
  .review-head .brand-logo { width: min(154px, 60%); }
  .review-head .review-seal { width: 92px; height: 92px; }
  .review-seal .seal__num { font-size: 1.75rem; }
  .review-seal .seal__label { font-size: .625rem; }
}
.verdict { background: var(--navy); color: var(--cream); border-radius: var(--radius); padding: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.verdict__art { width: 88px; flex: none; }
.verdict__text { flex: 1 1 360px; }
.verdict__text h2 { margin-bottom: .5rem; font-size: 1.875rem; }
.verdict__text p { color: var(--navy-text); }
.verdict__text p:last-child { margin-bottom: 0; }
.editorial-split .article-chapter + .article-chapter { margin-top: var(--space-5); }
.article-chapter > p + p { margin-top: 1em; }
.article-chapter .review-score-bars { margin-top: var(--space-3); }
.review-score-bars li { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; }
@media (max-width: 560px) {
  .review-score-bars li { grid-template-columns: 1fr auto; }
  .verdict__art { width: 56px; }
}
@media (min-width: 1024px) {
  .editorial-split > .split__aside { position: sticky; top: var(--space-3); max-height: calc(100vh - 2 * var(--space-3)); overflow-y: auto; }
}
.error-page { text-align: center; padding-block: var(--space-6); }
.error-page .hero__art { margin-bottom: var(--space-3); }
.error-page .row { justify-content: center; }

/* 7 · Animasjon ------------------------------------------------------------
   Prinsipp: rolig, kort, meningsfull. Alt slås av ved prefers-reduced-motion. */
@keyframes moose-sway { 0%, 100% { transform: rotate(-1.5deg); } 50% { transform: rotate(1.5deg); } }
@keyframes pompom-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes snow { from { transform: translateY(-6px); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(14px); opacity: 0; } }

.moose--animated .moose__head { animation: moose-sway 7s ease-in-out infinite; }
.moose--animated .moose__pompom { animation: pompom-bob 3.5s ease-in-out infinite; }
.moose--animated .moose__snow circle { animation: snow 6s linear infinite; }
.moose--animated .moose__snow circle:nth-child(2) { animation-delay: 1.5s; }
.moose--animated .moose__snow circle:nth-child(3) { animation-delay: 3s; }
.moose--animated .moose__snow circle:nth-child(4) { animation-delay: 4.5s; }

/* Innfading ved scroll – kun når JS kjører, så innholdet alltid er synlig uten JS */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.js .reveal-stagger.is-in > * { opacity: 1; transform: none; }
.js .reveal-stagger.is-in > *:nth-child(2) { transition-delay: .07s; }
.js .reveal-stagger.is-in > *:nth-child(3) { transition-delay: .14s; }
.js .reveal-stagger.is-in > *:nth-child(4) { transition-delay: .21s; }
.js .reveal-stagger.is-in > *:nth-child(5) { transition-delay: .28s; }
.js .reveal-stagger.is-in > *:nth-child(n+6) { transition-delay: .32s; }

.js .score-bars__fill { transform: scaleX(0); transition: transform .9s var(--ease); }
.js .score-bars.is-in .score-bars__fill { transform: scaleX(1); }

.calc__total.is-bump { animation: bump .35s var(--ease); }
@keyframes bump { 50% { transform: scale(1.04); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-stagger > * { opacity: 1; transform: none; }
  .js .score-bars__fill { transform: none; }
}

/* 8 · Utskrift ------------------------------------------------------------ */
@media print {
  .adstrip, .site-header nav, .nav-toggle, .knit, .site-footer, .btn { display: none !important; }
  body { background: #fff; }
}

/* Radio-chips (kalkulator) */
.chip:has(input:checked) { background: var(--navy); color: var(--cream); }
.chip:has(input:focus-visible) { outline: 3px solid var(--red); outline-offset: 3px; }

/* Punktliste med røde ruter */
.bullets { list-style: none; margin: 0; padding: 0; }
.bullets li { position: relative; padding: .75rem 0 .75rem 1.75rem; border-bottom: 1px dashed var(--line); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 1.25rem; width: 10px; height: 10px; background: var(--red); transform: rotate(45deg); }

/* Tekst + bilde inne i prosa (smalere kolonne) */
.prose .media-split { gap: var(--space-3) var(--space-4); }
.prose .media-split > .media { flex: 1 1 260px; }
.prose .media-split__text { flex: 1 1 300px; }
.prose .media-split__text p { font-size: 1.0625rem; }
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

.hero__text { min-width: 0; }
.hero h1, .prose h2, .prose h3 { overflow-wrap: anywhere; }
.hero.hero--compact { padding-block: clamp(1.25rem, 3vw, 2.5rem); }
.comparison-section { padding-top: clamp(0.75rem, 2vw, 1.5rem); }
@media (max-width: 560px) {
  .article-overview { padding-top: 0; }
  .article-overview .factbox { padding: var(--space-2) var(--space-3); }
}
.comparison-explainer { max-width: 72ch; }
.casino-list-note { margin-bottom: var(--space-2); }
.bonus-sources {
  margin-top: var(--space-3); padding: 0 var(--space-3);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.bonus-sources summary { align-content: center; min-height: 50px; font-weight: 700; cursor: pointer; }
.bonus-sources[open] { padding-bottom: var(--space-3); }
.status-tools { margin-top: clamp(1.25rem, 4vw, 2.5rem); }
.lookup { display: flex; align-items: end; gap: 0.75rem; flex-wrap: wrap; }
.lookup .field { flex: 1 1 220px; }
.status-filters { margin: 0 0 0.75rem; }
.status-filters summary { width: fit-content; padding-block: 0.55rem; font-weight: 700; cursor: pointer; }
.status-filters .row { margin-top: 0.5rem; }
.source-notes { margin-top: 1.75rem; }
.article-date { margin-bottom: 0.75rem; }
.card-grid { margin-top: 1rem; }
.definition { padding-block: 0.9rem; border-top: 1px dashed var(--line); }
.definition dt { font-weight: 700; }
.definition dd { margin-inline-start: 0; }
.calc__total { overflow-wrap: anywhere; }
.calc__basis .chip:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.calc__basis .chip:has(input:checked) { background: var(--navy); color: var(--white); }
.table-wrap:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}


.document-register dt { font-weight: 700; }
.document-register dd { margin: .25rem 0 1.25rem; }
.document-register code { overflow-wrap: anywhere; }

.directory-result:not(:empty) { padding: .75rem 1rem; background: var(--sand); border-radius: var(--radius); }
.directory-list summary { cursor: pointer; font-weight: 700; }
.directory-list ul { columns: 18ch; }
.directory-list li { break-inside: avoid; overflow-wrap: anywhere; }

.bonus-scenario { margin-block: 2rem; }
.bonus-scenario form { max-width: 34rem; margin: 0 0 1rem; }
.bonus-scenario [data-scenario-result] { margin-bottom: .75rem; }

.pair-picker { max-width: 40rem; margin: 0 0 1rem; }
.pair-picker select {
  font: inherit;
  padding: .65rem .75rem;
  min-height: 52px;
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius-btn);
  color: var(--navy);
}
.pair-feedback:not(:empty) { margin-bottom: .75rem; }
.comparison-facts { margin: 0; padding-inline-start: 1.25rem; }
.comparison-facts li + li { margin-top: .4rem; }
