@charset "UTF-8";
/* ==========================================================================
   Aramco Niger Foundation — front-end stylesheet
   Lifted 1:1 from the static build (Aramco-html-version/*.dc.html).
   Fonts (Poppins headings / Manrope body) are enqueued in PHP — never @import them here.
   ========================================================================== */


/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
  --navy: #0B2E63;
  --green: #3FA535;
  --green-lt: #6FC96A;
  --green-pale: #8FD08B;
  --bg: #F4F6F5;
  --white: #fff;
  --tint: #F8FAF9;
  --line: #E2E6E4;
  --line-2: #D8DEDB;
  --line-3: #C9D0CD;
  --ink: #1B2733;
  --muted: #5A6672;
  --plate-a: #ECEFED;
  --plate-b: #F6F8F7;
  --plate-ink: #6B7873;
  --wrap: 1280px;

  --head: Poppins, sans-serif;
  --body: Manrope, Helvetica, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
}


/* ==========================================================================
   2. RESET / BASE
   ========================================================================== */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--green); }

p { text-wrap: pretty; }

img { max-width: 100%; height: auto; }

button { font-family: inherit; }

/* Visible keyboard focus on everything interactive. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: var(--white);
  clip: auto !important;
  clip-path: none;
  color: var(--navy);
  display: block;
  font-size: 14px;
  font-weight: 700;
  height: auto;
  left: 8px;
  line-height: normal;
  padding: 14px 20px;
  text-decoration: none;
  top: 8px;
  width: auto;
  z-index: 100000;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(11, 46, 99, .18);
}

.skip-link { position: absolute; }


/* ==========================================================================
   3. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
  color: var(--navy);
  margin: 0;
}

/* Inline highlight inside headings. */
h1 em, h2 em, h3 em, .hl {
  font-style: normal;
  color: var(--green);
}

.sec--navy h1 em, .sec--navy h2 em, .sec--navy h3 em, .sec--navy .hl,
.phero--navy h1 em, .phero--navy h2 em, .phero--navy h3 em, .phero--navy .hl {
  color: var(--green-lt);
}


/* ==========================================================================
   4. BUTTONS / LINKS
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 14px 24px;
  border: 0;
  border-radius: 4px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, transform .25s ease;
}

.btn--solid { background: var(--green); color: var(--white); }
.btn--solid:hover { background: var(--navy); color: var(--white); }

.btn--navy { background: var(--navy); color: var(--white); }
.btn--navy:hover { background: var(--green); color: var(--white); }

.btn--ghost {
  padding: 13px 24px;
  border: 1.5px solid var(--navy);
  background: transparent;
  color: var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--white); }

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

/* Header CTA. */
.btn--pill {
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: .3px;
  transition: background .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn--pill:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(63, 165, 53, .3);
}

.link-underline {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .4px;
  color: var(--green);
  border-bottom: 2px solid var(--green);
  padding-bottom: 3px;
  transition: color .25s ease, border-color .25s ease;
}
.link-underline:hover { color: var(--navy); border-bottom-color: var(--navy); }


/* ==========================================================================
   5. LAYOUT
   ========================================================================== */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* Long-form reading measure — used by a single article. */
.wrap--narrow { max-width: 820px; }

.sec { padding-block: clamp(48px, 6vw, 84px); }

.sec--white {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sec--navy { background: var(--navy); color: var(--white); }

.sec--tint { background: var(--bg); }

.sec--flush { padding-block: 0; }


/* ==========================================================================
   6. HEADER
   ========================================================================== */

.nav {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding: 14px 24px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 3px;
}

.brand-name {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -.2px;
  color: var(--navy);
}

.brand-sub {
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--green);
}

/*
 * Uploaded logos arrive at any size and aspect ratio, so the bar constrains the
 * height and lets the width follow. Capped per slot rather than globally: the
 * header row is set by the 47px button beside it, the footer has room to breathe.
 */
.brand-logo {
  display: block;
  max-height: 52px;
  width: auto;
}

.nav .brand-logo { max-height: 44px; }

.brand--foot .brand-logo { max-height: 76px; max-width: 100%; }

/* Sized for the French labels, the longest the site ships: at 18px / 13.5px the
   FR header ran 57px past the 1132px row and the actions wrapped to a second
   line. 14px / 13px leaves ~28px spare with the "Devenez partenaire" CTA. */
.nav__links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
}

.nav__links a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.nav__links a:hover,
.nav__links a[aria-current="page"],
.nav__links .current-menu-item > a,
.nav__links .current_page_item > a {
  border-bottom-color: var(--green);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  cursor: pointer;
  transition: border-color .25s ease;
}
.nav__toggle:hover { border-color: var(--green); }

.nav__toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
}

.nav__scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(11, 46, 99, .5);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.nav__scrim.is-open { opacity: 1; visibility: visible; }

.nav__mobile {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(320px, 86vw);
  height: 100%;
  padding: 24px;
  background: var(--white);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform .3s var(--ease);
  box-shadow: -12px 0 40px rgba(11, 46, 99, .16);
}
.nav__mobile.is-open { transform: translateX(0); }

.nav__mobile a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.nav__mobile a:last-child { border-bottom: 0; }
.nav__mobile a[aria-current="page"] { color: var(--green); }

.nav__mobile .btn { margin-top: 18px; width: 100%; }


/* ==========================================================================
   7. MODAL (native <dialog>)
   ========================================================================== */

.modal {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(11, 46, 99, .3);
}

.modal[open] {
  display: flex;
  flex-direction: column;
  animation: anfModalIn .38s var(--ease) both;
}

.modal::backdrop { background: rgba(11, 46, 99, .55); }

.modal__head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 24px 28px;
  background: var(--navy);
}

.modal__eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--green-lt);
}

.modal__title {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 28px;
  line-height: 1.05;
  color: var(--white);
  margin-top: 8px;
}

.modal__close {
  margin-left: auto;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .4);
  color: var(--white);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background .25s ease;
}
.modal__close:hover { background: rgba(255, 255, 255, .15); }

/* Scroll lives on the body so the navy head stays put. */
.modal__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 26px 28px 30px;
}

.modal__intro {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 22px;
}

.modal__thanks { text-align: center; padding: 40px 28px; }

.modal__thanks h2,
.modal__thanks .modal__title {
  font-family: var(--head);
  font-weight: 600;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--green);
}

.modal__thanks p {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px auto 0;
  max-width: 44ch;
}

.modal__note { font-size: 13px; color: #7C8790; }


/* ==========================================================================
   8. PAGE HERO
   ========================================================================== */

.phero {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(44px, 5.5vw, 76px) clamp(36px, 4.5vw, 60px);
  overflow: hidden;
}

.phero__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  animation: anfRise .6s ease both;
}

.phero__eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--navy);
}

.phero__title {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: .98;
  color: var(--navy);
  margin: 0 0 20px;
  animation: anfRise .7s ease .06s both;
}

.phero__rule {
  display: block;
  width: 56px;
  height: 3px;
  background: var(--green);
  margin-bottom: 22px;
  transform-origin: left;
  animation: anfGrow .7s var(--ease) .3s both;
}

