/* EU/UK Youth Dialogue 2026 — Manchester
   Palette and type follow the 2026 concept note. */

:root {
  --cream: #F8F3E9;
  --paper: #FDFBF6;
  --ink: #16101A;
  --ink-2: #4C4048;
  --ink-3: #6F6368;
  --line: rgba(22, 16, 26, 0.16);
  --line-strong: rgba(22, 16, 26, 0.38);
  --red: #ED1C2E;
  --red-deep: #C9132A;
  --orange: #EC9015;
  --yellow: #FFCC00;
  --blue: #003399;
  --grad:
    radial-gradient(70% 55% at 100% 0%, #1F2E9F 0%, rgba(31, 46, 159, 0) 72%),
    radial-gradient(55% 48% at 100% 100%, #FFB800 0%, rgba(255, 184, 0, 0) 68%),
    linear-gradient(180deg, #D8163B 0%, #E81E2A 100%);
  --display: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;   /* small labels: Inter, not mono */
  --script: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive;
  --wrap: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 100px;  /* anchors and the headline settle just under the sticky header */
}

body {
  margin: 0;
  position: relative;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased;
  caret-color: var(--red);
}

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 4px;
  z-index: 50;
  background: linear-gradient(90deg, var(--blue) 0%, var(--red) 45%, var(--orange) 80%, var(--yellow) 100%);
}

::selection { background: var(--red); color: #fff; }

/* The hoodie's handwriting, used sparingly as the brand's second voice */
.script {
  font-family: var(--script);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

p { margin: 0 0 1em; max-width: 62ch; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 0.94;
  margin: 0;
  text-wrap: balance;
}
h1, h2 {
  font-weight: 900;
  font-stretch: 80%;
  letter-spacing: -0.01em;
  line-height: 0.88;
}

h2 { font-size: clamp(2.6rem, 5.6vw, 5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); letter-spacing: -0.01em; line-height: 1.05; }

.wrap {
  width: min(var(--wrap), 100% - 2 * var(--gutter));
  margin-inline: auto;
}

/* Small mono labels: the concept note's own vocabulary */
.label {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 1.4rem;
}
.label .sep { color: var(--red); margin: 0 0.5em; }
.section .label::before, .reg-hero .label::before {
  content: '/';
  color: var(--red);
  margin-right: 0.6em;
  font-weight: 500;
}

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.5;
  color: var(--ink-2);
  max-width: 54ch;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.95em 1.5em;
  border-radius: 4px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: #E81B2D; color: #fff; }
.btn-primary:hover { background: var(--red-deep); }
.btn-ghost { border-color: var(--line-strong); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--cream); }
.btn .arrow { width: 1em; height: 1em; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--cream) 90%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
}
.brand img { height: 40px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.4vw, 32px);
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.nav a:not(.btn) {
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s var(--ease);
}
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: var(--red); }
.nav .btn { padding: 0.75em 1.2em; font-size: 0.85rem; }
.nav-toggle { display: none; }

/* Hero */
/* Segment 1: the card, pinned while you scroll through this segment's runway (padding-bottom) */
.hero-intro { padding-top: clamp(40px, 7vw, 96px); }
/* The runway is a real block after the card (sticky elements only get the parent's content box
   to move in, so padding would give the card no room to stay pinned) */
.hero-intro .wrap { perspective: 1400px; }
.hero-runway { height: clamp(32px, 4vw, 56px); }  /* same gap as before; the card pins for this much scroll */
.hero-pin {
  position: sticky;
  top: 88px;
  transform-origin: 50% 0%;
  will-change: transform, opacity;
}
@media (prefers-reduced-motion: reduce) {
  .hero-pin { position: static; }
}
/* Segment 2: the headline, which begins only after the card's runway ends */
.hero { padding: 0 0 clamp(40px, 6vw, 80px); }
.hero .wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
}
.hero h1 {
  font-size: clamp(3.2rem, 5.6vw, 6rem);
  margin: 0;
}
.hero h1 .accent { color: var(--red); }
.hero h1 .count { display: inline-block; font-variant-numeric: tabular-nums; text-align: left; }
.hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
  gap: 1.5rem clamp(32px, 5vw, 80px);
  align-items: end;
}
.hero-head .label { margin-bottom: 1.2rem; }
.hero-side { padding-bottom: 0.4rem; }
.hero-side .lede { margin-bottom: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.hero-panel {
  position: relative;
  aspect-ratio: 21 / 9;
  min-height: 300px;
  max-height: 560px;
  border-radius: 6px;
  background-color: #D8163B;
  background-image: var(--grad);
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 30px 60px -30px rgba(120, 20, 40, 0.45);
}
.hero-panel::after {
  /* faint paper grain so the gradient reads printed, not screen */
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.35;
  pointer-events: none;
}
.hero-panel > * { position: relative; z-index: 1; }
.hero-panel .lockup { width: clamp(220px, 28vw, 420px); }
/* Funded by the EU emblem, small, bottom right of the card */
.hero-panel .funded {
  position: absolute;
  right: clamp(20px, 3vw, 40px);
  bottom: clamp(18px, 2.6vw, 34px);
  width: clamp(120px, 13vw, 190px);
  height: auto;
}
.hero-panel .logo { display: block; width: 100%; }
.hero-panel .tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.92);
}
.hero-panel .city {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.9;
  margin: 0.2rem 0 0 0.1em;
  transform: rotate(-3deg);
  transform-origin: left bottom;
}

