/* CivicFisc vzw — civicfisc.be
   Hand-written stylesheet, no build step. Self-hosted fonts only (see /fonts/OFL-*.txt).
   The site ships no JavaScript and no inline styles: the Content-Security-Policy in
   firebase.json allows styles and fonts from this origin only. */

/* ---- fonts --------------------------------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-italic-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* ---- tokens -------------------------------------------------------------------------- */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-quote: 'Newsreader', Georgia, 'Times New Roman', serif;

  /* surfaces */
  --bg: #ffffff;
  --band: #f4f6f9;
  --band-deep: #eaeef3;
  --surface: #ffffff;

  /* ink (all text tokens pass WCAG AA on --bg and on --band) */
  --ink: #131820;
  --ink-soft: #3d4652;
  --ink-muted: #56606c;

  /* rules */
  --rule: #e1e6ec;
  --rule-strong: #c5cdd7;

  /* civic blue: 7.0:1 on white, 6.5:1 on --band */
  --accent: #1f5a9e;
  --accent-hover: #174a86;
  --accent-soft: #ebf1f8;
  --accent-line: #b9cde5;

  /* gold: decorative hairlines only, never text on white */
  --gold: #c99b00;
  --gold-light: #e3b341;
  --gold-soft: #fbf3d5;

  /* footer */
  --footer-bg: #0f1620;
  --footer-ink: #e8ecf1;
  --footer-muted: #a6b0bc;
  --footer-rule: #26313f;

  /* shape */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 12px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 32, 0.04), 0 1px 3px rgba(15, 23, 32, 0.06);
  --shadow: 0 1px 2px rgba(15, 23, 32, 0.04), 0 4px 12px rgba(15, 23, 32, 0.05), 0 16px 36px rgba(15, 23, 32, 0.05);

  /* spacing scale (4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 96 px) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* type scale */
  --t-xs: 0.75rem;
  --t-sm: 0.875rem;
  --t-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --t-md: 1.125rem;
  --t-lead: clamp(1.125rem, 1.02rem + 0.5vw, 1.375rem);
  --t-h3: 1.0625rem;
  --t-h2: clamp(1.625rem, 1.3rem + 1.2vw, 2.25rem);
  --t-h1: clamp(2.5rem, 1.7rem + 3.6vw, 4.5rem);

  --container: 74rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 4rem;
  --section-y: clamp(3.5rem, 2.4rem + 4.2vw, 6rem);
  --ease: 160ms ease;
}

/* ---- base ---------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + var(--s-4));
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--t-base);
  font-feature-settings: 'cv05', 'calt';
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  text-wrap: balance;
}

p,
li,
dd {
  text-wrap: pretty;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-color: var(--accent-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--ease), text-decoration-color var(--ease), background-color var(--ease),
    border-color var(--ease), box-shadow var(--ease);
}

a:hover {
  color: var(--accent-hover);
  text-decoration-color: currentColor;
}

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

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

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum', 'cv05';
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.icon {
  flex: none;
  width: 1.1em;
  height: 1.1em;
}

/* ---- skip link ----------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  z-index: 100;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: #fff;
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(calc(-100% - 1.5rem));
}

.skip-link:focus,
.skip-link:focus-visible {
  color: #fff;
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
  transform: none;
}

main {
  flex: 1 0 auto;
}

main:focus {
  outline: 0;
}

/* ---- header -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--rule);
  -webkit-backdrop-filter: saturate(1.6) blur(12px);
  backdrop-filter: saturate(1.6) blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
}

.brand:hover {
  color: var(--ink);
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
}

.brand-text {
  display: grid;
  min-width: 0;
  line-height: 1.15;
}

.brand-name {
  font-size: 1.1875rem;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.brand-desc {
  overflow: hidden;
  color: var(--ink-muted);
  font-size: var(--t-xs);
  font-weight: 500;
  letter-spacing: 0.005em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.header-end {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  flex: none;
}

.site-nav {
  display: none;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-pill);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--band);
  color: var(--ink);
}

.site-nav a[aria-current='page'] {
  color: var(--accent);
  background: var(--accent-soft);
}

.lang-switch ul {
  display: flex;
  gap: 2px;
  padding: 3px;
  list-style: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--band);
}

.lang-switch a {
  display: block;
  min-width: 2.5rem;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-pill);
  color: var(--ink-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
}

.lang-switch a:hover {
  color: var(--ink);
  background: rgba(19, 24, 32, 0.05);
}

.lang-switch a[aria-current='page'] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(15, 23, 32, 0.12), 0 0 0 1px rgba(15, 23, 32, 0.04);
}

@media (max-width: 559px) {
  .brand-desc {
    display: none;
  }

  .brand-mark {
    width: 2rem;
    height: 2rem;
  }
}

@media (max-width: 359px) {
  .lang-switch a {
    min-width: 2.25rem;
    padding-inline: 0.5rem;
  }
}

@media (min-width: 1180px) {
  .site-nav {
    display: block;
  }
}

/* ---- buttons ------------------------------------------------------------------------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.875rem;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-size: 0.96875rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 2px rgba(23, 74, 134, 0.3);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-secondary {
  background: var(--surface);
  border-color: var(--rule-strong);
  color: var(--ink);
}

.btn-secondary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--accent-hover);
}

.btn .icon {
  width: 1rem;
  height: 1rem;
}

/* phones: the hero and verification links stack as full-width pills instead of ragged widths */
@media (max-width: 479px) {
  .hero .actions .btn,
  .verify .actions .btn {
    flex: 1 1 100%;
  }
}

