/* =====================================================================
   BIAP maintenance page. Static: no scripts and no outside requests.
   Colours follow the live blue Core Framework build (November 2026),
   shapes and type follow DESIGN.md; spacing uses the CF --space-* scale.
   Every text in --primary is large (bold, 1.1875rem or more): #2E87DA
   on white is 3.75:1, enough for large text only.
   ===================================================================== */

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

/* ---------- tokens ---------- */
:root {
  --white: #ffffff;
  --primary: #2E87DA;
  --primary-d-2: #1A68B3;
  --primary-l-2: #CDE3F8;
  --tint: #EEF5FC;
  --tint-2: #DCEBFA;
  --line: #D6E4F2;
  --navy: #0D3B66;
  --ink: #243447;
  --muted: #475B72;
  --green: #16D28A;
  --green-deep: #0B7A55;
  --on-navy: #C9DDF2;

  --shadow-s: 0 0.0625rem 0.125rem rgba(13, 59, 102, .06), 0 0.25rem 0.875rem rgba(13, 59, 102, .06);
  --shadow-m: 0 0.125rem 0.25rem rgba(13, 59, 102, .05), 0 0.75rem 2rem rgba(13, 59, 102, .10);

  --space-4xs: clamp(0.25rem, calc(0vw + 0.25rem), 0.25rem);
  --space-3xs: clamp(0.38rem, calc(0.19vw + 0.33rem), 0.5rem);
  --space-2xs: clamp(0.5rem, calc(0.19vw + 0.46rem), 0.63rem);
  --space-xs: clamp(0.63rem, calc(0.38vw + 0.54rem), 0.88rem);
  --space-s: clamp(0.88rem, calc(0.38vw + 0.79rem), 1.13rem);
  --space-m: clamp(1rem, calc(0.77vw + 0.83rem), 1.5rem);
  --space-l: clamp(1.25rem, calc(1.15vw + 0.99rem), 2rem);
  --space-xl: clamp(1.75rem, calc(1.54vw + 1.4rem), 2.75rem);
  --space-2xl: clamp(2.5rem, calc(2.31vw + 1.98rem), 4rem);
  --space-3xl: clamp(3.5rem, calc(3.08vw + 2.81rem), 5.5rem);
  --space-4xl: clamp(4rem, calc(4.62vw + 2.96rem), 7rem);
  --section-space: var(--space-4xl);

  --radius-card: 1.25rem;
  --radius-panel: 1.5rem;
  --radius-full: 999rem;

  --font: "Figtree", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(1rem, calc(1.54vw + 0.65rem), 2rem);
  --max-screen-width: 87.5rem;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--space-m); }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--primary-l-2); color: var(--navy); }

:focus { outline: none; }
:focus-visible { outline: 0.1875rem solid var(--primary); outline-offset: 0.1875rem; border-radius: 0.5rem; }
.site-footer :focus-visible { outline-color: var(--white); }
#main:focus { outline: none; }

