/* =========================================================
   WOMEN FOR CHANGE: design system (loaded on every page after main.css)

   Palette: neutrals carry the page; the brand colours are signals.
     paper        #ffffff  page background
     mist         #f2f5f1  alternate sections, quiet surfaces
     ink          #17231c  headings and text (green-tinted charcoal)
     slate        #56625a  secondary text
     line         #dce2dc  hairlines and borders
     forest       #0b6623  brand green: links, primary buttons, icons
     forest-deep  #0e2a1c  dark bookends: top bar, footer, photo scrims
     sun          #f0ec16  brand yellow: the Donate button, focus on dark
   Type: Archivo (condensed for headings, normal width for UI) with
   Nunito Sans for running text.
   ========================================================= */

:root {
  --wfc-paper: #ffffff;
  --wfc-mist: #f2f5f1;
  --wfc-ink: #17231c;
  --wfc-slate: #56625a;
  --wfc-line: #dce2dc;
  --wfc-forest: #0b6623;
  --wfc-forest-deep: #0e2a1c;
  --wfc-sun: #f0ec16;

  --wfc-display: 'Archivo', 'Nunito Sans', sans-serif;
  --wfc-text: 'Nunito Sans', sans-serif;
  --wfc-ease: cubic-bezier(0.16, 1, 0.3, 1);

  --wfc-gutter: 20px;
  --wfc-topbar-h: 0px;
  --wfc-header-h: 64px;
}

@media (min-width: 992px) {
  :root {
    --wfc-gutter: 32px;
    --wfc-topbar-h: 40px;
    --wfc-header-h: 80px;
  }
}

/* main.css sets overflow-x: hidden on body and .homepage1-body, which turns
   <body> into a scroll container and stops position: sticky (header, hero,
   values heading) from working. clip hides overflow without that side effect. */
@supports (overflow: clip) {
  body,
  body.homepage1-body {
    overflow-x: clip;
  }
}

/* ---------- Layout ---------- */

.wfc-container {
  width: 100%;
  max-width: calc(1240px + 2 * var(--wfc-gutter));
  margin-inline: auto;
  padding-inline: var(--wfc-gutter);
}

.wfc-section {
  padding-block: clamp(72px, 8vw, 120px);
  background: var(--wfc-paper);
  color: var(--wfc-ink);
}

.wfc-section--mist {
  background: var(--wfc-mist);
}

/* Heading on the left, intro and a link on the right. */
.wfc-section__head {
  display: grid;
  gap: 20px 48px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

/* With nothing below the heading in the section. */
.wfc-section__head--flush {
  margin-bottom: 0;
}

.wfc-section__aside {
  display: grid;
  justify-items: start;
  gap: 16px;
  max-width: 34rem;
}

.wfc-section__aside p {
  margin: 0;
  font-family: var(--wfc-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--wfc-slate);
}

@media (min-width: 992px) {
  .wfc-section__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }
}

/* ---------- Type ---------- */

.wfc-h2 {
  margin: 0;
  max-width: 20ch;
  font-family: var(--wfc-display);
  font-weight: 800;
  font-stretch: 70%;
  font-size: clamp(2rem, 1.3rem + 2.2vw, 3rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--wfc-ink);
  text-wrap: balance;
}

.wfc-lead {
  margin: 0;
  font-family: var(--wfc-text);
  font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  line-height: 1.65;
  color: var(--wfc-slate);
}

.wfc-link {
  font-family: var(--wfc-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--wfc-ink);
  text-decoration: underline;
  text-decoration-color: var(--wfc-forest);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.35em;
  transition: color 0.2s ease, text-underline-offset 0.3s var(--wfc-ease);
}

.wfc-link:hover {
  color: var(--wfc-forest);
  text-decoration: underline;
  text-underline-offset: 0.5em;
}

.wfc-link:focus-visible,
.wfc-focus:focus-visible {
  outline: 3px solid var(--wfc-forest);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------- Buttons ---------- */

.wfc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--wfc-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

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

.wfc-btn--forest {
  background: var(--wfc-forest);
  color: var(--wfc-paper);
}

.wfc-btn--forest:hover {
  background: var(--wfc-forest-deep);
  color: var(--wfc-paper);
}

.wfc-btn--sun {
  background: var(--wfc-sun);
  color: var(--wfc-ink);
}

.wfc-btn--sun:hover {
  background: #e3df0c;
  color: var(--wfc-ink);
}

.wfc-btn--light {
  background: var(--wfc-paper);
  color: var(--wfc-ink);
}

.wfc-btn--light:hover {
  background: var(--wfc-mist);
  color: var(--wfc-ink);
}

/* Outlined, for dark backgrounds. */
.wfc-btn--ghost {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.06);
  color: var(--wfc-paper);
}

.wfc-btn--ghost:hover {
  border-color: var(--wfc-paper);
  background: rgba(255, 255, 255, 0.16);
  color: var(--wfc-paper);
}

/* Outlined, for light backgrounds. */
.wfc-btn--line {
  border-color: #b9c4bb;
  background: transparent;
  color: var(--wfc-ink);
}

.wfc-btn--line:hover {
  border-color: var(--wfc-forest);
  color: var(--wfc-forest);
}

/* ---------- Key facts row (homepage About, About page) ---------- */

.wfc-facts {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 16px 40px;
  width: 100%;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--wfc-line);
}

/* Value above its label; the markup keeps label-then-value for screen readers. */
.wfc-facts__item {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
}

.wfc-facts dt {
  font-family: var(--wfc-text);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--wfc-slate);
}

.wfc-facts dd {
  margin: 0;
  font-family: var(--wfc-display);
  font-weight: 800;
  font-stretch: 70%;
  font-size: 2rem;
  line-height: 1;
  color: var(--wfc-ink);
}

