/* hjelp.online staging – Kompani Eilertsen, Arendal
   Mobile-first, accessible, no build step. */

/* DESIGN v1 (Bønna, 23.11.2026): self-hosted fonts, no external CDN.
   Atkinson Hyperlegible (Braille Institute) and Fraunces, both SIL Open Font License 1.1.
   See /assets/fonts/LICENSE.md. */
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("/assets/fonts/atkinson-hyperlegible-bolditalic.woff2") format("woff2"); font-weight: 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-soft-600.woff2") format("woff2"); font-weight: 500 800; font-style: normal; font-display: swap; }

:root {
  --sand: #FAF4EA;
  --sand-2: #F1E6D4;
  --paper: #FFFDF8;
  --ink: #1F1A15;
  --ink-soft: #3F362E;
  --ink-faint: #4F453B;
  --pine: #1D4A40;
  --pine-deep: #13332C;
  --moss: #1F5A4C;
  --terra: #8A3420;
  --terra-hover: #73291A;
  --gold: #C4A35A;
  --gold-soft: #F3E6C4;
  --line: #DCCDB6;
  --ok: #1B5E40;
  --ok-bg: #E4F3EB;
  --warn: #7A4B10;
  --warn-bg: #F8EDD6;
  --danger: #8E3320;
  --focus: #1F1A15;
  --shadow: 0 10px 30px rgba(26, 22, 18, 0.08);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: auto;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Atkinson Hyperlegible", "Segoe UI", "Calibri", system-ui, sans-serif;
  --space: 1.25rem;
  --narrow: 42rem;
  --wide: 72rem;
  --max: 80rem;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  min-height: 100vh;
}

[hidden] { display: none !important; }

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--moss);
  text-underline-offset: 0.18em;
}

a:hover { color: var(--pine); }

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

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 1000;
  background: var(--pine-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
}

.skip-link:focus { top: 0; color: #fff; }

/* Staging banner – this is a test site, not a product "demo mode" */
.staging-banner {
  background: var(--gold-soft);
  color: var(--ink);
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 1rem;
  border-bottom: 1px solid #e0cc8f;
}

.staging-banner strong { font-weight: 700; }

/* Emergency bar */
.emergency-bar {
  background: var(--pine-deep);
  color: #fff;
  padding: 0.65rem 1rem;
}

.emergency-bar__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}

.emergency-bar__label {
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #E8C872;
  margin: 0;
}

.emergency-bar__numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.emergency-bar a {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 5.8rem;
  min-height: 44px;
  padding: 0.3rem 0.75rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.emergency-bar a:hover,
.emergency-bar a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  outline-color: var(--gold);
}

.emergency-bar a strong {
  font-size: 1.15rem;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.emergency-bar a span {
  font-size: 1rem;
  color: #d9d2c6;
  font-weight: 400;
}

/* Header */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.7rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--pine);
  min-height: 44px;
}

.logo svg {
  width: 40px;
  height: 40px;
  color: var(--pine);
  flex-shrink: 0;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--pine);
}

.logo__name span {
  color: var(--ink-faint);
  font-weight: 500;
  font-size: 0.95em;
}

.logo__tag {
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle[aria-expanded="true"] { background: var(--sand-2); }

@media (min-width: 960px) {
  .nav-toggle { display: none; }
}

.site-nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0.5rem 1rem 1rem;
  box-shadow: var(--shadow);
}

.site-nav.is-open { display: block; }

@media (min-width: 960px) {
  .site-nav {
    display: block;
    position: static;
    border: 0;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }
}

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

@media (min-width: 960px) {
  .site-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
  }
}

.site-nav a {
  display: block;
  padding: 0.6rem 0.7rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--sand);
  color: var(--pine);
}

.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 960px) {
  .lang-switch {
    margin: 0 0 0 0.5rem;
    padding: 0 0 0 0.75rem;
    border-top: 0;
    border-left: 1px solid var(--line);
  }
}

.lang-switch button,
.lang-switch span[aria-disabled] {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.35rem 0.45rem;
  min-height: 36px;
  border-radius: 6px;
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--pine);
  color: #fff;
}

.lang-switch span[aria-disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.lang-coming {
  background: var(--warn-bg);
  color: var(--warn);
  padding: 0.75rem 1rem;
  text-align: center;
  font-size: 1rem;
}

/* Layout */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1rem;
}

.wrap--narrow { max-width: 46rem; }

main { display: block; }

.section {
  padding: 3rem 0;
}

.section--tight { padding: 2rem 0; }

.section--pine {
  background: var(--pine);
  color: #F4EFE6;
}

.section--pine a { color: #E8C872; }
.section--pine a:hover { color: #fff; }

.section--paper {
  background: var(--paper);
}

.kicker {
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--terra);
  margin: 0 0 0.5rem;
}

.section--pine .kicker { color: #E8C872; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--pine-deep);
}

.section--pine h1,
.section--pine h2,
.section--pine h3 { color: #fff; }

h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

.section--pine .lead { color: #e4ddd2; }

p { margin: 0 0 1rem; }

.muted { color: var(--ink-soft); }
.small { font-size: 1rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 48px;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--pine);
  color: #fff;
}

.btn:hover { background: var(--pine-deep); color: #fff; }

.btn--terra {
  background: var(--terra);
  color: #fff;
}

.btn--terra:hover { background: var(--terra-hover); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--pine);
  border-color: var(--pine);
}

.btn--ghost:hover {
  background: var(--pine);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--pine-deep);
  border-color: #fff;
}

.btn--light:hover { background: var(--gold-soft); color: var(--pine-deep); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1.25rem 0 0;
}

/* Hero */
.hero {
  padding: 2.5rem 0 3rem;
}

.hero__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.paths {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .paths { grid-template-columns: 1fr 1fr; }
}

.path-card,
.card,
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
  box-shadow: var(--shadow);
}

