/* =========================================================
   PAGE COMPONENTS
   Cards, lists, forms and bands shared by the pages. Loaded on every
   page from templates/landing.html, after css/wfc.css, which holds
   the tokens, type, buttons, header, footer and page header.
   ========================================================= */

.wfc-empty {
  font-family: var(--wfc-text);
  color: var(--wfc-slate);
}

/* main.css hides every line break inside a paragraph below 992px, which runs
   addresses and answers together; these components need theirs. */
.wfc-touch__value br,
.wfc-office br,
.wfc-faq__answer br,
.wfc-prose br {
  display: revert;
}

/* ---------- Thematic areas ----------
   White cards on the mist band: a photo inset at the top, then the title,
   a short description and a "Learn more" row with an arrow button. */

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

.wfc-area {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px;
  border-radius: 28px;
  background: var(--wfc-paper);
  box-shadow: 0 1px 2px rgba(23, 35, 28, 0.06);
  transition: transform 0.45s var(--wfc-ease), box-shadow 0.45s var(--wfc-ease);
}

.wfc-area:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(23, 35, 28, 0.1);
}

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

/* Photo from one of the area's activities, inset with its own rounded corners. */
.wfc-area__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border-radius: 18px;
  background: var(--wfc-mist);
}

.wfc-area__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: transform 0.6s var(--wfc-ease);
}

.wfc-area:hover .wfc-area__media img {
  transform: scale(1.05);
}

/* Stand-in when an area has no activity photo yet. */
.wfc-area__media .wfc-area__icon {
  width: 64px;
  height: 64px;
  margin: auto;
  object-fit: contain;
  transform: none;
}

.wfc-area__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px 12px 10px;
}

.wfc-area__title {
  margin: 0;
  font-family: var(--wfc-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1.5rem;
  line-height: 1.15;
  color: var(--wfc-ink);
}

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

/* The whole card is clickable through the title link. */
.wfc-area__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.wfc-area__text {
  margin: 0;
  font-family: var(--wfc-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--wfc-slate);
}

.wfc-area__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 18px;
}

.wfc-area__more {
  font-family: var(--wfc-display);
  font-weight: 600;
  color: var(--wfc-ink);
  transition: color 0.2s ease;
}

.wfc-area:hover .wfc-area__more {
  color: var(--wfc-forest);
}

/* The arrow points up and out, then fills and levels on hover, like the hero button. */
.wfc-area__arrow {
  display: grid;
  flex: none;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--wfc-line);
  border-radius: 50%;
  color: var(--wfc-forest);
  font-size: 0.95rem;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.wfc-area__arrow i {
  transform: rotate(-45deg);
  transition: transform 0.5s var(--wfc-ease);
}

.wfc-area:hover .wfc-area__arrow {
  border-color: var(--wfc-forest);
  background: var(--wfc-forest);
  color: var(--wfc-paper);
}

.wfc-area:hover .wfc-area__arrow i {
  transform: rotate(0deg);
}

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

@media (min-width: 992px) {
  .wfc-areas {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Articles ---------- */

.wfc-news {
  display: grid;
  gap: 48px 28px;
}

.wfc-story {
  position: relative;
  display: flex;
  flex-direction: column;
}

.wfc-story__media {
  margin-bottom: 20px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: var(--wfc-mist);
}

.wfc-story__media img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: transform 0.6s var(--wfc-ease);
}

.wfc-story:hover .wfc-story__media img {
  transform: scale(1.04);
}

.wfc-story__date {
  margin: 0 0 8px;
  font-family: var(--wfc-text);
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--wfc-slate);
}