.phero__lead {
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
  margin: 0 0 16px;
  animation: anfRise .7s ease .16s both;
}

.phero__intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 64ch;
  margin: 0;
  animation: anfRise .7s ease .24s both;
}

.phero__copy { min-width: 0; }

/* Image variant — copy on white, photo filling the right half edge to edge
   with a curved left side, a pale swoosh and a hairline green arc tracing it. */
.phero--image { padding-block: 0; }

/* Left gutter mirrors .wrap's centering so the copy lines up with the logo.
   % (not vw) keeps the scrollbar out of the maths. */
.phero__inner--image {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 49vw;
  min-height: clamp(420px, 32vw, 540px);
  padding-left: max(24px, calc((100% - var(--wrap)) / 2 + 24px));
  overflow: hidden;
}

.phero__inner--image > .phero__copy {
  align-self: center;
  padding: clamp(48px, 5vw, 76px) 40px clamp(40px, 4vw, 56px) 0;
}

.phero--image .phero__title {
  font-weight: 800;
  letter-spacing: -1px;
  font-size: clamp(40px, 5vw, 80px);
}

.phero--image .phero__lead {
  font-weight: 400;
  font-size: clamp(19px, 1.7vw, 25px);
  line-height: 1.3;
  color: #3F4B5B;
  margin-bottom: 18px;
}

.phero--image .phero__intro { font-size: 16.5px; max-width: 58ch; }

.phero__media {
  position: relative;
  min-width: 0;
}

/* Both curves anchor at the bottom-left and widen towards the top, so the
   green arc hugs the photo at the foot and pulls away from it at the head. */
.phero__media .plate {
  position: absolute;
  inset: 0;
  z-index: 2;
  border: 0;
  border-radius: 0;
  border-top-left-radius: 30% 100%;
}

.phero__media::before,
.phero__media::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.phero__media::before {
  inset: 0 0 0 -90px;
  z-index: 0;
  border-top-left-radius: 26% 100%;
  background: linear-gradient(100deg, rgba(227, 236, 247, 0) 10%, #E3ECF7 75%);
}

/* top:-2px tucks the box's straight top border out of view. */
.phero__media::after {
  inset: -2px 0 0 0;
  z-index: 1;
  border-top-left-radius: 21% 100%;
  border-left: 1.5px solid var(--green);
  border-top: 1.5px solid var(--green);
  mask-image: linear-gradient(to bottom, #000 45%, transparent 95%);
}

.phero__deco {
  position: absolute;
  z-index: 1;
  top: -110px;
  left: -175px;
  width: 350px;
  aspect-ratio: 1;
  pointer-events: none;
  background: url('../images/dot-burst.svg') center / contain no-repeat;
}

.phero__tag {
  position: absolute;
  z-index: 3;
  top: clamp(28px, 3vw, 44px);
  right: clamp(24px, 6vw, 110px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--navy);
  /* Frosted pad keeps the tag legible whatever photo an editor uploads. */
  padding: 14px 16px 14px 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(6px);
}

.phero__tag::after {
  content: '';
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 10px;
  background: var(--green);
}

@media (max-width: 900px) {
  .phero__inner--image {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-inline: 24px;
  }
  .phero__inner--image > .phero__copy { padding: 40px 0 28px; }
  .phero__media { height: clamp(220px, 56vw, 380px); margin-bottom: 36px; }
  .phero__media .plate { border-radius: 10px; }
  .phero__media::before,
  .phero__media::after,
  .phero__deco,
  .phero__tag { display: none; }
}

/* Inverted hero. */
.phero--navy {
  background: var(--navy);
  color: var(--white);
  border-bottom: 0;
}
.phero--navy .phero__eyebrow { color: rgba(255, 255, 255, .82); }
.phero--navy .phero__title { color: var(--white); }
.phero--navy .phero__rule { background: var(--green-lt); }
.phero--navy .phero__lead { color: var(--white); }
.phero--navy .phero__intro { color: rgba(255, 255, 255, .82); }


/* ==========================================================================
   9. HOME HERO
   ========================================================================== */

.hhero {
  background: linear-gradient(180deg, #FFFFFF 0%, #F4F6F5 100%);
  border-bottom: 1px solid var(--line);
}

.hhero__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
  padding-block: clamp(24px, 3vw, 44px) clamp(36px, 5vw, 60px);
}

.hhero__kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  animation: anfRise .6s ease both;
}

.hhero__dash {
  display: block;
  width: 34px;
  height: 3px;
  background: var(--green);
  transform-origin: left;
  animation: anfGrow .7s var(--ease) .25s both;
}

.hhero__eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--navy);
}

/* The title sizes to its own column, not the viewport: an 11-letter word
   ("COMMUNITIES", "COMMUNAUTÉS") needs ~7.9em, so 12.5cqi keeps it whole.
   The 34px floor lets that still hold in a 320px phone's column. */
.hhero__col { container-type: inline-size; }

.hhero__title {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(34px, 12.5cqi, 74px);
  line-height: .95;
  color: var(--navy);
  margin: 0 0 24px;
  animation: anfRise .75s ease .06s both;
  /* Longer words ("RESPONSABILISER") still outgrow the column; hyphenate by
     the page's lang, break as a last resort. */
  hyphens: auto;
  overflow-wrap: break-word;
}

.hhero__lead {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--navy);
  margin: 0 0 20px;
  animation: anfRise .75s ease .16s both;
}

.hhero__intro {
  font-size: 16.5px;
  line-height: 1.68;
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 30px;
  animation: anfRise .75s ease .24s both;
}

.hhero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  animation: anfRise .75s ease .32s both;
}

.hhero__media {
  display: grid;
  gap: 12px;
  min-width: 0;
  animation: anfRise .9s ease .2s both;
}

/* Hero slider. Swiper (assets/vendor/swiper) moves it; these rules dress it.
   Without JS the first photo shows and the strip below still reads. */
.hslider {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  box-shadow: 0 22px 44px -28px rgba(11, 46, 99, .45);
}

.hslider .plate { border: 0; border-radius: 0; }

/* Slow push-in on the photo on screen. The 1s delay on the way out holds the
   zoom while the slide fades, then resets it unseen. */
.hslider .plate img { transition: transform 0s 1s; }
.hslider .swiper-slide-active .plate img {
  transform: scale(1.06);
  transition: transform 6.5s linear;
}

.hslider__nav {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.hslider__btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 8px 18px -8px rgba(11, 46, 99, .5);
  transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.hslider__btn:hover { background: var(--green); color: var(--white); }
.hslider__btn:active { transform: scale(.94); }
.hslider__btn:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

.hslider__btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hslider-thumbs { width: 100%; }

/* Pre-init size matches slidesPerView 4 / spaceBetween 12, so the strip does
   not reflow when Swiper takes over. */
.hslider-thumbs .swiper-slide {
  width: calc((100% - 36px) / 4);
  margin-right: 12px;
  position: relative;
  cursor: pointer;
  opacity: .5;
  transition: opacity .3s var(--ease);
}

.hslider-thumbs .swiper-slide:hover,
.hslider-thumbs .swiper-slide-thumb-active { opacity: 1; }

.hslider__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 0 0 6px 6px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
}