@media (max-width: 575.98px) {
  .wfc-facts {
    grid-template-columns: 1fr 1fr;
  }

  .wfc-facts__item:last-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Values list (homepage, About page) ---------- */

.wfc-values {
  display: grid;
  gap: 32px;
}

.wfc-value {
  display: grid;
  gap: 10px;
  padding-block: 28px;
  border-top: 1px solid var(--wfc-line);
}

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

.wfc-value__title {
  margin: 0;
  font-family: var(--wfc-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem);
  line-height: 1.15;
  color: var(--wfc-ink);
}

.wfc-value p {
  margin: 0;
  max-width: 62ch;
  font-family: var(--wfc-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--wfc-slate);
}

/* Optional photo under the heading (see partials/values.html). */
.wfc-values__photo {
  margin: 28px 0 0;
}

.wfc-values__photo img {
  display: block;
  width: 100%;
  max-width: 560px;
  height: auto;
  max-height: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 30%;
  border-radius: 24px;
}

/* The heading and photo stay in view while the list scrolls past them. */
@media (min-width: 992px) {
  .wfc-values {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 72px;
    align-items: start;
  }

  /* Portrait here, and never taller than the space under the sticky header. */
  .wfc-values__photo img {
    max-width: 400px;
    max-height: calc(100svh - var(--wfc-header-h) - 220px);
    aspect-ratio: 4 / 5;
  }

  .wfc-values__head {
    position: sticky;
    top: calc(var(--wfc-header-h) + 48px);
  }
}

/* ---------- Page header (redesigned inner pages) ----------
   A dark rounded card inset from the page edge, like the homepage hero:
   breadcrumb, page title and lead, plus optional links to the page's sections. */

.wfc-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--wfc-text);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--crumb, rgba(255, 255, 255, 0.7));
}

.wfc-crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.6;
}

/* Chevrons between the levels instead of slashes. */
.wfc-crumbs--chevron li + li::before {
  content: "\203A";
  font-size: 1.2em;
  line-height: 1;
}

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

.wfc-crumbs a:hover {
  color: var(--crumb-strong, var(--wfc-paper));
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wfc-crumbs a:focus-visible {
  outline: 3px solid var(--crumb-focus, var(--wfc-sun));
  outline-offset: 3px;
  border-radius: 4px;
}

.wfc-crumbs [aria-current] {
  color: var(--crumb-strong, var(--wfc-paper));
}

.wfc-page-head {
  --head-gap: 8px;
  padding: var(--head-gap) var(--head-gap) 0;
  background: var(--wfc-paper);
}

.wfc-page-head__card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(70% 130% at 100% 0%, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0) 62%),
    var(--wfc-forest-deep);
  color: var(--wfc-paper);
  isolation: isolate;
}

/* Optional background photo under a deep green tint, darkest on the left
   behind the title and lighter on the right so the photo shows through. */
.wfc-page-head__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 50% 24%;
}

.wfc-page-head__card--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(14, 42, 28, 0.92) 0%, rgba(14, 42, 28, 0.78) 50%, rgba(14, 42, 28, 0.64) 100%);
}

/* A lighter tint, for photos that are dark to begin with. */
.wfc-page-head__card--soft::before {
  background: linear-gradient(90deg, rgba(14, 42, 28, 0.88) 0%, rgba(14, 42, 28, 0.66) 50%, rgba(14, 42, 28, 0.48) 100%);
}

/* Small labels need more contrast over a photo. */
.wfc-page-head__card--photo .wfc-crumbs ol,
.wfc-page-head__card--photo .wfc-page-head__facts dt,
.wfc-page-head__card--photo .wfc-page-head__next-label,
.wfc-page-head__card--photo .wfc-page-head__next-meta {
  color: rgba(255, 255, 255, 0.84);
}

.wfc-page-head__card--photo .wfc-page-head__facts {
  text-shadow: 0 1px 12px rgba(4, 16, 10, 0.6);
}

.wfc-page-head__card--photo .wfc-page-head__next {
  background: rgba(14, 42, 28, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.wfc-page-head__card--photo .wfc-page-head__next:hover {
  background: rgba(14, 42, 28, 0.7);
}

/* Lines up with the page's content width, like the hero. */
.wfc-page-head__inner {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  padding:
    clamp(24px, 3vw, 40px)
    max(calc(var(--wfc-gutter) - var(--head-gap)), calc((100% - 1240px) / 2))
    clamp(32px, 4.5vw, 64px);
}

.wfc-page-head__main {
  display: grid;
  gap: 36px;
}

.wfc-page-head__copy {
  display: grid;
  justify-items: start;
  gap: 20px;
}

.wfc-page-head__title {
  margin: 0;
  max-width: 16ch;
  font-family: var(--wfc-display);
  font-weight: 800;
  font-stretch: 62%;
  font-size: clamp(2.5rem, 1.4rem + 3.6vw, 4.75rem);
  line-height: 0.92;
  letter-spacing: -0.005em;
  color: var(--wfc-paper);
  text-wrap: balance;
}

/* Word masks created by Anime.js splitText (words: { wrap: 'clip' }).
   Padding keeps capitals and descenders inside the clip box. */
.wfc-page-head__title span:has(> .wfc-word) {
  display: inline-block;
  vertical-align: top;
  padding: 0.14em 0 0.18em;
  margin: -0.14em 0 -0.18em;
}

.wfc-page-head__title .wfc-word {
  display: inline-block;
}

.wfc-page-head__lead {
  margin: 0;
  max-width: 32ch;
  font-family: var(--wfc-text);
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.84);
}

/* ---------- Page header variants ----------
   The pages do not all open the same way. Besides the dark card above:
     --light    no card; the title sits on the page, ruled off beneath
     --center   a compact mist band with everything centred (forms, short pages)
     --split    a card with the text on one side and a photo, untinted, on the other
     --article  light, with a label, a long title and a line of details
     --banner   a wide photo with a white panel laid over its lower corner
   Light variants set the breadcrumb and text colours for a pale background. */

.wfc-page-head--light,
.wfc-page-head--center,
.wfc-page-head--article,
.wfc-page-head--banner,
.wfc-page-head--split:not(.wfc-page-head--dark) {
  --crumb: var(--wfc-slate);
  --crumb-strong: var(--wfc-ink);
  --crumb-focus: var(--wfc-forest);
}

:is(.wfc-page-head--light, .wfc-page-head--center, .wfc-page-head--article, .wfc-page-head--banner, .wfc-page-head--split:not(.wfc-page-head--dark)) .wfc-page-head__title {
  color: var(--wfc-ink);
}

:is(.wfc-page-head--light, .wfc-page-head--center, .wfc-page-head--article, .wfc-page-head--banner, .wfc-page-head--split:not(.wfc-page-head--dark)) .wfc-page-head__lead {
  color: var(--wfc-slate);
}

/* Light */
.wfc-page-head--light {
  padding: 0;
}

.wfc-page-head--light .wfc-page-head__inner {
  gap: clamp(24px, 3vw, 44px);
  padding: clamp(28px, 4vw, 56px) 0 clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--wfc-line);
}

