/* ==========================================================================
   Avondale Grange Pride in Place
   1 Tokens  2 Base  3 Layout  4 Components  5 Header/footer  6 Sections
   7 WordPress content and forms
   Contrast: navy/white 12.9:1 · navy/lime 9.7:1. Never lime text on white.
   ========================================================================== */

/* 0. Fonts: Lexend (SIL OFL 1.1, see assets/fonts/Lexend-OFL.txt), self-hosted. */
@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --navy: #003262;
  --navy-700: #00244a;
  --lime: #cdee00;
  --white: #ffffff;
  --black: #000000;
  --ink: #0d1b2a;          /* body text: 16:1 on white */
  --muted: #3f4b59;        /* secondary text: 8.6:1 on white */
  /* Brand tints. Contrast: navy 11:1+, body text 14:1+, grey text 6.8:1+ on each. */
  --page: #f7f9fc;         /* off-white page background (navy tint) */
  --pale-blue: #e8eef6;    /* boxes and bands */
  --pale-lime: #f4fad6;    /* highlight boxes and bands */
  --grey-50: var(--pale-blue);
  --grey-100: #d9e2ee;     /* borders */
  --line: #c9cfdb;
  --focus: #000000;

  --font-heading: "Lexend", "Century Gothic", CenturyGothic, "Avenir Next", Futura, system-ui, sans-serif;
  --font-body: var(--font-heading);

  --step--1: 0.9375rem;
  --step-0: 1.125rem;      /* 18px body for easy reading */
  --step-1: clamp(1.25rem, 1.15rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem);
  --step-3: clamp(1.875rem, 1.5rem + 1.5vw, 2.625rem);
  --step-4: clamp(2.25rem, 1.6rem + 2.6vw, 3.5rem);

  --space-2xs: 0.25rem;
  --space-xs: 0.5rem;
  --space-s: 1rem;
  --space-m: 1.5rem;
  --space-l: 2rem;
  --space-xl: 3rem;
  --space-2xl: clamp(3rem, 2rem + 4vw, 5.5rem);

  --radius: 14px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgb(0 50 98 / 0.08), 0 8px 24px rgb(0 50 98 / 0.08);
  --container: 84.375rem;  /* 1350px: every section lines up to this width */
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1rem; scroll-padding-bottom: 5rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--page);
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin: 0 0 var(--space-s);
  text-wrap: balance;
}
p, ul, ol, dl, figure { margin: 0 0 var(--space-s); }
p { max-width: 70ch; }
a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 3px; }
button, input, select, textarea { font-family: inherit; }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--lime);
  border-radius: 2px;
}
main:focus { outline: none; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon--xl { width: 3rem; height: 3rem; }

/* 3. Layout & utilities ---------------------------------------------------- */
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
@media (min-width: 40em) { .container { width: min(100% - 4rem, var(--container)); } }
.container--narrow { max-width: 48rem; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--lime); color: var(--navy); font-weight: 700;
  padding: var(--space-s) var(--space-m); border-radius: var(--radius-s);
}
.skip-link:focus { top: 1rem; }

section[class^="b-"], section[class*=" b-"] { padding-block: var(--space-2xl); position: relative; }
.section-heading { font-size: var(--step-3); }
.section-intro { font-size: var(--step-1); color: var(--muted); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-s); margin-bottom: var(--space-m); }
.section-head .section-heading { margin: 0; }

/* Brand texture. Decorative strip along the section edge, never behind text. */
.texture {
  --band: 1.25rem;
  position: relative; isolation: isolate;
  border-bottom: var(--band) solid var(--band-bg);
}
.texture::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--band));
  height: var(--band); z-index: -1; pointer-events: none;
  background: var(--band-ink);
  /* PNG shapes are ~7% alpha, so stack the mask to make the strip pattern visible */
  -webkit-mask: url("../img/texture.png") 0 0 / 240px repeat, url("../img/texture.png") 0 0 / 240px repeat, url("../img/texture.png") 0 0 / 240px repeat, url("../img/texture.png") 0 0 / 240px repeat;
  mask: url("../img/texture.png") 0 0 / 240px repeat, url("../img/texture.png") 0 0 / 240px repeat, url("../img/texture.png") 0 0 / 240px repeat, url("../img/texture.png") 0 0 / 240px repeat;
}
.texture--navy { background: var(--navy); color: var(--white); --band-bg: var(--lime); --band-ink: var(--navy); }
.texture--lime { background: var(--lime); color: var(--navy); --band-bg: var(--navy); --band-ink: var(--white); }
.texture--navy :where(h1, h2, h3, a:not(.button)) { color: var(--white); }
.texture--lime :where(h1, h2, h3) { color: var(--navy); }
/* Full background pattern (timeline). Text sits in white cards. */
.texture--full { border-bottom: 0; }
.texture--full::before {
  inset: 0; height: auto;
  -webkit-mask: url("../img/texture.png") 0 0 / 420px repeat, url("../img/texture.png") 0 0 / 420px repeat;
  mask: url("../img/texture.png") 0 0 / 420px repeat, url("../img/texture.png") 0 0 / 420px repeat;
}
.texture--navy.texture--full::before { background: var(--white); }

/* Brand artwork (lime shapes on navy). Decorative only, never behind text.
   .art-strips  thin/thick strip along the top/bottom edge of a section (set --art-top /
                --art-bottom). Drawn inside the padding, so it never covers words.
   .art-frame   artwork border round a box, so pale boxes stand out from the pale page.
   (.b-art-divider and the priority cards use the same artwork.) */