/* --p is the autoplay progress JS writes; with autoplay off the bar is full. */
.swiper-slide-thumb-active .hslider__bar { transform: scaleX(var(--p, 1)); }


/* ==========================================================================
   10. FACTS BAR
   ========================================================================== */

.facts { background: var(--navy); }

.facts__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 4px;
  padding-block: 24px;
}

.facts__item {
  padding: 8px 16px;
  color: var(--white);
}

.facts__icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  margin-bottom: 13px;
  color: var(--green-lt);
  border: 1px solid rgba(111, 201, 106, .42);
  border-radius: 50%;
}

.facts__icon-svg { width: 17px; height: 17px; display: block; }

.facts__item + .facts__item { border-left: 1px solid rgba(255, 255, 255, .2); }

.facts__label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--green-pale);
}

.facts__value {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--white);
  margin-top: 6px;
}


/* ==========================================================================
   11. SECTION HEAD
   ========================================================================== */

.shead { margin-bottom: 32px; }

.shead__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.shead__eyebrow {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--navy);
}

.shead__title {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1;
  color: var(--navy);
  margin: 0 0 20px;
}

.shead__lead {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
  margin: 0 0 16px;
}

.shead__intro {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 66ch;
  margin: 0;
}

.shead__link {
  margin-left: auto;
  font-size: 14px;
  font-weight: 800;
  color: var(--navy);
  transition: color .25s ease;
}
.shead__link:hover { color: var(--green); }

/* Head + right-hand link on one row. */
.shead--row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px;
}
.shead--row > div { flex: 1 1 auto; min-width: 0; }
.shead--row .shead__title { margin-bottom: 0; }

/* Inverted head inside navy sections. */
.sec--navy .shead__eyebrow { color: rgba(255, 255, 255, .82); }
.sec--navy .shead__title { color: var(--white); }
.sec--navy .shead__lead { color: var(--white); }
.sec--navy .shead__intro { color: rgba(255, 255, 255, .82); }
.sec--navy .shead__link { color: var(--white); }
.sec--navy .shead__link:hover { color: var(--green-lt); }

/* Standalone label where there is no heading. */
.slabel {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 22px;
}

.sec--navy .slabel { color: var(--green-lt); }


/* ==========================================================================
   12. CARDS / GRIDS
   ========================================================================== */

.grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(var(--min, 250px), 1fr));
}

.grid--14 { gap: 14px; }
.grid--18 { gap: 18px; }
.grid--20 { gap: 20px; }

/* Seamless hairline grid — 1px gaps over a --line ground. */
/* Seamless hairline grid.
 *
 * The obvious build — a --line background showing through 1px gaps — leaves the
 * grey visible in whatever cells the last row does not fill, which reads as a
 * rendering fault rather than a design. Drawing the rule as an outline on each
 * card instead means adjacent outlines meet inside the 1px gap to form one
 * line, and an unfilled cell stays the page colour. */
.grid--hair {
  gap: 1px;
  border-radius: 8px;
  padding: 1px;
}

.grid--hair .card {
  border: 0;
  border-radius: 0;
  padding: 26px;
  outline: 1px solid var(--line);
}

.grid--hair .card:hover {
  transform: none;
  box-shadow: none;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background .3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(11, 46, 99, .09);
}

.card--top-green { border-top: 3px solid var(--green); }
.card--top-navy { border-top: 3px solid var(--navy); }

/* Work areas read as a deliberate two-row set rather than six cramped columns. */
.work-areas-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.work-areas-grid .card {
  min-height: 100%;
}

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

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

.card__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--green);
  background: rgba(63, 165, 53, .1);
  border: 1px solid rgba(63, 165, 53, .22);
  border-radius: 50%;
}

.card__icon-svg { width: 20px; height: 20px; display: block; }

.card--top-navy .card__icon,
.card--label .card__icon { color: var(--navy); }

.card--label .card__icon {
  margin-bottom: 14px;
  background: rgba(11, 46, 99, .07);
  border-color: rgba(11, 46, 99, .16);
}

.card--navy .card__icon,
.sec--navy .card__icon {
  color: var(--green-lt);
  background: rgba(111, 201, 106, .12);
  border-color: rgba(111, 201, 106, .3);
}

.card--tint { background: var(--tint); }
.card--tint:hover { background: var(--white); }

.card--navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.card--navy:hover { box-shadow: 0 14px 34px rgba(11, 46, 99, .22); }
.card--navy .card__title { color: var(--white); }
.card--navy .card__copy { color: rgba(255, 255, 255, .88); }
.card--navy .card__num,
.card--navy .card__label,
.card--navy .card__value { color: var(--green-lt); }

/* No lift — background only. */
.card--flat:hover {
  transform: none;
  box-shadow: none;
}

/* Whole card is a link. */
.card--link { display: block; }
.card--link:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--green);
}

.card__num {
  font-family: var(--head);
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  color: var(--green);
}

.card__title {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 8px;
}

.card__num + .card__title { margin-top: 8px; }

.card__copy {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

.card__value {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1;
  color: var(--green);
}

.card__value--navy,
.card--top-navy .card__value { color: var(--navy); }

.card__value + .card__title { margin-top: 12px; }

.card__media { margin-top: 16px; }

/* Media card where the plate runs edge to edge. */
.card__body { padding: 22px; }
/* Media cards let the plate run edge to edge, so the padding moves inside to
   .card__body. Named explicitly rather than left to :has() alone — the class is
   on the element already, and :has() is unsupported before 2023. */
.card--media,
.card:has(> .card__body) { padding: 0; overflow: hidden; }

.card--media .plate { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.card > .card__media:first-child { margin-top: 0; }


/* ==========================================================================
   13. STATS
   ========================================================================== */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1px;
  background: var(--line);
}

.sec--navy .stats,
.stats--navy { background: rgba(255, 255, 255, .2); }

.stat {
  background: var(--white);
  padding: 26px 20px;
}

.sec--navy .stat,
.stats--navy .stat { background: var(--navy); }

.stat__value {
  font-family: var(--head);
  font-weight: 600;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1;
  color: var(--green);
}

.stat__value--navy { color: var(--navy); }

.sec--navy .stat__value,
.stats--navy .stat__value { color: var(--green-lt); }

.stat__label {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--navy);
  margin: 10px 0 8px;
}

.sec--navy .stat__label,
.stats--navy .stat__label { color: var(--white); }

.stat__copy {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.sec--navy .stat__copy,
.stats--navy .stat__copy { color: rgba(255, 255, 255, .78); }


/* ==========================================================================
   14. CHIPS
   ========================================================================== */

.chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--min, 140px), 1fr));
  gap: 12px;
}

/* Percent-based --min values (fixed column counts) don't shrink on their own; force 2 columns below tablet width. */
@media (max-width: 640px) {
  .chips {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.chip {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  background: var(--bg);
  border-radius: 4px;
  padding: 10px 12px;
  transition: background .25s ease, color .25s ease, border-color .3s ease, transform .3s ease;
}
.chip:hover { background: var(--green); color: var(--white); }

.chips--icons .chip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 58px;
  padding: 12px 14px;
}

.chip__icon {
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--green);
  background: #E6F2E3;
  border-radius: 50%;
}

