/* ============================================================
   LEAP for Justice Foundation — Website Stylesheet
   Palette: Deep Navy, Teal, Warm Gold, Off-White, Slate
   Type: Fraunces (display) + Inter (body)
============================================================ */

:root {
  --navy:      #0F2A4A;
  --navy-800:  #163a63;
  --teal:      #1B7A7A;
  --teal-600:  #16696a;
  --gold:      #C9A24B;
  --gold-soft: #e2c988;
  --cream:     #F7F5F0;
  --cream-200: #efe9dd;
  --slate:     #5A6B7B;
  --ink:       #14212e;
  --line:      #dfd8c9;
  --white:     #ffffff;

  --shadow-sm: 0 2px 10px rgba(15, 42, 74, 0.06);
  --shadow-md: 0 12px 40px rgba(15, 42, 74, 0.10);
  --shadow-lg: 0 24px 70px rgba(15, 42, 74, 0.16);

  --radius:    14px;
  --radius-lg: 22px;
  --maxw:      1200px;

  --ff-display: 'Fraunces', Georgia, serif;
  --ff-body:    'Inter', system-ui, -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  color: var(--navy);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.01em;
}

a { color: var(--teal); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--teal-600); }

img { max-width: 100%; display: block; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--navy  { background: var(--navy); color: #dfe7f0; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }

/* ---------- Eyebrow / section headings ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-body);
  font-size: 13px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px; background: var(--gold);
  display: inline-block;
}
.section--navy .eyebrow { color: var(--gold-soft); }

.section-title { font-size: clamp(1.9rem, 4vw, 3rem); margin-bottom: 18px; }
.section-sub {
  font-size: 1.15rem; color: var(--slate); max-width: 720px;
  line-height: 1.6;
}
.section--navy .section-sub { color: #b8c7d8; }

.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; font-family: var(--ff-body); font-weight: 600;
  font-size: 15px; padding: 15px 30px; border-radius: 100px;
  cursor: pointer; border: 2px solid transparent; transition: all .25s ease;
  text-align: center; line-height: 1;
}
.btn--primary { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn--primary:hover { background: var(--gold-soft); border-color: var(--gold-soft); color: var(--navy); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(201,162,75,.35); }
.btn--solid { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn--solid:hover { background: var(--teal-600); border-color: var(--teal-600); color:#fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.btn--light { background: rgba(255,255,255,.12); color:#fff; border-color: rgba(255,255,255,.3); }
.btn--light:hover { background: rgba(255,255,255,.2); color:#fff; border-color:#fff; }
.btn--lg { padding: 18px 38px; font-size: 16px; }

/* ============================================================
   HEADER / NAVIGATION
============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(247,245,240,.9);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  display: grid; place-items: center; color: #fff;
  font-family: var(--ff-display); font-weight: 700; font-size: 20px;
  box-shadow: var(--shadow-sm);
}
.brand__text { line-height: 1.05; }
.brand__name { font-family: var(--ff-display); font-weight: 700; font-size: 19px; color: var(--navy); }
.brand__tag  { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); font-weight: 600; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin-bottom: 0;
}
.nav-links > li { position: relative; }
.nav-links a {
  display: block; padding: 10px 15px; color: var(--ink);
  font-weight: 500; font-size: 15px; border-radius: 8px;
}
.nav-links a:hover, .nav-links a.active { color: var(--teal); background: var(--cream-200); }

/* dropdown */
.has-drop > a::after { content: "▾"; font-size: 10px; margin-left: 6px; color: var(--slate); }
.drop {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); padding: 8px; min-width: 250px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s ease; list-style: none;
}
.has-drop:hover .drop { opacity: 1; visibility: visible; transform: translateY(0); }
.drop a { padding: 10px 14px; border-radius: 9px; font-size: 14.5px; }
.drop a:hover { background: var(--cream); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 10px;
}
.nav-toggle span { display:block; width: 22px; height: 2px; background: var(--navy); margin: 5px auto; transition: .3s; }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
============================================================ */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-800) 55%, #0c2038 100%);
  color: #fff; padding: 92px 0 100px;
}
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center;
}
.hero__eyebrow {
  display:inline-flex; align-items:center; gap:10px;
  font-size:13px; font-weight:600; letter-spacing:.14em; text-transform:uppercase;
  color: var(--gold-soft); margin-bottom: 22px;
}
.hero__eyebrow::before{ content:""; width:28px; height:2px; background:var(--gold); }
.hero h1 {
  color: #fff; font-size: clamp(2.3rem, 5vw, 3.7rem); line-height: 1.08;
  margin-bottom: 22px; font-weight: 600;
}
.hero h1 .accent { color: var(--gold-soft); font-style: italic; }
.hero__positioning { font-size: 1.35rem; color: var(--gold-soft); font-family: var(--ff-display); margin-bottom: 22px; font-weight: 500; }
.hero__desc { color: #c3d2e2; font-size: 1.08rem; max-width: 560px; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 22px; }
.hero__trust span { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #aebfd2; }
.hero__trust .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }

/* Hero visual — pathways motif */
.hero__visual {
  position: relative; aspect-ratio: 1/1; max-width: 460px; margin-left: auto; width: 100%;
}
.pathways {
  width: 100%; height: 100%;
}
.pnode {
  fill: #fff;
  opacity: 0;
  animation: nodeIn .6s ease forwards;
}
.pline {
  stroke: var(--gold-soft); stroke-width: 2; fill: none;
  stroke-dasharray: 300; stroke-dashoffset: 300;
  animation: draw 2.4s ease forwards;
  opacity: .55;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes nodeIn { to { opacity: 1; } }
.hero__visual .glow {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(27,122,122,.35), transparent 60%);
  filter: blur(20px); z-index: 0;
}

/* Decorative hero corner lines */
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px;
  width: 380px; height: 380px; border: 1px solid rgba(201,162,75,.2);
  border-radius: 50%;
}

/* ============================================================
   REUSABLE CARD GRIDS
============================================================ */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card__icon {
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--cream); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card__icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.28rem; margin-bottom: 10px; }
.card p { color: var(--slate); font-size: .98rem; }
.card--link { display: flex; flex-direction: column; }
.card__more { margin-top: 16px; font-weight: 600; font-size: 14px; color: var(--teal); display:inline-flex; align-items:center; gap:6px; }
.card__more::after { content: "→"; transition: transform .2s; }
.card--link:hover .card__more::after { transform: translateX(4px); }

/* numbered card variant */
.card--num { position: relative; }
.card__num {
  font-family: var(--ff-display); font-size: 2.4rem; font-weight: 600;
  color: var(--gold); opacity: .55; line-height: 1; margin-bottom: 14px;
}

