@charset "utf-8";
/* ---------------------------------------------------------------------------
   El Shaddai Ministries International - esmihaiti.org
   One stylesheet. Replaces publicstyle.css + responsive.css + mbcsmbmcp.css +
   layerslider.css + Window.Metro.css + feature.presenter + instalink (~90 KB
   of CSS driving a fixed 1200px table layout with no mobile menu at all).

   The palette is the CMS's own, moved far enough to clear WCAG AA:
     blue   #00539D  7.71:1 on white - headings, header, primary button
     green  #0B983A  3.77:1 - kept for decoration only; text uses #0A7C30
                     (5.33:1) and white-on-green bands use #07752C (5.85:1)
     the four pillar colours are the ones baked into the CMS's own tiles.
--------------------------------------------------------------------------- */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fonts/open-sans.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('/assets/fonts/open-sans-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --blue: #00539d;
  --blue-dark: #003f77;
  --blue-tint: #eef4fa;
  --green: #0b983a;
  --green-ink: #0a7c30;
  --green-deep: #07752c;
  --yellow: #fbd800;
  --red: #bb212d;
  --ink: #1f2328;
  --ink-soft: #4a5158;
  --rule: #dfe3e8;
  --page: #ffffff;
  --wash: #f6f8fa;
  --shell: 1200px;
  --prose: 74ch;
  --gap: 28px;
  --pad: clamp(16px, 4vw, 32px);
  --head: 64px;            /* masthead height, kept in sync by esmi.js */
  --radius: 6px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .07);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 400 17px/1.65 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI',
        Roboto, Helvetica, Arial, sans-serif;
  overflow-wrap: break-word;
}

img, svg, video { max-width: 100%; }
img { height: auto; }

a { color: var(--green-ink); }
a:hover, a:focus-visible { color: var(--blue); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 2px;
}

