/* SIA-OS site v2, editorial. Static CSS: no external resource, no inline style, no data: URI.
   Compatible with CSP: style-src 'self'; font-src 'self'; img-src 'self'. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/assets/fonts/schibsted-grotesk-var.ba7973ef.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f7f8f7;
  --ink: #182126;
  --stone: #4f5b61;
  --rule: #c7cfd1;
  --accent: #0b5ea4;
  --accent-deep: #084476;
  --focus: #1d4ed8;
  --wrap: 76rem;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

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

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

h1, h2, h3, p, dl, dd, ol, ul { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg { display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--accent-deep); text-decoration-thickness: 2px; }

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: .6rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 2px solid var(--focus);
}
.skip-link:focus { top: 1rem; }

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ------------------------------------------------------------------ masthead */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 2rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  margin-right: auto;
  padding: .15rem 0;
  border-radius: 4px;
}
.brand-logo { display: block; width: auto; height: 36px; }

.nav ul, .lang ul { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.nav a {
  display: inline-block;
  padding: .3rem 0;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.nav a:hover { color: var(--accent); text-decoration: underline; }

.lang ul { gap: .75rem; }
.lang a, .lang span {
  display: inline-block;
  padding: .3rem 0;
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
}
.lang a { color: var(--stone); }
.lang a:hover { color: var(--accent); text-decoration: underline; }
.lang [aria-current] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }

/* ---------------------------------------------------------------------- hero */
.hero { padding: clamp(3.5rem, 10vw, 8rem) 0 clamp(3rem, 8vw, 6.5rem); }
.hero h1 {
  max-width: 17ch;
  font-size: clamp(2.35rem, 1.1rem + 5.4vw, 5.4rem);
  line-height: 1.02;
  font-weight: 780;
  letter-spacing: -.028em;
}
.lead {
  max-width: 54ch;
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-size: clamp(1.1rem, 1rem + .45vw, 1.3rem);
  line-height: 1.55;
  color: var(--stone);
}
.hero-action { margin-top: 2.25rem; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: .85rem 1.4rem;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 650;
  text-decoration: none;
}
.button:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* -------------------------------------------------------------------- blocks */
.block { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--rule); }
.block > .wrap { display: grid; gap: 1.75rem 3rem; grid-template-columns: 1fr; }
.block-head h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  line-height: 1.15;
  font-weight: 750;
  letter-spacing: -.012em;
}
.block-head p { margin-top: .6rem; color: var(--stone); max-width: 30ch; }

/* ------------------------------------------------------------------ families */
.families { border-bottom: 1px solid var(--ink); }
.family { border-top: 1px solid var(--ink); }

.family summary {
  list-style: none;
  cursor: pointer;
  display: grid;
  grid-template-columns: 2.25rem 1fr 1.5rem;
  grid-template-areas:
    "num name toggle"
    ".   line line";
  align-items: baseline;
  gap: .35rem .5rem;
  padding: 1.35rem 0 1.4rem;
}
.family summary::-webkit-details-marker { display: none; }
.family summary::marker { content: ""; }
.family summary:focus-visible { outline-offset: 4px; }

.family-num {
  grid-area: num;
  font-size: .95rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.family-name {
  grid-area: name;
  font-size: clamp(1.4rem, 1rem + 1.7vw, 2.25rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.018em;
}
.family-line { grid-area: line; color: var(--stone); max-width: 52ch; }

.family-toggle {
  grid-area: toggle;
  align-self: center;
  justify-self: end;
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--ink);
  transition: transform .22s ease;
}
.family-toggle::before,
.family-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
}
.family-toggle::after { transform: rotate(90deg); }

.family summary:hover .family-name,
.family[open] .family-name { color: var(--accent); }
.family[open] .family-toggle { transform: rotate(45deg); color: var(--accent); }

.family-body { padding: 0 0 1.9rem 2.75rem; }
.services { display: grid; gap: 1.15rem; max-width: 60rem; }
.service dt { font-weight: 650; }
.service dd { color: var(--stone); max-width: 62ch; }

