/* Orlu Land Compendium site styles, version 2026-10-21 (normal-weight text, one-line header, 3 a row) */
/*
 * Location: css/site.css
 * Public-site layout: header, footer, and page sections.
 */

/* ---------------- Green theme (public site only) ----------------
 * Every public page sits on the same dark green as the header.
 * base.css keeps the light colours for the admin dashboard; these
 * override them here, so components.css works on both.
 */
:root {
  --brand: #143d27; /* the page, header and footer background */
  --paper: #143d27;
  --surface: #1a4730; /* cards, boxes and inputs, a step lighter */
  --ink: #f2f5ef;
  --muted: #b5c8bb;
  --line: #2f6449;
  --palm: #8fd0a6; /* light green for links, borders and accents */
  --palm-deep: #f2f5ef; /* text that was dark green is now near-white */
  --palm-tint: #1f5539;
  --gold-soft: #4b3d13;
  --danger: #ffa59b;
  color-scheme: dark;
}

/* Buttons on green: gold fill with dark green text */
.button {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--brand);
}

.button:hover,
.button--gold,
.button--gold:hover {
  color: var(--brand);
}

.button:hover {
  border-color: #f0b94a;
  background: #f0b94a;
}

.button--quiet,
.button--outline-light {
  border-color: rgba(255, 255, 255, 0.4);
  background: transparent;
  color: var(--ink);
}

.button--quiet:hover,
.button--outline-light:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
}

.pagination__link.is-current {
  color: var(--brand);
}

.skeleton {
  background: linear-gradient(90deg, #1d4d34 0%, #275d41 50%, #1d4d34 100%);
  background-size: 200% 100%;
}

.state--error {
  border-color: var(--danger);
}

/* ---------------- Light green bands ----------------
 * The site alternates dark green (the page) and light green. Light green
 * is used for page title bands and every other homepage section. Gold is
 * kept for accents: lines, underlines and the main buttons.
 *   class="band--light"               a light green section
 *   class="band--light band--bleed"   the same on a .container, stretched edge to edge
 */
:root {
  --light-green: #e4efe5;
}

.band--light,
.page-header {
  --paper: var(--light-green);
  --surface: #ffffff; /* boxes and inputs inside light green */
  --ink: #143d27;
  --muted: #3d5747;
  --line: rgba(20, 61, 39, 0.18);
  --palm: #1f5a3a;
  --palm-deep: #143d27;
  --palm-tint: #d3e5d6;
  --gold-soft: #f6e2b5;
  background: var(--light-green);
  color: var(--ink);
}

.band--bleed {
  box-shadow: 0 0 0 100vmax var(--light-green);
  clip-path: inset(0 -100vmax);
}

/* Full spacing inside a band, even right after another section */
main .section.band--light {
  margin-top: var(--space-7);
  padding-block: var(--space-7);
}

/* Gold focus rings don't show on light green; use dark green there */
.band--light :focus-visible,
.page-header :focus-visible {
  outline-color: var(--brand);
}

/* Main buttons stay gold; outline buttons turn dark green */
.band--light .button--quiet,
.band--light .button--outline-light,
.page-header .button--quiet {
  border-color: rgba(20, 61, 39, 0.45);
  background: transparent;
  color: var(--brand);
}

.band--light .button--quiet:hover,
.band--light .button--outline-light:hover,
.page-header .button--quiet:hover {
  border-color: var(--brand);
  background: rgba(20, 61, 39, 0.06);
  color: var(--brand);
}

/* Gold accents */
.section-head {
  border-bottom-color: var(--gold);
}

.page-header {
  border-bottom: 3px solid var(--gold);
}

/* ---------------- Header ----------------
 * Logo and name on the left; Search and Menu buttons on the right.
 * Every page link lives in the Menu sidebar (a modal dialog), on all screens.
 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--brand);
  color: #fff;
}

.header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 78rem;
  min-height: 4rem;
  margin-inline: auto;
  padding: var(--space-3) var(--gutter);
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  margin-right: auto;
  color: #fff;
  text-decoration: none;
}

.brand:hover {
  color: #fff;
}

.brand__logo {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(227, 167, 47, 0.6);
}

.brand__name {
  overflow: hidden;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.header__actions {
  display: flex;
  flex-shrink: 0;
  gap: var(--space-2);
}

.search-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
}

.search-toggle:hover,
.search-toggle[aria-expanded="true"],
.nav-toggle:hover,
.nav-toggle[aria-expanded="true"] {
  border-color: var(--gold);
  color: var(--gold);
}

/* Menu button: gold so it's easy to find */
.nav-toggle {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--brand);
}

.nav-toggle:hover {
  background: #f0b94a;
  color: var(--brand);
}

.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.nav-toggle__bars {
  position: relative;
}

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

.nav-toggle__bars::before {
  top: -5px;
}

.nav-toggle__bars::after {
  top: 5px;
}

/* Page links in the header (desktop only) */
.nav__list {
  display: flex;
  gap: var(--space-1);
}

.nav__link {
  display: block;
  padding: var(--space-2) 0.6rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-display);
  font-weight: 500;
  text-decoration: none;
}

.nav__link:hover {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav__link {
  position: relative;
  border-radius: 10px;
  transition: color 0.2s, background 0.2s;
}

/* A gold bar under the link that grows in on hover and stays on the
   current page */
.nav__link::after {
  content: "";
  position: absolute;
  left: 0.6rem;
  right: 0.6rem;
  bottom: 0.15rem;
  height: 3px;
  border-radius: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}

.nav__link:hover::after {
  transform: scaleX(0.6);
}

/* The page you're on: gold text, a soft gold glow behind it, full gold bar */
.nav__link[aria-current="page"] {
  background: rgba(227, 167, 47, 0.12);
  color: var(--gold);
}

.nav__link[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav__link[aria-current="page"]:hover {
  background: rgba(227, 167, 47, 0.18);
  color: var(--gold);
}

@media (prefers-reduced-motion: reduce) {
  .nav__link,
  .nav__link::after {
    transition: none;
  }
}

/* Desktops and laptops (1024px and wider): all page links in the header,
   no Menu button. Tablets and phones: the links move into the Menu sidebar. */
@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  .brand {
    flex-shrink: 0;
  }
}

/* Smaller laptops (and laptops with display zoom): a tighter header so
   every link still fits beside the name */
@media (min-width: 1024px) and (max-width: 1240px) {
  .nav__list {
    gap: 0;
  }

  .nav__link {
    padding-inline: 0.45rem;
    font-size: 0.95rem;
  }

  .brand {
    gap: var(--space-2);
  }

  .brand__logo {
    width: 40px;
    height: 40px;
  }

  .brand__name {
    max-width: 9.5rem;
    overflow: visible;
    font-size: 1rem;
    line-height: 1.15;
    white-space: normal;
  }

  .search-toggle {
    justify-content: center;
    width: 2.75rem;
    padding: 0;
  }

  .search-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

/* Narrower desktop windows and tablets (720–1023px): name and links stay
   on one line; everything is a little smaller so it all fits */
@media (min-width: 720px) and (max-width: 1023px) {
  .header__inner {
    gap: var(--space-2);
  }

  .brand {
    flex-shrink: 0;
    gap: var(--space-2);
  }

  .brand__logo {
    width: 36px;
    height: 36px;
  }

  .brand__name {
    max-width: 7.5rem; /* a longer name wraps onto two lines */
    overflow: visible;
    font-size: 0.95rem;
    line-height: 1.15;
    white-space: normal;
  }

  .nav {
    flex: 1;
    min-width: 0;
  }

  .nav__list {
    justify-content: flex-end;
    gap: 0;
  }

  .nav__link {
    padding: var(--space-2) clamp(0.2rem, 0.9vw - 0.1rem, 0.45rem);
    font-size: clamp(0.78rem, 0.55rem + 0.5vw, 0.95rem);
  }

  .search-toggle {
    justify-content: center;
    width: 2.5rem;
    min-height: 2.5rem;
    padding: 0;
  }

  .search-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .nav-toggle {
    display: none;
  }
}

/* Phones and small tablets: the links move into the Menu sidebar */
@media (max-width: 719px) {
  .nav {
    display: none;
  }
}

/* The search field drops down under the header */
.site-header .search-box {
  position: absolute;
  top: 100%;
  right: var(--gutter);
  z-index: 55;
  display: none;
  width: min(28rem, calc(100vw - 2 * var(--gutter)));
  padding: var(--space-3);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--brand);
  box-shadow: 0 14px 30px rgba(10, 18, 14, 0.35);
}

.site-header.is-searching .search-box {
  display: flex;
}

.search-box input {
  flex: 1;
  min-width: 0;
  min-height: 2.75rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-right: 0;
  border-radius: var(--radius) 0 0 var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--step-0);
}

.search-box input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-box input:focus-visible {
  outline-offset: -3px;
}

.search-box__submit {
  padding: 0 1rem;
  border: 0;
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--gold);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
}

.site-header .search-box .suggest {
  left: var(--space-3);
  right: var(--space-3);
  width: auto;
}

/* Small phones: icon-only Search button */
@media (max-width: 420px) {
  .nav-toggle__label,
  .search-toggle__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .search-toggle,
  .nav-toggle {
    justify-content: center;
    width: 2.75rem;
    padding: 0;
  }

  .brand__name {
    font-size: var(--step-0);
  }
}

/* Phones: the name wraps onto two lines instead of being cut off */
@media (max-width: 600px) {
  .brand__name {
    overflow: visible;
    font-size: 0.95rem;
    line-height: 1.15;
    white-space: normal;
    text-overflow: clip;
  }
}

/* ---- The menu sidebar ---- */
.drawer {
  width: min(24rem, 88vw);
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  border-left: 3px solid var(--gold);
  background: var(--brand);
  color: #fff;
}