:root { --art-band: 1.5rem; --art-hero: 0.9rem; --art-thin: 0.3rem; --art-frame: 0.75rem; --art-frame-thin: 0.35rem; }
.art-strips::before, .art-strips::after {
  content: ""; position: absolute; left: 0; right: 0; pointer-events: none;
  background: var(--navy) url("../img/pattern-navy-lime.png") 0 0 / 260px repeat;
}
.art-strips::before { top: 0; height: var(--art-top, 0px); }
.art-strips::after { bottom: 0; height: var(--art-bottom, 0px); }
.art-frame {
  --art-fill: var(--page);
  border: var(--art-frame-thin) solid transparent;
  background: linear-gradient(var(--art-fill), var(--art-fill)) padding-box,
              url("../img/pattern-navy-lime.png") 0 0 / 260px repeat border-box var(--navy);
}

/* 4. Components ------------------------------------------------------------ */
.button {
  display: inline-flex; align-items: center; gap: var(--space-xs);
  min-height: 3rem; padding: 0.75rem 1.5rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.0625rem; line-height: 1.2;
  border: 3px solid transparent; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.button:hover { transform: translateY(-2px); }
.button .icon { width: 1.1em; height: 1.1em; }
.button--lime { background: var(--lime); color: var(--navy); }
.button--lime:hover { background: var(--white); }
.button--navy { background: var(--navy); color: var(--white); }
.button--navy:hover { background: var(--navy-700); }
.button--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.button--outline:hover { background: var(--navy); color: var(--white); }
.button--outline-light { border-color: var(--white); color: var(--white); background: transparent; }
.button--outline-light:hover { background: var(--white); color: var(--navy); }
.button-row { display: flex; flex-wrap: wrap; gap: var(--space-s); }

.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 700; color: var(--navy); }
.link-arrow .icon { transition: transform 0.15s ease; }
.link-arrow:hover .icon, a:hover .link-arrow .icon { transform: translateX(4px); }

span.tag {
  display: inline-block; padding: 0.15rem 0.65rem; border-radius: 999px;
  background: var(--lime); color: var(--navy); font-weight: 700; font-size: var(--step--1);
}
.status {
  display: inline-block; padding: 0.2rem 0.75rem; border-radius: 999px; font-weight: 700; font-size: var(--step--1);
  background: var(--white); color: var(--navy); border: 2px solid var(--navy);
}
.status--active { background: var(--lime); }
.status--completed { background: var(--navy); color: var(--white); }

.card-grid { display: grid; gap: var(--space-m); grid-template-columns: 1fr; }
@media (min-width: 40em) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.news-card, .project-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--page); border: 2px solid var(--grey-100); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); transition: transform 0.15s ease, border-color 0.15s ease;
}
.news-card:hover, .project-card:hover, .news-card:focus-within, .project-card:focus-within { transform: translateY(-3px); border-color: var(--navy); }
.news-card:hover, .project-card:not(.project-card--static):hover { background: var(--pale-lime); }
.project-card--static:hover { transform: none; border-color: var(--grey-100); }
.news-card__media, .project-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--grey-50); overflow: hidden; }
.news-card__media img, .project-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-card__media--pattern { background: var(--navy) url("../img/pattern-navy-lime.png") 0 0 / 300px repeat; }
/* Brand pattern in lime on navy. Decorative, no text on it. */
.project-card__media .status { z-index: 1; }
/* News and project photos sit in the middle of an artwork frame (no photo = all artwork). */
.news-card__media img, .project-card__media img { inset: var(--space-s); width: calc(100% - 2 * var(--space-s)); height: calc(100% - 2 * var(--space-s)); border-radius: var(--radius-s); }
.project-card__media .status { position: absolute; left: var(--space-s); top: var(--space-s); }
.news-card__body, .project-card__body { padding: var(--space-m); display: flex; flex-direction: column; gap: var(--space-xs); flex: 1; }
.news-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs); color: var(--muted); font-size: var(--step--1); margin: 0; }
.news-card__title, .project-card__title { font-size: var(--step-1); margin: 0; }
.news-card__title a, .project-card__title a { text-decoration: none; }
/* whole card clickable, one link in the tab order */
.news-card__title a::after, .project-card__title a::after { content: ""; position: absolute; inset: 0; }
.news-card__title a:focus-visible, .project-card__title a:focus-visible { box-shadow: none; outline: none; }
.news-card:has(a:focus-visible), .project-card:has(a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; box-shadow: 0 0 0 6px var(--lime); }
.news-card__excerpt { margin: 0; }
.project-card__theme { margin: 0; font-weight: 700; color: var(--muted); font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.04em; }
.project-card .link-arrow { margin-top: auto; }

.filter-links ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs); margin: 0 0 var(--space-l); }
.filter-links a {
  display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 1.1rem;
  border: 2px solid var(--navy); border-radius: 999px; font-weight: 700; text-decoration: none;
}
.filter-links a:hover { background: var(--grey-100); }
.filter-links a[aria-current] { background: var(--navy); color: var(--white); }

.breadcrumb ol { list-style: none; padding: 0; margin: 0 0 var(--space-m); display: flex; flex-wrap: wrap; gap: var(--space-xs); font-size: var(--step--1); }
.breadcrumb li + li::before { content: "›"; margin-right: var(--space-xs); }

.tick-list { list-style: none; padding: 0; display: grid; gap: var(--space-xs); }
.tick-list li { display: flex; gap: var(--space-xs); align-items: flex-start; }
.tick-list .icon { color: var(--navy); background: var(--lime); border-radius: 50%; padding: 3px; margin-top: 0.2em; }

.pagination { display: flex; gap: var(--space-m); align-items: center; margin-top: var(--space-l); font-weight: 700; }