.wfc-story__title {
  margin: 0 0 10px;
  font-family: var(--wfc-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1.5rem;
  line-height: 1.15;
}

.wfc-story__title a {
  color: var(--wfc-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

.wfc-story__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.wfc-story:hover .wfc-story__title a {
  color: var(--wfc-forest);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
}

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

.wfc-story__excerpt {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-family: var(--wfc-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--wfc-slate);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

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

@media (min-width: 992px) {
  .wfc-news {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Section intro: a heading with tabs, search or a link beside it ---------- */

.wfc-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

/* ---------- Split: a heading on the left, longer text on the right ---------- */

.wfc-split {
  display: grid;
  gap: 24px;
}

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

/* Legal pages: a contents list on the left that stays in view. */
.wfc-toc__title {
  margin: 0 0 14px;
  font-family: var(--wfc-text);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.2;
  color: var(--wfc-slate);
}

.wfc-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

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

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

.wfc-toc a {
  display: flex;
  gap: 14px;
  align-items: baseline;
  min-height: 48px;
  padding: 12px 4px;
  font-family: var(--wfc-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--wfc-ink);
  text-decoration: none;
  transition: color 0.2s ease;
}

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

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

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

.wfc-prose h3[id] {
  scroll-margin-top: calc(var(--wfc-header-h) + 24px);
}

@media (min-width: 992px) {
  .wfc-split--toc {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  }

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

/* ---------- Empty state ---------- */

.wfc-blank {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding: clamp(32px, 5vw, 56px);
  border-radius: 24px;
  background: var(--wfc-mist);
}

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

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

.wfc-blank p + p {
  font-family: var(--wfc-text);
  font-weight: 400;
  font-stretch: 100%;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--wfc-slate);
}

/* ---------- Get involved: a call to support the work, over a photo ---------- */

/* The section before it already leaves space above, so only the foot is padded. */
.wfc-involve {
  --involve-gap: 8px;
  padding: 0 var(--involve-gap) clamp(56px, 7vw, 96px);
  background: var(--wfc-paper);
}

/* Straight after a mist section the band's upper half sits on mist, with no seam. */
.wfc-section--mist + .wfc-involve {
  background: linear-gradient(var(--wfc-mist) 45%, var(--wfc-paper) 45%);
}

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

.wfc-involve__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 50% 35%;
}

.wfc-involve__card::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) 55%, rgba(14, 42, 28, 0.6) 100%);
}

.wfc-involve__inner {
  display: grid;
  gap: 24px 48px;
  padding: clamp(48px, 7vw, 104px) max(calc(var(--wfc-gutter) - var(--involve-gap)), calc((100% - 1240px) / 2));
}

.wfc-involve .wfc-h2 {
  max-width: 16ch;
  font-size: clamp(2.25rem, 1.4rem + 3vw, 3.75rem);
  color: var(--wfc-paper);
}

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

.wfc-involve__aside p {
  margin: 0;
  font-family: var(--wfc-text);
  font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

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

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

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

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

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

/* ---------- Featured article: the lead story above the grid, as one card ---------- */

.wfc-feature {
  position: relative;
  display: grid;
  overflow: hidden;
  margin-bottom: clamp(48px, 6vw, 72px);
  border: 1px solid var(--wfc-line);
  border-radius: 28px;
  background: var(--wfc-paper);
  transition: border-color 0.25s ease;
}

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

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

/* The photo runs to the card's edges. */
.wfc-feature__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--wfc-mist);
}

.wfc-feature__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: transform 0.6s var(--wfc-ease);
}

.wfc-feature:hover .wfc-feature__media img {
  transform: scale(1.03);
}

.wfc-feature__body {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 14px;
  padding: clamp(24px, 4vw, 56px);
}

.wfc-feature__title {
  margin: 0;
  font-family: var(--wfc-display);
  font-weight: 800;
  font-stretch: 72%;
  font-size: clamp(1.875rem, 1.3rem + 2vw, 2.875rem);
  line-height: 1.02;
  text-wrap: balance;
}

.wfc-feature__title a {
  color: var(--wfc-ink);
  text-decoration: none;
  outline: none;
  transition: color 0.2s ease;
}

.wfc-feature__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.wfc-feature:hover .wfc-feature__title a {
  color: var(--wfc-forest);
}

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

/* Date, author and category under a title. */
.wfc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--wfc-text);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--wfc-slate);
}

.wfc-meta i {
  margin-right: 6px;
  color: var(--wfc-forest);
}

.wfc-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--wfc-display);
  font-weight: 600;
  color: var(--wfc-ink);
  transition: color 0.2s ease;
}

.wfc-more i {
  font-size: 0.85rem;
  color: var(--wfc-forest);
  transition: transform 0.4s var(--wfc-ease);
}

:is(.wfc-feature, .wfc-voice, .wfc-doc):hover .wfc-more {
  color: var(--wfc-forest);
}

:is(.wfc-feature, .wfc-voice):hover .wfc-more i {
  transform: translateX(5px);
}

/* Side by side from tablets up, so the photo is not stretched across the page.
   The photo then fills its half of the card, whatever the text's height. */
@media (min-width: 700px) {
  .wfc-feature {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .wfc-feature__media {
    aspect-ratio: auto;
    min-height: 340px;
  }
}

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

  .wfc-feature__media {
    min-height: 440px;
  }
}

/* ---------- Search field ---------- */

.wfc-search {
  display: flex;
  width: min(100%, 360px);
}

.wfc-search input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0 18px 0 20px;
  border: 1px solid var(--wfc-line);
  border-right: 0;
  border-radius: 999px 0 0 999px;
  background: var(--wfc-paper);
  font-family: var(--wfc-text);
  font-size: 1rem;
  color: var(--wfc-ink);
}

