@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@400;500;700;900&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  /* Revive brand palette: navy, white, golden yellow, teal and coral */
  --forest: #345c6f;
  --forest-deep: #274858;
  --forest-rgb: 52, 92, 111;
  --forest-deep-rgb: 39, 72, 88;
  --sage: #82c5c2;
  --sage-light: #d8efed;
  --cream: #fff8e9;
  --paper: #ffffff;
  --clay: #e8ad9d;
  --ochre: #f2b844;
  --muted: #58727d;
  --gold-accent: #efc268;
  /* backward-compat aliases */
  --ink: var(--forest);
  --rose: var(--clay);
  --mustard: var(--ochre);
  /* Foreground tokens: never use the pale decorative colours for text. */
  --surface-text: var(--forest-deep);
  --surface-accent-text: var(--forest-deep);
  --line: rgba(52, 92, 111, 0.18);
  --shadow: 0 24px 70px rgba(39, 72, 88, 0.14);
  --radius: 1.25rem;
  --serif: "Merriweather", Georgia, serif;
  --sans: "Poppins", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body.menu-open::before {
  content: "";
  position: fixed;
  z-index: 40;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  background: var(--forest-deep);
}

img {
  display: block;
  width: 100%;
}

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

/* underline only inline links inside prose content areas */
.prose p a:not(.btn):not(.no-underline),
.legal-content p a:not(.btn):not(.no-underline),
.story-longform p a:not(.btn):not(.no-underline) {
  text-decoration: underline;
  text-underline-offset: .2em;
  text-decoration-thickness: 1px;
}

/* utility: suppress underline on any link */
.no-underline {
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  top: -4rem;
  padding: .7rem 1rem;
  background: white;
  border-radius: 99px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.section {
  padding: clamp(5rem, 9vw, 8.5rem) 0;
}

.section-sm {
  padding: 4rem 0;
}

/* shared label / overline base — individual rules may override specifics */
.eyebrow,
.footer-title,
.profile-role,
.programme-for,
.resource-count,
.hub-card-overlay small,
.group-index,
.urgent-help-label {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  margin: 0 0 1rem;
  color: var(--surface-accent-text);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: currentColor;
}

.eyebrow.light {
  color: #fff3cf;
}

.eyebrow.dark {
  color: var(--ink);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.02em;
}

p {
  font-weight: 700;
}

h1 {
  font-size: clamp(2.6rem, 5.2vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 3.8vw, 3.8rem);
}

h3 {
  font-size: clamp(1.35rem, 1.7vw, 1.8rem);
}

.lede {
  max-width: 44rem;
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.65;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 3.25rem;
  padding: .8rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 99px;
  background: var(--clay);
  color: var(--forest-deep);
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.btn:hover {
  background: #f3c7bb;
  color: var(--forest-deep);
}

/* Phone CTAs use one consistent icon automatically. */
.btn[href^="tel:"]::before {
  content: "";
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 1.1rem;
  background: currentColor;
  -webkit-mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3H4a1 1 0 0 0-1 1c0 9.39 7.61 17 17 17a1 1 0 0 0 1-1v-3l-4-1-1.5 2A16 16 0 0 1 6 8.5L8 7 7 3Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  mask: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3H4a1 1 0 0 0-1 1c0 9.39 7.61 17 17 17a1 1 0 0 0 1-1v-3l-4-1-1.5 2A16 16 0 0 1 6 8.5L8 7 7 3Z' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.btn[href^="tel:"] .arrow {
  display: none;
}

/*
 * Accessible surface system.
 * Components use the foreground tokens above, while these reusable classes
 * set the correct text colours for each brand background.
 */
.surface-light {
  --surface-text: var(--forest-deep);
  --surface-accent-text: var(--forest-deep);
  background: var(--paper);
  color: var(--surface-text);
}

.surface-gold {
  --surface-text: var(--forest-deep);
  --surface-accent-text: var(--forest-deep);
  background: var(--mustard);
  color: var(--surface-text);
}

.surface-gold .eyebrow,
.surface-gold .eyebrow.light,
.surface-gold .eyebrow.dark {
  color: var(--forest-deep);
}

.surface-gold .btn {
  background: var(--forest-deep);
  color: #fff;
}

.surface-gold .btn:hover,
.surface-gold .btn:focus-visible {
  background: var(--forest);
  color: #fff;
}

.surface-gold .btn-outline {
  border-color: var(--forest-deep);
  background: transparent;
  color: var(--forest-deep);
}

.surface-gold .btn-outline:hover,
.surface-gold .btn-outline:focus-visible {
  background: var(--forest-deep);
  color: #fff;
}

.surface-coral {
  --surface-text: var(--forest-deep);
  --surface-accent-text: var(--forest-deep);
  background: var(--clay);
  color: var(--surface-text);
}

.surface-coral .eyebrow,
.surface-coral .eyebrow.light,
.surface-coral .eyebrow.dark {
  color: var(--forest-deep);
}

.surface-coral .btn {
  background: var(--forest-deep);
  color: #fff;
}

.surface-coral .btn:hover,
.surface-coral .btn:focus-visible {
  background: var(--forest);
  color: #fff;
}

.surface-teal {
  --surface-text: var(--forest-deep);
  --surface-accent-text: var(--forest-deep);
  background: var(--sage-light);
  color: var(--surface-text);
}

.surface-dark {
  --surface-text: #fff;
  --surface-accent-text: var(--ochre);
  background: var(--forest-deep);
  color: var(--surface-text);
}

/*
 * Decorative brand circle segment.
 * Add .brand-segment plus one corner modifier to any section or div.
 * Override --segment-size or --segment-color on the element when needed.
 */
.brand-segment {
  --segment-size: clamp(32rem, 72vw, 76rem);
  --segment-color: var(--ochre);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.brand-segment::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: var(--segment-size);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--segment-color);
  pointer-events: none;
}

.brand-segment > * {
  position: relative;
  z-index: 1;
}

.brand-segment--top-left::after {
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
}

.brand-segment--top-right::after {
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
}

.brand-segment--bottom-left::after {
  bottom: 0;
  left: 0;
  transform: translate(-50%, 50%);
}

.brand-segment--bottom-right::after {
  right: 0;
  bottom: 0;
  transform: translate(50%, 50%);
}

/* Existing dark components participate in the same surface system. */
:where(
  .page-hero,
  .team-section,
  .pathway-card--graphic,
  .impact-card,
  .cta-band,
  .site-footer,
  .ethos-note,
  .story-panel--faith,
  .support-concerns,
  .programme-card-cta,
  .quote-block,
  .featured-event,
  .hub-card,
  .programme-partners
) {
  --surface-text: #fff;
  --surface-accent-text: var(--ochre);
}

.btn-outline {
  border-color: var(--forest);
  background: transparent;
  color: var(--forest);
}

.btn-outline:hover {
  background: var(--forest);
  color: white;
}

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

.btn-light:hover {
  background: white;
  color: var(--forest);
}

.arrow {
  font-size: 1.15em;
}

.ui-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  overflow: visible;
  vertical-align: -.14em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon .ui-icon {
  width: 1.2em;
  height: 1.2em;
}

.carousel-btn .ui-icon,
.modal-close .ui-icon {
  width: 1.2em;
  height: 1.2em;
  vertical-align: middle;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  margin-bottom: -150px;
  color: white;
  background: transparent;
  transition: margin-bottom .3s ease, background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}

.site-header.is-scrolled {
  margin-bottom: -82px;
  background: rgba(var(--forest-deep-rgb), .94);
  box-shadow: 0 10px 30px rgba(var(--forest-deep-rgb), .2);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.is-solid {
  margin-bottom: 0;
  background: var(--forest-deep);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 150px;
  gap: 2rem;
  transition: min-height .3s ease;
}

.site-header.is-scrolled .nav-shell {
  min-height: 82px;
}

.brand {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.brand-logo-full {
  display: block;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  height: auto;
  max-height: 136px;
  object-fit: contain;
  transition: width .3s ease, min-width .3s ease, max-width .3s ease, max-height .3s ease;
}

.brand-compact {
  display: none;
  align-items: center;
  gap: .7rem;
}

.brand-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  padding-right: .8rem;
}

.brand-icon-wrap::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 0;
  width: 1px;
  height: 80%;
  background: rgba(255, 255, 255, .8);
}

.brand-logo-icon {
  display: block;
  width: 48px;
  min-width: 48px;
  max-width: 48px;
  height: auto;
  max-height: 56px;
  object-fit: contain;
}

.site-header .brand-copy {
  display: block;
  color: #fff !important;
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  opacity: 1;
}

.site-header.is-scrolled .brand-logo-full,
.site-header.is-solid .brand-logo-full {
  display: block;
  width: 108px;
  min-width: 108px;
  max-width: 108px;
  max-height: 62px;
}

.site-header.is-scrolled .brand-compact,
.site-header.is-solid .brand-compact {
  display: none;
}

.site-header .brand {
  min-width: 220px;
  transition: min-width .3s ease;
}

.site-header.is-scrolled .brand,
.site-header.is-solid .brand {
  min-width: 108px;
}

.site-footer .brand-logo {
  width: 180px;
  height: auto;
  object-fit: contain;
}

.brand-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 0 0 auto;
}

.donate-button {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .72rem 1.1rem;
  border: 1px solid #f1c65e;
  border-radius: 99px;
  background: #ffd967;
  color: var(--forest-deep);
  font-size: .82rem;
  font-weight: 800;
  box-shadow: 0 8px 24px rgba(var(--forest-deep-rgb), .18);
  transition: background .2s ease, box-shadow .2s ease;
}

.donate-button:hover {
  background: #ffe58f;
  box-shadow: 0 8px 24px rgba(var(--forest-deep-rgb), .18);
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 32px;
  border: 2px solid currentColor;
  border-radius: 70% 20% 70% 20%;
  transform: rotate(-30deg);
}

.brand-mark::before {
  left: 2px;
  top: 1px;
}

.brand-mark::after {
  right: 1px;
  bottom: 1px;
  transform: rotate(150deg);
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-size: 1.15rem;
  line-height: 1.02;
}

.brand-name small {
  font-size: .52rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  opacity: .75;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(.55rem, 1.1vw, 1.15rem);
  /* margin-top: 13px; */
}

.nav-links>a:not(.btn) {
  font-size: .9rem;
  font-weight: 700;
}

.nav-links>a:not(.btn)::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  background: currentColor;
  transition: width .2s ease;
}

.nav-links>a:hover::after,
.nav-links>a[aria-current="page"]::after {
  width: 100%;
}

