/* ============================================================================
   ISO EU LLC — public design system
   Concept: "the accreditation file". Institutional navy, paper-white surfaces,
   ruled hairlines, a single restrained gold register rule, and document-grade
   records. Colour values are plain hex so they render identically in every
   browser, in print, and in screenshots used as evidence.
   ========================================================================= */

@import url('../fonts/fonts.css');

/* ── 1. Tokens ─────────────────────────────────────────────────────────── */

:root {
  /* Brand — deep institutional navy */
  --brand-900: #0b2038;
  --brand-800: #102c4a;
  --brand-700: #16406c;
  --brand-600: #1c5894;
  --brand-500: #2a6fb8;
  --brand-100: #dce8f5;
  --brand-050: #eef3fa;

  /* Neutral surface scale */
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --surface-3: #eef1f6;
  --surface-4: #e4e9f0;

  /* Ink (text) */
  --ink: #12283f;
  --ink-2: #46596e;
  --ink-3: #5c6f83;   /* WCAG AA on white, surface-2 and surface-3 */
  --ink-inv: #ffffff;

  /* Lines */
  --rule: #d3dce6;
  --rule-soft: #e5eaf1;
  --rule-strong: #a9b7c6;

  /* Semantic */
  --ok-700: #12684a;
  --ok-600: #17795a;
  --ok-100: #dcefe7;
  --ok-050: #edf7f3;

  --warn-700: #8a5300;
  --warn-600: #a2630a;
  --warn-100: #fbedd3;
  --warn-050: #fdf5e8;

  --danger-700: #9b2118;
  --danger-600: #b32e20;
  --danger-100: #f7ddd9;
  --danger-050: #fcf0ee;

  --gold-600: #8a6a22;
  --gold-500: #a98432;

  /* Type */
  --serif: 'Newsreader', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Fluid type scale */
  --step--2: clamp(0.72rem, 0.71rem + 0.06vw, 0.78rem);
  --step--1: clamp(0.82rem, 0.80rem + 0.10vw, 0.90rem);
  --step-0:  clamp(1rem, 0.98rem + 0.12vw, 1.08rem);
  --step-1:  clamp(1.18rem, 1.13rem + 0.26vw, 1.36rem);
  --step-2:  clamp(1.42rem, 1.31rem + 0.55vw, 1.82rem);
  --step-3:  clamp(1.78rem, 1.55rem + 1.15vw, 2.52rem);
  --step-4:  clamp(2.18rem, 1.72rem + 2.30vw, 3.62rem);

  /* Spacing scale */
  --sp-3xs: 0.25rem;
  --sp-2xs: 0.5rem;
  --sp-xs:  0.85rem;
  --sp-s:   1.25rem;
  --sp-m:   2rem;
  --sp-l:   3.25rem;
  --sp-xl:  5rem;

  --radius: 6px;
  --radius-sm: 4px;
  --radius-lg: 10px;
  --shadow-1: 0 1px 2px rgba(18, 40, 63, .06), 0 1px 3px rgba(18, 40, 63, .05);
  --shadow-2: 0 2px 6px rgba(18, 40, 63, .07), 0 8px 24px rgba(18, 40, 63, .08);
  --shadow-3: 0 12px 40px rgba(18, 40, 63, .14);

  --wrap: 1200px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ── 2. Reset & base ───────────────────────────────────────────────────── */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface-2);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.012em;
  color: var(--brand-900);
  margin: 0 0 var(--sp-xs);
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
h4 { font-size: var(--step-1); }
h5 { font-size: var(--step-0); font-family: var(--sans); letter-spacing: 0; }

p { margin: 0 0 var(--sp-xs); max-width: 72ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--brand-700); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-600); }

strong { font-weight: 650; }
ul, ol { padding-left: 1.25rem; margin: 0 0 var(--sp-xs); }
li { margin-bottom: var(--sp-3xs); }

hr { border: 0; border-top: 1px solid var(--rule); margin-block: var(--sp-m); }

::selection { background: var(--brand-100); }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand-800);
  color: var(--ink-inv);
  padding: var(--sp-2xs) var(--sp-s);
  font-family: var(--sans);
  font-weight: 600;
}
.skip-link:focus { left: var(--sp-s); top: var(--sp-2xs); }

