/* =========================================================
   components.css — shared components (all variants)
   Variant differences come from --v-* tokens and small
   variant-x.css overrides.
   ========================================================= */

/* ── Buttons ──────────────────────────────────────────── */

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border: 2px solid transparent;
  border-radius: var(--v-radius-btn);
  font-family: var(--v-font-body);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn:hover { transform: translateY(-2px); }

.btn--solid {
  background: var(--v-color-action);
  border-color: var(--v-color-action);
  color: var(--v-color-action-text);
  box-shadow: 0 8px 20px rgba(7, 28, 47, 0.16);
}
.btn--solid:hover,
.btn--solid:focus-visible {
  background: var(--v-color-action-hover);
  border-color: var(--v-color-action-hover);
  color: var(--white);
}

.btn--outline {
  background: transparent;
  border-color: var(--v-color-heading);
  color: var(--v-color-heading);
}
.btn--outline:hover,
.btn--outline:focus-visible {
  background: var(--v-color-heading);
  color: var(--white);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
  color: var(--white);
  backdrop-filter: blur(2px);
}
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: var(--white);
  color: var(--navy-900);
}

.btn--quiet {
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--color-link);
  font-weight: 700;
  letter-spacing: var(--tracking-normal);
  text-transform: none;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
.btn--quiet:hover { color: var(--color-link-hover); transform: none; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

/* ── Section header ───────────────────────────────────── */

.eyebrow {
  display: block;
  margin: 0 0 var(--space-3);
  color: var(--v-color-accent);
  font-family: var(--v-font-display);
  font-size: var(--step--1);
  font-weight: 800;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.section-header {
  max-width: var(--measure-wide);
  margin: 0 auto var(--space-7);
  text-align: center;
}

.section-header--left {
  margin-inline: 0;
  text-align: left;
}

.section-header__rule {
  width: 72px;
  height: 3px;
  margin: var(--space-4) auto 0;
  border: 0;
  background: var(--v-color-brand);
}

.section-header--left .section-header__rule { margin-inline: 0; }

/* Rule used as a standalone divider under a left-aligned heading */
.section-header__rule--flush {
  margin: 0 0 var(--space-5);
}

.section-header__intro {
  margin: var(--space-5) auto 0;
  max-width: var(--measure);
  color: var(--ink-muted);
  font-size: var(--step-1);
}

/* ── Header / nav ─────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--navy-900);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  transition: background-color var(--dur-base) var(--ease-out);
}

.site-header__inner {
  display: flex;
  min-height: var(--nav-h);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex: 0 0 auto;
}

.brand__logo {
  width: auto;
  height: clamp(38px, 4vw, 52px);
  max-width: 46vw;
  object-fit: contain;
}

.brand__text {
  display: none;
  color: var(--white);
  font-family: var(--v-font-display);
  font-size: var(--step--1);
  font-weight: 900;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  line-height: 1.2;
}

@media (min-width: 720px) {
  .brand__text { display: block; }
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.nav__list {
  display: none;
  align-items: center;
  gap: var(--space-1);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__item { margin: 0; position: relative; }

.nav__link,
.nav__toggle {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--white);
  font-family: var(--v-font-body);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: var(--tracking-wide);
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.nav__link:hover,
.nav__toggle:hover,
.nav__link[aria-current="page"] {
  color: var(--sky-500);
}

.nav__link[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--sky-500);
}

.nav__chevron {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--dur-fast) var(--ease-out);
}

.nav__toggle[aria-expanded="true"] .nav__chevron {
  transform: rotate(-135deg) translateY(-2px);
}

.nav__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 230px;
  margin: 0;
  padding: var(--space-2) 0;
  list-style: none;
  border-radius: var(--radius-sm);
  background: var(--navy-950);
  box-shadow: var(--shadow-2);
}

.nav__menu[hidden] { display: none; }

.nav__menu li { margin: 0; }

.nav__menu a {
  display: block;
  padding: var(--space-3) var(--space-4);
  color: var(--white);
  font-size: var(--step--1);
  text-decoration: none;
}

.nav__menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--sky-500);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav__actions .btn {
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  font-size: 0.75rem;
}

.nav__cta {
  display: none;
  background: var(--green-700);
  border-color: var(--green-700);
  color: var(--white);
}
.nav__cta:hover { background: var(--green-800); border-color: var(--green-800); color: var(--white); }

.nav__login {
  display: none;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  background: transparent;
}
.nav__login:hover { background: var(--white); color: var(--navy-900); }

@media (min-width: 600px) {
  .nav__cta { display: inline-flex; }
}

@media (min-width: 1080px) {
  .nav__list { display: flex; }
  .nav__login { display: inline-flex; }
  .nav__burger { display: none; }
}

.nav__burger {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--white);
  cursor: pointer;
}

.nav__burger svg { width: 20px; height: 20px; }

/* Mobile drawer */

.drawer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--navy-900);
  padding: var(--space-4) 0 var(--space-6);
}