.chip__icon .card__icon-svg {
  width: 17px;
  height: 17px;
}

.chips--icons .chip:hover .chip__icon {
  color: var(--white);
  background: rgba(255, 255, 255, .18);
}

/* Outlined priority tile. */
.chip--outline {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--navy);
}
.chip--outline:hover {
  background: var(--white);
  border-color: var(--green);
  color: var(--green);
}

/* Larger impact-area tile. */
.chip--tile {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--navy);
}
.chip--tile:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--green);
  transform: translateY(-4px);
}

/* Impact-area tiles stay white on hover, so keep their icon contrast instead
   of inheriting the white-on-green treatment used by filled chips. */
.chips--icons .chip--tile:hover .chip__icon {
  color: var(--green);
  background: #E6F2E3;
}

/* Pill — social links. */
.chips--inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip--pill {
  border-radius: 999px;
  padding: 10px 16px;
  background: var(--bg);
  font-size: 13px;
  font-weight: 700;
}
.chip--pill:hover { background: var(--green); color: var(--white); }

/* On navy. */
.chips--navy .chip {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 5px;
  padding: 14px 16px;
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
}
.chips--navy .chip:hover {
  background: var(--green);
  color: var(--white);
  transform: translateX(4px);
}


/* ==========================================================================
   15. CALLOUTS / QUOTES / PANELS
   ========================================================================== */

.callout {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 6px;
  padding: 24px 26px;
  font-size: 16.5px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--navy);
  margin: 30px 0 0;
}

.callout p { margin: 0; }

.callout--tint { background: var(--tint); }

.callout--navy {
  background: var(--navy);
  border: 0;
  border-radius: 8px;
  padding: 26px 28px;
  font-family: var(--head);
  font-weight: 500;
  font-size: clamp(20px, 2.4vw, 27px);
  line-height: 1.35;
  color: var(--white);
}
.callout--navy .hl,
.callout--navy em { color: var(--green-lt); font-style: normal; }

.quote {
  background: var(--navy);
  border-radius: 8px;
  padding: clamp(28px, 4vw, 44px);
  color: var(--white);
}

.quote__mark {
  font-family: var(--head);
  font-size: 46px;
  line-height: .6;
  color: var(--green-lt);
}

.quote__text {
  font-size: clamp(20px, 2.4vw, 27px);
  font-weight: 600;
  line-height: 1.45;
  margin: 18px 0 0;
}

.quote__rule {
  display: block;
  width: 90px;
  height: 3px;
  background: var(--green-lt);
  margin-top: 26px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(11, 46, 99, .08);
  border-color: #C6D6C4;
}

.panel--navy {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}
.panel--navy:hover {
  transform: none;
  border-color: var(--navy);
  box-shadow: 0 14px 34px rgba(11, 46, 99, .22);
}

.panel__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.panel__icon,
.office__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--green);
  background: rgba(63, 165, 53, .1);
  border: 1px solid rgba(63, 165, 53, .22);
  border-radius: 50%;
}

.panel--navy .panel__icon {
  color: var(--green-lt);
  background: rgba(111, 201, 106, .12);
  border-color: rgba(111, 201, 106, .3);
}

.panel__icon .card__icon-svg,
.office__icon .card__icon-svg {
  width: 20px;
  height: 20px;
  display: block;
}

.office__icon { margin-bottom: 18px; }

.panel--navy .panel__label { color: var(--green-pale); }

.panel__body {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
}
.panel__body p { margin: 0 0 12px; }
.panel__body p:last-child { margin-bottom: 0; }
.panel__body h3 {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.2;
  text-transform: none;
  color: var(--navy);
  margin: 0 0 12px;
}

.panel--navy .panel__body { color: rgba(255, 255, 255, .88); }
.panel--navy .panel__body h3 { color: var(--white); }

.panel__big {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 26px;
  line-height: 1.15;
  color: var(--green-lt);
}

.panel__sub {
  font-size: 16px;
  color: rgba(255, 255, 255, .85);
}


/* ==========================================================================
   16. FINANCING FLOW
   ========================================================================== */

.flow {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  margin-top: 24px;
}

.flow__label {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.flow__steps { display: grid; gap: 10px; }

.flow__step {
  background: var(--bg);
  border-radius: 5px;
  padding: 13px 16px;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
}

.flow__step--final {
  background: var(--navy);
  color: var(--white);
}

.flow__split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.flow__arrow {
  color: var(--green);
  font-size: 18px;
  line-height: 1;
}


/* ==========================================================================
   17. CTA BAND
   ========================================================================== */

.ctaband {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
}

.ctaband .btn { margin-left: auto; }

.ctaband__title {
  font-family: var(--head);
  font-weight: 600;
  text-transform: uppercase;
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  color: var(--navy);
  margin: 0 0 12px;
}

.ctaband__copy {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}

/* Translucent panel version, sits inside a navy section. */
.ctaband--panel {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  padding: 26px 28px;
}

.sec--navy .ctaband__title { color: var(--white); }
.sec--navy .ctaband__copy { color: rgba(255, 255, 255, .82); }


/* ==========================================================================
   18. FORMS (Contact Form 7 lives inside .form)
   ========================================================================== */

.form { display: grid; gap: 16px; }

/* The label's caption is a bare text node — Contact Form 7 wraps only the
   control, in .wpcf7-form-control-wrap — so the caption style has to live on
   the label itself, and every control inside it must opt back out. */
.form label {
  display: grid;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--navy);
  /* Default "normal" line-height on the caption reserves extra leading above
     the glyphs, reading as an oversized gap above each label. */
  line-height: 1.2;
}

/* CF7 emits fields as plain sibling <label> elements (no wrapper the .form
   grid gap can reach), so field-to-field spacing needs its own rule here —
   larger than the 7px caption-to-input gap above, so each label reads as
   grouped with its own input rather than the field before it. */
.form label + label,
.form label + input[type="submit"] { margin-top: 22px; }

.form label > span,
.form .form__label {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--navy);
}

.form input:not([type="submit"]):not([type="button"]),
.form select,
.form textarea {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--body);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  border-radius: 5px;
  background: #FAFBFA;
  color: var(--ink);
  transition: border-color .25s ease;
}

.form textarea { resize: vertical; }

/* CF7 renders the submit as <input type="submit">, which the control rules
   above would otherwise turn into another text field. class:btn class:btn--solid
   on the form tag supplies the look; this only stops the field styling and the
   label's uppercase tracking from leaking into it. */
.form input[type="submit"] {
  width: auto;
  justify-self: start;
  letter-spacing: .3px;
  text-transform: none;
  cursor: pointer;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  border-color: var(--green);
  outline: none;
}