/* Forms */
.form { display: grid; gap: var(--space-m); }
.form__field { display: grid; gap: var(--space-2xs); }
.form label { font-weight: 700; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea,
.search-page-form input, .site-search__input {
  width: 100%; min-height: 3rem; padding: 0.65rem 0.85rem;
  font: inherit; color: var(--ink); background: var(--white);
  border: 2px solid var(--muted); border-radius: var(--radius-s);
}
.form textarea { resize: vertical; }
.form__hint { color: var(--muted); font-size: var(--step--1); margin: 0; }
.form__check { display: flex; gap: var(--space-s); align-items: flex-start; }
.form__check input { width: 1.75rem; height: 1.75rem; margin: 0.1rem 0 0; accent-color: var(--navy); flex: none; }
.form__check label { font-weight: 400; }
.form__field--hp { position: absolute; left: -9999px; }
.form__status:empty { display: none; }
.form__status { padding: var(--space-s); border-radius: var(--radius-s); background: var(--lime); color: var(--navy); font-weight: 700; }
.search-page-form__row { display: flex; gap: var(--space-xs); margin-top: var(--space-xs); }
.search-page-form label { font-weight: 700; }

/* Prose (post content / legal pages) */
.prose > * + * { margin-top: var(--space-s); }
.prose h2 { font-size: var(--step-2); margin-top: var(--space-l); }
.prose .lead { font-size: var(--step-1); }
/* Text keeps a comfortable line length; photos and galleries use the full width. */
.prose > :is(h2, h3, ul:not(.photo-gallery), ol, form, .discuss, .placeholder) { max-width: 70ch; }
.article-meta { display: flex; gap: var(--space-xs); align-items: center; color: var(--muted); }
.article-hero { aspect-ratio: 16 / 7; width: 100%; object-fit: cover; border-radius: var(--radius); margin-block: var(--space-m); }
/* News story photo: artwork frame round the image */
img.article-hero { border: var(--art-frame) solid transparent; background: var(--navy) url("../img/pattern-navy-lime.png") 0 0 / 260px repeat; background-origin: border-box; }

/* 5. Header & footer ------------------------------------------------------- */
.site-header { background: var(--page); position: relative; z-index: 10; } 
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--space-m); padding-block: var(--space-s); }
.site-header__logo { display: flex; align-items: center; gap: var(--space-s); }
.site-header__logo-local { height: clamp(2.75rem, 1.5rem + 4vw, 5.25rem); width: auto; }
.site-header__logo-pip { width: clamp(5.5rem, 3rem + 8vw, 12rem); padding-left: var(--space-s); border-left: 2px solid var(--grey-100); }
@media (max-width: 30em) {
  /* Small phones: tighter spacing so both logos and the Menu button fit on one line. */
  .site-header__logo { gap: var(--space-xs); }
  .site-header__logo-pip { padding-left: var(--space-xs); }
  .site-header__inner { gap: var(--space-xs); }
  .nav-toggle { padding-inline: 0.75rem; }
}

.nav-toggle {
  display: none; align-items: center; gap: var(--space-xs);
  min-height: 3rem; padding: 0.5rem 1rem; border: 2px solid var(--navy); border-radius: 999px;
  background: var(--white); color: var(--navy); font: 700 1rem var(--font-heading); cursor: pointer;
}
.nav-toggle__close { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__open { display: none; }
.nav-toggle[aria-expanded="true"] .nav-toggle__close { display: inline; }
.nav-toggle .icon { width: 1.4rem; height: 1.4rem; }

.site-nav { display: flex; align-items: center; gap: var(--space-m); }
.site-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2xs); }
.site-nav__link {
  display: flex; align-items: center; min-height: 2.75rem; padding: 0.4rem 0.75rem;
  font-family: var(--font-heading); font-weight: 700; font-size: 1.0625rem; white-space: nowrap;
  text-decoration: none; border-radius: 999px;
}
.site-nav__link:hover { background: var(--grey-100); }
.site-nav__link[aria-current="page"] { background: var(--lime); }

.site-search-link {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs);
  min-width: 2.75rem; min-height: 2.75rem; border-radius: 999px;
  background: var(--navy); color: var(--white); text-decoration: none; font-weight: 700;
}
.site-search-link:hover { background: var(--navy-700); }
@media (min-width: 75.01em) { .site-search-link__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

@media (max-width: 75em) {
  .site-search-link { padding: 0.75rem 1rem; justify-content: flex-start; border-radius: var(--radius-s); }
  .js .nav-toggle { display: inline-flex; }
  .site-header__inner { flex-wrap: wrap; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: var(--space-s); padding-bottom: var(--space-s); }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav__list { flex-direction: column; }
  .site-nav__link { border-radius: var(--radius-s); padding: 0.75rem 1rem; font-size: var(--step-1); }
}

/* Footer: artwork strip along the top */
.site-footer { --art-top: var(--art-hero); position: relative; padding-block: calc(var(--space-2xl) + var(--art-hero)) var(--space-l); }
.site-footer__grid { display: grid; gap: var(--space-l); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.site-footer__logos { display: grid; gap: var(--space-m); justify-items: center; max-width: 14rem; padding: var(--space-m); background: var(--page); border-radius: var(--radius-s); }
.site-footer__logos img { width: 100%; }
.site-footer__logos img + img { width: 80%; }
.site-footer__heading { font-size: var(--step-1); color: var(--lime) !important; }
.site-footer ul { list-style: none; padding: 0; margin: 0 0 var(--space-s); display: grid; gap: var(--space-xs); }
.site-footer a { color: var(--white); }
.site-footer__contact li { display: flex; gap: var(--space-xs); align-items: center; }
.site-footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-s);
  margin-top: var(--space-xl); padding-top: var(--space-m); border-top: 1px solid rgb(255 255 255 / 0.3);
  padding-right: 4rem; /* keeps the © line clear of the back-to-top arrow */
  font-size: var(--step--1);
}
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: var(--space-m); margin: 0; }
.site-footer__legal p { margin: 0; }

.cookie-banner {
  position: fixed; inset: auto 0 0 0; z-index: 50;
  background: var(--navy); color: var(--white); border-top: 4px solid var(--lime);
  padding-block: var(--space-m); box-shadow: 0 -8px 24px rgb(0 0 0 / 0.2);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-m); }