/* ============================================================
   PILLAR / FEATURE STATEMENTS
============================================================ */
.feature-quote {
  border-left: 3px solid var(--gold);
  padding: 8px 0 8px 28px; margin: 8px 0;
  font-family: var(--ff-display); font-size: 1.4rem; line-height: 1.4;
  color: var(--navy); font-style: italic; font-weight: 500;
}
.section--navy .feature-quote { color: #fff; }

/* ============================================================
   THEORY OF CHANGE (flow)
============================================================ */
.flow { display: flex; flex-direction: column; align-items: center; gap: 0; }
.flow__item {
  background: #fff; border: 1px solid var(--line); border-radius: 100px;
  padding: 14px 30px; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-sm); position: relative; min-width: 280px; text-align: center;
}
.flow__item--accent { background: var(--navy); color: #fff; border-color: var(--navy); }
.flow__item--gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.flow__arrow { width: 2px; height: 26px; background: var(--gold); position: relative; }
.flow__arrow::after {
  content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  border-left: 5px solid transparent; border-right: 5px solid transparent;
  border-top: 7px solid var(--gold);
}

/* ============================================================
   SPLIT / MEDIA SECTIONS
============================================================ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split__media {
  aspect-ratio: 4/3; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  position: relative; box-shadow: var(--shadow-md);
}
.split__media .badge {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.9);
}
.checklist { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; }
.checklist .tick {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal); color: #fff; display: grid; place-items: center;
  font-size: 13px; margin-top: 2px;
}
.checklist strong { color: var(--navy); }
.checklist span { color: var(--slate); }

/* ============================================================
   STATS BAND
============================================================ */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 30px; }
.stat { text-align: center; }
.stat__k { font-family: var(--ff-display); font-size: 2.6rem; color: var(--gold-soft); font-weight: 600; }
.stat__l { color: #b8c7d8; font-size: .95rem; margin-top: 6px; }

/* ============================================================
   PAGE HEADER (interior pages)
============================================================ */
.page-head {
  background: linear-gradient(160deg, var(--navy), var(--navy-800));
  color: #fff; padding: 72px 0 78px; position: relative; overflow: hidden;
}
.page-head::after {
  content:""; position:absolute; right:-100px; bottom:-140px; width:340px; height:340px;
  border:1px solid rgba(201,162,75,.18); border-radius:50%;
}
.page-head .eyebrow { color: var(--gold-soft); }
.page-head .eyebrow::before { background: var(--gold); }
.page-head h1 { color: #fff; font-size: clamp(2.1rem, 4.5vw, 3.2rem); margin-bottom: 16px; }
.page-head p { color: #b8c7d8; font-size: 1.15rem; max-width: 680px; }
.breadcrumb { display: flex; gap: 8px; font-size: 14px; color: #8fa3ba; margin-bottom: 20px; }
.breadcrumb a { color: var(--gold-soft); }
.breadcrumb span { color: #6b83a0; }

/* ============================================================
   CTA BAND
============================================================ */
.cta-band {
  background: linear-gradient(135deg, var(--teal), var(--teal-600));
  color: #fff; border-radius: var(--radius-lg); padding: 56px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 14px; }
.cta-band p { color: #d5efef; max-width: 600px; margin: 0 auto 28px; }
.cta-band .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   FORMS
============================================================ */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 40px; box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 8px; }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  font-family: var(--ff-body); font-size: 15px; color: var(--ink); background: var(--cream);
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); background: #fff;
  box-shadow: 0 0 0 4px rgba(27,122,122,.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .hint { font-size: 13px; color: var(--slate); margin-top: 6px; }
.form-note { font-size: 13.5px; color: var(--slate); margin-top: 8px; }
.form-success {
  display: none; background: #e8f5ec; border: 1px solid #b7e0c4; color: #1c7a3f;
  padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 500;
}
.form-success.show { display: block; }

/* ============================================================
   CONTACT INFO CARDS
============================================================ */
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; gap: 18px; align-items: flex-start;
}
.info-card__icon {
  flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--cream);
  color: var(--teal); display: grid; place-items: center;
}
.info-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.info-card p, .info-card a { color: var(--slate); font-size: .95rem; }

/* ============================================================
   FAQ ACCORDION
============================================================ */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border: 1px solid var(--line); border-radius: 14px; margin-bottom: 14px; background: #fff; overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; padding: 20px 24px; background: none; border: none;
  font-family: var(--ff-body); font-weight: 600; font-size: 1.05rem; color: var(--navy);
  cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq__q .plus { flex: none; width: 26px; height: 26px; position: relative; transition: transform .3s; }
.faq__q .plus::before, .faq__q .plus::after {
  content:""; position:absolute; top:50%; left:50%; transform: translate(-50%,-50%);
  background: var(--teal);
}
.faq__q .plus::before { width: 14px; height: 2px; }
.faq__q .plus::after { width: 2px; height: 14px; transition: opacity .3s; }
.faq__item.open .plus::after { opacity: 0; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.faq__a p { padding: 0 24px 22px; color: var(--slate); }

/* ============================================================
   FOOTER
============================================================ */
.site-footer { background: var(--navy); color: #b8c7d8; padding: 68px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand__name { color: #fff; }
.footer-brand p { color: #9fb2c7; margin-top: 16px; font-size: .95rem; max-width: 320px; }
.footer-col h5 { color: #fff; font-family: var(--ff-body); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer-col ul { list-style: none; display: grid; gap: 11px;     margin: 0;}
.footer-col a { color: #9fb2c7; font-size: 14.5px; }
.footer-col a:hover { color: var(--gold-soft); }
.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08);
  display: grid; place-items: center; color: #cdd9e6;
}
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 13.5px; color: #7f97b0;
}
.footer-bottom a { color: #9fb2c7; }
.footer-badges { display:flex; gap: 18px; flex-wrap: wrap; }

/* ============================================================
   REVEAL ANIMATION
============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__visual { max-width: 380px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 26px; }
}
@media (max-width: 820px) {
  .nav-links, .nav-cta .btn:not(.nav-cta__main) { display: none; }
  .nav-toggle { display: block; }
  .nav-links.show {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 78px; left: 0; right: 0; background: #fff;
    border-bottom: 1px solid var(--line); padding: 12px; gap: 2px;
    box-shadow: var(--shadow-md);
  }
  .nav-links.show .drop { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: none; padding: 0 0 0 16px; min-width: auto; }
  .has-drop > a::after { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .form-card { padding: 26px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .flow__item { min-width: 240px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   WORDPRESS ADDITIONS — LEAP for Justice child theme
   Everything below extends the original design system above.
   Same palette, same type scale, same radii and shadows.
============================================================ */

/* ---------- Accessibility helpers ---------- */
.screen-reader-text {
  border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
  height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
  position: absolute !important; word-wrap: normal !important;
}
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100000;
  background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 8px;
}
.skip-link:focus { left: 16px; color: #fff; }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px;
}

/* ---------- Logo (custom logo support) ---------- */
.brand__logo img, .custom-logo { max-height: 52px; width: auto; height: auto; }

/* ---------- Layout: content + sidebar ---------- */
.leap-layout {
  display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 52px;
  align-items: start;
}
.leap-layout--full { grid-template-columns: minmax(0,1fr); }
.leap-sidebar { position: sticky; top: 100px; display: grid; gap: 24px; }

/* ---------- Widgets ---------- */
.widget {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
}
.widget .widget-title, .widget h2, .widget h3 {
  font-size: 1.1rem; margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.widget ul { list-style: none; display: grid; gap: 10px; }
.widget ul li { color: var(--slate); font-size: .95rem; }
.widget ul li a { color: var(--ink); font-weight: 500; }
.widget ul li a:hover { color: var(--teal); }
.widget--cta { background: linear-gradient(135deg, var(--navy), var(--navy-800)); border-color: transparent; }
.widget--cta h3, .widget--cta .widget-title { color: #fff; border-bottom-color: rgba(255,255,255,.14); }
.widget--cta p { color: #b8c7d8; font-size: .95rem; margin-bottom: 18px; }
.widget--cta .btn { width: 100%; }

/* Search form */
.search-form { display: flex; gap: 8px; }
.search-form input[type="search"] {
  flex: 1; min-width: 0; padding: 13px 15px; border: 1.5px solid var(--line);
  border-radius: 11px; background: var(--cream); font-family: var(--ff-body); font-size: 15px;
}
.search-form input[type="search"]:focus { outline: none; border-color: var(--teal); background: #fff; }
.search-form button {
  border: none; background: var(--teal); color: #fff; border-radius: 11px;
  padding: 0 18px; cursor: pointer; font-weight: 600;
}
.search-form button:hover { background: var(--teal-600); }

/* Recent post rows */
.mini-post { display: flex; gap: 14px; align-items: flex-start; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.mini-post:last-child { border-bottom: none; }
.mini-post__thumb { flex: none; width: 74px; height: 58px; border-radius: 10px; overflow: hidden; background: var(--cream-200); }
.mini-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-post__title { font-family: var(--ff-body); font-size: .93rem; font-weight: 600; line-height: 1.4; }
.mini-post__title a { color: var(--navy); }
.mini-post__title a:hover { color: var(--teal); }
.mini-post__date { font-size: 12.5px; color: var(--slate); margin-top: 4px; }

/* Tag cloud */
.tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tagcloud a {
  font-size: 13px !important; font-weight: 500; color: var(--navy);
  background: var(--cream); border: 1px solid var(--line);
  padding: 7px 13px; border-radius: 100px;
}
.tagcloud a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ---------- Post cards (blog / archive / related) ---------- */
.post-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.post-card__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: linear-gradient(135deg, var(--teal), var(--navy)); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.post-card__cat {
  display: inline-flex; width: fit-content; font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--teal);
  background: var(--cream); border: 1px solid var(--line); padding: 5px 12px; border-radius: 100px;
}
.post-card__title { font-size: 1.22rem; line-height: 1.25; }
.post-card__title a { color: var(--navy); }
.post-card:hover .post-card__title a { color: var(--teal); }
.post-card__excerpt { color: var(--slate); font-size: .96rem; }
.post-card__meta {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--slate);
}
.post-card__meta span { display: inline-flex; align-items: center; gap: 6px; }

/* Wide list variant (archives) */
.post-list { display: grid; gap: 26px; }
.post-wide {
  display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.post-wide:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.post-wide__media { overflow: hidden; background: linear-gradient(135deg, var(--teal), var(--navy)); min-height: 210px; }
.post-wide__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-wide:hover .post-wide__media img { transform: scale(1.05); }
.post-wide__body { padding: 30px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.post-wide__title { font-size: 1.5rem; line-height: 1.22; }
.post-wide__title a { color: var(--navy); }
.post-wide:hover .post-wide__title a { color: var(--teal); }
.post-wide__excerpt { color: var(--slate); font-size: 1rem; }
.post-wide__meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 13.5px; color: var(--slate); }
.post-wide__meta span { display: inline-flex; align-items: center; gap: 7px; }

.avatar-initial {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--navy), var(--teal)); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 700; text-transform: uppercase;
}

/* Sticky flag */
.post-card--sticky, .post-wide--sticky { border-color: var(--gold); }

/* ---------- Pagination ---------- */
.leap-pagination { margin-top: 52px; }
.leap-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.leap-pagination .page-numbers {
  min-width: 46px; height: 46px; padding: 0 14px; border-radius: 100px;
  background: #fff; border: 1px solid var(--line); color: var(--navy);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 15px; transition: all .2s ease;
}
.leap-pagination .page-numbers:hover { border-color: var(--teal); color: var(--teal); }
.leap-pagination .page-numbers.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.leap-pagination .page-numbers.dots { background: transparent; border-color: transparent; }

/* ---------- Single post ---------- */
.single-hero { padding-bottom: 66px; }
.single-hero .entry-cats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.single-hero .entry-cats a {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--navy); background: var(--gold-soft); padding: 6px 14px; border-radius: 100px;
}
.single-hero .entry-cats a:hover { background: var(--gold); }
.entry-meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 22px; color: #b8c7d8; font-size: 14.5px; }
.entry-meta span { display: inline-flex; align-items: center; gap: 8px; }
.entry-meta .avatar-initial { width: 34px; height: 34px; font-size: 14px; }

.featured-media {
  margin: -54px auto 0; max-width: 1000px; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-lg); position: relative; z-index: 2;
  background: var(--cream-200);
}
.featured-media img { width: 100%; height: auto; }

/* Entry content typography */
.entry-content { font-size: 1.06rem; line-height: 1.8; color: var(--ink); }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 { font-size: 1.85rem; margin-top: 1.8em; }
.entry-content h3 { font-size: 1.42rem; margin-top: 1.6em; }
.entry-content h4 { font-size: 1.18rem; margin-top: 1.5em; }
.entry-content p { color: var(--ink); }
.entry-content a { text-decoration: underline; text-underline-offset: 3px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; display: grid; gap: 10px; }
.entry-content li { color: var(--ink); }
.entry-content img, .entry-content figure img { border-radius: var(--radius); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption, .wp-caption-text {
  font-size: 13.5px; color: var(--slate); text-align: center; margin-top: 10px;
}
.entry-content blockquote {
  border-left: 3px solid var(--gold); padding: 6px 0 6px 28px;
  font-family: var(--ff-display); font-style: italic; font-size: 1.28rem;
  color: var(--navy); line-height: 1.45;
}
.entry-content blockquote cite { display: block; font-size: .9rem; font-style: normal; color: var(--slate); margin-top: 10px; }
.entry-content pre {
  background: var(--navy); color: #dfe7f0; padding: 22px; border-radius: var(--radius);
  overflow-x: auto; font-size: 14px; line-height: 1.6;
}
.entry-content code { background: var(--cream-200); color: var(--navy); padding: 2px 7px; border-radius: 6px; font-size: .9em; }
.entry-content pre code { background: none; color: inherit; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; font-size: .96rem; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: 12px 15px; text-align: left; }
.entry-content th { background: var(--cream); color: var(--navy); font-weight: 700; }
.entry-content hr { border: none; border-top: 1px solid var(--line); margin: 2.2em 0; }

/* WP alignment + media classes */
.alignleft { float: left; margin: 0 26px 20px 0; }
.alignright { float: right; margin: 0 0 20px 26px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide { width: min(1080px, 100vw - 48px); margin-left: 50%; transform: translateX(-50%); max-width: none; }
.alignfull { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: none; }
.wp-caption { max-width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.gallery img { border-radius: var(--radius); }

/* Tags + share + author */
.entry-tags { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); }
.entry-tags .label { font-weight: 600; font-size: 14px; color: var(--navy); }
.entry-tags a {
  font-size: 13px; color: var(--navy); background: var(--cream);
  border: 1px solid var(--line); padding: 7px 14px; border-radius: 100px;
}
.entry-tags a:hover { background: var(--teal); border-color: var(--teal); color: #fff; }

.entry-share { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 26px; }
.entry-share .label { font-weight: 600; font-size: 14px; color: var(--navy); margin-right: 4px; }
.entry-share a, .entry-share button {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: var(--cream); border: 1px solid var(--line); color: var(--navy); cursor: pointer;
  transition: all .2s ease;
}
.entry-share a:hover, .entry-share button:hover { background: var(--navy); color: #fff; border-color: var(--navy); transform: translateY(-2px); }

.author-box {
  display: flex; gap: 22px; align-items: flex-start; margin-top: 40px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px;
}
.author-box img, .author-box .avatar-initial { width: 76px; height: 76px; border-radius: 50%; flex: none; font-size: 28px; }
.author-box h4 { font-size: 1.15rem; margin-bottom: 4px; }
.author-box .role { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 10px; }
.author-box p { color: var(--slate); font-size: .96rem; }

.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.post-nav a {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; display: grid; gap: 8px; transition: all .25s ease;
}
.post-nav a:hover { border-color: transparent; box-shadow: var(--shadow-md); transform: translateY(-3px); }
.post-nav .label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); }
.post-nav .title { font-family: var(--ff-display); font-size: 1.05rem; color: var(--navy); line-height: 1.3; }
.post-nav .is-next { text-align: right; }

/* Reading progress */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--teal), var(--gold)); z-index: 1200; transition: width .1s linear;
}

/* ---------- Comments ---------- */
.comments-area { margin-top: 52px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; }
.comments-title, .comment-reply-title { font-size: 1.5rem; margin-bottom: 24px; }
.comment-list { list-style: none; display: grid; gap: 20px; }
.comment-list .children { list-style: none; display: grid; gap: 20px; margin-top: 20px; padding-left: 32px; }
.comment-body { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.comment-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.comment-author-name { font-weight: 700; color: var(--navy); font-size: .98rem; }
.comment-date { font-size: 12.5px; color: var(--slate); }
.comment-content { color: var(--ink); font-size: .98rem; }
.comment-content p + p { margin-top: 12px; }
.comment-reply-link {
  display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600;
  color: var(--teal);
}
.comment-respond { margin-top: 34px; }
.comment-form { display: grid; gap: 18px; }
.comment-form p { margin: 0; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; color: var(--navy); margin-bottom: 8px; }
.comment-form input[type="text"], .comment-form input[type="email"],
.comment-form input[type="url"], .comment-form textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px;
  background: var(--cream); font-family: var(--ff-body); font-size: 15px; color: var(--ink);
}
.comment-form input:focus, .comment-form textarea:focus { outline: none; border-color: var(--teal); background: #fff; }
.comment-form textarea { min-height: 140px; resize: vertical; }
.comment-form .form-submit input[type="submit"] {
  background: var(--teal); color: #fff; border: 2px solid var(--teal); border-radius: 100px;
  padding: 15px 34px; font-family: var(--ff-body); font-weight: 600; font-size: 15px; cursor: pointer;
}
.comment-form .form-submit input[type="submit"]:hover { background: var(--teal-600); border-color: var(--teal-600); }
.comment-notes, .comment-form-cookies-consent label { font-size: 13.5px; color: var(--slate); font-weight: 400; }

/* ---------- Empty states / 404 ---------- */
.empty-state { text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-lg); padding: 62px 30px; }
.empty-state h3 { font-size: 1.5rem; margin-bottom: 10px; }
.empty-state p { color: var(--slate); max-width: 480px; margin: 0 auto 24px; }
.error-404 { text-align: center; padding: 30px 0 10px; }
.error-404__code {
  font-family: var(--ff-display); font-size: clamp(5rem, 16vw, 9rem); line-height: 1;
  color: var(--navy); opacity: .12; font-weight: 700;
}
.error-404 .search-form { max-width: 440px; margin: 26px auto 0; }

/* ---------- Forms: AJAX states ---------- */
.form-error {
  display: none; background: #fdecea; border: 1px solid #f5c6c0; color: #a33327;
  padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; font-weight: 500;
}
.form-error.show { display: block; }
.leap-hp { position: absolute !important; left: -9999px !important; opacity: 0; height: 0; width: 0; }
.btn.is-loading { opacity: .7; pointer-events: none; position: relative; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45); border-top-color: #fff;
  animation: leapspin .7s linear infinite; margin-left: 4px;
}
@keyframes leapspin { to { transform: rotate(360deg); } }
.field input.has-error, .field select.has-error, .field textarea.has-error { border-color: #c0392b; }

/* ---------- Breadcrumbs on archives ---------- */
.page-head .breadcrumb a:hover { color: #fff; }

/* ---------- Misc ---------- */
.section--white + .section--white { padding-top: 0; }
.to-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; border: none; cursor: pointer; display: grid; place-items: center;
  opacity: 0; visibility: hidden; transform: translateY(14px); transition: all .3s ease; z-index: 900;
  box-shadow: var(--shadow-md);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--teal); }

/* GeneratePress resets — our templates supply header, footer and layout */
.site-header.leap-header { padding: 0; }
body .site-content, body #content, body #page { padding: 0 !important; margin: 0 !important; max-width: none !important; }
body #right-sidebar, body #left-sidebar, body .site-info, body .generate-back-to-top { display: none !important; }
.gp-hidden { display: none !important; }

/* ---------- Responsive additions ---------- */
@media (max-width: 1080px) {
  .leap-layout { grid-template-columns: minmax(0,1fr); }
  .leap-sidebar { position: static; grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 980px) {
  .post-wide { grid-template-columns: 1fr; }
  .post-wide__media { min-height: 0; aspect-ratio: 16/9; }
  .featured-media { margin-top: -34px; }
}
@media (max-width: 820px) {
  .site-header .nav-links.show { top: 78px; }
}
@media (max-width: 640px) {
  .leap-sidebar { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .is-next { text-align: left; }
  .comments-area { padding: 24px; }
  .author-box { flex-direction: column; gap: 16px; }
  .entry-content { font-size: 1rem; }
  .comment-list .children { padding-left: 14px; }
  .gallery { grid-template-columns: repeat(2,1fr); }
  .alignleft, .alignright { float: none; margin: 0 0 20px; }
}
@media print {
  .site-header, .site-footer, .leap-sidebar, .entry-share, .comments-area, .to-top { display: none !important; }
  body { background: #fff; font-size: 12pt; }
}



/*
Theme Name: LEAP for Justice
Theme URI: https://www.leapforjustice.org/
Description: Official child theme for LEAP for Justice Foundation — a dignified, institutional access-to-justice website built on GeneratePress. Includes the full page set (home, about, why LEAP, our work, get legal help, resources, volunteer, partner, donate, governance, contact), dynamic enquiry forms saved to a custom post type, built-in SEO output, and performance tuning.
Author: LEAP for Justice Foundation
Author URI: https://www.leapforjustice.org/
Template: generatepress
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: leapforjustice
Tags: nonprofit, ngo, custom-menu, custom-logo, featured-images, threaded-comments, right-sidebar, accessibility-ready
*/

/*
 * NOTE
 * ----
 * The complete design lives in /assets/css/leap.css (enqueued from inc/enqueue.php).
 * This file is loaded LAST, after GeneratePress and after leap.css, so anything
 * written here wins. Add your own tweaks at the bottom.
 */

/* --- Neutralise GeneratePress chrome: our templates provide header/footer/layout --- */
.site-header:not(.leap-header),
.site-footer:not(.leap-footer),
#right-sidebar,
#left-sidebar,
.site-info,
.generate-back-to-top { display: none !important; }

#page, #content, .site-content, .content-area, .inside-article {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  width: 100% !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.separate-containers .site-main,
.separate-containers .inside-article,
.one-container .site-content { margin: 0 !important; padding: 0 !important; }

body.leap { background: var(--cream); }

/* GeneratePress sometimes forces link colour/underline — keep our UI clean */
.leap a { text-decoration: none; }
.leap .entry-content a { text-decoration: underline; text-underline-offset: 3px; }

/* Admin bar offset for the sticky header */
body.admin-bar .site-header.leap-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header.leap-header { top: 46px; } }

/* ===== Your custom CSS below ===== */

/* ============================================================
   FOUNDER MESSAGE
   Used by the About LEAP page (#founder-message) and the homepage.
   Deliberately quiet: this is a credibility section, not a hero.
============================================================ */
.founder-band {
  background:
    linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.founder-band--home {
  background: linear-gradient(180deg, var(--cream) 0%, var(--white) 100%);
}

.founder {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 52px;
}
.founder--compact { grid-template-columns: 280px 1fr; gap: 52px; align-items: center; }

/* ---- Photograph ---- */
.founder__media { position: sticky; top: 104px; }
.founder--compact .founder__media { position: static; }

.founder__frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  box-shadow: var(--shadow-md);
  position: relative;
}
.founder__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  pointer-events: none;
}
.founder__img { width: 100%; height: 100%; object-fit: cover; display: block; }

.founder__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--ff-display);
  font-size: 4.5rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .32);
}

/* ---- Name plate under the photograph ---- */
.founder__sign {
  margin-top: 22px;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  display: grid;
  gap: 3px;
}
.founder__name {
  font-family: var(--ff-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--navy);
}
.founder__role { font-size: .9rem; color: var(--slate); }

/* ---- Message ---- */
.founder__body > p {
  color: var(--slate);
  margin-bottom: 18px;
  line-height: 1.75;
}
.founder__body > p strong { color: var(--navy); font-weight: 600; }
.founder__body .feature-quote { margin: 26px 0; }

.founder__closing {
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--navy) !important;
  font-weight: 500;
}

.founder__pull {
  font-family: var(--ff-display);
  font-size: 1.55rem;
  line-height: 1.4;
  font-style: italic;
  font-weight: 500;
  color: var(--navy);
  border-left: 3px solid var(--gold);
  padding: 6px 0 6px 28px;
  margin-bottom: 26px;
}

/* ---- Signature block at the end of the message ---- */
.founder__attrib {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 2px;
}
.founder__attrib-name {
  font-family: var(--ff-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--navy);
}
.founder__attrib-role { font-size: .9rem; color: var(--slate); }

.founder__cta { margin-top: 28px; }

/* ---- Anchor offset so the sticky header never covers the heading ---- */
#founder-message { scroll-margin-top: 96px; }

@media (max-width: 980px) {
  .founder,
  .founder--compact { grid-template-columns: 1fr; gap: 34px; }
  .founder__media { position: static; max-width: 320px; }
  .founder__pull { font-size: 1.3rem; }
}

/* ============================================================
   HOMEPAGE — COMPOSITION BIBLE, PART IV
   Section heading / lede / sub-head / feature / conclusion rhythm.
   Added for the rebuilt front-page.php. Nothing above is changed.
============================================================ */

/* ---------- Hero: the Bible's two description paragraphs ---------- */
.hero__content > p.hero__desc { margin-bottom: 0; }
.hero__desc + .hero__desc { margin-top: 14px; }
.hero__content > p.hero__desc:last-of-type { margin-bottom: 34px; }
.hero__trust { gap: 14px 24px; }
.hero__trust span { max-width: 100%; align-items: flex-start; }
.hero__trust .dot { margin-top: 7px; }
.hero__actions { margin-bottom: 16px; }
.hero__actions--secondary { margin-bottom: 38px; }
.hero__actions--secondary .btn { padding: 15px 28px; }

/* ---------- Section head (heading + sub-heading, no eyebrow) ---------- */
.section-head { text-align: center; max-width: 880px; margin: 0 auto 34px; }
.section-head .section-title { margin-bottom: 14px; }
.section-head .section-sub { margin-left: auto; margin-right: auto; }

/* Quiet gold mark that replaces the eyebrow label */
.section-mark {
  display: block; width: 46px; height: 3px; border-radius: 3px;
  background: var(--gold); margin: 0 auto 22px;
}
.section-mark--light { background: var(--gold-soft); }

/* ---------- Main content paragraphs ---------- */
.prose { max-width: 880px; }
.prose--center { margin-left: auto; margin-right: auto; text-align: center; }
.prose p { color: var(--slate); font-size: 1.06rem; line-height: 1.78; }
.prose p + p { margin-top: 16px; }
.section--navy .prose p { color: #c3d2e2; }

/* ---------- Sub-heads inside a section ---------- */
.subhead {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  text-align: center; margin: 56px 0 30px; color: var(--navy);
}
.subhead::after {
  content: ""; display: block; width: 30px; height: 2px;
  background: var(--gold); border-radius: 2px; margin: 14px auto 0;
}
.subhead--light { color: #fff; }
.subhead--light::after { background: var(--gold-soft); }
.subhead--left { text-align: left; margin: 0 0 18px; }
.subhead--left::after { margin: 14px 0 0; }

/* ---------- Conclusion paragraph ---------- */
.conclusion {
  max-width: 880px; margin: 46px auto 0; text-align: center;
  color: var(--slate); font-size: 1.02rem; line-height: 1.78;
  border-top: 1px solid var(--line); padding-top: 30px;
}
.section--navy .conclusion { color: #b8c7d8; border-top-color: rgba(255,255,255,.15); }

/* ---------- Feature statement placement on the homepage ---------- */
.section .feature-quote {
  max-width: 880px; margin: 52px auto 0;
}
.section--navy .feature-quote { border-left-color: var(--gold-soft); }

/* ---------- Generic button row ---------- */
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.section .feature-quote + .btn-row { margin-top: 40px; }

/* ---------- Theory of Change rail ---------- */
.toc-rail {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 560px; position: relative;
}
.toc-rail::before {
  content: ""; position: absolute; left: 11px; top: 14px; bottom: 14px;
  width: 2px; background: linear-gradient(180deg, var(--gold-soft), rgba(226,201,136,.25));
}
.toc-step {
  position: relative; padding: 0 0 0 44px; margin-bottom: 14px;
  display: flex; align-items: center; min-height: 48px;
}
.toc-step:last-child { margin-bottom: 0; }
.toc-dot {
  position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--navy); border: 2px solid var(--gold-soft);
}
.toc-label {
  display: block; width: 100%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: 100px; padding: 13px 26px;
  color: #eaf1f8; font-weight: 600; font-size: .98rem;
}
.toc-step--start .toc-label { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.32); }
.toc-step--result .toc-label { background: rgba(27,122,122,.35); border-color: rgba(27,122,122,.7); color: #fff; }
.toc-step--end .toc-label { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.toc-step--end .toc-dot { background: var(--gold); border-color: var(--gold); }

/* ---------- Cards on the navy section ---------- */
.card--dark {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.14);
  box-shadow: none;
}
.card--dark h3 { color: #fff; }
.card--dark p { color: #b8c7d8; }
.card--dark .card__icon { background: rgba(201,162,75,.16); color: var(--gold-soft); }
.card--dark:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.24); box-shadow: none; }
.card--result { border-color: rgba(201,162,75,.5); background: rgba(201,162,75,.08); }

/* ---------- Two-panel layout (4.7 and 4.8) ---------- */
.split--balanced { align-items: stretch; gap: 32px; }
.panel {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 38px;
}
.panel--tint { background: linear-gradient(180deg, var(--cream) 0%, var(--cream-200) 100%); }
.panel p { color: var(--slate); }
.panel p + p { margin-top: 14px; }
.panel__lede { margin-bottom: 18px; }

/* ---------- Simple dot list ---------- */
.dot-list { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.dot-list li {
  position: relative; padding-left: 26px; color: var(--slate); font-size: 1rem;
}
.dot-list li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
}

/* ---------- Chips (Our Commitment) ---------- */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.chip {
  background: var(--white); border: 1px solid var(--line); border-radius: 100px;
  padding: 10px 18px; font-size: .93rem; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* ---------- Closing call-to-action (4.10) ---------- */
.closing {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-800) 60%, #0c2038 100%);
  border-radius: var(--radius-lg); padding: 76px 44px;
  text-align: center; position: relative; overflow: hidden;
}
.closing::after {
  content: ""; position: absolute; right: -140px; bottom: -140px;
  width: 360px; height: 360px; border: 1px solid rgba(201,162,75,.22); border-radius: 50%;
}
.closing > * { position: relative; z-index: 1; }
.closing__title { color: #fff; font-size: clamp(1.9rem, 4vw, 2.9rem); margin-bottom: 16px; }
.closing__sub {
  font-family: var(--ff-display); font-size: 1.2rem; font-weight: 500;
  color: var(--gold-soft); max-width: 720px; margin: 0 auto 34px;
}
.closing__body { max-width: 820px; margin: 0 auto; }
.closing__body p { color: #c3d2e2; font-size: 1.03rem; line-height: 1.78; }
.closing__body p + p { margin-top: 16px; }
.closing__feature {
  font-family: var(--ff-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.2rem, 2.6vw, 1.55rem); color: #fff;
  max-width: 760px; margin: 40px auto;
  padding-top: 30px; border-top: 1px solid rgba(255,255,255,.16);
}
.closing .btn-row { margin-bottom: 38px; }
.closing__final {
  color: #b8c7d8; font-size: 1rem; max-width: 760px; margin: 0 auto;
}

/* ---------- Homepage responsive ---------- */
@media (max-width: 980px) {
  .split--balanced { gap: 24px; }
  .panel { padding: 30px; }
}
@media (max-width: 640px) {
  .section-head { margin-bottom: 26px; }
  .subhead { margin: 44px 0 24px; }
  .section .feature-quote { font-size: 1.18rem; margin-top: 40px; padding-left: 20px; }
  .conclusion { margin-top: 36px; padding-top: 24px; }
  .toc-label { padding: 12px 20px; font-size: .93rem; }
  .toc-step { padding-left: 38px; }
  .closing { padding: 48px 24px; }
  .closing .btn-row .btn { width: 100%; justify-content: center; text-align: center; }
  .btn-row .btn--lg { padding: 16px 26px; }
}


/* ============================================================
   ABOUT LEAP — COMPOSITION BIBLE, PART VI
   In-page nav, vision/mission cards, question + statement blocks,
   if/then logic list, stage list. Added for template-about.php.
============================================================ */

/* ---------- Sticky in-page section navigation ---------- */
.page-nav {
  position: sticky; top: 72px; z-index: 40;
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
body.admin-bar .page-nav { top: 104px; }
.page-nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: 4px; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.page-nav__list::-webkit-scrollbar { display: none; }
.page-nav__list a {
  display: block; white-space: nowrap;
  padding: 16px 16px; font-size: 14.5px; font-weight: 600;
  color: var(--slate); border-bottom: 2px solid transparent;
}
.page-nav__list a:hover,
.page-nav__list a.is-active { color: var(--teal); border-bottom-color: var(--gold); }

/* Anchor offset so the sticky header + nav never cover a heading */
#about-leap, #our-story, #vision-mission, #core-values,
#theory-of-change, #leadership, #advisory-council { scroll-margin-top: 130px; }

/* ---------- Vision & Mission cards ---------- */
.vm-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 26px;
  margin-top: 46px;
}
.vm-card {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-800) 100%);
  border-radius: var(--radius-lg); padding: 44px 38px;
  position: relative; overflow: hidden;
}
.vm-card::after {
  content: ""; position: absolute; right: -90px; bottom: -90px;
  width: 240px; height: 240px; border: 1px solid rgba(201,162,75,.22); border-radius: 50%;
}
.vm-card > * { position: relative; z-index: 1; }
.vm-card__label {
  font-family: var(--ff-body); font-size: 13px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-soft); margin-bottom: 18px;
}
.vm-card__text {
  font-family: var(--ff-display); font-size: 1.32rem; line-height: 1.45;
  font-weight: 500; color: #fff;
}
.vm-card--gold { background: linear-gradient(150deg, var(--teal) 0%, var(--teal-600) 100%); }
.vm-card--gold::after { border-color: rgba(255,255,255,.22); }
.vm-card--gold .vm-card__label { color: #ffe9b8; }

/* ---------- Pull-out question ---------- */
.question {
  max-width: 820px; margin: 34px auto 0; text-align: center;
  background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius); padding: 30px 34px;
  font-family: var(--ff-display); font-size: 1.22rem; line-height: 1.5;
  font-style: italic; font-weight: 500; color: var(--navy);
  box-shadow: var(--shadow-sm);
}

/* ---------- Belief statement ---------- */
.statement {
  max-width: 860px; margin: 30px auto 0; text-align: center;
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-800) 100%);
  border-radius: var(--radius-lg); padding: 40px 38px;
  font-family: var(--ff-display); font-size: 1.24rem; line-height: 1.5;
  font-weight: 500; color: #fff;
}