.nav-group {
  position: relative;
}

.nav-group::after {
  content: "";
  position: absolute;
  top: 100%;
  left: -.5rem;
  width: calc(100% + 1rem);
  height: .85rem;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: .9rem;
  font-weight: 700;
  cursor: pointer;
}

.nav-dropdown-toggle>span {
  font-size: 1rem;
  line-height: 1;
  transition: transform .2s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle:focus-visible,
.nav-dropdown-toggle[aria-current="page"] {
  color: var(--mustard);
}

.nav-group.is-open .nav-dropdown-toggle>span {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + .75rem);
  left: -1rem;
  z-index: 10;
  display: grid;
  gap: .15rem;
  width: max-content;
  min-width: 240px;
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.nav-dropdown-wide {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 520px;
}

.nav-dropdown a {
  padding: .7rem .8rem;
  border-radius: .6rem;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.35;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible,
.nav-dropdown a[aria-current="page"] {
  background: var(--sage-light);
  color: var(--forest-deep);
}

.nav-dropdown a[aria-current="page"] {
  box-shadow: inset 3px 0 0 var(--mustard);
}

.nav-group.is-open .nav-dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform .35s cubic-bezier(.22, 1, .36, 1), opacity .2s ease, width .3s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  width: 0;
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: min(760px, 100svh);
  display: grid;
  align-items: end;
  color: white;
  isolation: isolate;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: url("assets/images/real-community-support.webp") center / cover no-repeat;
  transform: scale(1.01);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--forest-deep-rgb), .94) 0%, rgba(var(--forest-rgb), .74) 42%, rgba(var(--forest-rgb), .16) 75%), linear-gradient(0deg, rgba(var(--forest-deep-rgb), .7), transparent 45%);
}

.hero-inner {
  padding: 170px 0 90px;
}

.hero-copy {
  max-width: 780px;
}

.hero h1 {
  max-width: 720px;
  margin-bottom: 1.5rem;
  font-size: clamp(2.8rem, 5.2vw, 5rem);
  font-style: normal;
  font-weight: 500;
}

.hero-copy>p {
  max-width: 620px;
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.mission {
  background: var(--cream);
}

.mission h2 {
  margin-bottom: 2rem;
}

#urgent-help {
  scroll-margin-top: 7rem;
}

.team-section {
  background: var(--forest);
  color: white;
  overflow: hidden;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 3rem;
}

.section-heading h2 {
  max-width: 760px;
  margin-bottom: 0;
}

.section-heading-actions {
  display: grid;
  justify-items: start;
  gap: 1rem;
  max-width: 34rem;
}

.section-heading-actions p {
  margin: 0;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.person-card {
  position: relative;
  min-height: 440px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
  overflow: hidden;
  border-radius: var(--radius);
  background: #345c6f;
  isolation: isolate;
  box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  transition: box-shadow .35s ease;
}

.person-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  overflow: hidden;
}

.person-art::before {
  content: "";
  position: absolute;
  width: 75%;
  aspect-ratio: 1;
  left: 12%;
  top: 9%;
  border-radius: 50%;
  background: var(--tone, #e8ad9d);
}

.person-art::after {
  content: attr(data-initials);
  position: absolute;
  left: 50%;
  top: 15%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, .9);
  font-family: var(--serif);
  font-size: 7rem;
  letter-spacing: -.08em;
}

.person-card:nth-child(2) {
  background: #c97f70;
}

.person-card:nth-child(3) {
  background: #b98b2e;
}

.person-card:nth-child(4) {
  background: #58727d;
}

.person-card>img {
  position: absolute;
  z-index: -2;
  inset: 0;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.person-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgba(var(--forest-deep-rgb), .82), transparent 62%);
}

.person-info {
  padding: 1.1rem;
  border-radius: 1rem;
  background: rgba(var(--forest-deep-rgb), .8);
  backdrop-filter: blur(8px);
}

.person-info h3 {
  margin: 0 0 .25rem;
  font-size: 1.35rem;
}

.person-info p {
  margin: 0;
  color: #d8efed;
  font-size: .85rem;
}

.person-info p span {
  float: right;
  transition: color .25s ease;
}

.person-card:hover {
  box-shadow: 0 0 0 3px white;
}

.person-card:hover .person-info p span {
  color: var(--mustard);
}

.person-card:focus-visible {
  outline: 3px solid #ffd967;
  outline-offset: 4px;
}

.pathways {
  background: var(--cream);
}

#support-pathways {
  scroll-margin-top: 5rem;
}

.pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

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

.pathway-grid--groups .pathway-card {
  min-width: 0;
}

.pathway-grid--groups .pathway-card:first-child {
  grid-column: 1 / -1;
  min-height: 420px;
}

.home-checkins {
  background: var(--paper);
}

.checkin-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.checkin-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border-radius: var(--radius);
}

.checkin-card h3 {
  margin: .45rem 0 1rem;
  color: inherit;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}

.checkin-card p,
.checkin-card blockquote {
  color: inherit;
}

.checkin-card blockquote {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 700;
  line-height: 1.55;
}

.checkin-card .btn {
  align-self: flex-start;
  margin-top: auto;
}

.checkin-card.surface-dark p,
.checkin-card.surface-dark blockquote {
  color: #fff;
}

.pathway-card {
  position: relative;
  min-height: 480px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: .55rem;
  color: white;
  isolation: isolate;
}

.pathway-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: filter .2s ease;
}

.pathway-card--graphic {
  background: var(--forest);
}

.pathway-card--graphic::before {
  content: attr(data-mark);
  position: absolute;
  z-index: -2;
  top: 50%;
  left: 50%;
  color: rgba(255, 255, 255, .16);
  font-family: var(--serif);
  font-size: clamp(14rem, 25vw, 24rem);
  line-height: .8;
  transform: translate(-50%, -50%);
}

.pathway-card--adults {
  background: linear-gradient(145deg, var(--clay), #c97f70);
}

.pathway-card--schools {
  background: linear-gradient(145deg, var(--sage), var(--forest));
}

.pathway-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgba(var(--forest-deep-rgb), .52), rgba(var(--forest-deep-rgb), .04) 70%);
}

.pathway-card:hover img {
  filter: brightness(.88);
}

.pathway-content {
  width: calc(100% - 1.5rem);
  margin: .75rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: .45rem;
  background: rgba(var(--forest-deep-rgb), .92);
  box-shadow: 0 12px 30px rgba(var(--forest-deep-rgb), .28);
  backdrop-filter: blur(5px);
}

.pathway-content span {
  color: var(--mustard);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pathway-content h3 {
  margin: .7rem 0 .6rem;
  font-size: clamp(1.65rem, 2.2vw, 2.3rem);
  line-height: 1.2;
}

.pathway-content p {
  margin: 0;
  color: #edf7f6;
  font-size: .9rem;
  line-height: 1.55;
}

.events-section {
  background: var(--paper);
  overflow: hidden;
}

.events-toolbar {
  display: flex;
  gap: .6rem;
}

.carousel-btn {
  min-height: 50px;
  padding: 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 2px solid var(--forest);
  border-radius: 99px;
  background: var(--forest);
  color: white;
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.carousel-btn:hover {
  border-color: var(--mustard);
  background: var(--mustard);
  color: var(--ink);
}

.carousel-btn:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 3px;
}

.carousel-btn:disabled {
  border-color: #aab6b2;
  background: #d7dedb;
  color: #345c6f;
  cursor: not-allowed;
}

.events-viewport {
  overflow: hidden;
}

.events-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(310px, 34%);
  gap: 1.1rem;
  touch-action: pan-y;
  user-select: none;
  will-change: transform;
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.events-track.is-swiping {
  transition: none;
}

/* shared card frame */
.event-card,
.programme-card,
.join-card,
.value-card,
.service-detail,
.course-details-grid > div,
.group-programme {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.event-card {
  min-height: 410px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
}

.event-card-image {
  height: 170px;
  margin: -2rem -2rem 1.95rem;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.event-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.event-card-image--photo img {
  padding: 0;
  object-fit: cover;
}

.event-card:nth-child(2n) {
  background: var(--sage-light);
}

.event-card:nth-child(3n) {
  background: #f0d7c8;
}

.event-card[data-event] {
  cursor: pointer;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.event-card[data-event]:hover {
  border-color: var(--forest);
  box-shadow: inset 0 0 0 1px var(--forest);
}

.event-card[data-event]:focus-visible {
  outline: 3px solid var(--forest);
  outline-offset: -3px;
}

.event-card[data-event]::after {
  content: "Click for more information";
  display: inline-block;
  margin-top: 1rem;
  padding-right: 1.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23345c6f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M14 7l5 5-5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 1rem;
  color: var(--forest-deep);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .02em;
}

.event-date {
  display: inline-flex;
  align-self: flex-start;
  width: auto;
  min-height: 42px;
  padding: .65rem .9rem;
  align-items: center;
  border-radius: 99px;
  background: var(--forest);
  color: white;
  box-shadow: 4px 4px 0 var(--mustard);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.event-date strong {
  font-family: inherit;
  font-size: inherit;
}

.event-card h3 {
  margin: .75rem auto auto 0;
  font-size: 2rem;
}

.event-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .55rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(var(--forest-rgb), .3);
  color: var(--ink);
  font-size: .82rem;
  font-weight: 800;
}

.event-meta span {
  padding: .45rem .7rem;
  border-radius: 99px;
  background: var(--forest);
  color: white;
}

.events-footer {
  margin-top: 2rem;
}

.impact {
  background: var(--ochre);
}

.impact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  align-items: center;
}

.impact h2 {
  margin-bottom: 1.3rem;
}

.impact-image {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 10px 10px 0 rgba(var(--forest-deep-rgb), .18);
}

.impact-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.impact-card {
  padding: 3rem;
  border-radius: var(--radius);
  background: var(--forest-deep);
  color: white;
}

.impact-card strong {
  display: block;
  margin-bottom: .6rem;
  font-family: var(--serif);
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 400;
  line-height: 1;
}

.cta-band {
  background: var(--forest);
  color: white;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 4rem 0;
}

.cta-inner h2 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.6rem);
}

.cta-inner>div>p:last-child {
  max-width: 680px;
  margin: 1rem 0 0;
  color: #d7e2de;
}

.site-footer {
  padding: 5rem 0 2rem;
  background: var(--forest-deep);
  color: #edf7f6;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(220px, .6fr);
  gap: 3rem;
  padding-bottom: 4rem;
}

.footer-sitemap-group .footer-links {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 1.5rem;
}

.footer-brand p {
  max-width: 320px;
  color: #aebfba;
}

.footer-accreditation {
  margin-top: 1.5rem;
}

.footer-accreditation img {
  display: block;
  width: min(100%, 240px);
  height: auto;
  border-radius: .35rem;
}

.footer-title {
  margin-bottom: 1rem;
  color: #9fb3ad;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.footer-links {
  display: grid;
  gap: .65rem;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--gold-accent);
}