.wrap {
  width: min(100% - clamp(1.5rem, 4vw, 3.5rem), var(--wrap));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - clamp(1.5rem, 4vw, 3.5rem), 820px); margin-inline: auto; }

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

/* ── 3. Text utilities ─────────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin: 0 0 var(--sp-2xs);
  display: flex;
  align-items: center;
  gap: 0.55em;
}
.eyebrow--plain { display: block; }

.lede {
  font-family: var(--serif);
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 58ch;
}

.muted { color: var(--ink-2); }
.quiet { color: var(--ink-3); }
.small { font-size: var(--step--1); }
.xsmall { font-size: var(--step--2); }
.sans { font-family: var(--sans); }
.tnum { font-variant-numeric: tabular-nums lining-nums; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.max-60 { max-width: 60ch; }
.max-72 { max-width: 72ch; }

/* The register mark: a small navy/gold square used as the recurring motif. */
.mark {
  display: inline-block;
  width: 0.5em;
  height: 0.5em;
  background: var(--gold-500);
  vertical-align: 0.08em;
  flex: none;
}

.rule-gold { border: 0; border-top: 2px solid var(--gold-500); margin: 0 0 var(--sp-s); }

/* ── 4. Layout helpers ─────────────────────────────────────────────────── */

.stack > * + * { margin-top: var(--sp-xs); }
.stack-s > * + * { margin-top: var(--sp-2xs); }
.stack-m > * + * { margin-top: var(--sp-s); }

.cluster { display: flex; flex-wrap: wrap; gap: var(--sp-2xs); align-items: center; }
.cluster-s { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; }
.cluster--between { justify-content: space-between; }
.cluster--end { justify-content: flex-end; }

.section {
  padding-block: var(--sp-l);
  background: var(--surface);
  border-top: 1px solid var(--rule-soft);
}
.section--alt { background: var(--surface-2); }
.section--brand { background: var(--brand-900); color: var(--ink-inv); border-top: 0; }
.section--brand h1, .section--brand h2, .section--brand h3 { color: var(--ink-inv); }
.section--brand .lede, .section--brand .muted { color: rgba(255, 255, 255, .82); }
.section--tight { padding-block: var(--sp-m); }

.section__head { margin-bottom: var(--sp-m); max-width: 68ch; }
.section__head h2 { margin-bottom: var(--sp-2xs); }

.grid-2 { display: grid; gap: var(--sp-s); grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: var(--sp-s); grid-template-columns: 1fr; }
.grid-4 { display: grid; gap: var(--sp-s); grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 52rem) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-m); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-m); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-m); }
}

/* Document grid: § number | body | margin note */
.doc-grid { display: grid; gap: var(--sp-s) var(--sp-m); grid-template-columns: 1fr; }
@media (min-width: 62rem) {
  .doc-grid { grid-template-columns: 5.5rem minmax(0, 1fr) 18rem; align-items: start; }
  .doc-grid > .num-col { grid-column: 1; }
  .doc-grid > .body-col { grid-column: 2; }
  .doc-grid > .margin-note { grid-column: 3; }
}
.num-col {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--brand-600);
  padding-top: 0.5em;
}
.margin-note {
  font-family: var(--sans);
  font-size: var(--step--1);
  line-height: 1.6;
  color: var(--ink-2);
  border-top: 2px solid var(--brand-800);
  padding-top: var(--sp-2xs);
}
.margin-note dt {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin-top: var(--sp-xs);
}
.margin-note dd { margin: 0.15rem 0 0; }

/* ── 5. Utility bar + header + navigation ──────────────────────────────── */

.utility-bar {
  background: var(--brand-900);
  color: rgba(255, 255, 255, .88);
  font-family: var(--sans);
  font-size: var(--step--2);
  letter-spacing: 0.03em;
}
.utility-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2xs) var(--sp-s);
  align-items: center;
  justify-content: space-between;
  padding-block: 0.5rem;
}
.utility-bar a { color: rgba(255, 255, 255, .88); text-decoration: none; }
.utility-bar a:hover { color: #fff; text-decoration: underline; }
.utility-bar__links { display: flex; flex-wrap: wrap; gap: var(--sp-2xs) var(--sp-s); align-items: center; }
.utility-bar__sep { opacity: .45; }
.utility-bar .btn-mini {
  font-family: var(--sans);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--gold-500);
  color: var(--brand-900);
  padding: 0.32em 0.85em;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
}
.utility-bar .btn-mini:hover { background: var(--gold-600); color: #fff; text-decoration: none; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  position: relative;
  z-index: 30;
}
.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-xs);
  padding-block: var(--sp-s);
}