.wfc-page-head--light .wfc-page-head__title {
  max-width: 18ch;
  font-size: clamp(2.5rem, 1.5rem + 4vw, 5.25rem);
}

/* Tabs placed straight in a light header keep their own width. */
.wfc-page-head--light .wfc-page-head__inner > .wfc-tabs {
  justify-self: start;
}

/* What sits beside a light header's title: a search field or a list. */
.wfc-page-head__side {
  display: grid;
  justify-items: start;
  gap: 16px;
}

@media (min-width: 992px) {
  .wfc-page-head__side {
    justify-items: end;
  }
}

/* A photo beside the title, cut to the outline of Africa. The shape is
   img/shapes/africa.svg used as a mask; a solid green copy of it sits
   just behind the photo, set slightly off. */
.wfc-page-head__main.wfc-page-head__main--middle {
  align-items: center;
}

.wfc-page-head__africa {
  --africa: url("../img/shapes/africa.svg") center / contain no-repeat;
  position: relative;
  width: min(78%, 320px);
  aspect-ratio: 600 / 675;
  margin: 0 auto;
  isolation: isolate;
}

.wfc-page-head__africa::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--wfc-forest);
  -webkit-mask: var(--africa);
  mask: var(--africa);
  transform: translate(-12px, 10px);
}

.wfc-page-head__africa img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  -webkit-mask: var(--africa);
  mask: var(--africa);
}

@media (min-width: 992px) {
  .wfc-page-head__africa {
    justify-self: end;
    width: min(100%, 440px);
    margin: 0 12px 0 0;
  }
}

/* A numbered list of links beside the title (the thematic areas). */
.wfc-page-head__index {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: index;
}

.wfc-page-head__index li {
  border-top: 1px solid var(--wfc-line);
  counter-increment: index;
}

.wfc-page-head__index li:last-child {
  border-bottom: 1px solid var(--wfc-line);
}

.wfc-page-head__index a {
  display: flex;
  gap: 16px;
  align-items: baseline;
  min-height: 56px;
  padding: 14px 4px;
  font-family: var(--wfc-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  line-height: 1.2;
  color: var(--wfc-ink);
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.3s var(--wfc-ease);
}

.wfc-page-head__index a::before {
  content: counter(index, decimal-leading-zero);
  font-family: var(--wfc-text);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--wfc-forest);
}

.wfc-page-head__index a:hover {
  padding-left: 12px;
  color: var(--wfc-forest);
}

.wfc-page-head__index a:focus-visible {
  outline: 3px solid var(--wfc-forest);
  outline-offset: 2px;
  border-radius: 6px;
}

/* Center */
.wfc-page-head--center {
  padding: 0;
  background: var(--wfc-mist);
  text-align: center;
}

.wfc-page-head--center .wfc-page-head__inner {
  justify-items: center;
  gap: 18px;
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 84px) var(--wfc-gutter);
}

.wfc-page-head--center .wfc-crumbs ol {
  justify-content: center;
}

.wfc-page-head--center .wfc-page-head__copy {
  justify-items: center;
  gap: 16px;
}

.wfc-page-head--center .wfc-page-head__title {
  max-width: 18ch;
  font-size: clamp(2.25rem, 1.5rem + 3vw, 4rem);
}

.wfc-page-head--center .wfc-page-head__lead {
  max-width: 46ch;
}

/* Split */
.wfc-page-head--split .wfc-page-head__card {
  display: grid;
  background: var(--wfc-mist);
  color: var(--wfc-ink);
}

.wfc-page-head--split.wfc-page-head--dark .wfc-page-head__card {
  background: var(--wfc-forest-deep);
  color: var(--wfc-paper);
}

.wfc-page-head--split .wfc-page-head__inner {
  align-content: space-between;
  padding: clamp(24px, 3vw, 40px) clamp(20px, 4vw, 56px) clamp(32px, 4vw, 56px) max(calc(var(--wfc-gutter) - var(--head-gap)), calc((100vw - 1240px) / 2 - var(--head-gap)));
}

.wfc-page-head__photo {
  position: relative;
  min-height: 260px;
  margin: 0;
}

.wfc-page-head__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 50% 30%;
}

@media (min-width: 992px) {
  .wfc-page-head--split .wfc-page-head__card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: min(520px, calc(100svh - var(--wfc-header-h) - var(--wfc-topbar-h) - 2 * var(--head-gap)));
  }

  /* The photo's inner corners are cut to the card's leaf-like curve. */
  .wfc-page-head__photo img {
    border-top-left-radius: clamp(80px, 12vw, 200px);
  }
}

/* Masthead (used with --light): the page name large and centred between two
   rules, like the top of a newspaper, with a bar of tabs and search beneath. */
.wfc-page-head--masthead .wfc-page-head__inner {
  gap: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.wfc-masthead__top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 24px;
  padding-bottom: 14px;
}

.wfc-masthead__date {
  margin: 0;
  font-family: var(--wfc-text);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  color: var(--wfc-slate);
}

.wfc-masthead__name {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(24px, 3.4vw, 48px) 0 clamp(22px, 3vw, 40px);
  border-top: 3px solid var(--wfc-ink);
  border-bottom: 1px solid var(--wfc-ink);
  text-align: center;
}

.wfc-page-head--masthead .wfc-page-head__title {
  max-width: none;
  font-size: clamp(3.75rem, 2rem + 8vw, 8.5rem);
  line-height: 0.86;
  letter-spacing: -0.01em;
}

.wfc-page-head--masthead .wfc-page-head__lead {
  max-width: 52ch;
}

.wfc-masthead__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding-top: 20px;
}