.path-card {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.path-card:hover {
  transform: translateY(-2px);
  border-color: var(--moss);
  color: inherit;
}

.path-card h2 { margin-bottom: 0.4rem; }

.grid-3,
.grid-2 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.price {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--pine);
  margin: 0.4rem 0 0.2rem;
  letter-spacing: -0.02em;
}

.price small {
  display: block;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  color: var(--ink-soft);
  letter-spacing: 0;
}

.price-card ul {
  margin: 0.75rem 0 0;
  padding: 0 0 0 1.1rem;
}

.price-card li { margin: 0.25rem 0; }

.badge {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: var(--sand-2);
  color: var(--pine);
}

.badge--ok { background: var(--ok-bg); color: var(--ok); }
.badge--closed { background: #f3e6e2; color: var(--terra); }
.badge--wait { background: var(--warn-bg); color: var(--warn); }
.badge--draft { background: var(--warn-bg); color: var(--warn); }

.notice {
  background: var(--paper);
  border-inline-start: 4px solid var(--moss);
  padding: 1rem 1.15rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1rem 0;
}

.notice--warn {
  border-inline-start-color: var(--gold);
  background: var(--warn-bg);
}

.notice--important {
  border-inline-start-color: var(--terra);
}

.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

th, td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  background: var(--pine);
  color: #fff;
  font-weight: 700;
}

/* Forms */
label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
input[type="number"],
select,
textarea {
  width: 100%;
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  margin-bottom: 1rem;
  min-height: 48px;
}

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

input:focus, select:focus, textarea:focus {
  border-color: var(--pine);
}

.field-hint {
  font-size: 1rem;
  color: var(--ink-faint);
  margin: -0.6rem 0 1rem;
}

.checkbox {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin: 0.75rem 0 1rem;
}

.checkbox input {
  width: 1.2rem;
  height: 1.2rem;
  margin: 0.2rem 0 0;
  flex-shrink: 0;
}

.checkbox label {
  font-weight: 400;
  margin: 0;
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem 0.4rem;
  margin: 0 0 1.25rem;
  background: var(--paper);
}

legend {
  font-weight: 700;
  padding: 0 0.4rem;
  color: var(--pine);
}

/* Org register */
.org-list {
  display: grid;
  gap: 1rem;
}

.org-card h3 { margin-bottom: 0.2rem; }

.org-meta {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: 0.6rem;
}

.org-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 0.25rem 0.75rem;
}

.org-card dt {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 1rem;
}

.org-card dd { margin: 0; }

.source {
  font-size: 1rem;
  color: var(--ink-faint);
  margin-top: 0.75rem;
}

/* Payment prototype */
.phone-frame {
  max-width: 22rem;
  margin: 1.25rem 0;
  background: var(--pine-deep);
  border-radius: 28px;
  padding: 1rem 0.85rem 1.4rem;
  color: #fff;
  box-shadow: var(--shadow);
}

.phone-frame__bar {
  text-align: center;
  font-size: 1rem;
  color: #cfc6b8;
  margin-bottom: 0.7rem;
}

.sms {
  background: #243830;
  border-radius: 16px 16px 16px 4px;
  padding: 0.9rem 1rem;
  font-size: 1rem;
  line-height: 1.5;
}

.sms a { color: #E8C872; }

.stepper {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.stepper li {
  counter-increment: step;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink-faint);
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: var(--sand-2);
}

.stepper li[aria-current="step"] {
  background: var(--pine);
  color: #fff;
}

.snippet {
  background: #122821;
  color: #F4EFE6;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 1rem;
  padding: 1rem;
  border-radius: 10px;
  overflow-x: auto;
  white-space: pre-wrap;
}

/* Footer */
.site-footer {
  background: var(--pine-deep);
  color: #e8e0d4;
  padding: 2.5rem 0 1.5rem;
  margin-top: 2rem;
}

.site-footer a { color: #E8C872; }
.site-footer a:hover { color: #fff; }

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

@media (min-width: 700px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

.site-footer h2 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li { margin: 0.3rem 0; }

.footer-legal {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,0.12);
  font-size: 1rem;
  color: #cfc6b8;
}

.not-nav {
  font-weight: 700;
}

/* Vitne / flow panels */
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  margin: 1rem 0;
}

.flow-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}

.filter-row button {
  min-height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--paper);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  color: var(--ink);
}

.filter-row button[aria-pressed="true"] {
  background: var(--pine);
  color: #fff;
  border-color: var(--pine);
}

/* Contact placeholder */
.kommer {
  font-style: italic;
  color: var(--ink-faint);
}

/* Visually hidden */
.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;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .path-card { transition: none; }
}

