/* Altertox website v3
   Design read: services site for public-sector scientists and EU officials,
   trust-first editorial language, native CSS, brand Montserrat headings,
   the logo's triangle mosaic as the single signature. Dials 5 / 3 / 4.
   Layout: one 1180px column, asymmetric splits, hairline dividers instead of cards. */

:root {
  /* colour: cool off-white ground, brand navy ink, plum as the one accent;
     amber and teal live only inside the triangle mosaic */
  --paper: #F5F7F7;
  --surface: #FFFFFF;
  --ink: #142F45;
  --ink-soft: #4A5F70;
  --line: #D3DCE1;
  --accent: #8C3678;
  --accent-ink: #FFFFFF;
  --accent-soft: #F3E7F0;
  --navy: #1A3C57;
  --plum: #8C3678;
  --amber: #CD890B;
  --teal: #44A0B0;
  --focus: #CD890B;
  --ok: #2F7A4F;
  --error: #B3261E;

  /* type */
  --font-display: "Montserrat", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --font-data: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(1.9rem, 1.4rem + 1.8vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.6rem + 2.8vw, 3.5rem);

  /* space and shape */
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(64px, 8vw, 104px);
  --radius: 6px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --shadow: 0 1px 2px rgba(20, 47, 69, 0.06), 0 8px 24px rgba(20, 47, 69, 0.06);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0E1B26;
    --surface: #142636;
    --ink: #E8EEF1;
    --ink-soft: #A8B9C5;
    --line: #2B4254;
    --accent: #E3A6D3;
    --accent-ink: #0E1B26;
    --accent-soft: #2A2233;
    --navy: #9CC3DC;
    --plum: #C77DB6;
    --amber: #E0A43A;
    --teal: #5FB8C6;
    --focus: #E0A43A;
    --ok: #7BC79A;
    --error: #F2948C;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0E1B26;
  --surface: #142636;
  --ink: #E8EEF1;
  --ink-soft: #A8B9C5;
  --line: #2B4254;
  --accent: #E3A6D3;
  --accent-ink: #0E1B26;
  --accent-soft: #2A2233;
  --navy: #9CC3DC;
  --plum: #C77DB6;
  --amber: #E0A43A;
  --teal: #5FB8C6;
  --focus: #E0A43A;
  --ok: #7BC79A;
  --error: #F2948C;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--accent-ink); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-4); font-weight: 700; letter-spacing: -0.025em; }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); letter-spacing: -0.005em; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.data { font-family: var(--font-data); font-size: 0.82em; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.skip {
  position: absolute; left: var(--gutter); top: -60px;
  background: var(--ink); color: var(--paper); padding: 10px 16px; z-index: 30; border-radius: var(--radius);
}
.skip:focus { top: 12px; }

