/* Skjld Labs design: skrifter fra eget domene (SIL Open Font License 1.1, se /fonts/OFL-*.txt). */
@font-face { font-family: "Familjen Grotesk"; src: url("/fonts/FamiljenGrotesk-latin-wght.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("/fonts/Newsreader-latin-wght.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/JetBrainsMono-latin-500.woff2") format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  --ink: #162a2c;
  --muted: #526264;
  --paper: #f8f7f3;
  --card: #ffffff;
  --line: #d9d7cd;
  --green: #173235;
  --green-2: #173235;
  --cream: #f8f7f3;
  --focus: #c8371a;
  --bad: #a3123a;
  --ok: #17654e;
  --sans: "Familjen Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: Newsreader, Georgia, "Times New Roman", serif;
  --max: 68rem;
  --shadow: 0 1px 2px rgba(22,42,44,.06), 0 10px 28px rgba(22,42,44,.07);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}

body.has-banner { padding-top: 0; }

img { max-width: 100%; height: auto; }

a {
  color: var(--green);
  text-underline-offset: 0.16em;
}

a:hover { color: var(--green-2); }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--card);
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}

.skip:focus { transform: none; }

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

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  background: var(--green);
  color: var(--cream);
}

.header-inner,
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.wordmark img { display: block; border-radius: 6px; }

.byline,
.byline a,
.site-footer a { color: var(--cream); }

.byline { margin: 0; }

.banner {
  background: #e6e3d9;
  border-bottom: 1px solid var(--line);
}

.banner-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
  padding: 0.9rem 0;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.banner p { margin: 0; }

.banner-actions,
.hero-actions,
.actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 1rem/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
}

.btn-primary {
  background: var(--green);
  color: var(--cream);
}

.btn-primary:hover { background: var(--green-2); color: var(--cream); }

.btn-secondary,
.btn-light {
  background: var(--card);
  border-color: var(--line);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(239, 237, 230, 0.45);
  color: var(--cream);
}

.clock .btn-ghost:hover { color: white; }

.hero { padding: 2.5rem 0 1.5rem; }

.hero-grid {
  display: grid;
  gap: 1.5rem;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 0.8rem;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  text-wrap: balance;
}

h2 { margin: 0 0 0.8rem; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }

h3 { margin: 0 0 0.4rem; font-size: 1.25rem; }

.lead { font-size: 1.2rem; margin: 0 0 1.2rem; }