.form input::placeholder,
.form textarea::placeholder { color: #97A1A9; }

/* Custom chevron so select does not inherit the OS control. */
.form select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 38px;
  background-color: #FAFBFA;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%230B2E63' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

/* CF7 wrappers. */
.form .wpcf7-form-control-wrap { display: block; }
.form p { margin: 0 0 16px; }
.form p:last-child { margin-bottom: 0; }
.form br { display: none; }

.wpcf7-not-valid-tip {
  font-size: 13px;
  color: #B3261E;
}

.wpcf7-response-output {
  font-size: 13px;
  border: 1px solid var(--line-2);
  border-radius: 4px;
  padding: 10px 14px;
  margin: 14px 0 0;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.failed .wpcf7-response-output { border-color: #B3261E; color: #B3261E; }

.wpcf7 form.sent .wpcf7-response-output { border-color: #C6DFC3; color: var(--green); }

.wpcf7-spinner { margin: 0 0 0 10px; }


/* ==========================================================================
   19. PLATES (photo placeholders)
   ========================================================================== */

.plate {
  position: relative;
  border-radius: 6px;
  border: 1px solid var(--line-2);
  overflow: hidden;
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.plate.is-empty {
  background-image: repeating-linear-gradient(135deg, var(--plate-a) 0 10px, var(--plate-b) 10px 20px);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}

.plate.is-empty span {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px;
  color: var(--plate-ink);
}

/* Large plates get the roomier caption. */
.hslider .plate.is-empty,
.plate--lg.is-empty { padding: 18px; }

.hslider .plate.is-empty span,
.plate--lg.is-empty span { font-size: 11.5px; }


/* ==========================================================================
   20. FOOTER
   ========================================================================== */

.site-foot {
  background: var(--navy);
  color: var(--white);
}

.site-foot__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 36px;
  padding: clamp(40px, 5vw, 64px) 24px 28px;
}

.site-foot .brand-name { color: var(--white); }
.site-foot .brand-sub { color: var(--green-lt); }

.site-foot__head {
  font-family: var(--body);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}

/* Short green rule under each heading, the same dash the hero kicker uses. */
.site-foot__head::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  margin-top: 10px;
  background: var(--green-lt);
}

.site-foot__links {
  display: grid;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
}

.site-foot__links a { color: rgba(255, 255, 255, .85); }
.site-foot__links a:hover { color: var(--green-lt); }

.site-foot__links a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-foot__icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: inline-grid;
  place-items: center;
  color: var(--green-lt);
  border: 1px solid rgba(111, 201, 106, .38);
  border-radius: 50%;
}

.site-foot__icon .card__icon-svg {
  width: 14px;
  height: 14px;
}

.site-foot__address {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.site-foot__address .site-foot__icon { margin-top: 2px; }

.entry-card__icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: var(--green);
  background: rgba(63, 165, 53, .1);
  border: 1px solid rgba(63, 165, 53, .22);
  border-radius: 50%;
}

.entry-card__icon .card__icon-svg {
  width: 19px;
  height: 19px;
}

.site-foot__text {
  font-size: 14.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .85);
}

.site-foot__tagline {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--white);
  max-width: 36ch;
  margin: 18px 0 0;
}

.site-foot__about {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .7);
  max-width: 40ch;
  margin: 12px 0 0;
}

.site-foot__bar { border-top: 1px solid rgba(255, 255, 255, .18); }

.site-foot__bar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 18px 24px;
  font-size: 13px;
  color: rgba(255, 255, 255, .6);
}

.site-foot__bar .wrap > :last-child { margin-left: auto; }


/* ==========================================================================
   21. WORDPRESS CORE + EDITOR CONTENT
   ========================================================================== */

.alignleft {
  float: left;
  margin: 0 24px 16px 0;
}

.alignright {
  float: right;
  margin: 0 0 16px 24px;
}

.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.alignwide, .alignfull { margin: 24px 0; }

.wp-caption { max-width: 100%; margin-bottom: 20px; }
.wp-caption img { display: block; }

.wp-caption-text,
.wp-element-caption {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 8px 0 0;
}

.gallery-caption { font-size: 13px; color: var(--muted); }

/* Generic page/post body copy. */
.entry-content {
  font-size: 16.5px;
  line-height: 1.72;
  color: var(--muted);
}

.entry-content > * { margin-block: 0 20px; }
.entry-content > :last-child { margin-bottom: 0; }

.entry-content h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.05;
  margin-block: 36px 16px;
}

.entry-content h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  line-height: 1.1;
  margin-block: 28px 14px;
}

.entry-content h4 {
  font-size: 18px;
  margin-block: 24px 12px;
}

.entry-content a {
  color: var(--green);
  border-bottom: 1px solid rgba(63, 165, 53, .4);
}
.entry-content a:hover { color: var(--navy); border-bottom-color: var(--navy); }

.entry-content ul,
.entry-content ol { padding-left: 22px; }

.entry-content li { margin-bottom: 8px; }

.entry-content blockquote {
  margin: 24px 0;
  padding: 20px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 6px;
  color: var(--navy);
  font-weight: 600;
}

.entry-content code,
.entry-content pre {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 14px;
}

.entry-content pre {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  overflow-x: auto;
}

.entry-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.entry-content th,
.entry-content td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
}

.entry-content th { background: var(--tint); color: var(--navy); }

.entry-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}

.entry-content img { border-radius: 6px; }

/* Archive listing. */
.entry-list {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.entry-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 26px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.entry-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 32px rgba(11, 46, 99, .09);
}

.entry-card h2,
.entry-card .entry-card__title {
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 10px;
}

.entry-card .entry-card__meta {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}

.entry-card p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 14px;
}

.entry-card--sm .entry-card__title { font-size: 18px; margin-bottom: 0; }

/* The whole card is the link, so the anchor has to be the layout box. */
.entry-card__link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.entry-card__link:hover .entry-card__title { color: var(--green); }

.entry-card__media {
  margin: -26px -26px 18px;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: var(--tint);
}
.entry-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.entry-card__more {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--green);
}

.entry-byline {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  margin: 18px 0 0;
}

.entry-back { margin: 32px 0 0; }

