/* ==========================================================================
   iptv-fakta.se — "Fakta"
   Implements references/design.md. Read that file before changing anything here.

   Adapted from the MegaOne "Digital Agency" template: Oswald/Roboto, the
   white → yellow → dark band rhythm, square geometry, two-tone headings.
   None of the template's JavaScript is here — see design.md, "Rules".
   ========================================================================== */

/* ── Fonts ────────────────────────────────────────────────────────────────
   Self-hosted, OFL. No Google Fonts request: the site must be able to state
   truthfully that the chat widget is the only third-party connection.
   Both faces are variable, so one file per subset covers every weight.      */

@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('/fonts/oswald-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('/fonts/oswald-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/roboto-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/fonts/roboto-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Tokens ─────────────────────────────────────────────────────────────── */

:root {
  --paper: #ffffff;
  --paper-2: #f6f6f3;
  --ink: #202020;
  --ink-2: #2b2b2b;
  --body: #4a4a4a;
  --muted: #6d6d6d;
  --line: #e4e4de;
  --line-2: #c9c9c1;

  --yellow: #e8d716;
  --yellow-2: #dbd527;
  --teal: #02aeb3;
  --teal-ink: #026f73;   /* AA-safe teal for text on light surfaces */
  --flag: #b7242a;

  /* on the dark band */
  --on-dark: #e9e9e4;
  --on-dark-dim: #a8a8a2;

  --font-display: 'Oswald', 'Haettenschweiler', 'Arial Narrow', sans-serif;
  --font-body: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --max: 1180px;
  --gutter: 24px;
  --radius: 0;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .06);
  --section-y: clamp(64px, 9vw, 120px);
}

/* ── Base ───────────────────────────────────────────────────────────────── */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

::selection { background: var(--yellow); color: var(--ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--ink);
  text-transform: uppercase;
  margin: 0 0 .5em;
}

/* The two-tone heading. .thin is the light half; it is the signature of the
   whole design and is why an Oswald heading here does not read as generic. */
.thin { font-weight: 300; }

h1 {
  font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -.01em;
}

h2 {
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  margin-top: 1.9em;
}

h3 {
  font-weight: 500;
  font-size: 1.35rem;
  line-height: 1.25;
  letter-spacing: .02em;
  margin-top: 1.8em;
}

p { margin: 0 0 1.1em; }

a { color: var(--teal-ink); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

b, strong { color: var(--ink); font-weight: 700; }

/* --ink is also the dark band's background, so the rule above renders bold text
   invisible there. It shipped once as a footer wordmark reading "IPTV" with the
   "Fakta" half painted #202020 on #202020. */
.band-dark b, .band-dark strong,
footer b, footer strong { color: #fff; }
.brand b { color: inherit; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .9em;
  background: var(--paper-2);
  border: 1px solid var(--line);
  padding: .1em .35em;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--teal-ink);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  z-index: 200;
  font-weight: 500;
}
.skip:focus { left: 0; }

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

section { padding: var(--section-y) 0; }
section.tight { padding-top: calc(var(--section-y) / 2); }
section.flush { padding-top: 0; }

.kicker {
  display: block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--teal-ink);
  margin-bottom: 14px;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  line-height: 1.6;
  color: var(--body);
  max-width: 62ch;
}

.section-head { max-width: 68ch; margin-bottom: 46px; }
.section-head h2 { margin-top: 0; }
.section-head p { margin-bottom: 0; }

/* A 4px teal rule above a kicker. The template puts a short coloured bar over
   its section titles; this is that, at the one weight it reads correctly. */
.rule::before {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  background: var(--teal);
  margin-bottom: 22px;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */

.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  line-height: 1.2;
  padding: 15px 34px;
  min-height: 48px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

.btn-outline { background: transparent; color: var(--ink); }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: #fff; }

.btn-sm { padding: 10px 20px; font-size: .88rem; min-height: 44px; }

/* On the dark band the fill inverts, or the button disappears into it. */
.band-dark .btn {
  background: transparent;
  border-color: var(--yellow);
  color: var(--yellow);
}
.band-dark .btn:hover { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 0; }

/* ── Topbar + header ─────────────────────────────────────────────────────── */

.topbar {
  background: var(--ink);
  color: var(--on-dark-dim);
  font-size: .82rem;
  padding: 9px 0;
}
.topbar .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
}
.topbar b { color: var(--on-dark); font-weight: 500; }
.topbar .hl { color: var(--yellow); }
.topbar .sep {
  width: 1px;
  height: 12px;
  background: #45453f;
  display: inline-block;
}
.topbar .spacer { margin-left: auto; }
.topbar a { color: var(--on-dark-dim); text-decoration: none; }
.topbar a:hover { color: var(--yellow); }
.topbar a[aria-current="true"] { color: var(--on-dark); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 76px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.42rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.brand b { font-weight: 700; }
.brand .mark { color: var(--teal); flex: none; }

.desktop-nav { margin-left: auto; }
.desktop-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* Load-bearing: without it a label wraps instead of overflowing and the
   overflow audit passes a broken nav. See design.md, "Breakpoints". */
.desktop-nav li { white-space: nowrap; margin: 0; }
/* The hit area is 44px tall while the hover underline stays tight to the text.
   Padding alone gave a ~31px target, which the tap-target audit failed on every
   page — hence inline-flex with an explicit min-height, and the underline moved
   to a positioned ::after so it does not drift to the bottom of the taller box. */
.desktop-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: .96rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: var(--ink);
  text-decoration: none;
  transition: color .2s ease;
}
.desktop-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 2px;
  background: transparent;
  transition: background-color .2s ease;
}
.desktop-nav a:hover::after,
.desktop-nav a[aria-current="page"]::after { background: var(--teal); }