.footer-links a[aria-current="page"] {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: var(--mustard);
  text-decoration-thickness: 2px;
  text-underline-offset: .3rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: #b7ccd6;
  font-size: .78rem;
}

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

.footer-social {
  display: flex;
  gap: .7rem;
  margin-top: 1.2rem;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 50%;
  color: white;
  transition: background-color .2s ease, color .2s ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: var(--mustard);
  color: var(--forest-deep);
}

.footer-social svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.8;
}

.footer-social rect,
.footer-social circle:not(.social-dot) {
  fill: none;
}

.footer-social .social-dot {
  stroke: none;
}

/* Interior pages */
.page-hero {
  position: relative;
  min-height: 620px;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--forest);
  color: white;
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background: var(--page-image, url("assets/images/real-community-support.webp")) center 38% / cover no-repeat;
}

.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, rgba(var(--forest-deep-rgb), .95), rgba(var(--forest-deep-rgb), .64) 48%, rgba(var(--forest-deep-rgb), .12));
}

.page-hero-inner {
  padding: 180px 0 80px;
  padding-top: 25px !important;
  /* max-width: 850px; */
}

.page-hero h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(2.6rem, 4.8vw, 4.6rem);
}

.page-hero p {
  max-width: 640px;
  font-size: 1.2rem;
}

.page-hero.youth {
  --page-image: url("assets/images/real-young-people-new.webp");
}

.page-hero.parents {
  --page-image: url("assets/images/real-parents-family.webp");
}

.page-hero.counselling {
  --page-image: url("assets/images/real-adult-counselling.webp");
}

.page-hero.story {
  --page-image: url("assets/images/real-community-support.webp");
}

.page-hero.adults {
  --page-image: url("assets/images/adult-counselling-session.webp");
}

.page-hero.schools {
  --page-image: url("assets/images/real-school-uniform-friends.webp");
}

.page-hero.churches {
  --page-image: url("assets/images/real-church-worship.webp");
}

.page-hero.events {
  --page-image: url("assets/images/events-creative.webp");
}

.page-hero.events .page-hero-inner {
  padding: clamp(150px, 18vw, 180px) 0 clamp(60px, 7vw, 80px);
  padding-top: clamp(150px, 18vw, 180px) !important;
}

.page-hero.resources {
  --page-image: url("assets/images/resources-support.webp");
}

.page-hero.team {
  --page-image: url("assets/images/real-community-support.webp");
}

.page-hero.blog {
  --page-image: url("assets/images/resources-support.webp");
}

.page-hero.privacy {
  --page-image: url("assets/images/counselling-room.webp");
}

.page-hero.contact-hero {
  --page-image: url("assets/images/counselling-room.webp");
}

.page-hero.involved {
  --page-image: url("assets/images/real-community-support.webp");
}

.page-hero.give {
  --page-image: url("assets/images/donation-giving.webp");
}

.page-hero.give::before {
  background-position: 62% center;
}

.page-hero.sitemap-hero {
  --page-image: url("assets/images/real-community-support.webp");
}

.sitemap-section {
  background: var(--paper);
}

.sitemap-list,
.sitemap-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sitemap-list {
  width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sitemap-group {
  padding: clamp(1.5rem, 3vw, 2.25rem) 0;
  border-bottom: 1px solid var(--line);
}

.sitemap-group:last-child {
  border-bottom: 0;
}

.sitemap-group-title {
  display: block;
  margin-bottom: .9rem;
  padding-left: 1rem;
  border-left: 3px solid var(--mustard);
  color: var(--forest-deep);
  font-family: var(--sans);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 800;
}

.sitemap-group > a.sitemap-group-title {
  margin-bottom: 0;
}

.sitemap-group ul {
  display: grid;
  gap: .7rem;
  padding-left: 1rem;
}

.sitemap-group a:not(.sitemap-group-title) {
  color: var(--forest);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .2rem;
}

.sitemap-group a:hover,
.sitemap-group a:focus-visible,
.sitemap-group a[aria-current="page"] {
  color: var(--forest-deep);
  text-decoration-color: var(--mustard);
}

.content-list {
  margin: 0 0 2rem;
  padding-left: 1.25rem;
}

.content-list li {
  margin-bottom: .75rem;
}

.john-booth-section {
  background: var(--paper);
}

.john-booth-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.john-booth-heading h2 {
  max-width: 13ch;
}

.john-booth-photo {
  display: block;
  width: min(100%, 30rem);
  height: clamp(16rem, 26vw, 20rem);
  margin-top: 2rem;
  border-radius: 1.5rem;
  object-fit: cover;
  object-position: center 42%;
}

.john-booth-copy {
  max-width: 54rem;
}

.john-booth-copy > p {
  margin: 0 0 1.35rem;
  line-height: 1.75;
}

.john-booth-copy .big-copy {
  color: var(--forest-deep);
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 700;
  line-height: 1.45;
}

.patron-label {
  margin: 1rem 0 .65rem;
  color: var(--forest-deep);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.patron-section .story-grid {
  grid-template-columns: minmax(18rem, .9fr) minmax(0, 1.1fr);
}

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

.patron-section h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 3.75rem);
}

.prose.church-support-copy {
  max-width: none;
}

.church-support-copy .church-benefits-label {
  margin: clamp(2.5rem, 5vw, 4rem) 0 1.25rem;
}

.church-support-copy .value-grid {
  margin-bottom: 2rem;
}

.church-support-copy .value-card p {
  margin-bottom: 0;
}

.church-partner-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: var(--radius);
  background: var(--sage-light);
}

.church-partner-cta p {
  max-width: 48rem;
  margin: 0;
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
}

.church-partner-cta .btn {
  flex: 0 0 auto;
}

@media (max-width: 680px) {
  .church-partner-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

.patron-levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 2rem 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.patron-levels span {
  padding: 1.25rem;
  background: var(--paper);
}

.patron-levels b {
  display: block;
  margin-bottom: .35rem;
  font-family: var(--serif);
  font-size: 1.15rem;
}

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

.join-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.join-card {
  padding: clamp(1.6rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.join-card:nth-child(2) {
  background: var(--sage-light);
}

.join-card:nth-child(3) {
  background: var(--mustard);
}

.join-number {
  display: inline-flex;
  padding: .35rem .6rem;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-size: .72rem;
  font-weight: 800;
}

.join-card h3 {
  margin: 2.5rem 0 1rem;
}

.join-card p {
  margin-bottom: 0;
  line-height: 1.7;
}

.ethos-note {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: var(--radius);
  background: var(--forest);
  color: white;
}

.ethos-note p {
  max-width: 52rem;
  margin: 0;
}

.page-hero.services-hero {
  --page-image: url("assets/images/real-adult-counselling.webp");
}

.page-hero.support-hero {
  --page-image: url("assets/images/real-community-support.webp");
}

.school-support-grid {
  grid-template-columns: repeat(2, 1fr);
}

.story-grid {
  display: grid;
  grid-template-columns: .8fr 1.6fr;
  gap: clamp(3rem, 8vw, 9rem);
}

.giving-image {
  margin: 2rem 0 0;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  background: var(--cream);
  box-shadow: 10px 10px 0 var(--mustard);
}

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

.story-section {
  background: var(--paper);
}
/* 
.story-heading {
  display: grid;
  grid-template-columns: minmax(180px, .65fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
} */

  .story-heading {
        display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: baseline;
    gap: 10px;
    border-bottom: 0;
  }

.story-heading h2,
.story-heading .eyebrow {
  margin-bottom: 0;
}

.story-editorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.story-lead {
  grid-column: 1 / -1;
  max-width: 60rem;
  margin: 0 0 1.5rem;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -.015em;
}

.heart {
  position: relative;
}

.story-panel {
  position: relative;
  min-height: 100%;
  padding: clamp(1.8rem, 4vw, 3.25rem);
  overflow: hidden;
  border-radius: var(--radius);
}

.story-panel--faith {
  background: var(--forest);
  color: white;
}

.story-panel--care {
  background: var(--mustard);
  color: var(--ink);
}

.about-purpose {
  background: var(--cream);
}

.about-purpose-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
}

.vision-mission-arrow {
  position: absolute;
  z-index: 3;
  top: -.75rem;
  left: 43%;
  width: clamp(7rem, 11vw, 10rem);
  height: auto;
  pointer-events: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 4px 0 rgba(255, 248, 233, .9));
}

.vision-statement,
.mission-statement {
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: var(--radius);
}

.vision-statement {
  position: relative;
  overflow: hidden;
  background: var(--forest-deep);
  color: #fff;
}

.vision-statement::after {
  content: "";
  position: absolute;
  right: -7rem;
  bottom: -8rem;
  width: 18rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--ochre);
  opacity: .9;
}

.vision-statement>* {
  position: relative;
  z-index: 1;
}

.vision-statement h2 {
  margin: 0;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3.15rem);
  font-weight: 500;
  line-height: 1.35;
}

.mission-statement {
  border: 1px solid var(--line);
  background: var(--paper);
}

.mission-statement h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.mission-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: mission-item;
}

.mission-list li {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  gap: .85rem;
  padding: 1rem 0;
  align-items: start;
  border-top: 1px solid var(--line);
  counter-increment: mission-item;
  font-weight: 650;
}

