/* ============================================================
   Around Europe Fest 2026 — Design System
   Mobile-first. Brand palette from the official press kit.
   ============================================================ */

:root {
  /* Brand palette */
  --navy:        #002B7F;
  --navy-deep:   #001A52;
  --blue:        #1B4DB1;
  --blue-bright: #2E6BE0;
  --blue-soft:   #EAF1FF;
  --gold:        #FFCC00;
  --gold-deep:   #F4B800;
  --green:       #3E9B3E;
  --green-deep:  #2E7D2E;
  --orange:      #F08A24;
  --purple:      #6B4FA1;
  --red:         #E2342B;

  --bg:          #F6F8FC;
  --surface:     #FFFFFF;
  --ink:         #14213D;
  --muted:       #5B6B86;
  --line:        #E2E8F2;

  /* Type */
  --font-head: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-script: "Caveat", "Segoe Script", cursive;

  /* Shape & depth */
  --radius:    18px;
  --radius-sm: 12px;
  --shadow:    0 10px 30px rgba(0, 43, 127, .10);
  --shadow-lg: 0 20px 50px rgba(0, 43, 127, .18);
  --ring:      0 0 0 3px rgba(46, 107, 224, .35);

  --header-h: 72px;
  --wrap: 1080px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.08; letter-spacing: .01em; }

/* ---------- Layout helpers ---------- */
.wrap { width: min(100% - 36px, var(--wrap)); margin-inline: auto; }
.section { padding: 46px 0; }
.section--tight { padding: 30px 0; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--font-head);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue-bright);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; border-radius: 2px; background: var(--green); }

.section-title { font-size: clamp(1.6rem, 6vw, 2.4rem); color: var(--navy); margin: 10px 0 6px; text-transform: uppercase; }
.section-lead { color: var(--muted); max-width: 60ch; }
.script { font-family: var(--font-script); color: var(--green-deep); font-size: 1.6rem; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px; font-family: var(--font-head);
  font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: .92rem;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--gold { background: var(--gold); color: var(--navy); box-shadow: 0 8px 18px rgba(244,184,0,.4); }
.btn--gold:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-deep); transform: translateY(-2px); }
.btn--ghost { border: 2px solid rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--green { background: var(--green); color: #fff; }
.btn--green:hover { background: var(--green-deep); transform: translateY(-2px); }

/* ============================================================
   Header / Nav
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(0, 26, 82, .82);
  backdrop-filter: saturate(150%) blur(10px);
  -webkit-backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.brand img { width: 54px; height: 54px; border-radius: 50%; background: #fff; object-fit: cover;
  transform: translateY(3px); box-shadow: 0 2px 10px rgba(0,0,0,.3), 0 0 0 2px rgba(255,255,255,.18); }
.brand b { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em; font-size: 1rem; line-height: 1; }
.brand b span { color: var(--gold); }
.brand small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .62rem; letter-spacing: .14em; color: rgba(255,255,255,.7); margin-top: 3px; }

.nav-toggle { display: inline-flex; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  background: var(--navy-deep);
  display: grid; gap: 4px; padding: 14px 18px 22px;
  transform: translateY(-130%); transition: transform .3s cubic-bezier(.4,0,.2,1);
  box-shadow: var(--shadow-lg);
}
.nav.open { transform: translateY(0); }
.nav a { color: #fff; padding: 12px 10px; border-radius: 10px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; font-size: 1rem; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.10); color: var(--gold); }
.nav .btn { margin-top: 8px; }

/* Persistent switcher for the two partner directories */
.section-tabs {
  display: inline-flex; gap: 4px; margin-bottom: 24px; padding: 4px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--blue-soft);
  box-shadow: var(--shadow);
}
.section-tabs a {
  min-width: 94px; padding: 8px 16px; border-radius: 999px; color: var(--navy);
  text-align: center; font-family: var(--font-head); font-size: .84rem;
  font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
}
.section-tabs a:hover { background: rgba(255,255,255,.72); }
.section-tabs a[aria-current="page"] { color: #fff; background: var(--navy); box-shadow: 0 5px 12px rgba(0,43,127,.2); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% -10%, rgba(46,107,224,.55), transparent 60%),
    radial-gradient(90% 80% at 10% 110%, rgba(62,155,62,.4), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.hero::before { /* EU-star dust */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,204,0,.9) 1.4px, transparent 1.6px);
  background-size: 46px 46px; background-position: 0 0;
  -webkit-mask-image: radial-gradient(120% 80% at 50% 0%, #000, transparent 70%);
          mask-image: radial-gradient(120% 80% at 50% 0%, #000, transparent 70%);
}
.hero__inner { position: relative; padding: 40px 0 54px; text-align: center; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 999px;
  background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.2);
  font-family: var(--font-head); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; }
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(255,204,0,.25); }
.hero h1 { font-size: clamp(2.5rem, 13vw, 5rem); text-transform: uppercase; margin: 16px 0 4px; }
.hero h1 .yr { color: var(--gold); }
.hero h1 .fest { color: var(--green); font-style: italic; }
.hero__tagline { font-family: var(--font-script); font-size: clamp(1.7rem, 8vw, 2.8rem); color: #fff; line-height: 1.1; }
.hero__tagline u { text-decoration-color: var(--gold); text-underline-offset: 6px; }
.hero__sub { color: rgba(255,255,255,.82); max-width: 46ch; margin: 14px auto 0; }
.hero__meta { display: inline-flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 18px; font-weight: 600; }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* Countdown */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 420px; margin: 30px auto 0; }
.cd-cell { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 14px; padding: 12px 6px; }
.cd-cell b { font-family: var(--font-head); font-size: clamp(1.6rem, 8vw, 2.4rem); display: block; line-height: 1; font-variant-numeric: tabular-nums; }
.cd-cell small { text-transform: uppercase; letter-spacing: .12em; font-size: .62rem; color: rgba(255,255,255,.75); }

.hero__wave { display: block; width: 100%; height: 40px; color: var(--bg); }

/* ============================================================
   Tiles (the two sub-sites)
   ============================================================ */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: -26px; position: relative; z-index: 2; }