.brand { display: inline-flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__seal {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--brand-800);
  color: var(--ink-inv);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 2px solid var(--gold-500);
}
.brand__text { display: block; line-height: 1.1; }
/* Corporate brand — must always outweigh the accreditation symbol (LNAB AD 5.7). */
.brand__name {
  display: block;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--brand-900);
}
.brand__tag {
  display: block;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 0.22rem;
}

.nav { display: flex; flex-wrap: wrap; gap: 0.15rem 0.35rem; font-family: var(--sans); }
.nav a {
  display: inline-block;
  text-decoration: none;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-2);
  padding: 0.55em 0.75em;
  border-radius: var(--radius-sm);
  border-bottom: 2px solid transparent;
  transition: background 140ms ease-out, color 140ms ease-out;
}
.nav a:hover { background: var(--brand-050); color: var(--brand-800); }
.nav a[aria-current='page'] { color: var(--brand-800); border-bottom-color: var(--gold-500); }
.nav__cta a {
  background: var(--brand-700);
  color: var(--ink-inv);
  border-bottom-color: var(--brand-700);
}
.nav__cta a:hover { background: var(--brand-600); color: var(--ink-inv); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface);
  color: var(--brand-800);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 0.6em 0.9em;
  cursor: pointer;
}
.nav-toggle:hover { background: var(--surface-3); }

@media (max-width: 62rem) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding-top: var(--sp-2xs);
    border-top: 1px solid var(--rule);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75em 0.85em; border-bottom: 0; border-left: 3px solid transparent; }
  .nav a[aria-current='page'] { border-left-color: var(--gold-500); background: var(--brand-050); }
  .nav__cta a { text-align: center; }
}

/* ── 6. Hero & page heads ──────────────────────────────────────────────── */

.hero {
  background:
    linear-gradient(180deg, var(--brand-050) 0%, var(--surface) 100%);
  border-bottom: 1px solid var(--rule);
  padding-block: var(--sp-xl) var(--sp-l);
}
.hero__grid { display: grid; gap: var(--sp-m); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 62rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--sp-l); }
}
.hero h1 { max-width: 17ch; margin-bottom: var(--sp-s); }
.hero h1 em { font-style: italic; font-weight: 400; color: var(--brand-700); }
.hero__lede { font-family: var(--serif); font-size: var(--step-1); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2xs); margin-top: var(--sp-s); }
.hero__note {
  margin-top: var(--sp-s);
  font-family: var(--sans);
  font-size: var(--step--2);
  color: var(--ink-3);
  display: flex;
  gap: 0.5em;
  align-items: flex-start;
  max-width: 52ch;
}

.hero__panel {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--brand-700);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: var(--sp-s);
}
.hero__panel h2, .hero__panel h3 { font-family: var(--sans); font-size: var(--step--1); letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3); margin-bottom: var(--sp-2xs); }

.page-head {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
  padding-block: var(--sp-l) var(--sp-m);
}
.page-head h1 { margin-bottom: var(--sp-2xs); }
.page-head .lede { margin-bottom: 0; }

.breadcrumbs {
  font-family: var(--sans);
  font-size: var(--step--2);
  color: var(--ink-3);
  margin-bottom: var(--sp-2xs);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
  align-items: center;
  list-style: none;
  padding: 0;
}
.breadcrumbs a { color: var(--ink-2); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; color: var(--brand-700); }
.breadcrumbs li::after { content: '/'; margin-left: 0.4em; color: var(--rule-strong); }
.breadcrumbs li:last-child::after { content: ''; }