.wfc-search input::placeholder {
  color: var(--wfc-slate);
}

.wfc-search input:focus {
  border-color: var(--wfc-forest);
  outline: none;
}

.wfc-search button {
  display: grid;
  place-items: center;
  width: 54px;
  border: 1px solid var(--wfc-forest);
  border-radius: 0 999px 999px 0;
  background: var(--wfc-forest);
  color: var(--wfc-paper);
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.wfc-search button:hover {
  background: var(--wfc-forest-deep);
}

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

/* ---------- Voices: impact stories from the people we work with ---------- */

.wfc-voices {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wfc-voice {
  position: relative;
  display: grid;
  overflow: hidden;
  border-radius: 24px;
  background: var(--wfc-mist);
  transition: transform 0.45s var(--wfc-ease), box-shadow 0.45s var(--wfc-ease);
}

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

.wfc-voice:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(23, 35, 28, 0.1);
}

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

.wfc-voice__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--wfc-line);
}

.wfc-voice__media img,
.wfc-voice__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: 50% 25%;
}

/* The quote mark sits across the photo's lower edge: it is pulled up out of
   the text area by its own height plus half the gap above the title. */
.wfc-voice__mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin: -54px 0 -6px;
  border: 3px solid var(--wfc-mist);
  border-radius: 50%;
  background: var(--wfc-forest);
  color: var(--wfc-paper);
  font-size: 1.05rem;
}

.wfc-section--mist .wfc-voice__mark {
  border-color: var(--wfc-paper);
}

.wfc-voice__body {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 12px;
  padding: 28px 28px 30px;
}

.wfc-voice__title {
  margin: 0;
  font-family: var(--wfc-display);
  font-weight: 700;
  font-stretch: 82%;
  font-size: 1.5rem;
  line-height: 1.15;
  text-wrap: balance;
}

.wfc-voice__title a {
  color: var(--wfc-ink);
  text-decoration: none;
  outline: none;
}

.wfc-voice__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.wfc-voice__text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-family: var(--wfc-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--wfc-slate);
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

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

@media (min-width: 1100px) {
  .wfc-voices--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Outlined version, used on the stories page: a white card with a hairline
   border and square corners, no quote mark, and "Read more" pinned to the
   foot so the links line up across a row. */
.wfc-voice--plain {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--wfc-line);
  border-radius: 0;
  background: var(--wfc-paper);
  transition: border-color 0.25s ease;
}

.wfc-voice--plain:hover {
  border-color: var(--wfc-forest);
  box-shadow: none;
  transform: none;
}

.wfc-voice--plain .wfc-voice__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 24px 26px;
}

.wfc-voice--plain .wfc-voice__title a {
  transition: color 0.2s ease;
}

.wfc-voice--plain:hover .wfc-voice__title a {
  color: var(--wfc-forest);
}

.wfc-voice--plain .wfc-more {
  margin-top: auto;
  padding-top: 6px;
  color: var(--wfc-forest);
}

/* ---------- Load more: the button under a list that brings in the next page ---------- */

/* "Load more" under a list (partials/load-more.html), used on every list of the site.
   Only shown when JavaScript runs (js/wfc.js adds .wfc-js); otherwise page numbers are shown. */
.wfc-loadmore {
  display: none;
}

.wfc-js .wfc-loadmore {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 64px);
}

.wfc-loadmore .wfc-btn {
  min-width: 180px;
  min-height: 52px;
}

.wfc-loadmore .wfc-btn[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
}

/* Shown when a later page of a list was opened directly. */
.wfc-loadmore-back {
  margin: clamp(28px, 4vw, 44px) 0 0;
  text-align: center;
}

/* ---------- Dropdown: a menu of links that opens from a button ----------
   Built on <details>, so it opens without JavaScript; js/wfc.js closes it
   on Escape or a click elsewhere. */

.wfc-dropdown {
  position: relative;
}

.wfc-dropdown summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #b9c4bb;
  border-radius: 999px;
  background: var(--wfc-paper);
  font-family: var(--wfc-display);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  white-space: nowrap;
  color: var(--wfc-ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: border-color 0.2s ease;
}

.wfc-dropdown summary::-webkit-details-marker {
  display: none;
}

/* The current choice, shown after the label. */
.wfc-dropdown summary span {
  font-family: var(--wfc-text);
  font-weight: 400;
  color: var(--wfc-slate);
}

.wfc-dropdown summary i {
  font-size: 0.8rem;
  color: var(--wfc-forest);
  transition: transform 0.3s var(--wfc-ease);
}