/* Collage: a pale card with the title on the left and up to three photos
   on the right, overlapping at slight angles like prints on a table. */
.wfc-page-head--collage {
  --crumb: var(--wfc-slate);
  --crumb-strong: var(--wfc-ink);
  --crumb-focus: var(--wfc-forest);
}

.wfc-page-head--collage .wfc-page-head__card {
  background: var(--wfc-mist);
  color: var(--wfc-ink);
}

.wfc-page-head--collage .wfc-page-head__title {
  color: var(--wfc-ink);
}

.wfc-page-head--collage .wfc-page-head__lead {
  color: var(--wfc-slate);
}

.wfc-page-head--collage .wfc-page-head__main {
  align-items: center;
}

.wfc-page-head__collage {
  position: relative;
  width: min(100%, 380px);
  aspect-ratio: 10 / 9;
  margin: 8px auto 0;
}

.wfc-page-head__collage img {
  position: absolute;
  max-height: none;
  object-fit: cover;
  border: 6px solid var(--wfc-paper);
  border-radius: 20px;
  background: var(--wfc-line);
}

.wfc-page-head__collage img:nth-child(1) {
  top: 4%;
  left: 0;
  width: 62%;
  aspect-ratio: 4 / 3;
  transform: rotate(-5deg);
}

.wfc-page-head__collage img:nth-child(2) {
  top: 0;
  right: 0;
  width: 48%;
  aspect-ratio: 1 / 1;
  transform: rotate(6deg);
}

.wfc-page-head__collage img:nth-child(3) {
  bottom: 0;
  left: 24%;
  width: 58%;
  aspect-ratio: 4 / 3;
  transform: rotate(2deg);
}

/* With fewer photos, the ones there are sit larger and more upright. */
.wfc-page-head__collage img:only-child {
  inset: 6% 8%;
  width: 84%;
  height: 88%;
  aspect-ratio: auto;
  transform: rotate(-3deg);
}

@media (min-width: 992px) {
  .wfc-page-head__collage {
    justify-self: end;
    width: min(100%, 470px);
    margin: 0;
  }
}

/* Banner */
.wfc-page-head--banner {
  padding: clamp(12px, 2vw, 24px) 0 0;
}

.wfc-page-head__banner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin: 0;
  border-radius: 24px;
  background: var(--wfc-mist);
}

.wfc-page-head__banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 50% 32%;
}

/* The panel overlaps the photo's foot and carries on below it. */
.wfc-page-head__panel {
  position: relative;
  display: grid;
  gap: 18px;
  margin: -56px 12px 0;
  padding: 24px;
  border-radius: 22px;
  background: var(--wfc-paper);
  box-shadow: 0 24px 60px rgba(23, 35, 28, 0.14);
}

.wfc-page-head--banner .wfc-page-head__title {
  font-size: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
}

@media (min-width: 768px) {
  .wfc-page-head__banner {
    aspect-ratio: 21 / 9;
    border-radius: 28px;
  }

  .wfc-page-head__panel {
    gap: 24px;
    max-width: 560px;
    /* On the right, where it covers least of the people in a group photo. */
    margin: -150px clamp(20px, 3vw, 40px) 0 auto;
    padding: clamp(28px, 3vw, 40px);
    border-radius: 28px;
  }
}

/* Article */
.wfc-page-head--article {
  padding: 0;
}

.wfc-page-head--article .wfc-page-head__inner {
  gap: clamp(24px, 3vw, 40px);
  padding: clamp(28px, 4vw, 56px) 0 0;
}

.wfc-page-head--article .wfc-page-head__copy {
  gap: 18px;
}

.wfc-page-head--article .wfc-page-head__title {
  max-width: 24ch;
  font-size: clamp(2.125rem, 1.4rem + 2.8vw, 4rem);
  line-height: 0.98;
}

/* The label above an article title can be a link (to its category or area). */
a.wfc-badge {
  text-decoration: none;
  transition: background-color 0.2s ease;
}

a.wfc-badge:hover {
  background: rgba(11, 102, 35, 0.18);
  color: var(--wfc-forest);
}

a.wfc-badge:focus-visible {
  outline: 3px solid var(--wfc-forest);
  outline-offset: 2px;
}

/* Longer titles, such as an event's or an article's name. */
.wfc-page-head__title--long {
  max-width: 18ch;
  font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.75rem);
  line-height: 0.96;
}

/* Key facts beside the title (event date, time, place). */
.wfc-page-head__facts {
  display: grid;
  margin: 0;
}

.wfc-page-head__facts > div {
  display: grid;
  gap: 4px;
  padding-block: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.wfc-page-head__facts > div:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.wfc-page-head__facts dt {
  font-family: var(--wfc-text);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.62);
}

.wfc-page-head__facts dd {
  margin: 0;
  font-family: var(--wfc-display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--wfc-paper);
}

/* A featured link beside the title (the next upcoming event). */
.wfc-page-head__next {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 22px 76px 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--wfc-paper);
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.wfc-page-head__next:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.11);
  color: var(--wfc-paper);
}

.wfc-page-head__next:focus-visible {
  outline: 3px solid var(--wfc-sun);
  outline-offset: 3px;
}

.wfc-page-head__next-label,
.wfc-page-head__next-meta {
  font-family: var(--wfc-text);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.7);
}

.wfc-page-head__next-title {
  font-family: var(--wfc-display);
  font-weight: 700;
  font-stretch: 80%;
  font-size: 1.5rem;
  line-height: 1.12;
}

.wfc-page-head__next-arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--wfc-paper);
  color: var(--wfc-forest);
  transform: translateY(-50%);
}

.wfc-page-head__next-arrow i {
  transition: transform 0.4s var(--wfc-ease);
}

.wfc-page-head__next:hover .wfc-page-head__next-arrow i {
  transform: translateX(3px);
}

/* "On this page": pills on small screens, a ruled list on large ones. */
.wfc-page-head__toc-label {
  margin: 0 0 14px;
  font-family: var(--wfc-text);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.62);
}

.wfc-page-head__toc ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wfc-page-head__toc a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  font-family: var(--wfc-display);
  font-weight: 600;
  font-stretch: 100%;
  font-size: 0.9375rem;
  line-height: 1.2;
  color: var(--wfc-paper);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.wfc-page-head__toc a i {
  font-size: 0.75rem;
  opacity: 0.7;
  transition: transform 0.3s var(--wfc-ease), opacity 0.2s ease;
}