.mission-list li::before {
  content: counter(mission-item, decimal-leading-zero);
  color: var(--forest-deep);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.story-panel h3 {
  max-width: 100%;
  margin: 2.5rem 0 1.5rem;
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  line-height: 1.15;
  overflow-wrap: break-word;
  text-wrap: balance;
  white-space: normal;
}

.story-panel p {
  max-width: 39rem;
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.story-panel p:last-child {
  margin-bottom: 0;
}

.story-number {
  display: inline-flex;
  padding: .35rem .65rem;
  border: 1px solid currentColor;
  border-radius: 99px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.story-closing {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin-top: .25rem;
  padding: clamp(1.8rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: var(--sage-light);
}

.story-closing p {
  max-width: 48rem;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-weight: 400;
  line-height: 1.55;
}

.story-grid .big-copy {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 3.1rem);
  line-height: 1.2;
}

.story-longform .big-copy {
  max-width: 42rem;
  font-size: clamp(1.4rem, 2vw, 2rem);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -.015em;
}

.story-longform > p:not(.big-copy) {
  max-width: 46rem;
  line-height: 1.75;
}

.prose {
  max-width: 720px;
}

.prose p {
  margin-bottom: 1.4rem;
}

.value-grid,
.service-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.value-card,
.service-detail {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.value-card .icon,
.service-detail .icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 3rem;
  border-radius: 50%;
  background: var(--sage-light);
  font-size: 1.25rem;
}

.value-card h3,
.service-detail h3 {
  font-size: 1.45rem;
}

.youth-facts .value-card {
  display: flex;
  flex-direction: column;
}

.youth-facts .quick-view-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  margin-top: auto;
  padding-top: 1rem;
}

.youth-facts .quick-view-link .ui-icon {
  width: 1rem;
  height: 1rem;
}

#youth-counselling,
#living-life {
  scroll-margin-top: 6rem;
  margin-top: 3rem;
}

.service-detail-grid {
  grid-template-columns: repeat(2, 1fr);
}

.service-detail-flex-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-detail-flex-col article {
  margin-top: 2rem !important;
}

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

.service-detail {
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.service-detail p {
  color: var(--forest-deep);
}

.service-detail a {
  margin-top: auto;
  color: var(--surface-accent-text);
  font-weight: 800;
}

.school-service-card h4 {
  margin: 1.25rem 0 .35rem;
  color: var(--forest-deep);
  font-size: 1rem;
}

.school-service-card ul {
  display: grid;
  gap: .55rem;
  margin: .75rem 0 0;
  padding-left: 1.2rem;
}

.school-service-card a {
  align-self: flex-start;
  margin-top: .5rem;
}

.school-service-card--wide {
  grid-column: 1 / -1;
  min-height: 0;
}

.school-service-columns,
.school-benefit-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.school-service-note {
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-weight: 700;
}

.school-benefit-list {
  margin-top: 1rem !important;
  padding: 0 !important;
  list-style: none;
}

.school-benefit-list li {
  padding: 1rem;
  border-radius: .8rem;
  background: var(--sage-light);
  color: var(--forest-deep);
  font-weight: 700;
}

.school-testimonial-section {
  background: var(--cream);
}

.school-testimonial {
  position: relative;
  margin: 0;
  padding: clamp(2.5rem, 7vw, 6rem);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--forest-deep);
  color: #fff;
}

.school-testimonial blockquote {
  position: relative;
  z-index: 1;
  max-width: 55rem;
  margin: 1.5rem 0;
  padding-left: clamp(3.5rem, 8vw, 7rem);
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3vw, 2.35rem);
  line-height: 1.5;
}

.school-testimonial blockquote::before {
  content: "“";
  position: absolute;
  top: -.3em;
  left: 0;
  color: var(--clay);
  font-family: Georgia, serif;
  font-size: clamp(6rem, 13vw, 11rem);
  font-weight: 700;
  line-height: 1;
}

.school-testimonial figcaption {
  position: relative;
  z-index: 1;
  padding-left: clamp(3.5rem, 8vw, 7rem);
  color: var(--mustard);
  font-family: var(--sans);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.quick-view-link {
  align-self: flex-start;
  margin-top: auto;
  padding: .35rem 0;
  border: 0;
  background: transparent;
  color: var(--surface-accent-text);
  font-weight: 800;
  cursor: pointer;
  text-align: left;
}

.quick-view-link:hover {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: .2rem;
}

.support-concerns {
  background: var(--forest);
  color: white;
}

.concern-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0 2rem;
  /* border-top: 1px solid rgba(255, 255, 255, .22); */
}

.concern-list span {
  position: relative;
  padding: 1.15rem 1rem 1.15rem 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .18);
  color: #edf7f6;
  display: grid;
  place-content: center;
}