/* ---------- If / Then logic block ---------- */
.if-then {
  list-style: none; margin: 30px auto 0; padding: 0;
  max-width: 720px; display: grid; gap: 10px;
}
.if-then li {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-left: 3px solid var(--gold-soft);
  border-radius: 10px; padding: 14px 22px;
  color: #dfe7f0; font-size: 1rem;
}
.if-then__then {
  background: rgba(201,162,75,.14) !important;
  border-color: rgba(201,162,75,.5) !important;
  border-left-color: var(--gold) !important;
  color: #fff !important; font-weight: 600;
}

/* ---------- Stage list (Inputs → Long-Term Impact) ---------- */
.stage-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; max-width: 900px; margin-inline: auto; }
.stage {
  display: grid; grid-template-columns: 62px 1fr; gap: 22px; align-items: start;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius); padding: 26px 28px;
}
.stage__num {
  font-family: var(--ff-display); font-size: 1.9rem; font-weight: 600;
  color: var(--gold-soft); line-height: 1;
}
.stage__body h4 { color: #fff; font-size: 1.14rem; margin-bottom: 8px; }
.stage__body p { color: #b8c7d8; font-size: .99rem; line-height: 1.7; }

/* Light-background variant, in case the block is reused on cream/white */
.section--cream .stage, .section--white .stage {
  background: var(--white); border-color: var(--line); box-shadow: var(--shadow-sm);
}
.section--cream .stage__num, .section--white .stage__num { color: var(--gold); }
.section--cream .stage__body h4, .section--white .stage__body h4 { color: var(--navy); }
.section--cream .stage__body p, .section--white .stage__body p { color: var(--slate); }

/* ---------- Centred list variants ---------- */
.chips--center { justify-content: center; margin-top: 26px; }
.dot-list--center {
  max-width: 560px; margin-left: auto; margin-right: auto; margin-top: 26px;
}

/* ---------- Multi-paragraph conclusion ---------- */
.conclusion p + p { margin-top: 14px; }

/* ---------- Founder block spacing on this page ---------- */
#leadership .founder { margin-top: 34px; }

/* Before the Founder's Message is published, keep the block compact */
.founder--brief { align-items: center; grid-template-columns: 240px 1fr; }
.founder--brief .founder__frame { aspect-ratio: 1 / 1; }
.founder--brief .founder__attrib { display: none; }
.founder--brief .founder__cta { margin-top: 0; }

/* ---------- About responsive ---------- */
@media (max-width: 980px) {
  .vm-grid { grid-template-columns: 1fr; gap: 20px; }
  .page-nav { top: 68px; }
  .founder--brief { grid-template-columns: 1fr; gap: 26px; }
  .founder--brief .founder__media { max-width: 260px; }
  .founder--brief .founder__cta { margin-top: 4px; }
}
@media (max-width: 640px) {
  .page-nav__list a { padding: 14px 12px; font-size: 13.5px; }
  .vm-card { padding: 32px 26px; }
  .vm-card__text { font-size: 1.15rem; }
  .question { padding: 24px 22px; font-size: 1.1rem; }
  .statement { padding: 30px 24px; font-size: 1.12rem; }
  .stage { grid-template-columns: 1fr; gap: 10px; padding: 22px 20px; }
  .if-then li { padding: 12px 16px; font-size: .95rem; }
  #about-leap, #our-story, #vision-mission, #core-values,
  #theory-of-change, #leadership, #advisory-council { scroll-margin-top: 120px; }
}


/* ============================================================
   WHY LEAP EXISTS — COMPOSITION BIBLE, PART V
   Key Message band. Added for template-why-leap.php.
   Everything else on that page reuses the shared components above.
============================================================ */

.key-message {
  max-width: 880px; margin: 34px auto 0; text-align: center;
  background: linear-gradient(180deg, rgba(201,162,75,.10) 0%, rgba(201,162,75,.16) 100%);
  border: 1px solid rgba(201,162,75,.45);
  border-radius: var(--radius-lg); padding: 30px 34px;
  font-size: 1.06rem; line-height: 1.7; font-weight: 600; color: var(--navy);
}
.key-message--light,
.section--navy .key-message {
  background: rgba(201,162,75,.12);
  border-color: rgba(201,162,75,.5);
  color: #fff;
}

/* Anchor offset for the Why LEAP Exists sections */
#justice-gap, #need-for-infrastructure, #existing-systems,
#why-established, #leap-approach, #future { scroll-margin-top: 130px; }

@media (max-width: 640px) {
  .key-message { padding: 24px 22px; font-size: 1rem; margin-top: 28px; }
  #justice-gap, #need-for-infrastructure, #existing-systems,
  #why-established, #leap-approach, #future { scroll-margin-top: 120px; }
}


/* ============================================================
   OUR WORK — COMPOSITION BIBLE, PART VII
   Line list, linked chips, and the Need Assistance block.
   Added for template-our-work.php.
============================================================ */

/* ---------- Stacked single-line list (The Power of Collective Action) ---------- */
.line-list {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: 720px; display: grid; gap: 10px;
}
.line-list li {
  background: var(--white); border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: 10px; padding: 14px 22px;
  color: var(--slate); font-size: 1rem;
}
.section--navy .line-list li {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.14);
  border-left-color: var(--gold-soft);
  color: #dfe7f0;
}

/* ---------- Chips that link somewhere ---------- */
.chip--link { padding: 0; }
.chip--link a {
  display: block; padding: 10px 18px; color: var(--navy);
  font-weight: 600; border-radius: 100px;
}
.chip--link:hover { border-color: var(--teal); }
.chip--link a:hover { color: var(--teal); }
.section--navy .chip--link a { color: var(--navy); }

/* ---------- Need Assistance block (7.2 Call to Action) ---------- */
.cta-note {
  max-width: 680px; margin: 46px auto 0; text-align: center;
  background: var(--white); border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  border-radius: var(--radius-lg); padding: 40px 34px;
  box-shadow: var(--shadow-sm);
}
.cta-note h3 { font-size: 1.5rem; margin-bottom: 10px; }
.conclusion + .btn-row { margin-top: 40px; }
.chips + .prose { margin-top: 26px; }
.cta-note p { color: var(--slate); margin-bottom: 24px; }

/* Anchor offset for the Our Work sections */
#our-work, #legal-aid, #legal-awareness, #community-outreach,
#volunteer-networks, #technology, #research, #partnerships { scroll-margin-top: 130px; }

@media (max-width: 640px) {
  .line-list li { padding: 12px 16px; font-size: .95rem; }
  .cta-note { padding: 30px 22px; }
  .cta-note .btn { width: 100%; }
  #our-work, #legal-aid, #legal-awareness, #community-outreach,
  #volunteer-networks, #technology, #research, #partnerships { scroll-margin-top: 120px; }
}


/* ============================================================
   GET LEGAL HELP — COMPOSITION BIBLE, PART VIII
   Notice box, six-step journey, and the grouped request form.
   Added for template-get-legal-help.php.
============================================================ */

/* ---------- Highlighted notice box ---------- */
.notice {
  max-width: 880px; margin: 44px auto 0;
  background: linear-gradient(180deg, rgba(201,162,75,.08) 0%, rgba(201,162,75,.14) 100%);
  border: 1px solid rgba(201,162,75,.45);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius); padding: 30px 34px;
}
.notice__title { font-size: 1.2rem; margin-bottom: 12px; }
.notice__lede { color: var(--slate); margin-bottom: 16px; }
.notice p { color: var(--slate); }
.notice p + p { margin-top: 12px; }
.notice .dot-list li { color: var(--ink); }