.wfc-page-head__toc a:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
  color: var(--wfc-paper);
}

.wfc-page-head__toc a:hover i {
  opacity: 1;
  transform: translateY(3px);
}

.wfc-page-head__toc a:focus-visible {
  outline: 3px solid var(--wfc-sun);
  outline-offset: 3px;
}

/* Sections reached from those links stop clear of the sticky header. */
section[id] {
  scroll-margin-top: calc(var(--wfc-header-h) + 16px);
}

@media (min-width: 992px) {
  .wfc-page-head {
    --head-gap: 12px;
  }

  .wfc-page-head__card {
    border-radius: 28px;
  }

  .wfc-page-head__main {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
    align-items: end;
  }

  .wfc-page-head__toc ol {
    display: block;
  }

  .wfc-page-head__toc li {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }

  .wfc-page-head__toc li:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .wfc-page-head__toc a {
    display: flex;
    justify-content: space-between;
    min-height: 54px;
    padding: 0 12px 0 4px;
    border: 0;
    border-radius: 0;
    font-size: 1.125rem;
    transition: background-color 0.2s ease, padding-left 0.3s var(--wfc-ease);
  }

  .wfc-page-head__toc a:hover {
    padding-left: 12px;
    background: rgba(255, 255, 255, 0.07);
  }
}

/* ---------- Badge: a small status label ---------- */

.wfc-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin: 0;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--wfc-mist);
  font-family: var(--wfc-text);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1;
  color: var(--wfc-slate);
}

.wfc-section--mist .wfc-badge {
  background: var(--wfc-line);
}

.wfc-badge--forest,
.wfc-section--mist .wfc-badge--forest {
  background: rgba(11, 102, 35, 0.1);
  color: var(--wfc-forest);
}

.wfc-badge--on-dark {
  background: rgba(255, 255, 255, 0.14);
  color: var(--wfc-paper);
}

/* ---------- Tabs: links that filter a list, each with a count ---------- */

.wfc-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 4px;
  border-radius: 28px;
  background: var(--wfc-mist);
}

/* A longer set of tabs (categories) that sits above a list. */
.wfc-tabs--wrap {
  margin-bottom: clamp(28px, 4vw, 44px);
}

.wfc-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font-family: var(--wfc-display);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  color: var(--wfc-ink);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wfc-tabs a span {
  font-family: var(--wfc-text);
  font-weight: 700;
  font-size: 0.8125rem;
  color: var(--wfc-slate);
}

.wfc-tabs a:hover {
  background: var(--wfc-line);
  color: var(--wfc-ink);
}

.wfc-tabs a[aria-current] {
  background: var(--wfc-forest-deep);
  color: var(--wfc-paper);
}

.wfc-tabs a[aria-current] span {
  color: rgba(255, 255, 255, 0.72);
}

.wfc-tabs a:focus-visible {
  outline: 3px solid var(--wfc-forest);
  outline-offset: 2px;
}

/* ---------- Pagination ---------- */

.wfc-pagination {
  margin-top: clamp(40px, 5vw, 64px);
}

.wfc-pagination ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wfc-pagination a {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--wfc-line);
  border-radius: 999px;
  font-family: var(--wfc-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--wfc-ink);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wfc-pagination a:hover {
  border-color: var(--wfc-forest);
  color: var(--wfc-forest);
}

.wfc-pagination a[aria-current] {
  border-color: var(--wfc-forest-deep);
  background: var(--wfc-forest-deep);
  color: var(--wfc-paper);
}

.wfc-pagination a:focus-visible {
  outline: 3px solid var(--wfc-forest);
  outline-offset: 3px;
}

/* ---------- Prose: longer text written in the admin ---------- */

.wfc-prose {
  max-width: 68ch;
  font-family: var(--wfc-text);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--wfc-slate);
  overflow-wrap: anywhere;
}

.wfc-prose p {
  margin: 0 0 1.1em;
}

.wfc-prose p:last-child {
  margin-bottom: 0;
}

.wfc-prose p:first-child {
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  line-height: 1.55;
  color: var(--wfc-ink);
}

.wfc-prose h2,
.wfc-prose h3,
.wfc-prose h4 {
  margin: 1.8em 0 0.6em;
  font-family: var(--wfc-display);
  font-weight: 700;
  font-stretch: 82%;
  line-height: 1.15;
  color: var(--wfc-ink);
}

.wfc-prose h2 {
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
}

.wfc-prose h3,
.wfc-prose h4 {
  font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.4375rem);
}

.wfc-prose ul,
.wfc-prose ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}

.wfc-prose ul {
  list-style: disc;
}

.wfc-prose ol {
  list-style: decimal;
}

/* main.css removes list markers from every li, so they are restored here. */
.wfc-prose li {
  margin-bottom: 0.4em;
  list-style: inherit;
}

.wfc-prose a {
  color: var(--wfc-forest);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wfc-prose img {
  max-width: 100%;
  height: auto;
  max-height: none;
  border-radius: 16px;
}

/* The rest of what the admin's editor can produce: quotes, rules, photos set
   to one side or with a caption, tables and videos. The editor shows the same
   look while writing (static/wfc-admin/editor-content.css). */

.wfc-prose > :first-child {
  margin-top: 0;
}

/* A photo set to one side must not hang out of the bottom of the text. */
.wfc-prose::after {
  content: "";
  display: block;
  clear: both;
}

.wfc-prose strong,
.wfc-prose b {
  font-weight: 700;
  color: var(--wfc-ink);
}

.wfc-prose blockquote {
  margin: 1.6em 0;
  padding: 2px 0 2px 20px;
  border-left: 4px solid var(--wfc-forest);
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--wfc-ink);
}

.wfc-prose blockquote p:first-child {
  font-size: inherit;
  line-height: inherit;
}

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

/* A photo set to the left or right: the text flows round it. It is kept to half
   the width at most, so there is always room for the words beside it. */
.wfc-prose img[style*="float"],
.wfc-prose figure.align-left,
.wfc-prose figure.align-right {
  max-width: 50%;
}

