:root {
  --primary: #58a4da;
  --primary-50: #1b242c;
  --primary-900: #101c28;
  --secondary: #3d6d8f;
  --accent: #65d5ec;
  --neutral-50: #1e262f;
  --neutral-200: #3b4754;
  --neutral-500: #8b99a7;
  --neutral-900: #090f15;
  --bg: #0c1217;
  --surface: #171f27;
  --text: #e5ebf0;
  --text-muted: #9aa8b6;
  --success: #53c69c;
  --warning: #e2b05a;
  --danger: #dd635f;
  --max-width: 72rem;
  --container-px: clamp(1rem, 3vw, 2rem);
  --header-h: 4rem;
  --font-heading: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-body: 'Newsreader', system-ui, sans-serif;
  --font-display: 'Schibsted Grotesk', system-ui, sans-serif;
  --fs-h1: clamp(2.25rem, 4.5vw, 3.5rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
  --fs-h3: 1.5rem;
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --lh-heading: 1.15;
  --lh-body: 1.65;
  --radius-button: 0.5rem;
  --radius-card: 0.75rem;
  --on-primary: #ffffff;
  --on-primary-900: #ffffff;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-heading); line-height: var(--lh-heading); font-weight: 700; color: var(--text); text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); margin-top: 2.5rem; margin-bottom: 0.75rem; }
h3 { font-size: var(--fs-h3); margin-top: 1.75rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; max-width: 68ch; }
a { color: var(--primary); }
ul, ol { margin: 0 0 1rem 1.25rem; max-width: 68ch; }
li { margin-bottom: 0.35rem; }
strong { font-weight: 700; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; background: rgba(128, 128, 128, 0.14); border: 1px solid rgba(128, 128, 128, 0.28); border-radius: 4px; padding: 0.1em 0.35em; font-size: 0.9em; color: var(--text); }
blockquote { border-left: 3px solid var(--primary); padding-left: 1rem; color: var(--text-muted); margin: 0 0 1rem; }
img { max-width: 100%; height: auto; display: block; }
sup.cite a { text-decoration: none; color: var(--accent); font-weight: 600; }
.container { width: 100%; max-width: var(--max-width); margin-inline: auto; padding-inline: var(--container-px); }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: var(--surface); padding: 0.5rem 1rem; z-index: 100; }
main { display: block; }
/* shared chrome (variant-specific layout appended below) */
.site-brand { font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.site-nav ul { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--text-muted); text-decoration: none; font-size: var(--fs-small); font-weight: 600; }
.site-nav a:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: 1px solid var(--neutral-200); border-radius: 6px; padding: 0.4rem 0.6rem; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--text); }
.eyebrow { font-family: var(--font-display); text-transform: uppercase; letter-spacing: 0.12em; font-size: var(--fs-small); font-weight: 700; color: var(--accent); margin-bottom: 0.75rem; }
.subheadline { font-size: 1.2rem; color: var(--text-muted); margin-top: 1rem; max-width: 60ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.btn { display: inline-block; padding: 0.85rem 1.6rem; border-radius: var(--radius-button); font-weight: 700; text-decoration: none; font-size: var(--fs-small); transition: transform .15s ease, opacity .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-secondary { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
article > section, main > article { padding-block: 0.5rem; }
.content { padding-block: 1rem 3rem; }
.hero-figure { margin: 1.5rem 0; }
.hero-figure img { border-radius: var(--radius-card); }
.card { background: var(--surface); border: 1px solid #3b4754; border-radius: var(--radius-card); padding: 1.5rem; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1.25rem; margin: 1.5rem 0 2rem; }
.card-grid .card { display: flex; flex-direction: column; gap: 0.5rem; }
.card-grid .card img { border-radius: calc(var(--radius-card) - 0.25rem); margin-bottom: 0.5rem; aspect-ratio: 16 / 10; object-fit: cover; }
.card-grid .card h2, .card-grid .card h3 { margin: 0; font-size: 1.2rem; }
.card-grid .card p { margin: 0; font-size: var(--fs-small); color: var(--text-muted); }
.card-grid .card .card-link { margin-top: auto; padding-top: 0.6rem; font-weight: 700; font-size: var(--fs-small); color: var(--primary); text-decoration: none; }
.card-grid .card .card-link:hover { text-decoration: underline; }
.content-figure { margin: 1.5rem 0; }
.content-figure img { border-radius: var(--radius-card); }
.content-figure figcaption { font-size: var(--fs-small); color: var(--text-muted); margin-top: 0.5rem; font-style: italic; }
.table-wrap { overflow-x: auto; margin: 1.25rem 0 1.75rem; }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-small); }
th, td { text-align: left; padding: 0.6rem 0.85rem; border-bottom: 1px solid var(--neutral-200); vertical-align: top; }
thead th { border-bottom: 2px solid var(--text); font-family: var(--font-heading); }
/* Theme-agnostic zebra: a translucent tint over the (already-contrasting) row
   bg. Never use a named palette color here — on dark themes --neutral-50 can
   equal --text and erase the cell text (contrast 1.0). */
tbody tr:nth-child(even) { background: rgba(128, 128, 128, 0.09); }
.references-list { padding-left: 1.5rem; }
.references-list li { margin-bottom: 0.75rem; font-size: var(--fs-small); color: var(--text-muted); }
.references-list li a { word-break: break-word; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* header: sidebar-mono (left rail >=860px, top bar below) */
.site-header.h-v2 { border-bottom: 1px solid var(--neutral-200); background: var(--surface); position: sticky; top: 0; z-index: 50; }
.site-header.h-v2 .container { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); gap: 1rem; }
@media (max-width: 859px) {
  .site-header.h-v2 .nav-toggle { display: block; }
  .site-header.h-v2 .site-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--surface); border-bottom: 1px solid var(--neutral-200); padding: 1rem var(--container-px); z-index: 50; }
  .site-header.h-v2 .site-nav.open { display: block; }
  .site-header.h-v2 .site-nav ul { flex-direction: column; gap: 0.75rem; }
}
@media (min-width: 860px) {
  body.hv2 { padding-left: 15rem; }
  .site-header.h-v2 { position: fixed; top: 0; left: 0; bottom: 0; width: 15rem; border-right: 1px solid var(--neutral-200); border-bottom: none; }
  .site-header.h-v2 .container { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 1.5rem; min-height: 0; padding-top: 2rem; max-width: none; }
  .site-header.h-v2 .site-nav ul { flex-direction: column; gap: 0.75rem; align-items: flex-start; }
  .site-header.h-v2 .nav-toggle { display: none; }
}