a { color: var(--primary); text-decoration-thickness: 0.0625rem; text-underline-offset: .22em; }
a:hover { color: var(--primary-d-2); }
img { display: block; max-width: 100%; }
p, address { margin: 0; font-style: normal; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.container { width: min(100% - 2 * var(--gutter), var(--max-screen-width)); margin-inline: auto; }
.nowrap { white-space: nowrap; }
.sr-only {
  position: absolute !important; width: 0.0625rem; height: 0.0625rem; padding: 0; margin: -0.0625rem;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.i {
  width: 1.375rem; height: 1.375rem; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.skip-link {
  position: absolute; left: var(--space-m); top: -5rem; z-index: 10;
  padding: var(--space-xs) var(--space-m); border-radius: var(--radius-full);
  background: var(--navy); color: var(--white); font-weight: 700; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus, .skip-link:hover { top: var(--space-m); color: var(--white); }
.skip-link:focus-visible { outline-color: var(--navy); }

/* ---------- small marks ---------- */
.dot { width: 0.5rem; height: 0.5rem; flex: none; border-radius: 50%; background: var(--green); }

.code-pill {
  display: inline-grid; place-items: center; min-width: 2.75rem; height: 2rem; padding-inline: var(--space-2xs);
  border-radius: var(--radius-full); background: var(--white); color: var(--navy);
  font-size: 0.875rem; font-weight: 800; line-height: 1; letter-spacing: .04em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
  min-height: 3.25rem; padding-inline: var(--space-l); border: 0.125rem solid transparent; border-radius: var(--radius-full);
  font: 700 1.1875rem/1.2 var(--font); text-decoration: none;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(0.0625rem); }
.btn--primary { background: var(--primary); color: var(--white); }
.btn--primary:hover { background: var(--primary-d-2); color: var(--white); box-shadow: 0 0.375rem 1.125rem rgba(46, 135, 218, .3); }
.btn--outline { background: var(--white); color: var(--navy); border-color: var(--primary); }
.btn--outline:hover { background: var(--tint); color: var(--navy); }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 2; background: var(--white); border-bottom: 0.0625rem solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); min-height: 5.75rem; }
.site-header__logo { width: auto; height: 4rem; }

.lang-nav { display: flex; gap: 0.125rem; padding: var(--space-4xs); border-radius: var(--radius-full); background: var(--tint); }
.lang-nav__link {
  display: inline-grid; place-items: center; min-width: 2.75rem; height: 2.25rem; padding-inline: var(--space-3xs);
  border-radius: var(--radius-full); color: var(--muted); text-decoration: none;
  font-size: 0.875rem; font-weight: 700; line-height: 1; letter-spacing: .04em;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.lang-nav__link:hover { color: var(--navy); background: rgba(255, 255, 255, .6); }
.lang-nav__link[aria-current="true"] { background: var(--white); color: var(--navy); box-shadow: var(--shadow-s); }

/* ---------- hero: copy left, contact card right, on the bleeding tint shape ---------- */
.hero { position: relative; overflow: hidden; padding-block: var(--space-3xl) var(--space-4xl); }
.hero::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: var(--space-xl);
  width: calc(50% + 9.375rem);
  background: var(--tint);
  border-radius: 0 4rem 22.5rem 0;
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: var(--space-3xl); align-items: center;
}
.hero__content { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-l); }
.hero__title {
  max-width: 11.5em;
  font-size: clamp(2.375rem, calc(3.2vw + 1.3rem), 4.25rem);
  line-height: 1.02;
  letter-spacing: -.028em;
}
.hero__intro { display: flex; flex-direction: column; gap: var(--space-s); max-width: 36em; font-size: 1.1875rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-xs); padding-top: var(--space-3xs); }

.contact-card {
  display: flex; flex-direction: column; gap: var(--space-l);
  padding: var(--space-xl); border-radius: var(--radius-panel);
  background: var(--white); box-shadow: var(--shadow-m);
}
.contact-card__head { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-xs); }
.contact-card__icon {
  display: grid; place-items: center; width: 3.25rem; height: 3.25rem; border-radius: 50%;
  background: var(--tint); color: var(--primary);
}
.contact-card__title { font-size: 1.375rem; letter-spacing: -.01em; }
.contact-card__email {
  font-size: clamp(1.375rem, calc(0.77vw + 1.2rem), 1.75rem); font-weight: 800; line-height: 1.2; letter-spacing: -.015em;
  overflow-wrap: anywhere; text-decoration: none;
}
.contact-card__email:hover { text-decoration: underline; text-decoration-thickness: 0.125rem; }

.check-list { display: flex; flex-direction: column; gap: var(--space-2xs); font-size: 1rem; line-height: 1.45; }
.check-list__item { display: flex; align-items: flex-start; gap: var(--space-2xs); }
.check-list__item .i { width: 1.25rem; height: 1.25rem; margin-top: 0.0625rem; color: var(--primary); }

.contact-card__person {
  display: flex; align-items: center; gap: var(--space-s);
  padding-top: var(--space-l); border-top: 0.0625rem solid var(--tint-2);
}
.contact-card__avatar {
  display: grid; place-items: center; width: 3rem; height: 3rem; flex: none; border-radius: 50%;
  background: var(--tint); color: var(--primary);
}
.contact-card__person-text { display: flex; flex-direction: column; line-height: 1.3; }
.contact-card__role { font-size: 0.875rem; font-weight: 600; color: var(--muted); }
.contact-card__name { font-size: 1.1875rem; font-weight: 800; color: var(--navy); }

/* ---------- section heads ---------- */
.section-head { display: flex; flex-direction: column; gap: var(--space-s); }
.section-title { font-size: clamp(2rem, calc(1.9vw + 1.35rem), 3.125rem); }
.section-lead { max-width: 40em; font-size: 1.1875rem; color: var(--muted); }