.drawer[hidden] { display: none; }

.drawer__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.drawer__list li { margin: 0; }

.drawer__list a {
  display: block;
  padding: var(--space-3) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--white);
  font-size: var(--step-1);
  font-weight: 700;
  text-decoration: none;
}

.drawer__list a:hover { color: var(--sky-500); }

.drawer__group-label {
  margin: var(--space-4) 0 var(--space-2);
  color: var(--sky-500);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.drawer__actions {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

body.nav-open { overflow: hidden; }

/* Without JavaScript the burger cannot toggle anything, so expose the drawer
   inline and drop the control that would do nothing. */
html:not(.js) .nav__burger { display: none; }
html:not(.js) .drawer[hidden] { display: block; }
html:not(.js) .nav__menu[hidden] { display: none; }

/* ── Hero ─────────────────────────────────────────────── */

.hero {
  position: relative;
  display: flex;
  /* One source of truth for the hero's height, so the portrait can be sized
     against the hero rather than the viewport. */
  --hero-h: min(88svh, 760px);
  min-height: var(--hero-h);
  align-items: flex-end;
  isolation: isolate;
  padding-block: var(--space-8);
  overflow: hidden;
  color: var(--white);
  background: var(--navy-900);
  text-align: center;
}

.hero__flags {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* The portrait is authored at 475x667 and is never drawn larger than that.
   Its height is derived from the space left over once the text block has its
   room, so on shorter screens the figure scales *down* — which costs no quality
   — instead of colliding with the headline. 430px is the reserved text height;
   --hero-figure-max is the hard ceiling that guarantees no upscaling. */
.hero__figure {
  position: absolute;
  bottom: 0;
  left: 50%;
  z-index: -2;
  width: auto;
  /* Never taller than the hero, never taller than 667px (its native size). */
  height: min(667px, var(--hero-h));
  max-width: none;
  object-fit: contain;
  object-position: bottom center;
  transform: translateX(-50%);
  pointer-events: none;
}

/* The flags now carry real colour, including the Union flag's white saltire,
   so the scrim has to reach 0.55 alpha wherever text can land: white on #fff
   at 0.38 is only 2.68:1. 0.58 gives 5.3:1 against the brightest flag pixel,
   and the lower band deepens further to seat the headline. */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.42) 0%,
    rgba(0, 0, 0, 0.58) 40%,
    rgba(0, 0, 0, 0.72) 70%,
    rgba(0, 0, 0, 0.84) 100%
  );
}

.hero__inner {
  width: min(100%, 1000px);
  margin-inline: auto;
}

.hero__title {
  margin-bottom: var(--space-5);
  color: var(--white);
  font-size: var(--step-5);
  letter-spacing: var(--tracking-tight);
  text-transform: none;
  text-wrap: balance;
}

.hero__copy {
  max-width: 780px;
  margin: 0 auto var(--space-6);
}

.hero__copy p {
  color: var(--color-on-dark-muted);
  font-size: clamp(1rem, 1.35vw, 1.2rem);
  font-weight: 500;
  line-height: var(--leading-snug);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}

@media (max-width: 520px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
}

/* Phones: the flags are removed and the portrait carries the hero alone.
   There is not enough height for flags, portrait and copy together, so the
   portrait is put into the normal flow above the text instead of being
   layered behind it. That removes the collision entirely: the face can never
   sit under the headline, because they are no longer stacked.
   The portrait is a cut-out with alpha, so it sits directly on the navy
   surface with no plate behind it. */