.tile {
  position: relative; overflow: hidden; border-radius: var(--radius); padding: 22px 18px 20px;
  min-height: 168px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--shadow-lg); isolation: isolate;
  transition: transform .2s ease, box-shadow .2s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: 0 26px 56px rgba(0,43,127,.28); }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .22;
  background-image: radial-gradient(#fff 1.2px, transparent 1.4px); background-size: 26px 26px; }
.tile--schools { background: linear-gradient(150deg, var(--blue) 0%, var(--navy) 100%); }
.tile--about   { background: linear-gradient(150deg, var(--green) 0%, var(--navy) 110%); }
.tile__icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: rgba(255,255,255,.16); font-size: 1.4rem; margin-bottom: auto; }
.tile h3 { font-size: 1.35rem; text-transform: uppercase; margin-top: 14px; }
.tile p { font-size: .85rem; color: rgba(255,255,255,.82); }
.tile__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-family: var(--font-head);
  text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; color: var(--gold); }
.tile:hover .tile__go { gap: 11px; }

/* ============================================================
   Section heading row
   ============================================================ */
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.link-more { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--blue-bright); font-size: .85rem; white-space: nowrap; }
.link-more:hover { color: var(--navy); }

/* ---------- Notices ---------- */
.notices { display: grid; gap: 14px; }
.notice {
  background: var(--surface); border-radius: var(--radius-sm); padding: 16px 18px 16px 20px;
  border: 1px solid var(--line); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.notice::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--blue-bright); }
.notice--pinned::before { background: var(--gold); }
.notice--alert::before  { background: var(--red); }
.notice__top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.tag { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .66rem;
  padding: 3px 9px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); }
