/* ==========================================================================
   Youth Line Family — Design System
   Single stylesheet. Shared by the static preview and the WordPress theme.
   Reference aesthetic: entropicventures.eu (Swiss/editorial, typographic,
   monochrome, hairline rules, square corners) + one YouthLine accent.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Fonts
   Self-hosted for GDPR: loading fonts from the Google Fonts CDN transmits
   visitor IPs to Google and has been ruled a GDPR breach in German courts.
   Drop the .woff2 files into assets/fonts/ and these @font-face rules pick
   them up. Until then the system stack below renders a very close fallback.
   -------------------------------------------------------------------------- */

/*
@font-face {
  font-family: 'YL Sans';
  src: url('../fonts/InterTight-Variable.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}
*/

:root {
  --font-sans: 'YL Sans', 'Inter Tight', 'Inter', -apple-system,
    BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  /* ---- Colour ---------------------------------------------------------- */
  --ink:        #0A0A0A;   /* headings, solid buttons */
  --ink-80:     #2E2E2E;   /* body copy */
  --ink-55:     #6E6E6E;   /* kickers, meta, captions */
  --ink-35:     #A6A6A6;   /* disabled, subtle meta */
  --rule:       #E3E3E1;   /* hairlines and card borders */
  --rule-dark:  #2A2A2A;   /* hairlines on dark sections */
  --paper:      #FFFFFF;
  --paper-2:    #F6F6F4;   /* alternating band */
  --paper-3:    #EFEFEC;

  /* Single accent. Warm, energetic, still credible for donors — and a
     deliberate echo of the peach in the current youth-line.org palette. */
  --accent:     #E8452B;
  --accent-ink: #C4341D;   /* accessible on white for text links */

  /* ---- Type scale (fluid) ---------------------------------------------- */
  --step--1: clamp(0.80rem, 0.78rem + 0.10vw, 0.86rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.18vw, 1.10rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.36vw, 1.42rem);
  --step-2:  clamp(1.50rem, 1.34rem + 0.72vw, 2.00rem);
  --step-3:  clamp(1.90rem, 1.58rem + 1.45vw, 2.90rem);
  --step-4:  clamp(2.40rem, 1.80rem + 2.70vw, 4.20rem);
  --step-5:  clamp(3.00rem, 1.90rem + 4.90vw, 6.00rem);

  /* ---- Space ------------------------------------------------------------ */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;
  --sp-10: 8rem;

  --wrap: 1280px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 4rem);
  --header-h: 76px;
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink-80);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

h1, h2, h3, h4, h5 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); letter-spacing: -0.025em; }
h4 { font-size: var(--step-1); letter-spacing: -0.02em; }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

ul, ol { margin: 0 0 1em; padding-left: 1.15em; }
li { margin-bottom: 0.35em; }

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

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: #fff; padding: var(--sp-3) var(--sp-5);
}
.skip-link:focus { left: 0; }

/* --------------------------------------------------------------------------
   3. Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: var(--wrap-narrow); }

.section { padding-block: clamp(3.5rem, 2rem + 6vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section--tint { background: var(--paper-2); }
/* Alternating band, used to separate the Key Action groups on /projects.
   --paper-2 is the token reserved for exactly this in the palette above. */
.section--alt { background: var(--paper-2); }

/* Programme of activities on a project page. A hairline per row rather than
   bullets — a KA2 partnership can run to a dozen events and bullets at that
   length read as a shopping list. */
.activity-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.activity-list li {
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--rule);
  display: flex;
  gap: var(--sp-4);
  align-items: baseline;
}
.activity-list li::before {
  content: counter(list-item);
  counter-increment: list-item;
  color: var(--ink-35);
  font-variant-numeric: tabular-nums;
  font-size: var(--step--1);
  min-width: 2ch;
}
.activity-list { counter-reset: list-item; }

.section--dark { background: var(--ink); color: #D9D9D9; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--rule-top { border-top: 1px solid var(--rule); }

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

@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   4. Type helpers
   -------------------------------------------------------------------------- */

/* The letterspaced uppercase label above every section heading. */
.kicker {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-55);
  margin-bottom: var(--sp-4);
}

.kicker--accent { color: var(--accent-ink); }