.drawer[open] {
  animation: drawer-in 0.28s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.drawer::backdrop {
  background: rgba(6, 20, 12, 0.6);
  animation: fade-in 0.28s ease;
}

@keyframes drawer-in {
  from { transform: translateX(100%); }
  to { transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Keep the page still behind an open menu */
html:has(.drawer[open]) {
  overflow: hidden;
}

.drawer__panel {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: var(--space-4) var(--space-5) var(--space-6);
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.drawer__title {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}

.drawer__close {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.drawer__close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.drawer__nav ul {
  display: grid;
  margin-top: var(--space-3);
}

.drawer__link {
  display: grid;
  gap: 0;
  padding: var(--space-2) var(--space-3);
  border-left: 3px solid transparent;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: #fff;
  text-decoration: none;
}

.drawer__link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.drawer__link[aria-current="page"] {
  border-left-color: var(--gold);
  background: rgba(255, 255, 255, 0.08);
}

.drawer__label {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}

.drawer__link[aria-current="page"] .drawer__label {
  color: var(--gold);
}

.drawer__note {
  color: #a9bfb1;
  font-size: var(--step--1);
}

.drawer__extra {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.drawer__extra a {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(227, 167, 47, 0.6);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
}

.drawer__extra a:hover {
  background: rgba(227, 167, 47, 0.12);
  color: var(--gold);
}

.drawer__motto {
  margin-top: auto;
  padding-top: var(--space-5);
  color: #c4d4c9;
  font-style: italic;
}

@media (prefers-reduced-motion: reduce) {
  .drawer[open],
  .drawer::backdrop {
    animation: none;
  }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-5);
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--space-8) var(--gutter) calc(var(--space-8) + 1rem);
}

.hero__title {
  max-width: 14ch;
  color: var(--palm-deep);
  font-size: var(--step-5);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

/* The motto: italic serif with a gold rule, like an inscription */
.hero__motto {
  max-width: 34ch;
  padding-left: var(--space-4);
  border-left: 3px solid var(--gold);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.45;
}

.hero__description {
  max-width: 46ch;
  color: var(--muted);
  font-size: var(--step-0);
  line-height: 1.55;
}

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

/* Uli-inspired line drawing: the one decorative moment on the page */
.hero__uli {
  position: absolute;
  right: -4rem;
  top: 50%;
  width: min(48rem, 80vw);
  transform: translateY(-50%);
  color: var(--gold);
  opacity: 0.55;
  pointer-events: none;
}

.hero__uli path,
.hero__uli circle {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.4s cubic-bezier(0.4, 0, 0.2, 1) 0.2s forwards;
}

.hero__uli .uli-dot {
  fill: currentColor;
  stroke: none;
  opacity: 0;
  animation: appear 0.6s ease 2s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes appear {
  to {
    opacity: 1;
  }
}

@media (max-width: 720px) {
  .hero__uli {
    right: -10rem;
    opacity: 0.3;
  }
}

/* ---------------- Hero: text + animated picture frame ---------------- */
/* With the picture frame on the right, the background line art moves behind the text */
.hero:has(.hero__inner--split) .hero__uli {
  right: auto;
  left: -14rem;
  width: min(44rem, 70vw);
  opacity: 0.22;
}

.hero__inner--split {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: var(--space-7);
  padding-block: var(--space-8);
}

.hero__text {
  display: grid;
  gap: var(--space-5);
  align-content: center;
}

/* Line above the title: the Compendium and its volume */
.hero__volume {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  justify-self: start;
  margin-bottom: calc(var(--space-2) * -1);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
}

.hero__volume::before {
  content: "";
  width: 2rem;
  height: 2px;
  background: var(--gold);
}

.hero__place {
  margin-top: calc(var(--space-2) * -1);
  color: var(--palm);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
}

.hero-show {
  --slide-time: 7s;
  display: grid;
  gap: var(--space-4);
  width: 100%;
  max-width: 30rem;
  margin: 0;
  justify-self: end;
}

/* The round frame */
.hero-show__frame {
  position: relative;
  aspect-ratio: 1;
  margin: 0.75rem;
}

.hero-show__ring {
  position: absolute;
  z-index: 1;
  inset: -0.75rem;
  width: calc(100% + 1.5rem);
  max-width: none; /* base.css caps images and SVGs at 100% */
  height: calc(100% + 1.5rem);
  overflow: visible;
  pointer-events: none;
}

.hero-show__ring circle {
  fill: none;
  stroke: var(--gold);
  stroke-width: 0.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.2s cubic-bezier(0.65, 0, 0.35, 1) 0.3s forwards;
}

.hero-show__slides {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--palm-tint);
  /* A deep drop shadow plus a soft gold glow that slowly pulses */
  box-shadow:
    0 1.75rem 3.5rem -1.25rem rgba(0, 0, 0, 0.55),
    0 0 0 6px rgba(227, 167, 47, 0.12),
    0 0 2.5rem rgba(227, 167, 47, 0.18);
  /* The picture rises into the frame once, then the glow starts */
  animation:
    frame-in 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) both,
    frame-glow 4s ease-in-out 1.2s infinite alternate;
}

@keyframes frame-glow {
  from {
    box-shadow:
      0 1.75rem 3.5rem -1.25rem rgba(0, 0, 0, 0.55),
      0 0 0 6px rgba(227, 167, 47, 0.12),
      0 0 2.5rem rgba(227, 167, 47, 0.18);
  }
  to {
    box-shadow:
      0 2.25rem 4rem -1.25rem rgba(0, 0, 0, 0.6),
      0 0 0 12px rgba(227, 167, 47, 0.2),
      0 0 4.5rem rgba(227, 167, 47, 0.38);
  }
}

/* A thin dashed gold ring outside the solid one, turning slowly */
.hero-show__frame::before {
  content: "";
  position: absolute;
  inset: -1.75rem;
  border: 1.5px dashed rgba(227, 167, 47, 0.55);
  border-radius: 50%;
  pointer-events: none;
  animation: ring-turn 40s linear infinite;
}

@keyframes ring-turn {
  to { transform: rotate(360deg); }
}

/* Shown until photos are added: faint uli-style rings inside the circle */
.hero-show__empty {
  position: absolute;
  inset: 0;
  display: none;
  width: 100%;
  height: 100%;
  color: var(--palm);
  opacity: 0.35;
}

.hero-show.is-empty .hero-show__empty {
  display: block;
}

.hero-show.is-empty .hero-show__bar {
  display: none;
}

.hero-show__empty circle,
.hero-show__empty path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
}

.hero-show__empty .dot {
  fill: currentColor;
  stroke: none;
}

.hero-show.is-single .hero-show__controls,
.hero-show.no-caption .hero-show__bar {
  display: none;
}

/* A single photo breathes: a slow zoom in and back out, forever */
.hero-show.is-single .hero-show__slide.is-active img {
  animation: zoom-breathe 14s ease-in-out infinite alternate;
}

@keyframes zoom-breathe {
  from { transform: scale(1.02); }
  to { transform: scale(1.12) translate(-1.5%, -1%); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-show.is-single .hero-show__slide.is-active img {
    animation: none;
  }
}

.hero-show__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-show__slide.is-active {
  opacity: 1;
}

.hero-show__slide img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Slow zoom on the picture that is showing; alternate directions */
.hero-show__slide.is-active img {
  animation: zoom-a calc(var(--slide-time) + 1.2s) linear both;
}

.hero-show__slide:nth-child(even).is-active img {
  animation-name: zoom-b;
}

/* Pictures that mustn't be cropped (like a map) are shown whole */
.hero-show__slide--fit img {
  object-fit: contain;
  padding: 14%;
}

.hero-show__backdrop {
  position: absolute;
  inset: -10%;
  background-position: center;
  background-size: cover;
  filter: blur(18px) saturate(1.1) brightness(0.8);
}

.hero-show__slide--fit.is-active img {
  animation-name: zoom-soft;
}

@keyframes zoom-a {
  from { transform: scale(1.02) translate(0, 0); }
  to { transform: scale(1.14) translate(-2%, -1.5%); }
}

@keyframes zoom-b {
  from { transform: scale(1.14) translate(2%, 1%); }
  to { transform: scale(1.02) translate(0, 0); }
}

@keyframes zoom-soft {
  from { transform: scale(0.98); }
  to { transform: scale(1.04); }
}

@keyframes frame-in {
  from { opacity: 0; transform: translateY(1.5rem) scale(0.97); }
  to { opacity: 1; transform: none; }
}

.hero-show__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-2) var(--space-4);
  align-items: center;
  min-height: 2.75rem;
  margin-inline: 0.75rem;
}

.hero-show__caption {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.45;
}

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

.hero-show__dots {
  display: flex;
}

/* Each dot is a 44px target with a short line inside; the current one fills up */
.hero-show__dot {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.hero-show__dot::before {
  content: "";
  grid-area: 1 / 1;
  width: 1.5rem;
  height: 3px;
  border-radius: 2px;
  background: var(--line);
}

.hero-show__progress {
  grid-area: 1 / 1;
  justify-self: start;
  width: 0;
  height: 3px;
  margin-left: 0.375rem;
  border-radius: 2px;
  background: var(--gold);
}

.hero-show__dot.is-active .hero-show__progress {
  animation: progress var(--slide-time) linear forwards;
}

@keyframes progress {
  to { width: 1.5rem; }
}

.hero-show__dot:hover::before {
  background: #aeb7b0;
}

.hero-show__dot:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -4px;
  border-radius: var(--radius);
}

.hero-show__pause {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.hero-show__pause:hover {
  border-color: var(--palm);
  color: var(--palm);
}

.hero-show__pause svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: currentColor;
}

.hero-show__pause .icon-play,
.hero-show__pause.is-playing .icon-pause {
  display: block;
}

.hero-show__pause .icon-pause,
.hero-show__pause.is-playing .icon-play {
  display: none;
}

/* Paused (by the button or keyboard focus): everything holds in place */
.hero-show.is-paused .hero-show__slide img,
.hero-show.is-paused .hero-show__progress {
  animation-play-state: paused;
}

.hero-show.is-stopped .hero-show__dot.is-active .hero-show__progress {
  background: rgba(227, 167, 47, 0.55);
}

/* Reduced motion: no zoom, no automatic change, no drawing */
.hero-show.is-static .hero-show__slide img,
.hero-show.is-static .hero-show__progress {
  animation: none;
}

.hero-show.is-static .hero-show__dot.is-active .hero-show__progress {
  width: 1.5rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-show__slides,
  .hero-show__frame::before {
    animation: none;
  }

  .hero-show__ring circle,
  .hero__uli path,
  .hero__uli circle {
    animation: none;
    stroke-dashoffset: 0;
  }

  .hero__uli .uli-dot {
    animation: none;
    opacity: 1;
  }

  .hero-show__slide {
    transition: none;
  }
}

@media (max-width: 900px) {
  .hero__inner--split {
    grid-template-columns: 1fr;
    gap: var(--space-6);
    padding-block: var(--space-7);
  }

  /* Phones and tablets: the picture comes first, centred */
  .hero-show {
    order: -1;
    justify-self: center;
    max-width: min(20rem, 78vw);
  }
}

/* ---------------- Orlu Zone at a glance ---------------- */
.zone__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-7);
  padding-block: var(--space-8);
}

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

.zone__intro > p {
  max-width: 46ch;
  color: var(--muted);
  line-height: 1.65;
}

/* Four key facts in a 2 x 2 grid, each under a gold line */
.glance-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  margin: var(--space-6) 0 0;
}

.glance-facts div {
  padding-top: var(--space-3);
  border-top: 2px solid var(--gold);
}

.glance-facts dt {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
}

.glance-facts dd {
  margin: var(--space-1) 0 0;
  color: var(--palm-deep);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}

/* The LGAs as tags in a white panel */
.zone__lgas {
  align-self: start;
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.zone__label {
  margin-bottom: var(--space-4);
  color: var(--palm-deep);
  font-size: var(--step-1);
  font-weight: 600;
}

.lga-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: 0;
  list-style: none;
}

.lga-tags li {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--light-green);
  color: var(--palm-deep);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 500;
}

.lga-tags li::before {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--gold);
}

.zone__more {
  display: inline-block;
  margin-top: var(--space-5);
  color: var(--palm);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
}

.zone__facts {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

.zone-fact {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface);
}

.zone-fact h3 {
  margin-bottom: var(--space-2);
  font-size: var(--step-1);
  font-weight: 600;
}

.zone-fact p {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

@media (max-width: 900px) {
  .zone__inner,
  .zone__facts {
    grid-template-columns: 1fr;
  }

  .zone__inner {
    gap: var(--space-6);
    padding-block: var(--space-7);
  }
}

@media (max-width: 480px) {
  .zone__lgas {
    padding: var(--space-5) var(--space-4);
  }
}

/* ---------------- Aims and objectives ---------------- */
.aims__label {
  margin-bottom: var(--space-3);
  color: var(--palm);
  font-size: var(--step-0);
  font-weight: 600;
}

.aims__aim {
  margin-bottom: var(--space-7);
}

/* The aim is the statement of the section: large, with a gold rule beside it */
.aims__statement {
  max-width: 52ch;
  padding-left: var(--space-5);
  border-left: 4px solid var(--gold);
  color: var(--palm-deep);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.objectives {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

.objective {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface);
}

.objectives {
  margin: 0;
}

/* Objective titles in gold, matching the gold line at the top of each box */
.objective .objective__verb {
  color: var(--gold);
}

.objective__verb {
  margin-bottom: var(--space-2);
  color: var(--ink);
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.objective p {
  color: var(--ink);
  font-size: var(--step--1);
  line-height: 1.65;
}

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

@media (max-width: 560px) {
  .objectives {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }

  .aims__statement {
    padding-left: var(--space-4);
  }
}

/* ---------------- Who's Who categories ---------------- */
.whoswho__intro {
  max-width: 60ch;
  margin: calc(var(--space-2) * -1) 0 var(--space-5);
  color: var(--muted);
}

.whoswho__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

/* White boxes with a gold edge; the edge thickens on hover */
.whoswho__item {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.whoswho__item:hover {
  border-color: var(--palm);
  border-left-color: var(--gold);
  box-shadow: inset 4px 0 0 var(--gold);
  color: var(--ink);
}

.whoswho__name {
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.25;
}

.whoswho__item:hover .whoswho__name {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.whoswho__desc {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.55;
}

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

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

/* Posthumous Honours: a quieter, memorial look, across the whole last row */
.whoswho__list > li:has(.whoswho__item--memorial) {
  grid-column: 1 / -1;
}

.whoswho__item--memorial {
  border-left-color: #8a8f88;
  background: #f4f6f2;
}

.whoswho__item--memorial .whoswho__name::before {
  content: "";
  display: inline-block;
  width: 0.5rem;
  height: 0.5rem;
  margin-right: 0.55rem;
  border: 1.5px solid #6b7068;
  transform: rotate(45deg);
  vertical-align: 0.12em;
}

/* ---------------- Invest at home (Aku Ruo Ulo) ---------------- */
/* Dark band between two light ones; gold lines mark it off from the news below */
.invest {
  border-block: 1px solid var(--gold);
}

.invest__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--space-5) var(--space-7);
  align-items: center;
  padding-block: var(--space-7);
}

.invest__title {
  color: var(--palm-deep);
  font-size: var(--step-3);
  font-weight: 700;
}

.invest__motto {
  margin-top: var(--space-2);
  color: var(--palm);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}

.invest__lead {
  max-width: 52ch;
  margin-top: var(--space-3);
  color: var(--muted);
  line-height: 1.6;
}

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

/* ---------------- Explore links ---------------- */
.explore {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

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

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

/* Each link is a green box on the gold band */
.explore__link {
  display: grid;
  align-content: start;
  gap: var(--space-2);
  height: 100%;
  padding: var(--space-5);
  border: 2px solid var(--brand);
  border-radius: var(--radius);
  background: var(--brand);
  color: #b5c8bb;
  text-decoration: none;
  transition: background-color 0.2s, border-color 0.2s;
}

.explore__link:hover {
  border-color: var(--gold);
  background: #1f5a3a;
}

.explore__name {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}

.explore__link:hover .explore__name {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.explore__desc {
  color: #c9d8ce;
  font-size: var(--step--1);
  line-height: 1.5;
}

/* ---------------- About page ---------------- */
.about-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: 0;
  list-style: none;
}

.about-block {
  padding-block: var(--space-8);
  scroll-margin-top: 4.5rem; /* clear the sticky header when jumped to */
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--space-6) var(--space-8);
  align-items: start;
}

.about-title {
  margin-bottom: var(--space-4);
  color: var(--palm-deep);
  font-size: var(--step-3);
  letter-spacing: -0.025em;
}

.about-lead {
  max-width: 60ch;
  color: var(--ink);
  font-size: var(--step-0);
  line-height: 1.6;
}

.about-intro {
  max-width: 62ch;
  margin-bottom: var(--space-5);
  color: var(--muted);
}

.about-subtitle {
  margin: var(--space-7) 0 var(--space-4);
  font-size: var(--step-2);
}

.about-extra {
  margin-top: var(--space-5);
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

/* Key facts: label above a large value, each under a gold line */
.fact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5) var(--space-5);
  margin: 0;
}

.fact-list div {
  padding-top: var(--space-3);
  border-top: 2px solid var(--gold);
}

.fact-list dt {
  margin-bottom: var(--space-1);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
}

.fact-list dd {
  margin: 0;
  color: var(--palm-deep);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
}

/* The 12 LGAs */
.lga-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
  padding: 0;
  list-style: none;
}

.lga-grid li {
  padding: var(--space-4) var(--space-4);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--palm-deep);
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
}