/* ---------- the notice in FR / DE / ES ---------- */
.notice-langs { padding-block: var(--space-xl) var(--section-space); }
.notice-langs__inner { display: flex; flex-direction: column; gap: var(--space-2xl); }
.lang-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-m); }
.lang-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-s);
  padding: var(--space-xl); border-radius: var(--radius-card); background: var(--tint);
}
.lang-card__label { display: flex; align-items: center; gap: var(--space-xs); font-size: 1rem; font-weight: 700; color: var(--navy); }
.lang-card__title { font-size: 1.5rem; letter-spacing: -.015em; line-height: 1.2; }
.lang-card__text { flex: 1; font-size: 1rem; line-height: 1.55; }
.lang-card__links { display: flex; flex-direction: column; align-items: flex-start; }
.lang-card__link {
  display: inline-flex; align-items: center; gap: var(--space-2xs); min-height: 2.75rem;
  color: var(--primary); font-size: 1.1875rem; font-weight: 700; text-decoration: none;
}
.lang-card__link:hover { color: var(--primary-d-2); }
.lang-card__link:hover span { text-decoration: underline; }
.lang-card:target { box-shadow: 0 0 0 0.1875rem var(--primary); }

/* ---------- about ---------- */
.about { padding-block: var(--section-space); background: var(--tint); }
.about a { color: var(--primary); }
.about__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: var(--space-3xl); align-items: start;
}
.about__text { display: flex; flex-direction: column; gap: var(--space-l); }
.about__lead { max-width: 34em; font-size: 1.3125rem; font-weight: 700; line-height: 1.4; color: var(--navy); }
.about__body { display: flex; flex-direction: column; gap: var(--space-s); max-width: 40em; }

.facts { display: flex; flex-direction: column; gap: var(--space-s); }
.facts__item {
  display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); align-items: center; gap: var(--space-m);
  padding: var(--space-l); border-radius: var(--radius-card); background: var(--white); box-shadow: var(--shadow-s);
}
.facts__number {
  font-size: 2.25rem; font-weight: 800; line-height: 1; letter-spacing: -.02em;
  color: var(--primary); font-variant-numeric: tabular-nums;
}
.facts__text { font-size: 1rem; line-height: 1.45; color: var(--ink); }

/* ---------- footer ---------- */
.site-footer { padding-block: var(--space-3xl) var(--space-l); background: var(--navy); color: var(--white); }
.site-footer__inner { display: flex; flex-direction: column; gap: var(--space-2xl); }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--space-2xl); align-items: start; }
.site-footer__brand { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-l); }
.site-footer__logo { width: auto; height: 3.5rem; }
.site-footer__names { display: flex; flex-direction: column; gap: var(--space-4xs); font-size: 1rem; line-height: 1.45; color: var(--on-navy); }
.site-footer__names li:first-child { font-size: 1.25rem; font-weight: 800; line-height: 1.3; color: var(--white); }
.site-footer__contact { display: flex; flex-direction: column; gap: var(--space-s); }
.site-footer__heading { font-size: 1.0625rem; letter-spacing: 0; color: var(--white); }
.site-footer__address { display: flex; flex-direction: column; gap: var(--space-xs); font-size: 1rem; line-height: 1.5; color: var(--on-navy); }
.site-footer__line { display: flex; align-items: flex-start; gap: var(--space-xs); }
.site-footer__line .i { width: 1.25rem; height: 1.25rem; margin-top: 0.125rem; color: var(--white); }
.site-footer__email { align-self: flex-start; color: var(--white); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .4); }
.site-footer__email:hover { color: var(--white); text-decoration-color: var(--white); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2xs) var(--space-l);
  padding-top: var(--space-l); border-top: 0.0625rem solid rgba(255, 255, 255, .16);
  font-size: 0.9375rem; line-height: 1.5; color: var(--on-navy);
}
.site-footer__status { display: inline-flex; align-items: center; gap: var(--space-2xs); }

/* ---------- recommendations page (recommendations/index.html) ---------- */
.btn--sm { min-height: 2.75rem; padding-inline: var(--space-m); font-size: 1rem; }
.site-header__home { display: inline-flex; border-radius: 0.625rem; }