/* ── 7. Cards, stats, trust strip ──────────────────────────────────────── */

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-s);
  display: flex;
  flex-direction: column;
  gap: var(--sp-2xs);
  box-shadow: var(--shadow-1);
  transition: box-shadow 180ms ease-out, transform 180ms ease-out, border-color 180ms ease-out;
}
.card:hover { box-shadow: var(--shadow-2); border-color: var(--rule-strong); }
.card__head { display: flex; flex-wrap: wrap; gap: var(--sp-2xs); align-items: flex-start; justify-content: space-between; }
.card__head h3 { margin: 0; font-size: var(--step-1); }
.card__kicker {
  font-family: var(--sans);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin: 0;
}
.card__body { color: var(--ink-2); font-size: var(--step--1); }
.card__body p { max-width: none; }
.card__foot { margin-top: auto; padding-top: var(--sp-2xs); border-top: 1px solid var(--rule-soft); display: flex; flex-wrap: wrap; gap: var(--sp-2xs); align-items: center; }
.card--flat { box-shadow: none; }
.card--accent { border-top: 3px solid var(--brand-700); }
.card--ok { border-top: 3px solid var(--ok-600); }
.card--warn { border-top: 3px solid var(--warn-600); }

.stat-grid { display: grid; gap: var(--sp-2xs); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 46rem) { .stat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-s); } }
.stat {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-xs) var(--sp-s);
}
.stat__value { display: block; font-family: var(--serif); font-size: var(--step-2); font-weight: 600; color: var(--brand-800); line-height: 1.15; }
.stat__label { display: block; font-family: var(--sans); font-size: var(--step--2); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 0.25rem; }
.stat__hint { display: block; font-family: var(--sans); font-size: var(--step--2); color: var(--ink-3); margin-top: 0.25rem; }

.trust-strip {
  display: grid;
  gap: var(--sp-2xs);
  grid-template-columns: 1fr;
}
@media (min-width: 46rem) { .trust-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-s); } }
.trust-item {
  display: flex;
  gap: var(--sp-2xs);
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--gold-500);
  border-radius: var(--radius-sm);
  padding: var(--sp-xs) var(--sp-s);
  font-family: var(--sans);
  font-size: var(--step--1);
}
.trust-item__icon { flex: none; width: 1.6em; height: 1.6em; color: var(--brand-700); }
.trust-item strong { display: block; color: var(--brand-900); margin-bottom: 0.15rem; }
.trust-item p { margin: 0; color: var(--ink-2); }