/* The river's course: stops joined by a gold line, source at the top */
.river-route {
  position: relative;
  display: grid;
  gap: var(--space-6);
  margin: 0;
  padding: 0 0 0 2.75rem;
  list-style: none;
}

.river-route::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 0.6rem;
  left: 0.6rem;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(var(--gold), var(--palm));
}

.river-route li {
  position: relative;
}

.river-route li::before {
  content: "";
  position: absolute;
  top: 0.3rem;
  left: -2.75rem;
  width: 1.25rem;
  height: 1.25rem;
  border: 3px solid var(--gold);
  border-radius: 50%;
  background: var(--paper);
}

.river-route li:last-child::before {
  background: var(--gold);
}

.river-route h3 {
  margin-bottom: var(--space-1);
  font-size: var(--step-1);
  font-weight: 600;
}

.river-route p {
  max-width: 48ch;
  color: var(--muted);
}

.about-note {
  max-width: 52ch;
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--surface);
}

.about-note h3 {
  margin-bottom: var(--space-1);
  font-size: var(--step-0);
}

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

/* Purpose: three boxes */
.purpose-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

.purpose-list li {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface);
}

.purpose-list h4 {
  margin-bottom: var(--space-2);
  font-size: var(--step-1);
  font-weight: 600;
}

.purpose-list p {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

/* Investment write-up */
.invest-page__motto {
  margin: calc(var(--space-2) * -1) 0 var(--space-3);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
}

.invest-overview p {
  max-width: 66ch;
  line-height: 1.7;
}

.invest-overview__pull {
  margin-top: var(--space-4);
  padding-left: var(--space-4);
  border-left: 3px solid var(--gold);
  font-size: var(--step-1);
  font-style: italic;
}

.driver-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
  padding: 0;
  list-style: none;
}

.driver-list > li {
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface);
}

.driver-list h4 {
  margin-bottom: var(--space-2);
  font-size: var(--step-1);
  font-weight: 600;
}

.driver-list p,
.driver-list li li {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

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

.driver-list li li {
  padding-left: 1.1rem;
  position: relative;
}

.driver-list li li::before {
  content: "";
  position: absolute;
  top: 0.55em;
  left: 0;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--gold);
  transform: rotate(45deg);
}

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

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-display);
  font-size: var(--step--1);
}

.price-table th,
.price-table td {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table thead th {
  border-bottom: 2px solid var(--gold);
  background: var(--surface);
  color: var(--muted);
  font-weight: 600;
}

.price-table tbody th {
  color: var(--ink);
  font-size: var(--step-0);
  font-weight: 600;
}

.price-table tbody td {
  color: var(--muted);
}

.price-table td:last-child {
  color: var(--gold);
  font-size: var(--step-0);
  font-weight: 600;
  white-space: nowrap;
}

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

/* Programme call-out: a light green box inside the dark section */
.invest-cta {
  --ink: #143d27;
  --muted: #3d5747;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-top: var(--space-8);
  padding: var(--space-6);
  border-left: 6px solid var(--gold);
  border-radius: var(--radius);
  background: var(--light-green);
  color: var(--ink);
}

.invest-cta h3 {
  margin-bottom: var(--space-2);
  color: var(--ink);
  font-size: var(--step-2);
}

.invest-cta p {
  max-width: 60ch;
  color: var(--muted);
}

.invest-cta :focus-visible {
  outline-color: var(--brand);
}

.invest-disclaimer {
  max-width: 70ch;
  margin-top: var(--space-5);
  color: var(--muted);
  font-size: var(--step--1);
  font-style: italic;
}

@media (max-width: 900px) {
  .about-split,
  .driver-list,
  .purpose-list {
    grid-template-columns: 1fr;
  }

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

  .about-block {
    padding-block: var(--space-7);
  }
}

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

  .lga-grid li {
    font-size: var(--step-0);
  }

  /* The price table becomes one box per property type */
  .price-table-wrap {
    border: 0;
  }

  .price-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table th,
  .price-table td {
    display: block;
  }

  .price-table tr {
    margin-bottom: var(--space-3);
    padding: var(--space-4);
    border: 1px solid var(--line);
    border-top: 3px solid var(--gold);
    border-radius: var(--radius);
    background: var(--surface);
  }

  .price-table th,
  .price-table td {
    padding: 0;
    border: 0;
  }

  .price-table td {
    margin-top: var(--space-2);
  }

  .price-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--muted);
    font-size: var(--step--1);
    font-weight: 600;
  }

  .price-table td:last-child {
    white-space: normal;
  }
}

/* ---------------- Page sections ---------------- */
.section {
  padding-block: var(--space-8);
}

.section + .section {
  padding-top: 0;
}

/* Upcoming events: a date-led list */
.event-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr));
  gap: var(--space-5) var(--space-6);
}

.event-row {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.event-row__title {
  font-size: var(--step-1);
}

.event-row__title a {
  color: inherit;
  text-decoration: none;
}

.event-row__title a:hover {
  text-decoration: underline;
}

.event-row__details {
  margin-top: var(--space-1);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--step--1);
}

.event-row__details > span {
  display: block;
}

/* Featured: one lead story plus a short column */
.featured {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-6);
}

.featured__lead .entry__title {
  font-size: var(--step-3);
}

.featured__lead .entry__summary {
  font-size: var(--step-0);
  line-height: 1.55;
}

.featured__side {
  display: grid;
  gap: var(--space-5);
  align-content: start;
}

.featured__side .entry {
  grid-template-columns: 8rem 1fr;
  column-gap: var(--space-4);
}

.featured__side .entry__media {
  grid-row: span 3;
  aspect-ratio: 1;
}

.featured__side .entry + .entry {
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

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

  .featured__lead .entry__title {
    font-size: var(--step-2);
  }
}

@media (max-width: 420px) {
  .featured__side .entry {
    grid-template-columns: 5.5rem 1fr;
  }
}

/* Latest news grid */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr));
  gap: var(--space-7) var(--space-6);
}

/* Cancelled events stay listed so people who planned to attend can see it */
.event-row.is-cancelled .date-badge {
  background: var(--line);
  color: var(--muted);
}

.event-row.is-cancelled .event-row__title a {
  color: var(--muted);
  text-decoration: line-through;
}

.event-row__status {
  color: var(--danger);
  font-weight: 600;
}

/* On phones, latest news becomes a compact list: thumbnail beside text */
@media (max-width: 600px) {
  .post-grid {
    gap: var(--space-5);
  }

  .post-grid .entry {
    grid-template-columns: 6.5rem 1fr;
    column-gap: var(--space-4);
    row-gap: var(--space-2);
  }

  .post-grid .entry__media {
    grid-row: span 3;
    aspect-ratio: 1;
  }

  .post-grid .entry__title {
    font-size: var(--step-0);
  }

  .post-grid .entry__summary {
    display: none;
  }

  .post-grid .entry + .entry {
    padding-top: var(--space-5);
    border-top: 1px solid var(--line);
  }
}

/* ---------------- List pages (news, events, search) ---------------- */
.page-header {
  padding-block: var(--space-7) var(--space-6);
}

.page-header__title {
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.page-header__lead {
  max-width: 52ch;
  margin-top: var(--space-3);
  color: var(--muted);
  font-size: var(--step-0);
  line-height: 1.5;
}

.page-header + .section {
  padding-top: var(--space-6);
}

.filters {
  scroll-margin-top: 5.5rem;
}

.filters__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.35rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
}

.chip:hover {
  border-color: var(--palm);
  color: var(--palm-deep);
}

.chip[aria-current="page"] {
  border-color: var(--palm);
  background: var(--palm);
  color: var(--brand);
}

/* Phones: one scrollable row of chips instead of wrapping lines */
@media (max-width: 600px) {
  .filters__list {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    padding-bottom: var(--space-2);
    scrollbar-width: none;
  }

  .filters__list::-webkit-scrollbar {
    display: none;
  }

  .chip {
    white-space: nowrap;
  }
}

.list-count {
  margin-block: var(--space-5) var(--space-5);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--step--1);
}

.list-count:empty {
  margin-block: var(--space-4) 0;
}


/* ---------------- Events list ---------------- */
.month-group + .month-group {
  margin-top: var(--space-7);
}

.month-group__title {
  margin-bottom: var(--space-4);
  font-size: var(--step-2);
}

.event-stack {
  display: grid;
}

.event-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-5);
  align-items: start;
  padding-block: var(--space-5);
  border-top: 1px solid var(--line);
}

.event-stack > .event-card:last-child {
  border-bottom: 1px solid var(--line);
}

.event-card__title {
  font-size: var(--step-2);
}

.event-card__title a {
  color: inherit;
  text-decoration: none;
}

.event-card__title a:hover {
  text-decoration: underline;
}

.event-card__details {
  display: grid;
  gap: 0.15rem;
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--step--1);
}

.event-card__details dd {
  margin: 0;
}

.event-card__status {
  color: var(--danger);
  font-weight: 600;
}

.event-card__summary {
  max-width: 60ch;
  margin-top: var(--space-3);
  color: var(--muted);
}

.event-card__media {
  display: block;
  width: 13rem;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--palm-tint);
}

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

.event-card.is-cancelled .date-badge {
  background: var(--line);
  color: var(--muted);
}

.event-card.is-cancelled .event-card__title a {
  color: var(--muted);
  text-decoration: line-through;
}

@media (max-width: 760px) {
  .event-card {
    grid-template-columns: auto 1fr;
    gap: var(--space-4);
  }

  .event-card__media {
    grid-column: 2;
    grid-row: 2;
    width: 100%;
    max-width: 22rem;
  }

  .event-card__title {
    font-size: var(--step-1);
  }
}

@media (max-width: 420px) {
  .event-card .date-badge {
    width: 3.75rem;
    min-height: 3.75rem;
  }

  .event-card .date-badge__day {
    font-size: 1.6rem;
  }
}

/* ---------------- Single event ---------------- */
.event-notice {
  justify-self: start;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 600;
}

.event-notice--cancelled {
  background: #5a2b26;
  color: var(--danger);
}

.event-notice--ended {
  background: var(--line);
  color: var(--muted);
}

.event-notice--happening {
  background: var(--gold-soft);
  color: var(--palm-deep);
}

.article__title.is-cancelled {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 3px;
}