.wfc-dropdown[open] summary i {
  transform: rotate(180deg);
}

.wfc-dropdown summary:hover,
.wfc-dropdown[open] summary {
  border-color: var(--wfc-forest);
}

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

.wfc-dropdown ul {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  min-width: 100%;
  margin: 0;
  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);
  list-style: none;
}

.wfc-dropdown a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  font-family: var(--wfc-text);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  color: var(--wfc-ink);
  text-decoration: none;
}

.wfc-dropdown a:hover {
  background: var(--wfc-mist);
  color: var(--wfc-forest);
}

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

/* A tick marks the current choice. */
.wfc-dropdown a[aria-current] {
  color: var(--wfc-forest);
}

.wfc-dropdown a[aria-current]::after {
  content: "\2713";
  font-weight: 700;
}

/* Square version, beside other square controls. */
.wfc-dropdown--sharp summary,
.wfc-dropdown--sharp ul,
.wfc-dropdown--sharp a {
  border-radius: 0;
}

/* On wide screens the menu sits at the right of its row, so it opens leftwards. */
@media (min-width: 768px) {
  .wfc-dropdown ul {
    right: 0;
    left: auto;
  }
}

/* ---------- Crew: the team page's portraits ----------
   Each photo is shown whole, as it was uploaded, with nothing over the face.
   The name is on a dark label fixed over the photo's lower edge, the way the
   page's title card sits over the banner photo at the top of the page. */

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

.wfc-crew__card {
  min-width: 0;
}

.wfc-crew__card > img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 27 / 32;
  border-radius: 20px;
  background: var(--wfc-mist);
  object-fit: cover;
  object-position: 50% 15%;
  /* 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;
}

/* The label is only as tall as its words. Its links ride on its top edge, half on
   the photo, so they take no room from the name. */
.wfc-crew__label {
  position: relative;
  margin: -22px 8px 0;
  padding: 22px 14px 14px;
  border-radius: 14px;
  background: var(--wfc-forest-deep);
}

.wfc-crew__name {
  margin: 0 0 4px;
  font-family: var(--wfc-display);
  font-weight: 700;
  font-stretch: 82%;
  font-size: clamp(1rem, 0.92rem + 0.45vw, 1.25rem);
  line-height: 1.15;
  color: var(--wfc-paper);
}

.wfc-crew__role {
  margin: 0;
  font-family: var(--wfc-text);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.82);
}

.wfc-crew__links {
  position: absolute;
  top: -22px;
  right: 10px;
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: flex-end;
  gap: 4px;
  max-width: calc(100% - 20px);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The ring is the label's own colour, so each button looks set into the photo. */
.wfc-crew__links a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 3px solid var(--wfc-forest-deep);
  border-radius: 50%;
  background: var(--wfc-paper);
  color: var(--wfc-forest);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.wfc-crew__links a:hover {
  background: var(--wfc-sun);
  color: var(--wfc-ink);
}

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

@media (min-width: 576px) {
  .wfc-crew__role {
    font-size: 0.875rem;
  }
}

@media (min-width: 768px) {
  .wfc-crew {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 20px;
  }

  .wfc-crew__card > img {
    border-radius: 22px;
  }

  .wfc-crew__label {
    margin: -30px 10px 0;
    padding: 24px 18px 16px;
    border-radius: 16px;
  }

  .wfc-crew__links {
    right: 14px;
  }
}

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

/* ---------- Gallery: a masonry, each photo at its own proportions ---------- */

.wfc-gallery {
  columns: 2;
  column-gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wfc-gallery li {
  margin-bottom: 12px;
  break-inside: avoid;
}

.wfc-gallery a {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 18px;
  background: var(--wfc-mist);
  color: var(--wfc-paper);
  text-decoration: none;
}

.wfc-gallery img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  transition: transform 0.6s var(--wfc-ease);
}

.wfc-gallery a:hover img {
  transform: scale(1.05);
}

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

/* Title over a tint at the foot; always shown, since phones have no hover. */
.wfc-gallery__caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 48px 16px 14px;
  background: linear-gradient(0deg, rgba(14, 42, 28, 0.86) 0%, rgba(14, 42, 28, 0) 100%);
  font-family: var(--wfc-display);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.25;
}

@media (min-width: 768px) {
  .wfc-gallery {
    columns: 3;
    column-gap: 20px;
  }

  .wfc-gallery li {
    margin-bottom: 20px;
  }

  .wfc-gallery__caption {
    padding: 64px 20px 18px;
    font-size: 1.0625rem;
  }
}

/* Lightbox: a native dialog opened by js/gallery.js. */
.wfc-lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(8, 24, 16, 0.96);
  color: var(--wfc-paper);
}