.cookie-banner__text { margin: 0; }
.cookie-banner a { color: var(--white); }

/* Back to top: small fixed button, bottom right. Plain link to #top (the site
   header), so it works without JS and the next Tab goes to the logo. With JS it
   only shows after scrolling down a screen. Hidden while the cookie banner is
   open so it never sits on top of it. */
.back-to-top {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 40;
  display: grid; place-items: center; width: 3rem; height: 3rem;
  border-radius: 50%; background: var(--navy); color: var(--white);
  border: 2px solid var(--white); box-shadow: var(--shadow);
  transition: opacity 0.2s, visibility 0.2s;
}
.back-to-top:hover { background: var(--lime); color: var(--navy); border-color: var(--navy); }
.back-to-top .icon { width: 1.5rem; height: 1.5rem; }
.js .back-to-top:not(.is-visible),
.cookie-banner:not([hidden]) ~ .back-to-top { opacity: 0; visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: none; } }

/* 6. Blocks ---------------------------------------------------------------- */

/* b-home-hero */
section.b-home-hero { --art-top: var(--art-hero); --art-bottom: var(--art-hero); background: var(--navy); color: var(--white); overflow: hidden;
  padding-block: calc(var(--space-2xl) + var(--art-hero)); }
.b-home-hero__inner { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 56em) { .b-home-hero__inner { grid-template-columns: 1.15fr 1fr; } }
.b-home-hero__strap {
  display: inline-block; background: var(--lime); color: var(--navy);
  font-family: var(--font-heading); font-weight: 700; padding: 0.3rem 0.9rem; border-radius: 999px;
}
.b-home-hero__heading { font-size: var(--step-4); color: var(--white); margin-block: var(--space-s) var(--space-m); }
.b-home-hero__pillars { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-s); margin-bottom: var(--space-l); font-weight: 700; }
.b-home-hero__pillars li { display: flex; align-items: center; gap: var(--space-xs); }
.b-home-hero__pillars li::before { content: ""; width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--lime); }
.b-home-hero__media img { width: 85%; margin-inline: auto; border-radius: var(--radius); transform: rotate(5deg); box-shadow: 0 20px 40px rgb(0 0 0 / 0.3); }
@media (max-width: 55.99em) { .b-home-hero__media { max-width: 26rem; } }

/* b-page-hero */
section.b-page-hero {
  --art-top: var(--art-thin); --art-bottom: var(--art-hero);
  background: var(--navy); color: var(--white);
  padding-block: calc(var(--space-xl) + var(--art-thin)) calc(var(--space-xl) + var(--art-hero));
}
.b-page-hero :where(h1, a) { color: var(--white); }
.b-page-hero__heading { font-size: var(--step-4); margin: 0; }
.b-page-hero__lead { font-size: var(--step-1); margin: var(--space-s) 0 0; }
.b-page-hero .breadcrumb a { color: var(--white); }

/* b-intro-text */
.b-intro-text__inner--media { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 56em) { .b-intro-text__inner--media { grid-template-columns: 1.4fr 1fr; } }
.b-intro-text__lead { font-size: var(--step-1); }
.b-intro-text__media img { border-radius: var(--radius-s); }
.b-intro-text + .b-intro-text { padding-top: 0; }

/* b-photo-banner */
section.b-photo-banner { padding-block: var(--space-l); }
.b-photo-banner__figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy); box-shadow: var(--shadow); }
.b-photo-banner__img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 48em) { .b-photo-banner__img { aspect-ratio: 21 / 9; } }
.b-photo-banner__caption {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-s);
  padding: var(--space-s) var(--space-m); background: var(--navy); color: var(--white);
}
.b-photo-banner__title { font-weight: 700; }
.b-photo-banner__caption .link-arrow { color: var(--white); }

/* b-vision-list */
.b-vision-list__lead { font-family: var(--font-heading); font-size: var(--step-2); font-weight: 700; }
.b-vision-list__items { list-style: none; padding: 0; display: grid; gap: var(--space-s); margin: var(--space-l) 0 0; grid-template-columns: 1fr; }
@media (min-width: 40em) { .b-vision-list__items { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .b-vision-list__items { grid-template-columns: repeat(3, 1fr); } }
.b-vision-list__item {
  display: flex; align-items: center; gap: var(--space-s);
  background: var(--white); color: var(--navy); border-radius: var(--radius);
  padding: var(--space-m); font-weight: 700; font-size: var(--step-1); box-shadow: var(--shadow);
}
.b-vision-list__icon { width: 2.25rem; height: 2.25rem; padding: 0.4rem; border-radius: 50%; background: var(--navy); color: var(--lime); }

/* b-priorities */
.b-priorities__grid { list-style: none; padding: 0; margin: var(--space-l) 0 0; display: grid; gap: var(--space-m); grid-template-columns: 1fr; }
@media (min-width: 40em) { .b-priorities__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .b-priorities__grid { grid-template-columns: repeat(3, 1fr); } }
.b-priorities__card {
  position: relative; overflow: hidden; background: var(--navy); color: var(--white);
  border-radius: var(--radius); padding: calc(var(--space-l) + var(--art-frame)) var(--space-l) var(--space-l);
}
.b-priorities__card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--art-frame);
  background: var(--navy) url("../img/pattern-navy-lime.png") 0 0 / 260px repeat;
}
.b-priorities__title { color: var(--lime); }
.b-priorities__card p { margin: 0; }
.b-priorities__icon { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--lime); color: var(--navy); margin-bottom: var(--space-s); }
.b-priorities__icon .icon { width: 1.75rem; height: 1.75rem; }
.b-priorities__title { font-size: var(--step-1); }
/* Projects page: artwork line between the project cards and this section */
.b-priorities--divided { --art-top: var(--art-band); padding-top: calc(var(--space-2xl) + var(--art-band)) !important; }