.event-facts {
  display: grid;
  margin: var(--space-2) 0 0;
  border-left: 4px solid var(--gold);
  background: var(--surface);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.event-facts__row {
  display: grid;
  grid-template-columns: 5rem 1fr;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
}

.event-facts__row + .event-facts__row {
  border-top: 1px solid var(--line);
}

.event-facts dt {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  padding-top: 0.2em;
}

.event-facts dd {
  display: grid;
  gap: var(--space-1);
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.35;
}

.event-facts__note,
.event-facts__link {
  font-size: var(--step--1);
  font-weight: 500;
}

.event-facts__note {
  color: var(--muted);
}

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

@media (max-width: 480px) {
  .event-facts__row {
    grid-template-columns: 1fr;
    gap: var(--space-1);
    padding: var(--space-4);
  }
}

/* ---------------- About page ---------------- */
.page-body > [data-page-content] {
  max-width: 44rem;
}

.page-missing {
  color: var(--muted);
}

/* ---------------- Contact page ----------------
 * Same look as News, Events and the Gallery: rounded boxes with a gold
 * border and glow. One card per way to reach us, a framed map, quick
 * links, and the admin's note.
 */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.contact-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-6) var(--space-5) var(--space-5);
  border: 1.5px solid rgba(227, 167, 47, 0.7);
  border-radius: 36px;
  background: var(--brand);
  box-shadow:
    0 0 20px rgba(227, 167, 47, 0.16),
    0 12px 28px rgba(0, 0, 0, 0.25);
  text-align: center;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.contact-card:hover,
.contact-card:focus-within {
  border-color: var(--gold);
  box-shadow:
    0 0 32px rgba(227, 167, 47, 0.35),
    0 16px 34px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

/* Gold ring icon */
.contact-card__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-bottom: var(--space-2);
  border-radius: 50%;
  background: rgba(227, 167, 47, 0.12);
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 6px var(--brand), 0 0 0 7px rgba(227, 167, 47, 0.4);
}

.contact-card__icon svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-card__label {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-card__value {
  margin: 0 0 var(--space-3);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact-card__email {
  font-size: var(--step-0);
}

.contact-card .button {
  margin-top: auto;
  border-radius: 999px;
}

.contact-card__button {
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold);
}

.contact-card__button:hover {
  background: var(--gold);
  color: var(--brand);
}

/* The map, in a gold frame */
.contact-map {
  margin: clamp(2rem, 5vw, 3.5rem) 0 0;
  overflow: hidden;
  isolation: isolate;
  clip-path: inset(0 round 36px);
  border: 1.5px solid rgba(227, 167, 47, 0.7);
  border-radius: 36px;
  background: var(--brand);
  box-shadow:
    0 0 20px rgba(227, 167, 47, 0.16),
    0 12px 28px rgba(0, 0, 0, 0.25);
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: clamp(16rem, 38vw, 24rem);
  border: 0;
  border-radius: 34px 34px 0 0; /* match the frame's corners */
  filter: saturate(0.85);
}

.contact-map__caption {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-top: 1.5px solid rgba(227, 167, 47, 0.5);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
}

.contact-map__pin svg {
  display: block;
  width: 1.4rem;
  height: 1.4rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
}

/* Quick links */
.contact-help {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.contact-help__title {
  margin: 0 0 var(--space-4);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--step-2);
  font-weight: 700;
  text-align: center;
}

.contact-help__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-help__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: 100%;
  padding: var(--space-4) var(--space-5);
  border: 1px solid rgba(227, 167, 47, 0.4);
  border-radius: 999px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}

.contact-help__link span:last-child {
  color: var(--gold);
  transition: transform 0.3s;
}

.contact-help__link:hover {
  border-color: var(--gold);
  background: rgba(227, 167, 47, 0.1);
  color: #fff;
}

.contact-help__link:hover span:last-child {
  transform: translateX(4px);
}