.wfc-prose figure.align-left img,
.wfc-prose figure.align-right img {
  max-width: 100%;
}

.wfc-prose img[style*="float:left"],
.wfc-prose img[style*="float: left"] {
  margin: 6px 24px 12px 0;
}

.wfc-prose img[style*="float:right"],
.wfc-prose img[style*="float: right"] {
  margin: 6px 0 12px 24px;
}

.wfc-prose figure {
  margin: 1.6em 0;
}

.wfc-prose figure.image {
  display: table;
}

.wfc-prose figure.align-left {
  float: left;
  margin: 6px 24px 12px 0;
}

.wfc-prose figure.align-right {
  float: right;
  margin: 6px 0 12px 24px;
}

.wfc-prose figure.align-center {
  margin-right: auto;
  margin-left: auto;
}

.wfc-prose figure img {
  display: block;
}

.wfc-prose figcaption {
  display: table-caption;
  caption-side: bottom;
  margin-top: 8px;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--wfc-slate);
}

.wfc-prose table {
  width: 100%;
  margin: 1.6em 0;
  border-collapse: collapse;
  font-size: 1rem;
  line-height: 1.5;
}

.wfc-prose th,
.wfc-prose td {
  padding: 10px 12px;
  border: 1px solid var(--wfc-line);
  text-align: left;
  vertical-align: top;
}

.wfc-prose th {
  background: var(--wfc-mist);
  font-weight: 700;
  color: var(--wfc-ink);
}

/* A video keeps its shape at any width. */
.wfc-prose iframe {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.6em 0;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 16px;
}

/* On a phone there is no room beside a photo, and a wide table scrolls on its own. */
@media (max-width: 575.98px) {
  /* !important, because the side a photo sits on is written on the photo itself. */
  .wfc-prose img[style*="float"],
  .wfc-prose figure.align-left,
  .wfc-prose figure.align-right {
    display: block;
    float: none !important;
    max-width: 100%;
    margin: 1.2em 0;
  }

  .wfc-prose table {
    display: block;
    overflow-x: auto;
  }
}

/* Legal pages: no enlarged opening paragraph. */
.wfc-prose--plain p:first-child {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

/* ---------- Impact band: a dark rounded card with large numbers ---------- */

.wfc-band {
  --band-gap: 8px;
  padding-inline: var(--band-gap);
}

.wfc-band--mist {
  background: var(--wfc-mist);
}

/* Last thing before the newsletter: leave space beneath. */
.wfc-band--foot {
  padding-bottom: clamp(56px, 7vw, 96px);
}

.wfc-band__card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--wfc-forest-deep);
  color: var(--wfc-paper);
  isolation: isolate;
}

/* Optional background photo under a deep green tint, darkest on the left
   where the heading and numbers begin. */
.wfc-band__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 50% 35%;
}

.wfc-band__card--photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(14, 42, 28, 0.93) 0%, rgba(14, 42, 28, 0.84) 55%, rgba(14, 42, 28, 0.8) 100%);
}

/* Lines up with the page's content width, like the hero. */
.wfc-band__inner {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
  padding: clamp(56px, 7vw, 96px) max(calc(var(--wfc-gutter) - var(--band-gap)), calc((100% - 1240px) / 2));
}

.wfc-band .wfc-h2 {
  color: var(--wfc-paper);
}

.wfc-band__head {
  display: grid;
  gap: 20px 48px;
}

.wfc-band__aside {
  display: grid;
  justify-items: start;
  gap: 16px;
  max-width: 34rem;
}

.wfc-band__aside p,
.wfc-band__empty {
  margin: 0;
  font-family: var(--wfc-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

.wfc-band__aside .wfc-band__note {
  font-weight: 600;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.wfc-band .wfc-btn:focus-visible {
  outline-color: var(--wfc-sun);
}

.wfc-band__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 20px;
  margin: 0;
}

/* Number above its label; the markup keeps label-then-number for screen readers. */
.wfc-band__stats > div {
  display: flex;
  flex-direction: column-reverse;
  gap: 6px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.wfc-band__stats dt {
  font-family: var(--wfc-text);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.78);
}

.wfc-band__stats dd {
  margin: 0;
  font-family: var(--wfc-display);
  font-weight: 800;
  font-stretch: 70%;
  font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--wfc-paper);
}

@media (min-width: 768px) {
  .wfc-band__stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 32px;
  }
}

@media (min-width: 992px) {
  .wfc-band {
    --band-gap: 12px;
  }

  .wfc-band__card {
    border-radius: 28px;
  }

  .wfc-band__head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
  }
}

/* ---------- People cards (team) ---------- */

.wfc-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 20px;
}

.wfc-person img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  margin-bottom: 16px;
  aspect-ratio: 27 / 32;
  object-fit: cover;
  border-radius: 18px;
  background: var(--wfc-mist);
  /* A hairline, so a portrait taken against a white wall still has an edge on the white page. */
  outline: 1px solid rgba(23, 35, 28, 0.1);
  outline-offset: -1px;
}

.wfc-person__name {
  margin: 0 0 4px;
  font-family: var(--wfc-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--wfc-ink);
}

.wfc-person__role {
  margin: 0;
  font-family: var(--wfc-text);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--wfc-slate);
}

@media (min-width: 768px) {
  .wfc-people {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 28px;
  }
}

/* ---------- Top bar ---------- */

.wfc-topbar {
  background: var(--wfc-forest-deep);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--wfc-text);
  font-size: 0.875rem;
}

.wfc-topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--wfc-topbar-h);
}

.wfc-topbar p {
  margin: 0;
}

.wfc-topbar a {
  color: var(--wfc-paper);
  text-decoration: none;
}

.wfc-topbar a:hover {
  color: var(--wfc-paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wfc-topbar__contact {
  display: flex;
  gap: 28px;
}

.wfc-topbar__contact i {
  margin-right: 8px;
  color: rgba(255, 255, 255, 0.6);
}

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

.wfc-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--wfc-paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.wfc-header.is-scrolled {
  border-bottom-color: var(--wfc-line);
  box-shadow: 0 8px 24px rgba(23, 35, 28, 0.06);
}

.wfc-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--wfc-header-h);
}