@media print {
  .staging-banner, .emergency-bar, .nav-toggle, .lang-switch, .site-nav, .btn { }
  body { background: #fff; }
}

/* --- Site looks: shared brand, distinct atmosphere --- */
body[data-site="firma"] {
  --header-accent: #C4A35A;
}

body[data-site="firma"] .site-header {
  border-bottom: 3px solid var(--pine);
}

body[data-site="firma"] .logo__name {
  font-size: 1.15rem;
}

body[data-site="nav"] {
  --sand: #F7F0E4;
  --paper: #FFFDF8;
}

body[data-site="nav"] .site-header {
  border-bottom: 3px solid var(--terra);
}

body[data-site="nav"] .logo__name {
  font-size: 1.15rem;
}

body[data-site="hub"] .site-header {
  border-bottom: 1px solid var(--line);
}

.doors {
  display: grid;
  gap: 1.25rem;
}

/* three doors: stack until 1080px, then three columns */

.door {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 22rem;
  padding: 1.75rem 1.6rem 1.6rem;
  border-radius: 22px;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease;
}

.door:hover { transform: translateY(-3px); color: inherit; }

.door--firma {
  background: var(--pine);
  color: #F4EFE6;
  border-color: var(--pine-deep);
}

.door--firma h2, .door--firma .kicker { color: #fff; }
.door--firma .kicker { color: #E8C872; }
.door--firma p { color: #e4ddd2; }
.door--firma .btn { background: #fff; color: var(--pine-deep); }
.door--firma .btn:hover { background: var(--gold-soft); color: var(--pine-deep); }

.door--nav {
  background: var(--paper);
  border-color: #e2c8be;
}

.door--nav .btn { align-self: flex-start; }

.door .btn { margin-top: 1.25rem; align-self: flex-start; }

.footer-family {
  margin-top: 1rem;
  font-size: 1rem;
}

.open-q {
  background: var(--warn-bg);
  border: 1px dashed #c4a35a;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin: 1rem 0;
}

.price-card--featured {
  border-color: var(--pine);
  box-shadow: 0 0 0 2px var(--pine);
}

.hub-note {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

body[data-site="arsregnskap"] .site-header {
  border-bottom: 3px solid #8A6A2F;
}

body[data-site="arsregnskap"] .logo__name {
  font-size: clamp(0.92rem, 3.4vw, 1.1rem);
}

@media (min-width: 1080px) {
  .doors { grid-template-columns: 1fr 1fr 1fr; }
}

.door--arsregnskap {
  background: #2A241C;
  color: #F4EFE6;
  border-color: #2A241C;
}

.door--arsregnskap h2 { color: #fff; }
.door--arsregnskap .kicker { color: #E8C872; }
.door--arsregnskap p { color: #e4ddd2; }
.door--arsregnskap .btn { background: #fff; color: #2A241C; }
.door--arsregnskap .btn:hover { background: var(--gold-soft); color: #2A241C; }

.pris-kommer {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--pine);
  margin: 0.3rem 0 0.8rem;
}

/* Hub service tiles */
.service-tiles {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 520px) {
  .service-tiles { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .service-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1200px) {
  .service-tiles { grid-template-columns: repeat(4, 1fr); }
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  min-height: 11rem;
}
.tile:hover { border-color: var(--moss); color: inherit; transform: translateY(-2px); }
.tile svg { width: 36px; height: 36px; color: var(--pine); }
.tile h2 { font-size: 1.2rem; margin: 0.15rem 0 0; }
.tile p { margin: 0; color: var(--ink-soft); font-size: 1rem; }
.tile .host { font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700; color: var(--terra); }

.rules-strip {
  display: grid;
  gap: 1rem;
}
@media (min-width: 800px) {
  .rules-strip { grid-template-columns: 1fr 1fr 1fr; }
}

.ad-label {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--warn-bg);
  color: var(--warn);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  margin-inline-start: 0.35rem;
  vertical-align: middle;
}

.eksempeldata {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #eee6da;
  color: #5a4a32;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.75rem;
  margin: 0 0 1.5rem;
  font-size: 1rem;
}

body[data-site="turist"] .site-header { border-bottom: 3px solid #3A5F73; }
body[data-site="vei"] .site-header { border-bottom: 3px solid #4A3F32; }
body[data-site="bolig"] .site-header,
body[data-site="helse"] .site-header,
body[data-site="gjeld"] .site-header,
body[data-site="jobb"] .site-header,
body[data-site="senior"] .site-header,
body[data-site="ny"] .site-header,
body[data-site="familie"] .site-header,
body[data-site="skatt"] .site-header {
  border-bottom: 3px solid var(--moss);
}

body[data-site="turist"] .logo__name,
body[data-site="arsregnskap"] .logo__name,
body[data-site="familie"] .logo__name {
  font-size: clamp(0.9rem, 3.2vw, 1.1rem);
}

.footer-family {
  line-height: 1.8;
}

.gift-row, .like-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.tip-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  margin: 0.6rem 0;
}

.photo-preview {
  max-width: 16rem;
  margin: 0.5rem 0 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
}

.local-note {
  font-size: 1rem;
  color: var(--ink-faint);
}

/* Generated service tiles and quick-exit */
/* DESIGN: emoji icons removed from the front page (no emojis). */
.exit-quick-wrap { margin: 0; }
.exit-quick {
  position: fixed;
  top: 0.6rem;
  inset-inline-end: 0.6rem;
  inset-inline-start: auto;
  z-index: 10000;
  background: #1A1612;
  color: #FFFCF7;
  border: 2px solid #FFFCF7;
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}
.exit-quick:hover,
.exit-quick:focus-visible {
  background: #8E3320;
  outline: 3px solid #C4A35A;
  outline-offset: 2px;
}

/* (synced from staging 16:46, Lars: payment methods) */
.pay-methods { margin: 1.5rem 0 1.25rem; }
.pay-methods .pay-primary { width: 100%; min-height: 3rem; font-size: 1.1rem; }
.pay-alt { display: grid; grid-template-columns: 1fr; gap: 0.75rem; margin: 0.75rem 0; }
@media (min-width: 640px) { .pay-alt { grid-template-columns: 1fr 1fr; } }
.pay-alt .btn { width: 100%; min-height: 2.75rem; }
.pay-alt .btn { min-height: 52px; }

/* (synced from staging 16:58, Lars: language flags + RTL) */
/* Language switcher flags */
.lang-switch button .flag,
.lang-switch button .lang-code { margin-inline-end: 0.2rem; }
.lang-body-note { margin: 0.75rem auto 0; max-width: var(--wide, 72rem); }

/* RTL for Arabic and Dari */
html[dir="rtl"],
body[dir="rtl"] { direction: rtl; }
html[dir="rtl"] .site-header__inner,
html[dir="rtl"] .emergency-bar__inner { direction: rtl; }
html[dir="rtl"] .footer-grid,
html[dir="rtl"] .service-tiles,
html[dir="rtl"] .rules-strip { direction: rtl; }
html[dir="rtl"] .exit-quick { right: auto; left: 0.6rem; inset-inline-end: 0.6rem; inset-inline-start: auto; }
@media (min-width: 960px) {
  html[dir="rtl"] .lang-switch {
    margin: 0 0.5rem 0 0;
    padding: 0 0.75rem 0 0;
    border-left: 0;
    border-right: 1px solid var(--line);
  }
}

/* =====================================================================
   DESIGN LAYER v1 – hjelp.online (Bønna + Stian Genius, 23.11.2026)
   Warm, calm, high contrast, mobile first. Everything below overrides
   the staging styles above; class names and markup are unchanged
   except where DESIGN-NOTES.md says otherwise.
   ===================================================================== */

/* Palette: Stian Genius' brand.css (--ho-*) is loaded before this file on every page.
   The staging token names are pointed at it, so all older components follow. */
:root {
  --sand: var(--ho-sand, #F6F1E9);
  --sand-2: #EFE6D7;
  --paper: var(--ho-paper, #FFFCF7);
  --ink: var(--ho-ink, #1F1B16);
  --ink-soft: var(--ho-ink-soft, #4A433A);
  --ink-faint: #4F453B;               /* darker than --ho-ink-muted (5.3:1) so all small text is AAA */
  --pine: var(--ho-primary, #1F4A3F);
  --pine-deep: var(--ho-primary-deep, #143329);
  --moss: var(--ho-primary, #1F4A3F); /* links */
  --line: #DCCFBB;
  --focus: var(--ho-focus, #1F4A3F);
  --font-serif: var(--ho-font-display);
  --font-sans: var(--ho-font-text);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(31, 26, 21, 0.06), 0 8px 24px rgba(31, 26, 21, 0.07);
  --shadow-lift: 0 2px 4px rgba(31, 26, 21, 0.08), 0 14px 32px rgba(31, 26, 21, 0.12);
  --red: var(--ho-emergency-hover, #912018);  /* emergency bar background: white text 8.7:1 (AAA) */
  --red-ink: var(--ho-emergency, #B42318);    /* 112/113/110 numbers on white: 6.6:1, 26-28px bold = AAA large */
  --red-soft: #FDECEA;
  --staging-bg: #F6E7C1;
  --emergency-h: 7rem;     /* replaced at runtime by layout.js with the real bar height */
  --tap: 48px;
}

/* ---------- Base type: body 18px on phones, 19px from tablet ---------- */
body {
  font-size: 1.125rem;
  line-height: 1.6;
  background: var(--sand);
  padding-bottom: var(--emergency-h);
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) {
  body { font-size: 1.1875rem; }
}

h1, h2, h3, h4 { font-weight: 650; letter-spacing: -0.01em; color: var(--pine-deep); text-wrap: balance; }
h1 { font-size: clamp(2.125rem, 6.2vw, 3.5rem); line-height: 1.12; }
h2 { font-size: clamp(1.625rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.3125rem, 2.6vw, 1.5rem); }
p, li { max-width: 70ch; }
.lead { font-size: clamp(1.25rem, 2.4vw, 1.4375rem); color: var(--ink-soft); line-height: 1.55; }
.kicker { font-size: 1rem; letter-spacing: 0.06em; color: var(--terra); }
.muted, .small { font-size: 1.0625rem; }

ul, ol { padding-left: 0; padding-right: 0; padding-inline-start: 1.4em; }
li { margin: 0.35rem 0; }
li::marker { color: var(--moss); }

a { color: var(--moss); text-decoration-thickness: 0.08em; text-underline-offset: 0.2em; }
a:hover { color: var(--pine-deep); text-decoration-thickness: 0.14em; }

/* Phone links are tap targets */
a[href^="tel:"] {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 0.15rem;
}

/* ---------- Focus: thick, dark, offset ring everywhere; white on dark ---------- */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.emergency-bar :focus-visible,
.site-footer :focus-visible,
.section--pine :focus-visible,
.door--firma :focus-visible,
.door--arsregnskap :focus-visible,
.exit-quick:focus-visible {
  outline-color: #FFFFFF;
}
.skip-link { font-size: 1.125rem; padding: 0.85rem 1.2rem; }
.skip-link:focus { top: 0.5rem; }

/* ---------- Staging banner (test site marker, stays until launch) ---------- */
.staging-banner {
  background: var(--staging-bg);
  font-size: 1rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #E2C98A;
}

/* ---------- Emergency bar: fixed to the bottom on every page and size ---------- */
.emergency-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  background: var(--red);
  color: #FFFFFF;
  padding: 0.5rem 0.75rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 20px rgba(31, 26, 21, 0.22);
  border-top: 3px solid #FFFFFF;
}
.emergency-bar__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  max-width: var(--max);
  margin: 0 auto;
}
.emergency-bar__label {
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: none;
  text-align: center;
}
.emergency-bar__numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}
.emergency-bar__numbers li { margin: 0; max-width: none; }
.emergency-bar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  min-width: 0;
  min-height: 60px;
  padding: 0.3rem 0.35rem;
  border-radius: 12px;
  background: #FFFFFF;
  color: var(--red-ink);
  border: 0;
  text-decoration: none;
  line-height: 1.15;
}
.emergency-bar a:hover { background: var(--red-soft); color: var(--red-ink); }
.emergency-bar a:focus-visible {
  background: #FFFFFF;
  color: var(--red-ink);
  outline: 4px solid #FFFFFF;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px var(--red);
}
.emergency-bar a strong {
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.05;
  color: var(--red-ink);
}
.emergency-bar a span {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
@media (min-width: 768px) {
  .emergency-bar { padding-top: 0.6rem; }
  .emergency-bar__inner {
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1rem;
  }
  .emergency-bar__label { font-size: 1.1875rem; text-align: start; }
  .emergency-bar__numbers { max-width: 46rem; justify-self: end; width: 100%; }
  .emergency-bar a { flex-direction: row; gap: 0.6rem; min-height: 56px; }
  .emergency-bar a strong { font-size: 1.75rem; }
  .emergency-bar a span { font-size: 1.0625rem; }
}

/* ---------- Header ---------- */
.site-header {
  position: relative;              /* not sticky: the red emergency bar is the one fixed element */
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header__inner { padding: 0.75rem 1rem; min-height: 72px; }
.logo { min-height: var(--tap); color: var(--pine); }
.logo svg { width: 44px; height: 44px; }
.logo__name { font-family: var(--ho-font-display); }
.logo__name { font-size: clamp(1.25rem, 4.4vw, 1.5rem); color: var(--pine-deep); letter-spacing: -0.01em; }
.logo__name span { color: var(--ink-soft); font-weight: 600; }
.logo__tag { font-size: 1rem; letter-spacing: 0.02em; text-transform: none; color: var(--ink-soft); }
body[data-site="turist"] .logo__name,
body[data-site="arsregnskap"] .logo__name,
body[data-site="familie"] .logo__name { font-size: clamp(1.0625rem, 4vw, 1.375rem); }
@media (max-width: 420px) {
  .logo__tag { display: none; }   /* the tagline returns from 421 px; the wordmark always shows */
}

.nav-toggle {
  width: auto;
  min-width: var(--tap);
  height: var(--tap);
  padding: 0 1rem;
  font: inherit;
  font-weight: 700;
  font-size: 1.0625rem;
  border: 2px solid var(--pine);
  border-radius: 999px;
  color: var(--pine-deep);
  background: var(--paper);
}
.nav-toggle[aria-expanded="true"] { background: var(--pine); color: #FFFFFF; }

.site-nav { z-index: 50; }
.site-nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.55rem 0.9rem;
  font-size: 1.0625rem;
  border-radius: 12px;
  color: var(--ink);
}
.site-nav a:hover { background: var(--sand-2); color: var(--pine-deep); }
.site-nav a[aria-current="page"] {
  background: var(--sand-2);
  color: var(--pine-deep);
  box-shadow: inset 0 -3px 0 var(--pine);
}

/* Language switch: real tap targets; "kommer" items readable, not faded */
.lang-switch { gap: 0.4rem; }
.lang-switch button,
.lang-switch span[aria-disabled] {
  min-height: var(--tap);
  padding: 0.5rem 0.85rem;
  font-size: 1rem;
  border-radius: 999px;
  border: 2px solid var(--line);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
}
.lang-switch button[aria-pressed="true"] { background: var(--pine); border-color: var(--pine); color: #FFFFFF; }
.lang-switch span[aria-disabled] {
  opacity: 1;
  color: var(--ink-soft);
  border-style: dashed;
  background: transparent;
}
@media (min-width: 960px) {
  .site-header__inner { align-items: flex-start; padding-top: 0.9rem; padding-bottom: 0.9rem; }
  .logo { flex: 0 0 auto; }
  .site-nav {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem 0;
  }
  .site-nav ul { gap: 0.25rem; justify-content: flex-end; }
  .lang-switch {               /* second row, right aligned, under the menu */
    flex-basis: 100%;
    justify-content: flex-end;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .lang-switch button,
  .lang-switch span[aria-disabled],
  .lang-switch__btn { min-height: var(--tap, 48px); padding: 0.5rem 0.85rem; }
  .lang-switch { gap: 0.25rem; }
}
.lang-coming { font-size: 1.0625rem; }

/* ---------- Sections & layout ---------- */
.wrap { padding: 0 1.125rem; }
@media (min-width: 768px) { .wrap { padding: 0 2rem; } }
.section { padding: 2.5rem 0; }
@media (min-width: 768px) { .section { padding: 3.5rem 0; } }
.hero { padding: 2.25rem 0 2.5rem; }
@media (min-width: 768px) { .hero { padding: 3.5rem 0 3.25rem; } }
.section--paper { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Hub hero with Stian's illustration (decorative). Phone: picture under the text.
   From 768 px: full-bleed behind the text; the left side of the art is calm on purpose. */
.hero--hub { background: var(--ho-sand); padding-bottom: 0; position: relative; overflow: hidden; }
.hero--hub h1 { max-width: 16ch; }
.hero--hub .lead { margin-bottom: 0; }
.hero-art { display: block; margin-top: 1.25rem; }
.hero-art img { width: 100%; height: 13rem; object-fit: cover; object-position: center 85%; }
@media (min-width: 768px) {
  .hero--hub { min-height: 30rem; padding: 4rem 0 4.5rem; display: flex; align-items: center; }
  .hero--hub > .wrap { position: relative; z-index: 1; width: 100%; }
  .hero--hub .lead { max-width: 30rem; }
  .hero-art { position: absolute; inset: 0; margin: 0; z-index: 0; }
  .hero-art img { height: 100%; object-position: 72% bottom; }
}
@media (min-width: 1280px) { .hero-art img { object-position: right bottom; } }

/* Service pages: icon tile in the category colour above the title */
.page-icon { margin: 0 0 0.9rem; width: 56px; height: 56px; border-radius: 16px; }
.page-icon .ho-icon { width: 32px; height: 32px; }
body[data-service] .site-header { border-bottom: 4px solid var(--cat); }
.kicker { color: var(--ink-soft); }

/* ---------- Cards, notices, buttons ---------- */
.path-card, .card, .price-card, .panel, fieldset {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--paper);
}
.card h3 { margin-bottom: 0.4rem; }
.card p:last-child { margin-bottom: 0; }

.notice {
  border-left-width: 6px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1.1rem 1.25rem;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.notice p:last-child { margin-bottom: 0; }
.hero .notice { max-width: 42rem; }

.btn { min-height: 52px; padding: 0.75rem 1.4rem; font-size: 1.0625rem; }
.btn--ghost { border-width: 2px; }

.badge, .ad-label, .eksempeldata { font-size: 0.9375rem; letter-spacing: 0.02em; text-transform: none; padding: 0.15rem 0.6rem; }

.pris-kommer {
  font-size: 1.375rem;
  background: var(--sand-2);
  color: var(--pine-deep);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin: 1.25rem 0 1.5rem;
}

/* Forms */
label { font-weight: 700; }
input, select, textarea {
  min-height: var(--tap);
  font-size: 1.125rem;
  border: 2px solid #8C7A62;
  border-radius: 10px;
}
.field-hint, .source, .kommer, .local-note { color: var(--ink-soft); font-size: 1rem; }
.checkbox input { width: 26px; height: 26px; min-height: 0; }
.filter-row button { min-height: var(--tap); font-size: 1rem; }
.stepper li { color: var(--ink-soft); }

/* ---------- Front page: groups and service tiles ---------- */
.group-jump {
  margin: 0 0 2rem;
}
.group-jump__label { font-weight: 700; margin: 0 0 0.5rem; }
.group-jump ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.group-jump li { margin: 0; }
.group-jump a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  border: 2px solid var(--line);
  color: var(--pine-deep);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
}
.group-jump a:hover { border-color: var(--pine); background: var(--sand-2); }

.service-group { margin: 0 0 2.75rem; scroll-margin-top: 1rem; }
.service-group:last-child { margin-bottom: 0; }
.service-group__title {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: clamp(1.375rem, 3vw, 1.75rem);
  margin: 0 0 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--line);
}
.service-group__title::before {        /* category colour marker (decorative) */
  content: "";
  flex: 0 0 auto;
  width: 10px;
  height: 1.6em;
  border-radius: 999px;
  background: var(--cat);
}
.service-group__title { border-bottom-color: var(--cat-soft); }

.service-tiles { gap: 0.9rem; }
.service-tiles > li { margin: 0; max-width: none; }
@media (min-width: 600px) { .service-tiles { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .service-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1400px) { .service-tiles { grid-template-columns: repeat(3, 1fr); } }

.tile {
  position: relative;
  height: 100%;
  min-height: 0;
  gap: 0.35rem;
  padding-block: 1.15rem 1.25rem;
  padding-inline: 1.25rem 3.25rem;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.tile::after {                    /* calm arrow, decorative */
  content: "";
  position: absolute;
  inset-inline-end: 1.1rem;
  top: 1.3rem;
  width: 1.4rem;
  height: 1.4rem;
  background: var(--pine);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tile:hover { border-color: var(--cat); box-shadow: var(--shadow-lift); transform: translateY(-2px); }
.tile:focus-visible { outline-offset: 4px; border-color: var(--cat); }
.tile .ho-icon-tile { margin-bottom: 0.35rem; }
.tile::after { background: var(--cat); }
.tile .host {
  font-size: 1rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 700;
  color: var(--ink-soft);
}
.tile h2, .tile .tile__title {
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  line-height: 1.25;
  margin: 0;
  color: var(--pine-deep);
}
.tile p { font-size: 1.0625rem; color: var(--ink-soft); line-height: 1.5; }

.rules-strip { gap: 1rem; }
@media (min-width: 768px) and (max-width: 799px) { .rules-strip { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--pine-deep);
  color: #F4EFE6;
  font-size: 1.0625rem;
  padding-bottom: 2rem;
}
.site-footer a { color: #F3E3B8; display: inline-flex; align-items: center; min-height: 44px; }
.site-footer a:hover { color: #FFFFFF; }
.footer-legal { color: #E8E0D4; font-size: 1rem; }
.footer-family {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1rem;
  line-height: 1.3;
}
.footer-family li { margin: 0; max-width: none; }
@media (min-width: 600px) { .footer-family { grid-template-columns: 1fr 1fr; } }
@media (min-width: 700px) { .footer-grid > div:first-child { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .footer-family { grid-template-columns: repeat(3, 1fr); } }
.site-footer .not-nav { color: #FFFFFF; font-weight: 700; }
.site-footer .kommer { color: #F3E3B8; }

/* ---------- vold.hjelp.online: «Lukk siden raskt» ---------- */
/* Stays top right (the page text says so). Bigger, unmistakable, never covered. */
.exit-quick {
  top: max(0.6rem, env(safe-area-inset-top, 0px));
  inset-inline-end: 0.6rem;
  inset-inline-start: auto;
  z-index: 10000;
  min-height: 56px;
  padding: 0.6rem 1.15rem;
  font-size: 1.0625rem;
  line-height: 1.2;
  background: #1F1A15;
  color: #FFFFFF;
  border: 3px solid #FFFFFF;
  border-radius: 999px;
  box-shadow: 0 0 0 3px #1F1A15, 0 8px 22px rgba(0, 0, 0, 0.3);
  max-width: calc(100vw - 1.2rem);
}
.exit-quick:hover { background: var(--red); color: #FFFFFF; }
.exit-quick:focus-visible { background: var(--red); outline: 3px solid #1F1A15; outline-offset: 3px; }
/* reserve room at the top so the button never covers the logo or the menu button */
body[data-site="vold"] { padding-top: 4.75rem; }
body[data-site="vold"] .site-header { position: relative; }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .tile:hover, .door:hover, .path-card:hover { transform: none; }
}

/* ---------- Forced colors (Windows high contrast) ---------- */
@media (forced-colors: active) {
  .emergency-bar a, .tile, .group-jump a, .exit-quick { border: 2px solid CanvasText; }
  .tile::after { background: CanvasText; }
}

/* ---------- Print: no fixed bars over the text ---------- */
@media print {
  .emergency-bar { position: static; box-shadow: none; }
  body { padding: 0; }
  .exit-quick, .staging-banner { display: none; }
}

/* Stian's icons inside tiles (beats the older ".tile svg" rule) */
.tile .ho-icon { width: 28px; height: 28px; color: var(--cat); }
.tile .ho-icon-tile { width: 52px; height: 52px; border-radius: 14px; }

/* =====================================================================
   DESIGN LAYER v1 – 9 languages and RTL (Arabic «ar», Dari «prs»)
   Works with Lars' i18n.js (sets <html lang dir> and body[dir]).
   ===================================================================== */
:root {
  --font-sans: "Atkinson Hyperlegible", "Segoe UI", "Noto Sans", "Noto Sans Arabic", "Noto Naskh Arabic",
    "Noto Sans Ethiopic", "Noto Serif Ethiopic", Nyala, Ebrima, Tahoma, "Geeza Pro", system-ui, -apple-system, sans-serif;
  --font-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, "Noto Naskh Arabic", "Noto Serif Ethiopic", serif;
}
body { font-family: var(--font-sans); }
h1, h2, h3, h4, .logo__name, .pris-kommer { font-family: var(--font-serif); }
:lang(ar), :lang(prs), :lang(fa) { letter-spacing: 0 !important; }
html:lang(ar) body, html:lang(prs) body { line-height: 1.85; }
html:lang(ar) :is(h1, h2, h3, h4, .logo__tag),
html:lang(prs) :is(h1, h2, h3, h4, .logo__tag) {
  font-family: "Noto Sans Arabic", "Noto Naskh Arabic", "Segoe UI", Tahoma, "Geeza Pro", var(--font-sans);
  line-height: 1.5;
}
html:lang(ti) body { line-height: 1.75; }
html:not(:lang(nb)):not(:lang(en)) .kicker { text-transform: none; letter-spacing: 0; }

/* Long compound words and hostnames never overflow */
h1, h2, h3, h4, .tile .host, .logo__name, .lang-switch button, .emergency-bar a span, .exit-quick { overflow-wrap: anywhere; hyphens: auto; }
p, li, dd, td, label { overflow-wrap: break-word; }

/* Norwegian/English bodies stay LTR while the chrome is RTL (until an Arabic/Dari body exists) */
html[dir="rtl"] [data-lang-block="no"],
html[dir="rtl"] [data-lang-block="en"] { direction: ltr; text-align: left; unicode-bidi: isolate; }
html[dir="rtl"] .lang-body-note { direction: rtl; text-align: right; }

/* Directional arrow mirrors in RTL content; numbers stay LTR runs */
html[dir="rtl"] .tile::after { transform: scaleX(-1); }
html[dir="rtl"] [data-lang-block="no"] .tile::after,
html[dir="rtl"] [data-lang-block="en"] .tile::after { transform: none; }
.emergency-bar a strong { unicode-bidi: isolate; direction: ltr; }
@media (min-width: 960px) { html[dir="rtl"] .lang-switch { margin: 0; padding: 0; border: 0; } }
.lang-switch button { gap: 0.35rem; }
.lang-switch button .flag { font-size: 1.2em; line-height: 1; }
.lang-switch button .lang-code { font-size: 0.75em; line-height: 1; }
.skip-link { left: auto; inset-inline-start: 0.75rem; }
html[dir="rtl"] .exit-quick { left: 0.6rem; right: auto; }
.lang-body-note { font-size: 1.0625rem; border-inline-start-width: 6px; margin-inline: auto; }

/* Banner slot (empty and hidden by default) */
.site-banner { background: var(--ho-primary-tint, #E2EEE8); color: var(--ink); padding: 0.75rem 1rem; text-align: center; font-weight: 700; }
/* Norwegian headings inside RTL chrome keep the Latin display face */
html[dir="rtl"] :is([data-lang-block="no"], [data-lang-block="en"]) :is(h1, h2, h3, h4) { font-family: var(--font-serif); line-height: 1.2; }


/* =====================================================================
   MERGE PATCH – top language button (≥48px), logical insets, test banner,
   disabled payment / emergency-form controls
   ===================================================================== */
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 0.75rem;
}
.logo { order: 1; margin-inline-end: auto; }
.lang-switch {
  order: 2;
  position: relative;
  z-index: 70;
  margin: 0;
  padding: 0;
  border: 0;
  display: block;
}
.nav-toggle { order: 3; }
.site-nav { order: 4; inset-inline: 0; }
@media (min-width: 960px) {
  .logo { margin-inline-end: 0; }
  .site-nav {
    order: 2;
    position: static;
    inset-inline: auto;
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    justify-content: end;
  }
  .lang-switch {
    order: 3;
    flex-basis: auto;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .nav-toggle { display: none; }
}

.lang-switch__btn {
  appearance: none;
  min-height: var(--tap, 48px);
  min-width: var(--tap, 48px);
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  border: 2px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.lang-switch__btn[aria-expanded="true"],
.lang-switch__btn:focus-visible {
  background: var(--pine);
  border-color: var(--pine);
  color: #fff;
}
.lang-switch__menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  inset-inline-end: 0;
  inset-inline-start: auto;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
  padding: 0.4rem;
  border: 2px solid var(--line);
  border-radius: 16px;
  background: var(--paper, #fff);
  box-shadow: 0 8px 24px rgba(31, 27, 22, 0.15);
  min-width: 13rem;
  max-height: min(70vh, 28rem);
  overflow: auto;
  z-index: 80;
}
.lang-switch__menu[hidden] { display: none; }
.lang-switch__menu button {
  min-height: var(--tap, 48px);
  width: 100%;
  justify-content: start;
  border-radius: 999px;
}

/* Test banner: always at the top, visible, not hidden */
.test-banner,
#site-banner.test-banner {
  display: block;
  background: #1F4A3F;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.5;
  padding: 0.7rem 1rem;
}
.test-banner p { margin: 0 auto; max-width: 50rem; }
html:lang(ar) .test-banner,
html:lang(prs) .test-banner { line-height: 1.85; }

/* Disabled prototype controls */
.disabled-note {
  margin: 0 0 1rem;
  padding: 0.75rem 1rem;
  border: 2px solid var(--line);
  border-inline-start-width: 6px;
  border-inline-start-color: var(--pine, #1F4A3F);
  background: var(--sand, #F6F1E9);
  font-weight: 700;
  max-width: 46rem;
}
button:disabled,
input:disabled,
select:disabled,
textarea:disabled,
.btn:disabled,
.btn[aria-disabled="true"],
.pay-method:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

/* Logical cleanup for chrome */
.skip-link { left: auto; inset-inline-start: 0.75rem; }
.exit-quick {
  right: auto;
  left: auto;
  inset-inline-end: 0.6rem;
  inset-inline-start: auto;
}
html[dir="rtl"] .exit-quick {
  left: auto;
  right: auto;
  inset-inline-end: 0.6rem;
  inset-inline-start: auto;
}

/* Approved prices (replaces «pris kommer») */
.price-block {
  margin: 1.25rem 0 1.5rem;
  padding: 0.9rem 1rem;
  border: 2px solid var(--line, #ddd);
  border-inline-start-width: 6px;
  border-inline-start-color: var(--pine, #1F4A3F);
  background: var(--sand, #F6F1E9);
  border-radius: 12px;
  max-width: 46rem;
}
.price-block p { margin: 0 0 0.5rem; }
.price-block p:last-child { margin-bottom: 0; }
.price-note { font-size: 1rem; color: var(--ink-soft, #4A433A); }

/* Discreet install / iOS home-screen hint */
.install-app { margin: 1rem 0 0; }
.install-app__btn,
.install-app__dismiss {
  appearance: none;
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  min-height: var(--tap, 48px);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
}
.install-app__btn {
  border: 2px solid var(--line, #E3DACB);
  background: transparent;
  color: var(--ink-soft, #4A433A);
}
.install-app__btn:hover,
.install-app__btn:focus-visible {
  border-color: var(--pine, #1F4A3F);
  color: var(--pine, #1F4A3F);
}
.install-app__ios {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line, #E3DACB);
  border-radius: 12px;
  background: var(--paper, #FFFCF7);
  max-width: 40rem;
}
.install-app__ios[hidden],
.install-app[hidden] { display: none; }
.install-app__ios p { margin: 0; flex: 1 1 16rem; }
.install-app__dismiss {
  border: 0;
  background: transparent;
  color: var(--ink-soft, #4A433A);
  min-width: var(--tap, 48px);
}
html[dir="rtl"] .install-app__ios { text-align: start; }


/* Discreet footer jobs link + recruitment form */
.footer-jobs {
  display: inline-block;
  margin-inline-start: 0.85rem;
  font-size: 0.92em;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}
.jobs-form { margin-block-start: 1.5rem; }
.jobs-form .field { margin-block: 1rem; }
.jobs-form .field label,
.jobs-form fieldset legend {
  display: block;
  font-weight: 600;
  margin-block-end: 0.35rem;
}
.jobs-form fieldset {
  border: 0;
  margin: 1rem 0;
  padding: 0;
}
.jobs-form .check-group {
  display: grid;
  gap: 0.45rem;
  margin-block-start: 0.35rem;
}
.jobs-form textarea { width: 100%; min-height: 7rem; }
.jobs-form .jobs-note { margin-block: 1rem; }

/* ------------------------------------------------------------------
   23.11.2026 fixes: language codes (no emoji flags), exit button
   always visually top-right in every language including Arabic/Dari.
   ------------------------------------------------------------------ */
.lang-switch button .lang-code {
  display: inline-block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  padding: 0.22em 0.4em;
  border: 1px solid currentColor;
  border-radius: 0.3em;
  min-width: 2.2em;
  text-align: center;
  vertical-align: middle;
}

/* Physical top-right, also when the page is RTL.
   The body text says «øverst til høyre» / «top right». */
.exit-quick,
html[dir="rtl"] .exit-quick,
body[dir="rtl"] .exit-quick {
  left: auto;
  right: 0.6rem;
  inset-inline-end: auto;
  inset-inline-start: auto;
}
