/* Inspired layout patterns from modern summit / nonprofit landing pages; not affiliated with any third party */

:root {
  --color-bg: #faf8f5;
  --color-surface: #ffffff;
  --color-ink: #1a1a1c;
  --color-ink-muted: #5c5c63;
  --color-accent: #0d4f4a;
  --color-accent-light: #e8f2f0;
  /* Mint panel for content / title cards (inner pages) */
  --color-content-card: #f0f7f5;
  --content-card-border: 3px;
  --color-card-border: #e8891a;
  --color-warm: #b8860b;
  --color-border: rgba(26, 26, 28, 0.12);
  --font-sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "DM Serif Display", Georgia, "Times New Roman", serif;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --radius: 12px;
  --max: 1100px;
  --header-h: 72px;
  --nav-bar: #005662;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-ink);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration-skip-ink: auto;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--color-ink);
  color: var(--color-bg);
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header: top bar (teal) with mega menu */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bar);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.header-inner {
  width: min(100% - 1.5rem, 1200px);
  margin-inline: auto;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 0.75rem 1rem;
  padding: 0.35rem 0;
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  min-width: 0;
  gap: 0.75rem;
  position: relative;
  z-index: 1;
}

.logo {
  display: block;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
  background: none;
  background-color: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  max-width: min(540px, 92vw);
  align-self: center;
}

.logo:hover,
.logo:focus,
.logo:focus-visible,
.logo--footer:hover,
.logo--footer:focus,
.logo--footer:focus-visible {
  text-decoration: none;
  background: none;
  background-color: transparent;
  box-shadow: none;
}

.logo:hover {
  opacity: 0.92;
}

.logo--nav {
  z-index: 1;
  background: none;
  background-color: transparent;
}

.logo--nav:hover {
  opacity: 1;
}

.logo--nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.logo-img {
  display: block;
  max-height: 99px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
  background: none;
  background-color: transparent;
  background-image: none;
  mix-blend-mode: normal;
}

.logo--footer {
  max-width: 390px;
  background: none;
  background-color: transparent;
}

.logo--footer .logo-img {
  max-height: 78px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 1;
  flex-shrink: 0;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  position: relative;
  transition: transform 0.2s, opacity 0.2s;
}

.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-bars::before {
  top: -6px;
}

.nav-toggle-bars::after {
  top: 6px;
}

/* Mega navigation (desktop: logo | centered links | apply/subscribe) */
.nav--mega {
  display: flex;
  align-items: center;
  flex: 1;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}

.nav-mega {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.15rem 0.2rem;
  flex: 1 1 auto;
  min-width: 0;
}

.nav-item {
  position: relative;
  list-style: none;
}

.nav-item--current .nav-mega__trigger,
.nav-mega__trigger:hover,
.nav-mega__trigger:focus-visible {
  background: rgba(0, 0, 0, 0.12);
  outline: none;
}

.nav-mega__trigger {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  line-height: 1.2;
  padding: 0.6rem 0.4rem 0.65rem;
  cursor: pointer;
  white-space: nowrap;
  text-align: left;
  border-radius: 4px;
}

.nav-mega__trigger::after {
  content: "";
  width: 0.35em;
  height: 0.35em;
  border-right: 2px solid rgba(255, 255, 255, 0.7);
  border-bottom: 2px solid rgba(255, 255, 255, 0.7);
  transform: rotate(45deg) translateY(-0.1em);
  margin-top: -0.15em;
  flex-shrink: 0;
  opacity: 0.9;
}

/* Single top-level link (e.g. The Summit → home) */
.nav-mega__toplink {
  display: flex;
  align-items: center;
  color: #fff;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  line-height: 1.2;
  padding: 0.6rem 0.4rem 0.65rem;
  text-decoration: none;
  border-radius: 4px;
  white-space: nowrap;
}

.nav-item--current .nav-mega__toplink,
.nav-mega__toplink:hover,
.nav-mega__toplink:focus-visible {
  background: rgba(0, 0, 0, 0.12);
  color: #fff;
  text-decoration: none;
  outline: none;
}