.entry-empty {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

/* the_posts_pagination() */
.pagination { margin-top: 36px; }

.pagination .nav-links,
.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.page-numbers {
  display: inline-block;
  min-width: 40px;
  padding: 10px 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}

.page-numbers:hover {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

.page-numbers.current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.page-numbers.dots {
  background: transparent;
  border-color: transparent;
}
.page-numbers.dots:hover { background: transparent; color: var(--navy); }

.page-links {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 24px;
  font-size: 14px;
  font-weight: 700;
}


/* ==========================================================================
   22. REVEAL / MOTION
   ========================================================================== */

@keyframes anfRise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@keyframes anfGrow {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes anfModalIn {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to   { opacity: 1; transform: none; }
}

/* Progressive enhancement: the hidden state is scoped to .js, which the inline
   script in header.php sets. Without JavaScript — or if this stylesheet loads
   and the script does not — every section stays visible rather than the page
   rendering as a blank scroll. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s ease, transform .7s var(--ease);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}


/* ==========================================================================
   23. RESPONSIVE
   ========================================================================== */

/* Header switches to the slide-in panel. */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-flex; }
  .nav__inner { gap: 14px; }
  .nav__actions { margin-left: auto; }
}

@media (min-width: 901px) {
  .nav__scrim,
  .nav__mobile { display: none; }
}

/* Stack the CTA band and the row-style section head. */
@media (max-width: 700px) {
  .ctaband { display: block; }
  .ctaband .btn { margin-left: 0; margin-top: 20px; }

  .shead--row { display: block; }
  .shead--row .shead__title { margin-bottom: 16px; }
  .shead__link { margin-left: 0; display: inline-block; }

  .site-foot__bar .wrap > :last-child { margin-left: 0; }

  .about-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-pillar:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .about-pillar:nth-child(4) { border-top: 1px solid var(--line); }
}

/* Facts items lose the divider once they stack. */
@media (max-width: 640px) {
  .facts__item + .facts__item { border-left: 0; }
}

@media (max-width: 480px) {
  .modal__head { padding: 20px; }
  .modal__body { padding: 20px 20px 24px; }
  .alignleft, .alignright { float: none; margin: 0 0 16px; }
}

/* Motion off. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   24. Template layout — the classes the page templates add on top of the
       component library above. Two-column splits, vertical stacks, and the
       handful of one-off panels that appear on a single page each.
   ========================================================================== */

/* Two-column layout used on every inner page. auto-fit rather than a fixed
   1fr 1fr so it collapses on its own without a breakpoint. */
.split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
	gap: clamp(28px, 4vw, 56px);
}

.split--start { align-items: start; }
.split--gap {
	gap: clamp(28px, 4vw, 48px);
	margin-top: clamp(40px, 5vw, 64px);
	align-items: start;
}

/* Vertical rhythm helper — a column of blocks with one consistent gap. */
.stack {
	display: grid;
	gap: 18px;
	align-content: start;
	margin-top: clamp(36px, 5vw, 60px);
}

.stack--16 {
	gap: 16px;
	margin-top: 0;
}

.panels {
	display: grid;
	gap: 18px;
	align-content: start;
}

.panels--row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 20px; }

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

/* Background card: pale-green ground with the Niger outline in its corner. */
.panel--map {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #F6FAF5, #EEF5ED);
	border-color: #DCE8DA;
	padding: clamp(26px, 3vw, 36px);
}

.panel--map > .panel__label,
.panel--map > .panel__body { position: relative; }

/* 9.5em breaks "A Brighter Future / for Niger" and clears the map. */
.panel--map .panel__body h3 {
	font-size: clamp(24px, 2.4vw, 34px);
	max-width: 9.5em;
	margin-bottom: 18px;
}

.panel__map {
	position: absolute;
	top: -6px;
	right: clamp(12px, 3%, 40px);
	width: clamp(110px, 28%, 170px);
	pointer-events: none;
}

.panel__map img { display: block; width: 100%; height: auto; }

@media (max-width: 600px) {
	.panel__map { position: relative; top: 0; right: auto; width: 120px; margin: -8px 0 14px auto; }
}

/* Pin sits on Niamey: 13% across, 85% down the outline's viewBox. */
.panel__pin {
	position: absolute;
	left: 13%;
	top: 85%;
	transform: translate(-5px, -50%);
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 11.5px;
	font-weight: 800;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--navy);
}

.panel__pin::before {
	content: '';
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--green);
	box-shadow: 0 0 0 4px rgba(63, 165, 53, .18);
}

/* Editor-authored copy inside a page section (About story, panel bodies). */
.prose p {
	font-size: 16.5px;
	line-height: 1.72;
	color: var(--muted);
	margin: 0 0 18px;
}

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

.story-media { margin-top: 30px; }

.about-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: clamp(32px, 4vw, 44px);
  container-type: inline-size;
}

.about-pillar {
  min-width: 0;
  padding: 6px 6px 10px;
  text-align: center;
}

.about-pillar + .about-pillar { border-left: 1px solid var(--line); }

.about-pillars__icon {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  margin: 0 auto 14px;
  color: var(--green);
  background: #E6F2E3;
  border-radius: 50%;
}

.about-pillars__icon .card__icon-svg { width: 30px; height: 30px; }

/* Give the commitment values clear separation from their intro copy. */
.panel .chips--icons {
  margin-top: 26px;
  row-gap: 16px;
}

/* min-content puts each word on its own line, as in the reference; cqi sizing
   keeps the longest word ("Opportunities") inside its quarter of the row. */
.about-pillar__label {
  width: min-content;
  margin: 0 auto;
  color: var(--navy);
  font-size: clamp(12.5px, 2.9cqi, 16.5px);
  font-weight: 600;
  line-height: 1.25;
}

@media (max-width: 700px) {
  .about-pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-pillar:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .about-pillar:nth-child(4) { border-top: 1px solid var(--line); }
  .about-pillar:nth-child(n+3) { padding-top: 20px; }
  .about-pillar__label { font-size: 15px; }
}

/* Mission / vision rows — a hairline above each block rather than a card. */
.ruled {
	border-top: 1px solid var(--line);
	padding: 22px 0 0;
	margin-top: 22px;
}

.ruled__label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 1.8px;
	text-transform: uppercase;
	color: var(--navy);
	margin-bottom: 10px;
}

.ruled__copy {
	font-size: 16px;
	line-height: 1.7;
	color: var(--muted);
	margin: 0;
}

/* The Impact page's figure band sits flush under its navy hero, so it needs
   the hairline rule the hero would otherwise have carried. */
.stats-rail {
	border-top: 1px solid rgba(255, 255, 255, 0.18);
	padding-top: 0;
}

.slabel--light { color: var(--green-lt); }

/* Translucent card for use on a navy ground. */
.card--glass {
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.16);
	color: #fff;
}

.card--glass:hover {
	transform: none;
	box-shadow: none;
	border-color: rgba(255, 255, 255, 0.3);
}

.card--glass .card__title { color: var(--green-lt); }
.card--glass .card__copy { color: rgba(255, 255, 255, 0.82); }

/* Navy call-to-action card at the foot of the Partnerships column. */
.card--cta {
	margin-top: 16px;
	padding: 28px;
}

.card--cta:hover {
	transform: none;
	box-shadow: none;
}

.card--cta__title {
	font-family: var(--head);
	font-weight: 500;
	font-size: 24px;
	line-height: 1.25;
	color: var(--green-lt);
}

.card--cta .card__copy {
	color: rgba(255, 255, 255, 0.85);
	margin: 14px 0 20px;
}

/* Card titles pick up the row's accent where the design tints them. */
.card__title--green,
.card__title--navy { color: var(--navy); }

/* Label cards — Impact focus and stories, Partnerships in action and promise.
   Small, uppercase, and set in the row's accent colour. */
.card--label .card__title {
	font-size: 13px;
	letter-spacing: 1.2px;
	text-transform: uppercase;
	margin-bottom: 10px;
}

.card--label .card__title--green { color: var(--green); }
.card--label .card__title--navy { color: var(--navy); }

.card--navy .card__title,
.card--navy .card__title--green,
.card--navy .card__title--navy,
.card--glass .card__title--green,
.card--glass .card__title--navy { color: var(--green-lt); }