/* ---------- Six-step journey ---------- */
.journey {
  list-style: none; margin: 44px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.journey__step {
  position: relative; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px 26px; box-shadow: var(--shadow-sm);
}
.journey__num {
  position: absolute; top: -18px; left: 26px;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 700; font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.journey__step h4 { font-size: 1.08rem; margin: 8px 0 10px; }
.journey__step p { color: var(--slate); font-size: .97rem; line-height: 1.7; }

/* ---------- Request form ---------- */
.form-card--wide { max-width: 860px; margin: 44px auto 0; }

.field-group { border: none; padding: 0; margin: 0 0 34px; }
.field-group:last-of-type { margin-bottom: 26px; }
.field-group__title {
  display: block; width: 100%; padding: 0 0 12px;
  font-family: var(--ff-display); font-size: 1.22rem; font-weight: 600;
  color: var(--navy); border-bottom: 1px solid var(--line); margin-bottom: 24px;
}
.field-group__lede { color: var(--slate); font-size: .97rem; margin-bottom: 10px; }
.field__label {
  display: block; font-weight: 600; font-size: 14px;
  color: var(--navy); margin-bottom: 10px;
}

/* Radio row */
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 100px;
  padding: 11px 20px; cursor: pointer; background: var(--white);
  font-size: .95rem; color: var(--ink); transition: border-color .2s, background .2s;
}
.radio:hover { border-color: var(--teal); }
.radio input { accent-color: var(--teal); width: 17px; height: 17px; }
.radio:has(input:checked) { border-color: var(--teal); background: rgba(27,122,122,.07); }

/* Consent checkboxes */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.check { display: flex; gap: 13px; align-items: flex-start; cursor: pointer; }
.check input {
  flex: none; margin-top: 3px; width: 19px; height: 19px; accent-color: var(--teal);
}
.check span { color: var(--slate); font-size: .97rem; line-height: 1.6; }
.check span a { text-decoration: underline; text-underline-offset: 2px; }
.field-group + .btn { margin-top: 8px; }
.form-card--wide button[type="submit"] { margin-top: 8px; }

/* File input */
.field input[type="file"] {
  width: 100%; padding: 14px 16px; border: 1px dashed var(--line);
  border-radius: 12px; background: var(--cream); font-size: .95rem; color: var(--slate);
}
.field input[type="file"]:focus { outline: none; border-color: var(--teal); }

/* The cta-note also carries a lone paragraph on this page */
.cta-note > p:first-child { margin-top: 0; }

/* Anchor offset for the Get Legal Help sections */
#get-legal-help, #how-the-process-works, #other-categories,
#faqs, #leap-form { scroll-margin-top: 130px; }

@media (max-width: 980px) {
  .journey { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .notice { padding: 24px 22px; margin-top: 34px; }
  .journey { grid-template-columns: 1fr; gap: 30px; margin-top: 36px; }
  .form-card--wide { padding: 26px 22px; }
  .field-group__title { font-size: 1.1rem; }
  .radio { width: 100%; }
  #get-legal-help, #how-the-process-works, #other-categories,
  #faqs, #leap-form { scroll-margin-top: 120px; }
}


/* ============================================================
   RESOURCES — COMPOSITION BIBLE, PART IX
   Government scheme category panels.
   Added for template-resources.php.
============================================================ */

.scheme-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 26px; margin-top: 46px; align-items: start;
}
.scheme-grid .panel { height: 100%; }
.panel__heading {
  font-size: 1.28rem; color: var(--navy); margin-bottom: 14px;
  padding-bottom: 12px; border-bottom: 2px solid var(--gold);
  display: inline-block;
}
.panel__sublabel {
  font-family: var(--ff-body); font-size: 12.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--teal);
  margin: 22px 0 14px;
}
.scheme-grid .panel p { font-size: .99rem; line-height: 1.72; }
.scheme-grid .dot-list li { font-size: .97rem; }