.nav-mega__panel {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 16rem;
  max-width: min(20rem, 92vw);
  background: #fff;
  box-shadow: var(--shadow-md);
  border-radius: 0 0 8px 8px;
  border: 1px solid var(--color-border);
  border-top: none;
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  pointer-events: none;
}

.nav-mega__panel a {
  display: block;
  padding: 0.5rem 1.1rem;
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  border: none;
  white-space: normal;
  line-height: 1.35;
}

.nav-mega__panel a:hover,
.nav-mega__panel a:focus-visible {
  background: var(--color-accent-light);
  color: var(--color-accent);
  text-decoration: none;
  outline: none;
}

.nav-mega__panel a[aria-current="page"] {
  background: var(--color-accent-light);
  color: var(--color-accent);
  font-weight: 700;
}

/* Desktop: show dropdown on hover / focus / open state */
@media (min-width: 901px) {
  .nav-item:hover .nav-mega__panel,
  .nav-item:focus-within .nav-mega__panel,
  .nav-item--open .nav-mega__panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

.nav-actions--bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.btn-nav {
  font-size: 0.82rem;
  padding: 0.4rem 0.8rem;
  text-decoration: none;
  font-weight: 600;
  border-radius: 999px;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-nav--ghost {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-nav--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  text-decoration: none;
}

.btn-nav--solid {
  color: var(--nav-bar);
  background: #fff;
  border-color: #fff;
}

.btn-nav--solid:hover {
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent);
  color: #fff;
}

.btn-primary:hover {
  background: #0a3d39;
  box-shadow: var(--shadow-sm);
}

.btn-ghost {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-lg {
  padding: 0.75rem 1.4rem;
  font-size: 1rem;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  min-height: min(78vh, 640px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  overflow: hidden;
}

/* Headline: full-width marquee (RTL scroll); eyebrow + CTAs in .hero-below */
.hero--with-marquee {
  justify-content: flex-end;
  align-items: stretch;
  padding: clamp(2.25rem, 6vw, 3.5rem) 0 clamp(1.25rem, 3vw, 1.75rem);
}

.hero-marquee-outer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  flex: 0 0 auto;
  margin: 0;
  padding: 0.85rem 0 0.9rem;
  min-height: 3.1rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  overflow: hidden;
}

.marquee {
  position: relative;
  width: 100%;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 2%, #000 98%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2%, #000 98%, transparent 100%);
}

.marquee__track {
  display: inline-flex;
  width: max-content;
  flex-wrap: nowrap;
  will-change: transform;
  animation: nses-marquee-rtl 240s linear infinite;
}

@keyframes nses-marquee-rtl {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 42rem;
    margin: 0 auto;
    text-align: center;
    white-space: normal;
    transform: none;
  }

  .marquee__track .marquee__segment:nth-child(2) {
    display: none;
  }

  .marquee__segment {
    white-space: normal;
  }

  .marquee {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

.marquee__segment {
  display: inline-block;
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.7vw, 1.3rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  white-space: nowrap;
  padding: 0 0.75rem 0 0;
  flex-shrink: 0;
  align-self: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(13, 79, 74, 0.92) 0%, rgba(13, 50, 55, 0.88) 50%, rgba(26, 26, 28, 0.85) 100%),
    url("../img/hero-banner.png") center / cover no-repeat;
  z-index: 0;
}

/* Home: conference / youth collaboration photo */
.hero--home .hero-bg {
  background: url("../img/hero-home.png") center 38% / cover no-repeat;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 auto 0.75rem;
  max-width: min(40rem, 100%);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.12;
  font-weight: 400;
  margin: 0 auto 1rem;
  max-width: min(36rem, 100%);
}

.hero-lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: min(42rem, 100%);
  margin: 0 auto 1.75rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}

.hero-tag {
  margin: 0.25rem auto 0;
  max-width: min(40rem, 100%);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  border: none;
  padding: 0 0.5rem;
  text-align: center;
}

/* Below hero: meta + CTAs + venue (responsive band) */
.hero-below {
  position: relative;
  z-index: 1;
  width: 100%;
  color: #fff;
  background: var(--nav-bar);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.hero-below__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem 1rem;
  padding: clamp(1.1rem, 3vw, 1.5rem) 0;
  text-align: center;
}

.hero-below .eyebrow {
  margin: 0;
  max-width: 42rem;
}

.hero-below .hero-ctas {
  margin-bottom: 0;
  justify-content: center;
}

.hero-below__ctas--single {
  width: 100%;
  max-width: min(36rem, 100%);
}

.hero-below__ctas--single .btn {
  width: 100%;
  justify-content: center;
}

.hero-below__tag {
  margin: 0;
  max-width: min(40rem, 100%);
  font-size: 0.9rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.9);
}