/* ── 8. Buttons & forms ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.035em;
  text-decoration: none;
  padding: 0.78em 1.35em;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out, box-shadow 150ms ease-out;
  line-height: 1.25;
}
.btn:hover { text-decoration: none; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .55; cursor: not-allowed; }

.btn--primary { background: var(--brand-700); border-color: var(--brand-700); color: var(--ink-inv); box-shadow: var(--shadow-1); }
.btn--primary:hover { background: var(--brand-600); border-color: var(--brand-600); color: var(--ink-inv); }

.btn--ghost { background: var(--surface); border-color: var(--rule-strong); color: var(--brand-800); }
.btn--ghost:hover { background: var(--brand-050); border-color: var(--brand-600); color: var(--brand-800); }

.btn--quiet { background: transparent; border-color: transparent; color: var(--brand-700); padding-inline: 0.6em; }
.btn--quiet:hover { background: var(--brand-050); }

.btn--danger { background: var(--surface); border-color: var(--danger-600); color: var(--danger-700); }
.btn--danger:hover { background: var(--danger-050); border-color: var(--danger-700); color: var(--danger-700); }

.btn--solid-danger { background: var(--danger-600); border-color: var(--danger-600); color: var(--ink-inv); }
.btn--solid-danger:hover { background: var(--danger-700); border-color: var(--danger-700); color: var(--ink-inv); }

.btn--sm { font-size: var(--step--2); padding: 0.55em 0.95em; }
.btn--block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-2xs); align-items: center; }
.btn-row--end { justify-content: flex-end; }

.link-button {
  background: none;
  border: 0;
  padding: 0;
  color: var(--brand-700);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.link-button:hover { color: var(--brand-600); }
.link-button--danger { color: var(--danger-700); }

.field { display: block; margin-bottom: var(--sp-s); }
.field__label {
  display: block;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.025em;
  color: var(--ink);
  margin-bottom: 0.35rem;
}
.field__label .req { color: var(--danger-600); margin-left: 0.15em; }
.field__hint { display: block; font-family: var(--sans); font-size: var(--step--2); color: var(--ink-3); margin-top: 0.32rem; line-height: 1.5; }
.field__error { display: block; font-family: var(--sans); font-size: var(--step--2); font-weight: 600; color: var(--danger-700); margin-top: 0.32rem; }

.input, .select, .textarea, input[type='text'], input[type='email'], input[type='search'],
input[type='password'], input[type='date'], input[type='datetime-local'], input[type='number'],
input[type='tel'], input[type='url'], select, textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: var(--step-0);
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  padding: 0.68em 0.85em;
  transition: border-color 140ms ease-out, box-shadow 140ms ease-out;
}
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .select:focus, .textarea:focus,
input:focus, select:focus, textarea:focus {
  border-color: var(--brand-600);
  box-shadow: 0 0 0 3px rgba(42, 111, 184, .18);
  outline: none;
}
.input[aria-invalid='true'], .textarea[aria-invalid='true'], select[aria-invalid='true'] {
  border-color: var(--danger-600);
  box-shadow: 0 0 0 3px rgba(179, 46, 32, .14);
}
textarea { min-height: 9.5rem; line-height: 1.6; resize: vertical; }
textarea.tall { min-height: 20rem; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  padding-right: 2.2em;
}

.form-grid { display: grid; gap: 0 var(--sp-s); grid-template-columns: 1fr; }
@media (min-width: 48rem) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .form-grid .field--full { grid-column: 1 / -1; } }

.fieldset { border: 1px solid var(--rule); border-radius: var(--radius); padding: var(--sp-s); margin: 0 0 var(--sp-s); }
.fieldset > legend {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand-700);
  padding-inline: 0.5em;
}

.checkbox, .radio-row { display: flex; gap: 0.65em; align-items: flex-start; font-family: var(--sans); font-size: var(--step--1); color: var(--ink-2); }
.checkbox input, .radio-row input { margin-top: 0.28em; flex: none; width: 1.05em; height: 1.05em; accent-color: var(--brand-700); }
.checkbox label, .radio-row label { cursor: pointer; }

.form-status {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  border: 1px solid var(--ok-600);
  border-left-width: 4px;
  background: var(--ok-050);
  color: var(--ok-700);
  padding: var(--sp-xs) var(--sp-s);
  margin-bottom: var(--sp-s);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: var(--step--1);
}
.form-errors {
  display: flex;
  gap: 0.7em;
  align-items: flex-start;
  border: 1px solid var(--danger-600);
  border-left-width: 4px;
  background: var(--danger-050);
  color: var(--danger-700);
  padding: var(--sp-xs) var(--sp-s);
  margin-bottom: var(--sp-s);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: var(--step--1);
}
.form-errors ul { margin: 0.35rem 0 0; padding-left: 1.15rem; }
.form-errors li { margin-bottom: 0.15rem; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2xs);
  align-items: center;
  padding-top: var(--sp-s);
  border-top: 1px solid var(--rule-soft);
  margin-top: var(--sp-s);
}
.form-actions__spacer { margin-left: auto; }

/* ── 9. Badges, scope labels, status ───────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font-family: var(--sans);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.38em 0.72em;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
  line-height: 1.35;
}
.badge__dot { width: 0.5em; height: 0.5em; border-radius: 50%; background: currentColor; flex: none; }

.badge--accredited { background: var(--ok-050); color: var(--ok-700); border-color: var(--ok-600); }
.badge--non { background: var(--warn-050); color: var(--warn-700); border-color: var(--warn-600); }
.badge--valid { background: var(--ok-050); color: var(--ok-700); border-color: var(--ok-600); }
.badge--suspended { background: var(--warn-050); color: var(--warn-700); border-color: var(--warn-600); }
.badge--withdrawn { background: var(--danger-050); color: var(--danger-700); border-color: var(--danger-600); }
.badge--reduced { background: var(--warn-050); color: var(--warn-700); border-color: var(--warn-600); }
.badge--expired { background: var(--surface-3); color: var(--ink-2); border-color: var(--rule-strong); }
.badge--neutral { background: var(--surface-3); color: var(--ink-2); border-color: var(--rule-strong); }
.badge--brand { background: var(--brand-050); color: var(--brand-700); border-color: var(--brand-500); }
.badge--solid { background: var(--brand-700); color: var(--ink-inv); border-color: var(--brand-700); }
.badge--lg { font-size: var(--step--1); padding: 0.5em 0.95em; }

/* §3 binary scope labelling */
.scope-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.42em 0.85em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}
.scope-label--accredited { background: var(--ok-050); color: var(--ok-700); border-color: var(--ok-600); }
.scope-label--non { background: var(--warn-050); color: var(--warn-700); border-color: var(--warn-600); }