.wfc-lightbox::backdrop {
  background: rgba(8, 24, 16, 0.96);
}

.wfc-lightbox__stage {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  height: 100%;
  padding: 64px 16px 20px;
}

.wfc-lightbox__img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  min-height: 0;
  object-fit: contain;
}

.wfc-lightbox__caption {
  max-width: 70ch;
  margin: 0 auto;
  text-align: center;
  font-family: var(--wfc-text);
  font-size: 1rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.86);
}

.wfc-lightbox__caption strong {
  display: block;
  font-family: var(--wfc-display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--wfc-paper);
}

.wfc-lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--wfc-paper);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.wfc-lightbox button:hover {
  background: rgba(255, 255, 255, 0.28);
}

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

.wfc-lightbox__close {
  top: 12px;
  right: 12px;
}

.wfc-lightbox__prev,
.wfc-lightbox__next {
  top: 50%;
  transform: translateY(-50%);
}

.wfc-lightbox__prev {
  left: 12px;
}

.wfc-lightbox__next {
  right: 12px;
}

html:has(.wfc-lightbox[open]) {
  overflow: hidden;
}

@media (min-width: 768px) {
  .wfc-lightbox__stage {
    padding: 64px 84px 28px;
  }
}

/* ---------- Resources: a ruled list of publications to view or download ---------- */

.wfc-docs {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--wfc-line);
  list-style: none;
}

.wfc-doc {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--wfc-line);
}

.wfc-doc__cover {
  display: grid;
  place-items: center;
  align-self: start;
  aspect-ratio: 4 / 5;
  border-radius: 12px;
  background: var(--wfc-mist);
}

.wfc-doc__cover img {
  width: 62%;
  height: auto;
  max-height: none;
}

.wfc-doc__body {
  display: grid;
  align-content: start;
  gap: 8px;
}

.wfc-doc__title {
  margin: 0;
  font-family: var(--wfc-display);
  font-weight: 700;
  font-stretch: 82%;
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  line-height: 1.15;
  color: var(--wfc-ink);
  text-wrap: balance;
}

.wfc-doc__text {
  display: -webkit-box;
  max-width: 70ch;
  margin: 0;
  overflow: hidden;
  font-family: var(--wfc-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--wfc-slate);
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* On phones the details and buttons sit under the text, clear of the icon. */
.wfc-doc .wfc-meta,
.wfc-doc__actions {
  grid-column: 2;
}

.wfc-doc .wfc-meta {
  display: grid;
  gap: 4px;
}

.wfc-doc__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.wfc-doc__actions .wfc-btn {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
}

@media (min-width: 992px) {
  .wfc-doc {
    grid-template-columns: 64px minmax(0, 1fr) 190px auto;
    gap: 32px;
    align-items: center;
  }

  .wfc-doc .wfc-meta,
  .wfc-doc__actions {
    grid-column: auto;
  }
}

/* ---------- Article, story and activity pages ---------- */

/* Their header runs straight into the content. */
.wfc-section--after-head {
  padding-top: clamp(32px, 4vw, 56px);
}

.wfc-article {
  display: grid;
  gap: 40px;
}

.wfc-article__photo {
  margin: 0;
}

.wfc-article__photo img,
.wfc-article__photo video {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 24px;
  background: var(--wfc-mist);
}

.wfc-article__body {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 28px;
  min-width: 0;
}

/* Share links */
.wfc-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--wfc-line);
  list-style: none;
}

.wfc-share__label {
  margin-right: 8px;
  font-family: var(--wfc-display);
  font-weight: 600;
  color: var(--wfc-ink);
}

.wfc-share a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--wfc-line);
  border-radius: 50%;
  color: var(--wfc-forest);
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.wfc-share a:hover {
  border-color: var(--wfc-forest);
  background: var(--wfc-forest);
  color: var(--wfc-paper);
}

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

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

  /* The photo stays in view beside long text. */
  .wfc-article__photo {
    position: sticky;
    top: calc(var(--wfc-header-h) + 32px);
  }

  /* With no photo the text takes a readable column on its own. */
  .wfc-article--text {
    grid-template-columns: minmax(0, 760px);
  }
}

/* ---------- Pillars: the thematic areas, one wide row each, alternating sides ---------- */