.hero-below__tag strong {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 520px) {
  .hero-below__inner {
    align-items: stretch;
  }

  .hero-below .eyebrow {
    font-size: 0.68rem;
    line-height: 1.4;
  }

  .hero-below__ctas--single {
    max-width: none;
  }
}

/* Quotes */
.quotes {
  margin-top: -2.5rem;
  position: relative;
  z-index: 2;
  padding: 0 0 2rem;
}

.quote-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media (max-width: 800px) {
  .quote-grid {
    grid-template-columns: 1fr;
  }
}

.quote-card {
  margin: 0;
  padding: 1.25rem 1.35rem;
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 0.95rem;
  line-height: 1.5;
  border: 1px solid var(--color-border);
}

.quote-card p {
  margin: 0 0 0.75rem;
  color: var(--color-ink);
  font-style: italic;
}

.quote-card footer {
  color: var(--color-ink-muted);
  font-size: 0.85rem;
}

/* Sections */
.section {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.section-alt {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 400;
  margin: 0 0 0.5rem;
  color: var(--color-ink);
}

.section-intro {
  color: var(--color-ink-muted);
  max-width: 60ch;
  margin: 0 0 2rem;
}

/* Home: hub list (programme, community, about, apply, etc.) */
.page-home .home-intro {
  padding-top: clamp(1.5rem, 4vw, 2.5rem);
}

.page-home .section-intro {
  max-width: 65ch;
}

/* Home: responsive link cards (programme, community, apply, etc.) */
.home-cards {
  list-style: none;
  margin: 0;
  padding: 1.75rem 0 0;
  border-top: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
  max-width: none;
}

@media (min-width: 640px) {
  .home-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem 1.25rem;
  }
}

@media (min-width: 1000px) {
  .home-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.2rem 1.35rem;
  }
}

.home-card {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100%;
  padding: 1.2rem 1.25rem 1.3rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(13, 79, 74, 0.22);
}

@media (hover: hover) and (pointer: fine) {
  .home-card:hover {
    transform: translateY(-2px);
  }
}

.home-card__title {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

.home-card__title a {
  color: var(--color-accent);
  text-decoration: none;
}

.home-card__title a:hover,
.home-card__title a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}

.home-card__desc {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-ink-muted);
  flex: 1 1 auto;
}

.home-card__desc a.home-card__inline,
.home-card__cta a {
  color: var(--color-accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.home-card__desc a:hover,
.home-card__desc a:focus-visible,
.home-card__cta a:hover,
.home-card__cta a:focus-visible {
  text-decoration-thickness: 2px;
  outline: none;
}

.home-card__cta {
  margin: 0.65rem 0 0;
  padding-top: 0.4rem;
  font-size: 0.95rem;
}

/* Home: expected-reach counters, same background as .hero-bg */
.home-intro .national-skilling {
  margin-bottom: 0;
}

.reach-stats--band {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: clamp(1.35rem, 4vw, 2.1rem) 0;
}

.reach-stats__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(13, 79, 74, 0.92) 0%, rgba(13, 50, 55, 0.88) 50%, rgba(26, 26, 28, 0.85) 100%),
    url("../img/hero-banner.png") center / cover no-repeat;
  z-index: 0;
}