.lede {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-80);
  letter-spacing: -0.012em;
}

.meta {
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-55);
  font-weight: 600;
}

.subtitle {
  font-style: italic;
  color: var(--ink-55);
  margin-top: var(--sp-2);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--sp-5);
  margin-bottom: var(--sp-7);
}
.section-head__intro { max-width: 42ch; color: var(--ink-55); }

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  padding: 0.95rem 1.6rem;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

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

.btn--sm { padding: 0.65rem 1.1rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* Small black tag pill used at the foot of cards. */
.tag {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  background: var(--ink);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
}
.tag--accent { background: var(--accent); }
.tag--ghost { background: transparent; color: var(--ink-55); border: 1px solid var(--rule); }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

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

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.brand__mark {
  width: 30px; height: 30px;
  flex: none;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  letter-spacing: 0;
  font-weight: 800;
}

/* Supplied logo files are RGB with a baked-in white background, so they can
   only sit on white. Once transparent PNG or SVG originals arrive this can be
   used on the dark footer too. */
.brand__logo { height: 46px; width: auto; }
@media (max-width: 480px) { .brand__logo { height: 36px; } }

.nav { display: flex; align-items: center; gap: var(--sp-6); }
.nav a {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding-block: var(--sp-2);
}
.nav a:hover { color: var(--accent-ink); }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
/* .nav a is more specific than .btn, so restate the button colours here. */
.nav a.btn { color: #fff; }
.nav a.btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  border: 1px solid var(--ink);
  background: transparent;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--rule);
    padding: var(--sp-4) var(--gutter) var(--sp-6);
  }
  .nav.is-open { display: flex; }
  .nav a { padding-block: var(--sp-4); border-bottom: 1px solid var(--rule); }
  .nav .btn { margin-top: var(--sp-4); justify-content: center; }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero { padding-block: clamp(3.5rem, 2rem + 7vw, 8rem) clamp(3rem, 2rem + 4vw, 5rem); }
.hero__title { max-width: 16ch; }
.hero__lede { max-width: 54ch; margin-top: var(--sp-6); }
.hero .btn-row { margin-top: var(--sp-7); }

.hero__media {
  margin-top: clamp(2.5rem, 1.5rem + 4vw, 5rem);
  aspect-ratio: 21 / 9;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  color: var(--ink-35);
  overflow: hidden;
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* --------------------------------------------------------------------------
   8. Cards
   -------------------------------------------------------------------------- */

.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--rule);
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, transform .18s ease;
}
a.card:hover { border-color: var(--ink); transform: translateY(-2px); }

.card__media {
  aspect-ratio: 16 / 10;
  background: var(--paper-3);
  border-bottom: 1px solid var(--rule);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink-35);
}
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card__media--square { aspect-ratio: 1 / 1; }

/* Empty state for records with no photograph. Deliberately typographic rather
   than a stock or generated image — see yl_card_media() for why. The diagonal
   hatch is drawn in CSS, so it costs nothing and never 404s. */
.card__media--empty {
  background:
    repeating-linear-gradient(
      135deg,
      transparent 0 11px,
      var(--rule) 11px 12px
    ),
    var(--paper-2);
  position: relative;
}
.card__media--empty .card__mono {
  font-size: var(--step-4);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: var(--sp-3) var(--sp-4);
  line-height: 1;
}
a:hover > .card__media--empty .card__mono,
a:hover .card__media--empty .card__mono { border-color: var(--accent); color: var(--accent); }

.card__body { padding: var(--sp-5); display: flex; flex-direction: column; flex: 1; gap: var(--sp-3); }

.card__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-55);
}

.card__title { font-size: var(--step-1); }
.card__text { color: var(--ink-80); font-size: 0.95rem; }
.card__foot { margin-top: auto; padding-top: var(--sp-4); }

/* Organisation card — country code plate above the name.
   Deliberately typographic rather than an emoji flag: emoji flags do not
   render at all on Windows and are inconsistent across platforms. This is
   also closer to the reference aesthetic. Replace with the organisation's
   real logo once supplied. */