.scope-disclaimer {
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--warn-700);
  background: var(--warn-050);
  border-left: 3px solid var(--warn-600);
  padding: var(--sp-2xs) var(--sp-xs);
  margin-top: var(--sp-2xs);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ── 10. Service register ──────────────────────────────────────────────── */

.service-entry {
  padding-block: var(--sp-m);
  border-top: 1px solid var(--rule);
  display: grid;
  gap: var(--sp-xs) var(--sp-m);
  grid-template-columns: 1fr;
}
@media (min-width: 58rem) { .service-entry { grid-template-columns: 21rem minmax(0, 1fr); } }
.service-entry:first-child { border-top: 0; padding-top: 0; }
.service-entry h3 { margin-bottom: var(--sp-2xs); font-size: var(--step-1); }
.service-meta { font-family: var(--sans); font-size: var(--step--1); color: var(--ink-2); margin: var(--sp-xs) 0 0; }
.service-meta dt { font-size: 0.72em; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-3); margin-top: var(--sp-2xs); }
.service-meta dd { margin: 0.15rem 0 0; }

/* ── 11. Verification record ───────────────────────────────────────────── */

.record {
  background: var(--surface);
  border: 1px solid var(--rule-strong);
  border-top: 4px solid var(--brand-700);
  border-radius: var(--radius);
  padding: var(--sp-m);
  box-shadow: var(--shadow-1);
}
.record__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--sp-xs);
  align-items: flex-start;
  border-bottom: 2px solid var(--brand-800);
  padding-bottom: var(--sp-xs);
  margin-bottom: var(--sp-s);
}
.record__head h2, .record__head h3 { margin: 0; }
.record__ref {
  font-family: var(--sans);
  font-size: var(--step--2);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.data-list { display: grid; grid-template-columns: 1fr; gap: var(--sp-2xs) var(--sp-m); margin: 0; }
@media (min-width: 48rem) { .data-list { grid-template-columns: 16rem minmax(0, 1fr); } }
.data-list dt {
  font-family: var(--sans);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding-top: 0.15rem;
}
.data-list dd { margin: 0 0 var(--sp-2xs); color: var(--ink); }

.record__qr {
  display: flex;
  gap: var(--sp-s);
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--sp-s);
  border-top: 1px solid var(--rule);
  padding-top: var(--sp-s);
}
.record__qr img { width: 118px; height: 118px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: #fff; padding: 6px; }

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.5em 1em;
  border: 2px solid currentColor;
  border-radius: var(--radius-sm);
}
.status-VALID { color: var(--ok-700); background: var(--ok-050); }
.status-SUSPENDED { color: var(--warn-700); background: var(--warn-050); }
.status-WITHDRAWN { color: var(--danger-700); background: var(--danger-050); }
.status-REDUCED { color: var(--warn-700); background: var(--warn-050); }
.status-EXPIRED { color: var(--ink-2); background: var(--surface-3); }

.status-dot { display: inline-block; width: 0.7em; height: 0.7em; border-radius: 50%; background: currentColor; flex: none; }
.state-active { background: var(--ok-600); }
.state-reduced { background: var(--warn-600); }
.state-suspended { background: var(--danger-600); }
.state-revoked { background: var(--ink); }

/* ── 11b. Accreditation symbol surface (LNAB AD 5.7) ───────────────────── */

.acc-symbol {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: var(--sp-s);
}
.acc-symbol__code {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.11em;
  color: var(--ink);
  margin: 0.55rem 0 0;
  text-align: center;
}
.acc-symbol__note {
  font-family: var(--sans);
  font-size: var(--step--2);
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0.5rem 0 0;
}
.acc-symbol__suppressed {
  border: 1px solid var(--warn-600);
  border-left: 4px solid var(--warn-600);
  background: var(--warn-050);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: var(--sp-xs);
  font-family: var(--sans);
  font-size: var(--step--1);
  color: var(--warn-700);
}
.acc-symbol__suppressed strong { display: block; margin-bottom: 0.25rem; color: var(--warn-700); }
.acc-symbol__suppressed p { margin: 0 0 0.35rem; }