.reach-stats__wrap {
  position: relative;
  z-index: 1;
}

.reach-stats--band .reach-stats__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.35rem;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
}

@media (min-width: 800px) {
  .reach-stats--band .reach-stats__inner {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 1.25rem;
    align-items: start;
  }
}

.reach-stats--band .reach-stats__item {
  margin: 0;
  padding: 0.25rem 0.35rem;
}

@media (max-width: 799px) {
  .reach-stats--band .reach-stats__item {
    padding-bottom: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .reach-stats--band .reach-stats__item:last-child {
    padding-bottom: 0;
    border-bottom: none;
  }
}

.reach-stats--band .reach-stats__value {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  color: #fff;
  margin: 0 0 0.4rem;
  line-height: 1.12;
  font-weight: 400;
}

.reach-stats--band .reach-stats__label {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.88);
  max-width: 40ch;
  margin-inline: auto;
}

.reach-stats--band .reach-stats__label strong {
  color: #fff;
  font-weight: 600;
}

.text-center {
  text-align: center;
}

/* Impact / stats */
.impact {
  text-align: center;
}

.impact .section-title,
.impact .section-intro {
  margin-left: auto;
  margin-right: auto;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 4rem;
  margin-bottom: 2.5rem;
}

.stat {
  text-align: center;
  max-width: 16rem;
}

.stat-value,
.stat .stat-suffix {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1;
  color: var(--color-accent);
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-ink-muted);
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .card-grid.three {
    grid-template-columns: 1fr;
  }
}

.feature-card,
.spotlight-card,
.news-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card:hover,
.spotlight-card:hover,
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feature-card h3,
.spotlight-card h3 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}

.feature-card p,
.spotlight-card p {
  margin: 0 0 1rem;
  color: var(--color-ink-muted);
  font-size: 0.95rem;
}

.card-link {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.card-link::after {
  content: " →";
}

/* Split + panel */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 800px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.split-panel {
  min-height: 280px;
  border-radius: var(--radius);
  overflow: hidden;
}

.split-panel-inner {
  height: 100%;
  min-height: 280px;
  background:
    linear-gradient(160deg, var(--color-accent-light) 0%, rgba(13, 79, 74, 0.15) 100%),
    url("https://images.unsplash.com/photo-1515187029135-18ee286d815b?w=800&q=80") center / cover;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.6rem;
  color: var(--color-ink-muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--color-accent);
  border-radius: 2px;
}

/* Spotlight */
.spotlight-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsl(var(--avatar-hue, 180), 45%, 55%), hsl(var(--avatar-hue, 180), 50%, 35%));
  margin-bottom: 1rem;
}

