/* Promise of Africa website. Colours and type follow the Brand Book: black / white / cream as the
   foundation, orange as the primary accent, red and gold as supporting accents. Orange is never
   used for text on light backgrounds (it fails contrast); it appears as fills, borders and marks. */

/* Archivo, self-hosted (public/fonts, SIL Open Font License: public/fonts/OFL.txt) so no visitor's
   browser contacts Google. One variable file per character set covers every weight used (400-800);
   the browser downloads latin-ext only for pages that use those characters. Source:
   @fontsource-variable/archivo 5.3.0. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/archivo-latin-wght.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/archivo-latin-ext-wght.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --orange: #F47C0B;
  --red: #D62D2D;
  --gold: #F5B400;
  --black: #111111;
  --cream: #F8F5EF;
  --white: #FFFFFF;
  --muted: #57504A;
  --line: rgba(17, 17, 17, 0.12);
  --cream-soft: rgba(248, 245, 239, 0.78);
  --radius: 16px;
  --radius-small: 10px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --shadow-soft: 0 1px 2px rgba(17, 17, 17, 0.04), 0 8px 24px rgba(17, 17, 17, 0.06);
  --shadow-lift: 0 2px 6px rgba(17, 17, 17, 0.06), 0 22px 44px rgba(17, 17, 17, 0.12);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --section-space: clamp(72px, 9vw, 128px);
  color-scheme: light;
}

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

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

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--black);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Four-colour brand stripe, as on the holding page. */
body::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg,
    var(--black) 0 25%,
    var(--orange) 25% 50%,
    var(--red) 50% 75%,
    var(--gold) 75% 100%);
}

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

h1,
h2,
h3 {
  margin: 0 0 0.5em;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 1.35rem + 2.3vw, 3.125rem);
  letter-spacing: -0.025em;
  line-height: 1.06;
}

h3 {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

a {
  color: inherit;
}

/* Two-tone focus ring: visible on cream, white and black sections alike. */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--black);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: var(--radius-small);
  background: var(--black);
  color: var(--cream);
  font-weight: 700;
}

.skip-link:focus {
  top: 16px;
}

/* ---- Buttons and links ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.75em 1.5em;
  border: 2px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(17, 17, 17, 0.14);
}

.btn:active {
  transform: none;
  box-shadow: none;
}

.btn--small {
  min-height: 40px;
  padding: 0.5em 1.15em;
  font-size: 0.9375rem;
}

.btn--primary {
  background: var(--black);
  color: var(--cream);
}

.btn--primary:hover {
  background: var(--red);
  color: var(--white);
}

.btn--accent {
  background: var(--orange);
  color: var(--black);
}

.btn--accent:hover,
.btn--accent[aria-current="page"] {
  background: var(--gold);
}

.btn--ghost {
  border-color: var(--black);
  color: var(--black);
}

.btn--ghost:hover {
  background: var(--black);
  color: var(--cream);
}

.btn--light {
  background: var(--cream);
  color: var(--black);
}

.btn--light:hover {
  background: var(--gold);
}

/* Outline button for dark or photographic backgrounds. */
.btn--ghost-light {
  border-color: var(--cream);
  color: var(--cream);
}