/* ── 12. Steps, notices, timelines ─────────────────────────────────────── */

.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 3.25rem;
  padding-block: var(--sp-xs);
  border-top: 1px solid var(--rule-soft);
}
.steps li:first-child { border-top: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: var(--sp-xs);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--brand-700);
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-sm);
  padding: 0.15em 0.45em;
}
.steps h4 { margin-bottom: var(--sp-3xs); font-family: var(--sans); font-size: var(--step-0); }
.steps p { margin-bottom: var(--sp-2xs); font-size: var(--step--1); color: var(--ink-2); }

.notice {
  display: flex;
  gap: 0.85em;
  align-items: flex-start;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--brand-700);
  background: var(--surface-2);
  padding: var(--sp-s);
  margin-block: var(--sp-s);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--sans);
  font-size: var(--step--1);
}
.notice__icon { flex: none; width: 1.5em; height: 1.5em; color: var(--brand-700); }
.notice p { max-width: 78ch; }
.notice--legal { border-left-color: var(--gold-500); background: var(--warn-050); }
.notice--legal .notice__icon { color: var(--gold-600); }
.notice--warn { border-left-color: var(--warn-600); background: var(--warn-050); }
.notice--warn .notice__icon { color: var(--warn-700); }
.notice--danger { border-left-color: var(--danger-600); background: var(--danger-050); }
.notice--danger .notice__icon { color: var(--danger-700); }
.notice--ok { border-left-color: var(--ok-600); background: var(--ok-050); }
.notice--ok .notice__icon { color: var(--ok-700); }

.policy-list { padding-left: 1.15rem; margin: 0 0 var(--sp-xs); }
.policy-list li { margin-bottom: var(--sp-2xs); }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--rule); }
.timeline li { position: relative; padding: 0 0 var(--sp-s) var(--sp-s); }
.timeline li::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-600);
  border: 2px solid var(--surface);
}
.timeline__time { display: block; font-family: var(--sans); font-size: var(--step--2); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }

/* ── 13. Tables ────────────────────────────────────────────────────────── */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.table-scroll table { min-width: 42rem; width: 100%; }