/* Follow us: brand logos in gold rings; each turns its brand colour on hover */
.contact-social {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1.5px solid rgba(227, 167, 47, 0.7);
  border-radius: 36px;
  box-shadow:
    0 0 20px rgba(227, 167, 47, 0.16),
    0 12px 28px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.contact-social .contact-help__title {
  margin-bottom: var(--space-2);
}

.contact-social__lead {
  margin: 0 auto var(--space-5);
  color: var(--muted);
  font-size: var(--step-0);
}

.contact-social__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.social-link {
  --brand-colour: var(--gold);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 13rem;
  padding: 0.6rem 1.3rem 0.6rem 0.6rem;
  border: 1px solid rgba(227, 167, 47, 0.45);
  border-radius: 999px;
  color: var(--ink);
  text-align: left;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}

.social-link__logo {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  background: rgba(227, 167, 47, 0.12);
  box-shadow: 0 0 0 1.5px var(--gold);
  color: var(--gold);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s;
}

.social-link__logo svg {
  width: 1.45rem;
  height: 1.45rem;
}

.social-link__text {
  display: grid;
  min-width: 0;
}

.social-link__name {
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
}

.social-link__handle {
  overflow: hidden;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-link--whatsapp { --brand-colour: #25d366; }
.social-link--facebook { --brand-colour: #1877f2; }
.social-link--instagram { --brand-colour: #e1306c; }
.social-link--x { --brand-colour: #000000; }
.social-link--youtube { --brand-colour: #ff0000; }
.social-link--tiktok { --brand-colour: #000000; }
.social-link--linkedin { --brand-colour: #0a66c2; }

.social-link:hover,
.social-link:focus-visible {
  border-color: var(--gold);
  background: rgba(227, 167, 47, 0.08);
  transform: translateY(-2px);
}

.social-link:hover .social-link__logo,
.social-link:focus-visible .social-link__logo {
  background: var(--brand-colour);
  box-shadow: 0 0 0 1.5px #fff;
  color: #fff;
}

@media (max-width: 600px) {
  .contact-social {
    border-radius: 28px;
  }

  .contact-social__list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .social-link {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-link {
    transition: none;
  }

  .social-link:hover,
  .social-link:focus-visible {
    transform: none;
  }
}

/* The admin's note (Admin → Pages → contact) */
.contact-note:not(:empty) {
  max-width: 46rem;
  margin: clamp(2.5rem, 6vw, 4rem) auto 0;
  padding: var(--space-5) var(--space-6);
  border: 1.5px dashed rgba(227, 167, 47, 0.55);
  border-radius: 36px;
  text-align: center;
}

.contact-note .prose {
  margin-inline: auto;
}

.contact-empty {
  color: var(--muted);
  text-align: center;
}

@media (max-width: 600px) {
  .contact-card {
    padding: var(--space-5) var(--space-4) var(--space-4);
    border-radius: 28px;
  }

  .contact-map,
  .contact-note:not(:empty) {
    border-radius: 28px;
  }

  .contact-map {
    clip-path: inset(0 round 28px);
  }

  .contact-map iframe {
    border-radius: 26px 26px 0 0;
  }

  .contact-note:not(:empty) {
    padding: var(--space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-card,
  .contact-help__link,
  .contact-help__link span:last-child {
    transition: none;
  }

  .contact-card:hover,
  .contact-card:focus-within,
  .contact-help__link:hover span:last-child {
    transform: none;
  }
}

/* ---------------- Search ---------------- */
.search-page-form {
  display: flex;
  gap: var(--space-2);
  max-width: 40rem;
  margin-top: var(--space-5);
}

.search-page-form input {
  flex: 1;
  min-width: 0;
  min-height: 3rem;
  padding: 0.6rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: var(--step-0);
}

.search-page-form input:focus-visible {
  outline-offset: 0;
}

.search-hint {
  color: var(--muted);
}

.results {
  display: grid;
  max-width: 48rem;
  padding: 0;
  list-style: none;
}

.result {
  display: grid;
  gap: var(--space-2);
  padding-block: var(--space-5);
  border-top: 1px solid var(--line);
}

.result:last-child {
  border-bottom: 1px solid var(--line);
}

.result__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--step--1);
}

.result__type {
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
}

.result__type--post {
  background: var(--palm-tint);
  color: var(--palm-deep);
}

.result__type--event {
  background: var(--gold-soft);
  color: var(--palm-deep);
}

.result__title {
  font-size: var(--step-1);
}

.result__title a {
  color: inherit;
  text-decoration: none;
}

.result__title a:hover {
  text-decoration: underline;
}

.result__excerpt {
  max-width: var(--measure);
  color: var(--muted);
}

.result mark {
  padding: 0;
  border-radius: 2px;
  background: var(--gold-soft);
  color: inherit;
}

/* Suggestions dropdown (header box and search page) */
.has-suggest {
  position: relative;
  overflow: visible;
}

.suggest {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 60;
  min-width: 16rem;
  max-height: 22rem;
  overflow-y: auto;
  padding: var(--space-1);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(20, 61, 39, 0.18);
}

.suggest[hidden] {
  display: none;
}

.suggest__item {
  display: grid;
  gap: 0.1rem;
  padding: var(--space-2) var(--space-3);
  border-radius: calc(var(--radius) - 2px);
  color: var(--ink);
  text-decoration: none;
}

.suggest [aria-selected="true"] .suggest__item,
.suggest__item:hover {
  background: var(--palm-tint);
  color: var(--palm-deep);
}

.suggest__type {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
}

.suggest__title {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  line-height: 1.3;
}

.suggest__all {
  margin-top: var(--space-1);
  padding-top: var(--space-1);
  border-top: 1px solid var(--line);
}

.suggest__all .suggest__item {
  color: var(--palm);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
}

/* Header search box: the dropdown is wider than the input */
.site-header .suggest {
  left: auto;
  width: 22rem;
}

@media (max-width: 1240px) {
  .site-header .suggest {
    left: 0;
    width: auto;
  }
}

/* ---------------- 404 page ---------------- */
.lost {
  padding-block: var(--space-8);
}

.lost__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-4);
  justify-items: start;
}

.lost__code {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.05em;
}

.lost__title {
  font-size: var(--step-4);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.lost__text {
  max-width: 52ch;
  color: var(--muted);
  font-size: var(--step-0);
  line-height: 1.5;
}

.lost__path {
  padding: 0.05em 0.35em;
  border-radius: 3px;
  background: var(--palm-tint);
  color: var(--ink);
  font-size: 0.85em;
  overflow-wrap: anywhere;
}

.lost__search {
  width: 100%;
  margin-top: var(--space-3);
}

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

/* ---------------- Leadership (community profiles) ---------------- */
.profile-jump {
  margin-top: var(--space-5);
}

/* A person's position: gold small capitals between two diamonds,
   with a thin gold line underneath, like an engraved title */
.position {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  max-width: 100%;
  margin: 0;
  padding-bottom: var(--space-2);
  border-bottom: 1px solid rgba(227, 167, 47, 0.45);
}

.position > span {
  display: inline-block;
  color: #f3d98b;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* Diamonds sit right against the first and last words, even when wrapped */
.position .position__last {
  white-space: nowrap;
}

.position > span::before,
.position .position__last::after {
  content: "";
  display: inline-block;
  width: 0.38rem;
  height: 0.38rem;
  margin: 0 0.5rem 0.12em;
  background: var(--gold);
  transform: rotate(45deg);
  vertical-align: middle;
}

.position--large span {
  font-size: var(--step--1);
}

.person__position {
  width: 100%;
  max-width: 22rem;
  padding-bottom: 0;
  border-bottom: 0;
}

/* Category titles on the Leadership page: a small crest, the name in serif
   between gold lines that end in diamonds, and a count underneath */
.group-title {
  display: grid;
  justify-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  text-align: center;
}

.group-title__row {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  width: 100%;
}

.group-title__rule {
  position: relative;
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.group-title__rule:last-child {
  background: linear-gradient(90deg, var(--gold), transparent);
}

/* A small gold diamond where each line meets the title */
.group-title__rule::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -4px;
  width: 8px;
  height: 8px;
  background: var(--gold);
  transform: translateY(-50%) rotate(45deg);
}

.group-title__rule:last-child::after {
  right: auto;
  left: -4px;
}

.group-title__name {
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* A short write-up under each category title (Leadership page) */
.group-title__caption {
  max-width: 44rem;
  margin: 0 auto;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-style: italic;
  line-height: 1.55;
}

.group-title__count {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 600px) {
  .group-title__name {
    font-size: var(--step-2);
    white-space: normal;
  }

  .group-title__row {
    gap: var(--space-3);
  }
}

/* Arriving from a homepage category link: the section glows gold briefly */
.profile-group.is-target .group-title__name {
  animation: group-glow 2.4s ease-out;
}

@keyframes group-glow {
  0%, 40% { color: var(--gold); text-shadow: 0 0 18px rgba(227, 167, 47, 0.6); }
  100% { color: #fff; text-shadow: none; }
}

.group-missing {
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border: 1px solid rgba(227, 167, 47, 0.5);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .profile-group.is-target .group-title__name {
    animation: none;
  }
}

/* The Leadership page uses a narrower column so the cards stay compact */
.container--narrow {
  max-width: 62rem;
}

.profile-group {
  scroll-margin-top: 5.5rem;
}

.profile-group + .profile-group {
  margin-top: var(--space-8);
}

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

/* Each person is one card, styled like the Compendium's team cards:
   deep green gradient, fine gold border, gold circles in two corners,
   an arch-shaped photo in a gold frame, a gold tag, then name and bio. */
.profile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  overflow: hidden;
  padding: var(--space-5) var(--space-4) var(--space-4);
  border: 1px solid rgba(227, 167, 47, 0.55);
  border-radius: 16px;
  background: linear-gradient(165deg, #0a3825, #0f4d34 70%, #17644a);
  color: #fff;
  text-align: center;
}

.profile::before,
.profile::after {
  content: "";
  position: absolute;
  width: 90px;
  height: 90px;
  border: 2px solid rgba(227, 167, 47, 0.35);
  border-radius: 50%;
  pointer-events: none;
}

.profile::before {
  top: -45px;
  left: -45px;
}

.profile::after {
  right: -45px;
  bottom: -45px;
}

/* Block portrait, framed like the full profile */
.profile__photo {
  position: relative;
  z-index: 1;
  width: 104px;
  height: 130px;
  margin-bottom: var(--space-2);
  overflow: hidden;
  border: 3px solid var(--gold);
  border-radius: 12px;
  background: #14202b;
  /* Same frame as the full profile: gold border, thin outer gold ring, shadow */
  box-shadow:
    0 0 0 5px rgba(15, 77, 52, 0.9),
    0 0 0 7px rgba(227, 167, 47, 0.55),
    0 12px 26px rgba(0, 0, 0, 0.4);
}

.profile__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.profile__initials {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #f3d98b;
  font-family: var(--font-body);
  font-size: 2rem;
  font-weight: 700;
}

.profile__role {
  position: relative;
  z-index: 1;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1405;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile__name {
  position: relative;
  z-index: 1;
  margin-top: var(--space-1);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 700;
  line-height: 1.3;
}

.profile__bio {
  position: relative;
  z-index: 1;
  max-width: 46ch;
  color: #dfeee4;
  font-family: var(--font-display);
  font-size: var(--step--1);
  line-height: 1.6;
}

/* The card shows the summary, up to four lines */
.profile__bio {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile__more {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-top: auto;
  text-decoration: none;
  padding: 0.45rem 0.9rem;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  background: transparent;
  color: #f3d98b;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
}

.profile__more:hover {
  background: rgba(227, 167, 47, 0.18);
  color: #f3d98b;
}

/* ---- Full profile: "dossier" layout ----
 * Left: a dark green panel with the arch photo, tag, name and summary,
 * which stays in place on desktop. Right: light green, with each section
 * (Overview, Personal Details…) in its own white box.
 */
.person {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: var(--light-green);
  color: #143d27;
}

.person::backdrop {
  background: rgba(6, 20, 12, 0.6);
}

.person[open] {
  animation: person-in 0.25s ease-out;
}

@keyframes person-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

html:has(.person[open]) {
  overflow: hidden;
}

.person__layout {
  display: grid;
  grid-template-columns: minmax(20rem, 0.85fr) minmax(0, 1.4fr);
  min-height: 100%;
}

.person__side {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  height: 100dvh;
  overflow-y: auto;
  padding: var(--space-8) var(--space-6) var(--space-6);
  border-right: 3px solid var(--gold);
  background: linear-gradient(165deg, #0a3825, #0f4d34 70%, #17644a);
  color: #fff;
  text-align: center;
}

/* Gold circles in the corners, as on the cards */
.person__side::before,
.person__side::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border: 2px solid rgba(227, 167, 47, 0.3);
  border-radius: 50%;
  pointer-events: none;
}

.person__side::before {
  top: -70px;
  left: -70px;
}

.person__side::after {
  right: -70px;
  bottom: -70px;
}

.person__close {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 2.75rem;
  padding: 0 1rem;
  border: 1.5px solid var(--gold);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.15);
  color: #f3d98b;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  cursor: pointer;
}

.person__close:hover {
  background: rgba(227, 167, 47, 0.18);
}

/* Block portrait: gold border, a thin outer gold ring, soft shadow */
.person__photo {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 220px;
  height: 275px;
  margin: var(--space-2) 0 var(--space-4);
  overflow: hidden;
  border: 3px solid var(--gold);
  border-radius: 12px;
  background: #14202b;
  box-shadow:
    0 0 0 6px rgba(15, 77, 52, 0.9),
    0 0 0 8px rgba(227, 167, 47, 0.6),
    0 16px 34px rgba(0, 0, 0, 0.45);
}

.person__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.person__photo .profile__initials {
  font-size: 3.6rem;
}

.person__role {
  position: relative;
  z-index: 1;
  padding: 0.25rem 0.85rem;
  border-radius: 999px;
  background: var(--gold);
  color: #1a1405;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.person__name {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.2;
}

.person__lead {
  position: relative;
  z-index: 1;
  max-width: 32ch;
  padding-top: var(--space-3);
  border-top: 1px solid rgba(227, 167, 47, 0.4);
  color: #dfeee4;
  font-family: var(--font-display);
  font-size: var(--step-0);
  line-height: 1.55;
}

.person__main {
  display: grid;
  align-content: start;
  gap: var(--space-4);
  max-width: 48rem;
  padding: var(--space-8) var(--space-7);
}

.person__section {
  padding: var(--space-5) var(--space-6);
  border: 1px solid rgba(20, 61, 39, 0.12);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: #fff;
  font-family: var(--font-display);
  line-height: 1.65;
}

.person__section h3 {
  margin-bottom: var(--space-3);
  color: #143d27;
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 700;
}

.person__section p + p,
.person__section ul + p,
.person__section p + ul {
  margin-top: var(--space-3);
}

.person__section p {
  color: #2f4a39;
}

/* Gold diamond bullets */
.person__section ul {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.person__section li {
  position: relative;
  padding-left: 1.4rem;
  color: #2f4a39;
}

.person__section li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0.2rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--gold);
  transform: rotate(45deg);
}

.person__back {
  margin-top: var(--space-4);
}

.person .button--quiet {
  border-color: rgba(20, 61, 39, 0.4);
  color: var(--brand);
}

.person .button--quiet:hover {
  background: rgba(20, 61, 39, 0.06);
  color: var(--brand);
}

.person__main :focus-visible {
  outline-color: var(--brand);
}

/* Tablets and phones: the green panel on top, sections below */
@media (max-width: 860px) {
  .person__layout {
    grid-template-columns: 1fr;
  }

  .person__side {
    position: relative;
    height: auto;
    overflow: hidden;
    padding: var(--space-8) var(--gutter) var(--space-6);
    border-right: 0;
    border-bottom: 3px solid var(--gold);
  }

  .person__main {
    padding: var(--space-6) var(--gutter) var(--space-8);
  }

  .person__section {
    padding: var(--space-4) var(--space-4);
  }
}

@media (max-width: 600px) {
  .person__name {
    font-size: var(--step-2);
  }

  .person__photo {
    width: 180px;
    height: 225px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .person[open] {
    animation: none;
  }
}

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

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

/* ---------------- Documents ---------------- */
.doc-tools {
  max-width: 28rem;
  margin-bottom: var(--space-4);
}

.doc-tools__input {
  width: 100%;
  min-height: 2.9rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font-family: var(--font-display);
}

/* Each document is its own box: title on top, then details, then buttons */
.doc-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-4);
}

.doc {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--surface);
}

.doc__title {
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: var(--step-1);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

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

.doc__text {
  display: grid;
  gap: var(--space-1);
  min-width: 0;
}

/* Buttons sit at the bottom, so boxes in a row line up */
.doc__actions,
.doc__unavailable {
  margin-top: auto;
}

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

@media (max-width: 600px) {
  .doc-list {
    grid-template-columns: 1fr;
  }
}

.doc__icon {
  position: relative;
  display: grid;
  place-items: end center;
  width: 2.75rem;
  height: 3.4rem;
  padding-bottom: 0.45rem;
  border-radius: 3px 10px 3px 3px;
  background: var(--palm);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.doc__icon::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-style: solid;
  border-width: 0 0.75rem 0.75rem 0;
  border-color: transparent var(--surface) var(--gold) transparent;
}

.doc__desc {
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

.doc__meta {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--step--1);
}

.doc__status {
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--muted);
}

.doc__status--ok {
  color: var(--palm);
}

.doc__status--error {
  color: var(--danger);
}

.doc__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.doc__download[aria-disabled="true"],
.doc__view[aria-disabled="true"] {
  opacity: 0.7;
  cursor: progress;
}

/* ---- PDF viewer: full screen, with the title, Download and Close on top ---- */
.pdf-viewer {
  display: none;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0e2c1c;
  color: #fff;
}

.pdf-viewer[open] {
  display: flex;
  flex-direction: column;
}

.pdf-viewer::backdrop {
  background: rgba(6, 20, 12, 0.7);
}

html:has(.pdf-viewer[open]) {
  overflow: hidden;
}

.pdf-viewer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--gutter);
  border-bottom: 2px solid var(--gold);
}

.pdf-viewer__title {
  min-width: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--step-0);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.pdf-viewer__actions {
  display: flex;
  gap: var(--space-2);
}

.pdf-viewer__frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: #525659; /* the grey behind PDF pages, so loading doesn't flash white */
}

/* Phones and tablets: the built-in reader (js/pdf-reader.js) */
.pdf-viewer__frame[hidden],
.pdf-viewer__scroll[hidden],
.pdf-viewer__zoom[hidden],
.pdf-viewer__status[hidden] {
  display: none;
}

.pdf-viewer__scroll {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #525659;
}

.pdf-viewer__pages {
  --pdf-zoom: 1;
  display: grid;
  gap: 12px;
  width: calc(100% * var(--pdf-zoom));
  padding: 12px;
}

.pdf-page {
  width: 100%;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.pdf-page canvas {
  display: block;
  width: 100%;
  height: auto;
}

.pdf-viewer__status {
  margin: 0;
  padding: var(--space-6) var(--gutter);
  color: #fff;
  font-family: var(--font-display);
  text-align: center;
}

.pdf-viewer__status--error {
  color: #ffd9d4;
}

.pdf-viewer__zoom {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(227, 167, 47, 0.6);
  border-radius: 999px;
}

.pdf-viewer__zoom-btn {
  width: 2.5rem;
  min-height: 2.5rem;
  border: 0;
  background: transparent;
  color: var(--gold);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.pdf-viewer__zoom-btn:disabled {
  color: rgba(255, 255, 255, 0.3);
  cursor: default;
}

.pdf-viewer__zoom-level {
  min-width: 3rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.85rem;
  text-align: center;
}

/* Phones: the title on its own line, buttons underneath */
@media (max-width: 600px) {
  .pdf-viewer__bar {
    padding-block: var(--space-2);
  }

  .pdf-viewer__title {
    flex-basis: 100%;
    font-size: var(--step--1);
  }

  .pdf-viewer__actions {
    flex-wrap: wrap;
    width: 100%;
  }

  .pdf-viewer__actions .button {
    min-height: 2.5rem;
    padding-inline: 0.9rem;
  }

  .pdf-viewer__actions {
    flex-wrap: nowrap;
    align-items: center;
  }

  .pdf-viewer__close {
    width: 2.5rem;
    margin-left: auto;
    padding: 0;
    justify-content: center;
  }

  .pdf-viewer__close-text {
    display: none;
  }
}

.doc__unavailable {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--step--1);
}



/* ---------------- Article (single post) ---------------- */
.article {
  padding-block: var(--space-7) var(--space-6);
}

.article__container > * {
  max-width: 44rem;
  margin-inline: auto;
}

.article__container > .article__image,
.article__container > .article__gallery {
  max-width: 60rem;
}

.article__header {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.article__title {
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.article__standfirst {
  color: var(--muted);
  font-size: var(--step-0);
  line-height: 1.5;
}

.article__image {
  margin-top: 0;
  margin-bottom: var(--space-7);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--palm-tint);
}

.article__image img {
  width: 100%;
  max-height: 34rem;
  object-fit: cover;
}

.article__video,
.article__gallery {
  margin-top: var(--space-7);
}

.article__gallery h2 {
  margin-bottom: var(--space-4);
  font-size: var(--step-2);
}

.article__back {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
}

.share {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.share__button {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.share__button:hover {
  border-color: var(--palm);
  color: var(--palm-deep);
  background: var(--palm-tint);
}

.not-found {
  display: grid;
  gap: var(--space-4);
  justify-items: start;
  padding-block: var(--space-7);
}

.not-found h1 {
  font-size: var(--step-4);
}

.not-found p {
  color: var(--muted);
}

/* Rendered post content */
.prose {
  font-size: var(--step-0);
  line-height: 1.75;
}

.prose > * + * {
  margin-top: 1.1em;
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: 1.8em;
}

.prose h2 {
  font-size: var(--step-2);
}

.prose h3 {
  font-size: var(--step-1);
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li + li {
  margin-top: 0.35em;
}

.prose blockquote {
  margin-inline: 0;
  padding: 0.2em 0 0.2em 1.2em;
  border-left: 4px solid var(--gold);
  color: var(--muted);
  font-style: italic;
}

.prose img {
  border-radius: var(--radius);
}

.prose figure {
  margin-inline: 0;
}

.prose figcaption {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--step--1);
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin-block: 2em;
}

.table-scroll {
  overflow-x: auto;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--step--1);
}

.prose th,
.prose td {
  padding: 0.5em 0.75em;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.prose th {
  font-family: var(--font-display);
}

/* Video embed */
.video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  background: #0c2618;
}

.video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Photo grid and viewer */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 12rem), 1fr));
  gap: var(--space-2);
}

.photo-grid__item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--palm-tint);
}

.photo-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

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

.photo-grid--captions {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr));
  gap: var(--space-5) var(--space-3);
  align-items: start;
}

.photo-grid__caption {
  margin-top: var(--space-2);
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.45;
}

.load-more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-7);
}