/* ---- eyebrow + section heads ---------------------------------------------------------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--accent);
  font-size: var(--t-xs);
  font-weight: 650;
  letter-spacing: 0.09em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  flex: none;
  width: 1.5rem;
  height: 2px;
  border-radius: 1px;
  background: var(--gold-light);
}

/* ---- hero ---------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 1.8rem + 5vw, 6.5rem) 0 clamp(2.5rem, 1.8rem + 3vw, 4.5rem);
  background: linear-gradient(180deg, var(--band) 0%, #fbfcfd 100%);
  border-bottom: 1px solid var(--rule);
}

/* ledger rules: a quiet texture that fades in towards the top right, away from the text */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 39px, rgba(31, 90, 158, 0.08) 39px 40px);
  -webkit-mask-image: radial-gradient(ellipse 65% 95% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%);
  mask-image: radial-gradient(ellipse 65% 95% at 100% 0%, #000 0%, rgba(0, 0, 0, 0.5) 45%, transparent 80%);
  pointer-events: none;
}

.hero > .container {
  position: relative;
}

.hero-copy {
  max-width: 50rem;
}

.hero-art {
  display: none;
}

@media (min-width: 1100px) {
  .hero-art {
    display: block;
    position: absolute;
    top: 50%;
    right: calc(var(--gutter) + 1rem);
    width: clamp(15rem, 22vw, 20rem);
    height: auto;
    transform: translateY(-62%);
    pointer-events: none;
  }

  .hero-copy {
    max-width: 46rem;
  }
}