.table, .admin-table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: var(--step--1); background: var(--surface); }
.table th, .table td, .admin-table th, .admin-table td { text-align: left; padding: 0.72em 0.95em; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
.table thead th, .admin-table thead th {
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
.table tbody tr:last-child td, .admin-table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td, .admin-table tbody tr:hover td { background: var(--brand-050); }
.table td .btn { white-space: nowrap; }

.table-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: flex-end; }

.empty-state {
  text-align: center;
  padding: var(--sp-m) var(--sp-s);
  color: var(--ink-2);
  border: 1px dashed var(--rule-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
}
.empty-state__icon { width: 2.6em; height: 2.6em; color: var(--ink-3); margin-bottom: var(--sp-2xs); }
.empty-state h3 { font-size: var(--step-1); margin-bottom: var(--sp-3xs); }

.pagination { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin-top: var(--sp-s); }
.pagination a, .pagination span {
  font-family: var(--sans);
  font-size: var(--step--1);
  font-weight: 600;
  padding: 0.45em 0.85em;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--ink-2);
  background: var(--surface);
}
.pagination a:hover { background: var(--brand-050); color: var(--brand-800); border-color: var(--brand-500); }
.pagination [aria-current='page'] { background: var(--brand-700); color: var(--ink-inv); border-color: var(--brand-700); }
.pagination .disabled { opacity: .5; }

/* ── 14. Footer / impressum ────────────────────────────────────────────── */

.site-footer {
  background: var(--brand-900);
  color: rgba(255, 255, 255, .82);
  padding-block: var(--sp-l) var(--sp-m);
  margin-top: 0;
  font-family: var(--sans);
  font-size: var(--step--1);
  border-top: 3px solid var(--gold-500);
}
.site-footer h2, .site-footer h3 { color: var(--ink-inv); }
.site-footer a { color: rgba(255, 255, 255, .9); }
.site-footer a:hover { color: #fff; }

.impressum {
  display: grid;
  gap: var(--sp-m);
  grid-template-columns: 1fr;
}
@media (min-width: 54rem) { .impressum { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.impressum h3 {
  font-family: var(--sans);
  font-size: var(--step--2);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: var(--sp-2xs);
  padding-bottom: var(--sp-3xs);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
}
.impressum p { margin: 0 0 0.45rem; max-width: none; }
.impressum dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.85rem; }
.impressum dt { color: rgba(255, 255, 255, .62); font-size: var(--step--2); letter-spacing: 0.06em; text-transform: uppercase; }
.impressum dd { margin: 0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2xs) var(--sp-s);
  margin-top: var(--sp-m);
  padding-top: var(--sp-s);
  border-top: 1px solid rgba(255, 255, 255, .18);
}
.footer-links a { text-decoration: none; letter-spacing: 0.07em; text-transform: uppercase; font-size: var(--step--2); font-weight: 600; }
.footer-links a:hover { text-decoration: underline; }
.footer-note { margin-top: var(--sp-s); color: rgba(255, 255, 255, .62); max-width: 92ch; font-size: var(--step--2); line-height: 1.7; }
.footer-independence {
  margin-top: var(--sp-s);
  padding: var(--sp-xs) var(--sp-s);
  border: 1px solid rgba(255, 255, 255, .2);
  border-left: 3px solid var(--gold-500);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: rgba(255, 255, 255, .82);
  max-width: none;
}

/* ── 15. Consent banner (GDPR: nothing loads before opt-in) ────────────── */

.consent {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  background: var(--surface);
  border-top: 3px solid var(--brand-700);
  box-shadow: 0 -6px 24px rgba(18, 40, 63, .12);
  padding: var(--sp-s) 0;
  transform: translateY(105%);
  transition: transform 320ms var(--ease);
}
.consent.is-visible { transform: translateY(0); }
.consent__inner { display: grid; gap: var(--sp-s); }
@media (min-width: 58rem) { .consent__inner { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; } }
.consent h2 { font-family: var(--sans); font-size: var(--step-0); letter-spacing: 0; margin-bottom: var(--sp-3xs); }
.consent p { font-size: var(--step--1); color: var(--ink-2); }
.consent__actions { display: flex; flex-wrap: wrap; gap: var(--sp-2xs); }
.consent__options { display: grid; gap: var(--sp-2xs); margin-bottom: var(--sp-xs); }
.consent__opt {
  display: flex;
  gap: 0.65em;
  align-items: flex-start;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.6em 0.75em;
  font-family: var(--sans);
  font-size: var(--step--1);
}
.consent__opt input { margin-top: 0.25em; flex: none; accent-color: var(--brand-700); }
.consent__opt strong { display: block; color: var(--ink); }
.consent__opt span { color: var(--ink-3); font-size: var(--step--2); }

/* ── 16. Motion (progressive, reduced-motion safe) ─────────────────────── */

.js .reveal { opacity: 0; transform: translateY(12px); }
.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 560ms var(--ease), transform 560ms var(--ease);
}

@keyframes flash { 0% { background: var(--ok-100); } 100% { background: transparent; } }
.flash { animation: flash 900ms ease-out; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ── 17. Small screens ─────────────────────────────────────────────────── */

@media (max-width: 40rem) {
  .hero { padding-block: var(--sp-l) var(--sp-m); }
  .hero__actions .btn { width: 100%; }
  .btn-row .btn { width: 100%; }
  .btn-row--end .btn { width: auto; }
  .record { padding: var(--sp-s); }
  .record__qr img { width: 100px; height: 100px; }
  .steps li { padding-left: 2.75rem; }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .consent__actions .btn { width: 100%; }
  .utility-bar__inner { justify-content: center; text-align: center; }
  .site-header__inner { padding-block: var(--sp-xs); }
  .brand__seal { width: 38px; height: 38px; font-size: 0.88rem; }
  .form-actions .btn { width: 100%; }
  .form-actions__spacer { margin-left: 0; width: 100%; }
}

/* ── 18. Print: verification sheets must print like documents ──────────── */

@media print {
  .utility-bar, .site-header, .nav, .nav-toggle, .consent, .btn, .site-footer, .skip-link { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section, .hero, .page-head { padding-block: 12pt; background: #fff !important; border: 0; }
  .record { border: 1pt solid #000; box-shadow: none; }
  .badge, .scope-label, .status-chip { border: 1pt solid #000 !important; background: #fff !important; color: #000 !important; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 9pt; color: #444; }
}