/* Brand lockup: the round emblem with the name beside it, because the
   lettering inside the emblem is too small to read at header size. */
.wfc-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--wfc-ink);
  text-decoration: none;
}

.wfc-brand:hover {
  color: var(--wfc-ink);
  text-decoration: none;
}

.wfc-brand img {
  display: block;
  width: 56px;
  height: 56px;
  max-height: none;
}

.wfc-brand span {
  font-family: var(--wfc-display);
  font-weight: 800;
  font-stretch: 75%;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.wfc-brand:focus-visible {
  outline: 3px solid var(--wfc-forest);
  outline-offset: 4px;
  border-radius: 8px;
}

.wfc-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wfc-nav__list > li {
  position: relative;
}

.wfc-nav__list > li > a,
.wfc-nav__more-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-radius: 999px;
  font-family: var(--wfc-display);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  color: var(--wfc-ink);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wfc-nav__list > li > a:hover,
.wfc-nav__more-btn:hover,
.wfc-nav__more.is-open .wfc-nav__more-btn {
  background: var(--wfc-mist);
  color: var(--wfc-ink);
}

.wfc-nav__list > li > a[aria-current="page"] {
  color: var(--wfc-forest);
  font-weight: 600;
}

.wfc-nav__list > li > a:focus-visible,
.wfc-nav__more-btn:focus-visible,
.wfc-nav__menu a:focus-visible {
  outline: 3px solid var(--wfc-forest);
  outline-offset: 2px;
}

.wfc-nav__more-btn i {
  font-size: 0.75rem;
  transition: transform 0.3s var(--wfc-ease);
}

.wfc-nav__more.is-open .wfc-nav__more-btn i {
  transform: rotate(180deg);
}

.wfc-nav__menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 10;
  min-width: 240px;
  padding: 8px;
  border: 1px solid var(--wfc-line);
  border-radius: 16px;
  background: var(--wfc-paper);
  box-shadow: 0 18px 40px rgba(23, 35, 28, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 6px);
  transition: opacity 0.2s ease, transform 0.3s var(--wfc-ease), visibility 0.2s;
}

/* Bridges the gap so the pointer can travel from button to menu. */
.wfc-nav__menu::before {
  content: "";
  position: absolute;
  top: -14px;
  right: 0;
  left: 0;
  height: 14px;
}

.wfc-nav__more.is-open .wfc-nav__menu,
html:not(.wfc-js) .wfc-nav__more:hover .wfc-nav__menu,
html:not(.wfc-js) .wfc-nav__more:focus-within .wfc-nav__menu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.wfc-nav__menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 10px;
  font-family: var(--wfc-text);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--wfc-ink);
  text-decoration: none;
}

.wfc-nav__menu a:hover,
.wfc-nav__menu a[aria-current="page"] {
  background: var(--wfc-mist);
  color: var(--wfc-forest);
}

/* ---------- Mobile header and menu (markup in mobile-header.html) ---------- */

.mobile-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 10px 0;
  background: var(--wfc-paper);
  border-bottom: 1px solid var(--wfc-line);
}

/* Line the logo up with the page content, like the desktop header. */
.mobile-header .container {
  padding-inline: var(--wfc-gutter);
}

.mobile-header .wfc-brand img {
  width: 44px;
  height: 44px;
}

.mobile-header .wfc-brand span {
  font-size: 1.25rem;
}

.mobile-sidebar .logos img {
  width: 56px;
  height: 56px;
  max-height: none;
}

.mobile-header .mobile-nav-icon {
  width: 44px;
  height: 44px;
  border: 1px solid var(--wfc-line);
  border-radius: 12px;
  color: var(--wfc-ink);
  font-size: 20px;
  cursor: pointer;
}

.mobile-sidebar .mobile-nav li a {
  color: var(--wfc-ink);
}

.mobile-sidebar .mobile-nav li a:hover {
  color: var(--wfc-forest);
}

.mobile-sidebar .header-mobile-btn1 {
  background: var(--wfc-sun);
  color: var(--wfc-ink);
}

.mobile-sidebar .header-mobile-btn1 span {
  background: var(--wfc-ink);
  color: var(--wfc-sun);
}

.mobile-sidebar .contact-info-icon,
.mobile-sidebar .social-links-mobile-menu ul li a {
  color: var(--wfc-forest);
}

.mobile-sidebar .social-links-mobile-menu ul li a:hover {
  background: var(--wfc-forest);
  border-color: var(--wfc-forest);
  color: var(--wfc-paper);
}

/* ---------- Inner-page banner (breadcrumb.html) ---------- */

.vl-breadcrumb {
  margin: 12px;
  padding: clamp(64px, 9vw, 120px) 0;
  border-radius: 28px;
}

.vl-breadcrumb-overlay {
  background: linear-gradient(180deg, rgba(14, 42, 28, 0.62) 0%, rgba(14, 42, 28, 0.88) 100%);
}

.vl-breadcrumb::before,
.vl-breadcrumb::after {
  display: none;
}

.vl-breadcrumb-content {
  text-align: left;
}

.vl-breadcrumb-title {
  max-width: 22ch;
  margin-bottom: 20px;
  padding-top: 0;
  font-family: var(--wfc-display);
  font-weight: 800;
  font-stretch: 70%;
  font-size: clamp(2.25rem, 1.4rem + 2.8vw, 3.5rem);
  line-height: 0.96;
  color: var(--wfc-paper);
  text-shadow: none;
}

.vl-breadcrumb-list {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--wfc-text);
  font-size: 0.9375rem;
}

.vl-breadcrumb-list a:hover {
  color: var(--wfc-paper);
  text-decoration: underline;
}

.vl-breadcrumb-list .active {
  color: var(--wfc-paper);
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .vl-breadcrumb {
    margin: 8px;
    border-radius: 20px;
  }
}

/* ---------- Newsletter (cta.html) ---------- */

.wfc-newsletter {
  padding-block: clamp(64px, 7vw, 96px) clamp(48px, 5vw, 64px);
  background: var(--wfc-forest-deep);
  color: var(--wfc-paper);
}