.btn--ghost-light:hover {
  background: var(--cream);
  color: var(--black);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.text-link {
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 0.2s var(--ease), text-underline-offset 0.2s var(--ease);
}

.text-link:hover {
  text-underline-offset: 7px;
}

.text-link:hover {
  color: var(--red);
}

/* ---- Header ----------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(248, 245, 239, 0.88);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(17, 17, 17, 0.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  flex: none;
  border-radius: 8px;
}

/* Master artwork: the full logo, scaled by height only. */
.brand-logo {
  width: auto;
  height: 76px;
}

.site-nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav-list a:not(.btn) {
  position: relative;
  display: inline-block;
  padding: 8px 0;
  font-weight: 700;
  text-decoration: none;
}

/* An underline that draws in from the left on hover, and stays for the current page. */
.site-nav-list a:not(.btn)::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.site-nav-list a:not(.btn):hover::after,
.site-nav-list a[aria-current="page"]:not(.btn)::after,
.site-nav-list a.is-active::after {
  transform: scaleX(1);
}

/* Just above the phone menu, tighter spacing keeps all seven links on one row. */
@media (max-width: 1000px) {
  .site-nav-list {
    column-gap: 18px;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 16px;
  border: 2px solid var(--black);
  border-radius: 999px;
  background: transparent;
  color: var(--black);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s, background-color 0.2s;
}

.nav-toggle-icon {
  position: relative;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

@media (max-width: 880px) {
  .header-inner {
    flex-wrap: wrap;
  }

  .brand-logo {
    height: 60px;
  }

  .has-js .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    flex-basis: 100%;
  }

  .has-js .site-nav {
    display: none;
  }

  .has-js .site-nav.is-open {
    display: block;
  }

  .site-nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 4px 0 12px;
  }

  .site-nav-list a:not(.btn) {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav-list a:not(.btn)::after {
    display: none;
  }

  .site-nav-list a[aria-current="page"]:not(.btn),
  .site-nav-list a.is-active {
    box-shadow: inset 4px 0 0 var(--orange);
    padding-left: 14px;
  }

  .site-nav-cta {
    margin-top: 16px;
  }

  .site-nav-cta .btn {
    width: 100%;
  }
}

/* ---- Sections and type ---------------------------------------------------------------- */

.section {
  padding: var(--section-space) 0;
}

.section--white {
  background: var(--white);
}

.section--black {
  background: var(--black);
  color: var(--cream);
}

.section-header {
  max-width: 46rem;
  margin-bottom: clamp(32px, 4.5vw, 56px);
}

.section-intro {
  max-width: 42rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.65;
}

.section--black .section-intro {
  color: var(--cream-soft);
}

.section-link {
  margin: 32px 0 0;
}

/* Small label above a heading, led by a short orange rule. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  color: var(--black);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.section--black .eyebrow,
.contact-card .eyebrow {
  color: var(--cream);
}

.section--black .eyebrow::before,
.contact-card .eyebrow::before {
  background: var(--gold);
}

.lead {
  font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  line-height: 1.55;
}

.section--black .lead {
  color: var(--cream-soft);
}

.prose-block {
  max-width: 46rem;
}

.prose-block + .card-grid {
  margin-top: 40px;
}

.block-title {
  margin-bottom: 24px;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
}

/* ---- Home hero ---------------------------------------------------------------------- */

.home-hero {
  padding: clamp(40px, 6vw, 88px) 0;
}

.home-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.home-hero-title {
  margin: 0 0 24px;
  font-size: clamp(2.25rem, 1.3rem + 3.8vw, 4.25rem);
  line-height: 1.02;
  letter-spacing: -0.025em;
}

.home-hero-title span {
  display: block;
}

.home-hero-title span:nth-child(2) {
  color: var(--red);
}

.home-hero .lead {
  max-width: 36rem;
  margin-bottom: 32px;
  color: var(--muted);
}

/* Photo hero: the photo fills the right half edge to edge and never sits behind the text. */
.home-hero--photo {
  position: relative;
  overflow: hidden;
}

.home-hero--photo .home-hero-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: clamp(520px, 66vh, 640px);
}

.home-hero--photo .home-hero-text {
  padding-right: clamp(16px, 3vw, 48px);
}

/* Half-width column: a smaller headline keeps the hero within one screen, which also keeps the
   photo's height (and so its enlargement) down. */
.home-hero--photo .home-hero-title {
  font-size: clamp(2.25rem, 1.1rem + 2.6vw, 3.5rem);
}

.home-hero--photo .lead {
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
}

.home-hero-media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  display: block;
  width: 50%;
}

.home-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
}

@media (max-width: 880px) {
  .home-hero--photo {
    padding-top: 0;
  }

  .home-hero-media {
    position: relative;
    width: 100%;
    height: clamp(220px, 62vw, 440px);
  }

  .home-hero--photo .home-hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-top: 32px;
  }
}

/* Text-only hero, used while photos are switched off (SHOW_PHOTOS). */
.home-hero--text .home-hero-inner {
  grid-template-columns: minmax(0, 1fr);
}

.home-hero--text .home-hero-text {
  max-width: 52rem;
}

/* Know Africa. Experience Africa. Serve Africa. Shape the future. */
.colour-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  list-style: none;
}

.colour-band li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 26px 16px;
  font-size: clamp(0.875rem, 0.75rem + 0.45vw, 1.0625rem);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-align: center;
  text-transform: uppercase;
}

.colour-band li + li {
  border-left: 1px solid var(--line);
}

.colour-band li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--black);
}