/* One authored entrance for the hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-panel {
    animation: rise .9s var(--ease) both;
  }
  .hero-copy > :nth-child(1) { animation-delay: .10s; }
  .hero-copy > :nth-child(2) { animation-delay: .18s; }
  .hero-copy > :nth-child(3) { animation-delay: .26s; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* Key facts board under the hero */
.facts-board { padding: clamp(8px, 1.5vw, 16px) 0 0; }
.board-ink {
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  padding: clamp(22px, 3vw, 36px) clamp(20px, 3vw, 40px) clamp(20px, 3vw, 32px);
}
.kf {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem clamp(16px, 3vw, 40px);
  margin: 0 0 clamp(18px, 2.4vw, 28px);
  padding-bottom: clamp(18px, 2.4vw, 28px);
  border-bottom: 1px solid rgba(22, 16, 26, 0.1);
}
.kf div { min-width: 0; }
.kf dt {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}
.kf dd {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.25;
  color: var(--ink);
}
/* At a glance: one long typographic line, inside the board */
.glance { overflow: hidden; }
.board-ink .glance .n { color: var(--ink); }
.board-ink .glance .t { color: var(--ink-2); }
.board-ink .glance .sl { color: var(--red); }
/* One line, always: sizes scale by --glance-scale, which a small script sets from the
   available width (see index.html). */
.glance-line {
  --glance-scale: 1;
  margin: 0;
  max-width: none;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  line-height: 1;
  white-space: nowrap;
}
.glance .n {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 75%;
  font-size: calc(clamp(2.6rem, 4.6vw, 4.4rem) * var(--glance-scale));
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.glance .t {
  font-family: var(--mono);
  font-size: calc(0.78rem * var(--glance-scale));
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  max-width: 14ch;
  line-height: 1.25;
  white-space: normal;
  margin-left: 0.6em;
}
.glance .n { text-transform: uppercase; }
.glance .sl {
  font-family: var(--display);
  font-weight: 500;
  font-stretch: 62%;
  font-size: calc(clamp(2.6rem, 4.6vw, 4.4rem) * var(--glance-scale));
  color: var(--red);
  margin: 0 0.45em;
}

/* City band: a filmstrip of Manchester under the glance strip */
.city-band { padding: clamp(8px, 1.5vw, 16px) 0 0; }
.film {
  position: relative;
  height: clamp(150px, 20vw, 250px);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(22, 16, 26, 0.055);
}
.film-track {
  display: flex;
  gap: 6px;
  height: 100%;
  width: max-content;
  will-change: transform;
}
.film figure { margin: 0; height: 100%; flex: none; }
.film img { display: block; height: 100%; width: auto; max-width: none; object-fit: cover; }
.film-tag {
  position: absolute;
  left: 14px; bottom: 12px;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(22, 16, 26, 0.72);
  color: #fff;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.film-tag .sep { color: var(--yellow); margin: 0 0.5em; }
.credits {
  margin: 0.6rem 0 0;
  text-align: right;
  font-size: 0.72rem;
  color: var(--ink-3);
}
.credits a { color: var(--ink-2); text-decoration: none; border-bottom: 1px solid rgba(22, 16, 26, 0.2); }
.credits a:hover { color: var(--ink); border-color: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .film-track { animation: film-drift 90s linear infinite; }
  .film:hover .film-track { animation-play-state: paused; }
}
@keyframes film-drift {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }   /* the strip is doubled, so this loops seamlessly */
}
/* the About section follows the band closely */
.city-band + .section { padding-top: clamp(40px, 6vw, 80px); }
/* a band inside a section (Manchester) */
.city-band-inner { padding-top: clamp(32px, 4vw, 56px); }

/* Sections */
.section { padding: clamp(56px, 8vw, 112px) 0; }
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
}
.two-col .sticky { position: sticky; top: 100px; }
.two-col h3 { margin: 2.6rem 0 1rem; }
/* About: pull quote and edition line */
.pull {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.15;
  color: var(--red);
  margin: 1.8rem 0 1.4rem;
  max-width: 26ch;
  transform: rotate(-1.5deg);
  transform-origin: left center;
}
.about-edition { margin: 0; color: var(--ink-2); }
.pill-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: 0.4rem;
  padding: 0.35rem 0.75rem 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  vertical-align: middle;
  transition: background-color .15s var(--ease), transform .15s var(--ease);
}
.pill-link svg { width: 14px; height: 14px; }
.pill-link:hover { background: var(--red); transform: translateX(2px); }