/* b-timeline: vertical line, alternating on wide screens */
.b-timeline__list { list-style: none; padding: 0; margin: var(--space-xl) 0 0; position: relative; }
.b-timeline__list::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 1.25rem; width: 4px; border-radius: 2px;
  background: linear-gradient(var(--lime) 0 55%, rgb(255 255 255 / 0.35) 55%);
}
.b-timeline__item { position: relative; padding-left: 3.75rem; margin-bottom: var(--space-m); }
.b-timeline__marker {
  position: absolute; left: 0.25rem; top: 1.1rem; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); border: 4px solid var(--lime); color: var(--navy);
}
.b-timeline__item--done .b-timeline__marker { background: var(--lime); }
.b-timeline__item--done .b-timeline__marker .icon { width: 1.1rem; height: 1.1rem; stroke-width: 3; }
.b-timeline__item--now .b-timeline__marker { background: var(--white); box-shadow: 0 0 0 6px rgb(205 238 0 / 0.35); }
.b-timeline__item--next .b-timeline__marker { border-color: var(--white); }
.b-timeline__card { background: var(--page); color: var(--ink); border-radius: var(--radius); padding: var(--space-m); box-shadow: var(--shadow); }
.b-timeline__item--now .b-timeline__card { background: var(--lime); color: var(--navy); outline: 4px solid var(--white); }
.b-timeline__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs); margin-bottom: var(--space-xs); }
.b-timeline__date { font-family: var(--font-heading); font-weight: 700; font-size: var(--step-1); color: var(--navy); }
.b-timeline__status { font-size: var(--step--1); font-weight: 700; padding: 0.1rem 0.6rem; border-radius: 999px; border: 2px solid var(--navy); color: var(--navy); }
.b-timeline__item--now .b-timeline__status { background: var(--navy); color: var(--lime); }
.b-timeline__item--next .b-timeline__status { border-style: dashed; }
.texture--navy .b-timeline__title { color: var(--navy); font-size: var(--step-1); margin-bottom: var(--space-2xs); }
.b-timeline__text { margin: 0; }
.b-timeline__text + .b-timeline__text { margin-top: var(--space-xs); }
.texture--navy .b-timeline__card a { color: var(--navy); }
.b-timeline__item:last-child { margin-bottom: 0; }
@media (min-width: 60em) {
  .b-timeline__list::before { left: calc(50% - 2px); }
  .b-timeline__item { width: 50%; padding-left: 0; padding-right: 3.5rem; }
  .b-timeline__item:nth-child(even) { margin-left: 50%; padding-right: 0; padding-left: 3.5rem; }
  .b-timeline__item .b-timeline__marker { left: auto; right: -1.125rem; }
  .b-timeline__item:nth-child(even) .b-timeline__marker { right: auto; left: -1.125rem; }
  .b-timeline__item:not(:first-child) { margin-top: -3rem; }
}
/* inside a project page (white background) */
.b-timeline:not(.texture--navy) .b-timeline__card { border: 2px solid var(--grey-100); }

/* b-area-map */
.b-area-map { background: var(--navy); color: var(--white); }
.b-area-map .section-heading { color: var(--white); }
.b-area-map__inner { display: grid; gap: var(--space-xl); align-items: center; }
@media (min-width: 56em) { .b-area-map__inner { grid-template-columns: 1fr 1.4fr; } }
.b-area-map__figure { margin: 0; }
.b-area-map__figure img {
  max-height: 34rem; width: auto; margin-inline: auto; padding: var(--space-xs); border-radius: var(--radius);
  border: var(--art-frame) solid transparent; box-shadow: 0 20px 40px rgb(0 0 0 / 0.35);
  background: linear-gradient(var(--white), var(--white)) padding-box,
              url("../img/pattern-navy-lime.png") 0 0 / 260px repeat border-box var(--navy);
}
.b-area-map__placeholder {
  aspect-ratio: 4 / 3; border-radius: var(--radius); border: 3px dashed var(--navy);
  display: grid; place-content: center; justify-items: center; gap: var(--space-s); text-align: center;
  padding: var(--space-l); color: var(--navy); font-weight: 700;
  background: var(--white) url("../img/pattern-frame-wide.jpg") center / cover;
}
.b-area-map__placeholder span { background: var(--white); padding: var(--space-xs) var(--space-s); border-radius: var(--radius-s); }
.b-area-map__placeholder .icon { background: var(--white); border-radius: 50%; padding: 0.5rem; width: 4rem; height: 4rem; }

/* b-news-list */
.b-news-list { background: var(--page); }

/* b-cta-banner */
.b-cta-banner__box {
  border-radius: calc(var(--radius) * 2); padding: var(--space-xl) var(--space-l);
  display: grid; gap: var(--space-m); align-items: center; overflow: hidden;
}
@media (min-width: 56em) { .b-cta-banner__box { grid-template-columns: 1.6fr auto; padding: var(--space-xl); } }
.b-cta-banner__text p { margin: 0; font-size: var(--step-1); }

