/* Shared by every page except the home page, which keeps its own inline styles. Same tokens as DESIGN.md. */
:root {
  color-scheme: light;
  --paper: #F3F4F1;
  --paper-2: #E6ECE8;
  --ink: #13201A;
  --muted: #4A5750;
  --rule: #D3DAD5;
  --pine: #1A5C44;
  --pine-deep: #124331;
  --band: #0F2A20;
  --band-ink: #E9F0EB;
  --band-muted: #A8BEB2;
  --band-rule: #2A4639;
  --mint: #9FD8BC;
  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --gutter: clamp(16px, 4.5vw, 56px);
  --max: 1240px;
  --split-gap: clamp(24px, 4vw, 64px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; scrollbar-color: var(--pine) var(--paper); caret-color: var(--pine); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  font-kerning: normal;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #C7E2D4; color: var(--ink); }
.band ::selection { background: var(--mint); color: var(--band); }
a { color: var(--pine); text-decoration-thickness: 1px; text-underline-offset: 0.22em; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--pine-deep); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 4px; }
.band :focus-visible { outline-color: var(--mint); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.nb { white-space: nowrap; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  background: var(--pine); color: #fff;
  border-radius: 10px; font-weight: 500; font-size: 1.0625rem;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 42, 32, .18), 0 6px 18px -8px rgba(15, 42, 32, .45);
  transition: background-color .2s, box-shadow .2s, transform .2s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { background: var(--pine-deep); color: #fff; text-decoration: none; box-shadow: 0 1px 2px rgba(15, 42, 32, .2), 0 10px 24px -10px rgba(15, 42, 32, .55); }
.btn:active { transform: translateY(1px); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--rule); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 72px; flex-wrap: wrap; }
.name { color: var(--ink); text-decoration: none; font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; min-height: 44px; display: inline-flex; align-items: center; }
.name:hover { color: var(--pine); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; margin-right: -12px; }
.nav a { color: var(--muted); text-decoration: none; padding: 0 12px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 8px; font-size: 1rem; }
.nav a:hover { color: var(--ink); background: var(--paper-2); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

/* Reading pages: contents on the left, text on the right (the ledger split). */
.doc-head { padding-top: clamp(48px, 7vw, 96px); padding-bottom: clamp(32px, 4vw, 48px); }
.doc-head h1 { font-size: clamp(2.4rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -0.035em; font-weight: 800; max-width: 16ch; margin-bottom: 0.4em; }
.doc-head .lede { color: var(--muted); font-size: clamp(1.0625rem, 1.35vw, 1.25rem); line-height: 1.55; max-width: 52ch; margin: 0; }
.doc-head .dated { color: var(--muted); font-size: 0.9375rem; margin: 1.25rem 0 0; }

.doc { padding-bottom: clamp(72px, 9vw, 128px); }
.doc .wrap { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr); gap: var(--split-gap); align-items: start; background: linear-gradient(var(--rule), var(--rule)) center top / calc(100% - 2 * var(--gutter)) 1px no-repeat; padding-top: clamp(32px, 4vw, 48px); }
.toc { position: sticky; top: 104px; font-size: 0.9375rem; }
.toc h2 { font-size: 0.9375rem; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.toc ol { list-style: none; margin: 0; padding: 0; }
.toc a { display: flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; border-radius: 6px; padding: 0 10px; margin-left: -10px; }
.toc a:hover { color: var(--ink); background: var(--paper-2); }

.prose { max-width: 66ch; }
.prose section { padding-bottom: 8px; }
.prose section + section { border-top: 1px solid var(--rule); padding-top: clamp(28px, 3.5vw, 40px); }
.prose h2 { font-size: clamp(1.375rem, 2vw, 1.625rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 0.75em; }
.prose h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; margin: 1.5em 0 0.4em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose li::marker { color: var(--pine); }
.prose strong { font-weight: 500; }
.prose .note { color: var(--muted); }
.ask { margin: 0 0 1.25em; }
.ask label { display: block; font-weight: 500; margin-bottom: 8px; }
.ask-row { display: flex; flex-wrap: wrap; gap: 12px; }
.ask input { flex: 1 1 16rem; min-height: 52px; padding: 0 16px; font: inherit; color: var(--ink); background: #fff; border: 1px solid var(--muted); border-radius: 10px; }
.ask input:focus-visible { outline: 2px solid var(--pine); outline-offset: 2px; }
.ask .btn { border: 0; cursor: pointer; font-family: inherit; }

/* Ruled facts: a muted term over its value, like the trust strip on the home page. */
.facts { margin: 0 0 1.5em; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px clamp(24px, 3vw, 48px); }
.facts dt { font-size: 0.9375rem; color: var(--muted); margin-bottom: 2px; }
.facts dd { margin: 0; font-weight: 500; }
.facts .wide { grid-column: 1 / -1; }

/* Who processes what: a table that becomes a ruled list on phones. */
.processors { width: 100%; border-collapse: collapse; margin: 0 0 1.25em; font-size: 1rem; }
.processors th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.9375rem; padding: 0 16px 10px 0; border-bottom: 1px solid var(--rule); }
.processors td { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.processors td:first-child { font-weight: 700; white-space: nowrap; }

.faq { margin: 0; }
.faq dt { font-weight: 700; font-size: 1.1875rem; letter-spacing: -0.01em; line-height: 1.3; margin: 0 0 0.4em; }
.faq dd { margin: 0 0 1.75em; }
.faq dd p:last-child { margin-bottom: 0; }

.steps { list-style: none; padding: 0 !important; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); align-items: baseline; margin-bottom: 0.75em; }
.steps li::before { content: counter(step); font-weight: 700; font-size: 0.9375rem; color: #fff; background: var(--pine); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-variant-numeric: tabular-nums; align-self: start; margin-top: 1px; }

footer { border-top: 1px solid var(--rule); padding: 28px 0 36px; color: var(--muted); font-size: 0.9375rem; }
footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 24px; }
footer p { margin: 0; }
footer nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 0 -6px; }
footer a { color: var(--muted); min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; }
footer a:hover { color: var(--ink); }
footer p a { display: inline; min-height: 0; padding: 0; }

@media (max-width: 960px) {
  .doc .wrap { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 0 4px; }
  .toc a { margin-left: 0; padding: 0 10px; background: var(--paper-2); margin: 0 4px 4px 0; min-height: 40px; }
}
@media (max-width: 720px) {
  html { scroll-padding-top: 16px; }
  .top { position: static; }
  .top .wrap { min-height: 0; padding-top: 10px; padding-bottom: 6px; }
  .nav { margin-left: -12px; margin-right: 0; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .processors thead { display: none; }
  .processors, .processors tbody, .processors tr, .processors td { display: block; }
  .processors tr { padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .processors td { padding: 0; border: 0; }
  .processors td:first-child { margin-bottom: 2px; }
  .processors td + td { color: var(--muted); }
}