.programme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.programme-card {
  min-height: 390px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.programme-card:nth-child(2) {
  background: var(--sage-light);
}

.programme-card:nth-child(3) {
  background: #f0d7c8;
}

.programme-card-mustard {
  background: var(--mustard);
}

.programme-card-haven .programme-for,
.programme-card-haven .quick-view-link,
.programme-card-mustard .programme-for,
.programme-card-mustard .quick-view-link {
  color: var(--ink);
}

.programme-for {
  color: var(--surface-accent-text);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.programme-card h3 {
  margin: auto 0 1rem;
  font-size: 2rem;
}

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

.programme-card>a:not(.btn),
.programme-card>.quick-view-link {
  margin-top: 1rem;
  color: var(--surface-accent-text);
  font-weight: 800;
}

.programme-card-cta {
  background: var(--forest) !important;
  color: white;
}

.programme-card-cta p {
  color: #d8efed;
}

.programme-card-cta .programme-for {
  color: var(--gold-accent);
}

.support-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.support-facts span {
  color: #c9d8d3;
}

.support-facts b {
  display: block;
  margin-bottom: .35rem;
  color: white;
}

.quote-block {
  padding: clamp(3rem, 7vw, 7rem);
  border-radius: var(--radius);
  background: var(--forest);
  color: white;
}

.quote-block blockquote {
  max-width: 880px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 4.4rem);
  line-height: 1.18;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1rem;
  max-width: 860px;
  margin-left: auto;
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-item .year {
  color: var(--surface-accent-text);
  font-weight: 800;
}

.timeline-item h3 {
  font-size: 1.7rem;
}

.team-intro {
  max-width: 800px;
  margin-bottom: 4rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(210px, 280px) 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream);
  scroll-margin-top: 130px;
}

.profile-card:nth-child(even) {
  background: var(--sage-light);
}

.profile-image {
  min-height: 300px;
  overflow: hidden;
  background: #d8efed;
}

.profile-image img {
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

.profile-copy {
  align-self: center;
  padding: clamp(1.6rem, 3vw, 2.75rem);
}

.profile-role {
  margin-bottom: .7rem;
  color: var(--surface-accent-text);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.profile-copy h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2rem, 3vw, 3rem);
}

.profile-copy p:last-child {
  margin-bottom: 0;
}

.page-events {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.events-timeline {
  display: grid;
  max-width: 980px;
  gap: clamp(2rem, 5vw, 3.5rem);
}

.events-timeline-group {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.events-timeline-group--upcoming {
  border-top: 6px solid var(--forest);
  box-shadow: 10px 10px 0 var(--sage-light);
}

.events-timeline-group--recurring {
  border-top: 6px solid var(--mustard);
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--mustard);
}

.events-timeline-group > .events-timeline-month:first-child {
  margin-top: 0;
}

.events-timeline-group--recurring .events-timeline-item:hover {
  background: var(--sage-light);
}

.events-timeline-month {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.events-timeline-month::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.events-timeline-item {
  display: grid;
  grid-template-columns: minmax(110px, 145px) minmax(0, 1fr) minmax(150px, 15%);
  gap: 2rem;
  padding: 1.75rem 1rem;
  margin: 0 -1rem;
  border-bottom: 1px solid var(--line);
  align-items: start;
  cursor: pointer;
  border-radius: .5rem;
  transition: background .15s ease;
}

.events-timeline-item:first-of-type {
  border-top: 1px solid var(--line);
  margin-top: 1rem;
}

.events-timeline-item:hover {
  background: var(--cream);
  border-color: transparent;
}

.events-timeline-day {
  padding-top: .15rem;
}

.events-timeline-dayname {
  display: block;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.events-timeline-daynum {
  display: block;
  color: var(--forest);
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.events-timeline-time {
  margin: 0 0 .35rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}

.events-timeline-body h3 {
  margin-bottom: .25rem;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  color: var(--forest);
  transition: color .15s ease;
}

.events-timeline-item:hover .events-timeline-body h3 {
  color: var(--forest-deep);
}

.events-timeline-body::after {
  content: "View details";
  display: inline-block;
  margin-top: .75rem;
  padding: .35rem 2rem .35rem .75rem;
  border-radius: 99px;
  background: var(--forest);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M14 7l5 5-5 5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .65rem center;
  background-size: 1rem;
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
}

.events-timeline-venue {
  margin: 0 0 .4rem;
  color: var(--ink);
  font-size: .82rem;
  font-weight: 800;
}

.events-timeline-body > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: .9rem;
}

.events-timeline-thumb {
  width: 100%;
  min-height: 130px;
  align-self: stretch;
  overflow: hidden;
  border-radius: .5rem;
  background: var(--sage-light);
}

.events-timeline-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.events-timeline-thumb--contain img {
  padding: 1rem;
  object-fit: contain;
}

.events-timeline-thumb--portrait {
  height: 180px;
  background: var(--paper);
}

.events-timeline-thumb--poster img {
  object-position: center 18%;
}

@media (max-width: 680px) {
  .events-timeline {
    gap: 1.75rem;
  }

  .events-timeline-group {
    padding: 1rem;
  }

  .events-timeline-group--upcoming {
    box-shadow: 6px 6px 0 var(--sage-light);
  }

  .events-timeline-group--recurring {
    box-shadow: 6px 6px 0 var(--mustard);
  }

  .events-timeline-item {
    grid-template-columns: 1fr;
    padding: 1.25rem .75rem;
    margin: 0 -.75rem;
  }

  .events-timeline-day {
    display: none;
  }

  .events-timeline-thumb {
    order: -1;
    width: 100%;
    height: 160px;
    min-height: 0;
    border-radius: .5rem;
  }
}

.partner-events-section {
  background: var(--cream);
}

.partner-events-source {
  margin: 1.5rem 0 0;
  text-align: right;
}

.partner-events-source a {
  color: var(--forest-deep);
  font-family: var(--sans);
  font-weight: 700;
}

.featured-event-section {
  background: var(--cream);
}

.fundraiser-ball-section {
  background: var(--sage-light);
}

.featured-event {
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(0, 1.1fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--forest-deep);
  color: #fff;
  box-shadow: 10px 10px 0 var(--mustard);
}

.featured-event-image {
  min-height: 560px;
  overflow: hidden;
  background: var(--forest);
}

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

.featured-event-copy {
  padding: clamp(2rem, 5vw, 4.5rem);
  align-self: center;
}

.featured-event-copy h2 {
  max-width: 11ch;
  margin-bottom: 1.25rem;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4.8rem);
}

.featured-event-intro {
  max-width: 42rem;
  font-size: 1.08rem;
  line-height: 1.7;
}

.featured-event-copy ul {
  display: grid;
  gap: .5rem;
  margin: 1.5rem 0;
  padding-left: 1.25rem;
}

.featured-event-location {
  margin-bottom: 2rem;
}

.featured-event-location strong {
  display: block;
  color: var(--mustard);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.featured-event--ball {
  grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
  box-shadow: 14px 14px 0 var(--mustard);
}

.featured-event--ball .featured-event-image {
  min-height: 0;
  margin: 2rem 0 2rem 2rem;
  padding: .7rem;
  align-self: center;
  aspect-ratio: 1280 / 1768;
  border-radius: calc(var(--radius) - .35rem);
  background: var(--forest-deep);
  box-shadow: -14px 14px 0 var(--mustard);
}

.featured-event--ball .featured-event-image img {
  object-fit: contain;
  border-radius: calc(var(--radius) - .7rem);
}

.featured-event--ball .featured-event-copy h2 {
  max-width: 13ch;
}

.fundraiser-story {
  margin: 1.5rem 0;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--mustard);
  background: rgba(255, 255, 255, .08);
}

.fundraiser-story h3 {
  margin-bottom: .55rem;
  color: var(--mustard);
  font-size: 1.15rem;
}

.fundraiser-story p {
  margin: 0;
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, .75);
  background: transparent;
  color: #fff;
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible {
  border-color: #fff;
  background: #fff;
  color: var(--forest-deep);
}

.page-events .event-card {
  min-height: 360px;
}

.contact-grid {
  /* display: grid;
  grid-template-columns: .75fr 1.25fr; */
  gap: clamp(3rem, 8vw, 8rem);
}

.referral-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.referral-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.referral-option p {
  margin: .75rem 0 1.5rem;
}

.referral-option .btn {
  margin-top: auto;
}

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

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

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

.hub-card-wrap {
  display: grid;
  align-content: start;
  gap: .8rem;
}

.hub-card {
  position: relative;
  width: 100%;
  min-height: 560px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: var(--forest);
  color: white;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}

.hub-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(0deg, rgba(var(--forest-deep-rgb), .94), rgba(var(--forest-deep-rgb), .06) 72%);
}

.hub-card img {
  position: absolute;
  z-index: -2;
  inset: 0;
  height: 100%;
  object-fit: cover;
  transition: transform .65s cubic-bezier(.2, .8, .2, 1);
}

.hub-card-online img {
  object-position: 52% center;
}

.hub-card:hover img,
.hub-card:focus-visible img {
  transform: scale(1.045);
}

.hub-card:focus-visible {
  outline: 4px solid var(--ochre);
  outline-offset: 4px;
}

.hub-card-overlay {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: .7rem;
  padding: 2.2rem;
}

.hub-card-overlay small {
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hub-card-overlay strong {
  max-width: 500px;
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4vw, 4rem);
  font-weight: 500;
  line-height: 1.03;
  letter-spacing: -.035em;
}

.hub-card-overlay>span {
  font-size: .9rem;
  font-weight: 800;
}

.hub-events-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1.1rem;
  border: 2px solid var(--forest);
  border-radius: 99px;
  color: var(--forest);
  font-size: .86rem;
  font-weight: 800;
}

.hub-events-link:hover {
  background: var(--forest);
  color: white;
}

.hub-modal,
.quick-modal {
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 30px 100px rgba(0, 0, 0, .35);
}

.hub-modal {
  width: min(980px, calc(100% - 30px));
  max-height: min(820px, calc(100dvh - 30px));
  overflow: hidden;
}

.hub-modal[open] {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  grid-template-rows: minmax(0, 1fr);
}

.hub-modal::backdrop,
.quick-modal::backdrop {
  background: rgba(var(--forest-deep-rgb), .78);
  backdrop-filter: blur(5px);
}

.hub-modal-image {
  min-height: 0;
  overflow: hidden;
}

.hub-modal-image img {
  height: 100%;
  object-fit: cover;
}

.hub-modal-content {
  position: relative;
  min-height: 0;
  max-height: min(820px, calc(100dvh - 30px));
  padding: clamp(2rem, 5vw, 4.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.hub-modal-content h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hub-modal-intro {
  font-size: 1.08rem;
  color: var(--muted);
}

.hub-modal-content ul {
  display: grid;
  gap: .65rem;
  padding-left: 1.25rem;
  margin: 1.5rem 0;
}

.hub-modal-content address {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-style: normal;
}

.hub-modal-content address a {
  color: var(--surface-accent-text);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .18rem;
}

.hub-modal-content address a:hover {
  color: var(--forest);
}

.hub-referral {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.hub-referral h3 {
  margin-bottom: .6rem;
}

.hub-referral p {
  margin-bottom: 0;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  color: var(--forest);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  background: var(--forest);
  color: white;
}

.hub-modal-actions,
.quick-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
  margin-top: 2rem;
}

.quick-modal {
  width: min(720px, calc(100% - 30px));
  max-height: calc(100vh - 30px);
  overflow: auto;
}

.quick-modal[open] {
  display: block;
}

.quick-modal-content {
  position: relative;
  padding: clamp(2rem, 6vw, 4.5rem);
}

.quick-modal-content h2 {
  margin-bottom: 1rem;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}

.quick-modal-intro {
  color: var(--muted);
  font-size: 1.08rem;
}

.quick-modal-details {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.quick-modal-details ul {
  display: grid;
  gap: .65rem;
  padding-left: 1.25rem;
}

.cta-actions,
.impact-actions,
.urgent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
}

.blog-section,
.resources-section {
  background: var(--cream);
}

.blog-embed-shell {
  overflow: hidden;
  border: 2px solid var(--forest);
  border-radius: var(--radius);
  background: white;
  box-shadow: 10px 10px 0 var(--mustard);
}

.blog-embed-frame {
  display: block;
  width: 100%;
  min-height: 1100px;
  border: 0;
  background: white;
}

.embed-fallback {
  margin: 1.5rem 0 0;
  color: var(--muted);
  text-align: center;
}

.embed-fallback a {
  color: var(--forest-deep);
  font-weight: 800;
}

.urgent-resource {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  margin-bottom: clamp(4rem, 8vw, 7rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  border-radius: var(--radius);
  background: var(--mustard);
  color: var(--ink);
}

.urgent-resource h2,
.urgent-resource p {
  margin-bottom: 0;
}

.urgent-resource a:not(.btn) {
  color: var(--forest-deep);
  font-weight: 800;
}

.urgent-actions {
  margin-top: 1.5rem;
}

.resource-heading {
  align-items: end;
}

.resource-tools {
  display: grid;
  gap: 1rem;
  margin: -1rem 0 2.5rem;
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.resource-search {
  display: grid;
  gap: .45rem;
  font-size: .82rem;
  font-weight: 800;
}

.resource-search input {
  width: 100%;
  min-height: 54px;
  padding: .8rem 1rem;
  border: 2px solid var(--forest);
  border-radius: .8rem;
  background: white;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.resource-search input:focus-visible {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
}

.resource-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.resource-tag {
  padding: .55rem .9rem;
  border: 1px solid var(--forest);
  border-radius: 99px;
  background: transparent;
  color: var(--forest-deep);
  font: inherit;
  font-size: .82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.resource-tag:hover,
.resource-tag.is-active {
  background: var(--forest);
  color: white;
}

.resource-results {
  margin: 0;
  color: var(--muted);
  font-size: .82rem;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1.25rem;
}

.resource-card {
  display: flex;
  min-height: 230px;
  padding: 1.6rem;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  border: 2px solid var(--forest);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--sage);
  transition: background-color .2s ease, color .2s ease;
}

.resource-card:hover,
.resource-card:focus-visible {
  border-color: var(--forest-deep);
  background: var(--forest-deep);
  color: white;
}

.resource-card:hover .resource-count,
.resource-card:hover .resource-open,
.resource-card:focus-visible .resource-count,
.resource-card:focus-visible .resource-open {
  color: white;
}

.resource-count {
  color: var(--muted);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.resource-card strong {
  display: block;
  margin: 1.3rem 0;
  font-family: var(--serif);
  font-size: clamp(1.65rem, 3vw, 2.0rem);
  font-weight: 500;
  line-height: 1.1;
}

.resource-open {
  font-weight: 800;
}

.resource-modal {
  width: min(820px, calc(100% - 30px));
}

.resource-modal .modal-close {
  position: sticky;
  z-index: 3;
  top: 1rem;
  float: right;
  margin: 0 0 -42px 1rem;
}

.resource-modal-content h2 {
  padding-right: 2.5rem;
}

.resource-modal-intro {
  color: var(--muted);
}

.resource-modal-list {
  display: grid;
  gap: 0;
  margin: 2rem 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.resource-modal-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem 2rem;
  align-items: center;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.resource-modal-list h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
}

.resource-service-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .45rem 1rem;
}

.resource-service-actions a {
  color: var(--forest-deep);
  font-weight: 800;
}

.resource-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem;
  border: 1px dashed var(--forest);
  border-radius: var(--radius);
  text-align: center;
}

.event-modal-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .8rem;
  margin: 1.5rem 0 0;
}

.event-modal-poster {
  display: grid;
  place-items: center;
  margin: 1.75rem 0 0;
  padding: 1rem;
  border-radius: var(--radius);
  background: var(--cream);
}

.event-modal-poster[hidden] {
  display: none;
}

.event-modal-poster img {
  width: auto;
  max-width: 100%;
  max-height: 72vh;
  border-radius: .75rem;
  object-fit: contain;
}

.event-modal--with-poster {
  width: min(1100px, calc(100% - 30px));
  max-height: calc(100dvh - 30px);
  overflow: hidden;
}

.event-modal--with-poster .quick-modal-content {
  display: grid;
  grid-template-columns: minmax(300px, 1.1fr) minmax(0, .9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  max-height: calc(100dvh - 30px);
  padding: clamp(1.25rem, 3vw, 2.25rem);
}

.event-modal--with-poster .event-modal-copy h2 {
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.12;
}

.event-modal--with-poster .event-modal-poster {
  align-self: center;
  margin: 0;
  padding: .75rem;
}

.event-modal--with-poster .event-modal-poster img {
  max-height: calc(100dvh - 84px);
}

.event-modal--with-poster .event-modal-copy {
  min-height: 0;
  padding-right: .4rem;
  overflow-y: auto;
}

.event-modal-facts div {
  padding: 1rem;
  border-radius: .8rem;
  background: var(--cream);
}

.event-modal-facts dt {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.event-modal-facts dd {
  margin: .2rem 0 0;
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
  .event-modal--with-poster {
    width: min(760px, calc(100% - 30px));
    overflow: auto;
  }

  .event-modal--with-poster .quick-modal-content {
    display: flex;
    flex-direction: column;
    max-height: none;
  }

  .event-modal--with-poster .event-modal-copy {
    order: 1;
    padding-right: 0;
    overflow: visible;
  }

  .event-modal--with-poster .event-modal-poster {
    order: 2;
    margin: 1.5rem 0 0;
  }

  .event-modal--with-poster .event-modal-poster img {
    max-height: none;
  }
}

.announcement-panel {
  position: fixed;
  z-index: 90;
  right: clamp(.75rem, 2vw, 1.5rem);
  bottom: clamp(.75rem, 2vw, 1.5rem);
  width: min(560px, calc(100% - 30px));
  max-height: calc(100dvh - 30px);
  overflow: auto;
  border: 1px solid rgba(var(--forest-rgb), .18);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 70px rgba(var(--forest-deep-rgb), .3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(1rem);
  transition: opacity .25s ease, transform .25s ease;
}

.announcement-panel[hidden] {
  display: none;
}

.announcement-panel.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.announcement-panel-image {
  height: 160px;
  overflow: hidden;
}

.announcement-panel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.announcement-panel-content {
  position: relative;
  padding: 2rem;
}

.announcement-panel h2 {
  max-width: 580px;
  padding-right: 2.5rem;
  font-size: clamp(1.8rem, 3.5vw, 2.65rem);
  line-height: 1.15;
}

.announcement-panel-intro {
  font-size: 1rem;
}

.has-cookie-banner .announcement-panel {
  display: none;
}

.contact-details {
  display: grid;
  gap: 0;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}

.contact-detail {
  display: block;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--forest);
}

.contact-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.contact-detail b {
  display: block;
  margin-bottom: .2rem;
  font-size: .8rem;
}

.contact-detail>span {
  display: block;
  max-width: 34rem;
}

.urgent-help-banner {
  padding: 1.35rem 0;
  background: var(--mustard);
  color: var(--forest-deep);
}

.urgent-help-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: center;
}

.urgent-help-label {
  padding: .25rem 0 0;
  color: var(--forest-deep);
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.urgent-help-copy h2 {
  margin: 0 0 .2rem;
  color: var(--forest-deep);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.urgent-help-copy p {
  max-width: 52rem;
  margin: 0;
  font-weight: 700;
  line-height: 1.55;
}

.contact-detail a {
  display: inline-block;
  max-width: 100%;
  color: var(--surface-accent-text);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-detail a:hover {
  color: var(--forest);
  text-decoration: underline;
  text-underline-offset: .2rem;
}

.contact-detail small {
  display: block;
  margin-top: .25rem;
  color: var(--muted);
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-self: start;
  align-content: start;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--cream);
}

.contact-form.general-enq {
  margin-top: 1.2rem;
}

.contact-form .btn {
  height: fit-content;
  width: auto;
  justify-self: start;
}

.field {
  display: grid;
  gap: .5rem;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  font-size: .82rem;
  font-weight: 800;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: white;
  color: var(--ink);
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: .8rem;
}

.form-note a {
  color: var(--surface-accent-text);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .15rem;
}

.legal-content {
  max-width: 860px;
  margin-inline: auto;
}

.legal-intro {
  margin-bottom: 3.5rem;
  font-size: 1.18rem;
  color: var(--muted);
}

.legal-section {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.legal-section h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.legal-section ul {
  display: grid;
  gap: .55rem;
  padding-left: 1.35rem;
}

.legal-content a:not(.btn) {
  color: var(--surface-accent-text);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .16rem;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border-radius: .8rem;
  background: var(--sage-light);
  font-size: .86rem;
}

.form-success {
  display: none;
  grid-column: 1 / -1;
  padding: 1rem;
  border-radius: .7rem;
  background: #d8efed;
  font-weight: 700;
}

.form-success.show {
  display: block;
}

.cookie-banner {
  position: fixed;
  z-index: 200;
  right: 1.25rem;
  bottom: 1.25rem;
  left: 1.25rem;
  width: min(1040px, calc(100% - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  padding: 1.15rem 1.25rem;
  border: 1px solid rgba(var(--forest-rgb), .15);
  border-radius: 1rem;
  background: rgba(255, 253, 247, .97);
  color: var(--ink);
  box-shadow: 0 20px 60px rgba(var(--forest-deep-rgb), .24);
  backdrop-filter: blur(12px);
  animation: cookie-in .45s cubic-bezier(.2, .8, .2, 1) both;
}

.cookie-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--sage-light);
  color: var(--forest);
  font-size: 1.25rem;
}

.cookie-copy {
  margin: 0;
  font-size: .84rem;
  line-height: 1.55;
}

.cookie-copy a {
  color: var(--surface-accent-text);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: .18rem;
}

.cookie-accept {
  min-width: 90px;
  border: 0;
  border-radius: 99px;
  padding: .8rem 1.15rem;
  background: var(--forest);
  color: white;
  font-weight: 800;
  cursor: pointer;
}

.cookie-accept:hover {
  background: var(--clay);
  color: var(--forest-deep);
}

.cookie-banner.is-leaving {
  animation: cookie-out .25s ease both;
}

@keyframes cookie-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
}

@keyframes cookie-out {
  to {
    opacity: 0;
    transform: translateY(18px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1200px) {
  .story-editorial {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .about-purpose-grid {
    grid-template-columns: 1fr;
  }

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

  .referral-options {
    grid-template-columns: 1fr;
  }

  .john-booth-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
  }

  .patron-section .story-grid {
    grid-template-columns: 1fr;
  }

  .vision-mission-arrow {
    display: none;
  }

  .urgent-help-inner {
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .urgent-help-label,
  .urgent-help-inner .btn {
    justify-self: start;
  }

  .site-header {
    margin-bottom: -104px;
  }

  .site-header.is-scrolled {
    margin-bottom: -70px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-header.is-solid {
    margin-bottom: 0;
  }

  .nav-shell {
    min-height: 104px;
  }

  .brand-logo-full {
    width: 145px;
    min-width: 145px;
    max-width: 145px;
    max-height: 88px;
  }

  .site-header .brand {
    min-width: 145px;
  }

  .site-header.is-scrolled .brand-logo-full,
  .site-header.is-solid .brand-logo-full {
    width: 92px;
    min-width: 92px;
    max-width: 92px;
    max-height: 54px;
  }

  .site-header.is-scrolled .brand,
  .site-header.is-solid .brand {
    min-width: 92px;
  }

  .site-header.is-scrolled .nav-shell {
    min-height: 70px;
  }

  .site-header .brand-logo {
    width: 48px !important;
    max-height: 56px;
  }

  .site-header.is-scrolled .brand-logo {
    width: 42px !important;
  }

  .brand-actions {
    gap: .55rem;
  }

  .brand-copy {
    max-width: 190px;
    font-size: .68rem;
  }

  .donate-button {
    padding: .62rem .8rem;
    font-size: .74rem;
  }

  .menu-toggle {
    display: block;
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    padding: 7px 9px;
    border-radius: 50%;
    background: rgba(var(--forest-deep-rgb), .8);
    transition: transform .3s ease, background-color .3s ease;
  }

  .menu-toggle:hover {
    background: rgba(var(--forest-rgb), .95);
  }

  .menu-toggle[aria-expanded="true"] {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, .12);
  }

  .menu-toggle span {
    width: 23px;
  }

  .nav-links {
    position: fixed;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 7rem 2rem 3rem;
    flex-direction: column;
    justify-content: flex-start;
    background: var(--forest-deep);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-24px) scale(1.02);
    transition: opacity .35s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
    margin-top: -5px;
  }

  .nav-links.open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-links>a,
  .nav-links>.nav-group {
    width: min(100%, 520px);
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .3s ease, transform .4s cubic-bezier(.22, 1, .36, 1);
  }

  .nav-links.open>a,
  .nav-links.open>.nav-group {
    opacity: 1;
    transform: none;
  }

  .nav-links.open>a:nth-child(1) {
    transition-delay: .08s;
  }

  .nav-links.open>a:nth-child(2) {
    transition-delay: .13s;
  }

  .nav-links.open>a:nth-child(3) {
    transition-delay: .18s;
  }

  .nav-links.open>a:nth-child(4) {
    transition-delay: .23s;
  }

  .nav-links.open>a:nth-child(5) {
    transition-delay: .28s;
  }

  .nav-links.open>a:nth-child(6) {
    transition-delay: .33s;
  }

  .nav-links>a:not(.btn) {
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 500;
  }

  .nav-dropdown-toggle {
    justify-content: space-between;
    width: 100%;
    padding: .35rem 0;
    color: white;
    font-family: var(--serif);
    font-size: 2rem;
    font-weight: 500;
    text-align: left;
  }

  .nav-group::after {
    display: none;
  }

  .nav-dropdown-toggle:hover,
  .nav-dropdown-toggle:focus-visible,
  .nav-dropdown-toggle[aria-current="page"] {
    color: var(--mustard);
  }

  .nav-dropdown {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    min-width: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: white;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    transform: none;
    transition: max-height .35s ease, padding .35s ease, margin .35s ease;
  }

  .nav-group.is-open .nav-dropdown {
    max-height: 700px;
    margin-bottom: .45rem;
    padding: .55rem 0 .25rem 1rem;
    pointer-events: auto;
  }

  .nav-dropdown a {
    padding: .55rem .7rem;
    color: #edf7f6;
    font-size: .9rem;
  }

  .nav-dropdown a:hover,
  .nav-dropdown a:focus-visible {
    background: rgba(255, 255, 255, .1);
    color: white;
  }

  .hero {
    min-height: min(720px, 100svh);
  }

  .hero::before {
    background-position: 62% center;
  }

  .story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .pathway-grid {
    grid-template-columns: 1fr;
  }

  .checkin-grid {
    grid-template-columns: 1fr;
  }

  .checkin-card {
    min-height: 0;
  }

  .pathway-grid--groups .pathway-card {
    grid-column: auto;
  }

  .pathway-card {
    min-height: 460px;
  }

  .events-track {
    grid-auto-columns: minmax(300px, 58%);
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .urgent-resource {
    grid-template-columns: 1fr;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }

  .value-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .profile-card {
    grid-template-columns: minmax(190px, 230px) 1fr;
  }

}

@media (max-width: 560px) {
  .site-header .brand-copy {
    display: none;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 28px, 1160px);
  }

  .section {
    padding: 4.5rem 0;
  }

  .hero {
    min-height: min(680px, 100svh);
  }

  .hero-inner {
    padding: 140px 0 50px;

  }

  .hero h1 {
    font-size: clamp(2.6rem, 10vw, 3.8rem);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .person-card {
    min-height: 360px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .page-events .event-card {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    row-gap: .8rem;
  }

  .page-events .event-card-image,
  .page-events .event-date,
  .page-events .event-card h3,
  .page-events .event-card > p,
  .page-events .event-meta {
    grid-column: 1;
    grid-row: auto;
  }

  .page-events .event-card-image {
    width: 100%;
    height: 200px;
  }

  .patron-levels {
    grid-template-columns: 1fr;
  }

  .pathway-card {
    min-height: 420px;
  }

  .events-track {
    grid-auto-columns: 88%;
  }

  .cta-inner {
    align-items: start;
    flex-direction: column;
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }

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

  .footer-sitemap-group:last-child {
    grid-column: 1 / -1;
  }

  .footer-sitemap-group:last-child .footer-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-bottom {
    flex-direction: column;
    gap: .5rem;
  }

  .value-grid,
  .service-detail-grid,
  .service-detail-grid.locations-grid,
  .page-events {
    grid-template-columns: 1fr;
  }

  .programme-grid,
  .concern-list,
  .support-facts {
    grid-template-columns: 1fr;
  }

  .profile-card {
    grid-template-columns: 1fr;
  }

  .profile-image {
    min-height: 0;
    height: 300px;
  }

  .page-hero {
    min-height: 570px;
  }

  .page-hero-inner {
    padding: 140px 0 60px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: .5rem;
  }

  .story-heading,
  .story-editorial,
  .story-closing {
    grid-template-columns: 1fr;
  }



  .join-grid,
  .ethos-note {
    grid-template-columns: 1fr;
  }

  .ethos-note .btn {
    justify-self: start;
  }

  .story-lead,
  .story-closing {
    grid-column: auto;
  }

  .school-service-columns,
  .school-benefit-list {
    grid-template-columns: 1fr;
  }

  .school-testimonial blockquote,
  .school-testimonial figcaption {
    padding-left: 0;
  }

  .school-testimonial blockquote {
    padding-top: 3.5rem;
  }

  .heart {
    padding-right: 0;
  }

  .heart::after {
    display: none;
  }

  .story-closing .btn {
    justify-self: start;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 1.2rem;
  }

  .hub-grid {
    grid-template-columns: 1fr;
  }

  .hub-card {
    min-height: 430px;
  }

  .hub-modal[open] {
    display: flex;
    flex-direction: column;
  }

  .hub-modal-image {
    flex: 0 0 160px;
    height: 160px;
    min-height: 0;
  }

  .hub-modal-content {
    flex: 1 1 auto;
    max-height: none;
    padding: 1.5rem 1.15rem;
  }

  .hub-modal-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .event-modal-facts {
    grid-template-columns: 1fr;
  }

  .quick-modal,
  .hub-modal {
    width: calc(100% - 24px);
    max-height: calc(100dvh - 24px);
    border-radius: 1rem;
  }

  .quick-modal-content {
    padding: 1.5rem 1.15rem;
  }

  .event-modal--with-poster {
    overflow: auto;
  }

  .event-modal--with-poster .quick-modal-content {
    display: flex;
    flex-direction: column;
    max-height: none;
  }

  .event-modal--with-poster .event-modal-copy {
    order: 1;
    padding-right: 0;
    overflow: visible;
  }

  .event-modal--with-poster .event-modal-poster {
    order: 2;
    margin: 1.5rem 0 0;
  }

  .event-modal--with-poster .event-modal-poster img {
    max-height: none;
  }

  .quick-modal-content h2,
  .hub-modal-content h2 {
    padding-right: 2.5rem;
    font-size: clamp(1.65rem, 7.5vw, 2.15rem);
    line-height: 1.15;
  }

  .event-modal--with-poster .event-modal-copy h2 {
    font-size: clamp(1.65rem, 7.5vw, 2.15rem);
  }

  .quick-modal-intro,
  .hub-modal-intro {
    font-size: .95rem;
  }

  .quick-modal-details {
    margin-top: 1rem;
    padding-top: 1rem;
  }

  .quick-modal-actions {
    align-items: stretch;
    flex-direction: column;
    margin-top: 1.25rem;
  }

  .quick-modal-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .announcement-panel-image {
    height: 130px;
  }

  .announcement-panel-content {
    padding: 1.35rem 1.15rem 1.5rem;
  }

  .modal-close {
    top: .7rem;
    right: .7rem;
    width: 42px;
    height: 42px;
  }

  .resource-modal-list li {
    grid-template-columns: 1fr;
  }

  .resource-service-actions {
    justify-content: flex-start;
  }

  .blog-embed-frame {
    min-height: 850px;
  }

  .site-header .brand-logo {
    width: 48px !important;
  }

  .site-header.is-scrolled .brand-logo {
    width: 42px !important;
  }

  .donate-button {
    padding: .55rem .7rem;
  }

  .cookie-banner {
    right: .75rem;
    bottom: .75rem;
    left: .75rem;
    width: calc(100% - 1.5rem);
    grid-template-columns: 1fr;
    gap: .8rem;
  }

  .cookie-icon {
    display: none;
  }

  .cookie-copy {
    min-width: 0;
    font-size: .78rem;
  }

  .cookie-accept {
    width: 100%;
  }
}

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

  .footer-brand,
  .footer-sitemap-group:last-child {
    grid-column: auto;
  }

  .footer-sitemap-group:last-child .footer-links {
    grid-template-columns: 1fr;
  }
}

.course-details-grid ul,
.youth-course .prose > ul {
  display: grid;
  gap: .55rem;
  margin: 1rem 0 0;
  padding-left: 1.25rem;
}

.page-youth .section {
  padding: clamp(3.75rem, 6vw, 6rem) 0;
}

.youth-how-help .story-grid {
  align-items: start;
}

.youth-age-panel {
  display: grid;
  grid-template-columns: minmax(220px, .8fr) minmax(0, 1.6fr);
  gap: clamp(2rem, 7vw, 7rem);
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid rgba(255, 255, 255, .28);
}

.youth-age-panel h3 {
  margin: .5rem 0 0;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.youth-age-panel p {
  max-width: 48rem;
  color: #edf7f6;
}

.youth-age-panel .big-copy {
  margin-bottom: .75rem;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.4vw, 2.2rem);
  line-height: 1.25;
}

.youth-locations {
  background: var(--paper);
}

.youth-location-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.youth-location-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.youth-location-card:first-child {
  background: var(--sage-light);
}

.youth-location-card:nth-child(2) {
  background: var(--cream);
}

.youth-location-card .eyebrow,
.youth-location-card h3,
.youth-location-card p {
  margin: 0;
}

.youth-location-card h3 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.youth-location-card .btn,
.youth-location-card > a:not(.btn) {
  align-self: flex-start;
  margin-top: auto;
  color: var(--ink);
  font-weight: 800;
}

.youth-groups-heading {
  width: 100%;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.youth-groups-heading h2 {
  max-width: none;
  margin-bottom: 1rem;
}

.youth-groups-heading .lede {
  max-width: 58rem;
  margin: 0;
}

.youth-event-list {
  display: grid;
  gap: 1.25rem;
}

.youth-event-card {
  display: grid;
  grid-template-columns: minmax(250px, .65fr) minmax(0, 1.35fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.youth-event-card:nth-child(2) {
  background: var(--sage-light);
}

.youth-event-media {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) * .75);
  background: var(--cream);
}

.youth-event-media > img:first-child {
  display: block;
  width: 100%;
}

.youth-event-media--poster {
  display: grid;
  place-items: center;
  padding: .75rem;
}

.youth-event-media--poster > img:first-child {
  height: auto;
  border-radius: .55rem;
}

.youth-event-media--course {
  min-height: 320px;
  aspect-ratio: 4 / 3;
}

.youth-event-media--course > img:first-child {
  height: 100%;
  object-fit: cover;
}

.youth-event-logo {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(58%, 190px);
  padding: .65rem;
  border-radius: .65rem;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 8px 24px rgba(var(--forest-deep-rgb), .18);
}

.youth-event-body {
  display: grid;
  align-content: start;
  gap: 1.4rem;
  min-width: 0;
}

.youth-event-heading {
  align-self: start;
}

.youth-event-type {
  margin: 0 0 .75rem;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.youth-event-heading h3 {
  margin: 0 0 1.25rem;
  color: var(--forest);
  font-size: clamp(2rem, 3.5vw, 3.25rem);
}

.youth-event-heading .free-badge {
  margin-left: 0;
}

.youth-event-copy {
  display: grid;
  align-content: start;
  gap: .9rem;
}

.youth-event-copy p {
  margin: 0;
}

.youth-event-copy .hero-actions {
  margin-top: .5rem;
}

@media (max-width: 1000px) {
  .youth-event-card {
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 2rem;
  }

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

  .youth-location-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .youth-age-panel,
  .youth-event-card {
    grid-template-columns: 1fr;
  }

  .youth-age-panel {
    gap: 1.25rem;
  }

  .youth-event-card {
    gap: 1.75rem;
  }

  .youth-event-media {
    justify-self: center;
    width: min(100%, 520px);
  }

  .youth-event-media--poster {
    width: min(100%, 420px);
  }

  .youth-event-media--course {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .youth-location-grid {
    grid-template-columns: 1fr;
  }

  .youth-location-card:last-child {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .page-youth .section {
    padding: 3.5rem 0;
  }

  .youth-groups-heading h2 {
    font-size: clamp(2rem, 10vw, 2.75rem);
  }

  .youth-event-card {
    padding: 1.15rem;
  }

  .youth-event-heading h3 {
    font-size: clamp(1.75rem, 9vw, 2.35rem);
  }

  .youth-event-copy .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .youth-event-copy .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.adult-groups-preview {
  background: var(--paper);
}

.adult-groups-preview-heading > div:last-child {
  max-width: 40rem;
}

.adult-groups-preview-heading > div:last-child p:last-child {
  margin-bottom: 0;
}

.adult-groups-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 1.25rem;
  align-items: stretch;
}

.adult-group-feature {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sage-light);
}

.adult-group-feature figure {
  display: grid;
  place-items: center;
  min-height: 100%;
  margin: 0;
  padding: 1rem;
  background: #eadfdd;
}

.adult-group-feature figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: .65rem;
}

.adult-group-feature-copy {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  min-width: 0;
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.adult-group-feature-copy .eyebrow,
.adult-group-feature-copy h3,
.adult-group-feature-copy p {
  margin: 0;
}

.adult-group-feature-copy h3,
.adult-groups-directory h3 {
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.adult-group-feature-copy .btn {
  align-self: flex-start;
  margin-top: auto;
  color: var(--ink);
  font-weight: 800;
}

.adult-groups-directory {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3.5vw, 3rem);
  border-radius: var(--radius);
  background: var(--forest-deep);
  color: #fff;
}

.adult-groups-directory h3 {
  margin: .55rem 0 1rem;
  color: #fff;
}

.adult-groups-directory > p:not(.eyebrow) {
  color: rgba(255, 255, 255, .82);
}

.adult-group-links {
  display: grid;
  margin: 1rem 0 1.75rem;
  border-top: 1px solid rgba(255, 255, 255, .2);
}

.adult-group-links a {
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  color: #fff;
  font-weight: 750;
}

.adult-group-links a:hover,
.adult-group-links a:focus-visible {
  color: var(--mustard);
}

.adult-groups-directory > .btn {
  align-self: flex-start;
  margin-top: auto;
}

@media (max-width: 1000px) {
  .adult-groups-preview-grid {
    grid-template-columns: 1fr;
  }
}

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

  .adult-group-feature figure {
    min-height: 0;
  }

  .adult-group-feature figure img {
    width: min(100%, 420px);
  }

  .adult-group-feature-copy .btn,
  .adult-groups-directory > .btn {
    width: 100%;
    justify-content: center;
  }
}

.youth-group-when {
  color: var(--forest);
  font-size: .9rem;
  font-weight: 800;
}

.free-badge, .free-bagde-red {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-sans);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .25em .65em;
  border-radius: 3rem;
  background: var(--sage-light);
  color: var(--forest-deep);
  line-height: 1.4;
  margin-left: 1rem;
}

.free-bagde-red {
  background: var(--clay);
  color: var(--forest-deep);

}


.youth-course {
  padding-top: 0;
  background: var(--cream);
}

.course-hero-panel {
  padding: clamp(2rem, 6vw, 4.5rem);
  border-top: .5rem solid var(--mustard);
  border-radius: var(--radius);
  background: var(--forest-deep);
  color: #fff;
  box-shadow: 14px 14px 0 rgba(242, 184, 68, .35);
}

.course-hero-panel h2 {
  max-width: 18ch;
  margin: .6rem 0 1rem;
  color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  line-height: 1.02;
}

.course-tagline {
  max-width: 34ch;
  margin: 0;
  color: var(--sage-light);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.35;
}

.course-group-explainer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .8rem;
  max-width: 760px;
  margin: 1.75rem 0 0;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: .85rem;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  line-height: 1.6;
}

.course-group-explainer .ui-icon {
  width: 1.4rem;
  height: 1.4rem;
  margin-top: .15rem;
  color: var(--mustard);
  flex: 0 0 auto;
}

.course-group-explainer strong {
  display: block;
  margin-bottom: .2rem;
  font-family: var(--sans);
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 2rem;
}

.course-meta span {
  padding: .55rem .85rem;
  border-radius: 999px;
  background: var(--cream);
  color: var(--forest-deep);
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 750;
}

.course-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
  margin-top: clamp(3rem, 6vw, 5rem);
}

.course-content-grid .prose {
  max-width: none;
}

.course-details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 0;
}

.course-details-grid > div {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.course-details-grid > div:first-child {
  background: var(--sage-light);
}

.course-details-grid h3,
.youth-course .prose > h3 {
  margin: 1.75rem 0 .6rem;
}

.course-details-grid h3 {
  margin-top: 0;
}

.parent-support-link {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: .92rem;
}

.parent-support-link a {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--forest);
  font-weight: 800;
}

.parent-support-link .ui-icon {
  width: 16px;
  height: 16px;
}

.btn-compact {
  padding-inline: 1rem;
  font-size: .78rem;
}

.group-list {
  scroll-margin-top: 6rem;
}

.group-list .section-heading a {
  color: var(--forest);
  font-weight: 800;
}

.group-programme {
  margin-top: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}

.group-programme-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, .7fr);
  gap: 2rem;
  align-items: end;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--line);
}

.group-programme-heading h2 {
  margin: .4rem 0 0;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.group-index {
  display: inline-flex;
  margin-bottom: .8rem;
  padding: .45rem .75rem;
  border-radius: 99px;
  background: var(--forest);
  color: #fff;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.group-schedule {
  display: grid;
  gap: .15rem;
  padding-left: 1.25rem;
  border-left: 3px solid var(--clay);
}

.group-schedule b {
  color: var(--forest);
}

.group-programme-body {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, .7fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.group-programme-body h3 {
  margin: 1.5rem 0 .6rem;
}

.group-programme-body .group-lead {
  color: var(--forest-deep);
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  font-weight: 700;
  line-height: 1.55;
}

.group-programme-body ul {
  display: grid;
  gap: .45rem;
  padding-left: 1.25rem;
}

.group-facts {
  align-self: start;
  padding: 1.25rem;
  border-radius: calc(var(--radius) * .75);
  background: var(--cream);
}

.group-facts p {
  margin: 0 0 .75rem;
}

.group-facts .btn {
  width: 100%;
  justify-content: center;
  margin-top: .5rem;
  text-align: center;
}

/* Create & Thrive: a clear, high-contrast treatment without decorative overlap. */
#create-thrive {
  border-top: .4rem solid var(--mustard);
  border-color: rgba(52, 92, 111, .28);
  border-top-color: var(--mustard);
  box-shadow: 0 24px 60px rgba(39, 72, 88, .12);
}

#create-thrive .group-programme-heading {
  background: var(--sage-light);
  color: var(--forest-deep);
}

#create-thrive .group-programme-body {
  background: var(--paper);
}

#create-thrive .group-facts {
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) * .75);
  padding: 1.5rem;
  background: var(--cream);
  color: var(--forest-deep);
}

#create-thrive .group-index {
  background: var(--forest-deep);
  color: #fff;
}