.load-more[hidden] {
  display: none;
}

@media (max-width: 480px) {
  .photo-grid--captions {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4) var(--space-2);
  }
}

.lightbox {
  width: 100vw;
  height: 100vh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(10, 18, 14, 0.94);
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(10, 18, 14, 0.94);
}

.lightbox[open] {
  display: grid;
  place-items: center;
}

.lightbox__frame {
  display: grid;
  gap: var(--space-3);
  justify-items: center;
  max-width: min(92vw, 80rem);
}

.lightbox__image {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox__caption {
  max-width: 60ch;
  text-align: center;
  color: rgba(255, 255, 255, 0.85);
}

.lightbox__button {
  position: fixed;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__button:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lightbox__close {
  top: var(--space-4);
  right: var(--space-4);
}

.lightbox__prev {
  left: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__next {
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
}

.lightbox__count {
  position: fixed;
  top: var(--space-5);
  left: var(--space-5);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  font-size: var(--step--1);
}

@media (max-width: 600px) {
  .lightbox__prev,
  .lightbox__next {
    top: auto;
    bottom: var(--space-4);
    transform: none;
  }
}

/* ---------------- Footer ----------------
 * A deeper green than the page, opened by a gold uli wave. Top row: logo,
 * motto and a Contact button. Then four columns, a ribbon of the 12 LGAs,
 * and the copyright line.
 */
.site-footer {
  --footer-bg: #0e2c1c;
  position: relative;
  margin-top: var(--space-8);
  border-top: 3px solid var(--gold);
  background: var(--footer-bg);
  color: #c4d4c9;
  font-size: var(--step--1);
}

.footer__wave {
  position: absolute;
  top: 0.9rem;
  left: 0;
  width: 100%;
  height: 0.9rem;
  max-width: none;
  opacity: 0.35;
  pointer-events: none;
}

.footer__wave path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.footer__top,
.footer__inner,
.footer__lgas,
.footer__bottom {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.footer__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--space-4) var(--space-6);
  align-items: center;
  padding-top: var(--space-8);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.site-footer .footer__brand:hover {
  color: #fff;
}

.footer__brand img {
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
}

.footer__motto {
  max-width: 34ch;
  padding-left: var(--space-5);
  border-left: 2px solid var(--gold);
  color: #e9efe9;
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.4;
}

.site-footer .footer__cta,
.site-footer .footer__cta:hover {
  color: var(--brand);
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.8fr) minmax(0, 1fr) minmax(0, 1.5fr);
  gap: var(--space-6);
  padding-block: var(--space-7);
}

.footer__heading {
  margin-bottom: var(--space-4);
  color: var(--gold);
  font-size: var(--step-0);
  font-weight: 600;
}

.footer__about p {
  max-width: 36ch;
  line-height: 1.65;
}

/* Social media logos under "About us" */
.footer__about .footer__social-label {
  margin: var(--space-5) 0 var(--space-2);
}

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

.site-footer .footer__social-link {
  --brand-colour: var(--gold);
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(227, 167, 47, 0.1);
  box-shadow: 0 0 0 1.5px rgba(227, 167, 47, 0.75);
  color: var(--gold);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.footer__social-link svg {
  width: 1.2rem;
  height: 1.2rem;
}

.site-footer .footer__social-link--whatsapp { --brand-colour: #25d366; }
.site-footer .footer__social-link--facebook { --brand-colour: #1877f2; }
.site-footer .footer__social-link--instagram { --brand-colour: #e1306c; }
.site-footer .footer__social-link--x { --brand-colour: #000000; }
.site-footer .footer__social-link--youtube { --brand-colour: #ff0000; }
.site-footer .footer__social-link--tiktok { --brand-colour: #000000; }
.site-footer .footer__social-link--linkedin { --brand-colour: #0a66c2; }

.site-footer .footer__social-link:hover,
.site-footer .footer__social-link:focus-visible {
  background: var(--brand-colour);
  box-shadow: 0 0 0 1.5px #fff;
  color: #fff;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .footer__social-link {
    transition: none;
  }

  .footer__social-link:hover,
  .footer__social-link:focus-visible {
    transform: none;
  }
}

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

.site-footer a {
  color: #fff;
}

.site-footer a:hover {
  color: var(--gold);
}

.footer__links a {
  text-decoration: none;
}

.footer__links a:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.footer__contact li {
  display: grid;
  gap: 0.1rem;
  overflow-wrap: anywhere;
}

.footer__label {
  color: #8fa999;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
}

/* The 12 LGAs as one ribbon, joined by small gold diamonds */
.footer__lgas {
  padding-block: var(--space-5);
  border-block: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__lgas ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: #a9bfb1;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
}

.footer__lgas li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.footer__lgas li:not(:last-child)::after {
  content: "";
  width: 0.3rem;
  height: 0.3rem;
  margin-inline: 0.7rem;
  background: var(--gold);
  transform: rotate(45deg);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-5);
  padding-block: var(--space-5);
  color: #8fa999;
}

.footer__top-link {
  font-family: var(--font-display);
  font-weight: 600;
}

@media (max-width: 900px) {
  .footer__top {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .footer__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 480px) {
  .footer__inner {
    gap: var(--space-6) var(--space-4);
  }

  .footer__inner > :last-child {
    grid-column: 1 / -1;
  }

  .footer__lgas ul {
    justify-content: flex-start;
  }
}

.lightbox__button[hidden] {
  display: none;
}

/* ---------------- Gallery page ----------------
 * Every photo gets the same frame, whatever its shape: a square window
 * (the full photo shows in the viewer) with a thin gold line and rounded
 * corners, its caption underneath (if it has one), and a gentle rise into
 * view. No box around them. 3 a row on computers, 2 on tablets and phones.
 * New uploads pick this up automatically.
 */
.gallery-intro {
  margin-bottom: var(--space-6);
}

.gallery-wall {
  --gap: clamp(1rem, 2.6vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--gap);
  margin: 0;
  padding: 0;
  list-style: none;
}

.gallery-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 2 * var(--gap)) / 3);
  min-width: 0;
}

/* 3 a row on desktops and laptops (700px and wider), 2 a row on
   tablets and every phone */
@media (max-width: 699px) {
  .gallery-wall {
    --gap: clamp(0.75rem, 3.5vw, 1.25rem);
  }

  .gallery-card {
    flex-basis: calc((100% - var(--gap)) / 2);
  }

  .gallery-wall .gallery-card__frame {
    border-radius: 18px;
  }

  .gallery-wall .gallery-card__plate {
    margin-top: var(--space-2);
  }

  .gallery-wall .gallery-card__caption.is-open {
    padding: var(--space-2) var(--space-3);
  }

  .gallery-wall .gallery-card__text,
  .gallery-wall .gallery-card__more {
    font-size: var(--step--1);
  }


}

/* The frame: one thin gold line around the photo */
.gallery-wall .gallery-card__frame {
  position: relative;
  display: block;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1.5px solid var(--gold);
  border-radius: 24px;
  background: #0f2f1e;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.35s, transform 0.35s;
}

.gallery-wall .gallery-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* keeps faces in view on tall photos */
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Shade and "View" badge, shown on hover and keyboard focus */
.gallery-card__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 28, 18, 0.75));
  opacity: 0;
  transition: opacity 0.35s;
}

.gallery-card__view {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.35s, transform 0.35s;
}

.gallery-card__view svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.gallery-card__frame:hover,
.gallery-card__frame:focus-visible {
  transform: translateY(-4px);
  box-shadow:
    0 0 24px 6px rgba(227, 167, 47, 0.25),
    0 24px 44px rgba(0, 0, 0, 0.5);
}

.gallery-card__frame:hover img,
.gallery-card__frame:focus-visible img {
  transform: scale(1.06);
}

.gallery-card__frame:hover::after,
.gallery-card__frame:focus-visible::after,
.gallery-card__frame:hover .gallery-card__view,
.gallery-card__frame:focus-visible .gallery-card__view {
  opacity: 1;
}

.gallery-card__frame:hover .gallery-card__view,
.gallery-card__frame:focus-visible .gallery-card__view {
  transform: translate(-50%, 0);
}

/* Caption plate: gold number between diamonds, then the caption */
.gallery-card__plate {
  display: grid;
  justify-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  padding-bottom: var(--space-1);
  text-align: center;
}

.gallery-card__number {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-card__number::before,
.gallery-card__number::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* Above the photo's shadow, so the whole caption is the same colour */
.gallery-card__plate {
  position: relative;
  z-index: 1;
}

/* Caption design: a short gold line with a diamond, then the write-up in an
   off-white box. Long captions stop at two lines with "… more" at the end
   of the second line; tapping it shows the rest, "less" folds it back. */
.gallery-card__rule {
  position: relative;
  width: 3.5rem;
  height: 1px;
  margin-bottom: var(--space-1);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gallery-card__rule::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

.gallery-card__caption {
  --caption-bg: #ece8dd; /* soft off-white, used when opened */
  position: relative;
  width: 100%;
  margin-top: var(--space-2);
  text-align: center;
}

/* Closed: plain text straight on the page, no box */
.gallery-card__text {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* Opened: the full write-up in the off-white box */
.gallery-card__caption.is-open {
  padding: var(--space-3) var(--space-4);
  border-top: 3px solid var(--gold);
  border-radius: 14px;
  background: var(--caption-bg);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  text-align: left;
  animation: caption-in 0.3s ease both;
}

.gallery-card__caption.is-open .gallery-card__text {
  color: #143d27;
  font-style: italic;
}

@keyframes caption-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-card__caption.is-open {
    animation: none;
  }
}

.gallery-card__more {
    font-size: var(--step--1);
  }


}

/* The frame: one thin gold line around the photo */
.gallery-wall .gallery-card__frame {
  position: relative;
  display: block;
  aspect-ratio: 1;
  margin: 0;
  overflow: hidden;
  border: 1.5px solid var(--gold);
  border-radius: 24px;
  background: #0f2f1e;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.45);
  transition: box-shadow 0.35s, transform 0.35s;
}

.gallery-wall .gallery-card__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%; /* keeps faces in view on tall photos */
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* Shade and "View" badge, shown on hover and keyboard focus */
.gallery-card__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(8, 28, 18, 0.75));
  opacity: 0;
  transition: opacity 0.35s;
}

.gallery-card__view {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: var(--space-4);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.35s, transform 0.35s;
}

.gallery-card__view svg {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.gallery-card__frame:hover,
.gallery-card__frame:focus-visible {
  transform: translateY(-4px);
  box-shadow:
    0 0 24px 6px rgba(227, 167, 47, 0.25),
    0 24px 44px rgba(0, 0, 0, 0.5);
}

.gallery-card__frame:hover img,
.gallery-card__frame:focus-visible img {
  transform: scale(1.06);
}

.gallery-card__frame:hover::after,
.gallery-card__frame:focus-visible::after,
.gallery-card__frame:hover .gallery-card__view,
.gallery-card__frame:focus-visible .gallery-card__view {
  opacity: 1;
}

.gallery-card__frame:hover .gallery-card__view,
.gallery-card__frame:focus-visible .gallery-card__view {
  transform: translate(-50%, 0);
}

/* Caption plate: gold number between diamonds, then the caption */
.gallery-card__plate {
  display: grid;
  justify-items: center;
  gap: var(--space-1);
  margin-top: var(--space-4);
  padding-bottom: var(--space-1);
  text-align: center;
}

.gallery-card__number {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.gallery-card__number::before,
.gallery-card__number::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* Above the photo's shadow, so the whole caption is the same colour */
.gallery-card__plate {
  position: relative;
  z-index: 1;
}

/* Caption design: a short gold line with a diamond, then the write-up in an
   off-white box. Long captions stop at two lines with "… more" at the end
   of the second line; tapping it shows the rest, "less" folds it back. */
.gallery-card__rule {
  position: relative;
  width: 3.5rem;
  height: 1px;
  margin-bottom: var(--space-1);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.gallery-card__rule::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}

/* "more" / "less": a small gold link at the end of the text */
.gallery-card__more {
  display: inline;
  padding: 0;
  border: 0;
  background: none;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: inherit;
  font-style: normal;
  font-weight: 500 !important;
  line-height: inherit;
  white-space: nowrap;
  cursor: pointer;
}

.gallery-card__more:hover {
  text-decoration: underline;
}

.gallery-card__caption.is-open .gallery-card__more {
  color: #8a5d00;
}

.gallery-card__more[hidden] {
  display: none;
}

/* Rise into view as you scroll (skipped for reduced motion) */
.gallery-wall.is-animated .gallery-card {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--delay, 0s);
}

.gallery-wall.is-animated .gallery-card.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .gallery-wall .gallery-card__frame,
  .gallery-wall .gallery-card__frame img,
  .gallery-card__view {
    transition: none;
  }

  .gallery-card__frame:hover,
  .gallery-card__frame:focus-visible,
  .gallery-card__frame:hover img,
  .gallery-card__frame:focus-visible img {
    transform: none;
  }
}

/* Touch screens have no hover: keep a small badge visible */
@media (hover: none) {
  .gallery-card__view {
    left: auto;
    right: var(--space-3);
    bottom: var(--space-3);
    padding: 0.5rem;
    opacity: 0.92;
    transform: none;
  }

  .gallery-card__view span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
}

/* ---------------- News and Events pages ----------------
 * Same look as the Gallery: rounded boxes with a gold border and soft
 * gold glow, photos in a thin gold frame, gold pill filters, and section
 * titles between gold lines. Every new post or event picks this up.
 */
.page-intro {
  margin-bottom: var(--space-5);
}

.news-page .filters,
.events-page .filters {
  display: flex;
  justify-content: center;
  margin-bottom: var(--space-7);
}

.news-page .chip,
.events-page .chip {
  border-color: rgba(227, 167, 47, 0.55);
  background: transparent;
  color: var(--ink);
}

.news-page .chip:hover,
.events-page .chip:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.news-page .chip[aria-current="page"],
.events-page .chip[aria-current="page"] {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--brand);
}

/* Empty and error messages: a calm gold-edged box, centred */
.news-page .state--empty,
.events-page .state--empty {
  justify-items: center;
  max-width: 34rem;
  margin-inline: auto;
  padding: var(--space-7) var(--space-5);
  border: 1.5px dashed rgba(227, 167, 47, 0.6);
  border-radius: 36px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-1);
  text-align: center;
}