/* Navy project counter on What We Do. */
.counter {
	margin-top: 26px;
	background: var(--navy);
	border-radius: 8px;
	padding: clamp(26px, 4vw, 38px);
	color: #fff;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 28px;
	align-items: center;
}

.counter__value {
	font-family: var(--head);
	font-weight: 600;
	font-size: clamp(44px, 6vw, 64px);
	line-height: 1;
	color: var(--green-lt);
}

.counter__label {
	font-family: var(--head);
	font-weight: 600;
	font-size: 22px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-top: 6px;
}

.counter__copy {
	font-size: 15px;
	line-height: 1.65;
	color: rgba(255, 255, 255, 0.8);
	margin: 14px 0 0;
}

/* The Contact page's form card. */
.formcard {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 8px;
	padding: clamp(26px, 4vw, 38px);
}

.formcard__eyebrow {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 2.2px;
	text-transform: uppercase;
	color: var(--green);
	margin-bottom: 10px;
}

.formcard__title {
	font-family: var(--head);
	font-weight: 600;
	text-transform: uppercase;
	font-size: clamp(26px, 3vw, 36px);
	line-height: 1.05;
	margin: 0 0 22px;
	color: var(--navy);
}

/* Contact card lines — free text where phones, emails and URLs become links. */
.panel__lines {
	display: grid;
	gap: 4px;
	font-size: 17px;
	font-weight: 700;
	color: var(--navy);
	line-height: 1.8;
}