@media (max-width: 700px) {
  .hero {
    --hero-h: auto;
    flex-direction: column;
    align-items: center;
    min-height: 0;
    padding-top: 0;
  }

  .hero__flags { display: none; }

  .hero__figure {
    position: relative;
    bottom: auto;
    left: auto;
    z-index: auto;
    order: -1;
    height: min(52svh, 420px);
    width: auto;
    max-width: 100%;
    margin: 0 auto var(--space-6);
    transform: none;
  }

  /* No cloth behind the copy on phones, so the scrim has nothing to correct
     for; the navy surface already gives full contrast. */
  .hero__overlay { display: none; }
}

/* ── Cards ────────────────────────────────────────────── */

.card {
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--v-radius-card);
  background: var(--v-surface);
  box-shadow: var(--v-shadow-card);
  transition: transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}

.card:hover { transform: translateY(-3px); }

.card__title {
  margin-bottom: var(--space-3);
  font-size: var(--step-1);
  letter-spacing: normal;
  text-transform: none;
}

.card__text { color: var(--ink-muted); font-size: var(--step-0); }

/* Objective card */

.objective {
  position: relative;
  padding-top: var(--space-6);
}

.objective__number {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--v-color-accent);
  font-family: var(--v-font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 900;
  line-height: 1;
}

.objective__text {
  margin: 0;
  color: var(--v-color-heading);
  font-size: var(--step-0);
  font-weight: 600;
  line-height: var(--leading-snug);
}

/* Value card */

.value {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--v-radius-card);
  background: var(--v-surface);
}

/* Mirrors .challenge__media: a tinted tile that seats the mark, rather than a
   glyph floating on the card. Keeps the two card families visibly related. */
.value__icon {
  display: flex;
  width: 56px;
  height: 56px;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  border-radius: var(--v-radius-card);
  background: var(--v-color-icon-tile);
  color: var(--v-color-brand-text);
}

.value__icon svg {
  width: 34px;
  height: 34px;
}

.value__title {
  margin-bottom: var(--space-2);
  color: var(--v-color-brand-text);
  font-size: var(--step-1);
  letter-spacing: normal;
  text-transform: none;
}

.value__text {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--step--1);
}

/* Service card */

.service {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--v-radius-card);
  background: var(--v-surface);
  box-shadow: var(--v-shadow-card);
}

.service__title {
  margin: 0;
  font-size: var(--step-2);
  letter-spacing: normal;
  text-transform: none;
}

.service__sub {
  margin: 0;
  color: var(--v-color-brand-text);
  font-size: var(--step-0);
  font-weight: 700;
}

.service__label {
  margin: 0 0 var(--space-2);
  color: var(--ink-subtle);
  font-family: var(--v-font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.service__list {
  margin: 0;
  padding-left: 1.15em;
  color: var(--ink-muted);
  font-size: var(--step--1);
}

.service__outcome {
  margin: 0;
  color: var(--v-color-heading);
  font-size: var(--step--1);
  font-weight: 600;
}

.service__cta {
  margin-top: auto;
  font-weight: 700;
}

/* Challenge card */

.challenge {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--v-radius-card);
  background: var(--v-surface);
}

.challenge__media {
  flex: 0 0 auto;
  width: 84px;
  height: 84px;
  overflow: hidden;
  border-radius: var(--v-radius-card);
  background: var(--v-surface-alt);
}

.challenge__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.challenge__title {
  margin-bottom: var(--space-2);
  font-size: var(--step-1);
  letter-spacing: normal;
  text-transform: none;
}

.challenge__text {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--step--1);
}

@media (max-width: 560px) {
  .challenge { flex-direction: column; }
}

/* Leader card */

.leaders {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr));
  gap: var(--space-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

.leader { margin: 0; text-align: center; }

.leader__avatar {
  display: grid;
  width: 132px;
  height: 132px;
  margin: 0 auto var(--space-4);
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-circle);
  background: var(--navy-050);
  color: var(--navy-800);
  font-family: var(--v-font-display);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: normal;
}

.leader__avatar img { width: 100%; height: 100%; object-fit: cover; }

.leader__name {
  margin: 0 0 var(--space-1);
  color: var(--v-color-heading);
  font-family: var(--v-font-display);
  font-size: var(--step-0);
  font-weight: 800;
  letter-spacing: normal;
  text-transform: none;
}

.leader__role {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--step--1);
  line-height: 1.4;
}

/* Event card */

.event {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--v-radius-card);
  background: var(--v-surface);
  box-shadow: var(--v-shadow-card);
}