#create-thrive .group-schedule {
  border-left-color: var(--forest-deep);
}

#create-thrive .group-facts .btn {
  background: var(--forest-deep);
  color: #fff;
}

#create-thrive .group-facts .btn:hover,
#create-thrive .group-facts .btn:focus-visible {
  background: var(--forest);
  color: #fff;
}

.programme-partners {
  margin: 0 clamp(1rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
  padding: clamp(1.25rem, 3vw, 2rem);
  display: grid;
  grid-template-columns: minmax(190px, .65fr) minmax(0, 1.35fr);
  gap: 1.5rem;
  align-items: center;
  border: 3px solid var(--mustard);
  border-radius: var(--radius);
  background: var(--forest);
  color: #fff;
  box-shadow: 8px 8px 0 rgba(216, 169, 64, .3);
}

.programme-partners h3 {
  margin: .35rem 0 .5rem;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 2rem);
}

.programme-partners p:last-child {
  margin-bottom: 0;
  color: rgba(255, 255, 255, .82);
}

.partner-logos {
  padding: 1rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  border-radius: calc(var(--radius) * .7);
  background: #fff;
}

.partner-logos img {
  width: auto;
  max-width: min(48%, 360px);
  max-height: 135px;
  object-fit: contain;
}

.programme-partners--single .partner-logos img,
.programme-partners--banner .partner-logos img {
  max-width: 100%;
}