h1, h2, h3, h4, h5, h6 { line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.5rem); color: #2b3138; letter-spacing: -.015em; }
h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.65rem); color: var(--blue); }
h3 { font-size: 1.15rem; color: var(--blue-dark); }
h4, h5, h6 { font-size: 1.02rem; color: var(--ink); }
p { margin: 0 0 1.1em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

.shell { max-width: var(--shell); margin-inline: auto; padding-inline: var(--pad); }
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: #fff; color: var(--blue); padding: 12px 18px; font-weight: 700;
}
.skip:focus { left: 8px; top: 8px; }
.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- utility bar ------------------------------------------------------- */
.util { background: var(--blue-dark); color: #fff; font-size: .85rem; }
.util .shell { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.util a { color: #fff; text-decoration: none; }
.util a:hover, .util a:focus-visible { color: #fff; text-decoration: underline; }
.util-mail { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.util-mail svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; }
.util-social { display: flex; align-items: center; gap: 6px; }
.util-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
}
.util-social a:hover, .util-social a:focus-visible { background: rgba(255, 255, 255, .18); }
.util-social svg { width: 17px; height: 17px; fill: currentColor; }
@media (max-width: 719px) { .util { display: none; } }

/* --- masthead ---------------------------------------------------------- */
.masthead {
  position: sticky; top: 0; z-index: 60;
  background: #fff; border-bottom: 1px solid var(--rule);
}
.masthead .shell {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--head);
}
.brand { display: flex; align-items: center; flex: 0 0 auto; margin-right: auto; }
.brand img { width: 176px; height: 60px; display: block; }
@media (min-width: 900px) { .brand img { width: 220px; height: 75px; } }
/* At 375px the lockup, a give button and a labelled Menu button do not fit on
   one line together, and the give button is the one that must not go. */
@media (max-width: 559px) {
  .masthead .shell { gap: 8px; }
  .brand img { width: 132px; height: 45px; }
  .nav-toggle { padding: 11px; }
  .masthead > .shell > .btn-give { padding: 9px 12px; font-size: .88rem; }
  .nav-toggle .label { position: absolute; width: 1px; height: 1px; overflow: hidden;
                       clip: rect(0 0 0 0); clip-path: inset(50%); }
}
@media (max-width: 359px) {
  .brand img { width: 112px; height: 38px; }
  .masthead > .shell > .btn-give { padding: 9px 9px; font-size: .82rem; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 11px 22px; border-radius: var(--radius); border: 1px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none;
  cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.btn-give { background: var(--green-deep); color: #fff; }
.btn-give:hover, .btn-give:focus-visible { background: #055f23; color: #fff; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--blue-dark); color: #fff; }
.btn-ghost { border-color: currentColor; color: inherit; background: transparent; }
.btn-ghost:hover, .btn-ghost:focus-visible { background: rgba(255, 255, 255, .16); color: inherit; }
.btn-sm { padding: 8px 16px; font-size: .92rem; }

/* --- navigation -------------------------------------------------------- */
.nav-toggle {
  display: inline-flex; align-items: center; gap: 9px;
  background: none; border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 9px 13px; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
}
.nav-toggle:hover { border-color: var(--blue); color: var(--blue); }
.nav-toggle .bars { position: relative; width: 18px; height: 12px; }
.nav-toggle .bars i,
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: ''; position: absolute; left: 0; right: 0; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars i { top: 5px; }
.nav-toggle .bars::after { bottom: 0; }
[aria-expanded="true"].nav-toggle .bars::before { transform: translateY(5px) rotate(45deg); }
[aria-expanded="true"].nav-toggle .bars i { opacity: 0; }
[aria-expanded="true"].nav-toggle .bars::after { transform: translateY(-5px) rotate(-45deg); }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav-link, .nav-btn {
  display: flex; align-items: center; gap: 6px;
  font: inherit; font-weight: 600; color: var(--ink);
  text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-btn .caret { width: 9px; height: 9px; flex: none; transition: transform .2s; }
.nav-btn .caret path { fill: none; stroke: currentColor; stroke-width: 2.2; }

/* ---- phone / tablet: off-canvas drawer, starting BELOW the masthead ---- */
@media (max-width: 1079px) {
  .nav {
    position: fixed; z-index: 55;
    top: var(--head); left: 0; right: 0; bottom: 0;
    background: #fff; overflow-y: auto; overscroll-behavior: contain;
    padding: 8px var(--pad) 48px;
    transform: translateX(-100%); visibility: hidden;
    transition: transform .25s ease, visibility .25s;
    -webkit-overflow-scrolling: touch;
  }
  .nav[data-open="true"] { transform: none; visibility: visible; }
  .nav > ul > li { border-bottom: 1px solid var(--rule); }
  .nav-link, .nav-btn { width: 100%; padding: 15px 2px; font-size: 1.06rem; }
  .nav-btn { justify-content: space-between; }
  .nav-btn .caret { width: 12px; height: 12px; }
  .nav-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
  .nav-sub { display: none; padding: 0 0 12px 14px; border-left: 3px solid var(--blue-tint); margin-left: 2px; }
  .nav-sub[data-open="true"] { display: block; }
  .nav-sub a { display: block; padding: 11px 2px; color: var(--ink-soft); text-decoration: none; }
  .nav-sub a:hover, .nav-sub a:focus-visible { color: var(--blue); }
  .nav > ul > li.nav-give,
  .nav > ul > li.nav-util { border-bottom: 0; }
  .nav-give { margin-top: 22px; }
  .nav-give .btn { width: 100%; padding-block: 15px; }
  .nav-util { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--rule); }
  .nav-util a { color: var(--ink-soft); text-decoration: none; }
  .nav-util li { padding: 6px 0; }
  .nav-util .util-social { margin-top: 10px; }
  .nav-util .util-social a { color: var(--blue); }
  .nav-util .util-social svg { fill: currentColor; }
  /* The masthead Donate button hides on a phone, where the drawer carries a
     full-width one instead - but the rule has to name the MASTHEAD's own
     child. `.masthead .btn-give` also matches the drawer's, because the nav
     lives inside the masthead, and that hid the only give button on mobile. */
  .masthead > .shell > .btn-give { padding: 9px 14px; }
  body[data-nav="open"] { overflow: hidden; }
  /* the backdrop must sit UNDER the drawer and under the masthead, or it traps
     the drawer it is meant to dim - the same trap two sibling sites hit */
  .backdrop {
    position: fixed; inset: var(--head) 0 0; z-index: 50;
    background: rgba(15, 23, 32, .45); opacity: 0; pointer-events: none;
    transition: opacity .25s;
  }
  body[data-nav="open"] .backdrop { opacity: 1; pointer-events: auto; }
}

/* ---- desktop: horizontal bar with real dropdown panels ---------------- */
/* The bar needs 1137px for the lockup, six items and the Donate button at
   full size - measured, not guessed - so it cannot start at 1024. Between
   1080 and 1280 everything is one step smaller, which brings the same bar
   down to ~1000px; above 1280 it is full size. */
@media (min-width: 1080px) {
  .nav-toggle, .nav-give, .nav-util { display: none; }
  .nav { display: block; }
  .nav > ul { display: flex; align-items: center; gap: 4px; }
  .nav > ul > li { position: relative; }
  .nav-link, .nav-btn { padding: 10px 13px; border-radius: var(--radius); white-space: nowrap; }
  .nav-link:hover, .nav-btn:hover,
  .nav-link:focus-visible, .nav-btn:focus-visible { background: var(--blue-tint); color: var(--blue); }
  .nav [aria-current="page"], .nav [data-current="true"] { color: var(--blue); box-shadow: inset 0 -3px 0 var(--blue); }
  .nav-btn[aria-expanded="true"] { background: var(--blue-tint); color: var(--blue); }
  .nav-btn[aria-expanded="true"] .caret { transform: rotate(180deg); }
  .nav-sub {
    position: absolute; top: calc(100% + 6px); left: 0; min-width: 250px;
    background: #fff; border: 1px solid var(--rule); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 6px; display: none;
  }
  .nav-sub[data-open="true"] { display: block; }
  .nav-sub a {
    display: block; padding: 10px 12px; border-radius: 4px;
    color: var(--ink); text-decoration: none; white-space: nowrap;
  }
  .nav-sub a:hover, .nav-sub a:focus-visible { background: var(--blue-tint); color: var(--blue); }
  .backdrop { display: none; }
}
@media (min-width: 1080px) and (max-width: 1279px) {
  .brand img { width: 182px; height: 62px; }
  .masthead .shell { gap: 12px; }
  .nav-link, .nav-btn { padding: 9px 9px; font-size: .95rem; }
  .masthead > .shell > .btn-give { padding: 8px 13px; font-size: .9rem; }
}

/* --- hero -------------------------------------------------------------- */
.hero { position: relative; background: #0d2135; color: #fff; overflow: hidden; }
.hero picture, .hero > img { position: absolute; inset: 0; }
.hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0, 36, 72, .96) 0%, rgba(0, 45, 88, .93) 34%, rgba(0, 63, 119, .74) 62%, rgba(0, 63, 119, .55) 100%);
}
.hero .shell { position: relative; z-index: 1; padding-block: clamp(48px, 9vw, 96px); }
.hero-copy { max-width: 40ch; }
.hero h1 { color: #fff; margin-bottom: .5em; text-wrap: balance; }
.hero p { font-size: clamp(1.02rem, .96rem + .4vw, 1.2rem); color: #e7eef6; margin-bottom: 1.6em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- page banner ------------------------------------------------------- */
.banner { position: relative; background: var(--blue); color: #fff; overflow: hidden; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.banner .shell { position: relative; z-index: 1; padding-block: clamp(26px, 4vw, 44px); }
.banner h1 { color: #fff; margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.6vw, 2.1rem); }
.banner p { margin: .5em 0 0; color: #dce7f2; max-width: 62ch; }

.crumbs { background: var(--wash); border-bottom: 1px solid var(--rule); font-size: .88rem; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 10px 0; }
.crumbs li::after { content: '/'; margin-left: 6px; color: #9aa3ad; }
.crumbs li:last-child::after { content: none; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--blue); text-decoration: underline; }

/* --- main / prose ------------------------------------------------------ */
main { display: block; }
/* the masthead is sticky, so an in-page anchor would land under it */
[id] { scroll-margin-top: calc(var(--head) + 16px); }
.section { padding-block: clamp(32px, 5vw, 64px); }
.section-wash { background: var(--wash); }
.prose { max-width: var(--prose); }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.35em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--radius); }
.prose figure { margin: 1.6em 0; }
.prose figcaption { font-size: .9rem; color: var(--ink-soft); margin-top: .5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.prose th, .prose td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--wash); }
.table-scroll { overflow-x: auto; margin: 1.4em 0; }
.table-scroll table { margin: 0; }
.prose iframe { max-width: 100%; border: 0; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.6em; }
blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--yellow);
  color: var(--ink-soft); font-size: 1.05rem;
}

.with-rail { display: grid; gap: clamp(28px, 4vw, 52px); align-items: start; }
@media (min-width: 900px) { .with-rail { grid-template-columns: minmax(0, 1fr) 280px; } }
.rail { position: sticky; top: calc(var(--head) + 16px); }
.rail h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.rail ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.rail li + li { border-top: 1px solid var(--rule); }
.rail a { display: block; padding: 12px 14px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.rail a:hover, .rail a:focus-visible { background: var(--blue-tint); color: var(--blue); }
.rail [aria-current="page"] { background: var(--blue); color: #fff; font-weight: 600; }
@media (max-width: 899px) { .rail { position: static; } }

.aside-note {
  margin: 1.6em 0; padding: 16px 18px; background: var(--wash);
  border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0;
}
.aside-note img { border-radius: 4px; }
.aside-note > :last-child { margin-bottom: 0; }

/* --- pillars ----------------------------------------------------------- */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
@media (min-width: 620px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .pillars { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pillar a {
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 26px 22px 24px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--rule); color: var(--ink);
  text-decoration: none; transition: background-color .18s, color .18s, transform .18s, border-color .18s;
}
.pillar a:hover, .pillar a:focus-visible { transform: translateY(-3px); }
.pillar svg { width: 46px; height: 46px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pillar strong { font-size: 1.1rem; letter-spacing: .01em; }
.pillar span { font-size: .95rem; color: var(--ink-soft); }
.pillar a:hover span, .pillar a:focus-visible span { color: inherit; }
.pillar-education a { color: #6b5a00; }
.pillar-education a:hover, .pillar-education a:focus-visible { background: var(--yellow); border-color: var(--yellow); color: #2b2400; }
.pillar-evangelism a { color: var(--blue); }
.pillar-evangelism a:hover, .pillar-evangelism a:focus-visible { background: var(--blue); border-color: var(--blue); color: #fff; }
.pillar-empathy a { color: var(--red); }
.pillar-empathy a:hover, .pillar-empathy a:focus-visible { background: var(--red); border-color: var(--red); color: #fff; }
.pillar-economic a { color: var(--green-ink); }
.pillar-economic a:hover, .pillar-economic a:focus-visible { background: var(--green-deep); border-color: var(--green-deep); color: #fff; }

.section-head { text-align: center; max-width: 60ch; margin: 0 auto clamp(24px, 4vw, 40px); }
.section-head h2 { color: #2b3138; font-size: clamp(1.45rem, 1.2rem + 1.2vw, 2rem); }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

/* --- routes (LEARN / GIVE / GET INVOLVED) ------------------------------ */
.routes { background: var(--green-deep); color: #fff; }
.routes ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
@media (min-width: 760px) { .routes ul { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.routes h2 { color: #fff; font-size: 1.35rem; margin: .7em 0 .35em; }
.routes p { color: #e8f6ec; margin-bottom: .8em; }
.routes a.route-img { display: block; border-radius: var(--radius); overflow: hidden; }
.routes img { display: block; width: 100%; height: auto; aspect-ratio: 355 / 191; object-fit: cover; transition: transform .3s; }
.routes a.route-img:hover img, .routes a.route-img:focus-visible img { transform: scale(1.04); }
.routes .more { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid rgba(255, 255, 255, .5); }
.routes .more:hover, .routes .more:focus-visible { color: #fff; border-bottom-color: #fff; }

/* --- mission band ------------------------------------------------------ */
.mission { position: relative; text-align: center; color: var(--ink); }
.mission img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mission::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .82); }
.mission .shell { position: relative; z-index: 1; padding-block: clamp(40px, 6vw, 72px); }
.mission h2 { color: #2b3138; letter-spacing: .04em; }
.mission p { max-width: 60ch; margin: 0 auto; font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); line-height: 1.55; }

/* --- tile grids (board / staff / partners) ----------------------------- */
.tiles {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 26px;
  /* an explicit single column at base. `repeat(auto-fill, minmax(0,1fr))` is
     not a valid auto-fill track - the minimum has to be definite - and it let
     a partner tile size to its own content and hang 34px off the right of a
     375px phone. */
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 560px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  text-align: center; padding: 22px 16px; border: 1px solid var(--rule);
  border-radius: var(--radius); background: #fff;
}
.tile img {
  display: block; width: 175px; height: 175px; margin: 0 auto 14px;
  object-fit: cover; border-radius: 50%; background: var(--wash);
}
.tile strong { display: block; font-size: 1.05rem; color: var(--blue); }
.tile .role { color: var(--ink-soft); font-size: .95rem; }
.tiles-text .tile { display: flex; flex-direction: column; justify-content: center; min-height: 108px; }
.tiles-text .tile a { font-weight: 700; text-decoration: none; }
.tiles-text .tile a:hover, .tiles-text .tile a:focus-visible { text-decoration: underline; }
.tiles-text .tile em { display: block; color: var(--ink-soft); font-size: .9rem; font-style: normal; margin-top: 3px; }

/* --- donation designations --------------------------------------------- */
/* .prose ul adds a 1.35em list indent; the giving buttons are not a list
   of prose and must start at the measure's own left edge */
.prose .gives, .gives {
  list-style: none; margin: 1.8em 0 0; padding: 0;
  display: grid; gap: 14px; max-width: none;
}
.prose .gives li { margin-bottom: 0; }
@media (min-width: 620px) { .gives { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .gives { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gives a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 74px; padding: 16px 20px; border-radius: var(--radius);
  background: var(--green-deep); color: #fff; font-weight: 700;
  text-decoration: none; transition: background-color .16s;
}
.gives a:hover, .gives a:focus-visible { background: #055f23; color: #fff; }
.gives svg { width: 16px; height: 16px; flex: none; fill: currentColor; opacity: .8; }

/* --- blog -------------------------------------------------------------- */
.blog-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; }
/* flex-basis 260px plus an 85px button does not fit a 320px phone, and a
   flex item does not shrink below its basis without min-width:0 */
.blog-search { display: flex; gap: 8px; flex: 1 1 200px; min-width: 0; max-width: 420px; }
.blog-search .btn { flex: 0 0 auto; }
.blog-search input {
  flex: 1; min-width: 0; padding: 11px 13px; font: inherit;
  border: 1px solid var(--rule); border-radius: var(--radius); background: #fff; color: inherit;
}
.blog-count { color: var(--ink-soft); font-size: .93rem; }

.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.post-card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px; background: #fff; }
.post-card h2 { margin: 0 0 .3em; font-size: 1.28rem; }
.post-card h2 a { color: var(--blue); text-decoration: none; }
.post-card h2 a:hover, .post-card h2 a:focus-visible { text-decoration: underline; }
.post-card time { display: block; color: var(--ink-soft); font-size: .9rem; margin-bottom: .8em; }
.post-card p { margin-bottom: .9em; color: var(--ink-soft); }
.post-card .more { font-weight: 700; text-decoration: none; }
.post-card .more:hover, .post-card .more:focus-visible { text-decoration: underline; }

.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 36px; }
.pager a, .pager span {
  min-width: 42px; padding: 9px 12px; text-align: center;
  border: 1px solid var(--rule); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
}
.pager a:hover, .pager a:focus-visible { border-color: var(--blue); color: var(--blue); }
.pager [aria-current="page"] { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 700; }
.pager .gap { border: 0; }

.post-meta { color: var(--ink-soft); margin: 0 0 1.6em; font-size: .95rem; }
.post-nav {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule);
}
.post-nav a { display: inline-flex; gap: 8px; max-width: 46ch; text-decoration: none; font-weight: 600; }
.post-nav a:hover, .post-nav a:focus-visible { text-decoration: underline; }
.post-nav .dir { color: var(--ink-soft); font-weight: 400; }

/* --- forms ------------------------------------------------------------- */
.form-grid { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (min-width: 900px) { .form-grid { grid-template-columns: minmax(0, 1fr) 320px; } }
.card {
  background: var(--wash); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: clamp(20px, 3vw, 28px);
}
.card h2:first-child { margin-top: 0; }
.card address { font-style: normal; line-height: 1.7; }
.card a { font-weight: 600; }

.f-form { display: grid; gap: 18px; max-width: 640px; }
.f-row { display: grid; gap: 18px; }
@media (min-width: 620px) { .f-row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.f-field { display: grid; gap: 6px; }
.f-field label { font-weight: 600; font-size: .95rem; }
.f-field input, .f-field textarea, .f-field select {
  width: 100%; padding: 11px 13px; font: inherit; color: inherit;
  background: #fff; border: 1px solid #c3cbd4; border-radius: var(--radius);
}
.f-field input:focus, .f-field textarea:focus, .f-field select:focus { border-color: var(--blue); }
.f-field textarea { min-height: 140px; resize: vertical; }
.f-hint { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.f-req { color: var(--red); }
.f-check { display: grid; gap: 9px; margin: 0; padding: 14px 16px; border: 1px solid #c3cbd4; border-radius: var(--radius); background: #fff; }
/* a legend that wraps to two lines sits ON the fieldset border; painting it
   the panel colour is what keeps the second line legible */
.f-check legend { font-weight: 600; font-size: .95rem; padding-inline: 6px; background: #fff; }
.f-check label { display: flex; align-items: center; gap: 10px; font-weight: 400; }
.f-check input { width: 18px; height: 18px; flex: none; accent-color: var(--blue); }
/* the honeypot: off-screen rather than display:none, which some autofillers
   and a rect-walking layout probe both read as a real overflowing field */
.f-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.f-ok, .f-err { padding: 16px 18px; border-radius: var(--radius); margin: 0 0 22px; }
.f-ok { background: #e8f6ec; border-left: 4px solid var(--green-deep); }
.f-err { background: #fdecee; border-left: 4px solid var(--red); }
.f-err ul { margin: .5em 0 0; padding-left: 1.2em; }

/* --- footer ------------------------------------------------------------ */
.site-footer { background: #12161b; color: #b8c0c8; font-size: .95rem; }
.site-footer .shell { padding-block: clamp(36px, 5vw, 56px); }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: .92rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer a { color: #cfd6dd; text-decoration: none; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.75; }
/* `filter: brightness(0) invert(1)` needs artwork you are happy to lose the
   colour of. This lockup IS its four colours, so it sits on a white plate. */
.foot-logo {
  width: 200px; height: 68px; margin-bottom: 18px; display: block;
  background: #fff; padding: 8px 12px; border-radius: var(--radius);
  box-sizing: content-box; object-fit: contain;
}
.foot-social { display: flex; gap: 10px; margin-top: 16px; }
.foot-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid #333b44; color: #cfd6dd;
}
.foot-social a:hover, .foot-social a:focus-visible { background: var(--blue); border-color: var(--blue); color: #fff; }
.foot-social svg { width: 18px; height: 18px; fill: currentColor; }
.foot-bottom {
  border-top: 1px solid #262d35; margin-top: 34px; padding-top: 22px;
  display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between;
  font-size: .87rem; color: #8b949d;
}
.foot-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.foot-bottom li { margin: 0; }

/* --- rewritten CMS body markup ----------------------------------------- */
/* The CMS floats an illustration beside its paragraph with an inline
   style="float:right;width:300px". A float in a 74ch measure is fine; in a
   360px one it leaves two words per line, so it un-floats below the fold. */
.prose .fl-l, .prose .fl-r { display: block; margin: 0 0 1.2em; }
@media (min-width: 620px) {
  .prose .fl-r { float: right; max-width: 46%; margin: .3em 0 1.2em 1.6em; }
  .prose .fl-l { float: left;  max-width: 46%; margin: .3em 1.6em 1.2em 0; }
}
.prose picture { display: contents; }
.prose .stack-row { margin: 0 0 1.2em; }
.prose .stack-row:last-child { margin-bottom: 0; }
.prose .stack-row::after { content: ''; display: block; clear: both; }
.prose .ta-c { text-align: center; }
.prose .ta-c img, .prose .ta-c picture { margin-inline: auto; }
.prose hr + hr { display: none; }

/* --- misc -------------------------------------------------------------- */
.embed-note { font-size: .92rem; color: var(--ink-soft); }
.newsletter-frame { width: 100%; min-height: 70vh; border: 1px solid var(--rule); border-radius: var(--radius); }
.stack > * + * { margin-top: 1.1em; }
.lede { font-size: 1.1rem; color: var(--ink-soft); }
.pdf-link { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; }
.pdf-link svg { width: 18px; height: 18px; fill: currentColor; }