.mobile-nav { display: none; margin-left: auto; }
.mobile-nav > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border: 2px solid var(--ink);
  cursor: pointer;
}
.mobile-nav > summary::-webkit-details-marker { display: none; }
.mobile-nav .bars,
.mobile-nav .bars::before,
.mobile-nav .bars::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: transform .2s ease, opacity .2s ease;
}
.mobile-nav .bars { position: relative; }
.mobile-nav .bars::before,
.mobile-nav .bars::after { content: ""; position: absolute; left: 0; }
.mobile-nav .bars::before { top: -7px; }
.mobile-nav .bars::after { top: 7px; }
.mobile-nav[open] .bars { background: transparent; }
.mobile-nav[open] .bars::before { transform: translateY(7px) rotate(45deg); }
.mobile-nav[open] .bars::after { transform: translateY(-7px) rotate(-45deg); }

.mobile-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--paper);
  border-top: 1px solid var(--line);
  border-bottom: 3px solid var(--teal);
  box-shadow: var(--shadow);
  padding: 12px var(--gutter) 26px;
}
.mobile-panel ul { list-style: none; margin: 0 0 18px; padding: 0; }
.mobile-panel li { margin: 0; border-bottom: 1px solid var(--line); }
.mobile-panel a {
  display: block;
  padding: 14px 2px;
  min-height: 48px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--ink);
  text-decoration: none;
}
.mobile-panel a:hover { color: var(--teal-ink); }
.mobile-panel .btn { width: 100%; text-align: center; }

/* ── Hero ────────────────────────────────────────────────────────────────── */

