/*
Theme Name: Global Hand Charity 2026
Theme URI: https://www.globalhandcharity.org.au
Description: Child theme of Global Hand Charity 2022. Country- and category-first navigation, accessible impact reporting, on-site donation flow. Built 2026.
Author: Global Hand Charity
Template: global-hand-charity-2022
Version: 1.2.3
Requires at least: 6.0
Tested up to: 7.1
License: GNU General Public License v2 or later
Text Domain: ghc2026
*/

/* ==========================================================================
   1. Design tokens
   ========================================================================== */

:root{
  --navy:#16274A;
  --navy-deep:#0C1730;
  --marigold:#F5A623;
  --marigold-lift:#FFB933;
  --chalk:#F3F5F8;
  --slate:#55677F;
  --rule:#D5DCE6;
  --white:#fff;

  --fs-xs:.8125rem; --fs-sm:.9375rem; --fs-base:1.0625rem;
  --fs-md:1.1875rem; --fs-lg:1.4375rem; --fs-xl:1.875rem;
  --fs-2xl:2.5rem;

  --sans:'Archivo',system-ui,-apple-system,sans-serif;
  --serif:'Newsreader',Georgia,serif;

  --gut:clamp(1.25rem,4vw,3rem);
  --max:1240px;
  --band:clamp(3.5rem,7vw,6.5rem);
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--chalk);color:var(--navy);
  font-family:var(--serif);font-size:var(--fs-base);line-height:1.7;
  font-optical-sizing:auto;
}
img{max-width:100%;display:block}
a{color:inherit}

h1,h2,h3,h4,.u-sans{font-family:var(--sans);font-optical-sizing:auto}
h1,h2,h3,h4{margin:0;line-height:1.08;letter-spacing:-.02em;font-weight:700}
h1{font-size:clamp(2.4rem,6.2vw,4.5rem);font-stretch:112%;letter-spacing:-.035em}
h2{font-size:clamp(1.75rem,3.4vw,var(--fs-2xl));font-stretch:107%;letter-spacing:-.028em}
h3{font-size:var(--fs-lg);font-stretch:104%}
h4{font-size:var(--fs-md);font-stretch:100%}
p{margin:0 0 1.1em}
p:last-child{margin-bottom:0}