.rec-page { display: flex; flex-direction: column; gap: var(--space-xl); padding-block: var(--space-2xl) var(--section-space); }
.rec-page__head { display: flex; flex-direction: column; gap: var(--space-2xs); }
.rec-page__title { font-size: clamp(2.25rem, calc(2.5vw + 1.4rem), 3.75rem); line-height: 1.04; letter-spacing: -.028em; }
.rec-page__intro { max-width: 38em; font-size: 1.1875rem; color: var(--muted); }

/* Commission filter: radio chips; recommendations/filter.css hides the other commissions with :has(). */
.rec-filter { min-width: 0; margin: 0; padding: 0; border: 0; }
.rec-filter__legend { padding: 0 0 var(--space-2xs); font-size: 1rem; font-weight: 700; color: var(--navy); }
.rec-filter__options { display: flex; flex-wrap: wrap; gap: var(--space-3xs); padding-block: var(--space-4xs); }
.rec-filter__input {
  position: absolute; width: 0.0625rem; height: 0.0625rem; margin: -0.0625rem; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; opacity: 0;
}
.rec-filter__chip {
  display: inline-flex; align-items: center; gap: var(--space-3xs); min-height: 2.25rem; padding-inline: var(--space-xs);
  border-radius: var(--radius-full); background: var(--tint); color: var(--navy);
  font-size: 0.875rem; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.rec-filter__chip:hover { background: var(--tint-2); }
.rec-filter__code { font-weight: 800; font-variant-numeric: tabular-nums; }
.rec-filter__input:checked + .rec-filter__chip { background: var(--navy); color: var(--white); }
.rec-filter__input:focus-visible + .rec-filter__chip { outline: 0.1875rem solid var(--primary); outline-offset: 0.125rem; }

.rec-list { margin: 0; padding: 0; list-style: none; border-top: 0.0625rem solid var(--line); }
.rec-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2xs) var(--space-l);
  padding-block: var(--space-s); border-bottom: 0.0625rem solid var(--line);
}
.rec-row__title { display: flex; flex: 1 1 28rem; gap: var(--space-xs); font-size: 1.0625rem; font-weight: 700; line-height: 1.4; color: var(--navy); text-wrap: pretty; }
.rec-row__id { flex: none; min-width: 3.25rem; color: var(--muted); font-weight: 800; font-variant-numeric: tabular-nums; }
.rec-row__langs { display: flex; flex-wrap: wrap; gap: var(--space-3xs); margin: 0; padding: 0; list-style: none; }

/* Language download button: navy code in a blue pill. */
.lang-slot {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-4xs);
  min-width: 3.75rem; height: 2.5rem; padding-inline: var(--space-2xs);
  border: 0.125rem solid var(--primary); border-radius: var(--radius-full);
  background: var(--white); color: var(--navy); text-decoration: none;
  font-size: 0.875rem; font-weight: 800; line-height: 1; letter-spacing: .04em;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.lang-slot .i { width: 1rem; height: 1rem; color: var(--primary); stroke-width: 2.2; }
.lang-slot:hover { background: var(--tint); border-color: var(--primary-d-2); color: var(--navy); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  body { font-size: 1.0625rem; }
  .hero__grid, .about__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__grid { gap: var(--space-2xl); }
  /* Stacked: the tint runs behind copy and card; the card overhangs its bottom-right curve. */
  .hero { padding-bottom: var(--space-2xl); }
  .hero::before { width: 100%; bottom: 0; border-radius: 0 0 12.5rem 0; }
  .contact-card { max-width: 36rem; }
  .lang-cards { grid-template-columns: minmax(0, 1fr); }
  .lang-card { max-width: 48rem; }
}

@media (max-width: 720px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr); }
  /* Phones: the filter chips stay on one line and scroll sideways. */
  .rec-filter__options { flex-wrap: nowrap; overflow-x: auto; padding-inline: var(--space-4xs); scrollbar-width: thin; }
}

@media (max-width: 600px) {
  .site-header__bar { min-height: 4.5rem; }
  .site-header__logo { height: 2.75rem; }
  .hero::before { border-radius: 0 0 8.75rem 0; }
  .hero__intro, .section-lead { font-size: 1.0625rem; }
  .hero__actions .btn { flex: 1 1 100%; }
  .about__lead { font-size: 1.1875rem; }
  .facts__item { grid-template-columns: 4.25rem minmax(0, 1fr); }
  .facts__number { font-size: 1.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