.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(48px, 6vw, 84px); }
.hero h1 { margin-bottom: .38em; max-width: 17ch; }
.hero .lead { max-width: 58ch; }

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  padding: 0;
  list-style: none;
  font-size: .92rem;
  color: var(--muted);
}
.badges li { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.badges svg { color: var(--teal); flex: none; }

/* ── The answer band (yellow) ────────────────────────────────────────────── */

.answer {
  background: var(--yellow);
  color: var(--ink);
  padding: clamp(34px, 5vw, 56px) 0;
  border-top: 1px solid rgba(0, 0, 0, .12);
  border-bottom: 1px solid rgba(0, 0, 0, .12);
}
.answer .kicker { color: var(--ink); opacity: .75; }
.answer p {
  font-size: clamp(1.08rem, 2.1vw, 1.28rem);
  line-height: 1.55;
  color: var(--ink);
  max-width: 68ch;
  margin-bottom: .7em;
}
.answer p:last-child { margin-bottom: 0; }
.answer b, .answer strong { color: var(--ink); }
.answer a { color: var(--ink); text-decoration-thickness: 2px; }
.answer a:hover { color: #000; }
.answer a:focus-visible { outline-color: var(--ink); }

/* ── Dark band ───────────────────────────────────────────────────────────── */

.band-dark {
  background: var(--ink);
  color: var(--on-dark);
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark h2 em { font-style: normal; color: var(--yellow); }
.band-dark .kicker { color: var(--yellow); }
.band-dark p { color: var(--on-dark-dim); }
.band-dark a { color: var(--yellow); }
.band-dark a:hover { color: #fff; }
.band-dark a:focus-visible { outline-color: var(--yellow); }
.band-dark .rule::before { background: var(--yellow); }

/* ── Stat band ───────────────────────────────────────────────────────────── */

.stat-band .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #3a3a34;
  border: 1px solid #3a3a34;
}
.stat-band .cell {
  background: var(--ink);
  padding: 30px 24px;
  text-align: left;
}
.stat-band .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.05;
  color: var(--yellow);
}
.stat-band .lbl {
  display: block;
  margin-top: 8px;
  font-size: .92rem;
  color: var(--on-dark);
}
.stat-band .src {
  display: block;
  margin-top: 6px;
  font-size: .76rem;
  color: var(--on-dark-dim);
}

/* ── Cards ───────────────────────────────────────────────────────────────── */

.grid { display: grid; gap: 24px; }
.grid.g2 { grid-template-columns: repeat(2, 1fr); }
.grid.g3 { grid-template-columns: repeat(3, 1fr); }
.grid.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 32px 28px;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.card h3 { margin-top: 0; margin-bottom: .5em; }
.card p:last-child { margin-bottom: 0; }
.card .num {
  display: block;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.4rem;
  line-height: 1;
  color: var(--teal);
  margin-bottom: 14px;
}
a.card { text-decoration: none; color: var(--body); display: block; }
a.card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
a.card h3 { color: var(--ink); }
a.card .go {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--teal-ink);
}
.band-dark .card {
  background: var(--ink-2);
  border-color: #3a3a34;
  color: var(--on-dark-dim);
}
.band-dark a.card:hover { border-color: var(--yellow); box-shadow: none; }
.band-dark a.card .go { color: var(--yellow); }

/* ── Meter (the template's skill bar) ────────────────────────────────────── */

.meters { margin: 30px 0 34px; }
.meter { margin-bottom: 30px; }
.meter:last-child { margin-bottom: 0; }
.meter .meter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 9px;
}
.meter .meter-label {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: var(--ink);
}
.meter .meter-value {
  font-size: .82rem;
  font-weight: 500;
  color: #fff;
  background: var(--ink);
  padding: 4px 9px;
  white-space: nowrap;
}
.meter .track {
  height: 10px;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.meter .fill { height: 100%; background: var(--teal); }
.meter .fill.alt { background: var(--yellow-2); }
.meter .fill.warn { background: var(--flag); }
.meter .note { margin: 8px 0 0; font-size: .9rem; color: var(--muted); }

/* ── Chips ───────────────────────────────────────────────────────────────── */

.chips { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.chips li { margin: 0; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: .95rem;
  text-decoration: none;
  transition: border-color .2s ease, background-color .2s ease;
}
.chip:hover { border-color: var(--teal); background: var(--paper-2); color: var(--ink); }

/* ── Tables ──────────────────────────────────────────────────────────────── */

.table-wrap { overflow-x: auto; margin: 0 0 1.6em; border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: .96rem; min-width: 460px; }
caption {
  caption-side: bottom;
  text-align: left;
  padding: 10px 16px;
  font-size: .85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
th, td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  border-bottom: 0;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) { background: var(--paper-2); }
td b, th b { color: var(--ink); }
tr.flag td { color: var(--flag); }
tr.flag td b { color: var(--flag); }

/* ── Callouts ────────────────────────────────────────────────────────────── */

.note-box {
  border-left: 4px solid var(--teal);
  background: var(--paper-2);
  padding: 22px 26px;
  margin: 0 0 1.6em;
}
.note-box p:last-child { margin-bottom: 0; }
.note-box .kicker { margin-bottom: 8px; }

.flag-box {
  border-left: 4px solid var(--flag);
  background: #fdf6f6;
  padding: 22px 26px;
  margin: 0 0 1.6em;
}
.flag-box p:last-child { margin-bottom: 0; }
.flag-box .kicker { color: var(--flag); margin-bottom: 8px; }

.ask {
  border: 1px solid var(--line);
  border-top: 4px solid var(--yellow);
  padding: 22px 26px;
  margin: 2em 0;
  background: var(--paper);
}
.ask p:last-child { margin-bottom: 0; }

/* ── Source line ─────────────────────────────────────────────────────────── */

.sources {
  margin-top: 3em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  color: var(--muted);
}
.sources h2 {
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .18em;
  margin: 0 0 .9em;
  color: var(--muted);
}
.sources ul { list-style: none; padding: 0; margin: 0; }
.sources li { margin-bottom: .5em; }

/* ── Page head + article ─────────────────────────────────────────────────── */

.page-head { padding: clamp(34px, 5vw, 56px) 0 clamp(28px, 4vw, 44px); }
.page-head h1 { margin-bottom: .3em; max-width: 20ch; }

.crumbs {
  font-size: .86rem;
  color: var(--muted);
  padding: 18px 0 0;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal-ink); text-decoration: underline; }
.crumbs span[aria-hidden] { margin: 0 8px; color: var(--line-2); }

.meta {
  font-size: .88rem;
  color: var(--muted);
  margin-bottom: 0;
}

.article { padding: clamp(46px, 6vw, 76px) 0; }
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 60px;
  align-items: start;
}
.col-main { min-width: 0; }
.col-main > h2:first-child,
.col-main > figure:first-child { margin-top: 0; }
.col-main figure { margin: 0 0 2em; }
.col-main figure img { width: 100%; border: 1px solid var(--line); }

/* Every article h2 sits under a full-width hairline with clearance. This is
   the editorial signature; do not swap it for a coloured left bar. */