.mini {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.clock {
  background: var(--green);
  color: var(--cream);
  border-radius: 1.25rem;
  padding: 1.3rem 1.25rem 1.4rem;
  box-shadow: var(--shadow);
}

.clock .eyebrow { color: #ff9e8c; }

.clock h2 { color: var(--cream); margin-bottom: 0.2rem; }

.clock .when { margin: 0 0 1rem; color: #e6e3d9; }

.ticks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.tick {
  margin: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(239, 237, 230, 0.16);
  border-radius: 0.9rem;
  padding: 0.7rem 0.4rem 0.55rem;
  text-align: center;
}

.tick strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.tick span {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: #e6e3d9;
}

.hva-na p { margin: 0 0 0.8rem; }

.hva-na p:last-child { margin-bottom: 0; }

.band {
  padding: 0.2rem 0 2rem;
}

.note,
.disclaimer {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 6px solid var(--green);
  border-radius: 0.9rem;
  padding: 1rem 1.1rem;
}

.disclaimer p,
.note p { margin: 0; }

.section { padding: 0.5rem 0 2.2rem; }

.claims {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.claims li,
.panel,
.resultat,
.pamelding {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.1rem 1.05rem;
}

.claims p { margin: 0; }

.kilde {
  margin-top: 0.55rem !important;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel { margin-top: 1rem; }

.hint { color: var(--muted); margin-top: 0; }

fieldset {
  border: 0;
  margin: 0 0 1rem;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--line);
}

fieldset:last-of-type { border-bottom: 0; }

legend {
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.55rem;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  cursor: pointer;
}

.choice input { accent-color: var(--green); width: 1.05rem; height: 1.05rem; }

fieldset.is-missing { border-color: var(--bad); }

.form-error { color: var(--bad); font-weight: 600; }

.progress { color: var(--muted); font-size: 0.95rem; }

.q-label { font-weight: 600; margin-bottom: 0.2rem; }

#resultat-liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.8rem; }

#resultat-liste li {
  margin: 0;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

#resultat-liste li:last-child { border-bottom: 0; padding-bottom: 0; }

.steps { margin: 0.4rem 0 0; padding-left: 1.1rem; }

.field { display: grid; gap: 0.3rem; margin-bottom: 0.8rem; }

label { font-weight: 600; }

input[type="email"],
input[type="password"],
input[type="text"],
textarea {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid #ff9e8c;
  border-radius: 0.7rem;
  background: white;
  color: var(--ink);
  font: inherit;
}

textarea { min-height: 12rem; resize: vertical; }

.check-line {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  font-weight: 400;
  margin: 0.4rem 0 0.8rem;
}

.check-line input { margin-top: 0.35rem; accent-color: var(--green); width: 1.1rem; height: 1.1rem; flex: none; }

.fine { color: var(--muted); font-size: 0.92rem; }

.status { min-height: 1.4em; font-weight: 600; }

.status.is-ok { color: var(--ok); }

.status.is-bad { color: var(--bad); }

.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.cta-row { margin-top: 0.8rem; }

.clock-links { margin-top: 1rem; }

.site-footer {
  background: var(--green-2);
  color: var(--cream);
  margin-top: 1rem;
}

.footer-inner { min-height: 4.5rem; padding: 0.8rem 0; }

.footer-inner p { margin: 0; }

.prose { padding: 2rem 0 2.5rem; }

.prose h2 { margin-top: 1.6rem; }

.prose ul { padding-left: 1.2rem; }

.admin-main { padding: 2rem 0 3rem; }

table.stats {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  margin: 1rem 0;
}

table.stats th,
table.stats td {
  border: 1px solid var(--line);
  padding: 0.45rem 0.55rem;
  text-align: left;
}

table.stats th { background: #efede6; }

.stack { max-width: 28rem; }

code {
  font-family: var(--mono);
  font-size: 0.92em;
}

.news-list { display: grid; gap: 0.8rem; }
.news-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.1rem 1.05rem;
}
.news-card .eyebrow { text-transform: none; letter-spacing: 0.01em; font-size: 0.85rem; }
.news-card h3 { margin-top: 0.2rem; }
.news-card h3 a { color: var(--ink); text-decoration-thickness: 1px; }
.news-card p { margin: 0.45rem 0 0; }

@media (min-width: 880px) {
  .news-list { grid-template-columns: 1fr 1fr 1fr; }
  .news-list .hint { grid-column: 1 / -1; }
  .hero-grid { grid-template-columns: 1.25fr 0.85fr; align-items: start; }
  .claims { grid-template-columns: 1fr 1fr; }
  .claims li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .banner-inner { align-items: center; }
}

@media (max-width: 879px) {
  .hero-copy { display: contents; }
  .hero-grid { display: flex; flex-direction: column; }
  .eyebrow { order: 1; }
  h1 { order: 2; }
  .clock { order: 3; }
  .hero-rest { order: 4; }
}

@media (max-width: 640px) {
  .footer-inner,
  .banner-inner { flex-direction: column; align-items: flex-start; }
  .banner-actions { width: 100%; }
  .banner-actions .btn { flex: 1; }
  .hero-actions .btn,
  .cta-row .btn,
  .actions .btn { width: 100%; }
  .choice { flex: 1 1 auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  .site-header, .banner, .site-footer, .no-print, .hero-actions, .actions, .cta-row { display: none !important; }
  body { background: white; }
  .clock, .claims li, .panel, .resultat { box-shadow: none; }
}


/* ======================================================================
   Skjld Labs design (v1, 2. des. 2026): felles temalag.
   Leses etter sidens egne regler (farger og skrifter er byttet over).
   Layout og verktøyets markup er uendret.
   ====================================================================== */

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { font-family: var(--sans); font-size: 1.0625rem; line-height: 1.7; background: #f8f7f3; color: #162a2c; -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; font-optical-sizing: auto; }
h1 { font-size: clamp(2.25rem, 1.4rem + 3.8vw, 3.75rem); line-height: 1.05; letter-spacing: -0.028em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.4rem); line-height: 1.12; }
h3 { font-size: 1.375rem; line-height: 1.2; letter-spacing: -0.015em; }
h4 { font-size: 1.125rem; line-height: 1.25; }
strong, b { font-weight: 600; }
a { color: #bb2c17; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: #8f2312; }
:focus-visible { outline: 3px solid #c8371a; outline-offset: 3px; border-radius: 2px; }
::selection { background: #ffd9cf; color: #0f2123; }
.skip { background: #162a2c; color: #f8f7f3; border-radius: 4px; font-weight: 700; }

/* Topp og bunn */
.site-header { background: #f8f7f3; color: #162a2c; border-bottom: 1px solid #d9d7cd; }
.site-header a, .site-header .wordmark, .wordmark, .site-header nav a, .site-header p { color: #162a2c; }
.site-header nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; align-items: center; }
.site-header nav a { font-size: 0.9375rem; }
.header-inner { padding: 0.9rem 0; }
.wordmark { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.01em; text-decoration: none; gap: 0.65rem; }
.wordmark svg { width: 26px; height: 31px; flex: none; }
.byline, .byline a { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #526264; text-decoration: none; }
.byline a:hover { color: #162a2c; text-decoration: underline; }
.site-footer { background: #efede6; color: #3c4e50; border-top: 1px solid #d9d7cd; margin-top: clamp(2.5rem, 6vw, 4.5rem); padding: 0.5rem 0 2rem; font-size: 0.9375rem; line-height: 1.65; }
.site-footer a { color: #162a2c; text-decoration: underline; text-underline-offset: 0.2em; }
.site-footer a:hover { color: #bb2c17; }
.site-footer p { margin: 0 0 0.4rem; max-width: 72ch; }
.site-footer .footer-inner { padding: 1.5rem 0 0.5rem; align-items: flex-start; }
.site-footer .wrap > .fine, .site-footer .fine { color: #3c4e50; font-size: 0.9375rem; line-height: 1.65; margin-top: 0.5rem; }

/* Samtykkelinje */
.banner { background: #fff; color: #3c4e50; border-bottom: 1px solid #d9d7cd; border-top: 0; box-shadow: none; }
.banner p { font-size: 0.9375rem; line-height: 1.55; max-width: 64ch; }
.banner a { color: #162a2c; }

/* Hovedinnhold: luft og smalere tekstkolonne */
.hero { padding-top: clamp(2.5rem, 6vw, 5rem); }
.lead { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.65; color: #3c4e50; }
.section { padding-block: clamp(2.5rem, 6vw, 4.25rem); }
main :where(p) { margin-top: 0; margin-bottom: 1.1em; }
main :where(.field, .choice, .actions, .facts, .news-card, .check-line, .checklist, .panel > .eyebrow, .cta, .epost-blokk) :where(p) { margin-bottom: 0.45em; }
main :where(p, li, dd):not(.fine, .hint) { max-width: 68ch; }
main p, main li, main dd { line-height: 1.7; }
main :is(ul, ol):not([class]) { padding-left: 1.35rem; }
main :is(ul, ol):not([class]) li + li { margin-top: 0.55em; }
.prose h2 { margin-top: 2.5rem; }
.prose p, .prose li { font-size: 1.0625rem; }
.eyebrow, .kicker { font-family: var(--mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: #bb2c17; }
.fine, .hint { line-height: 1.6; }

/* Flater */
.panel, .card, .news-card { background: #fff; border: 1px solid #d9d7cd; border-radius: 12px; box-shadow: none; }
.panel { padding: clamp(1.25rem, 4vw, 2rem); }
.facts li { background: #fff; border: 1px solid #d9d7cd; border-radius: 999px; font-size: 0.9375rem; line-height: 1.4; }
.note, .disclaimer { line-height: 1.65; }

/* Knapper */
.btn, button.btn, a.btn { font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: -0.005em; border-radius: 999px; min-height: 3rem; padding: 0.75rem 1.5rem; border: 1.5px solid transparent; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; cursor: pointer; }
.btn-primary { background: #c8371a; border-color: #c8371a; color: #fff; }
.btn-primary:hover { background: #bb2c17; border-color: #bb2c17; color: #fff; }
.btn-secondary { background: transparent; border-color: #162a2c; color: #162a2c; }
.btn-secondary:hover { background: #162a2c; color: #f8f7f3; }
.btn-ghost { background: transparent; border-color: transparent; color: #162a2c; text-decoration: underline; text-underline-offset: 0.2em; }
.btn-light { background: #ff9e8c; border-color: #ff9e8c; color: #0f2123; }
.btn-light:hover { background: #ffb3a4; border-color: #ffb3a4; color: #0f2123; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }

/* Skjemafelt */
label { font-weight: 600; }
.check-line, .choice, label.check-line { font-weight: 400; }
input[type="text"], input[type="email"], input[type="number"], input[type="date"], input[type="search"], input[type="tel"], input[type="url"], input:not([type]), select, textarea { font: 400 1rem/1.4 var(--sans); min-height: 3rem; padding: 0.7rem 0.9rem; border: 1px solid #6c7b7c; border-radius: 4px; background: #fff; color: #162a2c; max-width: 100%; }
textarea { min-height: 7rem; line-height: 1.55; }
input::placeholder, textarea::placeholder { color: #526264; opacity: 1; }
input[type="text"]:hover, input[type="email"]:hover, input[type="number"]:hover, select:hover, textarea:hover { border-color: #162a2c; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #c8371a; outline-offset: 0; border-color: #162a2c; }
input[type="checkbox"], input[type="radio"] { accent-color: #c8371a; }
.field > label, .field > .label { display: block; margin-bottom: 0.4rem; }
.status { font-weight: 600; }
.is-ok { color: #17654e; }
.is-bad { color: #a3123a; }
.form-error { color: #a3123a; }

/* Nyheter: kun tittel, kilde og dato */
.news-list { display: grid; gap: 1rem; }
.news-card { padding: 1.15rem 1.25rem 1.2rem; }
.news-card h3 { font-family: var(--serif); font-size: 1.1875rem; line-height: 1.3; margin: 0.25rem 0 0.55rem; }
.news-card h3 a { color: #162a2c; text-decoration-thickness: 1px; }
.news-card h3 a:hover { color: #bb2c17; }
.news-card .eyebrow { font-family: var(--sans); font-size: 0.875rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: #526264; margin: 0; }
.news-card .fine { margin: 0; color: #526264; font-size: 0.875rem; }
@media (min-width: 900px) { .news-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* E-postdel: egen, luftig blokk */
.epost-blokk { background: #fff; color: #162a2c; border: 1px solid #d9d7cd; border-radius: 12px; box-shadow: none; padding: clamp(1.5rem, 5vw, 2.75rem); margin-block: clamp(2rem, 5vw, 3.5rem); }
.epost-blokk h2, .epost-blokk h3 { color: #162a2c; margin: 0 0 0.75rem; }
.epost-blokk p { color: #3c4e50; max-width: 36em; }
.epost-blokk .fine { color: #526264; font-size: 0.9375rem; }
.epost-blokk a:not(.btn) { color: #bb2c17; }
.epost-blokk form { display: grid; gap: 1.1rem; max-width: 34rem; margin-top: 1.5rem; padding: 0; background: transparent; border: 0; }
.epost-blokk label { color: #162a2c; font-size: 1rem; }
.epost-blokk .check-line { display: flex; gap: 0.85rem; align-items: flex-start; font-size: 1rem; line-height: 1.55; color: #162a2c; font-weight: 400; }
.epost-blokk .check-line span { color: #162a2c; }
.epost-blokk input[type="checkbox"] { width: 1.35rem; height: 1.35rem; flex: none; margin: 0.15rem 0 0; }
.epost-blokk input[type="email"], .epost-blokk input[type="text"] { min-height: 3.5rem; font-size: 1.0625rem; width: 100%; }
.epost-blokk button[type="submit"], .epost-blokk form .btn { background: #c8371a; border-color: #c8371a; color: #fff; justify-self: start; min-height: 3.25rem; }
.epost-blokk button[type="submit"]:hover { background: #bb2c17; border-color: #bb2c17; }
.epost-blokk .actions, .epost-blokk .cta-row { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid #d9d7cd; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.epost-blokk a.btn { background: transparent; color: #162a2c; border: 1.5px solid #162a2c; }
.epost-blokk a.btn:hover { background: #162a2c; color: #f8f7f3; }
.epost-blokk .status { min-height: 1.5em; margin: 0; font-size: 1rem; max-width: none; }
@media (max-width: 719px) { .epost-blokk button[type="submit"], .epost-blokk form .btn, .epost-blokk a.btn { width: 100%; justify-self: stretch; } }

@media print { .site-header, .site-footer { background: #fff; } }

/* Effektsjekken: sidetillegg (design via Claude, 3.12.2026) */
/* ======================================================================
   Effektsjekken: tillegg til felles Skjld Labs-design (design.css).
   Bruker eksisterende variabler; lastes etter design.css.
   ====================================================================== */

/* Ingen horisontal scroll på smale skjermer */
main, .wrap, .hero-grid > *, .panel, .resultat, .quotes > * { min-width: 0; }
.kilde a, .quote figcaption a, .status-card a, .answer-note { overflow-wrap: anywhere; }

/* Kort svar under lead: nøktern presisering med aksentkant */
.answer-note {
  margin: 0 0 1.4rem;
  padding: 0.15rem 0 0.15rem 0.95rem;
  border-left: 3px solid var(--focus);
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.6;
}
.answer-note strong { font-weight: 600; }

/* Statuskort (mørk .clock-boks) */
.status-card { color: var(--cream); }
.status-card .when { color: #e6e3d9; }
.status-card .stat {
  margin: 0 0 1.1rem;
  padding: 0.9rem 1rem 0.85rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(239, 237, 230, 0.16);
  border-radius: 0.9rem;
}
.status-card .stat strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 2rem + 3vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--cream);
}
.status-card .stat span {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.95rem;
  line-height: 1.45;
  color: #e6e3d9;
}
/* Lenker/knapper i mørk boks: lys tekst (felleslaget gjør dem ellers mørke) */
.status-card a:not(.btn) { color: #ffb3a4; }
.status-card .btn-ghost {
  color: var(--cream);
  border-color: rgba(239, 237, 230, 0.45);
  text-decoration: none;
  padding-inline: 1.1rem;
  text-align: center;
}
.status-card .btn-ghost:hover { color: #fff; border-color: var(--cream); background: rgba(255, 255, 255, 0.08); }
.status-card :focus-visible { outline-color: #ff9e8c; }

/* Fremdrift og skår underveis */
.score-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.25rem 1.25rem;
  margin: 0 0 1.5rem;
  padding: 0.7rem 0;
  border-block: 1px solid var(--line);
}
.score-bar p { margin: 0; max-width: none; }
.score-now {
  font-family: var(--mono);
  font-size: 0.9rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* Spørsmål */
fieldset { min-width: 0; }
fieldset legend { line-height: 1.45; max-width: 68ch; }
.q-nr {
  display: inline-block;
  min-width: 1.9em;
  margin-right: 0.15rem;
  font-family: var(--mono);
  font-size: 0.9em;
  font-weight: 500;
  color: var(--focus);
  font-variant-numeric: tabular-nums;
}
fieldset .hint { margin: -0.25rem 0 0.75rem; font-size: 0.95rem; }

fieldset.is-missing {
  border-left: 3px solid var(--bad);
  padding-left: 0.85rem;
  border-bottom-color: var(--line);
}
fieldset.is-missing legend { color: var(--bad); }
fieldset.is-missing .choice { border-color: var(--bad); }

/* Måler 0–20 */
.meter {
  height: 0.75rem;
  margin: 0.4rem 0 0.9rem;
  background: #efede6;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.meter-fill {
  display: block;
  height: 100%;
  width: 0;
  background: var(--green);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.meter-fill.s-0 { width: 0%; }
.meter-fill.s-1 { width: 5%; }
.meter-fill.s-2 { width: 10%; }
.meter-fill.s-3 { width: 15%; }
.meter-fill.s-4 { width: 20%; }
.meter-fill.s-5 { width: 25%; }
.meter-fill.s-6 { width: 30%; }
.meter-fill.s-7 { width: 35%; }
.meter-fill.s-8 { width: 40%; }
.meter-fill.s-9 { width: 45%; }
.meter-fill.s-10 { width: 50%; }
.meter-fill.s-11 { width: 55%; }
.meter-fill.s-12 { width: 60%; }
.meter-fill.s-13 { width: 65%; }
.meter-fill.s-14 { width: 70%; }
.meter-fill.s-15 { width: 75%; }
.meter-fill.s-16 { width: 80%; }
.meter-fill.s-17 { width: 85%; }
.meter-fill.s-18 { width: 90%; }
.meter-fill.s-19 { width: 95%; }
.meter-fill.s-20 { width: 100%; }

/* Skårbånd: nøytral etikett, ikke stempel */
.band-label {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.3rem 0.85rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}
.band-label:empty { display: none; }

/* Resultatflate */
.resultat { margin-top: 1.25rem; padding: clamp(1.25rem, 4vw, 2rem); border-radius: 12px; }
.resultat h3 { margin-top: 1.5rem; }

/* Huskeliste som kort */
#resultat-liste.huskeliste {
  list-style: none;
  counter-reset: husk;
  margin: 0.75rem 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}
#resultat-liste.huskeliste li {
  counter-increment: husk;
  position: relative;
  margin: 0;
  padding: 0.95rem 1.1rem 1rem 3rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: none;
}
#resultat-liste.huskeliste li::before {
  content: counter(husk);
  position: absolute;
  left: 1rem;
  top: 0.95rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--focus);
}
.huskeliste li p { margin: 0; }
.huskeliste li .kilde { margin-top: 0.5rem !important; }

/* Sitater */
.quotes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}
.quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 1.15rem 1.25rem 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--focus);
  border-radius: 12px;
}
.quote blockquote { margin: 0 0 0.9rem; flex: 1; }
.quote blockquote p {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.45;
  color: var(--ink);
}
.quote figcaption { font-size: 0.92rem; line-height: 1.55; color: var(--muted); }
.quote figcaption strong { color: var(--ink); font-weight: 600; }
.quote figcaption a { white-space: normal; }
@media (min-width: 720px) { .quotes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

@media (max-width: 640px) {
  .score-bar { flex-direction: column; gap: 0.15rem; }
  #resultat-liste.huskeliste li { padding-left: 2.6rem; }
  #resultat-liste.huskeliste li::before { left: 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  .meter-fill { transition: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .banner, .site-header nav, #sjekk-skjema .actions, #resultat .actions,
  #kopier-status, #pamelding, #sitater, .hero-actions, .skip { display: none !important; }
  body { font-size: 11pt; color: #000; }
  .panel, .resultat, .quote, #resultat-liste.huskeliste li { box-shadow: none; }
  #resultat { border: 1px solid #999; break-before: auto; }
  #resultat .field { display: none; }
  #resultat-liste.huskeliste li { background: #fff; break-inside: avoid; }
  .meter, .meter-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .meter-fill { transition: none; }
  .band-label { background: #fff; border-color: #999; }
  .kilde a::after { content: " (" attr(href) ")"; font-size: 8pt; overflow-wrap: anywhere; }
}

/* Svaret først på mobil: ingress og forbehold før statusboksen (kisjekk viser nedtellingen først). */
@media (max-width: 879px) {
  .hero-rest { order: 3; }
  .status-card { order: 4; }
}