/* Anchor offset for the Resources sections */
#knowledge-centre, #know-your-rights,
#reports-publications, #government-schemes { scroll-margin-top: 130px; }

@media (max-width: 980px) {
  .scheme-grid { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 640px) {
  .scheme-grid { margin-top: 34px; }
  .panel__heading { font-size: 1.15rem; }
  #knowledge-centre, #know-your-rights,
  #reports-publications, #government-schemes { scroll-margin-top: 120px; }
}


/* ============================================================
   NEWSROOM — COMPOSITION BIBLE, PART X
   Hover state for the existing .card__more link on a plain card,
   which the theme only styled for .card--link.
   Added for template-newsroom.php.
============================================================ */

.card:hover .card__more::after { transform: translateX(4px); }
.card__more:hover { color: var(--navy); }

/* Cards without an icon still need their title to sit flush */
.card > h3:first-child { margin-top: 0; }

/* Anchor offset for the Newsroom sections */
#news-media, #press-releases, #in-the-news,
#events-workshops { scroll-margin-top: 130px; }

@media (max-width: 640px) {
  #news-media, #press-releases, #in-the-news,
  #events-workshops { scroll-margin-top: 120px; }
}


/* ============================================================
   VOLUNTEER — COMPOSITION BIBLE, PART XI
   Numbered "What Happens Next?" list, plus dark-section
   variants for components reused on the navy band.
   Added for template-volunteer.php.
============================================================ */

/* ---------- Numbered step list ---------- */
.step-list {
  counter-reset: leapstep; list-style: none;
  max-width: 720px; margin: 0 auto; padding: 0;
  display: grid; gap: 14px;
}
.step-list li {
  counter-increment: leapstep; position: relative;
  padding: 16px 22px 16px 62px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 12px; color: var(--slate); font-size: 1rem; line-height: 1.65;
}
.step-list li::before {
  content: counter(leapstep);
  position: absolute; left: 18px; top: 15px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--gold); color: var(--navy);
  display: grid; place-items: center;
  font-family: var(--ff-display); font-weight: 700; font-size: .92rem;
}