/* b-board-grid */
.b-board-grid__list { list-style: none; padding: 0; margin: var(--space-l) 0 0; display: grid; gap: var(--space-m); align-items: start; }
@media (min-width: 60em) { .b-board-grid__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 36em) {
  .b-board-grid__card { display: grid; grid-template-columns: minmax(9rem, 13rem) 1fr; align-items: start; }
}
.b-board-grid__photo.b-board-grid__photo--needed { display: grid; place-items: center; aspect-ratio: 4 / 5; padding: var(--space-s); background: var(--pale-blue); text-align: center; }
.b-board-grid__photo.b-board-grid__photo--none { display: grid; place-items: center; aspect-ratio: 4 / 5; background: var(--pale-blue); color: var(--navy); }
.b-board-grid__photo--none .icon--xl { width: 6rem; height: 6rem; stroke-width: 1.5; }
.b-board-grid__contact { margin-bottom: var(--space-l); }
.b-board-grid__contact a { overflow-wrap: anywhere; }
.b-board-grid__card { --art-frame-thin: 0.28rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 1rem; } /* artwork border via .art-frame */
.b-board-grid__photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--lime); }
.b-board-grid__body { padding: var(--space-m); }
.b-board-grid__name { font-size: var(--step-1); margin-bottom: var(--space-2xs); }
.b-board-grid__role { font-weight: 700; margin: 0; }
.b-board-grid__org { color: var(--muted); margin: 0 0 var(--space-s); }
.b-board-grid__org:has(+ .b-board-grid__org) { margin-bottom: 0; } /* several lines: one gap after the last */
.b-board-grid__bio { margin-top: var(--space-s); border-top: 2px solid var(--grey-100); padding-top: var(--space-s); }
.b-board-grid__bio summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-xs);
  min-height: 2.75rem; font-family: var(--font-heading); font-weight: 700; color: var(--navy); cursor: pointer; list-style: none;
}
.b-board-grid__bio summary::-webkit-details-marker { display: none; }
.b-board-grid__bio summary:hover { text-decoration: underline; }
.details-icon { transition: transform 0.2s ease; }
.b-board-grid__bio[open] .details-icon { transform: rotate(90deg); }
.b-board-grid__bio p { font-size: 1rem; }

/* b-art-divider: thick artwork line between two sections (decorative) */
.b-art-divider { height: var(--art-band); background: var(--navy) url("../img/pattern-navy-lime.png") 0 0 / 260px repeat; }

/* b-jump-links (home page: six boxes that jump to each section) */
.b-jump-links { padding-block: var(--space-xl) 0; }
.b-jump-links__grid { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-m); grid-template-columns: 1fr; }
@media (min-width: 40em) { .b-jump-links__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64em) { .b-jump-links__grid { grid-template-columns: repeat(3, 1fr); } }
.b-jump-links__box {
  display: flex; align-items: center; gap: var(--space-m); height: 100%; min-height: 6rem;
  padding: var(--space-m) var(--space-l); background: var(--navy); border-top: 6px solid var(--lime); border-radius: var(--radius);
  font-family: var(--font-heading); font-weight: 700; font-size: var(--step-1); line-height: 1.25; color: var(--lime); text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.b-jump-links__box:hover { background: var(--lime); color: var(--navy); border-top-color: var(--navy); }
.b-jump-links__box:hover .b-jump-links__icon { background: var(--navy); color: var(--lime); }
.b-jump-links__box:hover .b-jump-links__label { text-decoration: underline; }
.b-jump-links__icon { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--lime); color: var(--navy); flex: none; }
.b-jump-links__icon .icon { width: 1.6rem; height: 1.6rem; }
.b-jump-links__label { flex: 1; }
.b-jump-links__arrow--down { transform: rotate(90deg); }
@media (max-width: 39.99em) {
  .b-jump-links__grid { grid-template-columns: 1fr 1fr; gap: var(--space-s); }
  .b-jump-links__box { flex-direction: column; align-items: flex-start; gap: var(--space-xs); min-height: 0; padding: var(--space-s); font-size: 1.0625rem; }
  .b-jump-links__icon { width: 2.75rem; height: 2.75rem; }
  .b-jump-links__arrow { display: none; }
}

/* Photo gallery inside a news story (WP: core/gallery) */
.photo-gallery { list-style: none; padding: 0; margin: var(--space-m) 0 var(--space-l); display: grid; gap: var(--space-s); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 40em) { .photo-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 60em) { .photo-gallery { grid-template-columns: repeat(4, 1fr); gap: var(--space-m); } }
.photo-gallery a { display: block; border-radius: var(--radius-s); overflow: hidden; padding: var(--art-frame-thin); background: var(--navy) url("../img/pattern-navy-lime.png") 0 0 / 260px repeat; } /* thin artwork frame round each photo */
.photo-gallery img { border-radius: calc(var(--radius-s) - 2px); }
.photo-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 0.2s ease; }
.photo-gallery a:hover img { transform: scale(1.04); }

/* Photo pop-up (lightbox). Dark background so the photo and white text stand out. */
.lightbox-open { overflow: hidden; }
.lightbox { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(0 0 0 / 0.97); color: var(--white); }
.lightbox::backdrop { background: rgb(0 0 0 / 0.6); }
.lightbox__inner { position: relative; display: grid; place-items: center; width: 100%; height: 100%; padding: 4.5rem 1rem 1rem; }
.lightbox__figure { margin: 0; display: grid; justify-items: center; gap: var(--space-s); }
.lightbox__img { max-width: min(100%, 1400px); max-height: calc(100vh - 10rem); width: auto; height: auto; object-fit: contain; border-radius: var(--radius-s); }
.lightbox__caption { max-width: 60ch; text-align: center; font-size: 1rem; }
.lightbox__count { white-space: nowrap; opacity: 0.85; }
.lightbox__close {
  position: absolute; top: 1rem; right: 1rem; display: inline-flex; align-items: center; gap: var(--space-xs);
  min-height: 3rem; padding: 0.5rem 1.1rem; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--white); color: var(--navy); font: 700 1.0625rem var(--font-heading);
}
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); display: inline-grid; place-items: center;
  width: 3.25rem; height: 3.25rem; border: 0; border-radius: 50%; cursor: pointer; background: var(--white); color: var(--navy);
}
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--lime); }
.lightbox .icon { width: 1.4rem; height: 1.4rem; }
.icon--flip { transform: scaleX(-1); }
@media (max-width: 39.99em) {
  .lightbox__inner { padding-bottom: 5.5rem; }
  .lightbox__img { max-height: calc(100vh - 15rem); }
  .lightbox__nav { top: auto; bottom: 1rem; transform: none; }
  .lightbox__nav--prev { left: calc(50% - 4rem); }
  .lightbox__nav--next { right: calc(50% - 4rem); }
}