.news-page .state--empty::before,
.events-page .state--empty::before {
  content: "";
  width: 12px;
  height: 12px;
  background: var(--gold);
  transform: rotate(45deg);
}

/* Shared box look */
.news-card,
.ev-card {
  position: relative;
  border: 1.5px solid rgba(227, 167, 47, 0.7);
  border-radius: 36px;
  background: var(--brand);
  box-shadow:
    0 0 20px rgba(227, 167, 47, 0.16),
    0 12px 28px rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.news-card:hover,
.news-card:focus-within,
.ev-card:hover,
.ev-card:focus-within {
  border-color: var(--gold);
  box-shadow:
    0 0 32px rgba(227, 167, 47, 0.35),
    0 16px 34px rgba(0, 0, 0, 0.3);
  transform: translateY(-3px);
}

/* The whole box is clickable through its title link */
.news-card__link::after,
.ev-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.news-card__link,
.ev-card__link {
  color: #fff;
  text-decoration: none;
}

.news-card__link:focus-visible,
.ev-card__link:focus-visible {
  outline: none;
}

.news-card:has(.news-card__link:focus-visible),
.ev-card:has(.ev-card__link:focus-visible) {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

/* "Read story →" / "View details →" */
.news-card__more,
.ev-card__more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: var(--space-3);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.news-card__arrow,
.ev-card__arrow {
  transition: transform 0.3s;
}

.news-card:hover .news-card__arrow,
.ev-card:hover .ev-card__arrow {
  transform: translateX(4px);
}

/* Photo frame: rounded, a thin gold line */
.news-card__media,
.ev-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1.5px solid var(--gold);
  border-radius: 24px;
  background: #0f2f1e;
}

.news-card__media img,
.ev-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.news-card:hover .news-card__media img,
.ev-card:hover .ev-card__media img {
  transform: scale(1.05);
}

/* ---- News ---- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.news-card {
  display: flex;
  flex-direction: column;
  padding: clamp(1rem, 1.8vw, 1.3rem);
}

.news-card__media {
  aspect-ratio: 16 / 10;
}

.news-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-2) var(--space-2);
}

.news-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  margin: 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.8rem;
}

.news-card__category {
  position: relative;
  z-index: 2; /* above the whole-card link */
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.news-card__category::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--gold);
  transform: rotate(45deg);
}

.news-card__category:hover {
  text-decoration: underline;
}

.news-card__title {
  margin: 0;
  font-size: var(--step-1);
  line-height: 1.25;
}

.news-card__summary {
  margin: 0;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

/* Lead story: across the full width, photo beside the text */
.news-card--lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: stretch;
  gap: var(--space-3);
}

.news-card--lead .news-card__media {
  aspect-ratio: auto;
  min-height: 20rem;
}

.news-card--lead .news-card__body {
  justify-content: center;
  padding: var(--space-5) var(--space-5) var(--space-5) var(--space-4);
}

.news-card--lead .news-card__title {
  font-family: var(--font-body);
  font-size: var(--step-3);
  font-weight: 700;
  line-height: 1.15;
}

.news-card--lead .news-card__summary {
  font-size: var(--step-0);
}

.news-card__flag {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

  .news-card--lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-card--lead .news-card__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .news-card--lead .news-card__body {
    padding: var(--space-4) var(--space-2) var(--space-2);
  }
}

@media (max-width: 620px) {
  .news-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .news-card--lead .news-card__title {
    font-size: var(--step-2);
  }
}

/* ---- Events ---- */
.ev-month + .ev-month {
  margin-top: var(--space-8, 4rem);
}

.ev-month__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem var(--space-3);
  margin: 0 0 var(--space-5);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(227, 167, 47, 0.45);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--step-2);
  font-weight: 700;
}

.ev-month__count {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ev-stack {
  display: grid;
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.ev-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  padding: clamp(1rem, 2vw, 1.4rem);
}

.ev-card.has-media {
  grid-template-columns: auto minmax(0, 1fr) clamp(13rem, 26vw, 18rem);
}

/* Gold date tablet */
.ev-date {
  display: grid;
  justify-items: center;
  align-content: center;
  width: 5.25rem;
  padding: 0.7rem 0.4rem 0.8rem;
  border-radius: 22px;
  background: linear-gradient(180deg, #efb94a, var(--gold));
  color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand), 0 0 0 5.5px rgba(227, 167, 47, 0.7);
  font-family: var(--font-display);
  line-height: 1;
  text-align: center;
}

.ev-date__weekday {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ev-date__day {
  margin: 0.3rem 0 0.25rem;
  font-size: 2.1rem;
  font-weight: 800;
}

.ev-date__month {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ev-card__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 0;
  height: 100%;
}

.ev-card__title {
  margin: 0;
  font-size: var(--step-2);
  line-height: 1.2;
}

.ev-card__details {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.ev-card__details dd {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step--1);
}

.ev-card__details svg {
  flex-shrink: 0;
  width: 1.05em;
  height: 1.05em;
  margin-top: 0.15em;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ev-card__summary {
  margin: var(--space-1) 0 0;
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.6;
}

.ev-card__media {
  align-self: stretch;
  min-height: 10rem;
}

/* Cancelled: muted, with a red tag; the title is struck through */
.ev-card__status {
  align-self: flex-start;
  margin: 0;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 165, 155, 0.15);
  color: var(--danger);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ev-card.is-cancelled {
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.ev-card.is-cancelled .ev-date {
  background: #2c5a41;
  color: var(--muted);
  box-shadow: 0 0 0 4px var(--brand), 0 0 0 5.5px rgba(255, 255, 255, 0.2);
}

.ev-card.is-cancelled .ev-card__link {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.ev-card.is-cancelled .ev-card__media img {
  filter: grayscale(0.7);
  opacity: 0.7;
}

/* Tablets and phones: photo across the top, date tablet over its corner */
@media (max-width: 760px) {
  .ev-card,
  .ev-card.has-media {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ev-card.has-media .ev-card__media {
    grid-row: 1;
    grid-column: 1 / -1;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .ev-card.has-media .ev-date {
    grid-row: 1;
    grid-column: 1;
    z-index: 1;
    align-self: start;
    margin: var(--space-3) 0 0 var(--space-3);
  }

  .ev-card.has-media .ev-card__body {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .ev-card:not(.has-media) {
    grid-template-columns: minmax(0, 1fr);
  }

  .ev-card:not(.has-media) .ev-date {
    justify-self: start;
  }

  .ev-date {
    width: 4.5rem;
  }

  .ev-date__day {
    font-size: 1.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .news-card,
  .ev-card,
  .news-card__media img,
  .ev-card__media img,
  .news-card__arrow,
  .ev-card__arrow {
    transition: none;
  }

  .news-card:hover,
  .news-card:focus-within,
  .ev-card:hover,
  .ev-card:focus-within,
  .news-card:hover .news-card__media img,
  .ev-card:hover .ev-card__media img {
    transform: none;
  }
}

/* ---------------- Email chooser ----------------
 * Opens from any email link: Gmail, Outlook, Yahoo, the email app, or copy.
 */
.email-chooser {
  width: min(92vw, 27rem);
  max-height: 92vh;
  margin: auto;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.email-chooser::backdrop {
  background: rgba(6, 22, 14, 0.72);
  backdrop-filter: blur(3px);
}

.email-chooser__panel {
  position: relative;
  padding: var(--space-6) var(--space-5) var(--space-5);
  border: 1.5px solid var(--gold);
  border-radius: 32px;
  background: var(--brand);
  box-shadow: 0 0 34px rgba(227, 167, 47, 0.3), 0 24px 50px rgba(0, 0, 0, 0.5);
  text-align: center;
}

.email-chooser__close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(227, 167, 47, 0.5);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.email-chooser__close:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.email-chooser__kicker {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.email-chooser__title {
  margin: var(--space-2) 0 var(--space-2);
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--step-2);
  line-height: 1.2;
}

.email-chooser__address {
  margin: 0 0 var(--space-4);
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--step--1);
  overflow-wrap: anywhere;
  user-select: all;
}

.email-chooser__list {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.email-chooser__option {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 0.6rem;
  border: 1px solid rgba(227, 167, 47, 0.4);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.25s, background 0.25s;
}

.email-chooser__option:hover,
.email-chooser__option:focus-visible {
  border-color: var(--gold);
  background: rgba(227, 167, 47, 0.1);
}

.email-chooser__option.is-copied {
  border-color: var(--palm);
}

.email-chooser__icon {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
}

.email-chooser__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.email-chooser__text {
  display: grid;
  flex: 1;
  min-width: 0;
}

.email-chooser__text strong {
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--step--1);
  font-weight: 600;
}

.email-chooser__text span {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
}

.email-chooser__arrow {
  color: var(--gold);
}

/* The site name in gold, in the header and the footer */
.site-footer .footer__brand,
.site-footer .footer__brand:hover {
  color: var(--gold);
}

/* ---------------- Event details page ----------------
 * Opens from "View details" on the Events page (event.html).
 * Same look as the Events page: gold frames, rounded boxes, gold glow.
 */
.ev-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem);
  border-bottom: 3px solid var(--gold);
  background:
    radial-gradient(circle at 85% 20%, rgba(227, 167, 47, 0.12), transparent 45%),
    linear-gradient(180deg, #123a25, var(--brand));
}

.ev-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.ev-hero__text {
  display: grid;
  justify-items: start;
  gap: var(--space-3);
}

.ev-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--step--1);
  text-decoration: none;
}

.ev-hero__back:hover {
  text-decoration: underline;
}

.ev-status {
  margin: var(--space-2) 0 0;
  padding: 0.3rem 0.9rem;
  border: 1px solid rgba(227, 167, 47, 0.6);
  border-radius: 999px;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ev-status--happening {
  border-color: var(--palm);
  background: rgba(143, 208, 166, 0.15);
  color: var(--palm);
}

.ev-status--ended {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--muted);
}

.ev-status--cancelled {
  border-color: rgba(255, 165, 155, 0.5);
  background: rgba(255, 165, 155, 0.12);
  color: var(--danger);
}

.ev-hero__title {
  margin: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: clamp(2rem, 1.2rem + 3vw, 3.4rem);
  line-height: 1.1;
}

.ev-hero.is-cancelled .ev-hero__title {
  text-decoration: line-through;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}

.ev-hero__facts {
  display: grid;
  gap: var(--space-2);
  margin: var(--space-2) 0 0;
}

.ev-hero__facts dd {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-0);
}

.ev-hero__facts small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
}

.ev-hero__facts svg,
.ev-info svg {
  flex-shrink: 0;
  width: 1.15em;
  height: 1.15em;
  margin-top: 0.15em;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ev-hero__countdown {
  margin: var(--space-1) 0 0;
  padding-left: var(--space-3);
  border-left: 3px solid var(--gold);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-style: italic;
}

.ev-hero__actions,
.ev-info__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.ev-detail__calendar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
}

.ev-detail__calendar svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.event-page .share__button,
.story-page .share__button {
  border-color: rgba(227, 167, 47, 0.55);
  background: transparent;
  color: var(--ink);
}

.event-page .share__button:hover,
.story-page .share__button:hover {
  border-color: var(--gold);
  background: rgba(227, 167, 47, 0.1);
  color: var(--gold);
}

/* The photo, in a thin gold frame, with the gold date block over its corner */
.ev-hero__media {
  position: relative;
  padding: 0 0 var(--space-5) var(--space-5);
}

.ev-hero__frame {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1.5px solid var(--gold);
  border-radius: 36px;
  background: #0f2f1e;
  box-shadow:
    0 0 0 8px rgba(15, 47, 30, 0.9),
    0 0 0 9.5px rgba(227, 167, 47, 0.5),
    0 24px 50px rgba(0, 0, 0, 0.45);
}

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

.ev-hero.is-cancelled .ev-hero__frame img {
  filter: grayscale(0.7);
  opacity: 0.75;
}

.ev-date--big {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 7.5rem;
  padding: 0.9rem 0.5rem 1rem;
  border-radius: 26px;
}

.ev-date--big .ev-date__day {
  font-size: 2.9rem;
}

.ev-date--big .ev-date__month {
  font-size: 0.78rem;
}

.ev-hero.is-cancelled .ev-date {
  background: #2c5a41;
  color: var(--muted);
}

/* About this event + details card */
.ev-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 22rem);
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.ev-detail__main {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  min-width: 0;
}

.ev-detail__about,
.ev-detail__photos,
.ev-info {
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1.5px solid rgba(227, 167, 47, 0.7);
  border-radius: 36px;
  background: var(--brand);
  box-shadow:
    0 0 20px rgba(227, 167, 47, 0.16),
    0 12px 28px rgba(0, 0, 0, 0.25);
}

.ev-detail__heading,
.ev-info__title {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0 0 var(--space-4);
  color: var(--gold);
  font-family: var(--font-body);
  font-size: var(--step-2);
}

.ev-detail__heading::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(227, 167, 47, 0.6), transparent);
}

.ev-detail__empty {
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.ev-detail__about .prose {
  max-width: none;
}

.ev-detail__side {
  position: sticky;
  top: 6rem;
}

.ev-info__title {
  font-size: var(--step-1);
}

.ev-info__list {
  display: grid;
  gap: var(--space-3);
  margin: 0;
}

.ev-info__list > div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid rgba(227, 167, 47, 0.25);
}

.ev-info__list dt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ev-info__list dt svg {
  margin-top: 0;
}

.ev-info__list dd {
  margin: 0;
  color: #fff;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.45;
}

.ev-info__list small {
  color: var(--muted);
  font-size: 0.8rem;
}

.ev-info__map {
  margin-top: var(--space-4);
  overflow: hidden;
  border: 1.5px solid var(--gold);
  border-radius: 22px;
  clip-path: inset(0 round 22px);
}

.ev-info__map iframe {
  display: block;
  width: 100%;
  height: 11rem;
  border: 0;
  border-radius: 20px;
}

.ev-info__directions {
  display: inline-flex;
  gap: 0.4rem;
  margin-top: var(--space-2);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--step--1);
  text-decoration: none;
}