.org-card__code {
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  color: var(--ink);
}
.org-card .card__media {
  aspect-ratio: 16 / 9;
  background: var(--paper-2);
  color: var(--ink);
}
a.org-card:hover .card__media { background: var(--ink); }
a.org-card:hover .org-card__code { color: #fff; }

/* Logo lockup. The supplied marks are square with a rainbow ring, so they get a
   white plate and generous padding rather than being cropped to the card. */
/* Specificity note: `.org-card .card__media` above is (0,2,0), so these
   overrides have to match it — a plain `.card__media--logo` would lose. */
.org-card .card__media--logo {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  padding: var(--sp-5);
  /* Near-square. The supplied marks are square and the country name sits at
     the bottom of the ring, so a wide crop cuts off the one part that tells
     the twelve logos apart. */
  aspect-ratio: 5 / 4;
}
.card__media--logo picture { display: contents; }
.org-card .card__media--logo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
}
a.org-card:hover .card__media--logo { background: var(--paper-2); }

.org-head { display: flex; align-items: center; gap: var(--sp-6); }
.org-head__logo { flex: none; width: 128px; }
.org-head__logo img { width: 100%; height: auto; }
.org-head .page-head__title { max-width: none; }
@media (max-width: 640px) {
  .org-head { gap: var(--sp-5); }
  .org-head__logo { width: 84px; }
}

/* --------------------------------------------------------------------------
   9. Column feature grid (vertical hairline rules, as on the reference)
   -------------------------------------------------------------------------- */

.cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--rule);
}
.cols > * {
  padding: var(--sp-6) var(--sp-5);
  border-right: 1px solid var(--rule);
}
.cols > *:first-child { padding-left: 0; }
.cols > *:last-child { border-right: 0; }
.cols h3 { font-size: var(--step-1); margin-bottom: var(--sp-3); }
.cols p { font-size: 0.95rem; color: var(--ink-80); }

@media (max-width: 1000px) { .cols { grid-template-columns: repeat(2, minmax(0,1fr)); } .cols > * { padding-left: var(--sp-5); border-bottom: 1px solid var(--rule); } .cols > *:first-child { padding-left: var(--sp-5); } }
@media (max-width: 560px)  { .cols { grid-template-columns: minmax(0,1fr); } .cols > * { border-right: 0; padding-inline: 0; } .cols > *:first-child { padding-left: 0; } }

/* --------------------------------------------------------------------------
   10. Impact figures
   -------------------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--sp-5);
  border-top: 1px solid var(--rule-dark);
  padding-top: var(--sp-6);
}
.stat__num {
  font-size: var(--step-3);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff;
}
.stat__label {
  display: block;
  margin-top: var(--sp-3);
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9A9A9A;
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(3, minmax(0,1fr)); gap: var(--sp-6); } }
@media (max-width: 480px) { .stats { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* --------------------------------------------------------------------------
   11. Instagram strip
   -------------------------------------------------------------------------- */

.ig-grid { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: var(--sp-3); }
.ig-tile {
  aspect-ratio: 1/1;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  color: var(--ink-35);
  font-size: 0.75rem;
  text-decoration: none;
  transition: border-color .18s ease;
}
.ig-tile:hover { border-color: var(--ink); }
@media (max-width: 900px) { .ig-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }

.notice {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
  padding: var(--sp-4) var(--sp-5);
  font-size: 0.9rem;
  color: var(--ink-55);
}

/* --------------------------------------------------------------------------
   12. Page header (interior pages)
   -------------------------------------------------------------------------- */

.page-head { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) var(--sp-7); border-bottom: 1px solid var(--rule); }
.page-head__title { max-width: 20ch; }
.page-head__lede { max-width: 60ch; margin-top: var(--sp-5); }

.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--sp-3); font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-55); margin-bottom: var(--sp-5); font-weight: 600; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-ink); }
.breadcrumb span[aria-hidden] { color: var(--ink-35); }

/* Local (within-organisation) navigation */
.subnav { border-bottom: 1px solid var(--rule); background: var(--paper); position: sticky; top: var(--header-h); z-index: 90; }
.subnav__inner { display: flex; gap: var(--sp-6); overflow-x: auto; scrollbar-width: none; }
.subnav__inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none;
  padding: var(--sp-4) 0;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-55);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.subnav a:hover { color: var(--ink); }
.subnav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