.colour-band li:nth-child(2)::before { background: var(--orange); }
.colour-band li:nth-child(3)::before { background: var(--red); }
.colour-band li:nth-child(4)::before { background: var(--gold); }

@media (max-width: 720px) {
  .colour-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Narrow cells: phrases may wrap, so align them left with the dot on the first line. */
  .colour-band li {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 18px 16px;
    font-size: 0.8125rem;
    letter-spacing: 0.1em;
    text-align: left;
  }

  .colour-band li::before {
    margin-top: 0.3em;
  }

  .colour-band li:nth-child(3) {
    border-left: 0;
  }

  .colour-band li:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

/* ---- Page hero ---------------------------------------------------------------------- */

.page-hero {
  padding: clamp(56px, 8vw, 120px) 0 clamp(48px, 6vw, 88px);
  border-bottom: 1px solid var(--line);
}

.page-title {
  max-width: 18em;
  margin: 0 0 20px;
  font-size: clamp(2.5rem, 1.55rem + 3.8vw, 4.5rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.page-lead {
  max-width: 44rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.55;
}

.page-hero--programme {
  border-bottom: 0;
}

.page-hero--programme .page-lead {
  color: inherit;
  font-weight: 700;
}

.page-hero--orange { background: var(--orange); color: var(--black); }
.page-hero--red { background: var(--red); color: var(--white); }
.page-hero--gold { background: var(--gold); color: var(--black); }
.page-hero--black { background: var(--black); color: var(--cream); }

.breadcrumb {
  margin: 0 0 16px;
  font-size: 0.9375rem;
  font-weight: 700;
}

.breadcrumb a {
  text-underline-offset: 3px;
}

/* ---- Quote bands ---------------------------------------------------------------------- */

.quote-band {
  padding: clamp(72px, 9vw, 128px) 0;
}

.quote-band--black {
  background: var(--black);
  color: var(--cream);
}

.quote-band--orange {
  background: var(--orange);
  color: var(--black);
}

.quote-text {
  max-width: 58rem;
  margin: 0;
}

.quote-text::before {
  content: "\201C";
  content: "\201C" / "";
  display: block;
  height: 0.5em;
  margin-bottom: 0.15em;
  color: var(--gold);
  font-size: clamp(5rem, 3rem + 6vw, 8rem);
  font-weight: 800;
  line-height: 0.85;
}

.quote-band--orange .quote-text::before {
  color: var(--black);
}

.quote-text p {
  margin: 0;
  font-size: clamp(1.5rem, 1rem + 2vw, 2.625rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* ---- Statements, cards and lists -------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}

.split {
  column-gap: clamp(32px, 6vw, 96px);
}

.statement {
  padding-top: clamp(24px, 3vw, 36px);
  border-top: 1px solid var(--black);
}

.statement-text {
  margin: 0;
  font-size: clamp(1.25rem, 1rem + 0.9vw, 1.75rem);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -0.01em;
}

@media (max-width: 760px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.card-grid {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: card;
}

.card-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid--five {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.card {
  padding-top: 24px;
  border-top: 1px solid var(--black);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card-title {
  margin-bottom: 10px;
}

/* Accent cards are numbered 01, 02… with a short orange rule. */
.card--accent {
  counter-increment: card;
}

.card--accent::before {
  content: counter(card, decimal-leading-zero);
  display: block;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--orange);
  width: max-content;
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

@media (max-width: 1080px) {
  .card-grid--five {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .card-grid--three,
  .card-grid--five {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .card-grid--three,
  .card-grid--five {
    grid-template-columns: 1fr;
  }
}

.bullets {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bullets--columns {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 48px;
}

.bullets li {
  position: relative;
  padding-left: 28px;
}

.bullets li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--cream);
  font-weight: 700;
}

.section:not(.section--white) .chips li {
  background: var(--white);
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 48px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.checklist li {
  position: relative;
  min-height: 28px;
  padding-left: 42px;
}

.checklist li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gold);
}

.checklist li::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 10px;
  width: 7px;
  height: 13px;
  border: solid var(--black);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

@media (max-width: 760px) {
  .bullets--columns,
  .checklist {
    grid-template-columns: 1fr;
  }
}

/* ---- Journey ---------------------------------------------------------------------- */

.journey {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: journey;
}

.journey--compact {
  margin-top: 32px;
}

.journey-step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

/* The line joining each step to the next. */
.journey-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 21px;
  left: 52px;
  right: -4px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
}

.journey-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid var(--black);
  border-radius: 50%;
  background: var(--cream);
  font-weight: 800;
}

.section--white .journey-number {
  background: var(--white);
}

.journey-step:first-child .journey-number {
  border-color: var(--orange);
  background: var(--orange);
}

.journey-step:last-child .journey-number {
  background: var(--black);
  color: var(--cream);
}

.journey-name {
  font-size: 1.125rem;
  font-weight: 800;
}

@media (max-width: 980px) {
  .journey {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 28px;
  }

  .journey-step::after {
    display: none;
  }
}

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

/* ---- Programmes ---------------------------------------------------------------------- */

.programme-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.programme-card--orange { --accent: var(--orange); }
.programme-card--red { --accent: var(--red); }
.programme-card--gold { --accent: var(--gold); }
.programme-card--black { --accent: var(--black); }

.programme-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 8px solid var(--accent);
  border-radius: var(--radius);
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.section--white .programme-card-link {
  background: var(--cream);
}

.programme-card-link:hover {
  border-color: transparent;
  border-top-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.programme-card-media {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--line);
}

.programme-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.programme-card-link:hover .programme-card-media img {
  transform: scale(1.05);
}

.programme-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 24px;
}

.programme-card-name {
  margin: 0 0 8px;
  font-size: 1.3125rem;
  font-weight: 800;
}

.programme-card-text {
  display: block;
  margin: 0 0 16px;
  color: var(--muted);
}

.programme-card-outcome {
  display: block;
  margin: 0 0 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.programme-card-outcome span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.programme-card-more {
  margin-top: auto;
  font-weight: 700;
}

.programme-card-more .arrow {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}

.programme-card-link:hover .programme-card-more .arrow {
  transform: translateX(4px);
}

@media (max-width: 1080px) {
  .programme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .programme-grid {
    grid-template-columns: 1fr;
  }
}

.programme-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.fact-box {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 24px;
  border-top: 6px solid var(--black);
  border-radius: var(--radius);
  background: var(--white);
}

.fact-box dt {
  margin-bottom: 4px;
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.fact-box dd {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
}

@media (max-width: 880px) {
  .programme-body {
    grid-template-columns: 1fr;
  }
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.area-card {
  padding: 24px;
  border-left: 6px solid var(--orange);
  border-radius: var(--radius);
  background: var(--cream);
}

.area-card:nth-child(4n + 2) { border-left-color: var(--red); }
.area-card:nth-child(4n + 3) { border-left-color: var(--gold); }
.area-card:nth-child(4n + 4) { border-left-color: var(--black); }

.area-title {
  margin-bottom: 8px;
  font-size: 1.25rem;
  font-weight: 800;
}

.area-card p {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .area-grid {
    grid-template-columns: 1fr;
  }
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.framework-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: var(--white);
}

.framework-table th,
.framework-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.framework-table thead th {
  background: var(--black);
  color: var(--cream);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.framework-table tbody th a {
  font-weight: 800;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.framework-table tbody tr:last-child > * {
  border-bottom: 0;
}

.interest-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px);
  border-left: 8px solid var(--orange);
  border-radius: var(--radius);
  background: var(--white);
}

.interest-title {
  margin-bottom: 8px;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
}

.interest-box p {
  max-width: 40rem;
  margin: 0;
  color: var(--muted);
}

/* ---- Features (home) ------------------------------------------------------------------ */

.feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.feature-text .lead {
  margin-bottom: 28px;
}

.feature-list {
  display: grid;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid rgba(248, 245, 239, 0.16);
  list-style: none;
}

.feature-list li {
  padding: 20px 0;
  border-top: 1px solid rgba(248, 245, 239, 0.16);
}

.feature-list-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  font-size: 1.0625rem;
  font-weight: 800;
}

.feature-list-title::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.feature-list-items {
  color: var(--cream-soft);
  font-size: 0.9375rem;
}

.feature-media {
  position: relative;
  margin: 0 0 clamp(32px, 5vw, 56px);
}

.feature-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  object-fit: cover;
}

.feature-quote {
  position: absolute;
  right: clamp(-24px, -2vw, -12px);
  bottom: clamp(-56px, -5vw, -32px);
  max-width: min(78%, 420px);
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius);
  background: var(--black);
  box-shadow: var(--shadow-lift);
  color: var(--cream);
}

.feature-quote::before {
  content: "\201C";
  content: "\201C" / "";
  display: block;
  height: 0.45em;
  color: var(--gold);
  font-size: 4rem;
  font-weight: 800;
  line-height: 0.85;
}

.feature-quote p {
  margin: 0;
  font-size: clamp(1.125rem, 0.95rem + 0.7vw, 1.5rem);
  font-weight: 700;
  line-height: 1.3;
}

.feature--reverse .feature-media {
  order: -1;
}

@media (max-width: 880px) {
  .feature {
    grid-template-columns: 1fr;
  }

  .feature--reverse .feature-media {
    order: 0;
  }

  .feature-media {
    margin-bottom: 0;
  }

  .feature-quote {
    position: relative;
    right: auto;
    bottom: auto;
    max-width: none;
    margin: -48px 16px 0;
  }
}

/* ---- Impact ---------------------------------------------------------------------- */

.shift-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shift {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 22px;
  border-top: 1px solid var(--black);
}

.shift-from {
  color: var(--muted);
  font-size: 0.9375rem;
}

.shift-arrow {
  color: var(--orange);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1;
}

.shift-to {
  font-size: clamp(1.5rem, 1.2rem + 0.8vw, 1.875rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

@media (max-width: 980px) {
  .shift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .shift-grid {
    grid-template-columns: 1fr;
  }
}

.change-steps {
  display: grid;
  gap: 16px;
  max-width: 54rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.change-step {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 24px;
  border-radius: var(--radius);
  background: rgba(248, 245, 239, 0.07);
}

.change-label {
  justify-self: start;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--black);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.change-step:nth-child(2) .change-label { background: var(--red); color: var(--white); }
.change-step:nth-child(3) .change-label { background: var(--gold); }
.change-step:nth-child(4) .change-label { background: var(--cream); }

.change-step p {
  margin: 0;
  font-size: 1.125rem;
}

@media (max-width: 640px) {
  .change-step {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ---- Get involved and contact ----------------------------------------------------------- */

.way-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.way-card--orange { --accent: var(--orange); }
.way-card--red { --accent: var(--red); }
.way-card--gold { --accent: var(--gold); }
.way-card--black { --accent: var(--black); }

.way-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 2.5vw, 32px);
  border: 1px solid var(--line);
  border-top: 8px solid var(--accent);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.way-card:hover {
  border-color: transparent;
  border-top-color: var(--accent);
  box-shadow: var(--shadow-lift);
}

.way-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.way-card p {
  margin: 0 0 auto;
  color: var(--muted);
}

.way-card .button-row {
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 1080px) {
  .way-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .way-grid {
    grid-template-columns: 1fr;
  }
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.contact-card {
  padding: clamp(28px, 4vw, 48px);
  border-top: 8px solid var(--orange);
  border-radius: var(--radius);
  background: var(--black);
  color: var(--cream);
}

.contact-email {
  margin: 0 0 16px;
  font-size: clamp(1.125rem, 0.85rem + 1.3vw, 1.75rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-email a {
  text-decoration-color: var(--orange);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.contact-email a:hover {
  color: var(--gold);
}

.contact-card p:last-child {
  margin: 0;
  color: var(--cream-soft);
}

.link-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.link-list a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
  text-decoration: none;
}

.link-list a:hover {
  color: var(--red);
}

/* The contact page: the form beside the email card and quick links. */
.contact-layout {
  align-items: start;
}

.contact-aside {
  display: grid;
  gap: clamp(32px, 4vw, 48px);
}

.contact-form-card .block-title {
  margin-bottom: 20px;
}

/* The side column is narrower than the old full-width card, so the address is set smaller. */
.contact-aside .contact-email {
  font-size: clamp(1.0625rem, 0.95rem + 0.35vw, 1.25rem);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* A dropdown that matches the text fields, with its own chevron. */
select.select-field {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23111111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  cursor: pointer;
}

@media (max-width: 880px) {
  .contact-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---- Call-to-action band ------------------------------------------------------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 11vw, 160px) 0;
  background: var(--black);
  color: var(--cream);
}

.cta-band-media {
  position: absolute;
  inset: 0;
}

.cta-band-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

/* Darkens the image towards the text so the headline always reads clearly. */
.cta-band--image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17, 17, 17, 0.82) 0%, rgba(17, 17, 17, 0.55) 55%, rgba(17, 17, 17, 0.3) 100%);
}

.cta-band-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}

.cta-band-title {
  max-width: 34rem;
  margin: 0;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.375rem);
  line-height: 1.05;
}

/* ---- Footer ---------------------------------------------------------------------- */

.site-footer {
  position: relative;
  padding-top: clamp(64px, 8vw, 96px);
  background: var(--black);
  color: var(--cream);
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--orange) 0 33.3%, var(--red) 33.3% 66.6%, var(--gold) 66.6% 100%);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 32px;
}

.footer-name {
  margin: 0 0 6px;
  font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.footer-strap {
  margin: 0 0 12px;
  color: var(--gold);
  font-weight: 700;
}

.footer-tagline {
  max-width: 22rem;
  margin: 0;
  color: var(--cream-soft);
}

.footer-heading {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer-nav ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

.footer-nav a:hover,
.footer-email:hover {
  color: var(--gold);
}

.footer-contact p {
  margin: 0 0 6px;
  color: var(--cream-soft);
}

.footer-email {
  color: var(--cream);
  font-weight: 700;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(248, 245, 239, 0.15);
}

.journey-line {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 700;
  list-style: none;
}

.journey-line li:not(:last-child)::after {
  content: "\2192";
  content: "\2192" / "";
  margin: 0 0.5em;
  color: var(--orange);
  font-weight: 400;
}

.footer-copy {
  margin: 0;
  color: var(--cream-soft);
  font-size: 0.875rem;
}

@media (max-width: 880px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- Motion ---------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media print {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .programme-card-link:hover,
  .event-card-link:hover,
  .news-card-link:hover,
  .btn:hover {
    transform: none;
  }

  .programme-card-link:hover .programme-card-media img,
  .photo-mosaic li:hover .photo img {
    transform: none;
  }
}

/* ---- Donate ---------------------------------------------------------------------- */

.btn--wide {
  width: 100%;
}

.donate-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.donate-card {
  padding: clamp(24px, 4vw, 40px);
  border-top: 8px solid var(--orange);
  border-radius: var(--radius);
  background: var(--white);
}

.donate-form {
  display: grid;
  gap: 24px;
}

.amount-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.form-label {
  display: block;
  margin-bottom: 10px;
  padding: 0;
  font-weight: 800;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.amount-option {
  position: relative;
  cursor: pointer;
}

/* The radio stays in the accessibility tree and keyboard order; the label is its visible face. */
.amount-option input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.amount-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 8px;
  border: 2px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--cream);
  font-size: 1.125rem;
  font-weight: 800;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.amount-option:hover span {
  border-color: var(--black);
}

.amount-option input:checked + span {
  border-color: var(--black);
  background: var(--black);
  color: var(--cream);
}

.amount-option input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--black);
}

.field {
  display: grid;
}

.currency-input {
  display: flex;
  align-items: center;
  border: 2px solid var(--black);
  border-radius: var(--radius-small);
  background: var(--white);
}

.currency-input:focus-within {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.currency-input span {
  padding-left: 16px;
  font-size: 1.125rem;
  font-weight: 800;
}

.currency-input input {
  flex: 1;
  min-width: 0;
  min-height: 52px;
  padding: 0 16px 0 6px;
  border: 0;
  border-radius: var(--radius-small);
  background: transparent;
  font: inherit;
  font-size: 1.125rem;
}

.currency-input input:focus {
  outline: none;
  box-shadow: none;
}

.field-hint {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.form-error {
  margin: 0;
  padding: 12px 16px;
  border-left: 4px solid var(--red);
  border-radius: var(--radius-small);
  background: #FBE9E9;
  color: #8E1B1B;
  font-weight: 700;
}

.notice {
  margin: 0 0 24px;
  padding: 12px 16px;
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-small);
  background: var(--cream);
  font-weight: 700;
}

.secure-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.donate-aside .block-title {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem);
}

.support-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.support-list li {
  padding-left: 16px;
  border-left: 4px solid var(--orange);
  color: var(--muted);
}

.support-list li:nth-child(4n + 2) { border-left-color: var(--red); }
.support-list li:nth-child(4n + 3) { border-left-color: var(--gold); }
.support-list li:nth-child(4n + 4) { border-left-color: var(--black); }

.support-title {
  display: block;
  color: var(--black);
  font-weight: 800;
}

.aside-link {
  margin: 24px 0 0;
}

@media (max-width: 880px) {
  .donate-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .amount-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.receipt {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  justify-content: start;
  gap: 16px 48px;
  margin: 0 0 24px;
  padding: clamp(20px, 3vw, 32px);
  border-top: 8px solid var(--gold);
  border-radius: var(--radius);
  background: var(--white);
}

.receipt dt {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.receipt dd {
  margin: 4px 0 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.receipt-ref {
  font-size: 1rem !important;
  overflow-wrap: anywhere;
}

.receipt-actions {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .receipt {
    grid-template-columns: 1fr;
  }
}

/* ---- Photos ---------------------------------------------------------------------- */

/* Square photos shown square: nothing is cropped, so no face is ever cut by the layout. */
.photo {
  margin: 0;
}

.photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1023 / 1022;
  border-radius: var(--radius);
  background: var(--line); /* placeholder tint while a lazy photo loads */
}

.photo figcaption {
  margin-top: 10px;
  padding-left: 12px;
  border-left: 3px solid var(--orange);
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.4;
}

/* Home "Experience" section: text beside a mosaic of one large photo and two small ones.
   Captions sit on the photos so every tile stays square; tiles stay within the photos' sharp size. */
.experience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 680px);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.experience .section-header {
  margin-bottom: 0;
}

.photo-mosaic {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.photo-mosaic li {
  aspect-ratio: 1 / 1;
}

.photo-mosaic li:first-child {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}

.photo-mosaic .photo,
.photo-mosaic picture {
  position: relative;
  display: block;
  height: 100%;
}

.photo-mosaic .photo img {
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.photo-mosaic li {
  overflow: hidden;
  border-radius: var(--radius);
}

.photo-mosaic li:hover .photo img {
  transform: scale(1.04);
}

.photo-mosaic .photo figcaption {
  position: absolute;
  bottom: 10px;
  left: 10px;
  margin: 0;
  padding: 4px 10px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.75);
  color: var(--cream);
  font-size: 0.8125rem;
}

@media (max-width: 980px) {
  .experience {
    grid-template-columns: 1fr;
  }

  .photo-mosaic {
    gap: 12px;
  }
}

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

  .photo-mosaic li:first-child {
    grid-row: auto;
    aspect-ratio: 1 / 1;
  }

  .photo-mosaic li:not(:first-child) .photo figcaption {
    bottom: 8px;
    left: 8px;
    padding: 3px 8px;
    font-size: 0.75rem;
  }
}

/* Text beside a photo; the photo column stays at most 440px so the 1023px sources stay crisp. */
.media-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.media-split .section-header {
  margin-bottom: 28px;
}

@media (max-width: 880px) {
  .media-split {
    grid-template-columns: 1fr;
  }

  .media-split > .photo {
    max-width: 560px;
  }
}

.programme-aside {
  display: grid;
  gap: 20px;
}

.media-split .checklist {
  grid-template-columns: 1fr;
}

/* ---- Events ---------------------------------------------------------------------- */

.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.event-card-link {
  display: flex;
  gap: 18px;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 8px solid var(--orange);
  border-radius: var(--radius);
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.section--white .event-card-link {
  background: var(--cream);
}

.event-card-link:hover {
  border-color: transparent;
  border-top-color: var(--orange);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}


.event-card--cancelled .event-card-link {
  opacity: 0.75;
}

.event-date {
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 68px;
  border-radius: var(--radius-small);
  background: var(--black);
  color: var(--cream);
  line-height: 1;
}

.event-date-day {
  font-size: 1.625rem;
  font-weight: 800;
}

.event-date-month {
  margin-top: 4px;
  color: var(--gold);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.event-card-title {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 800;
}

.event-card-meta {
  display: flex;
  flex-direction: column;
  color: var(--muted);
  font-size: 0.9375rem;
}

.event-card-summary {
  font-size: 0.9375rem;
}

.event-flag {
  align-self: flex-start;
  margin-top: 4px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.event-flag--open { background: var(--gold); color: var(--black); }
.event-flag--full,
.event-flag--closed { background: var(--black); color: var(--cream); }
.event-flag--cancelled { background: var(--red); color: var(--white); }

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
}

.section-head-row .section-header {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.section-head-row .text-link {
  margin-bottom: clamp(24px, 3vw, 36px);
}

.event-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.event-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin: 0 0 28px;
  padding: 20px;
  border-top: 6px solid var(--orange);
  border-radius: var(--radius);
  background: var(--white);
}

.event-facts dt {
  color: var(--red);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.event-facts dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.muted-inline {
  color: var(--muted);
  font-weight: 400;
}

@media (max-width: 880px) {
  .event-layout {
    grid-template-columns: 1fr;
  }
}

.preview-banner {
  padding: 12px 0;
  background: var(--gold);
  color: var(--black);
  font-weight: 700;
}

.preview-banner a {
  margin-left: 8px;
}

/* ---- Form pieces shared by public and staff forms ----------------------------------- */

.plain-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.registration-form .plain-fieldset {
  display: grid;
  gap: 18px;
}

.text-input,
.textarea-input {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 2px solid var(--black);
  border-radius: var(--radius-small);
  background: var(--white);
  color: var(--black);
  font: inherit;
}

.textarea-input {
  min-height: 120px;
  resize: vertical;
}

.text-input:focus,
.textarea-input:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.text-input[aria-invalid="true"],
.textarea-input[aria-invalid="true"] {
  border-color: var(--red);
}

/* Spam trap on public forms: off-screen for people and hidden from screen readers. */
.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

.field-error {
  margin: 6px 0 0;
  color: #8E1B1B;
  font-size: 0.9375rem;
  font-weight: 700;
}

.choice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 0 0 8px;
  cursor: pointer;
}

.choice input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--black);
}

.guardian-fields {
  display: grid;
  gap: 14px;
  min-width: 0;
  margin: 0;
  padding: 16px;
  border: 2px solid var(--gold);
  border-radius: var(--radius-small);
}

.guardian-fields .form-label {
  margin-bottom: 0;
}

/* Discreet staff entry point: present on every public page, but not a call to action. */
.footer-staff {
  color: var(--cream-soft);
  text-decoration: underline;
  text-decoration-color: rgba(248, 245, 239, 0.35);
  text-underline-offset: 3px;
}

.footer-staff:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* ---- News ---------------------------------------------------------------------- */

.news-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-card-link {
  --card-accent: var(--orange);
  display: flex;
  gap: 18px;
  height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 8px solid var(--card-accent);
  border-radius: var(--radius);
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}

.section--white .news-card-link {
  background: var(--cream);
}

.news-card-link:hover {
  border-color: transparent;
  border-top-color: var(--card-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.news-card--announcement .news-card-link {
  --card-accent: var(--red);
}

/* Square, like every site photo, so no face is cropped. */
.news-card-photo {
  flex: none;
  width: 104px;
}

.news-card-photo img {
  width: 104px;
  height: 104px;
  border-radius: var(--radius-small);
  background: var(--line);
}

.news-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.news-card-title {
  margin: 0;
  font-size: 1.1875rem;
  font-weight: 800;
}

.news-card-summary {
  color: var(--muted);
  font-size: 0.9375rem;
}

.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
}

.news-meta--hero {
  margin-top: 24px;
  font-size: 0.9375rem;
}

.news-kind {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--orange);
  color: var(--black);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-kind--announcement {
  background: var(--red);
  color: var(--white);
}

.news-layout--photo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

/* The photo comes first in the page, so it sits above the text on phones; beside it on wider screens. */
.news-layout--photo .news-aside {
  grid-column: 2;
  grid-row: 1;
}

.news-layout--photo .news-body {
  grid-column: 1;
  grid-row: 1;
}

.news-body > p,
.news-body > .bullets {
  margin: 0 0 1.1em;
}

.news-subheading {
  margin: 1.6em 0 0.5em;
  font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
}

.news-body > .news-subheading:first-child {
  margin-top: 0;
}

.news-body .text-link {
  overflow-wrap: anywhere;
}

.news-body > .news-back {
  margin: 40px 0 0;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.pager-older {
  margin-left: auto;
}

@media (max-width: 880px) {
  .news-layout--photo {
    grid-template-columns: 1fr;
  }

  .news-layout--photo .news-aside,
  .news-layout--photo .news-body {
    grid-column: auto;
    grid-row: auto;
  }

  .news-aside {
    max-width: 560px;
  }
}

@media (max-width: 420px) {
  .news-card-photo,
  .news-card-photo img {
    width: 80px;
    height: 80px;
  }

  .news-card-link {
    gap: 14px;
    padding: 16px;
  }
}