.wrap{max-width:var(--max);margin-inline:auto;padding-inline:var(--gut)}
.prose{max-width:63ch}
.lede{font-size:var(--fs-md);line-height:1.62;color:#2b3d5e}
.num{font-variant-numeric:tabular-nums lining-nums;font-feature-settings:"tnum" 1}

:focus-visible{outline:3px solid var(--marigold);outline-offset:3px;border-radius:2px}
.skip{position:absolute;left:-9999px;top:0;background:var(--navy);color:#fff;
  padding:.85rem 1.25rem;z-index:200;font-family:var(--sans);font-weight:600;text-decoration:none}
.skip:focus{left:.5rem;top:.5rem}
h1[tabindex="-1"]:focus,h1[tabindex="-1"]:focus-visible{outline:none}

/* ---------- buttons: marigold means actionable ---------- */
.btn{
  display:inline-flex;align-items:center;gap:.55rem;
  font-family:var(--sans);font-weight:650;font-size:var(--fs-sm);
  letter-spacing:.005em;text-decoration:none;cursor:pointer;
  padding:.85rem 1.5rem;border-radius:999px;border:2px solid transparent;
  transition:background-color .15s ease,border-color .15s ease,color .15s ease;
}
.btn-primary{background:var(--marigold);color:var(--navy-deep)}
.btn-primary:hover{background:var(--marigold-lift)}
.btn-ghost{border-color:var(--navy);color:var(--navy);background:transparent}
.btn-ghost:hover{background:var(--navy);color:#fff}
.btn-ghost-light{border-color:rgba(255,255,255,.5);color:#fff;background:transparent}
.btn-ghost-light:hover{background:#fff;color:var(--navy)}
.btn-lg{padding:1.05rem 1.9rem;font-size:var(--fs-base)}
.tlink{font-family:var(--sans);font-weight:600;font-size:var(--fs-sm);
  color:var(--navy);text-decoration:none;border-bottom:2px solid var(--marigold);
  padding-bottom:2px}
.tlink:hover{border-bottom-color:var(--navy)}

/* ---------- header ---------- */
.site-head{
  position:sticky;top:0;z-index:100;background:rgba(255,255,255,.96);
  backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--rule);
}
.head-in{display:flex;align-items:center;gap:1.5rem;min-height:78px;
  max-width:var(--max);margin-inline:auto;padding-inline:var(--gut)}
.brand{display:flex;align-items:center;gap:.85rem;text-decoration:none;flex:0 0 auto}
.brand img.mark{height:40px;width:auto}
.brand .rule{width:1px;height:30px;background:var(--rule);flex:0 0 auto}
.brand img.tick{height:36px;width:auto}
.nav{display:flex;align-items:center;gap:.25rem;margin-left:auto}
.nav a{
  font-family:var(--sans);font-weight:550;font-size:var(--fs-sm);text-decoration:none;
  padding:.55rem .75rem;border-radius:8px;color:var(--navy);white-space:nowrap;
}
.nav a:hover{background:#eef1f6}
.nav a[aria-current="page"]{box-shadow:inset 0 -3px 0 var(--marigold)}
.head-cta{margin-left:.75rem}
.nav-item{position:relative}
.navbtn{display:inline-flex;align-items:center;gap:.4rem;font-family:var(--sans);font-weight:550;
  font-size:var(--fs-sm);background:none;border:0;cursor:pointer;color:var(--navy);padding:.55rem .75rem;
  border-radius:8px;white-space:nowrap}
.navbtn:hover{background:#eef1f6}
.navbtn svg{transition:transform .15s ease}
.nav-item.open .navbtn{background:#eef1f6}
.nav-item.open .navbtn svg{transform:rotate(180deg)}
.nav-item.here .navbtn{box-shadow:inset 0 -3px 0 var(--marigold)}
.drop{position:absolute;top:calc(100% + 8px);left:0;min-width:232px;background:#fff;
  border:1px solid var(--rule);border-radius:14px;box-shadow:0 16px 40px rgba(12,23,48,.22);
  padding:.45rem;display:none;z-index:130}
.nav-item.open .drop{display:block}
.drop a{display:block;padding:.6rem .8rem;border-radius:9px;color:var(--navy);font-size:var(--fs-sm);
  font-family:var(--sans);font-weight:550;text-decoration:none;white-space:nowrap}
.drop a:hover{background:#eef1f6}
.drop a[aria-current="page"]{background:#eef1f6;box-shadow:inset 3px 0 0 var(--marigold)}
.drop hr{border:0;border-top:1px solid var(--rule);margin:.4rem .6rem}
.ctry-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:clamp(2rem,4vw,3.5rem);
  align-items:start;padding-bottom:var(--band)}
.gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:.7rem;margin:1.5rem 0 0}
.gallery figure{margin:0}
.gallery .shot{aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:#dde3ec}
.gallery .shot img{width:100%;height:100%;object-fit:cover}
.gallery figcaption{font-family:var(--sans);font-size:var(--fs-xs);color:var(--slate);margin-top:.45rem;line-height:1.4}
.ctry-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1rem,2vw,1.4rem)}
.ctry-card{display:block;text-decoration:none;background:#fff;border:1px solid var(--rule);
  border-radius:16px;padding:1.4rem;transition:border-color .15s,transform .15s}
.ctry-card:hover{border-color:var(--navy);transform:translateY(-2px)}
.ctry-card b{display:block;font-family:var(--sans);font-weight:700;font-size:var(--fs-lg);
  font-stretch:104%;letter-spacing:-.02em}
.ctry-card span{display:block;font-size:var(--fs-sm);color:var(--slate);margin-top:.45rem;line-height:1.5}
.ctry-card em{display:block;font-family:var(--sans);font-size:var(--fs-xs);font-style:normal;
  font-weight:650;color:var(--navy);margin-top:.9rem;border-bottom:2px solid var(--marigold);
  padding-bottom:2px;width:fit-content}
.mgroup{font-family:var(--sans);font-size:var(--fs-xs);font-weight:700;color:var(--marigold);
  letter-spacing:.06em;text-transform:uppercase;margin:1.6rem 0 .3rem}
.mnav a.msub{font-family:var(--sans);font-weight:550;font-size:1.0625rem;text-decoration:none;
  color:#dbe3ef;padding:.6rem 0;border-bottom:1px solid rgba(255,255,255,.1)}
.bigask{background:var(--navy);color:#fff;border-radius:20px;padding:clamp(1.75rem,3.5vw,2.75rem)}
.bigask h3{font-size:var(--fs-lg);margin-bottom:.9rem}
.bigask p{color:#c9d3e4;font-size:var(--fs-sm)}
.burger{display:none;margin-left:auto;background:none;border:2px solid var(--navy);
  border-radius:10px;padding:.5rem .7rem;cursor:pointer;font-family:var(--sans);
  font-weight:650;font-size:var(--fs-sm);color:var(--navy);align-items:center;gap:.5rem}
.burger svg{display:block}

.mnav{position:fixed;inset:0;z-index:150;background:var(--navy-deep);color:#fff;
  display:none;flex-direction:column;padding:1.25rem var(--gut) 2rem;overflow:auto}
.mnav.open{display:flex}
.mnav-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}
.mnav-close{background:none;border:2px solid rgba(255,255,255,.45);color:#fff;
  border-radius:10px;padding:.5rem .8rem;font-family:var(--sans);font-weight:650;cursor:pointer}
.mnav a.mlink{font-family:var(--sans);font-weight:600;font-size:1.5rem;font-stretch:105%;
  text-decoration:none;color:#fff;padding:.85rem 0;border-bottom:1px solid rgba(255,255,255,.14)}
.mnav .btn{margin-top:1.75rem;justify-content:center}
.mnav-foot{margin-top:auto;padding-top:2rem;color:#a9b6cc;font-size:var(--fs-sm)}

/* ---------- hero ---------- */
.hero{padding:clamp(2.5rem,5vw,4.5rem) 0 0}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(2rem,5vw,4.5rem);align-items:start}
.hero h1{margin-bottom:1.5rem}
.hero .lede{max-width:46ch}
.hero-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:2rem}
.hero-note{margin-top:1.5rem;font-size:var(--fs-sm);color:var(--slate);max-width:44ch}
.hero-media{border-radius:20px;overflow:hidden;aspect-ratio:4/3;background:#dde3ec}
.hero-media img{width:100%;height:100%;object-fit:cover}

/* ---------- the ledger ---------- */
.ledger{margin-top:1.5rem;border:1px solid var(--rule);border-radius:14px;background:#fff;overflow:hidden}
.ledger-head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;
  padding:.9rem 1.15rem;border-bottom:1px solid var(--rule);background:#fafbfd}
.ledger-head h3{font-size:var(--fs-sm);font-weight:700;font-stretch:100%;letter-spacing:0}
.ledger-head span{font-family:var(--sans);font-size:var(--fs-xs);color:var(--slate)}
.ledger ol{list-style:none;margin:0;padding:0}
.ledger li{display:grid;grid-template-columns:auto 1fr;gap:.35rem 1.1rem;
  padding:.8rem 1.15rem;border-bottom:1px solid #eef1f5;font-size:var(--fs-sm)}
.ledger li:last-child{border-bottom:0}
.ledger .l-when{font-family:var(--sans);font-weight:650;font-size:var(--fs-xs);
  color:var(--slate);white-space:nowrap;padding-top:.15rem}
.ledger .l-what{line-height:1.5}
.ledger .l-where{display:block;font-family:var(--sans);font-size:var(--fs-xs);color:var(--slate);margin-top:.15rem}

/* ---------- stat band ---------- */
.band-stats{background:var(--navy);color:#fff;margin-top:var(--band)}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:rgba(255,255,255,.16)}
.stat{background:var(--navy);padding:clamp(1.75rem,3.5vw,2.75rem) clamp(1rem,2.5vw,1.75rem)}
.stat b{display:block;font-family:var(--sans);font-weight:700;font-stretch:112%;
  font-size:clamp(2.1rem,4.4vw,3.1rem);line-height:1;letter-spacing:-.04em;color:var(--marigold)}
.stat span{display:block;margin-top:.6rem;font-size:var(--fs-sm);color:#c9d3e4;line-height:1.45}

/* ---------- generic sections ---------- */
.band{padding:var(--band) 0}
.band-tight{padding:clamp(2.5rem,5vw,4rem) 0}
.band-white{background:#fff}
.band-navy{background:var(--navy);color:#fff}
.band-navy .lede{color:#c9d3e4}
.band-navy a{color:#fff}
.sec-head{max-width:60ch;margin-bottom:clamp(2rem,4vw,3rem)}
.sec-head h2{margin-bottom:.9rem}

/* ---------- programmes: deliberately unequal ---------- */
.progs{display:grid;grid-template-columns:repeat(6,1fr);gap:clamp(1rem,2.2vw,1.5rem)}
.prog{grid-column:span 3;background:#fff;border:1px solid var(--rule);border-radius:18px;overflow:hidden;display:flex;flex-direction:column}
.prog:first-child{grid-column:span 6}
.prog:first-child .prog-img{aspect-ratio:21/8}
.prog-img{aspect-ratio:16/10;overflow:hidden;background:#dde3ec}
.prog-img img{width:100%;height:100%;object-fit:cover}
.prog-body{padding:1.5rem 1.5rem 1.75rem;flex:1;display:flex;flex-direction:column;gap:.75rem}
.prog-body h3{margin-bottom:.15rem}
.prog-meta{font-family:var(--sans);font-size:var(--fs-xs);font-weight:600;color:var(--slate)}
.prog-body p{font-size:var(--fs-sm);line-height:1.65}
.prog-body .tlink{margin-top:auto;align-self:flex-start}

/* ---------- money → outcome ---------- */
.give-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4rem);align-items:start}
.amounts{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.5rem 0}
.amt{font-family:var(--sans);font-weight:650;font-size:var(--fs-base);
  padding:.8rem 1.35rem;border-radius:999px;border:2px solid var(--rule);background:#fff;
  color:var(--navy);cursor:pointer;transition:.15s}
.amt:hover{border-color:var(--navy)}
.amt[aria-pressed="true"]{background:var(--marigold);border-color:var(--marigold);color:var(--navy-deep)}
.outcome{border-left:4px solid var(--marigold);padding:.25rem 0 .25rem 1.35rem;min-height:5.5rem}
.outcome strong{display:block;font-family:var(--sans);font-size:var(--fs-lg);font-stretch:104%;
  font-weight:700;letter-spacing:-.02em;margin-bottom:.4rem}
.outcome p{font-size:var(--fs-sm);color:var(--slate);margin:0}
.toggle{display:inline-flex;background:#e8ecf3;border-radius:999px;padding:4px;gap:2px}
.toggle button{font-family:var(--sans);font-weight:650;font-size:var(--fs-sm);
  border:0;background:transparent;color:var(--slate);padding:.6rem 1.35rem;border-radius:999px;cursor:pointer}
.toggle button[aria-pressed="true"]{background:#fff;color:var(--navy);box-shadow:0 1px 3px rgba(12,23,48,.16)}

/* ---------- accountability ---------- */
.acct{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.18);border-radius:16px;overflow:hidden}
.acct div{background:var(--navy);padding:1.75rem 1.5rem}
.acct dt{font-family:var(--sans);font-size:var(--fs-xs);font-weight:650;color:var(--marigold);
  margin-bottom:.5rem;letter-spacing:.01em}
.acct dd{margin:0;font-size:var(--fs-sm);color:#dbe3ef;line-height:1.55}

/* ---------- countries ---------- */
.countries{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;background:var(--rule);
  border:1px solid var(--rule);border-radius:14px;overflow:hidden}
.country{background:#fff;padding:1.5rem 1.25rem}
.country b{display:block;font-family:var(--sans);font-weight:700;font-size:var(--fs-md);font-stretch:104%}
.country span{display:block;font-size:var(--fs-sm);color:var(--slate);margin-top:.3rem;line-height:1.45}

/* ---------- news ---------- */
.news{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(1.25rem,2.5vw,2rem)}
.post{background:#fff;border:1px solid var(--rule);border-radius:16px;overflow:hidden;display:flex;flex-direction:column}
.post-img{aspect-ratio:3/2;overflow:hidden;background:#dde3ec}
.post-img img{width:100%;height:100%;object-fit:cover}
.post-body{padding:1.35rem 1.35rem 1.6rem;display:flex;flex-direction:column;gap:.6rem;flex:1}
.post-body time{font-family:var(--sans);font-size:var(--fs-xs);font-weight:600;color:var(--slate)}
.post-body h3{font-size:var(--fs-md)}
.post-body p{font-size:var(--fs-sm);line-height:1.6;color:var(--slate)}
.post-body .tlink{margin-top:auto;align-self:flex-start}

/* ---------- quote ---------- */
.quote{max-width:44ch}
.quote blockquote{margin:0;font-family:var(--serif);font-size:clamp(1.3rem,2.4vw,1.75rem);
  line-height:1.45;font-style:italic;font-weight:300}
.quote figcaption{margin-top:1.25rem;font-family:var(--sans);font-size:var(--fs-sm);color:var(--slate)}
.band-navy .quote figcaption{color:#a9b6cc}

/* ---------- page banner ---------- */
.pbanner{padding:clamp(2.75rem,5vw,4.5rem) 0 clamp(2rem,4vw,3rem)}
.pbanner .crumb{font-family:var(--sans);font-size:var(--fs-xs);font-weight:600;
  color:var(--slate);margin-bottom:1rem}
.pbanner h1{max-width:18ch;margin-bottom:1.25rem}
.pbanner .lede{max-width:58ch}

/* ---------- donate flow ---------- */
.donate-shell{display:grid;grid-template-columns:1.15fr .85fr;gap:clamp(2rem,4vw,3.5rem);align-items:start}
.card{background:#fff;border:1px solid var(--rule);border-radius:20px;padding:clamp(1.5rem,3vw,2.25rem)}
.field{margin-bottom:1.25rem}
.field label{display:block;font-family:var(--sans);font-weight:650;font-size:var(--fs-sm);margin-bottom:.4rem}
.field input,.field select,.field textarea{
  width:100%;font-family:var(--serif);font-size:var(--fs-base);padding:.8rem .95rem;
  border:2px solid var(--rule);border-radius:10px;background:#fff;color:var(--navy)}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--navy);outline:none}
.field .hint{font-size:var(--fs-xs);color:var(--slate);margin-top:.35rem;font-family:var(--sans)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
.summary{position:sticky;top:100px;background:var(--navy);color:#fff;border-radius:20px;padding:1.75rem}
.summary h3{font-size:var(--fs-md);margin-bottom:1rem}
.summary .big{font-family:var(--sans);font-weight:700;font-stretch:112%;
  font-size:2.75rem;line-height:1;letter-spacing:-.04em;color:var(--marigold)}
.summary .big small{font-size:1rem;font-weight:600;font-stretch:100%;letter-spacing:0;color:#c9d3e4}
.summary ul{list-style:none;margin:1.5rem 0 0;padding:0;font-size:var(--fs-sm);color:#dbe3ef}
.summary li{padding:.55rem 0;border-top:1px solid rgba(255,255,255,.16);display:flex;gap:.6rem}
.summary li svg{flex:0 0 auto;margin-top:.28rem}
.steps{list-style:none;margin:0 0 2rem;padding:0;display:flex;gap:.5rem;flex-wrap:wrap}
.steps li{font-family:var(--sans);font-size:var(--fs-xs);font-weight:650;color:var(--slate);
  padding:.45rem .9rem;border-radius:999px;background:#e8ecf3}
.steps li[aria-current="step"]{background:var(--navy);color:#fff}

/* ---------- sponsor steps (a real sequence) ---------- */
.seq{list-style:none;margin:0;padding:0;counter-reset:s;display:grid;
  grid-template-columns:repeat(3,1fr);gap:clamp(1.25rem,2.5vw,2rem)}
.seq li{counter-increment:s;background:#fff;border:1px solid var(--rule);border-radius:16px;padding:1.6rem}
.seq li::before{content:counter(s);display:flex;align-items:center;justify-content:center;
  width:2.25rem;height:2.25rem;border-radius:50%;background:var(--marigold);color:var(--navy-deep);
  font-family:var(--sans);font-weight:700;margin-bottom:1rem}
.seq h3{font-size:var(--fs-md);margin-bottom:.5rem}
.seq p{font-size:var(--fs-sm);color:var(--slate);margin:0}

/* ---------- people ---------- */
.people{display:grid;grid-template-columns:repeat(4,1fr);gap:1.25rem}
.person{background:#fff;border:1px solid var(--rule);border-radius:14px;padding:1.35rem;
  display:flex;gap:.9rem;align-items:center}
.person .av{flex:0 0 auto;width:54px;height:54px;border-radius:50%;overflow:hidden;
  background:#e8ecf3;display:flex;align-items:center;justify-content:center;
  font-family:var(--sans);font-weight:700;font-size:var(--fs-base);color:var(--slate)}
.person .av img{width:100%;height:100%;object-fit:cover;display:block}
.person b{display:block;font-family:var(--sans);font-weight:700;font-size:var(--fs-base)}
.person span{display:block;font-size:var(--fs-sm);color:var(--slate);margin-top:.2rem}

/* ---------- tables ---------- */
.tbl{width:100%;border-collapse:collapse;background:#fff;border:1px solid var(--rule);border-radius:14px;overflow:hidden}
.tbl th,.tbl td{text-align:left;padding:.95rem 1.15rem;border-bottom:1px solid #eef1f5;font-size:var(--fs-sm)}
.tbl th{font-family:var(--sans);font-weight:650;background:#fafbfd}
.tbl tr:last-child td{border-bottom:0}
.tbl td.n{font-family:var(--sans);font-weight:650;text-align:right;font-variant-numeric:tabular-nums}

/* ---------- footer ---------- */
.site-foot{background:var(--navy-deep);color:#c9d3e4;padding:clamp(3rem,6vw,4.5rem) 0 2rem;margin-top:var(--band)}
.foot-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr 1fr;gap:2.5rem}
.site-foot img.flogo{height:46px;width:auto;filter:brightness(0) invert(1);margin-bottom:1.25rem}
.site-foot h4{font-size:var(--fs-sm);color:#fff;margin-bottom:.9rem;font-stretch:100%}
.site-foot ul{list-style:none;margin:0;padding:0;display:grid;gap:.55rem}
.site-foot a{font-family:var(--sans);font-size:var(--fs-sm);text-decoration:none;color:#c9d3e4}
.site-foot a:hover{color:#fff;text-decoration:underline}
.site-foot p{font-size:var(--fs-sm);line-height:1.6}
.foot-legal{margin-top:3rem;padding-top:1.5rem;border-top:1px solid rgba(255,255,255,.14);
  display:flex;flex-wrap:wrap;gap:1.25rem;justify-content:space-between;font-size:var(--fs-xs)}

/* (v1.2.1: removed two orphaned declaration fragments left over from the
   prototype review bar. Their stray closing braces made browsers drop the
   next rule, so .mt-lg spacing never applied on the live site.) */

/* ---------- utility ---------- */
.mt-lg{margin-top:clamp(2rem,4vw,3rem)}
.mt-sm{margin-top:1.5rem}
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(2rem,5vw,4.5rem);align-items:center}
.rounded{border-radius:20px;overflow:hidden;aspect-ratio:4/3;background:#dde3ec}
.rounded img{width:100%;height:100%;object-fit:cover}
.tags{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:1.25rem}
.tag{font-family:var(--sans);font-size:var(--fs-xs);font-weight:600;padding:.35rem .8rem;
  border-radius:999px;background:#e8ecf3;color:var(--navy)}
.band-navy .tag{background:rgba(255,255,255,.14);color:#fff}

@media (max-width:1000px){
  .hero-grid,.give-grid,.donate-shell,.split{grid-template-columns:1fr}
  .stats{grid-template-columns:repeat(2,1fr)}
  .news,.seq{grid-template-columns:1fr 1fr}
  .countries{grid-template-columns:repeat(2,1fr)}
  .acct{grid-template-columns:1fr}
  .people{grid-template-columns:1fr 1fr}
  .foot-grid{grid-template-columns:1fr 1fr}
  .summary{position:static}
  .prog,.prog:first-child{grid-column:span 6}
  .prog:first-child .prog-img{aspect-ratio:16/10}
}
@media (max-width:1080px){
  .ctry-grid,.ctry-cards{grid-template-columns:1fr}
  .ctry-cards{gap:1rem}
}
@media (max-width:620px){
  .brand img.mark{height:31px}
  .brand img.tick{height:27px}
  .brand{gap:.55rem}
  .brand .rule{height:24px}
}
@media (max-width:1140px){
  .nav,.head-cta{display:none}
  .burger{display:inline-flex}
  .news,.seq,.people,.row2{grid-template-columns:1fr}
  .hero-actions .btn{flex:1 1 100%;justify-content:center}
  .site-foot{padding-bottom:5.5rem}
  .foot-legal{flex-direction:column;gap:.5rem}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:.001ms!important;transition-duration:.001ms!important;scroll-behavior:auto!important}
}


/* ==========================================================================
   WordPress integration
   ========================================================================== */

/* admin bar */
body.admin-bar .site-head{top:32px}
@media (max-width:782px){body.admin-bar .site-head{top:46px}}

/* core blocks inside the content area */
/* Page content supplies its own .wrap and .band elements, so the content
   area must not be a second container (v1.2.1: fixes the 48px offset and
   the bands that were not full-bleed). */
.entry-content{max-width:none;padding:0}

/* Plain block-editor content with no .wrap of its own (news posts, the
   privacy policy, GiveWP and WooCommerce pages) still needs the container
   and the prose rules. Scoping them here also stops them leaking into the
   designed components (ledger, gallery, cards), which have their own. */
.entry-content:not(:has(.wrap)){max-width:var(--max);margin-inline:auto;padding-inline:var(--gut)}
.entry-content:not(:has(.wrap)) > *{margin-block:0 1.1em}
.entry-content:not(:has(.wrap)) > .alignwide{max-width:min(100%,1100px);margin-inline:auto}
.entry-content:not(:has(.wrap)) > .alignfull{max-width:none;margin-inline:calc(50% - 50vw);padding-inline:var(--gut)}
.entry-content:not(:has(.wrap)) h2{margin-top:clamp(2rem,4vw,3rem)}
.entry-content:not(:has(.wrap)) ul,.entry-content:not(:has(.wrap)) ol{padding-left:1.3em}
.entry-content:not(:has(.wrap)) li{margin-bottom:.4em}
.entry-content:not(:has(.wrap)) figure{margin:1.5rem 0}
.entry-content:not(:has(.wrap)) img{border-radius:14px;height:auto}

/* Country pages: the action buttons follow the banner directly, as in the
   prototype, rather than after a second gap. */
.entry-content .wrap:first-child > .hero-actions:first-child{margin-top:0}

/* Ledger: one fixed date column so the rows line up. */
.ledger li{grid-template-columns:5.25rem 1fr}
@media (max-width:620px){.ledger li{grid-template-columns:auto 1fr}}
.wp-block-table table{width:100%;border-collapse:collapse}
.wp-block-button__link{background:var(--marigold);color:var(--navy-deep);border-radius:999px;
  font-family:var(--sans);font-weight:650;padding:.85rem 1.5rem;text-decoration:none}
.wp-block-button.is-style-outline .wp-block-button__link{background:transparent;
  border:2px solid var(--navy);color:var(--navy)}
.screen-reader-text{position:absolute!important;width:1px;height:1px;overflow:hidden;
  clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* comments are off site-wide, but style defensively */
.comment-respond{max-width:63ch;margin-inline:auto;padding-inline:var(--gut)}

/* pagination on the news archive */
.nav-links{display:flex;gap:.5rem;justify-content:center;margin-top:clamp(2rem,4vw,3rem);
  font-family:var(--sans);font-weight:650;font-size:var(--fs-sm)}
.nav-links .page-numbers{padding:.6rem 1rem;border-radius:10px;border:1px solid var(--rule);
  background:#fff;color:var(--navy);text-decoration:none}
.nav-links .page-numbers.current{background:var(--navy);color:#fff;border-color:var(--navy)}

/* WooCommerce, inheriting the shell without fighting it */
.woocommerce-page .entry-content{max-width:var(--max);margin-inline:auto;padding-inline:var(--gut)}
.woocommerce ul.products li.product a img{border-radius:12px}
.woocommerce #respond input#submit,.woocommerce a.button,
.woocommerce button.button,.woocommerce input.button{
  background:var(--marigold);color:var(--navy-deep);border-radius:999px;
  font-family:var(--sans);font-weight:650}
.woocommerce #respond input#submit:hover,.woocommerce a.button:hover,
.woocommerce button.button:hover,.woocommerce input.button:hover{
  background:var(--marigold-lift);color:var(--navy-deep)}

/* GiveWP donation forms */
.give-form-wrap{background:#fff;border:1px solid var(--rule);border-radius:20px;
  padding:clamp(1.5rem,3vw,2.25rem)}
.give-btn,.give-submit{background:var(--marigold)!important;color:var(--navy-deep)!important;
  border:0!important;border-radius:999px!important;font-family:var(--sans)!important;
  font-weight:650!important;padding:.95rem 1.8rem!important}

/* v1.2.1: stat figures overflowed their cell on narrow phones
   ($750,000 at 390px). Let the grid cell shrink and the figure scale. */
.stat{min-width:0}
@media (max-width:620px){
  .stat b{font-size:clamp(1.55rem,7.4vw,2.1rem)}
}


/* v1.2.1: internal "to confirm" notes (class="tbc") were showing to the
   public as ordinary copy. Hide them from visitors; show them highlighted
   to anyone logged in to WordPress, so the committee can still find them. */
.tbc{display:none!important}
body.logged-in .tbc{display:revert!important;background:#FFF4D6;color:#6b4a00;
  outline:1px dashed var(--marigold);outline-offset:2px;border-radius:4px;
  padding:0 .25em;font-family:var(--sans);font-size:var(--fs-xs)}

/* v1.2.1: the ShiftNav plugin still prints the OLD site menu (links to
   the old pages and to ?page_id= URLs) as a hidden off-canvas panel on
   every page. This theme has its own mobile menu, so take ShiftNav out of
   the page and the keyboard tab order. Deactivating the plugin is the
   proper fix; this keeps it harmless until then. */
.shiftnav,.shiftnav-toggle,#shiftnav-toggle-main,.shiftnav-panel-close{display:none!important}

/* ==========================================================================
   v1.2.2
   ========================================================================== */

/* Classic editor alignment. The theme dequeues WordPress's
   classic-theme-styles, so .aligncenter/.alignleft were unstyled and
   in-content images sat on the left with a large gap beside them. */
.alignleft{float:left;margin:.4em 1.5em 1em 0;max-width:50%}
.alignright{float:right;margin:.4em 0 1em 1.5em;max-width:50%}
.aligncenter{display:block;margin-left:auto;margin-right:auto}
.alignnone{margin:1em 0}
.wp-caption{max-width:100%}
.wp-caption img{display:block;margin:0}
.wp-caption-text,.wp-element-caption{
  font-family:var(--sans);font-size:var(--fs-xs);color:var(--slate);margin-top:.45rem}

/* News posts: a readable centred column. The #modal-ready wrapper
   (WP Post Modal) means we style descendants, not only direct children.
   Wide figures, full-size images and the gallery keep the content width.

   63ch is the width of the "0" glyph in THAT element's font. Body copy is
   Newsreader at --fs-base, so 63ch is about 36.875rem. Headings are Archivo
   at a larger size, so the same 63ch made a wider box and left-aligned
   titles like "GOALS:" sat left of the body column. Headings use the rem
   measure so they line up with the text. */
.single-post .entry-content.prose{
  max-width:var(--max);margin-inline:auto;padding-inline:var(--gut)}
.single-post .entry-content p,
.single-post .entry-content ul,
.single-post .entry-content ol,
.single-post .entry-content blockquote{
  max-width:63ch;margin-inline:auto}
.single-post .entry-content h2,
.single-post .entry-content h3,
.single-post .entry-content h4{
  max-width:36.875rem;margin-inline:auto}
.single-post .entry-content h2{margin-top:1.75em;margin-bottom:.55em}
.single-post .entry-content h3,
.single-post .entry-content h4{margin-top:1.35em;margin-bottom:.4em}
.single-post .entry-content img{
  max-width:100%;height:auto;border-radius:14px}
.single-post .entry-content .aligncenter,
.single-post .entry-content img.aligncenter,
.single-post .entry-content .alignwide,
.single-post .entry-content .alignfull,
.single-post .entry-content figure,
.single-post .entry-content .wp-block-image,
.single-post .entry-content .wp-block-gallery,
.single-post .entry-content .foogallery,
.single-post .entry-content .foogallery-container{
  max-width:100%;margin-left:auto;margin-right:auto}

/* Classic editor sometimes wraps an image in an h3. Don't squeeze it
   to the text measure, and centre the image. */
.single-post .entry-content h3:has(> img),
.single-post .entry-content h3:has(> a img){
  max-width:100%;text-align:center}

/* FooGallery sizes its own tiles. Our generic img{height:auto} and
   border-radius broke the thumbnails (grey placeholder squares until
   — and sometimes after — the plugin's script ran). */
.single-post .entry-content .foogallery img,
.single-post .entry-content .fg-image,
.single-post .entry-content .fg-thumb img,
.entry-content .foogallery img,
.entry-content .fg-image,
.entry-content .fg-thumb img{
  height:unset;border-radius:0;max-width:none}

/* Gravity Forms on /contact/. The plugin's theme CSS was loading but
   the submit button rendered as a default browser control (grey, 13px
   Arial, outset border). Match the design system. */
.gform_wrapper.gravity-theme input[type=text],
.gform_wrapper.gravity-theme input[type=email],
.gform_wrapper.gravity-theme input[type=tel],
.gform_wrapper.gravity-theme input[type=url],
.gform_wrapper.gravity-theme input[type=number],
.gform_wrapper.gravity-theme input[type=search],
.gform_wrapper.gravity-theme select,
.gform_wrapper.gravity-theme textarea{
  font-family:var(--serif);font-size:var(--fs-base);color:var(--navy);
  background:#fff;border:1px solid var(--rule);border-radius:12px;
  padding:.85rem 1rem;width:100%;appearance:none;-webkit-appearance:none}
.gform_wrapper.gravity-theme input:focus,
.gform_wrapper.gravity-theme select:focus,
.gform_wrapper.gravity-theme textarea:focus{
  outline:3px solid var(--marigold);outline-offset:2px;border-color:var(--navy)}
.gform_wrapper.gravity-theme .gfield_label,
.gform_wrapper.gravity-theme legend{
  font-family:var(--sans);font-weight:650;color:var(--navy);font-size:var(--fs-sm)}
.gform_wrapper.gravity-theme .gfield_description,
.gform_wrapper.gravity-theme .gform_required_legend{
  font-family:var(--sans);font-size:var(--fs-xs);color:var(--slate)}
.gform_wrapper.gravity-theme .gform_button,
.gform_wrapper.gravity-theme input[type=submit],
.gform_wrapper.gravity-theme button[type=submit]{
  appearance:none;-webkit-appearance:none;
  display:inline-flex;align-items:center;justify-content:center;
  width:auto;max-width:100%;
  background:var(--marigold);color:var(--navy-deep);
  border:0;border-radius:999px;
  font-family:var(--sans);font-weight:650;font-size:var(--fs-sm);
  letter-spacing:.005em;line-height:1.2;
  padding:.95rem 1.8rem;margin-top:.5rem;cursor:pointer}
.gform_wrapper.gravity-theme .gform_button:hover,
.gform_wrapper.gravity-theme input[type=submit]:hover,
.gform_wrapper.gravity-theme button[type=submit]:hover{
  background:var(--marigold-lift);color:var(--navy-deep)}