.wrap { max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { border-top: 1px solid var(--line); }
.lead { font-size: var(--step-1); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; }
.measure { max-width: 66ch; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.muted { color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.005em;
  border-radius: var(--radius); border: 1.5px solid transparent;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 140ms var(--ease-out), background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--ink); border-color: currentColor; }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: color-mix(in oklab, var(--accent) 86%, var(--ink)); }
  .btn-secondary:hover { color: var(--accent); }
}
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow svg { transition: transform 160ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .link-arrow:hover svg { transform: translateX(3px); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in oklab, var(--paper) 92%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.brand { display: block; flex: none; }
.brand img { width: 168px; height: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a.nav-link {
  font-family: var(--font-display); font-weight: 500; font-size: 0.9rem;
  color: var(--ink); text-decoration: none; padding: 10px 11px; border-radius: var(--radius);
  transition: color 150ms ease, background-color 150ms ease;
}
.nav a.nav-link[aria-current="page"] { color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .nav a.nav-link:hover { color: var(--accent); } }
.nav .btn { margin-left: 10px; min-height: 42px; padding: 9px 18px; }
.menu-toggle {
  display: none; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 12px;
  background: transparent; color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--radius);
  font: 600 0.9rem var(--font-display); cursor: pointer;
}
@media (max-width: 1080px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    box-shadow: var(--shadow);
  }
  .nav[data-open="false"] { display: none; }
  .nav[data-open="true"] { animation: menu-in 200ms var(--ease-out); }
  .nav a.nav-link { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav .btn { margin: 16px 0 0; }
}
@keyframes menu-in { from { opacity: 0.4; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(48px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 16ch; }
.hero .lead { max-width: 46ch; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.page-hero { padding-block: clamp(48px, 7vw, 88px) clamp(40px, 5vw, 64px); }
.page-hero .hero-copy h1 { max-width: 20ch; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .mosaic { max-width: 420px; } }

/* the signature: triangle mosaic derived from the logo letters */
.mosaic { width: 100%; height: auto; display: block; }
.mosaic polygon { transform-box: fill-box; transform-origin: center; }
.t-navy { fill: var(--navy); } .t-plum { fill: var(--plum); } .t-amber { fill: var(--amber); } .t-teal { fill: var(--teal); }
@media (prefers-reduced-motion: no-preference) {
  .mosaic polygon { animation: tri-settle 760ms var(--ease-out) both; animation-delay: calc(var(--i) * 14ms); }
}
@keyframes tri-settle { from { opacity: 0.25; transform: translateY(10px) scale(0.86); } to { transform: none; } }

.page-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: end; }
.mosaic-page { max-width: 380px; justify-self: end; }
.mosaic-strip { max-width: 400px; margin-top: 8px; }
@media (max-width: 860px) { .page-grid { grid-template-columns: 1fr; } .mosaic-page { max-width: 260px; justify-self: start; } }

/* ---------- project strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--surface); }
.strip-inner { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 36px; padding-block: 22px; }
.strip p { color: var(--ink-soft); font-size: var(--step--1); max-width: 24ch; line-height: 1.35; }
.strip ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.strip li { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: 0.02em; }
.strip a { color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .strip a:hover { color: var(--accent); } }

/* ---------- two activities ---------- */
.activities { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: 48px; border-top: 1px solid var(--ink); }
.activity { padding: 36px 40px 8px 0; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.activity + .activity { padding: 36px 0 8px 40px; border-left: 1px solid var(--line); }
.activity h3 { font-size: var(--step-2); }
.activity ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.activity li { padding: 11px 0; border-bottom: 1px solid var(--line); }
.activity li:last-child { border-bottom: 0; }
@media (max-width: 760px) {
  .activities { grid-template-columns: 1fr; }
  .activity, .activity + .activity { padding: 32px 0 8px; border-left: 0; }
  .activity + .activity { border-top: 1px solid var(--line); }
}

/* ---------- trust diagram ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr) 40px minmax(0, 1.25fr) 40px minmax(0, 1fr); align-items: stretch; margin-top: 44px; }
.flow-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.flow-col.core { border: 2px solid var(--accent); background: var(--accent-soft); }
.flow-col h3 { font-size: 1.05rem; }
.flow-col ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.98rem; }
.flow-col .core-list li { display: grid; grid-template-columns: 14px 1fr; gap: 10px; align-items: baseline; }
.tri-bullet { width: 10px; height: 10px; clip-path: polygon(0 0, 100% 50%, 0 100%); background: var(--accent); display: inline-block; transform: translateY(-1px); }
.flow-arrow { display: flex; align-items: center; justify-content: center; color: var(--ink-soft); }
.flow-arrow svg { width: 24px; height: 24px; }
.flow-note { margin-top: 20px; color: var(--ink-soft); font-size: var(--step--1); }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { height: 36px; }
  .flow-arrow svg { transform: rotate(90deg); }
}

/* ---------- proof list ---------- */
.proof { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; margin-top: 40px; }
.proof article { padding: 26px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.proof .data { color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; }
.proof h3 { font-size: 1.2rem; }
@media (max-width: 760px) { .proof { grid-template-columns: 1fr; } }

/* ---------- media split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split.top { align-items: start; }
.split figure { margin: 0; }
.split figure img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.split figcaption { font-size: var(--step--1); color: var(--ink-soft); margin-top: 10px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* ---------- articles list ---------- */
.articles { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.articles li { border-bottom: 1px solid var(--line); }
.articles a { display: grid; grid-template-columns: 9rem minmax(0, 1fr) auto; gap: 8px 24px; align-items: baseline; padding: 20px 0; color: var(--ink); text-decoration: none; }
.articles .data { color: var(--ink-soft); }
.articles .title { font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
@media (hover: hover) and (pointer: fine) { .articles a:hover .title { color: var(--accent); } }
@media (max-width: 640px) { .articles a { grid-template-columns: 1fr; } .articles a > svg { display: none; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field legend { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 12px 14px; min-height: 48px; width: 100%;
  transition: border-color 150ms ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink-soft); outline: 3px solid var(--focus); outline-offset: 1px; }
.field .hint { font-size: var(--step--1); color: var(--ink-soft); }
.field .error { font-size: var(--step--1); color: var(--error); min-height: 0; }
.field[data-invalid="true"] input, .field[data-invalid="true"] select, .field[data-invalid="true"] textarea { border-color: var(--error); }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; font-size: 0.95rem; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--accent); }
.form-status { border-radius: var(--radius); padding: 16px 18px; background: var(--accent-soft); color: var(--ink); }
.form-status[data-state="ok"] { animation: fade-in 220ms var(--ease-out); }
.form-status[data-state="error"] { background: transparent; border: 1px solid var(--error); color: var(--error); }
/* Anti-spam field of the forms: hidden from people, filled in only by bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@keyframes fade-in { from { opacity: 0.3; } to { opacity: 1; } }
.inline-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: start; }
.inline-form > .btn { margin-top: 29px; }
.inline-form .form-status { grid-column: 1 / -1; }
@media (max-width: 760px) { .inline-form { grid-template-columns: 1fr; } .inline-form > .btn { margin-top: 4px; justify-self: start; } }

/* ---------- band ---------- */
.band { background: var(--surface); border-block: 1px solid var(--line); }
.band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-block: clamp(48px, 6vw, 72px); }
.band h2 { font-size: var(--step-3); max-width: 30ch; }

/* ---------- steps (a real sequence) ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; border-top: 1px solid var(--ink); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--font-data); color: var(--accent); font-size: 0.95rem; padding-top: 2px; }
.steps b { font-family: var(--font-display); font-weight: 600; }

.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ticks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }

/* ---------- definition grid ---------- */
.defs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 0 48px; margin-top: 36px; }
.defs > div { padding: 22px 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.defs h3 { font-size: 1.12rem; }

/* ---------- themes with house illustrations ---------- */
.themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin-top: 40px; }
.themes article { display: flex; flex-direction: column; gap: 14px; }
.themes img { width: 120px; height: 120px; object-fit: contain; }
@media (max-width: 860px) { .themes { grid-template-columns: 1fr; } .themes article { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 20px; } .themes img { width: 96px; height: 96px; grid-row: span 3; } }

/* ---------- clients ---------- */
.clients { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.clients li { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 8px 40px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.clients h3 { font-size: 1.1rem; }
.clients .tag { display: block; font-family: var(--font-data); font-size: 0.75rem; color: var(--ink-soft); margin-top: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
@media (max-width: 760px) { .clients li { grid-template-columns: 1fr; } }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; margin-top: 32px; border-top: 1px solid var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; min-width: 720px; }
th, td { text-align: left; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; }
td .data, td.data { color: var(--ink-soft); white-space: nowrap; }
.status { display: inline-block; font-family: var(--font-data); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-soft); white-space: nowrap; }
.status.live { border-color: var(--ok); color: var(--ok); }
.price { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; }

/* ---------- facts ---------- */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 24px; padding-block: 28px; }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts strong { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; line-height: 1.1; }
.facts span { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 32px 24px; margin-top: 28px; }
.team figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.team img { width: 100%; aspect-ratio: 480 / 571; object-fit: cover; border-radius: var(--radius); background: var(--surface); }
.team b { font-family: var(--font-display); font-weight: 600; display: block; }
.team span { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.4; display: block; }
.team .li-link { font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; text-decoration: none; display: inline-flex; min-height: 32px; align-items: center; }
.unit + .unit { margin-top: 56px; }
.unit h3 { padding-bottom: 12px; border-bottom: 1px solid var(--ink); }

.archive { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding-block: 56px 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer-grid h2 { font-size: 0.9rem; font-weight: 600; margin-bottom: 12px; letter-spacing: 0; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer-grid a:hover { color: var(--accent); text-decoration: underline; } }
.footer-brand { display: flex; flex-direction: column; gap: 14px; max-width: 34ch; }
.footer-brand img { width: 150px; }
.footer-legal { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--ink-soft); font-size: 0.85rem; }
.footer-legal a { color: var(--ink-soft); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- logo on dark ---------- */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .brand img, :root:not([data-theme="light"]) .footer-brand img { background: #F5F7F7; padding: 6px 10px; border-radius: var(--radius); } }
:root[data-theme="dark"] .brand img, :root[data-theme="dark"] .footer-brand img { background: #F5F7F7; padding: 6px 10px; border-radius: var(--radius); }

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

/* Policy Corner articles (Markdown in src/articles/) */
.article-body > * { margin: 0; }
.article-body > h2 { margin-top: 24px; }
.article-body ul, .article-body ol { padding-left: 1.25em; }
.article-body .slides summary { cursor: pointer; font-weight: 600; }
.slides-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 16px; }