/* ---------- Journey cards on the navy band ---------- */
.section--navy .journey__step { box-shadow: none; border-color: rgba(255,255,255,.16); }

/* Anchor offset for the Volunteer sections */
#volunteer-with-leap, #volunteer-opportunities,
#volunteer-journey, #apply-to-volunteer { scroll-margin-top: 130px; }

@media (max-width: 640px) {
  .step-list li { padding: 14px 18px 14px 54px; font-size: .96rem; }
  .step-list li::before { left: 14px; top: 13px; }
  #volunteer-with-leap, #volunteer-opportunities,
  #volunteer-journey, #apply-to-volunteer { scroll-margin-top: 120px; }
}


/* ============================================================
   PARTNER WITH LEAP — COMPOSITION BIBLE, PART XII
   Anchor offsets only; every component on this page is already
   defined above. Added for template-partner.php.
============================================================ */

#support-our-mission,
#how-your-support-creates-impact { scroll-margin-top: 130px; }

@media (max-width: 640px) {
  #support-our-mission,
  #how-your-support-creates-impact { scroll-margin-top: 120px; }
}


/* ============================================================
   GOVERNANCE & TRANSPARENCY — COMPOSITION BIBLE, PART XIII
   Chips here carry full sentences, so they need to wrap.
   Added for template-governance.php.
============================================================ */