.hero h1 {
  margin-top: var(--s-5);
  font-size: var(--t-h1);
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.hero-lead {
  margin-top: var(--s-5);
  max-width: 44rem;
  color: var(--ink);
  font-size: var(--t-lead);
  font-weight: 420;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

.hero-sub {
  margin-top: var(--s-4);
  max-width: 44rem;
  color: var(--ink-soft);
}

.hero .actions {
  margin-top: var(--s-6);
}

/* key facts strip */

.facts {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.facts::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4.5rem;
  height: 2px;
  background: var(--gold-light);
}

.fact {
  min-width: 0;
  padding: var(--s-4) var(--s-5) 1.1rem;
  border-color: var(--rule);
  border-style: solid;
  border-width: 0;
}

.fact:nth-child(even) {
  border-left-width: 1px;
}

.fact:nth-child(n + 3) {
  border-top-width: 1px;
}

.fact dt {
  color: var(--ink-muted);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.fact dd {
  margin-top: 0.3rem;
  color: var(--ink);
  font-size: var(--t-md);
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.fact dd small {
  display: block;
  margin-top: 0.15rem;
  color: var(--ink-muted);
  font-size: var(--t-sm);
  font-weight: 450;
  letter-spacing: 0;
}

@media (min-width: 880px) {
  .facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .fact:nth-child(n) {
    border-top-width: 0;
    border-left-width: 1px;
  }

  .fact:first-child {
    border-left-width: 0;
  }
}

@media (max-width: 419px) {
  .fact {
    padding-inline: var(--s-4);
  }

  .fact dd {
    font-size: 1.0625rem;
  }
}

@media (max-width: 374px) {
  .facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .fact {
    padding-block: 0.85rem 0.9rem;
  }

  .fact:nth-child(even) {
    border-left-width: 0;
  }

  .fact:nth-child(n + 2) {
    border-top-width: 1px;
  }
}

/* in-page index (narrow screens; the header carries it from 1180px) */

.toc {
  margin-top: var(--s-5);
}

.toc h2 {
  color: var(--ink-muted);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.toc ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-3);
  list-style: none;
}

.toc a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: var(--t-sm);
  font-weight: 550;
  text-decoration: none;
}

.toc a:hover {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent-hover);
}

.toc .icon {
  width: 0.85rem;
  height: 0.85rem;
  color: var(--accent);
}

@media (min-width: 1180px) {
  .toc {
    display: none;
  }
}

/* ---- sections ------------------------------------------------------------------------ */

.section {
  padding-block: var(--section-y);
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section--band {
  background: var(--band);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-6) var(--s-8);
}

.section-head h2 {
  margin-top: var(--s-4);
  font-size: var(--t-h2);
  font-weight: 660;
  letter-spacing: -0.028em;
  line-height: 1.12;
  hyphens: manual;
}

.section-intro {
  margin-top: var(--s-4);
  max-width: 38rem;
  color: var(--ink-soft);
}

.section-body {
  display: grid;
  gap: var(--s-6);
  min-width: 0;
}

.subhead {
  font-size: var(--t-h3);
  font-weight: 650;
  letter-spacing: -0.01em;
}

.subhead + * {
  margin-top: var(--s-3);
}

@media (min-width: 1000px) {
  .section-grid {
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  }

  .section-head {
    position: sticky;
    top: calc(var(--header-h) + var(--s-6));
    align-self: start;
  }
}

/* ---- statutory quote (article 4) ----------------------------------------------------- */

.statute {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.statute::before {
  content: '';
  position: absolute;
  top: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  bottom: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  left: -1px;
  width: 3px;
  border-radius: 0 2px 2px 0;
  background: var(--gold-light);
}

.statute blockquote {
  color: var(--ink);
  font-family: var(--font-quote);
  font-size: clamp(1.375rem, 1.1rem + 1.1vw, 2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.005em;
  line-height: 1.36;
  font-optical-sizing: auto;
}

.statute blockquote strong {
  font-weight: 500;
  background-image: linear-gradient(transparent 64%, var(--gold-soft) 64%, var(--gold-soft) 94%, transparent 94%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.statute figcaption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-2) var(--s-3);
  margin-top: var(--s-5);
  color: var(--ink-muted);
  font-size: var(--t-sm);
}

.statute-original {
  flex: 1 1 100%;
  display: block;
  margin-top: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: 0.84375rem;
  line-height: 1.55;
}

.statute-original b {
  font-weight: 600;
  color: var(--ink-soft);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.71875rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  white-space: nowrap;
}

.prose {
  display: grid;
  gap: var(--s-4);
  max-width: 44rem;
  color: var(--ink-soft);
}

/* ---- activities (article 5) --------------------------------------------------------- */

.numbered {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: var(--s-6);
  list-style: none;
  counter-reset: item;
}

.numbered > li {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr);
  gap: var(--s-3);
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  counter-increment: item;
}

/* the top rule sits on the first row of items, so it breaks at the column gap like the others */
.numbered > li:first-child {
  border-top: 1px solid var(--rule);
}

.numbered > li::before {
  content: counter(item, decimal-leading-zero);
  padding-top: 0.12rem;
  color: var(--accent);
  font-size: var(--t-sm);
  font-variant-numeric: tabular-nums;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.numbered strong {
  color: var(--ink);
  font-weight: 620;
}

@media (min-width: 760px) {
  .numbered {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .numbered > li:nth-child(2) {
    border-top: 1px solid var(--rule);
  }
}

.note {
  display: flex;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--band);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.note .icon {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.1rem;
  color: var(--accent);
}

.note strong {
  color: var(--ink);
  font-weight: 620;
}

/* ---- governance ---------------------------------------------------------------------- */

.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr));
  gap: var(--s-4);
  list-style: none;
}

.person {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.person-role {
  align-self: flex-start;
}

.person-name {
  margin-top: var(--s-1);
  font-size: 1.3125rem;
  font-weight: 660;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.person-detail {
  margin-bottom: var(--s-3);
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.person-term {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: var(--s-3);
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.person-name + .person-term {
  margin-top: var(--s-4);
}

.person-term .icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

.verify {
  display: grid;
  gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.verify p {
  max-width: 44rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.verify p strong {
  color: var(--ink);
  font-weight: 620;
}

.verify .actions {
  gap: var(--s-2);
}

.btn-small {
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.90625rem;
}

.def-list {
  border-top: 1px solid var(--rule);
}

.def-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.2rem var(--s-5);
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--rule);
}

.def-list dt {
  color: var(--ink);
  font-weight: 620;
}

.def-list dd {
  color: var(--ink-soft);
}

@media (min-width: 640px) {
  .def-list > div {
    grid-template-columns: minmax(0, 13rem) minmax(0, 1fr);
  }
}

/* ---- charter ------------------------------------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: var(--s-4);
  list-style: none;
  counter-reset: item;
}

.card {
  padding: 1.35rem var(--s-5) var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.card:hover {
  border-color: var(--rule-strong);
  box-shadow: var(--shadow-sm);
}

.cards--numbered .card {
  counter-increment: item;
}

.card h3 {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: var(--t-h3);
  font-weight: 650;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.cards--numbered .card h3::before {
  content: counter(item);
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  transform: translateY(-0.08rem);
}

.card p {
  margin-top: var(--s-2);
  color: var(--ink-soft);
  font-size: 0.96875rem;
  line-height: 1.55;
}

.principles {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border-radius: var(--radius-lg);
  background: var(--band);
  border: 1px solid var(--rule);
}

.principles > p {
  margin-top: var(--s-2);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.checks {
  display: grid;
  gap: var(--s-4);
  margin-top: var(--s-5);
  list-style: none;
}

.checks li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr);
  gap: var(--s-3);
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: 0.96875rem;
}

.checks .icon {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0.25rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}

.checks strong {
  display: block;
  color: var(--ink);
  font-weight: 620;
}


/* ---- own funding --------------------------------------------------------------------- */

.status {
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-head {
  position: relative;
  display: grid;
  gap: var(--s-2);
  padding: clamp(1.25rem, 1rem + 1.2vw, 2rem);
  border-bottom: 1px solid var(--rule);
}

.status-head::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4.5rem;
  height: 2px;
  background: var(--gold-light);
}

.status-date {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: start;
  padding: 0.25rem 0.7rem 0.25rem 0.55rem;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent-hover);
  font-size: 0.8125rem;
  font-weight: 600;
}

.status-date .icon {
  width: 0.95rem;
  height: 0.95rem;
}

.status-kicker {
  margin-top: var(--s-3);
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.status-value {
  font-size: clamp(1.75rem, 1.35rem + 1.6vw, 2.5rem);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.1;
}


.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.96875rem;
}

.ledger th,
.ledger td {
  padding: 0.8rem clamp(1.25rem, 1rem + 1.2vw, 2rem);
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: baseline;
}

.ledger thead th {
  background: var(--band);
  color: var(--ink-muted);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.ledger tbody th {
  color: var(--ink);
  font-weight: 560;
}

.ledger td {
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
}

.ledger thead th:last-child {
  text-align: right;
}

.ledger tbody tr:last-child > * {
  border-bottom: 0;
}

@media (max-width: 419px) {
  .ledger th,
  .ledger td {
    padding-inline: var(--s-4);
  }
}

/* ---- documents ----------------------------------------------------------------------- */

.docs {
  display: grid;
  gap: var(--s-3);
  list-style: none;
}

.doc {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-4);
  padding: 1.1rem var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.doc:hover,
.doc:focus-within {
  border-color: var(--accent-line);
  box-shadow: var(--shadow);
}

.doc-icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--accent);
}

.doc-icon .icon {
  width: 1.35rem;
  height: 1.35rem;
}

.doc-source {
  color: var(--ink-muted);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.doc h3 {
  margin-top: 0.15rem;
  font-size: var(--t-md);
  font-weight: 640;
  letter-spacing: -0.012em;
  line-height: 1.35;
}

.doc h3 a {
  color: var(--ink);
  text-decoration: none;
}

.doc h3 a::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
}

.doc h3 a:focus-visible {
  outline: 0;
}

.doc h3 a:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.doc:hover h3 a {
  color: var(--accent-hover);
}

.doc-meta {
  margin-top: 0.2rem;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.doc-host {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}

.doc-go {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--rule);
  border-radius: 50%;
  color: var(--accent);
  transition: background-color var(--ease), border-color var(--ease);
}

.doc:hover .doc-go {
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

.doc-go .icon {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 519px) {
  .doc {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    padding: var(--s-4);
  }

  .doc-icon {
    display: none;
  }
}

/* ---- contact ------------------------------------------------------------------------- */

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--s-4);
  list-style: none;
}

.contact {
  display: grid;
  gap: var(--s-2);
  align-content: start;
  padding: var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.contact-label {
  color: var(--ink-muted);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-self: start;
  max-width: 100%;
  color: var(--accent);
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  font-weight: 620;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.contact-mail:hover {
  color: var(--accent-hover);
  text-decoration: underline;
  text-decoration-color: currentColor;
}

.contact-mail .icon {
  width: 1.15rem;
  height: 1.15rem;
}

.contact p {
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

.legal-card {
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.legal-card .def-list {
  margin-top: var(--s-4);
}

.legal-card .def-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.muted {
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

/* ---- footer -------------------------------------------------------------------------- */

.site-footer {
  position: relative;
  margin-top: auto;
  padding: var(--s-8) 0 var(--s-6);
  background: var(--footer-bg);
  color: var(--footer-muted);
  font-size: 0.9375rem;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: max(var(--gutter), calc((100% - var(--container)) / 2));
  width: 4.5rem;
  height: 2px;
  background: var(--gold-light);
}

.site-footer a {
  color: var(--footer-ink);
  text-decoration-color: rgba(232, 236, 241, 0.35);
}

.site-footer a:hover {
  color: #fff;
  text-decoration-color: currentColor;
}

.site-footer :focus-visible {
  outline-color: var(--gold-light);
}

.footer-top {
  display: grid;
  gap: var(--s-6);
  padding-bottom: var(--s-6);
  border-bottom: 1px solid var(--footer-rule);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-brand .brand-mark {
  width: 2.5rem;
  height: 2.5rem;
}

.footer-brand .brand-name {
  color: var(--footer-ink);
}

.footer-brand .brand-desc {
  display: block;
  color: var(--footer-muted);
  white-space: normal;
}

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-5);
  list-style: none;
}

.footer-nav a {
  font-weight: 500;
  text-decoration: none;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-legal {
  display: grid;
  gap: var(--s-5);
  padding-top: var(--s-6);
}

.footer-legal h2 {
  color: var(--footer-ink);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-lines {
  display: grid;
  gap: 0.2rem;
  margin-top: var(--s-3);
  font-style: normal;
  line-height: 1.6;
}

.legal-lines strong {
  color: var(--footer-ink);
  font-weight: 600;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  margin-top: var(--s-6);
  padding-top: var(--s-5);
  border-top: 1px solid var(--footer-rule);
  font-size: var(--t-sm);
}

.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2) var(--s-4);
  list-style: none;
}

.footer-bottom a {
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

@media (min-width: 880px) {
  .footer-top {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .footer-legal {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: var(--s-7);
  }
}

/* ---- inner pages (privacy, 404) ------------------------------------------------------ */

.page-head {
  padding: clamp(2.5rem, 1.8rem + 3vw, 4.5rem) 0 clamp(2rem, 1.6rem + 2vw, 3rem);
  background: linear-gradient(180deg, var(--band) 0%, #fff 100%);
  border-bottom: 1px solid var(--rule);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  color: var(--ink-muted);
  font-size: var(--t-sm);
}

.crumbs li + li::before {
  content: '/';
  margin-right: 0.4rem;
  color: var(--rule-strong);
}

.crumbs a {
  color: var(--ink-soft);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.page-head h1 {
  margin-top: var(--s-5);
  font-size: clamp(2.125rem, 1.6rem + 2.2vw, 3.25rem);
  font-weight: 680;
  letter-spacing: -0.032em;
  line-height: 1.08;
}

.page-head .hero-lead {
  margin-top: var(--s-4);
}

.page-body {
  padding-block: clamp(2.5rem, 1.8rem + 3vw, 4.5rem) var(--section-y);
}

.page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--s-7);
}

.article {
  display: grid;
  gap: var(--s-7);
  max-width: 46rem;
}

.summary {
  position: relative;
  padding: var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--band);
}

.summary::before {
  content: '';
  position: absolute;
  top: -1px;
  left: var(--s-5);
  width: 3rem;
  height: 2px;
  background: var(--gold-light);
}

.summary h2 {
  color: var(--ink-muted);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.summary .checks {
  gap: var(--s-3);
  margin-top: var(--s-4);
}

.summary .checks li {
  align-items: center;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 560;
}

.summary > p {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: 0.9375rem;
}

@media (min-width: 1000px) {
  .page-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 18rem);
    gap: var(--s-8);
  }

  .page-grid > .article {
    grid-column: 1;
    grid-row: 1;
  }

  .page-grid > .summary {
    position: sticky;
    top: calc(var(--header-h) + var(--s-6));
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }
}

.article section {
  display: grid;
  gap: var(--s-3);
}

.article h2 {
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.article p,
.article li {
  color: var(--ink-soft);
}

.article ul {
  display: grid;
  gap: var(--s-2);
  padding-left: 1.25rem;
}

.article li::marker {
  color: var(--accent);
}

.article address {
  font-style: normal;
  color: var(--ink-soft);
}

.article address strong {
  color: var(--ink);
  font-weight: 620;
}

.updated {
  padding-top: var(--s-5);
  border-top: 1px solid var(--rule);
  color: var(--ink-muted);
  font-size: var(--t-sm);
}

.notfound-alt {
  margin-top: var(--s-3);
  color: var(--ink-muted);
  font-size: var(--t-lead);
  letter-spacing: -0.01em;
}

.notfound-langs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--s-4);
  list-style: none;
}

.notfound-langs li {
  padding: var(--s-5);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.notfound-langs p {
  color: var(--ink-soft);
}

.notfound-langs strong {
  display: block;
  margin-bottom: var(--s-2);
  color: var(--ink-muted);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.notfound-langs a {
  font-weight: 600;
  white-space: nowrap;
}

/* ---- motion + print ------------------------------------------------------------------ */

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

@media print {
  :root {
    --shadow: none;
    --shadow-sm: none;
  }

  body {
    font-size: 10.5pt;
  }

  .site-header {
    position: static;
    backdrop-filter: none;
  }

  .site-nav,
  .lang-switch,
  .toc,
  .skip-link,
  .actions,
  .doc-go {
    display: none !important;
  }

  .hero,
  .page-head,
  .section--band {
    background: none;
  }

  .section {
    padding-block: 1.5rem;
  }

  .person,
  .card,
  .doc,
  .status,
  .statute,
  .contact,
  .def-list > div {
    break-inside: avoid;
  }

  .section-head {
    break-after: avoid;
  }

  .section-head {
    position: static;
  }

  .doc h3 a::after {
    position: static;
    content: ' (' attr(href) ')';
    color: var(--ink-muted);
    font-size: 0.8em;
    font-weight: 400;
    overflow-wrap: anywhere;
  }

  .site-footer {
    background: none;
    color: var(--ink);
  }

  .site-footer a {
    color: var(--ink);
  }
}