.event__city {
  margin: 0;
  color: var(--v-color-accent);
  font-family: var(--v-font-display);
  font-size: var(--step--1);
  font-weight: 900;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

.event__title {
  margin: 0;
  font-size: var(--step-1);
  letter-spacing: normal;
  text-transform: none;
}

.event__meta {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--step--1);
}

.event__status {
  align-self: flex-start;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--green-050);
  color: var(--green-700);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.event__status--pending {
  background: var(--gold-050);
  color: var(--gold-800);
}

/* ── Ticker ───────────────────────────────────────────── */

.ticker {
  position: relative;
  overflow: hidden;
  height: 56px;
  background: var(--black);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ticker__track {
  display: inline-flex;
  align-items: center;
  gap: clamp(2rem, 8vw, 7rem);
  height: 100%;
  padding-inline: var(--space-4);
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 38s linear infinite;
}

.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__item {
  color: var(--ticker-ink);
  font-family: var(--v-font-display);
  font-size: clamp(0.8rem, 1.4vw, 1rem);
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  text-decoration: none;
  text-transform: uppercase;
}

.ticker__item:hover { color: var(--white); }

.ticker__figure { color: var(--green-500); }

.ticker__sep { color: var(--ticker-sep); }

@keyframes ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
}

/* ── Footer ───────────────────────────────────────────── */

.site-footer {
  padding-block: var(--space-8) var(--space-5);
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--step--1);
}

.site-footer h2,
.site-footer h3,
.site-footer h4 {
  color: var(--white);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  font-size: 0.8rem;
}

.footer__grid {
  display: grid;
  gap: var(--space-6);
  grid-template-columns: 1fr;
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

@media (min-width: 760px) {
  .footer__grid { grid-template-columns: 1.2fr 1fr 1.2fr; gap: var(--space-8); }
}

.footer__logo {
  width: 150px;
  height: auto;
  margin-bottom: var(--space-4);
}

.footer__links {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links li { margin: 0; }

.footer__links a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.footer__links a:hover { color: var(--green-500); }

.footer__contact p { margin: 0 0 var(--space-2); }
.footer__contact a { color: var(--white); text-decoration: none; }
.footer__contact a:hover { color: var(--green-500); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: space-between;
  padding-top: var(--space-5);
  font-size: 0.8rem;
  opacity: 0.75;
}

.footer__bottom p { margin: 0; }

/* ── Page header (inner pages) ────────────────────────── */

.page-head {
  padding-block: var(--space-8) var(--space-7);
  background: var(--v-surface-alt);
  border-bottom: 1px solid var(--line);
}

.page-head__title {
  margin-bottom: var(--space-4);
  font-size: var(--step-4);
}

.page-head__intro {
  max-width: var(--measure);
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--step-1);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
}

.breadcrumb li { margin: 0; }
.breadcrumb li + li::before {
  content: "/";
  margin-right: var(--space-2);
  color: var(--ink-subtle);
}

/* ── Forms ────────────────────────────────────────────── */

.form {
  display: grid;
  gap: var(--space-5);
}

.form__fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.form__legend {
  padding: 0;
  margin-bottom: var(--space-4);
  color: var(--v-color-heading);
  font-family: var(--v-font-display);
  font-size: var(--step-1);
  font-weight: 800;
  letter-spacing: normal;
  text-transform: none;
}

.form__row {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 640px) {
  .form__row--two { grid-template-columns: 1fr 1fr; }
  .form__row--three { grid-template-columns: 1fr 1fr 1fr; }
}

.form__group { display: grid; gap: var(--space-2); }

.form__label {
  color: var(--v-color-heading);
  font-size: var(--step--1);
  font-weight: 700;
}

.form__label .req { color: var(--color-danger); }
.form__label .opt {
  color: var(--ink-subtle);
  font-weight: 400;
}

.form__input,
.form__select,
.form__textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: var(--step-0);
}

.form__textarea { min-height: 130px; resize: vertical; }

.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  border-color: var(--sky-500);
  outline: 3px solid rgba(46, 179, 248, 0.35);
  outline-offset: 0;
}

.form__hint {
  margin: 0;
  color: var(--ink-subtle);
  font-size: 0.8rem;
}

.check {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--step--1);
}

/* Selectable option in the volunteer capacity list */
.check--boxed {
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--v-surface);
  cursor: pointer;
}