/* Long email addresses must wrap on small screens (WCAG 1.4.10 reflow). */
a[href^="mailto:"] { overflow-wrap: anywhere; }
.site-footer__contact li > *, .b-contact__list li > div { min-width: 0; }
.b-contact__details { min-width: 0; }

.b-contact__reply { margin-top: var(--space-m); font-weight: 700; color: var(--navy); }

/* b-project-overview */
.b-project-overview__inner { display: grid; gap: var(--space-xl); }
@media (min-width: 56em) { .b-project-overview__inner { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.b-project-overview__main .section-heading { font-size: var(--step-2); }
.b-project-overview__main .section-heading + * + .section-heading,
.b-project-overview__main * + .section-heading { margin-top: var(--space-l); }
.b-project-overview__facts { background: var(--grey-50); border-radius: var(--radius); padding: var(--space-l); border-top: 6px solid var(--lime); }
.b-project-overview__facts dl { margin: 0; display: grid; gap: var(--space-s); }
.b-project-overview__facts dt { font-weight: 700; color: var(--muted); font-size: var(--step--1); }
.b-project-overview__facts dd { margin: 0; font-weight: 700; color: var(--navy); }

/* b-before-after */
.b-before-after { background: var(--grey-50); }
.b-before-after__grid { display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.b-before-after__figure { position: relative; margin: 0; }
/* Same rules as news: photo in an artwork frame; no photo yet = the artwork on its own. */
.b-before-after__figure img, .b-before-after__placeholder {
  border-radius: var(--radius); aspect-ratio: 4 / 3; width: 100%; object-fit: cover;
  background: var(--navy) url("../img/pattern-navy-lime.png") 0 0 / 260px repeat; background-origin: border-box;
}
.b-before-after__figure img { border: var(--art-frame) solid transparent; }
.b-before-after__label {
  position: absolute; top: var(--space-s); left: var(--space-s); z-index: 1;
  background: var(--navy); color: var(--white); font-family: var(--font-heading); font-weight: 700;
  padding: 0.3rem 0.9rem; border-radius: 999px;
}
.b-before-after__figure:last-child .b-before-after__label { background: var(--lime); color: var(--navy); }
.b-before-after figcaption:empty { display: none; }

/* b-document-list */
.b-document-list__meeting { border: 2px solid var(--grey-100); border-radius: var(--radius); padding: var(--space-l); margin-bottom: var(--space-m); }
.b-document-list__date { display: flex; align-items: center; gap: var(--space-xs); font-size: var(--step-2); }
.b-document-list__note { color: var(--muted); }
.b-document-list__docs { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-s); grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.doc-link {
  display: flex; align-items: center; gap: var(--space-s); height: 100%;
  padding: var(--space-s) var(--space-m); border-radius: var(--radius-s); background: var(--grey-50);
  text-decoration: none; border: 2px solid transparent;
}
.doc-link:hover { border-color: var(--navy); }
.doc-link__icon { width: 2rem; height: 2rem; padding: 0.35rem; border-radius: 50%; background: var(--lime); color: var(--navy); }
.doc-link__text { display: grid; }
.doc-link__type { font-weight: 700; font-family: var(--font-heading); }
.doc-link__meta { font-size: var(--step--1); color: var(--muted); }

/* b-link-list */
.b-link-list--grey { background: var(--grey-50); }
.b-link-list__grid { list-style: none; padding: 0; margin: var(--space-l) 0 0; display: grid; gap: var(--space-m); grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.b-link-list__card {
  display: grid; gap: var(--space-xs); height: 100%; padding: var(--space-l);
  border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none;
}
a.b-link-list__card:hover { --art-fill: var(--pale-lime); }
.b-link-list__icon { width: 2.75rem; height: 2.75rem; padding: 0.55rem; border-radius: 50%; background: var(--navy); color: var(--lime); }
.b-link-list__title { font-family: var(--font-heading); font-weight: 700; font-size: var(--step-1); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.b-link-list__meta { color: var(--muted); font-size: var(--step--1); }

/* b-contact */
.b-contact__inner { display: grid; gap: var(--space-xl); }
@media (min-width: 56em) { .b-contact__inner { grid-template-columns: 1fr 1.4fr; align-items: start; } }
.b-contact__details { --art-fill: var(--pale-blue); border-radius: var(--radius); padding: var(--space-l); }
.b-contact__details .section-heading, .b-contact__form-wrap .section-heading { font-size: var(--step-2); }
.b-contact__list { list-style: none; padding: 0; display: grid; gap: var(--space-m); }
.b-contact__list li { display: flex; gap: var(--space-s); align-items: flex-start; }
.b-contact__list li > .icon { width: 2.5rem; height: 2.5rem; padding: 0.5rem; border-radius: 50%; background: var(--navy); color: var(--lime); }
.b-contact__list strong { display: block; color: var(--navy); }

/* b-news-archive */
.b-news-archive { padding-block: var(--space-2xl); }

/* 7. WordPress content and forms ------------------------------------------ */
/* Blocks editors can use in news stories, projects and plain pages. No WordPress
   block CSS is loaded: everything they need is here. */
.prose > :is(p, ul, ol, blockquote, .wp-block-quote, .wp-block-file, .wp-block-details, .wp-block-table) { max-width: 70ch; }
.prose ul:not(.photo-gallery, .search-results, .tick-list, .b-link-list__grid) { padding-left: 1.25em; }
.prose figure { margin: var(--space-m) 0; }
.prose img { height: auto; border-radius: var(--radius-s); }
.prose .wp-element-caption, .prose figcaption { font-size: var(--step--1); color: var(--muted); margin-top: var(--space-2xs); }
.prose .aligncenter { margin-inline: auto; text-align: center; }
.prose .alignleft { float: left; margin: 0 var(--space-m) var(--space-s) 0; max-width: 50%; }
.prose .alignright { float: right; margin: 0 0 var(--space-s) var(--space-m); max-width: 50%; }
.prose::after { content: ""; display: table; clear: both; }
.prose .has-text-align-center { text-align: center; }
.prose .has-text-align-right { text-align: right; }
.prose :is(blockquote, .wp-block-quote) { margin: var(--space-m) 0; padding: var(--space-s) var(--space-m); border-left: 6px solid var(--navy); background: var(--pale-blue); border-radius: 0 var(--radius-s) var(--radius-s) 0; }
.prose :is(blockquote, .wp-block-quote) cite { display: block; margin-top: var(--space-xs); font-style: normal; font-weight: 700; color: var(--muted); }
.prose hr, .prose .wp-block-separator { border: 0; border-top: 2px solid var(--grey-100); margin-block: var(--space-l); max-width: none; }
.prose .wp-block-table { overflow-x: auto; }
.prose table { border-collapse: collapse; width: 100%; font-size: 1rem; }
.prose :is(th, td) { border: 1px solid var(--line); padding: var(--space-xs) var(--space-s); text-align: left; vertical-align: top; }
.prose th { background: var(--pale-blue); }
.prose :is(video, audio) { width: 100%; border-radius: var(--radius-s); }
.prose .wp-block-details { border: 2px solid var(--grey-100); border-radius: var(--radius-s); padding: var(--space-s) var(--space-m); }
.prose .wp-block-details summary { font-weight: 700; cursor: pointer; min-height: 1.5rem; }
.prose .wp-block-buttons { display: flex; flex-wrap: wrap; gap: var(--space-s); }
.prose .wp-block-button__link { display: inline-flex; align-items: center; min-height: 3rem; padding: 0.75rem 1.5rem; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 700; text-decoration: none; }
.prose .wp-block-button__link:hover { background: var(--navy-700); }
.prose .is-style-outline .wp-block-button__link { background: transparent; color: var(--navy); border: 3px solid var(--navy); }
.prose .wp-block-file { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-s); padding: var(--space-s) var(--space-m); background: var(--pale-blue); border-radius: var(--radius-s); }
.prose .wp-block-file > a:first-child { font-weight: 700; }
.prose .wp-block-file__button { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0.5rem 1.25rem; border-radius: 999px; background: var(--navy); color: var(--white); font-weight: 700; text-decoration: none; }
.prose .wp-block-file__embed { display: none; } /* PDF preview: a big iframe, not needed */

/* Gallery (core/gallery), with the pop-up */
.prose .wp-block-gallery { display: grid; gap: var(--space-s); grid-template-columns: repeat(2, 1fr); margin: var(--space-m) 0 var(--space-l); max-width: none; }
@media (min-width: 40em) { .prose .wp-block-gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 60em) { .prose .wp-block-gallery { grid-template-columns: repeat(4, 1fr); gap: var(--space-m); } }
.prose .wp-block-gallery > .wp-element-caption { grid-column: 1 / -1; }
.prose .wp-block-gallery .wp-block-image { margin: 0; }
.prose .wp-block-gallery .wp-block-image a { display: block; border-radius: var(--radius-s); overflow: hidden; padding: var(--art-frame-thin); background: var(--navy) url("../img/pattern-navy-lime.png") 0 0 / 260px repeat; }
.prose .wp-block-gallery .wp-block-image img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--radius-s) - 2px); transition: transform 0.2s ease; }
.prose .wp-block-gallery .wp-block-image a:hover img { transform: scale(1.04); }
.prose .wp-block-gallery .wp-block-image figcaption { font-size: var(--step--1); }

/* Form errors (GOV.UK pattern) and success message */
.error-summary { border: 4px solid #b10e1e; background: var(--white); padding: var(--space-m); border-radius: var(--radius-s); margin-bottom: var(--space-m); }
.error-summary__title { font-size: var(--step-1); margin: 0 0 var(--space-xs); }
.error-summary ul { margin: 0; padding-left: 1.25em; }
.error-summary a { color: #b10e1e; font-weight: 700; }
.form__field--error { border-left: 5px solid #b10e1e; padding-left: var(--space-s); }
.form__error { color: #b10e1e; font-weight: 700; margin: 0; }
.form__field--error :is(input, textarea, select) { border-color: #b10e1e; }
.form__success { background: var(--lime); color: var(--navy); padding: var(--space-m); border-radius: var(--radius-s); margin-bottom: var(--space-m); }
.form__success p { margin: 0; }

/* "Content needed" boxes (editors can add a paragraph with the class "placeholder";
   remove them when the text arrives). */
.placeholder {
  border: 2px dashed var(--muted); background: var(--grey-50); color: var(--ink);
  padding: var(--space-xs) var(--space-s); border-radius: var(--radius-s); font-size: var(--step--1);
}

/* Search results */
ul.search-results { list-style: none; padding: 0; margin: var(--space-m) 0 0; display: grid; gap: var(--space-m); max-width: 70ch; }
.search-results__item { padding-bottom: var(--space-m); border-bottom: 2px solid var(--grey-100); }
.search-results__type { margin: 0; font-size: var(--step--1); color: var(--muted); font-weight: 700; }
.search-results__title { font-size: var(--step-1); margin: var(--space-2xs) 0; }

/* Footer "Cookie settings" button looks like the links next to it */
.site-footer__cookie-button { background: none; border: 0; padding: 0; min-height: 24px; color: inherit; font: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; cursor: pointer; }

.pagination a { min-height: 24px; }

@media print { .cookie-banner, .nav-toggle, .back-to-top { display: none !important; } }