.notice--pinned .tag { background: #FFF4CC; color: #8a6d00; }
.notice--alert .tag  { background: #FDE3E1; color: #b3231b; }
.notice__date { margin-left: auto; font-size: .76rem; color: var(--muted); }
.notice h4 { font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; color: var(--navy); }
.notice p { font-size: .9rem; color: var(--muted); margin-top: 3px; }

/* ---------- Stats / numbers ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 14px; text-align: center; box-shadow: var(--shadow); }
.stat b { font-family: var(--font-head); font-size: clamp(1.8rem, 9vw, 2.6rem); color: var(--blue); display: block; line-height: 1; }
.stat span { display: block; margin-top: 6px; font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.stat:nth-child(2) b { color: var(--green); }
.stat:nth-child(3) b { color: var(--orange); }
.stat:nth-child(4) b { color: var(--purple); }
.stat:nth-child(5) b { color: var(--red); }
.stat:nth-child(6) b { color: var(--navy); }

/* ---------- Feature band (the Arch / Building Bridges) ---------- */
.band { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.band__body { padding: 28px 22px; }
.band h3 { font-size: clamp(1.4rem, 6vw, 2rem); text-transform: uppercase; }
.band p { color: rgba(255,255,255,.82); margin: 10px 0 18px; }

/* ---------- Program teaser (day chips) ---------- */
.days { display: grid; gap: 12px; }
.day-card { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--c, var(--blue)); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow); }
.day-card .d-no { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--c, var(--blue)); font-size: .8rem; }
.day-card h4 { font-family: var(--font-body); font-weight: 800; color: var(--navy); margin: 2px 0 8px; }
.day-card ul { display: flex; flex-wrap: wrap; gap: 6px; }
.day-card li { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: .8rem; color: var(--ink); }