.check--boxed:hover { border-color: var(--v-color-brand); }

.choice-list {
  display: grid;
  gap: var(--space-3);
}

.check input {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.15em;
  accent-color: var(--green-600);
}

.form__notice {
  padding: var(--space-4) var(--space-5);
  border-left: 4px solid var(--gold-500);
  background: var(--gold-050);
  font-size: var(--step--1);
}

.form__notice p { margin: 0 0 var(--space-2); }
.form__notice p:last-child { margin: 0; }

.form__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Gallery ──────────────────────────────────────────── */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  padding: 0;
  list-style: none;
}

.filters li { margin: 0; }

.filter-btn {
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  border: 2px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--v-surface);
  color: var(--ink-muted);
  font-size: var(--step--1);
  font-weight: 700;
  cursor: pointer;
}

.filter-btn[aria-pressed="true"] {
  border-color: var(--v-color-heading);
  background: var(--v-color-heading);
  color: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-grid li { margin: 0; }

.gallery-item {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--v-radius-card);
  background: none;
  cursor: pointer;
  overflow: hidden;
  text-align: left;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform var(--dur-slow) var(--ease-out);
}

.gallery-item:hover img { transform: scale(1.04); }

.gallery-item__caption {
  padding: var(--space-3) 0 0;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.lightbox {
  max-width: min(1100px, 92vw);
  padding: 0;
  border: 0;
  border-radius: var(--v-radius-card);
  background: var(--navy-1000);
}

.lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }

.lightbox img { width: 100%; height: auto; }

.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-3) var(--space-4);
  color: var(--white);
  font-size: var(--step--1);
}

.lightbox__close {
  min-height: 40px;
  padding: var(--space-2) var(--space-4);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-sm);
  background: none;
  color: var(--white);
  font-size: var(--step--1);
  font-weight: 700;
  cursor: pointer;
}

/* ── Map / city finder ────────────────────────────────── */

.map-panel {
  display: grid;
  gap: var(--space-6);
}

@media (min-width: 900px) {
  .map-panel { grid-template-columns: 1.15fr 1fr; align-items: start; }
}

.map-figure {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--v-radius-card);
  background: var(--v-surface-alt);
}

.map-figure svg { width: 100%; height: auto; }

/* Country shapes on the map page. The artwork is the same Europe hero used on
   the home page, so the selector targets its own classes rather than the old
   four-nation `region` markup. */
.map-figure .he-country {
  fill: var(--map-region);
  stroke: var(--white);
  stroke-width: 0.7;
  cursor: pointer;
  transition: fill var(--dur-fast) var(--ease-out);
}

.map-figure .he-country:hover,
.map-figure .he-country:focus-visible { fill: var(--green-600); }

/* The selected country is the only one carrying real colour, so the filter's
   effect is visible on the artwork and not just in the list beside it. The hook
   is data-selected, not aria-pressed: the shapes are pointer shortcuts, not
   controls, so they have no pressed state to announce. */
.map-figure .he-country[data-selected="true"] { fill: var(--navy-800); }

/* Markers are decorative on this page: the city list is the operable version of
   the same information, and making dots interactive would add 50 tab stops. */
.map-figure .he-dot { pointer-events: none; }

.map-figure .region-label {
  fill: var(--white);
  font-family: var(--v-font-display);
  font-size: 11px;
  font-weight: 800;
  pointer-events: none;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-4);
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.map-legend span { display: inline-flex; align-items: center; gap: var(--space-2); }
.map-legend i {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--map-region);
}
.map-legend i.active { background: var(--green-600); }
.map-legend i.selected { background: var(--navy-800); }

.city-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-3);
  max-height: 560px;
  overflow-y: auto;
}

.city {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--v-radius-card);
  background: var(--v-surface);
}

.city[hidden] { display: none; }

.city__name {
  margin: 0 0 var(--space-1);
  font-family: var(--v-font-display);
  font-size: var(--step-0);
  font-weight: 800;
  letter-spacing: normal;
  text-transform: none;
}

.city__meta {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.8rem;
}

.city__status {
  display: inline-block;
  margin-top: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
}

.city__status--active { background: var(--green-050); color: var(--green-700); }
.city__status--forming { background: var(--gold-050); color: var(--gold-800); }
.city__status--none { background: var(--surface-alt); color: var(--ink-muted); }

