/*
Theme Name: ACCM International
Theme URI: https://accminternational.org.uk
Author: ACCM International
Author URI: https://accminternational.org.uk
Description: Organisation-wide WordPress theme for ACCM International (Agency for Culture and Change Management), the Sheffield charity. An editable campaign front page covering every programme ACCM runs, a reusable Programme page template, a general enquiry form, and optional per-page translations. Shares its design language with the ACCM Support theme.
Version: 1.4.2
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: accm-international
Tags: charity, non-profit, accessibility-ready, custom-colors, custom-menu, translation-ready
*/

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

   The seven brand colours are printed into :root by functions.php so they stay
   editable in Appearance > Customize > Colours. The values below are fallbacks
   for the case where that inline style has not loaded.

   Everything in the second group is DERIVED from those seven by
   accmi_css_variables(), not authored. Do not replace a var(--tint) or
   var(--line) below with a literal hex: that is exactly what this file used to
   do, and it meant changing the brand colours produced a half-changed site with
   warm headings on cold bands. If you need a new shade, derive it there.
   ========================================================================== */
:root{
  /* Brand — editable in the Customizer. */
  --ink:#2E2233;         /* deep plum — grounded, warm */
  --teal:#8A4A3C;        /* terracotta — links, labels */
  --marigold:#E8A13A;    /* amber accent — buttons, highlights */
  --paper:#F8F4F2;       /* warm off-white */
  --card:#FFFFFF;
  --text:#332A33;
  --muted:#6B5C60;
  --danger:#B4432E;
  /* The SAFE band, deliberately its own value rather than the accent: a paler
     tint reads as a calmer highlight band, and leaves the accent free to keep
     doing its separate job on buttons and focus rings. */
  --safe_bg:#F2CE9A;

  /* Derived — fallbacks matching the shipped palette. */
  --hero-mid:#573437;
  --tint:#EDE3E0;
  --tint-2:#E6D9D5;
  --line:#DCD6D5;
  --line-2:#C2BABB;
  --field:#FCFAF9;
  --on-ink:#C9C6CA;
  --on-ink-2:#B4AFB6;
  --on-ink-3:#9B959D;
  --accent-hi:#EDB461;
  --accent-soft:#F4DFC4;
  --accent-deep:#6D4D35;
  --accent-rule:#7C675C;

  --radius:14px;
  --font-head:'Bitter', Georgia, serif;
  --font-body:'Karla', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *{animation:none!important;transition:none!important}
}
body{font-family:var(--font-body);color:var(--text);background:var(--paper);line-height:1.6;font-size:17px}
h1,h2,h3,h4{font-family:var(--font-head);color:var(--ink);line-height:1.15}
a{color:var(--teal)}
img{max-width:100%;height:auto}
.wrap{max-width:1080px;margin:0 auto;padding:0 20px}

/* Accessibility helpers ---------------------------------------------------- */
.screen-reader-text{
  border:0;clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;overflow:hidden;
  padding:0;position:absolute!important;width:1px;word-wrap:normal!important;
}
.skip-link{
  position:absolute;left:-9999px;top:0;z-index:200;background:var(--marigold);color:var(--ink);
  padding:12px 20px;font-weight:700;border-radius:0 0 var(--radius) 0;text-decoration:none;
}
.skip-link:focus{left:0}
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible{outline:3px solid var(--marigold);outline-offset:3px}