.spotlight-card p {
  font-size: 0.9rem;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.news-card h3 {
  font-size: 1.1rem;
  margin: 0.35rem 0 0.5rem;
  font-weight: 600;
  line-height: 1.35;
}

.news-card a {
  text-decoration: none;
  color: var(--color-ink);
}

.news-card a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

.news-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.news-card time {
  font-size: 0.8rem;
  color: var(--color-ink-muted);
}

/* Newsletter */
.newsletter {
  padding: clamp(3rem, 5vw, 4rem) 0;
  background: linear-gradient(180deg, #eef5f3 0%, var(--color-bg) 100%);
  border-top: 1px solid var(--color-border);
}

.newsletter .section-title,
.newsletter .section-intro {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1 1 200px;
  min-height: 48px;
  padding: 0 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
}

.newsletter-form input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* Footer */
.site-footer {
  background: var(--color-ink);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 0 0;
}

.footer-address,
.footer-contact {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0.75rem 0 0;
}

.site-footer a {
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding-bottom: 2rem;
  align-items: start;
}

@media (max-width: 800px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
}

.footer-col ul {
  margin: 0;
}

@media (max-width: 600px) {
  .footer-nav {
    grid-template-columns: 1fr;
  }
}

.footer-nav h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-nav ul {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-nav a:hover {
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem 0;
}

.footer-bottom p {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* Mobile nav */
@media (max-width: 900px) {
  .header-inner {
    min-height: 56px;
    flex-direction: column;
    align-items: stretch;
  }

  .header-bar {
    z-index: 30;
    background: var(--nav-bar);
  }

  .nav-toggle {
    display: flex;
  }

  .nav--mega {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    padding-top: 4.25rem;
    min-height: 100dvh;
    max-height: 100dvh;
    box-sizing: border-box;
    overflow-y: auto;
    background: var(--nav-bar);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 9;
    flex-direction: column;
    align-items: stretch;
  }

  body.nav-open .nav--mega {
    transform: translateX(0);
  }

  .nav-mega {
    flex-direction: column;
    width: 100%;
    padding: 0 1.25rem 0.5rem;
    gap: 0;
    flex: 0 0 auto;
  }

  .nav-item {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .nav-mega__trigger {
    width: 100%;
    padding: 0.9rem 0.25rem;
    font-size: 0.95rem;
    border-radius: 0;
  }

  .nav-mega__toplink {
    width: 100%;
    padding: 0.9rem 0.25rem;
    font-size: 0.95rem;
    border-radius: 0;
  }

  .nav-mega__panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    max-width: none;
    min-width: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    border-radius: 0;
    display: none;
    padding: 0 0 0.75rem 0.75rem;
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.15);
  }

  .nav-item--open .nav-mega__panel {
    display: block;
  }

  .nav-mega__panel a {
    color: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0.75rem;
  }

  .nav-mega__panel a:hover,
  .nav-mega__panel a:focus-visible,
  .nav-mega__panel a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
  }

  .nav-actions--bar {
    flex-direction: column;
    width: 100%;
    padding: 1.25rem 1.5rem 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-top: 0.5rem;
  }

  .nav-actions--bar .btn-nav {
    text-align: center;
    width: 100%;
    padding: 0.65rem 1rem;
  }
}

body.nav-open {
  overflow: hidden;
}

body.nav-open .nav-toggle-bars {
  background: transparent;
}

body.nav-open .nav-toggle-bars::before {
  top: 0;
  transform: rotate(45deg);
}

body.nav-open .nav-toggle-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Nav current: handled in .nav-mega__panel a[aria-current] */

/* Home: stacked CTAs */
.action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1rem;
  align-items: center;
}

/* Inner / legal pages */
.page-main {
  padding-bottom: 3rem;
}

.page-hero {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  padding: 2.25rem 0 2.5rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5rem;
  color: var(--color-ink);
}

.page-hero--article h1 {
  max-width: 24ch;
}

.page-lead {
  margin: 0.75rem 0 0;
  color: var(--color-ink-muted);
  font-size: 1.1rem;
  max-width: 50ch;
}

.page-hero--article {
  padding-top: 2.75rem;
}

.article-meta {
  margin: 0 0 0.5rem;
  color: var(--color-ink-muted);
  font-size: 0.9rem;
}

.prose {
  padding: 2rem 0 1rem;
  max-width: 65ch;
}

/* Two-column body: title card left, copy right (inner pages) */
.prose--split {
  max-width: min(100% - 2rem, 56rem);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

/* Home has no .prose; inner pages: section titles in mint “card” frames, left column */
.page-body:not(.page-home) .prose--split .prose-section {
  display: grid;
  grid-template-columns: minmax(10.5rem, 0.36fr) minmax(0, 1fr);
  gap: 1.25rem 1.75rem;
  align-items: start;
  margin: 0 0 1.75rem;
}

.page-body:not(.page-home) .prose--split .prose-section > h2 {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  padding: 0.85rem 1rem;
  color: var(--color-ink);
  background: var(--color-content-card);
  border: none;
  border-top: var(--content-card-border) solid var(--color-card-border);
  border-left: var(--content-card-border) solid var(--color-card-border);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(200, 120, 30, 0.12);
}

.page-body:not(.page-home) .prose--split .prose-section__body {
  min-width: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.page-body:not(.page-home) .prose--split .prose-section__body p,
.page-body:not(.page-home) .prose--split .prose-section__body ul {
  color: var(--color-ink-muted);
}

.page-body:not(.page-home) .prose--split .prose-section__body p:last-child,
.page-body:not(.page-home) .prose--split .prose-section__body ul:last-child {
  margin-bottom: 0;
}

.prose--split .prose-lead,
.prose--split .prose-content-card {
  width: 100%;
  align-self: stretch;
}

.prose--split > .back-link-p {
  max-width: none;
  width: 100%;
  margin-top: 0.5rem;
}

@media (max-width: 40rem) {
  .page-body:not(.page-home) .prose--split .prose-section {
    grid-template-columns: 1fr;
  }
}

.prose p,
.prose ul {
  margin: 0 0 1rem;
  color: var(--color-ink-muted);
}

/* Inclusive intro block: same family as section title cards, full-width body copy */
.prose .prose-lead,
.prose .prose-content-card {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-ink);
  margin: 0 0 1.5rem;
  padding: 1.5rem 1.75rem;
  max-width: none;
  background: var(--color-content-card);
  border: none;
  border-top: var(--content-card-border) solid var(--color-card-border);
  border-left: var(--content-card-border) solid var(--color-card-border);
  border-radius: 14px;
  box-shadow: 0 1px 0 rgba(200, 120, 30, 0.12);
}

.prose .prose-lead strong,
.prose .prose-content-card strong {
  color: var(--color-ink);
}

.prose ul {
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.35rem;
}

.back-link {
  text-decoration: none;
  font-weight: 600;
}

.back-link:hover {
  text-decoration: underline;
}

.back-link-p {
  margin-top: 2rem;
  margin-bottom: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.page-body:not(.page-home) .prose--split.legal .prose-section > h2 {
  font-size: 1.05rem;
}

.page-section {
  padding: 2rem 0 1rem;
}

.page-news .news-card h2,
.news-card h2 {
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0.35rem 0 0.5rem;
}

.news-excerpt {
  font-size: 0.95rem;
  color: var(--color-ink-muted);
  margin: 0 0 0.5rem;
  line-height: 1.5;
}

/* Apply form */
.apply-form {
  max-width: 32rem;
  margin: 0;
}

.form-row {
  margin-bottom: 1.25rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--color-ink);
}

.req {
  color: var(--color-accent);
}

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form select,
.apply-form textarea {
  width: 100%;
  max-width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.apply-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.form-check input {
  margin-top: 0.3rem;
  flex-shrink: 0;
}

.form-check label {
  font-weight: 400;
  margin-bottom: 0;
}

.form-actions {
  margin-top: 1.5rem;
}

.form-success {
  padding: 1rem 1.25rem;
  background: var(--color-accent-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-ink);
  max-width: 40ch;
}

.form-error {
  padding: 1rem 1.25rem;
  background: #fef2f2;
  border: 1px solid #f87171;
  border-radius: var(--radius);
  color: #7f1d1d;
  max-width: 48ch;
  font-weight: 600;
}

/* Contact page: card grid for secretariat */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0 2rem;
}

.contact-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

.contact-card h3 {
  font-size: 1.05rem;
  margin: 0 0 0.5rem;
  color: var(--color-ink);
}

.contact-card p {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-ink-muted);
}

.contact-card p:last-child {
  margin-bottom: 0;
}

.contact-form {
  margin-top: 1.5rem;
  padding: 1.35rem;
  border: 2px solid var(--color-card-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  border: 2px solid rgba(232, 137, 26, 0.6);
  border-radius: 10px;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(232, 137, 26, 0.35);
  border-color: var(--color-card-border);
}

@media (max-width: 700px) {
  .contact-form {
    padding: 1rem;
  }

  .contact-form__grid {
    grid-template-columns: 1fr;
  }
}