.programme-partners--haven .partner-logos {
  justify-content: space-evenly;
}

.programme-partners--haven .partner-logo-divider {
  align-self: stretch;
  width: 1px;
  min-height: 110px;
  background: var(--line);
}

.programme-partners--haven .partner-logo--square {
  width: clamp(110px, 17vw, 165px);
  max-width: 38%;
  max-height: 165px;
}

.programme-partners--haven .partner-logo--wide {
  width: clamp(210px, 32vw, 360px);
  max-width: 56%;
  max-height: 145px;
}

.programme-partners--banner {
  grid-template-columns: minmax(210px, .55fr) minmax(0, 1.75fr);
}

.programme-partners--banner .partner-logos {
  flex-direction: column;
}

.programme-partners--banner .partner-logos img {
  width: 100%;
  max-height: none;
}

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

  .featured-event-image {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .featured-event--ball .featured-event-image {
    min-height: 0;
    margin: 1.25rem 1.25rem 0;
    padding: .45rem;
    aspect-ratio: 1280 / 1768;
    box-shadow: -8px 8px 0 var(--mustard);
  }

  .course-content-grid,
  .course-details-grid {
    grid-template-columns: 1fr;
  }

  .course-hero-panel {
    box-shadow: 8px 8px 0 rgba(242, 184, 68, .35);
  }

  .group-programme-heading,
  .group-programme-body,
  .programme-partners {
    grid-template-columns: 1fr;
  }

  .programme-partners--haven .partner-logos {
    flex-direction: column;
    flex-wrap: wrap;
  }

  .programme-partners--haven .partner-logo-divider {
    align-self: center;
    width: min(100%, 320px);
    min-height: 1px;
    height: 1px;
  }

  .programme-partners--haven .partner-logo--square,
  .programme-partners--haven .partner-logo--wide {
    max-width: 100%;
  }
}

.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  min-width: 52px;
  min-height: 52px;
  padding: .75rem 1rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: var(--forest-deep);
  color: #fff;
  font: inherit;
  font-size: .8rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(var(--forest-deep-rgb), .22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, bottom .2s ease, background .2s ease;
}

.back-to-top[hidden] {
  display: none;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover,
.back-to-top:focus-visible {
  background: var(--clay);
  color: var(--forest-deep);
}

.back-to-top .ui-icon {
  width: 18px;
  height: 18px;
}

/* Final contrast guard: warm surfaces always use the deep brand navy. */
.surface-gold p,
.surface-gold li,
.surface-gold strong,
.surface-gold a:not(.btn),
.surface-coral p,
.surface-coral li,
.surface-coral strong,
.surface-coral a:not(.btn) {
  color: var(--forest-deep) !important;
}

.has-cookie-banner .back-to-top {
  bottom: 8.5rem;
}

@media (max-width: 640px) {
  .back-to-top {
    right: .75rem;
    bottom: .75rem;
    width: 48px;
    min-width: 48px;
    height: 48px;
    min-height: 48px;
    justify-content: center;
    padding: 0;
  }

  .back-to-top span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .has-cookie-banner .back-to-top {
    bottom: 10rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

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