/* hero: split-text-image */
.hero.hero-v2 { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(1.5rem, 4vw, 3rem); }
.hero.hero-v2 .container { display: grid; gap: 2rem; align-items: center; }
.hero.hero-v2 h1 { max-width: 18ch; }
.hero.hero-v2 .hero-figure { margin: 0; }
@media (min-width: 860px) { .hero.hero-v2 .container { grid-template-columns: 1.1fr 0.9fr; } }

/* footer: bordered-columns-light */
.site-footer.f-v3 { background: var(--surface); border-top: 2px solid var(--text); margin-top: 4rem; padding-block: 2.5rem; }
.site-footer.f-v3 a { color: var(--text-muted); text-decoration: none; }
.site-footer.f-v3 a:hover { color: var(--primary); text-decoration: underline; }
.site-footer.f-v3 .footer-disclaimer { font-style: italic; color: var(--text-muted); margin-bottom: 1.5rem; max-width: 60ch; }
.site-footer.f-v3 .footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1.5rem; }
.site-footer.f-v3 .footer-cols > div { border-left: 1px solid var(--neutral-200); padding-left: 1rem; }
.site-footer.f-v3 .footer-cols h2 { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 0.6rem; color: var(--text); }
.site-footer.f-v3 .footer-cols li { margin-bottom: 0.4rem; font-size: var(--fs-small); }
.site-footer.f-v3 .copyright { margin-top: 1.75rem; font-size: var(--fs-small); color: var(--text-muted); }