.chip { max-width: 100%; }

/* A panel that stacks two sub-headed blocks needs the second to breathe */
.panel .subhead--left + p { margin-top: 0; }

/* Anchor offset for the Governance sections */
#governance-transparency,
#leadership-governance { scroll-margin-top: 130px; }

@media (max-width: 640px) {
  #governance-transparency,
  #leadership-governance { scroll-margin-top: 120px; }
}


/* ============================================================
   CONTACT — COMPOSITION BIBLE, PART XIV
   Contact detail grid, muted chips, and a button inside a card.
   Added for template-contact.php.
============================================================ */

/* ---------- Contact information grid ---------- */
.contact-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 20px; max-width: 900px; margin: 0 auto;
}
.info-card__note {
  font-size: .87rem; color: var(--slate); margin-top: 8px; line-height: 1.6;
}

/* Copy-to-clipboard rendered as a button rather than a link */
.card__more--btn {
  background: none; border: none; padding: 0; cursor: pointer;
  font-family: inherit;
}

/* ---------- Chips for platforms without a live link yet ---------- */
.chip--muted { color: var(--slate); border-style: dashed; box-shadow: none; }

/* ---------- Button inside an enquiry card ---------- */
.card__btn {
  margin-top: auto; align-self: flex-start;
  padding: 11px 20px; font-size: .9rem;
}
.grid .card:has(.card__btn) { display: flex; flex-direction: column; }
.grid .card:has(.card__btn) p { margin-bottom: 20px; }