.city-filter {
  display: grid;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.city-filter label {
  color: var(--v-color-heading);
  font-size: var(--step--1);
  font-weight: 700;
}

/* ── Timeline ─────────────────────────────────────────── */

.timeline {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: milestone;
}

.timeline li {
  position: relative;
  margin: 0;
  padding: 0 0 var(--space-6) var(--space-6);
  border-left: 2px solid var(--line);
}

.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }

.timeline li::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  left: -7px;
  width: 12px;
  height: 12px;
  border-radius: var(--radius-circle);
  background: var(--green-500);
}

.timeline__year {
  display: block;
  margin-bottom: var(--space-1);
  color: var(--v-color-accent);
  font-family: var(--v-font-display);
  font-size: var(--step-1);
  font-weight: 900;
  letter-spacing: var(--tracking-wide);
}

.timeline__text { margin: 0; color: var(--ink-muted); }

/* ── Statement blocks ─────────────────────────────────── */

.statement {
  padding: var(--space-6) 0;
  border-top: 2px solid var(--v-color-brand);
}

.statement__title {
  margin-bottom: var(--space-4);
  color: var(--v-color-brand-text);
  font-size: var(--step-1);
  letter-spacing: var(--tracking-wider);
}

.statement__text {
  margin: 0;
  color: var(--v-color-heading);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: var(--leading-snug);
}

/* ── Callout band ─────────────────────────────────────── */

.callout {
  padding-block: var(--space-8);
  background: var(--navy-800);
  color: var(--white);
  text-align: center;
}

.callout h2 { color: var(--white); }
.callout p {
  max-width: var(--measure);
  margin: 0 auto var(--space-5);
  color: rgba(255, 255, 255, 0.88);
}
.callout .btn-group { justify-content: center; }

/* ── Reveal animation ─────────────────────────────────── */

/* Reveals only ever hide content when JS is running, so a failed script or a
   blocked one leaves the page fully readable. `.js` is set by a one-line
   inline script in <head>. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease-out),
    transform var(--dur-slow) var(--ease-out);
}

.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ── Consent banner ───────────────────────────────────── */

.consent {
  position: fixed;
  right: var(--space-4);
  bottom: var(--space-4);
  left: var(--space-4);
  z-index: 1300;
  max-width: 560px;
  padding: var(--space-5);
  border-radius: var(--v-radius-card);
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow-2);
}

.consent[hidden] { display: none; }

.consent h2 {
  margin-bottom: var(--space-2);
  font-size: var(--step-1);
  letter-spacing: normal;
  text-transform: none;
}

.consent p { font-size: var(--step--1); color: var(--ink-muted); }

.consent__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-4);
}

/* =========================================================
   Institutional design rules

   These were `variant-a.css`, loaded as a fourth stylesheet only by
   variant A. A was chosen, so the fourth file is gone and the rules
   live here as ordinary declarations — there is no competing design
   for them to override.

   Anything expressible as a token stayed in tokens.css instead; only
   genuinely structural differences are here.
   ========================================================= */

/* Squarer, more formal surfaces */
.card,
.service {
  border-top: 3px solid var(--v-color-brand);
}

/* Centred, uppercase headings hold the reference site's look */
.page-head__title { letter-spacing: var(--tracking-widest); }

/* Tighter leader grid for a formal register */
.leader__role { letter-spacing: 0.02em; }

/* The hero uses the real photograph, not a flat panel */
.hero { --hero-min: 760px; }

/* Objectives: four across on wide screens */
@media (min-width: 1040px) {
  .objectives-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Values: dense grid, as in the reference */
@media (min-width: 900px) {
  .values-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* A gold rule on the first card of each row, as in the reference site */
.value { border-top: 3px solid var(--line); }
.value:nth-child(4n + 1) { border-top-color: var(--v-color-accent-fill); }

/* Stat band beneath the hero */
.stat-band {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

@media (min-width: 700px) {
  .stat-band { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  padding: var(--space-5) var(--space-4);
  background: var(--v-surface);
  text-align: center;
}

.stat__figure {
  display: block;
  color: var(--green-600);
  font-family: var(--v-font-display);
  font-size: var(--step-2);
  font-weight: 900;
  line-height: 1;
}

.stat__label {
  display: block;
  margin-top: var(--space-2);
  color: var(--ink-subtle);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}