/* --------------------------------------------------------------------------
   13. Definition / fact table (project facts, partner info)
   -------------------------------------------------------------------------- */

.facts { border-top: 1px solid var(--rule); }
.facts__row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--sp-5);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--rule);
}
.facts__key { font-size: var(--step--1); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-55); }
.facts__val { color: var(--ink); }
@media (max-width: 640px) { .facts__row { grid-template-columns: minmax(0,1fr); gap: var(--sp-2); } }

/* --------------------------------------------------------------------------
   14. Filter bar (library)
   -------------------------------------------------------------------------- */

.filters { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.filters button, .filters a {
  border: 1px solid var(--rule);
  background: transparent;
  padding: 0.55rem 0.95rem;
  font: inherit;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-55);
  cursor: pointer;
  text-decoration: none;
}
.filters button:hover, .filters a:hover { border-color: var(--ink); color: var(--ink); }
.filters [aria-pressed="true"], .filters .is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Resource row */
.res-list { border-top: 1px solid var(--rule); }
.res {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-5);
  align-items: center;
  padding: var(--sp-5) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
}
.res:hover .res__title { color: var(--accent-ink); }
.res__title { font-size: var(--step-1); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.res__meta { margin-top: var(--sp-2); font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-55); font-weight: 600; }
@media (max-width: 640px) { .res { grid-template-columns: minmax(0,1fr); } }

/* --------------------------------------------------------------------------
   15. Team
   -------------------------------------------------------------------------- */

.person__photo {
  aspect-ratio: 1/1;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  color: var(--ink-35);
  margin-bottom: var(--sp-4);
  overflow: hidden;
}
.person__photo img { width:100%; height:100%; object-fit: cover; }
.person__name { font-size: var(--step-1); }
.person__role { font-size: var(--step--1); letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-ink); font-weight: 700; margin-top: var(--sp-2); }
.person__bio { font-size: 0.92rem; margin-top: var(--sp-3); }

/* --------------------------------------------------------------------------
   16. Prose (editor content)
   -------------------------------------------------------------------------- */

.prose { max-width: 68ch; }
.prose h2 { font-size: var(--step-2); margin-top: var(--sp-8); margin-bottom: var(--sp-4); }
.prose h3 { font-size: var(--step-1); margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose > :first-child { margin-top: 0; }
.prose a { color: var(--accent-ink); }

/* --------------------------------------------------------------------------
   17. Erasmus+ disclaimer
   -------------------------------------------------------------------------- */

.eu-disclaimer {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--sp-5);
  align-items: center;
  border: 1px solid var(--rule);
  padding: var(--sp-5);
  font-size: 0.82rem;
  color: var(--ink-55);
  line-height: 1.5;
}
.eu-disclaimer__flag {
  aspect-ratio: 3/2;
  background: #003399;
  color: #FFCC00;
  display: grid; place-items: center;
  font-size: 0.6rem; text-align: center; padding: 4px;
}
@media (max-width: 560px) { .eu-disclaimer { grid-template-columns: minmax(0,1fr); } }

/* --------------------------------------------------------------------------
   18. Footer
   -------------------------------------------------------------------------- */

.site-footer { background: var(--ink); color: #9A9A9A; padding-block: var(--sp-9) var(--sp-6); font-size: 0.92rem; }
.site-footer a { color: #D9D9D9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-7); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: minmax(0,1fr); } }
.footer-col h4 { color: #fff; font-size: var(--step--1); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: var(--sp-4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: var(--sp-3); }
.footer-bottom {
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--rule-dark);
  display: flex; flex-wrap: wrap; gap: var(--sp-5);
  justify-content: space-between;
  font-size: 0.82rem;
  color: #6E6E6E;
}

/* --------------------------------------------------------------------------
   19. Utilities
   -------------------------------------------------------------------------- */

.stack > * + * { margin-top: var(--sp-4); }
.stack-lg > * + * { margin-top: var(--sp-6); }
.mt-6 { margin-top: var(--sp-6); }
.mt-7 { margin-top: var(--sp-7); }
.mb-6 { margin-bottom: var(--sp-6); }
.text-muted { color: var(--ink-55); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

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

@media print {
  .site-header, .subnav, .site-footer, .btn { display: none !important; }
  body { color: #000; }
}