.wfc-pillars {
  display: grid;
  gap: clamp(56px, 8vw, 120px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.wfc-pillar {
  position: relative;
  display: grid;
  gap: 24px;
  scroll-margin-top: calc(var(--wfc-header-h) + 24px);
}

.wfc-pillar:has(a:focus-visible) {
  outline: 3px solid var(--wfc-forest);
  outline-offset: 8px;
  border-radius: 24px;
}

/* The photo's leaf shape faces the text: its rounded corners swap with the side it is on. */
.wfc-pillar__media {
  --leaf: clamp(56px, 10vw, 140px);
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--leaf) 24px;
  background: var(--wfc-mist);
}

.wfc-pillar__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: transform 0.6s var(--wfc-ease);
}

.wfc-pillar:hover .wfc-pillar__media img {
  transform: scale(1.04);
}

.wfc-pillar__media .wfc-area__icon {
  inset: 0;
  width: 72px;
  height: 72px;
  margin: auto;
  object-fit: contain;
  transform: none;
}

.wfc-pillar__body {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: 16px;
}

.wfc-pillar__num {
  font-family: var(--wfc-display);
  font-weight: 800;
  font-stretch: 62%;
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  line-height: 0.8;
  color: var(--wfc-line);
}

.wfc-pillar__title {
  margin: 0;
  font-family: var(--wfc-display);
  font-weight: 800;
  font-stretch: 70%;
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3.25rem);
  line-height: 0.98;
  text-wrap: balance;
}

.wfc-pillar__title a {
  color: var(--wfc-ink);
  text-decoration: none;
  outline: none;
  transition: color 0.2s ease;
}

.wfc-pillar__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.wfc-pillar:hover .wfc-pillar__title a {
  color: var(--wfc-forest);
}

.wfc-pillar__text {
  max-width: 56ch;
  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-pillar:hover .wfc-more {
  color: var(--wfc-forest);
}

.wfc-pillar:hover .wfc-more i {
  transform: translateX(5px);
}

/* Side by side from small tablets up, so the photo is never stretched wide. */
@media (min-width: 640px) {
  .wfc-pillar {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(28px, 6vw, 96px);
    align-items: center;
  }

  .wfc-pillar:nth-child(even) {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  }

  .wfc-pillar:nth-child(even) .wfc-pillar__media {
    order: 2;
    border-radius: 24px var(--leaf);
  }
}

/* ---------- Activities: the full list ----------
   Each card is a photo with a pale caption panel laid over its lower edge,
   set in from the left, holding the thematic area, title, summary and
   "Read more". Three across on wide screens. */

.wfc-acts {
  display: grid;
  gap: 44px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wfc-act {
  position: relative;
  display: flex;
  flex-direction: column;
}

.wfc-act:has(a:focus-visible) {
  outline: 3px solid var(--wfc-forest);
  outline-offset: 6px;
  border-radius: 24px;
}

.wfc-act__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  background: var(--wfc-line);
}

.wfc-act__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  transition: transform 0.6s var(--wfc-ease);
}

.wfc-act:hover .wfc-act__media img {
  transform: scale(1.04);
}

/* The caption panel: pulled up over the photo and stretched so the
   panels in a row end level, with "Read more" at the foot of each. */
.wfc-act__body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: -72px 0 0 24px;
  padding: 24px 24px 26px;
  border-radius: 20px 0 20px 20px;
  background: var(--wfc-mist);
  transition: transform 0.45s var(--wfc-ease);
}

.wfc-act:hover .wfc-act__body {
  transform: translateY(-8px);
}

.wfc-act__title {
  margin: 0;
  font-family: var(--wfc-display);
  font-weight: 700;
  font-stretch: 82%;
  font-size: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem);
  line-height: 1.12;
  text-wrap: balance;
}

.wfc-act__title a {
  color: var(--wfc-ink);
  text-decoration: none;
  outline: none;
  transition: color 0.2s ease;
}

/* The whole card is clickable through the title link. */
.wfc-act__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.wfc-act:hover .wfc-act__title a {
  color: var(--wfc-forest);
}

.wfc-act__text {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  font-family: var(--wfc-text);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--wfc-slate);
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

.wfc-act .wfc-more {
  margin-top: auto;
  padding-top: 6px;
}

.wfc-act:hover .wfc-more {
  color: var(--wfc-forest);
}

.wfc-act:hover .wfc-more i {
  transform: translateX(5px);
}

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