/* Full program page — native schedule rebuilt from the official flyer */
#programFull { margin-top: 24px; }
.program-board { display: grid; gap: 20px; }
.schedule-day {
  display: grid; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.schedule-day__date {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "weekday day" "month day" "number number";
  align-items: center; gap: 0 14px; padding: 18px 20px; color: #fff; background: var(--c, var(--blue));
}
.schedule-day__weekday { grid-area: weekday; font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.schedule-day__date strong { grid-area: day; font-family: var(--font-head); font-size: 4rem; line-height: .9; }
.schedule-day__month { grid-area: month; color: var(--gold); font-family: var(--font-head); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.schedule-day__number { grid-area: number; margin-top: 10px; padding-top: 9px; border-top: 1px solid rgba(255,255,255,.26); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; opacity: .82; }
.schedule-day__events { padding: 4px 18px; }
.schedule-event { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "time icon" "body body"; gap: 8px 12px; padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, var(--c, var(--blue)) 24%, var(--line)); }
.schedule-event:last-child { border-bottom: 0; }
.schedule-event__time { grid-area: time; align-self: center; color: var(--c, var(--blue)); font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; white-space: nowrap; }
.schedule-event__time::before { content: "◷"; margin-right: 7px; font-size: 1.2em; vertical-align: -.04em; }
.schedule-event__icon { grid-area: icon; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: color-mix(in srgb, var(--c, var(--blue)) 11%, #fff); font-size: 1.25rem; }
.schedule-event__body { grid-area: body; }
.schedule-event h4 { color: var(--c, var(--blue)); font-family: var(--font-head); font-size: 1.12rem; text-transform: uppercase; }
.schedule-event p { color: var(--muted); font-size: .9rem; margin-top: 4px; max-width: 66ch; }
.program-values { margin-top: 34px; padding: 24px 18px; color: #fff; text-align: center; background: linear-gradient(145deg, var(--navy), var(--navy-deep)); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.program-values__kicker { color: var(--gold); font-family: var(--font-script); font-size: 1.55rem; font-weight: 700; }
.program-values h3 { margin-top: 2px; font-size: 1.5rem; text-transform: uppercase; }
.program-themes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 18px; }
.program-themes li { min-height: 76px; display: grid; place-content: center; gap: 4px; padding: 10px 5px; border: 1px solid rgba(255,255,255,.16); border-radius: 11px; background: rgba(255,255,255,.07); font-size: .68rem; font-weight: 700; line-height: 1.2; text-transform: uppercase; }
.program-themes li span { font-size: 1.45rem; }

/* Detailed workshop allocation */
.workshop-planner { margin-top: 54px; scroll-margin-top: calc(var(--header-h) + 18px); }
#workshopSchedule { display: grid; gap: 22px; margin-top: 24px; }
.workshop-day { overflow: hidden; border: 1px solid var(--line); border-top: 5px solid var(--c, var(--blue)); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.workshop-day > h3 { padding: 16px 18px; color: var(--navy); font-size: 1.25rem; text-transform: uppercase; background: color-mix(in srgb, var(--c, var(--blue)) 8%, #fff); }
.workshop-session { border-top: 1px solid var(--line); background: #fff; }
.workshop-session summary { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 15px 18px; cursor: pointer; list-style: none; }
.workshop-session summary::-webkit-details-marker { display: none; }
.workshop-session summary:hover { background: var(--bg); }
.workshop-session__code { min-width: 42px; padding: 5px 9px; border-radius: 9px; color: #fff; text-align: center; background: var(--c, var(--blue)); font-family: var(--font-head); font-weight: 700; }
.workshop-session__meta { display: flex; flex-direction: column; min-width: 0; }
.workshop-session__meta b { color: var(--navy); font-family: var(--font-head); font-size: 1.02rem; letter-spacing: .02em; }
.workshop-session__meta small { color: var(--muted); font-size: .76rem; }
.workshop-session__count { display: none; color: var(--muted); font-size: .76rem; font-weight: 600; }
.workshop-session__chevron { width: 10px; height: 10px; border-right: 2px solid var(--c, var(--blue)); border-bottom: 2px solid var(--c, var(--blue)); transform: rotate(45deg); transition: transform .2s ease; }
.workshop-session[open] .workshop-session__chevron { transform: rotate(225deg); }
.workshop-grid { display: grid; gap: 10px; padding: 0 18px 20px; counter-reset: workshop; }
.workshop-slot { position: relative; min-width: 0; padding: 15px 14px 14px 18px; border: 1px solid color-mix(in srgb, var(--workshop-color) 68%, #d7deea); border-radius: 11px; background: color-mix(in srgb, var(--workshop-color) 46%, #fff); }
.workshop-slot::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 6px; border-radius: 10px 0 0 10px; background: var(--workshop-color); }
.workshop-slot__number { display: block; color: var(--muted); font-family: var(--font-head); font-size: .66rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.workshop-slot h4 { margin-top: 3px; color: var(--navy); font-family: var(--font-body); font-size: .92rem; line-height: 1.28; }
.workshop-countries { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.workshop-country { display: inline-flex; align-items: center; gap: 5px; min-width: 0; padding: 3px 7px 3px 4px; border: 1px solid rgba(0,43,127,.12); border-radius: 999px; color: var(--ink); background: rgba(255,255,255,.64); font-size: .7rem; font-weight: 600; line-height: 1.2; }
.workshop-country img { width: 22px; height: 15px; flex: 0 0 auto; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 3px rgba(0,0,0,.18); }

/* ---------- Visitor resources (site map + downloads) ---------- */
.site-map-card {
  margin-top: 22px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg);
}
.site-map-card__image { display: block; background: var(--navy-deep); }
.site-map-card__image img { width: 100%; height: auto; transition: transform .25s ease, opacity .25s ease; }
.site-map-card__image:hover img { transform: scale(1.01); opacity: .96; }
.site-map-card figcaption { display: grid; gap: 16px; padding: 18px; align-items: center; }
.site-map-card figcaption b { display: block; color: var(--navy); font-size: 1rem; }
.site-map-card figcaption span { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.resource-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.resource-actions .btn { padding: 11px 17px; font-size: .8rem; }

.resource-card {
  display: grid; gap: 16px; align-items: center; margin-top: 18px; padding: 20px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
  position: relative;
}
.resource-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18;
  background-image: radial-gradient(#fff 1.2px, transparent 1.4px); background-size: 28px 28px;
}
.resource-card > * { position: relative; z-index: 1; }
.resource-card__icon {
  width: 62px; height: 70px; display: grid; place-items: center; border-radius: 8px;
  background: #fff; color: var(--red); font-family: var(--font-head); font-weight: 700;
  letter-spacing: .05em; box-shadow: 0 8px 22px rgba(0,0,0,.2);
}
.resource-card__body h3 { font-size: 1.35rem; text-transform: uppercase; }
.resource-card__body p { color: rgba(255,255,255,.82); margin-top: 5px; }
.resource-card__meta { display: block; color: var(--gold); font-size: .78rem; font-weight: 700; margin-top: 8px; text-transform: uppercase; letter-spacing: .05em; }

/* ---------- International teams ---------- */
.team-grid { display: grid; gap: 18px; margin-top: 24px; }
.team-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease; position: relative;
}
.team-card::before { content: ""; height: 6px; background: var(--team-color, var(--blue)); }
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.team-card__visual {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--team-color, var(--blue)) 18%, #fff), var(--blue-soft));
}
.team-card__visual::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .38;
  background-image: linear-gradient(135deg, transparent 48%, rgba(255,255,255,.55) 49%, rgba(255,255,255,.55) 51%, transparent 52%), radial-gradient(var(--team-color, var(--blue)) 1px, transparent 1.5px);
  background-size: 100% 100%, 26px 26px;
}
.team-card__photo { width: 100%; height: 100%; object-fit: cover; }
.team-card__placeholder { height: 100%; display: grid; place-content: center; justify-items: center; gap: 9px; color: var(--navy); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .76rem; }
.team-card__placeholder-mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--team-color, var(--blue)); color: #fff; font-size: 1.45rem; box-shadow: 0 10px 24px color-mix(in srgb, var(--team-color, var(--blue)) 32%, transparent); }
.team-card__number { position: absolute; z-index: 2; top: 14px; right: 14px; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font-family: var(--font-head); font-size: 1.08rem; box-shadow: 0 6px 16px rgba(0,26,82,.28); }
.team-card__role { position: absolute; z-index: 2; left: 14px; bottom: 14px; padding: 5px 10px; border-radius: 999px; background: var(--team-color, var(--blue)); color: #fff; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .66rem; }
.team-card__body { display: flex; flex: 1; flex-direction: column; padding: 22px 20px 20px; }
.team-card__subtitle { color: var(--team-color, var(--blue)); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .09em; font-size: .74rem; font-weight: 600; }
.team-card h3 { color: var(--navy); font-size: 1.65rem; text-transform: uppercase; margin-top: 3px; }
.team-card__body > p { color: var(--muted); font-size: .9rem; margin-top: 11px; }
.team-card__focus { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 18px; }
.team-card__focus li { padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--team-color, var(--blue)) 10%, #fff); border: 1px solid color-mix(in srgb, var(--team-color, var(--blue)) 28%, #fff); color: var(--navy); font-size: .73rem; font-weight: 600; }

/* ============================================================
   Schools (Tile 1)
   ============================================================ */
.flag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.flag-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 8px 12px; text-align: center; box-shadow: var(--shadow); transition: transform .15s, box-shadow .2s; position: relative; }
.flag-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.flag-card .flag { width: 58px; height: 39px; margin: 0 auto 9px; border-radius: 7px; object-fit: cover; box-shadow: 0 3px 8px rgba(0,0,0,.18); background: var(--line); }
.flag-card .cn { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em; font-size: .82rem; color: var(--navy); line-height: 1.1; }
.flag-card .cc { display: block; font-size: .68rem; color: var(--muted); margin-top: 3px; }
.flag-card .badge-soon { position: absolute; top: 8px; right: 8px; font-size: .58rem; background: var(--blue-soft); color: var(--blue); padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; }
.flag-card .badge-host { position: absolute; top: 8px; right: 8px; font-size: .58rem; background: var(--gold); color: var(--navy); padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .05em; font-weight: 700; }

/* School detail */
.detail-back { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .05em; color: var(--blue-bright); margin-bottom: 16px; }
.detail-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.detail-head .flag { width: 64px; height: 43px; border-radius: 8px; object-fit: cover; box-shadow: 0 4px 10px rgba(0,0,0,.2); }
.detail-head h2 { color: var(--navy); text-transform: uppercase; font-size: clamp(1.5rem, 7vw, 2.2rem); }
.detail-head .cc { color: var(--muted); font-family: var(--font-body); font-weight: 600; letter-spacing: .04em; }
.school-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); margin-bottom: 18px; }
.school-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.school-card__head img { width: 52px; height: 52px; object-fit: contain; border-radius: 10px; background: #fff; border: 1px solid var(--line); padding: 4px; }
.school-card__head h3 { font-family: var(--font-body); font-weight: 800; color: var(--navy); font-size: 1.1rem; }
.school-card__head .city { color: var(--muted); font-size: .85rem; }
.school-card p.body { color: var(--ink); }
.to-be-added { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-style: italic; background: var(--bg); border: 1px dashed var(--line); border-radius: 10px; padding: 10px 14px; }

/* Video facade + iframe */
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; background: #0a1330; margin-bottom: 14px; }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.video video { object-fit: contain; }
.video__facade { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; }
.video__facade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video__facade .play { position: relative; width: 66px; height: 66px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; box-shadow: 0 8px 26px rgba(0,0,0,.4); transition: transform .2s; }
.video__facade:hover .play { transform: scale(1.08); }
.video__facade .play::before { content: ""; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent var(--navy); margin-left: 4px; }
.video--empty { display: grid; place-items: center; color: rgba(255,255,255,.8); text-align: center; padding: 20px; }
.video--empty .ic { font-size: 2rem; margin-bottom: 8px; }
.video--empty small { display: block; opacity: .7; margin-top: 4px; }

/* ============================================================
   About page
   ============================================================ */
.prose { max-width: 64ch; }
.prose p { margin-bottom: 14px; color: var(--ink); }
.quote-block { border-left: 5px solid var(--green); padding: 6px 0 6px 18px; margin: 22px 0; }
.quote-block b { font-family: var(--font-head); font-size: clamp(1.3rem, 5vw, 1.8rem); color: var(--navy); text-transform: uppercase; line-height: 1.2; display: block; }
.quote-block b .g { color: var(--green); }
.pillars { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-top: 8px; }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; box-shadow: var(--shadow); }
.pillar .ic { font-size: 1.5rem; }
.pillar b { display: block; font-family: var(--font-head); text-transform: uppercase; letter-spacing: .04em; color: var(--navy); margin: 6px 0 4px; }
.pillar span { font-size: .85rem; color: var(--muted); }
.checks { display: grid; gap: 10px; margin-top: 6px; }
.check { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; }
.check .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 800; margin-top: 2px; }
.themes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.themes span { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .85rem; box-shadow: var(--shadow); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery a { border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4/3; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery a:hover img { transform: scale(1.06); }

/* ---------- Page hero (sub pages) ---------- */
.page-hero { background: linear-gradient(150deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: 34px 0 40px; position: relative; overflow: hidden; }
.page-hero::before { content:""; position:absolute; inset:0; opacity:.4; background-image: radial-gradient(rgba(255,204,0,.85) 1.2px, transparent 1.4px); background-size: 40px 40px; -webkit-mask-image: linear-gradient(#000,transparent); mask-image: linear-gradient(#000,transparent); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2rem, 9vw, 3.4rem); text-transform: uppercase; }
.page-hero p { color: rgba(255,255,255,.82); margin-top: 8px; max-width: 56ch; }
.crumb { display:inline-flex; align-items:center; gap:7px; color: rgba(255,255,255,.7); font-size:.8rem; margin-bottom: 10px; }
.crumb a:hover { color: var(--gold); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.82); margin-top: 30px; }
.footer-quote { background: linear-gradient(150deg, var(--green) 0%, var(--navy) 120%); color: #fff; text-align: center; padding: 30px 18px; }
.footer-quote p { font-family: var(--font-script); font-size: clamp(1.4rem, 6vw, 2rem); line-height: 1.2; max-width: 24ch; margin: 0 auto; }
.footer-quote small { display: block; margin-top: 8px; letter-spacing: .14em; text-transform: uppercase; font-size: .7rem; color: rgba(255,255,255,.7); }
.footer-grid { display: grid; gap: 26px; padding: 34px 0; }
.footer-col h5 { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: #fff; margin-bottom: 12px; font-size: 1rem; }
.footer-col a, .footer-col p { color: rgba(255,255,255,.72); padding: 5px 0; font-size: .92rem; }
.footer-col a:hover { color: var(--gold); }
.socials { display: flex; gap: 10px; margin-top: 6px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .2s, transform .2s; }
.socials a:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }
.socials a[aria-disabled="true"] { opacity: .38; cursor: default; }
.socials a[aria-disabled="true"]:hover { background: rgba(255,255,255,.08); transform: none; }
.eu-funding { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 12px 14px; }
.eu-funding .stars { font-size: 1.6rem; }
.eu-funding span { font-size: .8rem; line-height: 1.4; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 16px 0; font-size: .8rem; color: rgba(255,255,255,.55); text-align: center; }

/* ============================================================
   Skeleton loaders + media fade-in
   ============================================================ */
.skeleton { position: relative; overflow: hidden; background: #e6ecf5; border-radius: 10px; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.75), transparent);
  animation: shimmer 1.3s infinite;
}
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-line { height: 12px; border-radius: 6px; margin: 8px 0; }
.sk-line.w-60 { width: 60%; } .sk-line.w-80 { width: 80%; } .sk-line.w-40 { width: 40%; }

/* Images start hidden behind a shimmer, fade in on load */
img.media { opacity: 0; transition: opacity .5s ease; background: #e6ecf5; }
img.media.is-loaded { opacity: 1; }
.media-wrap { position: relative; }
.media-wrap.is-loaded::before { display: none; }
.media-wrap::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: #e6ecf5;
  background-image: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent); background-size: 200% 100%;
  animation: sweep 1.3s infinite; }
@keyframes sweep { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Schools map (Leaflet)
   ============================================================ */
.map-section { margin-top: 6px; }
.schools-map { height: 360px; margin-top: 16px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #eaf1fb; z-index: 0; }
.leaflet-container { font-family: var(--font-body); }
.leaflet-control-zoom a { color: var(--navy) !important; }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: var(--shadow-lg); }

.flag-marker { background: none; border: 0; }
.map-pin { display: block; width: 34px; height: 24px; border-radius: 6px; overflow: hidden;
  border: 2px solid #fff; box-shadow: 0 3px 9px rgba(0,0,0,.4); position: relative; background: #fff; }
.map-pin img { width: 100%; height: 100%; object-fit: cover; }
.map-pin::after { content: ""; position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #fff; filter: drop-shadow(0 2px 1px rgba(0,0,0,.25)); }
.map-pin.is-host { box-shadow: 0 0 0 3px var(--gold), 0 3px 9px rgba(0,0,0,.4); }

.map-pop { font-family: var(--font-body); min-width: 158px; }
.map-pop__h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.map-pop__h img { width: 26px; height: 18px; border-radius: 3px; object-fit: cover; box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.map-pop__h b { color: var(--navy); font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; font-size: 1rem; }
.map-pop__h .host { font-size: .58rem; background: var(--gold); color: var(--navy); padding: 1px 7px; border-radius: 999px; text-transform: uppercase; font-weight: 700; }
.map-pop ul { margin: 0; }
.map-pop li { font-size: .85rem; color: var(--ink); padding: 2px 0; }
.map-pop li small { color: var(--muted); }
.map-pop__s { font-size: .88rem; color: var(--ink); margin: 0; }
.map-pop__s b { color: var(--navy); }
.map-pop__s small { color: var(--muted); }
.map-pop .soon { font-size: .82rem; color: var(--muted); font-style: italic; }
.map-pop__go { display: inline-block; margin-top: 9px; font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .05em; font-size: .78rem; color: var(--blue-bright); }
.map-pop__go:hover { color: var(--navy); }

/* ============================================================
   Breakpoints
   ============================================================ */
@media (min-width: 620px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .flag-grid { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .pillars { grid-template-columns: repeat(3, 1fr); }
  .band { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; }
  .site-map-card figcaption { grid-template-columns: 1fr auto; padding: 20px 22px; }
  .resource-card { grid-template-columns: auto 1fr auto; padding: 24px; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-event { grid-template-columns: 130px 44px 1fr; grid-template-areas: "time icon body"; align-items: start; gap: 18px; }
  .schedule-event__time { padding-top: 5px; }
  .program-themes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .workshop-session__count { display: inline; }
  .workshop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  :root { --header-h: 80px; }
  .nav-toggle { display: none; }
  .nav { position: static; transform: none; background: none; box-shadow: none; padding: 0;
    display: flex; align-items: center; gap: 4px; }
  .nav a { padding: 8px 12px; font-size: .92rem; }
  .nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.12); }
  .nav .btn { margin: 0 0 0 8px; }
  .tiles { gap: 18px; }
  .tile { min-height: 220px; padding: 28px; }
  .stats { grid-template-columns: repeat(6, 1fr); }
  .flag-grid { grid-template-columns: repeat(6, 1fr); }
  .days { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 60px 0; }
  .schools-map { height: 480px; }
  .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .schedule-day { grid-template-columns: 210px 1fr; }
  .schedule-day__date { grid-template-columns: 1fr; grid-template-areas: "weekday" "day" "month" "number"; align-content: center; justify-items: center; padding: 24px 18px; text-align: center; }
  .schedule-day__date strong { margin: 12px 0 7px; font-size: 5.4rem; }
  .schedule-day__number { width: 100%; margin-top: 20px; }
  .schedule-day__events { padding: 7px 24px; }
  .program-themes { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .workshop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-inline: 24px; }
}

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

/* ============================================================
   Press contacts (About page)
   ============================================================ */
.press-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .press-grid { grid-template-columns: repeat(3, 1fr); } }
.press-grid.press-grid--single { grid-template-columns: minmax(0, 560px); }
.press-card {
  background: var(--card, #fff); border: 1px solid var(--line); border-radius: var(--radius-sm, 14px);
  padding: 18px 18px 16px; box-shadow: var(--shadow, 0 6px 20px rgba(0,0,0,.06));
  display: flex; flex-direction: column; gap: 4px;
}
.press-card__side {
  align-self: flex-start; font-family: var(--font-head); text-transform: uppercase;
  letter-spacing: .06em; font-size: .68rem; color: var(--navy);
  background: rgba(255,204,0,.18); border: 1px solid rgba(255,204,0,.5);
  padding: 3px 9px; border-radius: 999px; margin-bottom: 6px;
}
.press-card h4 { font-family: var(--font-head); font-size: 1.12rem; line-height: 1.15; }
.press-card__role { color: var(--muted, #5a6478); font-size: .86rem; margin-bottom: 6px; }
.press-card__line { display: inline-flex; gap: 7px; align-items: center; font-weight: 600; font-size: .9rem; color: var(--navy); }
.press-card__line:hover { color: var(--blue, #2e6be0); }
.press-card__addr { color: var(--muted, #5a6478); font-size: .84rem; margin-top: 6px; }