.panel--navy .panel__lines,
.panel--navy .panel__lines a { color: #fff; }
.panel__lines a:hover { color: var(--green); }
.panel--navy .panel__lines a:hover { color: var(--green-lt); }
.panel__label--navy { color: var(--navy); }

/* Closing line on the Contact page's navy band. */
.closing {
	margin: 30px 0 0;
	font-family: var(--head);
	font-weight: 500;
	font-size: clamp(26px, 3.5vw, 42px);
	line-height: 1.4;
	color: #fff;
}

.ctaband__copy--light {
	color: #fff;
	font-size: 17px;
	font-weight: 600;
	max-width: 60ch;
}

/* Footer wordmark reuses .brand but sits on navy. */
.brand--foot { display: block; }
.brand--foot .brand-name,
.brand--foot .brand-sub { display: block; }
.brand--foot .brand-sub { margin-top: 4px; }
.brand--foot .brand-name { color: #fff; }
.brand--foot .brand-sub { color: var(--green-lt); }

/* Enquiry fallback shown when Contact Form 7 is unavailable. */
.form--fallback {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}

.form--fallback p {
	flex: 1 1 100%;
	margin: 0 0 4px;
	font-size: 15px;
	line-height: 1.7;
	color: var(--muted);
}

@media (max-width: 700px) {
	.counter { text-align: left; }
	.stack { margin-top: 32px; }
}

/* --- Wrappers the templates emit around the components above -------------- */

/* Grid children that only exist to group a column's contents. They carry no
   look of their own; naming them keeps the markup readable and gives the
   responsive rules something to hold on to. */
.hhero__col,
.shead__main,
.site-foot__col,
.counter__figure,
.ctaband__body {
	min-width: 0;
}

.ctaband__body { flex: 1 1 320px; }

/* The page hero's inner column. .phero already owns the section's background,
   border AND block padding, so this adds nothing but the horizontal gutter it
   inherits from .wrap — doubling the padding here is what made the navy hero
   twice as tall as the approved build. */
.phero__inner {
	padding-top: 0;
	padding-bottom: 0;
}

/* Figure band on a light ground — hairline gaps show the page colour through
   rather than the translucent white used on navy. */
.stats--light {
	background: var(--line);
	border: 1px solid var(--line);
	border-radius: 8px;
	overflow: hidden;
}

.stats--light .stat {
	background: #fff;
	transition: background 0.3s ease;
}

.stats--light .stat:hover { background: var(--tint); }
.stats--light .stat__label { color: var(--navy); }
.stats--light .stat__copy { color: var(--muted); }

/* Accent variants. The navy halves already exist above; these are their green
   counterparts, and the default when a row has no accent set. */
.stat__value--green,
.card__value--green { color: var(--green); }

.stats--navy .stat__value--green { color: var(--green-lt); }

/* Footer bottom bar. */
.site-foot__bar-inner {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	padding: 18px 24px;
	font-size: 13px;
	color: rgba(255, 255, 255, 0.6);
}

.site-foot__note { margin-left: auto; }

@media (max-width: 700px) {
	.site-foot__note { margin-left: 0; }
}

/* The skip link moves focus to <main tabindex="-1">. That focus is programmatic
   and not something the visitor navigated to, so it gets no ring — the ring on
   the skip link itself is what confirms the jump. */
#content:focus { outline: none; }

/* ==========================================================================
   25. GLOBAL OFFICES + LEADERSHIP
   ========================================================================== */

.offices { margin-top: 28px; }

.office {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.office__country {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--green);
}

.office__label {
  font-size: 19px;
  line-height: 1.2;
  margin: 0;
  color: var(--navy);
}

/* Offices carry more lines than a contact card, so they sit a size down. */
.office__lines {
  font-size: 15px;
  font-weight: 600;
  font-style: normal;
  line-height: 1.7;
  color: var(--muted);
}
.office__lines a { color: var(--navy); }

.team { margin-top: 28px; }

.team__card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team__photo {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  background: var(--tint);
  border: 1px solid var(--line);
}
.team__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.team__role {
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--green);
}

.team__name {
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
  color: var(--navy);
}

/* An unfilled seat still holds its place in the grid rather than collapsing. */
.team__name--empty {
  color: var(--line-3);
  font-family: var(--body);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
}

.team__copy {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}

/* ==========================================================================
   26. LANGUAGE SWITCHER
   ========================================================================== */

/*
 * TranslatePress 3.x renders two stacked copies of the control: an inert one
 * that only reserves space in the flow, and an absolutely-positioned live one
 * that grows downward as the list opens. Both carry .trp-language-switcher, so
 * anything painted on that selector paints twice — and any radius set there
 * inflates with the open panel, which is how a pill becomes a blob. Everything
 * visible therefore goes on :not([inert]), and the radius stays small enough to
 * read as a card at full height.
 *
 * The plugin themes itself through CSS custom properties written INLINE on the
 * wrapper, so overriding those needs !important; an external rule without it
 * loses to the inline value.
 */
.langsw { display: inline-flex; align-items: center; }

.langsw .trp-shortcode-switcher__wrapper {
  --font-size: 13px !important;
  --border-radius: 20px !important;
  --bg: transparent !important;
  --bg-hover: transparent !important;
  --text: var(--navy) !important;
  --text-hover: var(--green) !important;
  --border-width: 0px !important;
  --border-color: transparent !important;
  --flag-radius: 3px !important;
}

/* The live layer is the only thing that paints. 20px is half the closed height,
   so it matches the pill CTA beside it when shut and still reads as a rounded
   card when the list opens — 999px here is what made the blob. */
.langsw .trp-language-switcher:not([inert]) {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 20px;
  padding-block: 3px;
  box-shadow: 0 1px 2px rgba(11, 46, 99, .04);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.langsw .trp-language-switcher:not([inert]):hover {
  border-color: var(--line-3);
  box-shadow: 0 12px 28px rgba(11, 46, 99, .12);
}

/* Match the inert copy's height so opening the list shifts nothing. It is an
   inline-block, so vertical-align: top drops the ~5px baseline gap under it
   that made the wrapper taller and sat the pill above the CTA's centre line. */
.langsw .trp-language-switcher[inert] {
  padding-block: 3px;
  border: 1px solid transparent;
  vertical-align: top;
}

.langsw .trp-language-item {
  font-weight: 800;
  letter-spacing: .4px;
  border-radius: 6px;
}
.langsw .trp-language-item:hover { background: var(--tint); }

/* TranslatePress sets its own system-font stack on the label. */
.langsw .trp-language-item-name { font-family: var(--body); }

/*
 * A hairline between the current language and the ones you can switch to —
 * but ONLY while open. The plugin collapses the list with max-height: 0, which
 * zeroes the content box and nothing else, so a padding and a border left on
 * unconditionally keep painting: a 7px empty strip with a rule across it,
 * hanging under the closed pill. Both open-state hooks are the plugin's own.
 */
.langsw .trp-switcher-dropdown-list {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.langsw .is-open > .trp-switcher-dropdown-list,
.langsw [aria-expanded="true"] > .trp-switcher-dropdown-list {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
}

.langsw--mobile { display: flex; margin: 14px 0; }
.langsw--mobile .trp-shortcode-switcher__wrapper { width: 100%; }

/*
 * The footer bar and everything the list opens over are the same navy, so the
 * ghost treatment holds at full height — no white card punched into the band.
 */
.langsw--foot .trp-shortcode-switcher__wrapper {
  --text: rgba(255, 255, 255, .82) !important;
  --text-hover: #fff !important;
}

.langsw--foot .trp-language-switcher:not([inert]) {
  background: transparent;
  border-color: rgba(255, 255, 255, .26);
  box-shadow: none;
}
.langsw--foot .trp-language-switcher:not([inert]):hover {
  border-color: rgba(255, 255, 255, .45);
  box-shadow: none;
}
.langsw--foot .trp-language-item:hover { background: rgba(255, 255, 255, .08); }

/*
 * The footer switcher sits in the last band on the page, so opening downward
 * pushes the list off the bottom edge with nothing to scroll to. Anchor the
 * live layer to the bottom of its wrapper and reverse the inner column, and it
 * becomes a drop-up: the list grows above the current language instead.
 */
.langsw--foot .trp-language-switcher:not([inert]) {
  top: auto;
  bottom: 0;
}

/* The shortcode panel is a plain block, so the reversal goes on the panel. */
.langsw--foot .trp-language-switcher {
  display: flex;
  flex-direction: column-reverse;
}

.langsw--foot .trp-switcher-dropdown-list {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

/* Drop-up, so the rule sits under the list rather than over it. */
.langsw--foot .is-open > .trp-switcher-dropdown-list,
.langsw--foot [aria-expanded="true"] > .trp-switcher-dropdown-list {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  margin-bottom: 6px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

/* The header bar is tight below the tablet breakpoint — the drawer keeps one. */
@media (max-width: 900px) {
  .nav__actions .langsw { display: none; }
}

/* Leadership directory: editable contacts, with room for multiple numbers. */
.team {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
  align-items: start;
}
.team__card {
  min-width: 0;
  gap: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgb(11 46 99 / 4%);
}
.team__header { padding: 28px 30px 24px; background: linear-gradient(120deg, #f0f6f2, #fff); }
.team__role { color: #287523; font-size: 11px; line-height: 1.7; letter-spacing: 1.2px; margin-bottom: 10px; }
.team__name { font-size: clamp(20px, 2vw, 26px); line-height: 1.35; text-transform: none; overflow-wrap: anywhere; }
.team__photo { width: 80px; margin-bottom: 18px; border-radius: 12px; }
.team__copy { padding: 20px 30px 0; }
.team__details { padding: 4px 30px 26px; }
.team__numbers { margin: 0; }
.team__number { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 14px; padding: 11px 0; border-bottom: 1px solid #edf0ee; font-size: 14px; line-height: 1.6; }
.team__number dt { color: var(--muted); }
.team__number dd { margin: 0; min-width: 0; }
.team__number a { display: inline-block; font-weight: 700; font-variant-numeric: tabular-nums; padding: 3px 0; overflow-wrap: anywhere; }
.team__number small { display: block; color: var(--muted); font-size: 12px; }
.team__office { padding-top: 20px; }
.team__label { display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 6px; }
.team__office address { font-style: normal; color: var(--ink); font-size: 14px; line-height: 1.8; }
.team__links { display: flex; flex-wrap: wrap; gap: 18px 30px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.team__links a { min-width: 0; font-size: 13px; font-weight: 700; overflow-wrap: anywhere; }
.team__details a:hover { color: #287523; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 760px) {
  .team { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .team__header { padding: 24px 22px 20px; }
  .team__details { padding: 4px 22px 24px; }
  .team__copy { padding: 20px 22px 0; }
  .team__number { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; font-size: 13px; }
}

/* Keep the existing values grid within the Who We Are page on narrow phones. */
.page-template-about .stack { min-width: 0; }
.page-template-about .stack > .grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 250px)), 1fr));
}

/* Compact leadership cards; native disclosure also works without JavaScript. */
.team__card { display: block; }
.team__summary { position: relative; padding: 24px 54px 24px 24px; background: linear-gradient(120deg, #f0f6f2, #fff); list-style: none; }
summary.team__summary { cursor: pointer; }
.team__summary::-webkit-details-marker { display: none; }
.team__summary::marker { content: ''; }
.team__summary .team__name { font-size: 20px; line-height: 1.4; }
.team__primary { display: inline-block; margin-top: 10px; padding: 3px 0; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.team__primary:hover { text-decoration: underline; text-underline-offset: 4px; }
.team__expand { position: absolute; right: 22px; top: 32px; width: 9px; height: 9px; border-right: 2px solid #287523; border-bottom: 2px solid #287523; transform: rotate(45deg); transition: transform .2s ease; }
.team__card[open] .team__expand { transform: rotate(225deg); }
.team__card[open] { box-shadow: 0 12px 32px rgb(11 46 99 / 9%); }
.team__summary:focus-visible { outline: 3px solid var(--navy); outline-offset: -5px; border-radius: 12px; }
.team__expanded { border-top: 1px solid var(--line); padding-top: 20px; }
.team__expanded > .team__photo { margin: 0 24px 18px; }
.team__expanded > .team__copy { padding: 0 24px 18px; }
.team__expanded .team__details { padding: 0 24px 24px; }
.team__expanded .team__number { grid-template-columns: 78px minmax(0, 1fr); gap: 10px; font-size: 13px; }
@media (min-width: 1100px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .team__expand { transition: none; } }

.team__summary .team__role { font-size: 10px; letter-spacing: .8px; line-height: 1.6; margin-bottom: 8px; }