.family-other .family-static {
  display: grid;
  grid-template-columns: 2.25rem 1fr 1.5rem;
  grid-template-areas:
    ".   name ."
    ".   line .";
  gap: .35rem .5rem;
  padding: 1.35rem 0 1.4rem;
}
.family-other .family-name { font-size: clamp(1.15rem, 1rem + .6vw, 1.4rem); }

/* --------------------------------------------------------------------- steps */
.steps { display: grid; gap: 2rem 2.5rem; grid-template-columns: 1fr; counter-reset: step; }
.step { counter-increment: step; border-top: 2px solid var(--accent); padding-top: 1rem; }
.step::before {
  content: counter(step);
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin-bottom: .9rem;
}
.step h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .35rem; }
.step p { color: var(--stone); }

/* ------------------------------------------------------------------- contact */
.contact-intro { max-width: 56ch; color: var(--stone); }
.contact-mail {
  margin: 1.1rem 0 1.25rem;
  font-size: clamp(1.7rem, 1rem + 3.4vw, 3.6rem);
  line-height: 1.1;
  font-weight: 750;
  letter-spacing: -.02em;
  overflow-wrap: anywhere;
}
.contact-mail a {
  color: var(--ink);
  text-decoration-color: var(--accent);
  text-decoration-thickness: 3px;
  text-underline-offset: .16em;
}
.contact-mail a:hover { color: var(--accent); }
.contact-privacy { font-size: .95rem; color: var(--stone); max-width: 60ch; }

/* ---------------------------------------------------------------- legal pages */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5rem); }
.legal .wrap { max-width: 50rem; }
.legal h1 {
  font-size: clamp(2rem, 1.3rem + 2.8vw, 3.2rem);
  line-height: 1.08;
  font-weight: 760;
  letter-spacing: -.022em;
}
.legal h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 2.4rem 0 .6rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}
.legal p, .legal ul { margin-bottom: 1rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; }
.legal li + li { margin-top: .35rem; }
.legal .updated { margin-top: .6rem; color: var(--stone); font-size: .95rem; }
.legal dl { display: grid; grid-template-columns: 1fr; gap: .1rem 2rem; margin-bottom: 1rem; }
.legal dt { font-weight: 650; margin-top: .75rem; }
.legal dd { color: var(--stone); }

/* ------------------------------------------------------------------ colophon */
.colophon { border-top: 1px solid var(--rule); padding: 2.25rem 0 2.75rem; font-size: .95rem; color: var(--stone); }
.colophon-grid { display: grid; gap: 1rem 3rem; grid-template-columns: 1fr; }
.colophon-brand { color: var(--ink); max-width: 36ch; }
.nowrap { white-space: nowrap; }
.colophon-links { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }
.colophon a { color: var(--ink); }
.colophon a:hover { color: var(--accent); }
.colophon a[aria-current] { color: var(--accent); }

/* --------------------------------------------------------------- breakpoints */
@media (max-width: 24rem) {
  .brand-logo { height: 32px; }
}

@media (min-width: 40rem) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .legal dl { grid-template-columns: 15rem 1fr; }
  .legal dt { margin-top: 0; }
  .service { display: grid; grid-template-columns: minmax(12rem, 18rem) 1fr; gap: 0 2rem; }
}

@media (min-width: 60rem) {
  .brand-logo { height: 42px; }
  .block > .wrap { grid-template-columns: 15rem 1fr; }
  .family summary {
    grid-template-columns: 2.75rem minmax(0, 1.05fr) minmax(0, 1fr) 1.5rem;
    grid-template-areas: "num name line toggle";
    column-gap: 2rem;
  }
  .family-body { padding-left: 4.75rem; }
  .family-other .family-static {
    grid-template-columns: 2.75rem minmax(0, 1.05fr) minmax(0, 1fr) 1.5rem;
    grid-template-areas: ". name line .";
    column-gap: 2rem;
  }
  .family-line { padding-right: 1.5rem; }
  .colophon-grid { grid-template-columns: 1.2fr 1fr auto; align-items: start; }
}

@media (min-width: 72rem) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .family-toggle { transition: none; }
}

@media print {
  .masthead nav, .skip-link, .family-toggle { display: none; }
  .family-body { padding-left: 0; }
}