.wfc-newsletter__inner {
  display: grid;
  gap: 28px;
  align-items: end;
}

.wfc-newsletter__title {
  margin: 0 0 12px;
  font-family: var(--wfc-display);
  font-weight: 800;
  font-stretch: 70%;
  font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.5rem);
  line-height: 1;
  color: var(--wfc-paper);
}

.wfc-newsletter__text {
  margin: 0;
  max-width: 40ch;
  font-family: var(--wfc-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.wfc-newsletter__form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.wfc-newsletter__form input {
  flex: 1 1 240px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--wfc-paper);
  font-family: var(--wfc-text);
  font-size: 1rem;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wfc-newsletter__form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.wfc-newsletter__form input:focus {
  border-color: var(--wfc-paper);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.wfc-newsletter__form input:focus-visible {
  outline: 3px solid var(--wfc-sun);
  outline-offset: 2px;
}

.wfc-newsletter__form .wfc-btn {
  min-height: 52px;
  padding: 0 28px;
}

.wfc-newsletter__form .wfc-btn:focus-visible {
  outline-color: var(--wfc-sun);
}

.wfc-newsletter__messages {
  grid-column: 1 / -1;
}

.wfc-newsletter__message {
  display: inline-block;
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--wfc-paper);
  font-family: var(--wfc-text);
  font-weight: 600;
}

@media (min-width: 992px) {
  .wfc-newsletter__inner {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    column-gap: 64px;
  }
}

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

.wfc-footer {
  background: var(--wfc-forest-deep);
  color: rgba(255, 255, 255, 0.72);
  font-family: var(--wfc-text);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.wfc-footer a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wfc-footer a:hover {
  color: var(--wfc-paper);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wfc-footer a:focus-visible {
  outline: 3px solid var(--wfc-sun);
  outline-offset: 3px;
  border-radius: 4px;
}

.wfc-footer__grid {
  display: grid;
  gap: 40px;
  padding-block: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.wfc-footer .wfc-brand,
.wfc-footer .wfc-brand:hover {
  color: var(--wfc-paper);
  text-decoration: none;
}

.wfc-footer .wfc-brand img {
  width: 64px;
  height: 64px;
}

.wfc-footer__brand p {
  max-width: 34ch;
  margin: 20px 0 24px;
}

.wfc-footer h3 {
  margin: 0 0 16px;
  font-family: var(--wfc-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--wfc-paper);
}

.wfc-footer__col ul {
  display: grid;
  gap: 10px;
}

.wfc-footer__contact li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
}

.wfc-footer__contact i {
  padding-top: 5px;
  color: rgba(255, 255, 255, 0.5);
}

.wfc-footer__social {
  display: flex;
  gap: 10px;
}

.wfc-footer__social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  color: var(--wfc-paper);
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wfc-footer__social a:hover {
  border-color: var(--wfc-paper);
  background: var(--wfc-paper);
  color: var(--wfc-forest-deep);
  text-decoration: none;
}

.wfc-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  padding-block: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.875rem;
}

.wfc-footer__bottom p {
  margin: 0;
}

.wfc-footer__bottom ul {
  display: flex;
  gap: 24px;
}

@media (min-width: 768px) {
  .wfc-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .wfc-footer__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 2fr) minmax(0, 3fr) minmax(0, 3fr);
    gap: 48px;
  }
}

/* ---------- Preloader (landing.html) ----------
   Four pulsing dots, adapted from Uiverse.io by PriyanshuGupta28 and set in
   the brand colours. main.js fades .preloader out once the page has loaded. */

.preloader {
  background-color: var(--wfc-paper);
}

/* Added by js/wfc.js when the page is ready to read. */
.preloader.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0s linear 0.4s;
}

.wfc-loader {
  position: relative;
  width: 80px;
  height: 80px;
}

.wfc-loader__dot {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  box-shadow: 0 20px 30px -10px rgba(14, 42, 28, 0.45);
  animation: wfc-loader-pulse 1.2s infinite ease-in-out;
}

/* Clockwise from the top; the negative delays keep the dots a third of a
   beat apart from the first frame instead of waiting to start. */
.wfc-loader__dot:nth-child(1) {
  top: 0;
  left: 30px;
  background: linear-gradient(43deg, var(--wfc-forest-deep) 0%, var(--wfc-forest) 100%);
}

.wfc-loader__dot:nth-child(2) {
  top: 30px;
  left: 60px;
  background: var(--wfc-sun);
  animation-delay: -0.8s;
}

.wfc-loader__dot:nth-child(3) {
  top: 60px;
  left: 30px;
  background: linear-gradient(223deg, var(--wfc-forest-deep) 0%, var(--wfc-forest) 100%);
  animation-delay: -0.4s;
}

.wfc-loader__dot:nth-child(4) {
  top: 30px;
  left: 0;
  background: var(--wfc-sun);
}

@keyframes wfc-loader-pulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(0.2);
    opacity: 0.5;
  }

  100% {
    transform: scale(1);
  }
}

/* ---------- Scroll-to-top button (landing.html) ---------- */

.progress-wrap {
  border: 1px solid var(--wfc-line);
  background: var(--wfc-paper);
  box-shadow: 0 8px 24px rgba(23, 35, 28, 0.12);
}

.progress-wrap.active-progress {
  animation: none;
}

.progress-wrap::after {
  color: var(--wfc-ink);
}

.progress-wrap:hover {
  border-color: var(--wfc-forest);
  background: var(--wfc-paper);
  box-shadow: 0 10px 28px rgba(23, 35, 28, 0.16);
}

.progress-wrap:hover::after {
  color: var(--wfc-forest);
}

.progress-wrap svg.progress-circle path {
  stroke: var(--wfc-forest);
  filter: none;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .wfc-link,
  .wfc-btn,
  .wfc-header,
  .wfc-nav__menu,
  .wfc-nav__more-btn i,
  .wfc-page-head__toc a,
  .wfc-page-head__toc a i,
  .wfc-page-head__next,
  .wfc-page-head__next-arrow i,
  .wfc-page-head__index a,
  a.wfc-badge,
  .wfc-tabs a,
  .wfc-pagination a {
    transition: none;
  }

  .wfc-loader__dot {
    animation: none;
  }
}