/* The three partnerships of the EU Youth Action Plan: three colour panels */
.pillars-label { margin: clamp(40px, 5vw, 64px) 0 1.2rem; }
.pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.6vw, 20px);
}
.pillar {
  position: relative;
  min-height: clamp(280px, 30vw, 380px);
  padding: clamp(20px, 2.4vw, 32px);
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  isolation: isolate;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.pillar::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.35;
  pointer-events: none;
}
.pillar > * { position: relative; z-index: 1; }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 30px 50px -30px rgba(22, 16, 26, 0.45); }
.pillar-red {
  background-color: #D8163B;
  background-image:
    radial-gradient(70% 60% at 100% 0%, #1F2E9F 0%, rgba(31, 46, 159, 0) 70%),
    linear-gradient(180deg, #D8163B 0%, #E81E2A 100%);
}
.pillar-blue {
  background-color: #003399;
  background-image:
    radial-gradient(70% 60% at 100% 100%, #ED1C2E 0%, rgba(237, 28, 46, 0) 70%),
    linear-gradient(180deg, #0B2A8A 0%, #1F2E9F 100%);
}
.pillar-gold {
  background-color: #EC9015;
  background-image:
    radial-gradient(70% 60% at 0% 100%, #ED1C2E 0%, rgba(237, 28, 46, 0) 70%),
    linear-gradient(180deg, #EC9015 0%, #FFB800 100%);
}
.pillar .n {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.85);
}
.pillar .k {
  display: block;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.3rem;
}
.pillar strong {
  display: block;
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 78%;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: clamp(2.6rem, 4.8vw, 4.4rem);
  line-height: 0.9;
}
.pillar p { margin: 0.8rem 0 0; font-size: 0.95rem; line-height: 1.5; color: rgba(255, 255, 255, 0.92); max-width: 26ch; }

/* Erasmus+: the headline fact */
.fact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.4rem clamp(16px, 2.5vw, 32px);
  align-items: end;
  margin: 2rem 0 1.8rem;
}
.fact-n {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 70%;
  font-size: clamp(5rem, 11vw, 9rem);
  line-height: 0.8;
  letter-spacing: -0.03em;
  color: var(--red);
  white-space: nowrap;
}
.fact-unit {
  display: inline-block;
  margin-left: 0.15em;
  font-size: 0.26em;
  font-stretch: 80%;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  vertical-align: baseline;
}
.fact-t { margin: 0 0 0.4rem; font-size: 1.02rem; line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.erasmus-practical { margin: 0 0 1rem; }
.in-room { display: flex; align-items: flex-start; gap: 0.7rem; margin: 0; font-weight: 500; color: var(--ink); }
.in-room-dot {
  flex: none;
  width: 0.7rem; height: 0.7rem;
  margin-top: 0.42rem;
  border-radius: 50%;
  background: var(--red);
  border: 5px solid rgba(237, 28, 46, 0.18);   /* soft ring, drawn as a border rather than a glow */
  background-clip: padding-box;
  box-sizing: content-box;
}

/* Five sectors, colour-keyed */
.sectors-label { margin: clamp(40px, 5vw, 64px) 0 1.2rem; }
.sectors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.sector { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; }
.sector .bar { display: block; height: 8px; border-radius: 999px; background: var(--c); margin-bottom: 0.4rem; }
/* Sector bars: the Erasmus+ 2021-27 visual guidelines colours (p.8). The combined
   further education and adult learners item carries both VET (#004a6c) and adult education (#6434c8). */
.s-red    { --c: #007fc7; }                                              /* higher education */
.s-blue   { --c: #004a6c; }                                              /* vocational education and training */
.s-orange { --c: #5dbfbe; }                                              /* school education */
.s-yellow { --c: #e86f6f; }                                              /* youth */
.s-ink    { --c: #689f38; }                                              /* sport */
.sector strong {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 1.05rem;
  line-height: 1.1;
}
.sector p { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }

/* Programme as a transport card */
.transit-card {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 30px 60px -36px rgba(120, 20, 40, 0.35);
}
.transit-head {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(24px, 3vw, 40px) clamp(20px, 3vw, 40px) clamp(20px, 2.6vw, 32px);
  background-color: #D8163B;
  background-image: var(--grad);
  color: #fff;
}
.transit-head::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.35;
  pointer-events: none;
}
.transit-head > * { position: relative; z-index: 1; }
.transit-head .label { color: rgba(255, 255, 255, 0.85); margin-bottom: 0.8rem; }
.transit-head .label .sep { color: var(--yellow); }
.transit-head h2 { color: #fff; margin: 0; max-width: 14ch; }
/* Programme line map */
.route { position: relative; padding: clamp(20px, 3vw, 36px) clamp(20px, 3vw, 40px) 0; }
.route-map svg { display: block; width: 100%; height: auto; overflow: visible; }
.route-map .line { fill: none; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.route-map .line.branch { stroke-width: 5; }
.route-map .stop .lbl { fill: var(--c, var(--ink-2)); }   /* always the line's colour */
.route-map .daynum {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 70%;
  font-size: 72px;
  letter-spacing: -0.03em;
}
.route-map .dayname, .route-map .lbl {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  fill: var(--ink-2);
}
.route-map .dayname { fill: var(--ink-3); }
.route-map .lbl.tag { fill: var(--ink-3); font-size: 10px; }
.route-map .lbl.small { font-size: 10.5px; }
.route-map .stop { cursor: pointer; outline: none; }
.route-map .stop .halo { fill: var(--red); opacity: 0; transition: opacity .2s var(--ease); }
.route-map .stop .dot { fill: #fff; stroke-width: 4; transition: fill .15s var(--ease), r .15s var(--ease); }
.route-map .stop:hover .dot { r: 12; }
.route-map .stop:hover .dot[r="7"], .route-map .stop:hover .lbl.small ~ .dot { r: 9; }
.route-map .junction { fill: #fff; stroke-width: 4; }
.route-map .stop:hover .dot, .route-map .stop.active .dot { fill: var(--ink); stroke: var(--ink); }
.route-map .stop.active .halo { opacity: 0.08; }
.route-map .stop:focus-visible .halo { opacity: 0.18; }
.route-map .stop.active .lbl { font-weight: 700; }
/* Station name board: a white plate with the line's colour running through it */
.board {
  --line: var(--red);
  margin: 1.4rem calc(-1 * clamp(20px, 3vw, 40px)) 0;   /* out to the card edges */
  padding: 0 clamp(20px, 3vw, 40px) 1.4rem;
}
.board .label { margin: 0 0 0.8rem; }
.board-bar {
  margin: 0 calc(-1 * clamp(20px, 3vw, 40px));          /* the bar runs edge to edge of the card */
  padding: 0.6rem clamp(20px, 3vw, 40px);
  background: var(--line);
  color: #fff;
  transition: background-color .25s var(--ease);
}
.board-bar h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
}
.board-text { margin: 0.9rem 0 0; max-width: 60ch; color: var(--ink-2); }
.board-info {
  margin: 1.2rem 0 0;
  padding-top: 0.9rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: none;
}
.board-info .k {
  display: inline-block;
  margin-right: 0.6rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--line);
  transition: color .25s var(--ease);
}
/* Phone view: the same programme as a vertical line */
.route-list { display: none; list-style: none; margin: 0; padding: 0; }
@media (max-width: 760px) {
  .route-map { display: none; }
  .route-list { display: block; position: relative; }
  .transit-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .rl-day { display: flex; align-items: center; gap: 0.7rem; margin: 1.6rem 0 0.6rem; }
  .rl-day:first-child { margin-top: 0; }
  .rl-num { font-family: var(--display); font-weight: 900; font-stretch: 70%; font-size: 3rem; line-height: 0.85; letter-spacing: -0.03em; color: var(--c); }
  .rl-name { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.05rem; line-height: 1.05; }
  .rl-name small { display: block; font-family: var(--mono); font-weight: 500; font-size: 0.6rem; letter-spacing: 0.1em; color: var(--ink-3); margin-top: 0.25rem; }
  .rl-stop { position: relative; padding-left: 2rem; }
  .rl-stop::before { content: ''; position: absolute; left: 0.55rem; top: 0; bottom: 0; width: 4px; background: var(--c); }
  .rl-stop::after { content: ''; position: absolute; left: 0.3rem; top: 0.95rem; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #fff; border: 3px solid var(--c); box-sizing: border-box; }
  .rl-stop.active::after { background: var(--ink); border-color: var(--ink); }
  .rl-branch { padding-left: 3.4rem; }
  .rl-branch::after { left: 1.7rem; width: 0.6rem; height: 0.6rem; top: 0.85rem; }
  .rl-branch::before { left: 0.55rem; }
  .rl-stop button { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 0.55rem 0; font: inherit; color: var(--ink); cursor: pointer; }
  .rl-when { display: block; font-family: var(--mono); font-weight: 500; font-size: 0.58rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
  .rl-when:empty { display: none; }
  .rl-title { display: block; font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 0.95rem; }
  .rl-branch .rl-title { font-size: 0.85rem; font-weight: 600; }
}
/* The city card: same gradient and grain as the hero panel, carrying the handwriting */
.blob {
  position: relative;
  margin-top: 2.4rem;
  width: 100%;
  min-height: 300px;
  border-radius: 6px;
  background-color: #D8163B;
  background-image: var(--grad);
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) 10%;
  box-shadow: 0 30px 50px -30px rgba(120, 20, 40, 0.5);
}
.blob::after {
  content: '';
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
  opacity: 0.35;
  pointer-events: none;
}
.blob > * { position: relative; z-index: 1; }
.blob .script { font-size: clamp(1.4rem, 2vw, 1.8rem); line-height: 1; }
.blob .big {
  font-family: var(--display);
  font-weight: 900;
  font-stretch: 75%;
  text-transform: uppercase;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  margin: 0.2rem 0 0.7rem;
}
.blob .small {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

/* Editions */
.editions { list-style: none; margin: 0; padding: 0; }
.editions li {
  display: grid;
  grid-template-columns: 5rem 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.9rem 0;
  font-size: 0.98rem;
}
.editions .year { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.editions .where { font-weight: 500; }
.editions .nth { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.editions li.now .year, .editions li.now .nth { color: var(--red); }

/* Call to action band */
.cta {
  background-color: #D8163B;
  background-image: var(--grad);
  color: #fff;
  position: relative;
  overflow: hidden;
  --slant: 4vw;   /* shared with the footer, which tucks up behind by the same amount */
  clip-path: polygon(0 0, 100% var(--slant), 100% 100%, 0 calc(100% - var(--slant)));
  margin-top: -1px;
}
.cta .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding-block: clamp(72px, 9vw, 120px);
}
.cta-script { display: block; font-size: clamp(1.4rem, 2.2vw, 1.9rem); margin-bottom: 0.5rem; }
.cta h2 { font-size: clamp(2.8rem, 5.8vw, 5.6rem); max-width: 16ch; }
.cta p { color: rgba(255, 255, 255, 0.9); margin: 1rem 0 0; max-width: 46ch; }

/* Footer */
.site-footer {
  /* Tucks up behind the CTA band (which is positioned, so it paints on top) so the black
     fills the triangle its slanted bottom edge leaves, right up to the diagonal. */
  margin-top: calc(-1 * var(--slant, 4vw));
  padding: calc(56px + var(--slant, 4vw)) 0 48px;
  font-size: 0.9rem;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.82);
}
.site-footer .wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
}
.site-footer .brand img { height: 34px; }
.site-footer p { max-width: 60ch; margin: 0; }
.site-footer .fine { margin-top: 1rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.6); }
.site-footer .eu-badge { color: #fff; }
.site-footer .footer-credit {
  margin-top: 40px;
  display: flex;
  justify-content: flex-end;
}
.site-footer .footer-credit p {
  margin: 0;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.site-footer .footer-credit a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.site-footer .footer-credit a:hover { color: #fff; border-color: #fff; }
.eu-badge {
  display: flex;
  gap: 12px;
  align-items: center;
  width: max-content;
  justify-self: start;
  color: var(--ink);
}
.eu-badge svg { width: 64px; height: 43px; }
.eu-badge span { font-weight: 700; font-size: 0.85rem; line-height: 1.2; letter-spacing: -0.01em; }

/* Legal pages: privacy statement and consent form */
.legal-hero { padding: clamp(32px, 5vw, 64px) 0 clamp(24px, 4vw, 48px); }
.legal-hero h1 { font-size: clamp(2.6rem, 6vw, 5rem); margin-bottom: 1rem; }
.legal-hero .lede { max-width: 60ch; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.6rem;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
  text-decoration: none;
}
.back::before { content: '\2190'; }
.back:hover { color: var(--red); }
.legal-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem clamp(16px, 2.5vw, 32px);
  margin: 1.8rem 0 0;
  padding: 1.2rem 1.4rem;
  border-radius: 12px;
  background: #fff;
}
.legal-meta.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 1rem; background: var(--paper); }
.legal-meta div { min-width: 0; }
.legal-meta dt { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-deep); margin-bottom: 0.3rem; }
.legal-meta dd { margin: 0; font-size: 0.9rem; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.legal-meta a { color: var(--ink); }
.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 8fr);
  gap: clamp(28px, 5vw, 80px);
  align-items: start;
  padding-bottom: clamp(56px, 8vw, 112px);
}
.legal-nav { position: sticky; top: 100px; }
.legal-nav ol { list-style: none; margin: 0; padding: 0; counter-reset: sec; }
.legal-nav li { counter-increment: sec; }
.legal-nav a {
  display: flex; gap: 0.7rem; align-items: baseline;
  padding: 0.45rem 0;
  color: var(--ink-2); text-decoration: none; font-size: 0.9rem;
}
.legal-nav a::before { content: counter(sec, decimal-leading-zero); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; color: var(--red-deep); }
.legal-nav a:hover { color: var(--ink); }
.legal-body section { position: relative; padding: 0 0 clamp(28px, 4vw, 48px) 0; margin-bottom: clamp(20px, 3vw, 36px); }
.legal-body .n { display: block; font-family: var(--mono); font-weight: 500; font-size: 0.74rem; letter-spacing: 0.12em; color: var(--red-deep); margin-bottom: 0.6rem; }
.legal-body h2 { font-size: clamp(1.5rem, 2.6vw, 2.2rem); margin-bottom: 1rem; }
.legal-body h3 { margin: 1.6rem 0 0.6rem; font-size: 1rem; }
.legal-body p, .legal-body li { font-size: 0.98rem; line-height: 1.6; color: var(--ink-2); }
.legal-body p { margin: 0 0 1rem; max-width: 66ch; }
.legal-body ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.legal-body li { margin: 0.3rem 0; }
.legal-body a { color: var(--ink); }
.legal-body .small { font-size: 0.85rem; color: var(--ink-2); }
.legal-note { margin: 1.4rem 0; padding: 1.1rem 1.3rem; border-radius: 12px; background: #fff; }
.legal-note .label { margin: 0 0 0.5rem; color: var(--red-deep); font-size: 0.72rem; }
.legal-note p:last-child { margin-bottom: 0; }
.rights { margin: 0 0 1rem; display: grid; gap: 0.7rem; }
.rights div { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 0.2rem 1.2rem; }
.rights dt { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.01em; color: var(--ink); }
.rights dd { margin: 0; font-size: 0.95rem; color: var(--ink-2); }
.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.legal-table th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--red-deep); padding: 0 0 0.6rem; }
.legal-table td { vertical-align: top; padding: 0.7rem 1rem 0.7rem 0; color: var(--ink-2); }
.legal-table tbody tr { background: #fff; }
.legal-table tbody td:first-child { padding-left: 1rem; border-radius: 10px 0 0 10px; }
.legal-table tbody td:last-child { border-radius: 0 10px 10px 0; white-space: nowrap; font-weight: 600; color: var(--ink); }
.legal-table tbody tr + tr td { border-top: 6px solid var(--cream); }
.consent-items { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.8rem; }
.consent-items li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 1.2rem; padding: 1.2rem 1.4rem; border-radius: 12px; background: #fff; }
.ci-n { font-family: var(--display); font-weight: 900; font-stretch: 75%; font-size: 2.2rem; line-height: 0.9; color: var(--red); }
.consent-items .label { margin: 0 0 0.4rem; font-size: 0.72rem; color: var(--red-deep); }
.consent-items h3 { margin: 0 0 0.5rem; }
.consent-items p:last-child { margin: 0; }
.legal-cta { margin: 1.6rem 0; padding: 1.4rem 1.5rem; border-radius: 12px; background: #fff; }
.legal-cta .label { margin: 0 0 0.4rem; }
.legal-cta p { margin: 0 0 1rem; }
.legal-foot { font-family: var(--mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0; }
.legal-foot .sep { color: var(--red); margin: 0 0.5em; }
.policy-links { margin: 0.8rem 0 0 !important; font-weight: 500; color: var(--ink) !important; }
.policy-links a { color: var(--red); text-decoration: none; border-bottom: 1px solid rgba(237, 28, 46, 0.4); }
.site-footer .fine a { color: rgba(255, 255, 255, 0.7); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.25); }
.site-footer .fine a:hover { color: #fff; border-color: #fff; }

.legal .label { color: var(--red-deep); }
.legal .label .sep { color: var(--red-deep); }

/* Registration page */
.reg-hero { padding: clamp(40px, 6vw, 80px) 0 clamp(24px, 4vw, 48px); }
.reg-hero h1 { font-size: clamp(3rem, 8vw, 7rem); margin-bottom: 1rem; }
/* Intro panel: the notice, a faint rule, then the key facts, styled like the policy boxes */
.reg-intro {
  max-width: 68ch;
  margin-top: 1.6rem;
  padding: 1.3rem 1.5rem 1.4rem;
  border-radius: 12px;
  background: var(--paper);
}
.reg-hero .notice { padding-bottom: 1.2rem; }
.reg-hero .notice .label { margin-bottom: 0.7rem; color: var(--red); font-size: 0.68rem; }
.reg-hero .notice .label .sep { color: var(--ink-3); }
.reg-hero .notice-title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 87.5%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 1.35rem;
  line-height: 1.05;
  margin: 0 0 0.5rem;
}
.reg-hero .notice p:last-child { margin: 0; color: var(--ink-2); font-size: 0.95rem; line-height: 1.55; }
.reg-intro .facts {
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 1.5rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(22, 16, 26, 0.1);   /* the faint divider */
}
.reg-intro .facts li { gap: 0.15rem; }
.reg-intro .facts .k { font-size: 0.58rem; letter-spacing: 0.1em; }
.reg-intro .facts .v { font-size: 0.9rem; letter-spacing: 0; }
.reg-intro .facts .d { font-size: 0.76rem; line-height: 1.4; color: var(--ink-3); }
/* Merch panel beside the form */
.merch { margin: 0; }
.merch-media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(22, 16, 26, 0.055);
}
.merch-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.merch-tag {
  position: absolute; top: 14px; left: 14px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
  line-height: 1;
}
.merch figcaption { padding: 1.2rem 0.2rem 0; }
.merch figcaption .label { margin-bottom: 0.6rem; }
.merch-title {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 87.5%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 1.5rem;
  line-height: 1.02;
  margin: 0 0 0.6rem;
}
.merch figcaption p:last-child { margin: 0; font-size: 0.92rem; line-height: 1.5; color: var(--ink-2); }
.reg-layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding-bottom: clamp(56px, 8vw, 112px);
}
.reg-aside { position: sticky; top: 100px; }
/* Key facts: plain stacked list, each led by a display-face headline like the stats strip */
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;   /* two across, three down */
  gap: 1.8rem 1.5rem;
}
.facts li {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.facts .k {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.facts .v {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 87.5%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--ink);
}
.facts .d { font-size: 0.88rem; line-height: 1.45; color: var(--ink-2); }
.aside-panel {
  margin-top: 1.6rem;
  border-radius: 6px;
  background-color: #D8163B;
  background-image: var(--grad);
  color: #fff;
  padding: 24px;
  font-size: 0.92rem;
}
.aside-panel img { width: 140px; margin-bottom: 0.6rem; }
.panel-script { display: block; font-size: 1.6rem; line-height: 1; margin-bottom: 0.8rem; }
.aside-panel p { color: rgba(255, 255, 255, 0.92); margin: 0; }

form { display: block; }
form[hidden] { display: none; }
/* Lettered sections A to G, each with a toggle header (all open by default) */
.form-step { margin-bottom: 1.6rem; }
fieldset.sec {
  border: 0;
  margin: 0 0 clamp(20px, 2.5vw, 32px);
  padding: 0;
  min-width: 0;
}
.sec-head { float: left; width: 100%; padding: 0; margin: 0; }
.sec-toggle {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.6rem 0;
  background: none;
  border: 0;
  font: inherit;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.sec-letter {
  flex: none;
  width: 2rem; height: 2rem;
  display: grid; place-content: center;
  border-radius: 8px;
  background: var(--red);
  color: #fff;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1rem;
  line-height: 1;
}
.sec-title {
  flex: 1;
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: 1.3rem;
  line-height: 1.05;
}
.sec-chev { flex: none; width: 18px; height: 18px; color: var(--ink-3); transition: transform .2s var(--ease); }
.sec.collapsed .sec-chev { transform: rotate(-90deg); }
.sec-toggle:hover .sec-chev { color: var(--ink); }
.sec-toggle:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: 6px; }
.sec-body {
  clear: both;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.4rem 1.5rem;
  padding: 1.1rem 0 0.6rem 2.9rem;   /* aligns with the title, clear of the letter */
}
.sec.collapsed .sec-body { display: none; }
.sec-body > .hint, .sec-body > .full { grid-column: 1 / -1; }
.hint { margin: 0; color: var(--ink-3); font-size: 0.92rem; line-height: 1.5; }
/* Policy and statement boxes inside a section */
.policy {
  padding: 1.1rem 1.3rem 1.2rem;
  border-radius: 12px;
  background: var(--paper);
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--ink-2);
}
.policy .label { margin: 0 0 0.6rem; color: var(--red); font-size: 0.68rem; }
.policy p { margin: 0; }
.policy ul { margin: 0.7rem 0 0; padding-left: 1.1rem; }
.policy li { margin: 0.25rem 0; }
.policy a { color: var(--ink); }
.field { display: flex; flex-direction: column; gap: 0.5rem; }
.field.full { grid-column: 1 / -1; }
.field > label, .field .lbl {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field .req { color: var(--red); }
/* Fields: flat, filled, no outlines at rest. A soft ink tint on cream, a clean white
   surface on focus with a 2px ink ring, red only for errors. */
.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="datetime-local"], .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: rgba(22, 16, 26, 0.055);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  width: 100%;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%2316101A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.8rem;
  cursor: pointer;
}
.field select:invalid, .field select option[value=""] { color: var(--ink-3); }
.field select option { color: var(--ink); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field select:hover, .field textarea:hover { background-color: rgba(22, 16, 26, 0.085); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  background-color: #fff;
  border-color: var(--ink);
}
.field input:user-invalid, .field select:user-invalid { border-color: var(--red); background-color: #fff; }
.field .help { font-size: 0.82rem; color: var(--ink-3); line-height: 1.5; }

/* Custom dropdown (progressive enhancement over the native select; see register.html).
   The trigger matches the fields; the menu is a floating white panel. */
.dd { position: relative; }
.dd-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  font: inherit;
  font-size: 1rem;
  text-align: left;
  color: var(--ink);
  background: rgba(22, 16, 26, 0.055);
  border: 2px solid transparent;
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.dd-trigger .dd-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-trigger.is-placeholder .dd-value { color: var(--ink-3); }
.dd-trigger .dd-chev { flex: none; width: 16px; height: 16px; transition: transform .2s var(--ease); }
.dd-trigger:hover { background-color: rgba(22, 16, 26, 0.085); }
.dd-trigger:focus-visible, .dd.open .dd-trigger { outline: none; background-color: #fff; border-color: var(--ink); }
.dd.open .dd-trigger .dd-chev { transform: rotate(180deg); }
.dd-trigger.is-invalid { border-color: var(--red); background-color: #fff; }
.dd-menu {
  position: absolute;
  left: 0; right: 0;
  top: calc(100% + 8px);
  z-index: 30;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 48px -16px rgba(22, 16, 26, 0.28), 0 2px 8px rgba(22, 16, 26, 0.08);
  max-height: min(340px, 50vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-6px) scale(0.985);
  transform-origin: top center;
  pointer-events: none;
  transition: opacity .16s var(--ease), transform .18s var(--ease);
}
.dd.up .dd-menu { top: auto; bottom: calc(100% + 8px); transform-origin: bottom center; }
.dd.open .dd-menu { opacity: 1; transform: none; pointer-events: auto; }
.dd-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 9px;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--ink);
}
.dd-option.active { background: rgba(22, 16, 26, 0.06); }
.dd-option[aria-selected="true"] { background: var(--ink); color: #fff; }
.dd-option[aria-selected="true"].active { background: #2A2230; }
.dd-option .dd-tick { flex: none; width: 14px; height: 14px; opacity: 0; }
.dd-option[aria-selected="true"] .dd-tick { opacity: 1; }
.dd .dd-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
@media (prefers-reduced-motion: reduce) { .dd-menu, .dd-trigger .dd-chev { transition: none; } }

/* Date and time picker panel */
.dtp-panel { padding: 16px 16px 14px; max-height: none; overflow: visible; width: min(100%, 460px); }
.dtp-trigger .dtp-icon { transform: none !important; }
.dtp-group + .dtp-group { margin-top: 12px; }
.dtp-k {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
}
.dtp-pills { display: flex; flex-wrap: wrap; gap: 6px; }
/* the expected day is set already; a link opens a calendar for the exceptional case */
.dtp-fixed { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; }
.dtp-fixed-day { font-family: var(--display); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: -0.01em; color: var(--ink); }
.dtp-fixed.is-other .dtp-fixed-day { color: var(--red-deep); }
.dtp-change { padding: 0; font-size: 0.82rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }
.dtp-change:hover { color: var(--red); }
.stay-fixed { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem; margin: 0.2rem 0 0.4rem; }
.stay-fixed-night { font-family: var(--display); font-weight: 800; font-size: 1.05rem; text-transform: uppercase; letter-spacing: -0.01em; color: var(--ink); }
.stay-fixed.is-other .stay-fixed-night { color: var(--red-deep); }
.stay-change { padding: 0; font-size: 0.82rem; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; font-family: inherit; cursor: pointer; }
.stay-change:hover { color: var(--red); }
.stay-nights { margin: 0.4rem 0 0.2rem; }
.stay-nights[hidden] { display: none; }
.choice.rec span { box-shadow: inset 0 0 0 2px var(--red); color: var(--red-deep); background: rgba(237, 28, 46, 0.08); }
.choice.rec input:checked + span { background: var(--red); color: #fff; box-shadow: none; }
.dtp-cal { display: none; margin-top: 10px; padding: 10px 10px 8px; border-radius: 10px; background: rgba(22, 16, 26, 0.045); }
.dtp-cal.open { display: block; }
.dtp-cal-head { font-family: var(--mono); font-weight: 500; font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 8px 4px; }
.dtp-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.dtp-cal-wd { font-family: var(--mono); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding: 2px 0 4px; }
.dtp-cal-day {
  font: inherit; font-size: 0.86rem; font-weight: 600; color: var(--ink);
  background: #fff; border: 0; border-radius: 8px; height: 2.2rem; cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.dtp-cal-day:hover { background: rgba(22, 16, 26, 0.1); }
.dtp-cal-day:disabled { background: transparent; color: var(--ink-3); opacity: 0.45; cursor: default; }
.dtp-cal-day.rec { box-shadow: inset 0 0 0 2px var(--red); color: var(--red-deep); }
.dtp-cal-day.on { background: var(--ink); color: #fff; box-shadow: none; }
.dtp-cal-day.rec.on { background: var(--red); }
.dtp-cal-day:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.dtp-pill {
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(22, 16, 26, 0.055);
  border: 0;
  border-radius: 999px;
  padding: 0.5rem 0.8rem;
  cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease), transform .15s var(--ease);
}
.dtp-hours .dtp-pill { padding: 0.45rem 0; width: 2.6rem; text-align: center; font-variant-numeric: tabular-nums; }
.dtp-mins .dtp-pill { width: 3rem; text-align: center; font-variant-numeric: tabular-nums; }
.dtp-pill:hover { background: rgba(22, 16, 26, 0.11); }
.dtp-pill:active { transform: scale(0.96); }
.dtp-pill.on { background: var(--ink); color: #fff; }
.dtp-pill:disabled { opacity: 0.3; cursor: default; }
.dtp-pill:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.dtp-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(22, 16, 26, 0.1); }
.dtp-link { font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--ink-3); background: none; border: 0; padding: 0.4rem 0.2rem; cursor: pointer; }
.dtp-link:hover { color: var(--ink); }
.dtp-done { padding: 0.55rem 1rem; font-size: 0.82rem; }

/* Choice pills */
.choices { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.choice { position: relative; }
.choice input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  background: rgba(22, 16, 26, 0.055);
  transition: background-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.choice:hover span { background: rgba(22, 16, 26, 0.11); }
.choice:active span { transform: scale(0.97); }
.choice input:checked + span { background: var(--ink); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

/* Checkboxes */
.check { display: grid; grid-template-columns: 1.35rem 1fr; gap: 0.9rem; align-items: start; font-size: 0.95rem; line-height: 1.5; grid-column: 1 / -1; }
.check input {
  appearance: none;
  -webkit-appearance: none;
  width: 1.35rem; height: 1.35rem;
  margin: 0.1rem 0 0;
  border: 0;
  border-radius: 7px;
  background: rgba(22, 16, 26, 0.12);
  cursor: pointer;
  display: grid; place-content: center;
  transition: background-color .18s var(--ease), transform .18s var(--ease);
}
.check input:hover { background: rgba(22, 16, 26, 0.2); }
.check input:active { transform: scale(0.92); }
.check input::before {
  content: '';
  width: 0.7rem; height: 0.7rem;
  transform: scale(0);
  transition: transform .18s var(--ease);
  background: #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}
.check input:checked { background: var(--red); }
.check input:checked::before { transform: scale(1); }
.check input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.check label { cursor: pointer; }

.conditional { display: none; }
.conditional.show { display: flex; }
.conditional-group { display: none; }
.conditional-group.show {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.4rem 1.5rem;
}
.field input[type="datetime-local"] { min-height: 3.4rem; }
.field input[type="datetime-local"]::-webkit-calendar-picker-indicator { cursor: pointer; opacity: 0.7; }

.form-actions {
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}
.form-actions .small { font-size: 0.85rem; color: var(--ink-3); margin: 0; }
.form-error {
  grid-column: 1 / -1;
  display: none;
  background: rgba(237, 28, 46, 0.08);
  color: var(--red-deep);
  border-radius: 12px;
  padding: 0.95rem 1.1rem;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}
.form-error.show { display: block; }

.success {
  display: none;
  padding-top: 2rem;
}
.success.show { display: block; }
.success-gif { margin: 1.4rem 0 1.6rem; max-width: 420px; }
.success-gif img { display: block; width: 100%; height: auto; border-radius: 12px; }
.success-gif figcaption { margin-top: 0.4rem; font-size: 0.72rem; color: var(--ink-3); text-align: right; }
.success-gif a { color: var(--ink-3); text-decoration: none; border-bottom: 1px solid rgba(22, 16, 26, 0.2); }
.success-gif a:hover { color: var(--ink); border-color: var(--ink); }
.success h2 { margin-bottom: 1rem; }
.success .back-row { margin-top: 1.6rem; }
.success .ref { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.08em; color: var(--ink-2); }

/* Responsive */
@media (max-width: 980px) {
  .sectors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero .wrap, .hero-copy, .two-col, .reg-layout { grid-template-columns: 1fr; }
  .hero-side { padding-bottom: 0; }
  .two-col .sticky, .reg-aside, .legal-nav { position: static; }
  .legal-layout { grid-template-columns: 1fr; }
  .legal-meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reg-intro .facts { grid-template-columns: 1fr; }
  .sec-body { padding-left: 0; }
  .site-footer .wrap { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    padding: 8px var(--gutter) 20px;
  }
  .nav.open a:not(.btn) { padding: 14px 0; }
  .nav.open .btn { margin-top: 14px; justify-content: center; }
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: 1.5px solid var(--line-strong);
    border-radius: 4px;
    padding: 8px 12px;
    font: 600 0.8rem var(--display);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ink);
    cursor: pointer;
  }
  .hero-panel { aspect-ratio: 4 / 3; min-height: 0; }
  .hero-panel .funded { width: 84px; right: 14px; bottom: 14px; }
  .glance .t { max-width: 10ch; }
  .cta { --slant: 6vw; }
  .site-footer { --slant: 6vw; }
  .sec-body, .conditional-group.show, .pillars, .sectors, .kf, .legal-meta, .legal-meta.compact { grid-template-columns: 1fr; }
  .rights div { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; align-items: start; }
  .pillar { min-height: 220px; }
  .cta .wrap { grid-template-columns: 1fr; }
  .editions li { grid-template-columns: 4rem 1fr; }
  .editions .nth { grid-column: 2; }
}