/* ---------- Bracketed note under prose ---------- */
.prose__note { font-size: .9rem; color: var(--slate); }

/* Anchor offset for the Contact sections */
#contact-us, #get-in-touch, #media-enquiries { scroll-margin-top: 130px; }

@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .card__btn { width: 100%; justify-content: center; text-align: center; }
  #contact-us, #get-in-touch, #media-enquiries { scroll-margin-top: 120px; }
}


/* ============================================================
   HEADER / FOOTER / HOMEPAGE CORRECTIONS
   Append this block to the END of assets/css/leap.css.
   Nothing above it is changed — these rules only override.
============================================================ */

:root {
  --header-h: 78px;
}

/* ============================================================
   HEADER — the primary menu now carries seven top-level items
   plus the Get Legal Help button, so it needs to breathe at
   large sizes and collapse earlier than 820px.
============================================================ */

.leap-header .nav { gap: 20px; }

/* Brand must never be squeezed out by a long menu */
.leap-header .brand { flex: 0 0 auto; }
.leap-header .brand__name { white-space: nowrap; }

.leap-header .nav-links {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 2px;
  flex-wrap: nowrap;
}
.leap-header .nav-links > li { white-space: nowrap; }
.leap-header .nav-links a { padding: 10px 13px; }

.leap-header .nav-cta { flex: 0 0 auto; }

/* Current page */
.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--teal);
  background: var(--cream-200);
}
.drop a.active,
.drop a[aria-current="page"] {
  color: var(--teal);
  background: var(--cream);
}

/* Dropdowns that sit near the right edge should not overflow the viewport */
.nav-links > li:nth-last-child(-n+2) .drop { left: auto; right: 0; }

/* Keyboard focus */
.leap-header a:focus-visible,
.leap-header button:focus-visible,
.leap-footer a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Dropdowns should open on keyboard focus, not hover alone */
.has-drop:focus-within .drop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* ---------- Tighter spacing before the menu collapses ---------- */
@media (max-width: 1240px) {
  .leap-header .nav-links a { padding: 10px 10px; font-size: 14.5px; }
  .leap-header .nav { gap: 14px; }
  .leap-header .nav-cta__main { padding: 13px 22px; font-size: 14px; }
}

/* ---------- Collapse to the mobile menu at 1080px ---------- */
@media (max-width: 1080px) {
  .nav-links,
  .nav-cta .btn:not(.nav-cta__main) { display: none; }

  .nav-toggle { display: block; }

  .nav-links.show {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px;
    gap: 2px;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav-links.show > li { white-space: normal; }
  .nav-links.show a { padding: 13px 14px; font-size: 15.5px; }

  .nav-links.show .drop {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    min-width: auto;
    left: auto;
    right: auto;
  }
  .nav-links.show .drop a { font-size: 14.5px; padding: 11px 14px; }

  .has-drop > a::after { display: none; }
}

/* ---------- Very small screens ---------- */
@media (max-width: 420px) {
  .leap-header .nav { gap: 10px; }
  .leap-header .nav-cta__main { padding: 11px 16px; font-size: 13px; }
  .brand__name { font-size: 16px; }
  .brand__tag { font-size: 10px; }
  .brand__logo img,
  .brand__logo .custom-logo { max-height: 40px; width: auto; }
}

/* ============================================================
   FOOTER — contact block under the brand description
============================================================ */

.footer-contact {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 340px;
}
.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  line-height: 1.6;
  color: #9fb2c7;
}
.footer-contact__icon {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .07);
  color: var(--gold-soft);
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.footer-contact__icon svg { width: 15px; height: 15px; }
.footer-contact a { color: #9fb2c7; word-break: break-word; }
.footer-contact a:hover { color: var(--gold-soft); }

.footer-brand p { margin-top: 16px; }

/* Footer link columns: nicer hit areas and a quiet hover marker */
.footer-col a {
  display: inline-block;
  padding: 1px 0;
  transition: color .2s ease, transform .2s ease;
}
.footer-col a:hover { transform: translateX(3px); }

.footer-badges a { white-space: nowrap; }
.footer-badges a:hover { color: var(--gold-soft); }

@media (max-width: 640px) {
  .footer-contact { max-width: none; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .footer-badges { gap: 14px; }
}

/* ============================================================
   HOMEPAGE — replaces the inline margins removed from
   front-page.php so spacing lives in the stylesheet.
============================================================ */

.section .split--balanced { margin-top: 56px; }

@media (max-width: 640px) {
  .section .split--balanced { margin-top: 36px; }
}

/* Pillar cards on 4.6 are full-card links — keep the arrow affordance */
.grid .card--link { text-decoration: none; }
.grid .card--link h3 { color: var(--navy); }
.grid .card--link:hover h3 { color: var(--teal); }

/* Anchor offsets so the sticky header never covers a homepage heading */
#justice-gap,
#what-is-leap,
#how-leap-works,
#who-we-serve,
#our-work,
#infrastructure,
#governance,
#get-involved,
#closing { scroll-margin-top: calc(var(--header-h) + 24px); }