@media (min-width: 1100px) {
  .wfc-acts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Forms ---------- */

.wfc-form {
  display: grid;
  gap: 18px;
}

.wfc-form__row {
  display: grid;
  gap: 18px;
}

.wfc-field {
  display: grid;
  gap: 8px;
}

.wfc-field label {
  font-family: var(--wfc-display);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.2;
  color: var(--wfc-ink);
}

.wfc-field label span {
  font-family: var(--wfc-text);
  font-weight: 400;
  color: var(--wfc-slate);
}

.wfc-field input,
.wfc-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 18px;
  border: 1px solid #b9c4bb;
  border-radius: 14px;
  background: var(--wfc-paper);
  font-family: var(--wfc-text);
  font-size: 1rem;
  line-height: 1.4;
  color: var(--wfc-ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.wfc-field input:focus,
.wfc-field textarea:focus {
  border-color: var(--wfc-forest);
  box-shadow: 0 0 0 3px rgba(11, 102, 35, 0.18);
  outline: none;
}

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

.wfc-form .wfc-btn {
  justify-self: start;
  min-height: 52px;
  padding: 0 28px;
}

.wfc-form__error,
.wfc-form__success {
  margin: 0;
  padding: 14px 18px;
  border-radius: 14px;
  font-family: var(--wfc-text);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.45;
}

.wfc-form__error {
  background: #fdecec;
  color: #8f1d1d;
}

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

@media (min-width: 576px) {
  .wfc-form__row {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Contact page ---------- */

/* Three ways to reach us, side by side. */
.wfc-touch {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wfc-touch__card {
  display: grid;
  align-content: start;
  gap: 8px;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--wfc-line);
  border-radius: 24px;
  background: var(--wfc-paper);
}

.wfc-touch__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  border-radius: 50%;
  background: var(--wfc-forest);
  color: var(--wfc-paper);
  font-size: 1.1rem;
}

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

.wfc-touch__value {
  margin: 0;
  font-family: var(--wfc-display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.45;
  color: var(--wfc-ink);
  overflow-wrap: anywhere;
}

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

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

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

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

/* The message form beside the map. */
.wfc-reach {
  display: grid;
  gap: 24px;
  margin-top: clamp(40px, 5vw, 64px);
}

.wfc-reach__form {
  padding: clamp(24px, 4vw, 48px);
  border-radius: 28px;
  background: var(--wfc-mist);
}

.wfc-reach__form .wfc-h2 {
  margin-bottom: 8px;
  font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
}

.wfc-reach__form > p {
  margin: 0 0 24px;
  font-family: var(--wfc-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--wfc-slate);
}

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

  .wfc-reach .wfc-map,
  .wfc-reach .wfc-map iframe {
    height: 100%;
    min-height: 420px;
  }
}

/* A form on its own in the middle of the page (feedback, partner access). */
.wfc-formcard {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--wfc-line);
  border-radius: 28px;
  background: var(--wfc-paper);
  box-shadow: 0 24px 60px rgba(23, 35, 28, 0.07);
}

.wfc-formcard--narrow {
  max-width: 520px;
}

.wfc-formcard > p {
  margin: 0 0 24px;
  font-family: var(--wfc-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--wfc-slate);
}

.wfc-formcard__foot {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--wfc-line);
  font-family: var(--wfc-text);
  font-size: 1rem;
  color: var(--wfc-slate);
}

/* Pulled up over the mist header above, so the card bridges the two. */
.wfc-section--lift {
  padding-top: 0;
  background: linear-gradient(var(--wfc-mist) 72px, var(--wfc-paper) 72px);
}

.wfc-map {
  overflow: hidden;
  border-radius: 24px;
  background: var(--wfc-line);
}

.wfc-map iframe {
  display: block;
  width: 100%;
  height: clamp(300px, 40vw, 460px);
  border: 0;
}

/* Field offices */
.wfc-offices {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wfc-office {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 24px;
  border-radius: 20px;
  background: var(--wfc-paper);
}

.wfc-office--highlight {
  box-shadow: inset 0 0 0 2px var(--wfc-forest);
}

.wfc-office__name {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin: 0;
  font-family: var(--wfc-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--wfc-ink);
}

.wfc-office__name i {
  font-size: 1rem;
  color: var(--wfc-forest);
}

.wfc-office p {
  margin: 0;
  font-family: var(--wfc-text);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--wfc-slate);
}

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

@media (min-width: 992px) {
  .wfc-offices {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- FAQ ---------- */

.wfc-faq {
  display: grid;
  gap: clamp(40px, 5vw, 64px);
}

/* The jump links above stop each group clear of the sticky header. */
.wfc-faq__group {
  display: grid;
  gap: 20px;
  scroll-margin-top: calc(var(--wfc-header-h) + 24px);
}

.wfc-faq__title {
  margin: 0;
  font-family: var(--wfc-display);
  font-weight: 800;
  font-stretch: 72%;
  font-size: clamp(1.625rem, 1.3rem + 1.2vw, 2.125rem);
  line-height: 1.05;
  color: var(--wfc-ink);
}

.wfc-faq details {
  border-top: 1px solid var(--wfc-line);
}

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

.wfc-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--wfc-display);
  font-weight: 700;
  font-stretch: 88%;
  font-size: clamp(1.125rem, 1.05rem + 0.4vw, 1.3125rem);
  line-height: 1.25;
  color: var(--wfc-ink);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s ease;
}

.wfc-faq summary::-webkit-details-marker {
  display: none;
}

.wfc-faq summary:hover {
  color: var(--wfc-forest);
}

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

/* A plus that turns into a cross when the answer is open. */
.wfc-faq summary::after {
  content: "";
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--wfc-line);
  border-radius: 50%;
  background:
    linear-gradient(var(--wfc-forest), var(--wfc-forest)) center / 14px 2px no-repeat,
    linear-gradient(var(--wfc-forest), var(--wfc-forest)) center / 2px 14px no-repeat;
  transition: transform 0.35s var(--wfc-ease), background-color 0.2s ease;
}