/* Buttons ------------------------------------------------------------------ */
.btn{
  display:inline-block;padding:14px 26px;border-radius:999px;font-weight:700;text-decoration:none;
  font-size:1rem;border:none;cursor:pointer;font-family:var(--font-body);text-align:center;
}
.btn-primary{background:var(--marigold);color:var(--ink)}
.btn-primary:hover{background:var(--accent-hi)}
.btn-ghost{background:transparent;color:#fff;border:2px solid rgba(255,255,255,.6)}
.btn-ghost:hover{border-color:#fff}

/* ==========================================================================
   2. Header / navigation
   ========================================================================== */
.site-header{background:var(--ink);color:#fff;position:sticky;top:0;z-index:100}

/* Utility row: how to reach ACCM, and language, above everything else. ------ */
.header-utility{background:rgba(0,0,0,.22);font-size:.88rem}
.header-utility-inner{
  display:flex;align-items:center;justify-content:space-between;
  gap:12px 20px;flex-wrap:wrap;padding-top:7px;padding-bottom:7px;
}
.header-contact{margin:0;display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap}
.header-contact a{color:#fff;text-decoration:none;font-weight:700}
.header-contact a:hover{color:var(--marigold)}
.header-hours{color:rgba(255,255,255,.7);font-size:.82rem}

/* Main row ------------------------------------------------------------------ */
.nav{
  display:flex;align-items:center;justify-content:space-between;
  gap:16px 24px;flex-wrap:wrap;padding-top:14px;padding-bottom:14px;
}
.brand{display:flex;align-items:center;gap:14px;min-width:0}
/* The wordmark ---------------------------------------------------------------
   Site title and tagline, straight from Site Identity. Two registers with a rule
   between them: the name reads at a glance, the tagline is there for anyone who
   needs to know what the initials stand for. The rule is the one place the accent
   colour appears in the header, so it is doing real work — do not add the accent
   anywhere else up here. */
.logo{display:block;text-decoration:none;color:#fff;line-height:1}
.site-title{
  display:block;font-family:var(--font-head);font-weight:800;letter-spacing:-.015em;
  font-size:clamp(1.15rem,2.4vw,1.42rem);
}
.site-tagline{
  display:block;margin-top:8px;padding-top:8px;
  border-top:2px solid var(--marigold);
  font-family:var(--font-body);font-weight:500;font-size:.63rem;
  letter-spacing:.16em;text-transform:uppercase;color:rgba(255,255,255,.72);
  max-width:34ch;line-height:1.4;
}
.logo:hover .site-tagline{color:#fff}

/* Footer version: same lockup, quieter, and the rule steps back so it does not
   compete with the accent-coloured links around it. */
.logo--footer .site-title{font-size:1.15rem}
.logo--footer .site-tagline{
  font-size:.6rem;color:rgba(255,255,255,.55);border-top-color:rgba(255,255,255,.28);
}
.custom-logo-link{display:block;flex:none}
.custom-logo-link img{max-height:56px;width:auto;display:block}
.brand-sub{
  font-size:.72rem;letter-spacing:.06em;opacity:.75;max-width:28ch;line-height:1.35;
  border-left:1px solid rgba(255,255,255,.25);padding-left:14px;
}

/* Navigation ---------------------------------------------------------------- */
.main-navigation{margin-left:auto}
.main-navigation ul{display:flex;gap:22px;list-style:none;flex-wrap:wrap;margin:0}
.main-navigation a{
  color:#fff;text-decoration:none;font-weight:500;font-size:.95rem;
  display:inline-block;padding:4px 0;border-bottom:2px solid transparent;
}
.main-navigation a:hover{color:var(--marigold)}
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a{color:var(--marigold);border-bottom-color:var(--marigold)}

/* Actions cluster: holds the menu toggle, opposite the wordmark at any width. */
.nav-actions{display:flex;align-items:center;gap:10px;order:3}
.menu-toggle{
  display:none;align-items:center;gap:9px;background:transparent;
  border:2px solid rgba(255,255,255,.5);color:#fff;border-radius:999px;
  padding:8px 16px;font-family:var(--font-body);font-weight:700;cursor:pointer;
  /* This is the only way to reach the menu on a phone, and the padding above
     alone left it 35px tall — under the 44px comfortable-tap floor. */
  min-height:44px;
}
.menu-toggle:hover{border-color:#fff}
.menu-toggle-bars{width:16px;height:2px;background:#fff;position:relative;display:inline-block}
.menu-toggle-bars::before,.menu-toggle-bars::after{
  content:"";position:absolute;left:0;width:16px;height:2px;background:#fff;
}
.menu-toggle-bars::before{top:-5px}
.menu-toggle-bars::after{top:5px}

/* Sub-menus: ACCM has real depth (FGM alone has six pages), so these matter. */
.main-navigation li{position:relative}
.main-navigation .sub-menu{
  display:none;position:absolute;left:0;top:100%;background:var(--ink);padding:10px 14px;
  border-radius:0 0 var(--radius) var(--radius);min-width:230px;flex-direction:column;gap:10px;z-index:90;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu{display:flex}

/* Keeps the sticky header from hiding anchor targets when jumping to a section. */
[id]{scroll-margin-top:110px}

/* ==========================================================================
   3. Hero
   ========================================================================== */
.hero{
  position:relative;overflow:hidden;
  background:linear-gradient(160deg,var(--ink) 0%,var(--hero-mid,var(--hero-mid)) 60%,var(--teal) 100%);
  color:#fff;padding:72px 0 84px;
}
/* Geometric texture instead of photography: fine diagonal rule, barely there.
   Deliberate — a charity working with children and with FGM survivors should
   not need a photo-consent process to publish its own front page. */
.hero::before{
  content:"";position:absolute;inset:0;pointer-events:none;opacity:.5;
  background-image:repeating-linear-gradient(
    115deg,
    rgba(255,255,255,.05) 0 1px,
    transparent 1px 14px
  );
}
.hero .wrap{position:relative;z-index:1;display:grid;grid-template-columns:1.2fr .8fr;gap:48px;align-items:center}
.hero-eyebrow{
  font-family:var(--font-body);font-weight:700;font-size:.78rem;color:var(--marigold);
  letter-spacing:.14em;text-transform:uppercase;
}
.hero h1{color:#fff;font-size:clamp(2.1rem,4.6vw,3.3rem);font-weight:800;margin:12px 0 18px}
.hero p.lead{font-size:1.15rem;max-width:34em;color:var(--on-ink)}
.hero-ctas{margin-top:30px;display:flex;gap:14px;flex-wrap:wrap}

/* At-a-glance card, mirroring the support theme's language card. */
.glance-card{
  background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.18);
  border-radius:var(--radius);padding:26px;
}
.glance-card h2{color:#fff;font-size:1.05rem;margin-bottom:14px}
.glance-card ul{list-style:none;display:grid;gap:10px}
.glance-card li{
  font-size:.92rem;color:var(--on-ink);padding-left:16px;position:relative;line-height:1.45;
}
.glance-card li::before{
  content:"";position:absolute;left:0;top:.55em;width:6px;height:6px;border-radius:50%;
  background:var(--marigold);
}

/* ==========================================================================
   4. Sections
   ========================================================================== */
.section{padding:64px 0}
.section--white{background:#fff}
.section--tint{background:var(--tint)}
.eyebrow{text-transform:uppercase;letter-spacing:.12em;font-size:.78rem;font-weight:700;color:var(--teal)}
.section h2{font-size:clamp(1.6rem,3vw,2.2rem);margin:8px 0 18px}
.section-intro{max-width:44em;color:var(--muted);margin-bottom:36px}

/* Values band ---------------------------------------------------------------
   Deliberately not cards. Four plain statements on a tinted strip, tight to the
   hero, so what ACCM stands for arrives before anyone has to scroll for it. */
.values{background:var(--tint);border-bottom:1px solid var(--line);padding:26px 0}
.value-list{
  list-style:none;margin:0;display:grid;gap:20px 34px;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
}
.value-list li{display:flex;flex-direction:column;gap:3px;padding-left:16px;position:relative}
.value-list li::before{
  content:"";position:absolute;left:0;top:5px;bottom:5px;width:3px;
  background:var(--marigold);border-radius:2px;
}
.value-list strong{font-family:var(--font-head);color:var(--ink);font-size:1rem;line-height:1.25}
.value-list span{font-size:.88rem;color:var(--muted);line-height:1.45}

/* Shared split layout -------------------------------------------------------
   Copy on the left, a bordered panel of short facts on the right. Used by the
   UK-KIDZ band; named for the shape rather than for any one section, because it
   is meant to be reused. */
.split-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:44px;align-items:start}
.split-copy p{margin-bottom:16px}
.split-copy p:last-child{margin-bottom:0}
.split-panel{
  background:var(--paper);border:1px solid var(--line);border-radius:var(--radius);padding:26px;
}
.split-panel h3{font-size:1rem;margin-bottom:14px}
.split-panel ul{list-style:none;display:grid;gap:11px}
.split-panel li{
  font-size:.93rem;color:var(--text);padding-left:24px;position:relative;line-height:1.45;
}
/* Tick, drawn in CSS so there is no icon font and no extra request. */
.split-panel li::before{
  content:"";position:absolute;left:2px;top:.28em;width:9px;height:5px;
  border-left:2.5px solid var(--teal);border-bottom:2.5px solid var(--teal);
  transform:rotate(-45deg);
}

/* ==========================================================================
   Current focus: the SAFE band

   The page's one loud moment, on its own --safe_bg rather than the accent.

   Contrast, re-measured against the shipped band (#F2CE9A) — the figures here
   used to describe the old full-strength amber and no longer applied:
     ink   (--ink)  10.10:1   used for everything structural
     text  (--text)  9.26:1   used for body copy
     white            1.49:1  never use — nowhere near AA
   Type on this band is ink or text. White is not an option at any size, so the
   main button inverts to solid ink and the secondary link is ink + underline.

   The lighter band bought enough headroom that faded ink is now safe where it
   was not before: .safe-subtitle at 82% is 6.41:1 and .safe-cta-note at 75% is
   5.30:1. Do not push past about 65% — that is where AA runs out.

   Do not add a gradient, a shadow or a border-radius to the band itself. The
   flat colour is the whole idea; softening it turns a deliberate choice into
   decoration.
   ========================================================================== */
.safe{background:var(--safe_bg);color:var(--text)}
.safe-head{
  display:flex;align-items:center;gap:12px 18px;flex-wrap:wrap;margin-bottom:6px;
}
/* Full-strength ink. The eyebrow is already distinguished by size, uppercase and
   letter-spacing, so it does not need to be quieter in colour as well. Same
   reasoning applies to .stage-state and .safe-note below. */
.safe-eyebrow{color:var(--ink)}

/* Status labels. Ink outlines rather than filled pills — a filled pill on a
   filled band is mud. */
.safe-tags{list-style:none;display:flex;gap:8px;flex-wrap:wrap;margin:0}
.safe-tags .tag{
  background:transparent;color:var(--ink);border:1.5px solid var(--ink);
  border-radius:999px;padding:2px 12px;margin:0;font-size:.72rem;font-weight:700;
  letter-spacing:.08em;text-transform:uppercase;
}
/* "New" is the one that gets filled, because it is the one piece of news. */
.safe-tags .tag--new{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.safe-tags .tag--progress{border-style:dashed}

.safe-title{
  color:var(--ink);font-size:clamp(2rem,4.4vw,3rem);font-weight:800;
  letter-spacing:-.015em;margin:0 0 18px;max-width:26ch;
}
/* Says outright, next to the heading, that SAFE is a different project on a
   different site — not a section of this one. */
.safe-subtitle{
  font-weight:700;font-size:.92rem;color:var(--ink);opacity:.82;
  margin:-10px 0 18px;max-width:40em;
}
.safe-lead{font-size:1.08rem;color:var(--text);max-width:46em;margin-bottom:22px}

/* What SAFE offers, as a scannable checklist instead of one dense paragraph. */
.safe-offers{list-style:none;margin:0 0 34px;padding:0;display:grid;gap:14px 32px;max-width:52em}
@media (min-width:640px){.safe-offers{grid-template-columns:1fr 1fr}}
.safe-offer{display:flex;align-items:flex-start;gap:10px}
.safe-offer-icon{
  flex:none;width:22px;height:22px;border-radius:50%;background:var(--ink);color:var(--marigold);
  display:flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:800;
  margin-top:2px;
}
.safe-offer-label{display:block;font-weight:700;color:var(--ink);font-size:.98rem}
.safe-offer-desc{display:block;font-size:.88rem;color:var(--text)}

/* The stage strip -----------------------------------------------------------
   A real sequence, so a real <ol>. The rule runs behind the markers; the live
   stage is a filled ring, past stages are small solid dots, future stages are
   hollow. The state word is visible text, so none of this is load-bearing on
   its own. */
/* One row, always. Deliberately not auto-fit: the rule below is trimmed at the
   first and last markers, and if items wrapped to a second row that trimming
   would land in the middle of the strip. Below 700px it becomes a vertical list
   instead, which is the honest layout for a narrow screen anyway. */
.stages{
  list-style:none;margin:0 0 36px;display:grid;gap:22px;
  grid-auto-flow:column;grid-auto-columns:1fr;position:relative;
}
.stage{position:relative;padding-top:26px}
/* Connecting rule, drawn per item so it wraps correctly at any column count. */
.stage::before{
  content:"";position:absolute;left:0;right:0;top:7px;height:2px;
  background:var(--accent-rule);
}
.stage:first-child::before{left:7px}
.stage:last-child::before{right:calc(100% - 9px)}
/* Marker. */
.stage::after{
  content:"";position:absolute;left:0;top:0;width:16px;height:16px;border-radius:50%;
  border:2px solid var(--ink);background:var(--safe_bg);box-sizing:border-box;
}
.stage--done::after{background:var(--ink)}
.stage--now::after{
  background:var(--ink);box-shadow:0 0 0 4px var(--safe_bg),0 0 0 6px var(--ink);
}
.stage-state{
  display:block;font-size:.68rem;font-weight:600;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink);margin-bottom:3px;
}
/* The live stage is marked three ways that do not rely on colour: a heavier
   state word, a bold label, and the ringed marker above. */
.stage--now .stage-state{font-weight:800}
.stage-label{
  display:block;font-family:var(--font-head);font-size:.98rem;line-height:1.3;color:var(--ink);
}
.stage--now .stage-label{font-weight:700}

.safe-ctas{display:flex;align-items:center;gap:14px 26px;flex-wrap:wrap}
/* Solid ink button: the only readable way to make a button sit on the accent. */
.btn-ink{background:var(--ink);color:var(--paper)}
.btn-ink:hover{background:var(--text)}
/* The SAFE band's one external link off this site — sized and shadowed up so
   it reads as the clear next step rather than blending into the other CTA. */
.btn-lg{
  padding:17px 32px;font-size:1.08rem;box-shadow:0 6px 18px rgba(46,34,51,.28);
}
.btn-lg:hover{box-shadow:0 8px 22px rgba(46,34,51,.34)}
.safe-cta2{
  color:var(--ink);font-weight:700;text-decoration:underline;text-underline-offset:3px;
  display:inline-block;padding:4px 0;min-height:26px;
}
.safe-cta2:hover{text-decoration-thickness:2px}
/* Small print under the buttons naming the domain, so the "opens in a new
   tab" behaviour reads as "this is a separate site" rather than a fluke. */
.safe-cta-note{margin-top:10px;font-size:.8rem;color:var(--ink);opacity:.75}
.safe-note{margin-top:24px;font-size:.9rem;color:var(--ink);max-width:52em}

/* UK-KIDZ reuses the shared split layout on the tinted variant. Only the small
   print below its button needs a rule of its own. */
.ukkidz-note{margin-top:14px;font-size:.86rem;color:var(--muted);max-width:44em}

/* Programme cards ---------------------------------------------------------- */
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:20px}
.card{
  background:var(--card);border-radius:var(--radius);padding:26px;border:1px solid var(--line);
  display:flex;flex-direction:column;
}
.card h3{font-size:1.08rem;margin-bottom:8px}
.card p{font-size:.95rem;color:var(--muted)}
/* A card can carry more than one status, so the tags live in a wrapper that
   handles the wrapping and the gap rather than each tag carrying a margin. */
.card .tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.card .tag{
  display:inline-block;background:var(--tint);color:var(--teal);border-radius:6px;font-size:.75rem;
  font-weight:700;padding:3px 9px;letter-spacing:.04em;
}
/* The newest programme is worth spotting in a grid of twelve. */
.card .tag--new{background:var(--accent-soft);color:var(--accent-deep)}
/* In progress reads as a state rather than a category, so it is outlined rather
   than filled — visibly a different kind of label at a glance. */
.card .tag--progress{
  background:transparent;color:var(--muted);box-shadow:inset 0 0 0 1.5px var(--line-2);
}
.card .card-link{margin-top:auto;padding-top:14px}
/* Standalone call-to-action links, not links inside a sentence, so they get a
   real target rather than the 18px a bare line of text gives them. */
.card .card-link a{
  font-weight:700;text-decoration:none;display:inline-block;
  padding:4px 0;min-height:26px;
}
.card .card-link a:hover{text-decoration:underline}

/* Impact / track record ---------------------------------------------------- */
.impact{background:var(--ink);color:#fff}
.impact h2,.impact h3{color:#fff}
.impact .eyebrow{color:var(--marigold)}
.impact .section-intro{color:var(--on-ink)}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:20px}
.stat{
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);
  border-radius:var(--radius);padding:24px;
}
.stat strong{
  display:block;font-family:var(--font-head);font-size:2.1rem;color:var(--marigold);line-height:1.1;
}
.stat span{display:block;margin-top:8px;font-size:.92rem;color:var(--on-ink);line-height:1.45}
.impact-note{margin-top:26px;font-size:.93rem;color:var(--on-ink);max-width:46em}

/* About -------------------------------------------------------------------- */
.about-grid{display:grid;grid-template-columns:1.1fr .9fr;gap:40px;align-items:start}
.about-copy p{margin-bottom:16px}
.about-copy p:last-child{margin-bottom:0}
.fact-list{list-style:none;display:grid;gap:14px}
.fact-list li{
  background:var(--card);border-radius:10px;padding:16px 18px;border:1px solid var(--line);font-size:.95rem;
}
.fact-list strong{color:var(--ink)}

/* Get involved ------------------------------------------------------------- */
.involve{background:var(--tint)}
.involve .cards .card{background:#fff}

/* ==========================================================================
   5. Contact & the enquiry form
   ========================================================================== */
.contact{background:var(--ink);color:#fff}
.contact h2,.contact h3{color:#fff}
.contact .eyebrow{color:var(--marigold)}
.contact .section-intro{color:var(--on-ink)}
.contact-grid{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:start}

.accm-form{background:#fff;border-radius:var(--radius);padding:30px;color:var(--text)}
.accm-form h3{color:var(--ink);margin-bottom:6px}
.accm-form p.small{font-size:.85rem;color:var(--muted);margin-bottom:18px}
.accm-form label.accm-field-label{display:block;font-weight:700;font-size:.9rem;margin:14px 0 6px;color:var(--ink)}
.accm-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),.accm-form select,.accm-form textarea{
  width:100%;padding:12px;border:1.5px solid var(--line-2);border-radius:10px;
  font-family:var(--font-body);font-size:1rem;background:var(--field);color:var(--text);
}
.accm-form input:focus,.accm-form select:focus,.accm-form textarea:focus{
  outline:3px solid var(--marigold);border-color:var(--teal);
}
/* Honeypot — hidden from people, visible to bots */
.accm-hp{position:absolute!important;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}

.form-notice{border-radius:10px;padding:14px 16px;margin-bottom:18px;font-size:.95rem}
.form-notice--ok{background:#E7F3EC;border-left:5px solid #2F7D4F;color:#1D4A31}
.form-notice--error{background:#FBE9E5;border-left:5px solid var(--danger);color:#7A2A1B}
.accm-form input[aria-invalid="true"],.accm-form textarea[aria-invalid="true"]{border-color:var(--danger)}

/* ==========================================================================
   Contact Form 7 bridge — CF7 ships its own markup/classes (wpcf7-*), not
   the .accm-form ones above. Base text/select/textarea styling already
   applies for free (they're real <input>/<select>/<textarea> elements
   inside .accm-form) — this section covers what doesn't: the submit
   button, the acceptance row, and CF7's own validation/response markup.
   ========================================================================== */
.wpcf7-submit{
  display:block;width:100%;margin-top:20px;padding:14px 26px;border-radius:999px;
  font-weight:700;font-size:1rem;border:none;cursor:pointer;font-family:var(--font-body);
  text-align:center;background:var(--marigold);color:var(--ink);
}
.wpcf7-submit:hover{background:var(--accent-hi)}
.wpcf7-submit:disabled{opacity:.55;cursor:not-allowed}
.wpcf7-spinner{margin-left:10px}

/* Acceptance checkbox (consent-to-contact) — same row layout as the legacy
   .check rows. */
.wpcf7-acceptance{display:flex;gap:10px;align-items:flex-start;margin-top:14px;font-size:.9rem}
.wpcf7-acceptance input{width:auto;margin-top:4px}
.wpcf7-acceptance .wpcf7-list-item-label{margin:0;font-weight:500;cursor:pointer}

/* CF7's own inline error + top-level response banner. */
.wpcf7-not-valid-tip{display:block;color:var(--danger);font-size:.85rem;font-weight:700;margin-top:6px}
.wpcf7-response-output{border-radius:10px;padding:14px 16px;margin:0 0 18px;font-size:.95rem;border:0}
.wpcf7-form.sent .wpcf7-response-output{background:#E7F3EC;border-left:5px solid #2F7D4F;color:#1D4A31}
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output{background:#FBE9E5;border-left:5px solid var(--danger);color:#7A2A1B}
.wpcf7-form:not(.sent):not(.invalid):not(.unaccepted):not(.spam):not(.aborted):not(.failed) .wpcf7-response-output:empty{display:none}

.other-ways{display:grid;gap:18px}
.way{
  background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.16);
  border-radius:var(--radius);padding:20px;
}
.way h3{font-size:1.02rem;margin-bottom:6px}
.way p{font-size:.93rem;color:var(--on-ink)}
.way a{color:var(--marigold);font-weight:700}
.way .way-address{display:block;margin-top:4px}

/* Urgent-help strip: ACCM's work touches domestic violence, grooming and
   racist abuse, so the emergency route belongs on the front page. */
.urgent{
  background:var(--accent-soft);border-left:6px solid var(--marigold);border-radius:10px;
  padding:18px 22px;margin-top:36px;font-size:.95rem;color:var(--text);
}
.urgent strong{color:var(--ink)}

/* ==========================================================================
   6. Interior pages, programme pages, posts
   ========================================================================== */
.page-hero{background:var(--ink);color:#fff;padding:52px 0}
.page-hero h1{color:#fff;font-size:clamp(1.8rem,3.6vw,2.6rem)}
.page-hero p{color:var(--on-ink);margin-top:10px;max-width:44em}
.page-hero .eyebrow{color:var(--marigold)}
.content-area{padding:56px 0}
.entry{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:34px;max-width:44em;margin:0 auto;
}
.entry + .entry{margin-top:24px}
.entry h2{margin:28px 0 10px}
.entry h3{margin:22px 0 8px}
.entry p,.entry ul,.entry ol,.entry table,.entry figure{margin-bottom:16px}
.entry ul,.entry ol{padding-left:22px}
.entry blockquote{
  border-left:5px solid var(--marigold);padding:8px 0 8px 18px;color:var(--muted);font-style:italic;
}
.entry-meta{font-size:.85rem;color:var(--muted);margin-bottom:14px}
.entry img{border-radius:10px}
.entry-thumb{margin-bottom:22px}
.entry-thumb img{border-radius:10px;display:block;width:100%}

/* Programme page: sibling programmes, so a dead end never happens. */
.programme-more{max-width:44em;margin:28px auto 0}
.programme-more h2{font-size:1.2rem;margin-bottom:14px}
.programme-more ul{list-style:none;display:grid;gap:10px}
.programme-more li{
  background:#fff;border:1px solid var(--line);border-radius:10px;padding:14px 18px;font-size:.95rem;
}
.programme-more a{font-weight:700;text-decoration:none;display:inline-block;padding:4px 0;min-height:26px}
.programme-more a:hover{text-decoration:underline}

.pagination{display:flex;gap:10px;justify-content:center;margin-top:30px;flex-wrap:wrap}
.pagination .page-numbers{
  background:#fff;border:1px solid var(--line);border-radius:8px;padding:8px 14px;text-decoration:none;
}
.pagination .current{background:var(--ink);color:#fff;border-color:var(--ink)}

/* ==========================================================================
   7. Footer
   ========================================================================== */
.site-footer{background:var(--ink);color:var(--on-ink-2);padding:52px 0 26px;font-size:.9rem}
/* Three authored columns, and a fourth only when the widget area is in use.
   :has() lets the grid respond to the widget being there; the @supports block
   below is the fallback for browsers without it. Sized off the same track list
   so the three-column case is unchanged. */
.footer-grid{display:grid;grid-template-columns:1.6fr 1.1fr 1fr;gap:40px;padding-bottom:34px}
.footer-grid:has(> :nth-child(4)){grid-template-columns:1.5fr 1fr 1fr 1fr}
@supports not selector(:has(*)){
  .footer-grid{grid-template-columns:repeat(auto-fit,minmax(190px,1fr))}
}

/* Footer headings.
   h4 is what register_sidebar() asks for via before_title, but WordPress has
   used block-based widgets since 5.8 and those ignore before_title entirely —
   they emit their own <h2 class="wp-block-heading">. Styling h4 alone left every
   block widget title painted var(--ink) by the global heading rule, i.e. plum on
   the plum footer at 1:1, invisible. Cover every level so a widget title is
   readable however it was authored. */
.site-footer h1,.site-footer h2,.site-footer h3,
.site-footer h4,.site-footer h5,.site-footer h6{
  color:#fff;font-family:var(--font-body);font-weight:700;margin-bottom:12px;
  font-size:.75rem;letter-spacing:.14em;text-transform:uppercase;
}
.site-footer a{color:var(--marigold);text-decoration:none}
.site-footer a:hover{text-decoration:underline}
.site-footer ul{list-style:none;display:grid;gap:8px;margin:0}
.site-footer .white{color:#fff}
.site-footer p{margin-bottom:12px}
.site-footer p:last-child{margin-bottom:0}

.footer-brand .logo{margin-bottom:18px}
.footer-blurb{max-width:34em;color:var(--on-ink-2)}
.footer-address{color:var(--on-ink-2)}
.footer-contact a{font-weight:700}
.footer-hours{display:block;color:var(--on-ink-3);font-size:.82rem;margin-top:2px}

.footer-bottom{
  border-top:1px solid rgba(255,255,255,.15);padding-top:18px;font-size:.8rem;
  display:flex;justify-content:space-between;align-items:center;gap:10px 24px;flex-wrap:wrap;
}
.footer-bottom p{margin:0}
.footer-legal{display:flex;gap:18px;flex-wrap:wrap;list-style:none;margin:0}
.site-footer a.site-credit{display:inline-flex;align-items:center;gap:9px;color:var(--on-ink-2);text-decoration:none}
.site-credit img{display:block;width:auto;height:28px;padding:4px 8px;border-radius:6px;background:#fff;transition:transform .2s,box-shadow .2s}
.site-credit:hover img,.site-credit:focus-visible img{transform:translateY(-2px);box-shadow:0 8px 18px rgba(0,0,0,.2)}
@media (prefers-reduced-motion:reduce){.site-credit img{transition:none}}

/* ==========================================================================
   8. Language switcher & right-to-left support
   Hidden entirely until a page is given a language, so it costs nothing on an
   English-only site.
   ========================================================================== */
.lang-switch{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.88rem}
.lang-switch .lang-switch-label{
  color:rgba(255,255,255,.7);font-size:.78rem;text-transform:uppercase;letter-spacing:.08em;
}
.lang-switch a{
  color:#fff;text-decoration:none;background:rgba(255,255,255,.1);
  border:1px solid rgba(255,255,255,.2);border-radius:999px;padding:4px 12px;
}
.lang-switch a:hover{background:rgba(255,255,255,.2)}
.lang-switch a[aria-current="true"]{
  background:var(--marigold);color:var(--ink);border-color:var(--marigold);font-weight:700;
}

/* Applied when a page is marked as a right-to-left language. */
.dir-rtl .entry,
.dir-rtl .page-hero{direction:rtl;text-align:right}
.dir-rtl .entry ul,.dir-rtl .entry ol{padding-left:0;padding-right:22px}
.dir-rtl .entry blockquote{border-left:0;border-right:5px solid var(--marigold);padding:8px 18px 8px 0}
/* Numerals, phone numbers and Latin names inside RTL text stay left-to-right. */
.ltr-inline{direction:ltr;unicode-bidi:isolate;display:inline-block}

/* ==========================================================================
   9. Responsive
   ========================================================================== */
/* Tablet: the menu collapses before the layout does. */
@media (max-width:980px){
  .menu-toggle{display:inline-flex}
  .main-navigation{display:none;width:100%;order:4;margin-left:0}
  .main-navigation.is-open{display:block}
  .main-navigation ul{flex-direction:column;gap:0;padding-top:10px}
  .main-navigation a{
    display:block;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.12);
    border-top:0;font-size:1rem;
  }
  .main-navigation .current-menu-item > a,
  .main-navigation .current_page_item > a{border-bottom-color:rgba(255,255,255,.12)}
  .main-navigation .sub-menu{
    display:flex;position:static;padding:0 0 0 16px;border-radius:0;background:transparent;
  }
  .brand{flex:1;min-width:0}
  .brand-sub{display:none}
  /* A sticky header that has swallowed a twelve-item menu must still be
     escapable, so let the page scroll rather than trapping the viewport. */
  .site-header{position:static}
  [id]{scroll-margin-top:20px}
}

/* The stage strip turns vertical before the columns get too narrow to read.
   The :first-child and :last-child rules above are more specific than
   .stage::before, so they have to be overridden by name here. */
@media (max-width:700px){
  .stages{grid-auto-flow:row;gap:0}
  .stage{padding:0 0 22px 30px}
  .stage:last-child{padding-bottom:0}
  .stage::before,
  .stage:first-child::before,
  .stage:last-child::before{
    left:7px;right:auto;top:0;bottom:0;width:2px;height:auto;
  }
  .stage:first-child::before{top:8px}
  .stage:last-child::before{bottom:auto;height:8px}
  .stage::after{left:0;top:0}
}

@media (max-width:820px){
  .hero .wrap,.split-grid,.contact-grid,.about-grid{grid-template-columns:1fr}
  .section,.content-area{padding:48px 0}
  .entry{padding:24px}
  .header-utility-inner{justify-content:center;gap:8px 14px}
  .header-hours{display:none}
  .footer-grid{grid-template-columns:1fr;gap:32px}
}

/* Phones: drop the logo strapline so the wordmark and the toggle share one line. */
@media (max-width:560px){
  .site-tagline{display:none}
  .site-title{font-size:1.25rem}
  .lang-switch{justify-content:center}
  .stat strong{font-size:1.8rem}
}

/* Print: drop the navigation chrome, keep the content. */
@media print{
  .menu-toggle,.hero-ctas,.lang-switch,.accm-form{display:none}
  body{background:#fff}
  .hero,.safe,.impact,.contact,.site-header,.site-footer{background:#fff;color:#000}
  .hero h1,.safe .safe-title,.impact h2,.contact h2{color:#000}
  /* Keep the stage markers readable once the band colour is gone. The hollow
     "next" marker has to become white too, or it prints as a filled peach disc
     and reads as a completed stage. */
  .safe-tags .tag,.stage::after{border-color:#000}
  .stage::after{background:#fff}
  .stage--done::after,.stage--now::after{background:#000;box-shadow:none}
  .safe-tags .tag--new{background:#000;color:#fff}
  .stage::before{background:#000}
}