.col-main h2 {
  border-top: 1px solid var(--line);
  padding-top: 26px;
}
.col-main h2:first-of-type { border-top: 0; padding-top: 0; }

.toc {
  position: sticky;
  top: 92px;
  border: 1px solid var(--line);
  padding: 26px 24px;
  font-size: .94rem;
}
.toc h2 {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  margin: 0 0 14px;
  border: 0;
  padding: 0;
  color: var(--muted);
}
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc li { margin-bottom: 2px; }
.toc a {
  display: block;
  padding: 7px 0;
  color: var(--body);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.toc li:last-child a { border-bottom: 0; }
.toc a:hover { color: var(--teal-ink); }
.toc .related { margin-top: 24px; padding-top: 20px; border-top: 3px solid var(--yellow); }
.toc .related a { border-bottom: 1px solid var(--line); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--line); margin-bottom: 1.6em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 44px 20px 0;
  position: relative;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.1rem;
  line-height: 1.35;
  color: var(--ink);
  text-transform: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after,
.faq summary::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  background: var(--ink);
  transition: transform .2s ease;
}
.faq summary::before { width: 16px; height: 2px; margin-top: -1px; }
.faq summary::after { width: 2px; height: 16px; margin-top: -8px; margin-right: 7px; }
.faq details[open] summary::before { transform: rotate(45deg); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--teal-ink); }
.faq details > div { padding: 0 44px 22px 0; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ── CTA band ────────────────────────────────────────────────────────────── */

.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta-band h2 { margin: 0 0 .35em; }
.cta-band p { margin: 0; max-width: 56ch; }

/* ── Related ─────────────────────────────────────────────────────────────── */

.related-block { background: var(--paper-2); }

/* ── Footer ──────────────────────────────────────────────────────────────── */

footer {
  background: var(--ink);
  color: var(--on-dark-dim);
  padding: clamp(56px, 7vw, 84px) 0 34px;
  font-size: .94rem;
}
footer .cols {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #3a3a34;
}
footer .brand { color: #fff; margin-bottom: 16px; }
footer .brand .mark { color: var(--yellow); }
footer h2 {
  font-family: var(--font-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  color: var(--yellow);
  margin: 0 0 16px;
}
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin-bottom: 9px; }
footer a { color: var(--on-dark-dim); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }
footer .foot-blurb { max-width: 42ch; margin-bottom: 0; color: var(--on-dark-dim); }
footer .legal {
  padding-top: 26px;
  font-size: .84rem;
  color: #85857f;
  line-height: 1.7;
}
footer .legal a { color: #85857f; text-decoration: underline; }
footer a:focus-visible { outline-color: var(--yellow); }

/* ── Language switch ─────────────────────────────────────────────────────── */

.lang { display: inline-flex; gap: 8px; align-items: center; }
.lang a, .lang span {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
}
.lang span[aria-current] { color: var(--on-dark); }

/* ── 404 ─────────────────────────────────────────────────────────────────── */

.notfound { padding: clamp(64px, 10vw, 130px) 0; }
.notfound .code {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(5rem, 16vw, 11rem);
  line-height: .9;
  color: var(--yellow);
  margin: 0 0 .1em;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1200px) {
  .desktop-nav ul { gap: 18px; }
  .desktop-nav a { font-size: .9rem; }
  .nav { gap: 20px; }
}

@media (max-width: 1000px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .site-header { position: sticky; }
  .nav { position: relative; min-height: 68px; }
}

@media (max-width: 900px) {
  .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .toc { position: static; order: -1; }
  .toc ul { columns: 2; column-gap: 26px; }
  .toc li { break-inside: avoid; }
  .toc .related ul { columns: 1; }
  .grid.g3, .grid.g4 { grid-template-columns: repeat(2, 1fr); }
  .stat-band .container { grid-template-columns: repeat(2, 1fr); }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 700px) {
  footer .cols { grid-template-columns: repeat(2, 1fr); gap: 32px; }
}

@media (max-width: 560px) {
  :root { --gutter: 20px; }
  body { font-size: 16.5px; }
  .grid.g2, .grid.g3, .grid.g4 { grid-template-columns: minmax(0, 1fr); }
  .nav > .btn { display: none; }
  .toc ul { columns: 1; }
  .topbar { font-size: .78rem; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar .spacer { margin-left: 0; }
  .card { padding: 26px 22px; }
  .cta-row .btn { width: 100%; text-align: center; }
}

@media (max-width: 420px) {
  footer .cols { grid-template-columns: minmax(0, 1fr); }
  .stat-band .container { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

@media print {
  .topbar, .site-header, .toc, .cta-band, .related-block, footer, .ask { display: none; }
  body { font-size: 11pt; color: #000; }
  .answer { border: 1px solid #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