.wfc-faq details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--wfc-mist);
}

.wfc-faq__answer {
  max-width: 70ch;
  margin: 0;
  padding: 0 0 26px;
  font-family: var(--wfc-text);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--wfc-slate);
}

/* One readable column in the middle of the page. */
.wfc-faq {
  max-width: 860px;
  margin-inline: auto;
}

.wfc-faq__nav {
  display: flex;
  justify-content: center;
  margin-bottom: clamp(32px, 4vw, 48px);
}

/* The closing prompt under the questions. */
.wfc-ask {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 860px;
  margin: clamp(48px, 6vw, 80px) auto 0;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: var(--wfc-mist);
  text-align: center;
}

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

/* ---------- Confirmation and error messages ---------- */

.wfc-notice {
  display: grid;
  justify-items: start;
  gap: 20px;
  max-width: 720px;
}

.wfc-notice__icon {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(11, 102, 35, 0.1);
  color: var(--wfc-forest);
  font-size: 1.75rem;
}

.wfc-notice__code {
  margin: 0;
  font-family: var(--wfc-display);
  font-weight: 800;
  font-stretch: 68%;
  font-size: clamp(5rem, 3rem + 10vw, 9rem);
  line-height: 0.85;
  color: var(--wfc-forest);
}

.wfc-notice .wfc-h2 {
  max-width: 18ch;
}

.wfc-notice--center {
  justify-items: center;
  margin-inline: auto;
  text-align: center;
}

.wfc-notice--center .wfc-notice__actions {
  justify-content: center;
}

.wfc-notice__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 8px;
}

/* ---------- Partner logos ---------- */

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

.wfc-logos li > * {
  display: grid;
  place-items: center;
  height: 100%;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--wfc-line);
  border-radius: 20px;
  background: var(--wfc-paper);
  transition: border-color 0.2s ease, box-shadow 0.35s var(--wfc-ease);
}

.wfc-logos a:hover {
  border-color: var(--wfc-forest);
  box-shadow: 0 14px 30px rgba(23, 35, 28, 0.08);
}

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

.wfc-logos img {
  max-width: 100%;
  max-height: 84px;
  object-fit: contain;
}

@media (min-width: 576px) {
  .wfc-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  .wfc-area,
  .wfc-area__media img,
  .wfc-area__more,
  .wfc-area__arrow,
  .wfc-area__arrow i,
  .wfc-story__media img,
  .wfc-story__title a,
  .wfc-feature,
  .wfc-feature__media img,
  .wfc-feature__title a,
  .wfc-more,
  .wfc-more i,
  .wfc-voice,
  .wfc-voice--plain .wfc-voice__title a,
  .wfc-dropdown summary,
  .wfc-dropdown summary i,
  .wfc-crew__links a,
  .wfc-pillar__media img,
  .wfc-pillar__title a,
  .wfc-act__body,
  .wfc-act__media img,
  .wfc-act__title a,
  .wfc-gallery img,
  .wfc-share a,
  .wfc-toc a,
  .wfc-faq summary,
  .wfc-faq summary::after,
  .wfc-logos li > * {
    transition: none;
  }

  .wfc-area:hover,
  .wfc-area:hover .wfc-area__media img,
  .wfc-story:hover .wfc-story__media img,
  .wfc-feature:hover .wfc-feature__media img,
  .wfc-voice:hover,
  .wfc-pillar:hover .wfc-pillar__media img,
  .wfc-act:hover .wfc-act__body,
  .wfc-act:hover .wfc-act__media img,
  :is(.wfc-pillar, .wfc-act):hover .wfc-more i,
  .wfc-gallery a:hover img,
  :is(.wfc-feature, .wfc-voice):hover .wfc-more i {
    transform: none;
  }
}