.ev-info__directions:hover {
  text-decoration: underline;
}

.ev-info__actions .button,
.ev-info__actions .share {
  width: 100%;
}

.ev-info__actions .button {
  justify-content: center;
}

.ev-info__actions .share__button {
  flex: 1;
  justify-content: center;
}

/* Photos from the event */
.ev-photos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}

.ev-photos .ev-photos__item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1.5px solid var(--gold);
  border-radius: 20px;
}

.ev-photos__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.ev-photos__item:hover img {
  transform: scale(1.05);
}

.ev-photos__caption {
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: var(--step--1);
  text-align: center;
}

/* News and other events below */
.ev-related + .ev-related {
  padding-top: 0;
}

.ev-related__all {
  display: flex;
  justify-content: center;
  margin: var(--space-6) 0 0;
}

.ev-related__all .button {
  border-radius: 999px;
}

.ev-missing {
  display: grid;
  justify-items: start;
  gap: var(--space-4);
  padding-block: var(--space-8, 4rem);
}

/* Tablets and phones */
@media (max-width: 900px) {
  .ev-hero__inner,
  .ev-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .ev-hero__media {
    order: -1;
    max-width: 34rem;
  }

  .ev-detail__side {
    position: static;
  }

  /* On one column the details card comes first; buttons are in the top section */
  .ev-detail__side {
    order: -1;
  }

  .ev-info__actions {
    display: none;
  }
}

@media (max-width: 600px) {
  .ev-hero__frame,
  .ev-detail__about,
  .ev-detail__photos,
  .ev-info {
    border-radius: 28px;
  }

  .ev-hero__media {
    padding: 0 0 var(--space-4) var(--space-4);
  }

  .ev-date--big {
    width: 6rem;
  }

  .ev-date--big .ev-date__day {
    font-size: 2.3rem;
  }

  .ev-photos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .ev-photos__item img {
    transition: none;
  }
}

/* ---------------- Story page (one news post) ----------------
 * Opens from "Read story". Reuses the event details page layout
 * (.ev-hero, .ev-detail, .ev-info, .ev-photos) with a few extras.
 */
a.story-hero__category {
  text-decoration: none;
}

a.story-hero__category:hover {
  border-color: var(--gold);
  background: rgba(227, 167, 47, 0.12);
}

.story-hero__standfirst {
  max-width: 40rem;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-style: italic;
  line-height: 1.5;
}

.story-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-1) 0 0;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: var(--step--1);
}

.story-hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.story-hero__meta svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* No main photo: the title area takes the full width */
.story-hero--no-image .ev-hero__inner {
  grid-template-columns: minmax(0, 1fr);
  max-width: 52rem;
}

.story-hero__media {
  padding: 0;
}

/* The story text: a gold first letter */
.story-body .prose {
  font-size: var(--step-0);
  line-height: 1.8;
}

.story-body .prose > p:first-of-type::first-letter {
  float: left;
  margin: 0.08em 0.12em 0 0;
  color: var(--gold);
  font-family: var(--font-body);
  font-size: 3.4em;
  line-height: 0.85;
}

.story-body .prose img {
  border: 1.5px solid var(--gold);
  border-radius: 20px;
}

.story-body .prose blockquote {
  margin-inline: 0;
  padding: var(--space-3) var(--space-5);
  border-left: 3px solid var(--gold);
  border-radius: 0 18px 18px 0;
  background: rgba(227, 167, 47, 0.08);
  font-style: italic;
}

.story-video {
  overflow: hidden;
  border: 1.5px solid var(--gold);
  border-radius: 22px;
  clip-path: inset(0 round 22px);
}

.story-video iframe,
.story-video video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.story-info__link {
  color: #fff;
}

.story-info__share-title {
  margin: var(--space-4) 0 var(--space-2);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.story-info__share .share {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.story-info__share .share__button {
  justify-content: center;
}

/* On one column the share buttons are already in the top section */
@media (max-width: 900px) {
  .story-page .ev-detail__side {
    order: 1;
  }

  .story-info__share-title,
  .story-info__share {
    display: none;
  }
}

/* ---------------- Leadership: one category at a time ----------------
 * Previous / "2 of 5" / Next under the category that's showing.
 */
.profile-group[hidden] {
  display: none;
}

.profile-group:not([hidden]) {
  animation: group-in 0.45s ease both;
}

@keyframes group-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.profile-jump .chip[aria-current="true"] {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--brand);
}

.group-pager {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: var(--space-3);
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(227, 167, 47, 0.35);
}

.group-pager__prev,
.group-pager__next {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 3.25rem;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-family: var(--font-display);
  text-align: left;
  cursor: pointer;
}

.group-pager__prev {
  justify-self: start;
  border: 1.5px solid rgba(227, 167, 47, 0.6);
  background: transparent;
  color: var(--ink);
}

.group-pager__prev:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.group-pager__next {
  justify-self: end;
  text-align: right;
}

.group-pager__prev small,
.group-pager__next small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.8;
}

.group-pager__prev > span:last-child,
.group-pager__next > span:first-child {
  display: grid;
  max-width: 16rem;
  line-height: 1.25;
}

.group-pager__restart {
  border: 1.5px solid rgba(227, 167, 47, 0.6);
  color: var(--ink);
}

.group-pager__count {
  margin: 0;
  color: var(--gold);
  font-family: var(--font-display);
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* Phones: count on top, buttons side by side underneath */
@media (max-width: 600px) {
  .group-pager {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .group-pager__count {
    grid-column: 1 / -1;
    grid-row: 1;
    text-align: center;
  }

  .group-pager__prev,
  .group-pager__next {
    width: 100%;
    padding-inline: 0.9rem;
    font-size: var(--step--1);
  }

  .group-pager__spacer {
    display: none;
  }

  .group-pager__next:only-of-type,
  .group-pager__spacer + .group-pager__count + .group-pager__next {
    grid-column: 1 / -1;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-group:not([hidden]) {
    animation: none;
  }
}

/* ---------------- 3 a row on every desktop and laptop ----------------
 * Card grids that are 3 across stay 3 across on any screen or browser
 * window 700px and wider (smaller laptops, display zoom, narrow windows).
 * Tablets and phones below 700px keep their 2- and 1-column layouts.
 */
@media (min-width: 700px) and (max-width: 960px) {
  .zone__facts,
  .objectives,
  .whoswho__list,
  .explore,
  .profile-grid,
  .doc-list,
  .news-grid,
  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contact-cards {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  }

  /* A little less padding inside the narrower cards */
  .news-card__body {
    padding-inline: var(--space-1);
  }

  .contact-card {
    padding-inline: var(--space-4);
  }
}

/* ---------------- Phone type standard ----------------
 * On small screens, big bold display text looks heavy. Headings step down
 * to semi-bold and smaller sizes; buttons, labels and links to medium.
 * Body text is unchanged.
 */
@media (max-width: 600px) {
  :root {
    --step-1: 1.1875rem;
    --step-2: 1.375rem;
    --step-3: 1.625rem;
    --step-4: 1.875rem;
    --step-5: 2.375rem;
  }

  h1,
  h2,
  h3,
  h4,
  .hero__title,
  .page-header__title,
  .brand__name,
  .footer__brand,
  .entry__title,
  .event-row__title {
    font-weight: 600;
    letter-spacing: -0.01em;
  }

  .hero__title {
    line-height: 1.05;
  }

  .aims__statement {
    font-size: var(--step-0);
    font-weight: 400;
    line-height: 1.6;
  }

  .button,
  .chip,
  .search-toggle,
  .nav-toggle,
  .hero__volume,
  .hero__place,
  .zone__label,
  .zone__more,
  .glance-facts dd,
  .fact-list dd,
  .lga-tags li,
  .lga-grid li,
  .explore__name,
  .whoswho__name,
  .objective__verb,
  .drawer__label,
  .drawer__extra a,
  .footer__heading,
  .footer__lgas ul,
  .section-head a,
  .price-table tbody th,
  .price-table td:last-child,
  .invest-page__motto,
  .invest__motto,
  .drawer__title {
    font-weight: 500;
  }
}

/* ---------------- Normal weight text on every screen ----------------
 * Text is normal weight (400) everywhere. Headings and titles are only a
 * touch heavier (500) so they still stand out. Sizes are unchanged.
 */
body,
body *:not(svg):not(svg *) {
  font-weight: 400 !important; /* wins over every earlier bold setting */
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero__title,
.page-header__title,
.brand__name,
.footer__brand,
.entry__title,
.event-row__title,
.group-title__name,
.news-card__title,
.news-card__title *,
.ev-card__title,
.ev-card__title *,
.ev-month__title,
.ev-date__day,
.contact-help__title,
.email-chooser__title,
.about-title,
.zone__title,
.invest__title,
.person__name,
.profile__name,
.date-badge__day,
.doc__title,
.footer__heading,
strong,
b,
th,
dt {
  font-weight: 500 !important;
}
