/* ==========================================================================
   styles.css — SRCA shared styles (mobile first).
    0 fonts · 1 tokens (light + dark) · 2 base · 3 layout · 4 buttons/badges
    5 header/nav/theme toggle · 6 hero & stats · 7 cards · 8 inner pages · 9 forms
   10 map · 11 footer & cookie banner · 12 admin portal
   Brand: calmer, muted versions of the Solomon Islands flag colours in the
   Rise + Care logo — ocean blue #1d5fa6, gold #e8c547, forest green #2f6e45,
   black and white (the logo image itself keeps the exact flag colours). Headings use DejaVu Sans Bold
   (the logo's lettering); body text uses Lora.
   Light and dark themes: the light values live on :root, the dark values are in
   the two blocks below it. The inline script in partials/brand-head.ejs sets
   data-theme="light|dark"; without JS the device setting decides.
   Text/background pairs meet WCAG 2.2 AA. Where the exact logo blue is too light
   for small text (on tinted backgrounds or in dark mode), --link uses a shade of it.
   ========================================================================== */

/* 0. Fonts (self-hosted: no third-party requests, cached after first visit) */
@font-face {
  font-family: "DejaVu Sans"; font-style: normal; font-weight: 700; font-display: swap;
  src: local("DejaVu Sans Bold"), local("DejaVuSans-Bold"), url("/fonts/dejavu-sans-bold-latin.woff2") format("woff2");
}
@font-face { font-family: "Lora"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/lora-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/lora-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/lora-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Lora"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/lora-latin-700-normal.woff2") format("woff2"); }

/* 1. Design tokens ------------------------------------------------------- */
:root {
  /* Flag colours, softened. Use these for fills, stripes and big colour blocks. */
  --brand-blue: #1d5fa6;    /* white text 6.5:1 */
  --brand-yellow: #e8c547;  /* black text 12.5:1 */
  --brand-green: #2f6e45;   /* white text 6.1:1 */
  --brand-black: #000000;
  --white: #ffffff;
  --blue-hover: #174d87;    /* white text 8.6:1 */

  /* Light theme */
  color-scheme: light;
  --bg: #f6f8fb;            /* page background */
  --bg-alt: #edf2f7;        /* alternate sections (light tint of the logo blue) */
  --surface: #ffffff;       /* cards, panels, inputs */
  --surface-2: #f2f4f7;     /* table headers, quiet boxes */
  --ink: #111111;
  --heading: #000000;
  --muted: #4d4f53;         /* 7.9:1 on --bg */
  --line: #d9dee6;
  --input-border: #7d828a;  /* 3.9:1 on white (form field boundary) */
  --link: #1a5596;          /* shade of the logo blue: 6.3:1 on white, 5.5:1 on --bg-alt */
  --link-hover: #000000;
  --green-text: #2f6e45;    /* 5.4:1 on white */
  --header-bg: #ffffff;
  --header-ink: #000000;
  --header-line: #d9dee6;
  --nav-accent: var(--brand-blue);
  --inverse-bg: #000000;
  --inverse-ink: #ffffff;
  --focus: var(--brand-blue);
  --warn-bg: #faf0cf;  --warn-ink: #4d4200;
  --info-bg: #e8eff7;  --info-ink: #1a4a80;
  --success-bg: #e4f2e7; --success: #2f6e45;
  --danger: #b3261e;   --danger-bg: #fdecea;
  --neutral-bg: #ebebeb; --neutral-ink: #444444;
  --row-hover: #f3f6fa;
  --row-selected: #fbf3d6;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.06), 0 6px 20px rgb(0 0 0 / 0.08);
  --shadow-hover: 0 10px 28px rgb(0 0 0 / 0.14);

  --font-display: "DejaVu Sans", "Verdana", "Bitstream Vera Sans", system-ui, sans-serif;
  --font-body: "Lora", Georgia, "Times New Roman", serif;

  --radius: 12px;
  --radius-sm: 8px;
  --container: 74rem;
  --gutter: 1rem;
}

/* Dark theme: chosen with the toggle ... */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0b0c;
  --bg-alt: #131417;
  --surface: #1a1b1f;
  --surface-2: #23252a;
  --ink: #ececec;
  --heading: #ffffff;
  --muted: #a8acb3;
  --line: #33363c;
  --input-border: #80858d;
  --link: #8db8e8;          /* tint of the logo blue: 8.5:1 on --bg */
  --link-hover: #ffffff;
  --green-text: #6fd28a;
  --header-bg: #000000;
  --header-ink: #ffffff;
  --header-line: #26282d;
  --nav-accent: var(--brand-yellow);
  --inverse-bg: #ffffff;
  --inverse-ink: #000000;
  --focus: var(--brand-yellow);
  --warn-bg: #352f00;  --warn-ink: #e8c547;
  --info-bg: #0d2647;  --info-ink: #9cc8ff;
  --success-bg: #0f2e17; --success: #7bd48e;
  --danger: #ff8a80;   --danger-bg: #3b1412;
  --neutral-bg: #2c2e33; --neutral-ink: #d0d3d8;
  --row-hover: #202227;
  --row-selected: #2e2a00;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 6px 20px rgb(0 0 0 / 0.45);
  --shadow-hover: 0 10px 28px rgb(0 0 0 / 0.6);
}
/* ... or by the device setting when no choice has been applied (e.g. JS off). Keep in sync with the block above. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #0b0b0c;
    --bg-alt: #131417;
    --surface: #1a1b1f;
    --surface-2: #23252a;
    --ink: #ececec;
    --heading: #ffffff;
    --muted: #a8acb3;
    --line: #33363c;
    --input-border: #80858d;
    --link: #8db8e8;
    --link-hover: #ffffff;
    --green-text: #6fd28a;
    --header-bg: #000000;
    --header-ink: #ffffff;
    --header-line: #26282d;
    --nav-accent: var(--brand-yellow);
    --inverse-bg: #ffffff;
    --inverse-ink: #000000;
    --focus: var(--brand-yellow);
    --warn-bg: #352f00;  --warn-ink: #e8c547;
    --info-bg: #0d2647;  --info-ink: #9cc8ff;
    --success-bg: #0f2e17; --success: #7bd48e;
    --danger: #ff8a80;   --danger-bg: #3b1412;
    --neutral-bg: #2c2e33; --neutral-ink: #d0d3d8;
    --row-hover: #202227;
    --row-selected: #2e2a00;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.5), 0 6px 20px rgb(0 0 0 / 0.45);
    --shadow-hover: 0 10px 28px rgb(0 0 0 / 0.6);
  }
}

/* Logo swap: black-lettering logo on light surfaces, white-lettering logo on dark ones. */
.logo-for-dark { display: none; }
:root[data-theme="dark"] .logo-for-light { display: none; }
:root[data-theme="dark"] .logo-for-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .logo-for-light { display: none; }
  :root:not([data-theme]) .logo-for-dark { display: block; }
}

/* 2. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.18; color: var(--heading); margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 6vw, 3.3rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.5rem, 3.8vw, 2.05rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { color: var(--link-hover); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.25rem 0; }
code { background: var(--surface-2); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.92em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus, [tabindex="-1"]:focus { outline: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.note { font-size: 0.95rem; color: var(--muted); }

.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 3000; background: var(--inverse-bg); color: var(--inverse-ink); padding: 0.75rem 1rem; border-radius: 0 0 8px 8px; text-decoration: none; }
.skip-link:focus { top: 0; color: var(--inverse-ink); }

/* 3. Layout -------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 48rem) { :root { --gutter: 2rem; } }
.section { padding-block: 3rem; }
.section-tight { padding-block: 1.75rem; }
@media (min-width: 48rem) { .section { padding-block: 4.5rem; } .section-tight { padding-block: 2.5rem; } }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 44rem; margin-bottom: 2rem; }
.eyebrow { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--green-text); margin-bottom: 0.5rem; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 44rem; }
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.4rem; margin-top: 2rem; }
.split { display: grid; gap: 2rem; align-items: center; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; }
  .split-reverse > :first-child { order: 2; }
}
.actions-row { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; margin-top: 1.5rem; }

/* 4. Buttons, links, badges ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  min-height: 48px; padding: 0.7rem 1.4rem; border-radius: 6px; border: 2px solid transparent;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--brand-blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-hover); color: var(--white); }
/* Secondary: .btn-outline and .btn-secondary are the same style. */
.btn-outline, .btn-secondary { background: transparent; color: var(--heading); border-color: var(--heading); }
.btn-outline:hover, .btn-secondary:hover { background: var(--heading); color: var(--bg); }
.btn-dark { background: var(--inverse-bg); color: var(--inverse-ink); }
.btn-dark:hover { background: var(--brand-blue); color: var(--white); }
/* Subtle: low-emphasis actions such as Cancel or Clear filters. */
.btn-ghost { background: transparent; color: var(--link); }
.btn-ghost:hover { background: var(--surface-2); color: var(--heading); }
/* Destructive: outline by default; -solid for the final "yes, delete" step.
   Text uses --danger-bg on --danger (5.7:1 light, 7.1:1 dark). */
.btn-danger { background: var(--surface); color: var(--danger); border-color: var(--danger); }
.btn-danger:hover, .btn-danger-solid { background: var(--danger); color: var(--danger-bg); border-color: var(--danger); }
.btn-danger-solid:hover { filter: brightness(0.9); }
/* Pressed and disabled states for every variant. Disabled buttons fade and ignore
   clicks/hover (site.js disables submit buttons while a form is sending). */
.btn:active { transform: translateY(1px); filter: brightness(0.92); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; pointer-events: none; transform: none; filter: none; }
.btn-lg { font-size: 1.1rem; padding: 0.85rem 1.9rem; }
.btn-sm, .btn-small { min-height: 44px; padding: 0.45rem 1.05rem; font-size: 0.95rem; }
.text-link { font-weight: 700; color: var(--link); }
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.8rem; font-weight: 700; background: var(--bg-alt); color: var(--heading); white-space: nowrap; }
.badge-planning, .badge-pending, .badge-new, .badge-draft { background: var(--warn-bg); color: var(--warn-ink); }
.badge-proposed, .badge-contacted { background: var(--info-bg); color: var(--info-ink); }
.badge-pilot, .badge-approved, .badge-published, .badge-partner-donor, .badge-in-conversation { background: var(--success-bg); color: var(--success); }
.badge-rejected, .badge-overdue { background: var(--danger-bg); color: var(--danger); }
.badge-closed, .badge-ended { background: var(--neutral-bg); color: var(--neutral-ink); }

/* 5. Header, navigation & theme toggle ----------------------------------- */
.site-header { background: var(--header-bg); color: var(--header-ink); border-bottom: 1px solid var(--header-line); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem 1rem; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--header-ink); }
.brand:hover { color: var(--header-ink); }
.brand-logo { height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.header-tools { display: flex; align-items: center; gap: 0.5rem; margin-left: auto; }
@media (min-width: 56rem) {
  .primary-nav { order: 1; margin-left: auto; }
  .header-tools { order: 2; margin-left: 0.5rem; }
}
.nav-toggle {
  display: none; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.5rem 0.95rem;
  background: none; border: 2px solid currentColor; border-radius: 999px; font: inherit; font-weight: 700; color: var(--header-ink); cursor: pointer;
}
.nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bar::before { top: -6px; }
.nav-toggle-bar::after { top: 6px; }

.theme-toggle {
  display: none; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0;
  background: none; color: var(--header-ink); border: 1.5px solid currentColor; border-radius: 50%; cursor: pointer; opacity: 0.85;
}
.theme-toggle .theme-icon { width: 16px; height: 16px; }
.js .theme-toggle { display: inline-flex; }
.theme-toggle:hover { background: var(--header-ink); color: var(--header-bg); opacity: 1; }
.theme-icon-sun { display: none; }
:root[data-theme="dark"] .theme-icon-sun { display: block; }
:root[data-theme="dark"] .theme-icon-moon { display: none; }

.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.4rem; }
.primary-nav a:not(.btn) { display: inline-block; padding: 0.6rem 0; color: var(--header-ink); text-decoration: none; font-weight: 600; }
.primary-nav a:not(.btn):hover, .primary-nav a:not(.btn)[aria-current="page"] { color: var(--header-ink); text-decoration: underline; text-decoration-color: var(--nav-accent); text-decoration-thickness: 3px; text-underline-offset: 0.45em; }
@media (max-width: 55.99rem) {
  .js .nav-toggle { display: inline-flex; }
  .js .primary-nav { display: none; width: 100%; padding-bottom: 1rem; }
  .js .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; }
  .primary-nav a:not(.btn) { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--header-line); }
  .primary-nav .btn { margin-top: 0.85rem; width: 100%; }
  .brand-logo { height: 48px; }
}
@media (max-width: 23rem) { .brand-sub { display: none; } }

/* 6. Hero & stats -------------------------------------------------------- */
.hero { background: linear-gradient(180deg, var(--surface), var(--bg)); padding-block: 2.25rem 2.5rem; }
.hero-inner { display: grid; gap: 2rem; align-items: center; }
.mission { font-size: 1.22rem; max-width: 34rem; color: var(--ink); border-left: 4px solid var(--brand-yellow); padding-left: 1rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.5rem; }
.hero-photo { margin: 0; }
.hero-photo img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.hero-photo figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.5rem; }
@media (min-width: 56rem) {
  .hero { padding-block: 4rem 4.5rem; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 3.5rem; }
}

/* Full-width photo hero. The black gradient keeps white text above AA contrast
   on every part of the photo (darkest where the text sits). */
.hero-bold { position: relative; color: var(--white); background: var(--brand-black); overflow: hidden; }
.hero-bold-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }
.hero-bold::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(0 0 0 / 0.9) 0%, rgb(0 0 0 / 0.72) 50%, rgb(0 0 0 / 0.2) 100%); }
@media (max-width: 47.99rem) { .hero-bold::after { background: linear-gradient(180deg, rgb(0 0 0 / 0.5) 0%, rgb(0 0 0 / 0.88) 55%); } }
.hero-bold-inner { position: relative; z-index: 1; padding-block: 7rem 3rem; max-width: 74rem; }
@media (min-width: 48rem) { .hero-bold-inner { padding-block: 7rem 7rem; } }
.hero-bold h1 { color: var(--white); max-width: 16ch; font-size: clamp(2.1rem, 6.5vw, 3.6rem); line-height: 1.08; }
.hero-bold .mission { color: #f2f2f2; border-left-color: var(--brand-yellow); max-width: 34rem; }
.hero-bold .eyebrow { color: var(--brand-yellow); }
.hero-bold .text-link { color: var(--white); }
.hero-bold figcaption { position: relative; z-index: 1; font-size: 0.8rem; color: #d9d9d9; padding: 0 var(--gutter) 0.75rem; text-align: right; max-width: var(--container); margin-inline: auto; }
.hero-bold :focus-visible { outline-color: var(--brand-yellow); }

.stats-band { background: var(--brand-black); color: var(--white); padding-block: 2rem; }
.stat-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 40rem) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
.stat { display: flex; flex-direction: column; padding-left: 1rem; border-left: 4px solid var(--brand-yellow); }
.stat-education { border-left-color: var(--brand-blue); }
.stat-basic-needs { border-left-color: var(--brand-green); }
.stat-value { font-family: var(--font-display); font-size: clamp(2.1rem, 6vw, 2.9rem); font-weight: 700; line-height: 1; }
.stat-label { margin-top: 0.35rem; color: #dedede; }
.as-of { margin: 1.25rem 0 0; font-size: 0.85rem; color: #cfcfcf; }
.stats-note { background: var(--brand-black); color: #d9d9d9; font-size: 0.85rem; padding: 0.6rem var(--gutter); text-align: center; margin: 0; }

/* Three tall colour columns in the logo's colours: stat + pillar + link. */
.pillar-columns { list-style: none; margin: 0; padding: 0; display: grid; }
@media (min-width: 48rem) { .pillar-columns { grid-template-columns: repeat(3, 1fr); } }
.pillar-col { position: relative; padding: 2.25rem var(--gutter) 2.5rem; color: var(--white); background: var(--brand-blue); display: flex; flex-direction: column; }
@media (min-width: 48rem) { .pillar-col { padding: 2.75rem 2rem 3rem; min-height: 22rem; } }
.pillar-col.pillar-green { background: var(--brand-green); }
.pillar-col.pillar-gold { background: var(--brand-yellow); color: var(--brand-black); }
.pillar-col .stat-value { font-family: var(--font-display); font-size: clamp(2.4rem, 7vw, 3.2rem); font-weight: 700; line-height: 1; }
.pillar-col .stat-label { display: block; margin: 0.35rem 0 1.5rem; color: inherit; }
.pillar-col h3 { color: inherit; font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 0.5rem; }
.pillar-col p { flex: 1; }
.pillar-col .card-link { color: inherit; text-decoration: underline; text-underline-offset: 0.2em; }
.pillar-col .card-link::after { border-radius: 0; }
.pillar-col:hover { filter: brightness(1.06); }
.pillar-col :focus-visible, .pillar-col .card-link:focus-visible::after { outline-color: var(--brand-yellow); }
.pillar-col.pillar-gold :focus-visible, .pillar-col.pillar-gold .card-link:focus-visible::after { outline-color: var(--brand-black); }

/* 7. Cards --------------------------------------------------------------- */
.pillar-grid, .path-grid, .biz-grid, .people-grid, .partner-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .people-grid { grid-template-columns: repeat(2, 1fr); } .pillar-grid, .path-grid, .biz-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }

.pillar-card, .path-card, .biz-card, .person-card, .partner-card, .form-card, .contact-card, .story-card, .cta-card {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
}
.pillar-card { position: relative; display: flex; flex-direction: column; padding: 1.5rem; border-top: 6px solid var(--brand-blue); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.pillar-green { border-top-color: var(--brand-green); }
.pillar-gold { border-top-color: var(--brand-yellow); }
.pillar-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.pillar-icon { margin-bottom: 1rem; }
.pillar-card > p { color: var(--muted); }
.pillar-stat { flex: 1; font-size: 0.95rem; }
.pillar-stat strong { font-family: var(--font-display); font-size: 1.45rem; color: var(--heading); }
.card-link { font-weight: 700; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card-link:hover { text-decoration: underline; }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }

.split-photo { border-radius: var(--radius); box-shadow: var(--shadow); max-height: 30rem; width: 100%; object-fit: cover; }
.cta-grid { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .cta-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: stretch; } }
.map-teaser { display: flex; flex-direction: column; background: var(--brand-blue); color: var(--white); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); }
.map-teaser { position: relative; }
.map-teaser-map { display: block; width: 100%; height: auto; flex: 1; background: #aad3df; }
.map-label { font: italic 600 26px var(--font-body, serif); fill: #4a5a63; paint-order: stroke; stroke: #f2efe9; stroke-width: 6px; }
.map-teaser-count { position: absolute; top: 0.75rem; left: 0.75rem; background: rgb(255 255 255 / 0.92); color: #1a1a1a; font-size: 0.85rem; font-weight: 700; padding: 0.25rem 0.6rem; border-radius: 999px; }
.map-teaser-text { padding: 1.25rem 1.5rem; }
.map-teaser-text strong { display: block; font-family: var(--font-display); font-size: 1.3rem; }
.map-teaser:hover { color: var(--white); }
.map-teaser:hover .map-teaser-text { text-decoration: underline; }
.map-teaser:focus-visible { outline-color: var(--focus); }
.cta-card { padding: 2rem; border-top: 6px solid var(--brand-yellow); }
.cta-paths { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 30rem) { .cta-paths .btn { width: 100%; } }

.path-card { display: flex; flex-direction: column; padding: 1.5rem; border: 2px solid transparent; border-top: 6px solid var(--brand-blue); }
.path-card:nth-child(2) { border-top-color: var(--brand-green); }
.path-card:nth-child(3) { border-top-color: var(--brand-yellow); }
.path-card p { flex: 1; color: var(--muted); }
.path-card.is-selected { border-color: var(--heading); border-top-width: 6px; }

.biz-card { overflow: hidden; display: flex; flex-direction: column; }
.biz-card img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.biz-body { padding: 1.25rem 1.5rem 1.5rem; }
.biz-body h3 { margin-top: 0.6rem; }
details summary { cursor: pointer; font-weight: 700; color: var(--link); min-height: 44px; display: flex; align-items: center; }

.person-card { display: flex; gap: 1rem; padding: 1.25rem; }
.person-card h3 { margin-bottom: 0.1rem; font-size: 1.08rem; }
.person-role { color: var(--green-text); font-weight: 700; font-size: 0.9rem; margin-bottom: 0.4rem; }
.person-card p:last-child { margin: 0; color: var(--muted); font-size: 0.95rem; }
.avatar { flex: none; width: 72px; height: 72px; border-radius: 50%; background: var(--bg-alt); color: var(--heading); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; }
/* About: founders feature, values, photo avatars (Box photos, Dec 2026) */
.motto { font-family: var(--font-display); font-style: italic; font-size: 1.2rem; color: var(--heading); border-left: 4px solid var(--brand-yellow); padding-left: 1rem; }
.founders-split { display: grid; gap: 2rem; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .founders-split { grid-template-columns: minmax(0, 26rem) minmax(0, 1fr); gap: 3.5rem; } }
.founders-photo { margin: 0; }
.founders-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.founders p { max-width: 44rem; }
.values-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.value-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; border-top: 5px solid var(--brand-green); }
.value-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.value-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
img.avatar { object-fit: cover; }
.team-photo { margin: 0; }
.team-split { margin-top: 2.5rem; }
.h-sub { font-size: 1.35rem; margin-bottom: 0.6rem; }
.team-photo img { display: block; width: 100%; height: auto; max-height: 26rem; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.team-photo figcaption, .gallery-grid figcaption { margin-top: 0.5rem; color: var(--muted); font-size: 0.92rem; }
.gallery-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.gallery-grid figure { margin: 0; }
.gallery-grid img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.partner-grid { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.partner-card { display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1.5rem; }
.partner-card h3 { font-size: 1.08rem; margin: 0.25rem 0 0; }
.partner-meta { margin: 0; color: var(--muted); font-size: 0.92rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.6rem; }
.partner-type { background: var(--surface-2); color: var(--ink); border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.8rem; font-weight: 700; }
.partner-mark { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--white); background: var(--brand-blue); }
.partner-mark-church { background: var(--brand-green); }
.partner-mark-foundation { background: var(--brand-black); }
.partner-mark-ngo { background: #8a5a00; }
.partner-link { margin-top: auto; padding-top: 0.5rem; font-weight: 700; font-size: 0.92rem; min-height: 24px; }
.partner-note { margin: 1rem 0 0; font-size: 0.92rem; }
.partner-note + p { margin-top: 1.5rem; }
.person .avatar { width: 56px; height: 56px; }

/* 8. Inner pages --------------------------------------------------------- */
/* Page heading band: logo blue in both themes, white text (6.5:1). */
.page-hero { background: var(--brand-blue); color: var(--white); padding-block: 2.25rem 1.75rem; }
.page-hero-tight { padding-block: 1.75rem 1.25rem; }
@media (min-width: 48rem) { .page-hero { padding-block: 3.25rem 2.25rem; } }
.page-hero h1 { color: var(--white); }
.page-hero .lead { color: var(--white); }
.page-hero .eyebrow { color: var(--white); }
.page-hero .eyebrow::before { content: ""; display: inline-block; width: 1.5rem; height: 4px; margin-right: 0.5rem; vertical-align: middle; background: var(--brand-yellow); border-radius: 2px; }
.page-hero a:not(.btn) { color: var(--white); }
.page-hero :focus-visible { outline-color: var(--brand-yellow); }
.breadcrumb ol { color: var(--white); }
.page-tabs { display: flex; gap: 0.5rem; overflow-x: auto; margin-top: 1.5rem; padding-bottom: 0.25rem; scrollbar-width: thin; }
.page-tabs a { flex: none; padding: 0.55rem 1rem; border-radius: 999px; background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.45); color: var(--white); font-weight: 600; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.page-tabs a:hover { background: var(--white); color: var(--brand-black); }
.fact-list, .point-list { margin: 0; display: grid; gap: 1rem; }
.fact-list div { background: var(--surface); padding: 1.1rem 1.25rem; border-radius: var(--radius-sm); border-left: 4px solid var(--brand-yellow); box-shadow: var(--shadow); }
.fact-list dt, .point-list dt { font-weight: 700; color: var(--heading); }
.fact-list dd, .point-list dd { margin: 0.2rem 0 0; color: var(--muted); }
.point-list { margin-top: 1.5rem; }
.point-list div { padding-left: 1rem; border-left: 3px solid var(--line); }
.pillar-heading { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.pillar-heading h2 { margin: 0; }
.pillar-aside { display: grid; gap: 1.25rem; }
.big-stat { background: var(--brand-blue); color: var(--white); border-radius: var(--radius); padding: 1.5rem; display: flex; flex-direction: column; }
.big-stat .stat-label { color: var(--white); }
.big-stat.stat-basic-needs { background: var(--brand-green); }
.big-stat.stat-jobs { background: var(--brand-yellow); color: var(--brand-black); }
.big-stat.stat-jobs .stat-label { color: var(--brand-black); }
.aside-photo { border-radius: var(--radius); box-shadow: var(--shadow); max-height: 26rem; width: 100%; object-fit: cover; }
.story-card { padding: 1.5rem; border-top: 6px solid var(--brand-blue); }
.story-card p:last-child { margin: 0; color: var(--muted); }
.acc-grid { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .acc-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; } }
.money-list, .doc-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.75rem; }
.money-list li { background: var(--surface); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; display: grid; }
.money-list span { color: var(--muted); font-size: 0.95rem; }
.doc-list li { display: flex; align-items: center; gap: 1rem; background: var(--surface); border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; }
.doc-icon { flex: none; width: 44px; height: 52px; border-radius: 6px; background: var(--danger-bg); color: var(--danger); display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; }
.doc-text { flex: 1; display: grid; }
.doc-text span { color: var(--muted); font-size: 0.92rem; }
.doc-layout { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .doc-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 3.5rem; align-items: start; } .toc { position: sticky; top: 6rem; } }
.toc { background: var(--surface); border-radius: var(--radius); padding: 1.25rem 1.25rem 1rem; box-shadow: var(--shadow); }
.toc-title { font-weight: 700; color: var(--heading); margin-bottom: 0.5rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }
.toc a { display: inline-block; padding: 0.3rem 0; }
.confirm-card { max-width: 40rem; text-align: center; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 2.5rem 1.5rem; }
.confirm-card .lead { margin-inline: auto; }
.confirm-card .actions-row { justify-content: center; }
.confirm-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; background: var(--success-bg); color: var(--success); display: grid; place-items: center; font-size: 2rem; font-weight: 700; }

/* 9. Forms --------------------------------------------------------------- */
.form-layout { display: grid; gap: 1.5rem; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 56rem) { .form-layout { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2rem; } .contact-card { position: sticky; top: 6rem; } }
.form-card { padding: 1.5rem; }
@media (min-width: 48rem) { .form-card { padding: 2rem 2.25rem; } }
.contact-card { padding: 1.5rem; border-top: 6px solid var(--brand-green); }
.contact-card .person { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 1rem; }
.inquiry-form, .stack-form { display: grid; gap: 1.15rem; }
.field { display: grid; gap: 0.35rem; margin: 0; min-width: 0; }
fieldset.field { border: 0; padding: 0; }
.field-row { display: grid; gap: 1.15rem; }
@media (min-width: 40rem) { .field-row { grid-template-columns: 1fr 1fr; } }
label, legend { font-weight: 700; color: var(--ink); }
legend { padding: 0; margin-bottom: 0.35rem; }
.req { color: var(--danger); }
.optional, .hint-inline { font-weight: 400; color: var(--muted); font-size: 0.92rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="search"],
input[type="number"], input[type="url"], input[type="date"], input[type="time"], input[type="datetime-local"], input[type="file"],
input:not([type]), select, textarea {
  width: 100%; min-height: 48px; padding: 0.65rem 0.8rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 2px solid var(--input-border); border-radius: var(--radius-sm);
}
textarea { min-height: 8rem; resize: vertical; }
select[multiple] { min-height: 8rem; padding: 0.35rem; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--heading); }
::placeholder { color: var(--muted); opacity: 1; }
/* Disabled fields: tinted and dashed, so the state shows without relying on colour. */
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--muted); border-style: dashed; cursor: not-allowed; }
input[readonly], textarea[readonly] { background: var(--surface-2); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.check-grid { display: grid; gap: 0.25rem 1rem; }
@media (min-width: 40rem) { .check-grid { grid-template-columns: repeat(2, 1fr); } }
.check { display: flex; gap: 0.6rem; align-items: flex-start; font-weight: 400; min-height: 44px; padding-top: 0.6rem; }
.check input { width: 1.3rem; height: 1.3rem; margin: 0.1rem 0 0; flex: none; accent-color: var(--brand-blue); }
.consent { background: var(--surface-2); border-radius: var(--radius-sm); padding: 0.4rem 0.9rem 0.6rem; }
.field-error { color: var(--danger); font-weight: 600; margin: 0; font-size: 0.95rem; }
.field-error::before { content: "⚠ "; }
/* Alerts: an icon, the message text and colour together, so meaning never relies on
   colour alone. Icons are hidden from screen readers (content: "x" / ""), and the
   message wording carries the meaning. Same classes and look in field.css.
   .alert-error (✕) · .alert-warning (!) · .alert-success (✓) · .alert-info (i) */
.alert { position: relative; border-radius: var(--radius-sm); padding: 1rem 1.2rem 1rem 3rem; margin-bottom: 1.25rem; border-left: 5px solid; }
.alert::before {
  position: absolute; left: 0.9rem; top: 1.05rem; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  display: grid; place-items: center; font: 700 0.85rem/1 var(--font-display);
}
.alert ul { margin: 0.25rem 0 0; padding-left: 1.2rem; }
.alert p:last-child { margin-bottom: 0; }
.alert a { color: inherit; }
.alert-error { background: var(--danger-bg); border-left-color: var(--danger); }
.alert-error::before { content: "✕"; content: "✕" / ""; background: var(--danger); color: var(--danger-bg); }
.alert-error a { color: var(--danger); }
.alert-warning { background: var(--warn-bg); border-left-color: var(--brand-yellow); color: var(--warn-ink); }
.alert-warning::before { content: "!"; content: "!" / ""; background: var(--warn-ink); color: var(--warn-bg); }
.alert-success { background: var(--success-bg); border-left-color: var(--success); }
.alert-success::before { content: "✓"; content: "✓" / ""; background: var(--success); color: var(--success-bg); }
.alert-info { background: var(--info-bg); border-left-color: var(--info-ink); color: var(--info-ink); }
.alert-info::before { content: "i"; content: "i" / ""; background: var(--info-ink); color: var(--info-bg); }
.hp { position: absolute; left: -9999px; }

/* 10. Impact map --------------------------------------------------------- */
.map-layout { display: grid; gap: 1rem; }
.map-filters { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.map-filters legend { float: left; margin-right: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; padding: 0.4rem 0.95rem; border-radius: 999px; background: var(--surface); color: var(--ink); border: 2px solid var(--line); font-weight: 600; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip:has(input:checked) { border-color: var(--heading); }
.chip:has(input:not(:checked)) { opacity: 0.6; text-decoration: line-through; }
.chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--brand-blue); flex: none; display: inline-block; }
.chip-green .dot, .dot-green { background: var(--brand-green); }
.chip-gold .dot, .dot-gold { background: var(--brand-yellow); box-shadow: 0 0 0 1.5px var(--brand-black); }
.chip-blue .dot, .dot-blue { background: var(--brand-blue); }
.map-wrap { position: relative; }
.map { height: 62vh; min-height: 360px; max-height: 640px; border-radius: var(--radius); box-shadow: var(--shadow); z-index: 1; background: #aad3df; }
.map-panel { position: absolute; z-index: 500; left: 0.75rem; right: 0.75rem; bottom: 0.75rem; max-height: 70%; overflow: auto; background: var(--surface); color: var(--ink); border-radius: var(--radius); box-shadow: 0 10px 30px rgb(0 0 0 / 0.3); padding: 1.25rem; }
@media (min-width: 48rem) { .map-panel { left: auto; top: 0.75rem; bottom: auto; width: 22rem; max-height: calc(100% - 1.5rem); } }
.map-panel img { border-radius: var(--radius-sm); margin-bottom: 0.75rem; max-height: 10rem; width: 100%; object-fit: cover; }
.map-panel h2 { font-size: 1.25rem; }
.panel-result { font-weight: 700; color: var(--green-text); margin: 0; }
.panel-close { position: absolute; top: 0.5rem; right: 0.5rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface-2); color: var(--ink); font-size: 1.5rem; cursor: pointer; z-index: 1; }
.site-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
@media (min-width: 56rem) { .site-list { grid-template-columns: 1fr 1fr; } }
.site-list li { display: flex; gap: 0.8rem; background: var(--surface); padding: 1rem 1.1rem; border-radius: var(--radius-sm); }
.site-list .dot { margin-top: 0.45rem; flex: none; }
.site-body h3 { font-size: 1.05rem; margin: 0 0 0.15rem; }
.site-body p { margin: 0 0 0.45rem; }
.site-meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.5rem; }
.site-status { display: inline-block; margin: 0.2rem 0 0; padding: 0.15rem 0.65rem; border-radius: 999px; background: var(--surface-2); color: var(--ink); font-size: 0.82rem; font-weight: 700; }
.map-panel .eyebrow { padding-right: 3rem; margin-bottom: 0.25rem; }
.map-panel h2 { padding-right: 2.5rem; margin-bottom: 0.2rem; }
.sample-note { margin: 0; }

/* 11. Footer & cookie banner -------------------------------------------- */
/* Black in both themes with a yellow top stripe, so it always uses the white-lettering logo. */
.site-footer { background: var(--brand-black); color: #d6d6d6; padding-block: 3rem 1rem; border-top: 4px solid var(--brand-yellow); }
.site-footer a { color: var(--white); }
.site-footer :focus-visible { outline-color: var(--brand-yellow); }
.site-footer .btn-primary, .site-footer .btn-primary:hover { color: var(--white); }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.footer-logo { display: block; width: 140px; height: auto; margin-bottom: 0.75rem; }
.footer-brand { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--white); margin-bottom: 0.4rem; }
.footer-heading { font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand-yellow); margin-bottom: 0.6rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links a { display: inline-block; padding: 0.4rem 0; }
.footer-contact { font-style: normal; line-height: 1.9; }
.footer-legal { border-top: 1px solid rgb(255 255 255 / 0.15); margin-top: 2.5rem; padding-top: 1rem; font-size: 0.88rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; }
.footer-legal p { margin: 0; }
.site-footer a.staff-btn { display: inline-flex; align-items: center; gap: 0.45rem; min-height: 36px; padding: 0.3rem 0.9rem; border: 1.5px solid rgb(255 255 255 / 0.6); border-radius: 999px; color: var(--white); text-decoration: none; font-weight: 700; font-size: 0.85rem; }
.site-footer a.staff-btn:hover { background: var(--white); color: var(--brand-black); }
.staff-btn svg { width: 14px; height: 14px; }
.cookie-banner { position: fixed; z-index: 2000; left: 0; right: 0; bottom: 0; background: var(--surface); color: var(--ink); border-top: 4px solid var(--brand-yellow); box-shadow: 0 -6px 24px rgb(0 0 0 / 0.2); padding-block: 1rem; }
.cookie-inner { display: grid; gap: 0.75rem; align-items: center; }
.cookie-inner p { margin: 0; font-size: 0.95rem; }
.cookie-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
@media (min-width: 48rem) { .cookie-inner { grid-template-columns: 1fr auto; gap: 1.5rem; } }

/* 12. Admin portal ------------------------------------------------------- */
.admin-body { background: var(--bg); }
.admin-shell { display: block; min-height: 100vh; }
/* Top navigation bar (more room for wide tables than a sidebar); follows the theme like the public header. */
.admin-topbar { background: var(--header-bg); color: var(--header-ink); border-bottom: 1px solid var(--header-line); position: sticky; top: 0; z-index: 50; }
.admin-topbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.5rem; padding: 0.6rem var(--gutter); max-width: 90rem; margin-inline: auto; }
@media (min-width: 56rem) { .admin-topbar-inner { padding-inline: 2.5rem; } }
.admin-topbar .brand { color: var(--header-ink); }
.admin-topbar .brand-logo { height: 48px; }
.admin-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: row; gap: 0.25rem; overflow-x: auto; }
.admin-topbar .admin-nav { order: 3; width: 100%; }
@media (min-width: 56rem) { .admin-topbar .admin-nav { order: 0; width: auto; } }
.admin-nav a { display: flex; align-items: center; gap: 0.6rem; min-height: 44px; padding: 0.5rem 0.85rem; border-bottom: 3px solid transparent; color: var(--header-ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.admin-nav a:hover { color: var(--header-ink); border-bottom-color: var(--line); }
.admin-nav a[aria-current="page"] { color: var(--header-ink); border-bottom-color: var(--nav-accent); }
.admin-nav .count { margin-left: auto; background: var(--surface-2); border-radius: 999px; padding: 0 0.5rem; font-size: 0.8rem; }
.admin-user { margin: 0 0 0 auto; font-size: 0.9rem; color: var(--muted); }
.admin-user a { color: var(--link); }
.admin-main { padding: 1.25rem var(--gutter) 3rem; min-width: 0; max-width: 90rem; margin-inline: auto; }
@media (min-width: 56rem) { .admin-main { padding: 2rem 2.5rem 3rem; } }
.admin-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.admin-top h1 { font-size: clamp(1.55rem, 4vw, 2rem); margin: 0; }
.admin-top .sub { margin: 0.25rem 0 0; color: var(--muted); }
.preview-banner { font-size: 0.92rem; margin-bottom: 1.25rem; }
.panel { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; margin-bottom: 1.5rem; }
@media (min-width: 48rem) { .panel { padding: 1.5rem; } }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.panel-head h2, .panel h2, .h3 { font-size: 1.2rem; margin: 0; }
.dash-grid { display: grid; gap: 1.25rem; margin-bottom: 1.5rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .dash-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.kpi-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (min-width: 64rem) { .kpi-grid { grid-template-columns: repeat(4, 1fr); } }
.dash-grid .kpi-grid { margin: 0; grid-template-columns: repeat(2, 1fr); }
/* KPI tiles in the logo colours, plus black (white in dark mode). */
.kpi { display: block; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.4rem 1.5rem; text-decoration: none; background: var(--brand-blue); color: var(--white); }
.kpi:nth-child(2) { background: var(--brand-green); }
.kpi:nth-child(3) { background: var(--brand-yellow); color: var(--brand-black); }
.kpi:nth-child(4) { background: var(--inverse-bg); color: var(--inverse-ink); }
.kpi:hover { color: inherit; filter: brightness(1.07); }
.kpi:nth-child(3):hover { color: var(--brand-black); }
.kpi:nth-child(4):hover { color: var(--inverse-ink); }
.kpi-value { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1.1; color: inherit; }
.kpi-label { font-weight: 600; font-size: 0.95rem; color: inherit; }
.metric-alert { display: flex; gap: 1rem; align-items: center; border-left: 6px solid var(--danger); }
.metric-alert .kpi-value { color: var(--danger); }
.metric-alert h2 { margin-bottom: 0.25rem; }
.metric-alert p { margin: 0; }
.reply-card .big-number { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--link); line-height: 1; margin: 0.25rem 0; }
.reply-list { list-style: none; padding: 0; margin: 0.75rem 0 0; display: grid; gap: 0.5rem; }
.reply-list a { display: flex; justify-content: space-between; gap: 0.5rem; background: var(--warn-bg); border-radius: var(--radius-sm); padding: 0.65rem 0.85rem; color: var(--warn-ink); text-decoration: none; font-weight: 600; min-height: 44px; align-items: center; }
.reply-list a:hover { filter: brightness(0.96); color: var(--warn-ink); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th, .data-table td { text-align: left; padding: 0.75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
.data-table tbody tr:hover { background: var(--row-hover); }
.data-table tr.is-selected { background: var(--row-selected); }
.data-table a { font-weight: 700; }
.filter-bar { display: grid; gap: 0.75rem; margin-bottom: 1rem; }
@media (min-width: 48rem) { .filter-bar { grid-template-columns: 2fr repeat(4, 1fr); align-items: end; } .filter-bar .filter-check, .filter-bar .filter-actions { align-self: center; } }
.filter-bar label { font-size: 0.85rem; }
.filter-actions { display: flex; gap: 0.5rem; }
.result-count { color: var(--muted); font-size: 0.92rem; margin: 0 0 0.5rem; }
.tabs { display: flex; gap: 0.35rem; border-bottom: 2px solid var(--line); margin-bottom: 1.25rem; overflow-x: auto; }
.tabs a { padding: 0.7rem 1rem; min-height: 44px; text-decoration: none; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-bottom: -2px; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--heading); border-bottom-color: var(--brand-blue); }
.two-col { display: grid; gap: 1.5rem; align-items: start; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 64rem) { .two-col { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.detail-list { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.25rem; margin: 0; }
.detail-list dt { font-weight: 700; color: var(--muted); font-size: 0.92rem; }
.detail-list dd { margin: 0; }
.message-box { background: var(--surface-2); border-radius: var(--radius-sm); padding: 1rem; white-space: pre-wrap; margin-top: 1rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.timeline li { border-left: 3px solid var(--line); padding: 0.1rem 0 0.1rem 0.9rem; }
.timeline .meta { font-size: 0.85rem; color: var(--muted); }
.timeline .system { color: var(--muted); font-style: italic; }
.entry-photo { border-radius: var(--radius-sm); max-height: 14rem; width: 100%; object-fit: cover; margin-bottom: 1rem; }
.consent-ok { color: var(--success); font-weight: 700; }
.consent-missing { color: var(--danger); font-weight: 700; }
.review-actions { display: grid; gap: 0.75rem; margin-top: 1rem; }
.content-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.75rem; }
.content-item { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.content-item.is-selected { border-color: var(--brand-blue); background: var(--info-bg); }
.content-item .meta { font-size: 0.85rem; color: var(--muted); }
.upload-zone { border: 2px dashed var(--input-border); border-radius: var(--radius-sm); padding: 1.25rem; text-align: center; color: var(--muted); }
.button-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.conflict-box { border: 2px solid var(--danger); background: var(--danger-bg); border-radius: var(--radius-sm); padding: 1rem; margin-bottom: 1rem; }
.conflict-box h3 { margin-top: 0; color: var(--danger); }

.login-page { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem var(--gutter); background: linear-gradient(160deg, var(--brand-black) 0%, var(--brand-blue) 100%); }
.login-card { width: 100%; max-width: 26rem; background: var(--surface); border-radius: var(--radius); box-shadow: 0 20px 50px rgb(0 0 0 / 0.35); padding: 2rem 1.5rem; }
@media (min-width: 30rem) { .login-card { padding: 2.25rem; } }
.login-card .brand { justify-content: center; margin-bottom: 1.25rem; }
.login-card h1 { font-size: 1.55rem; text-align: center; }
.login-foot { text-align: center; font-size: 0.92rem; margin: 1.25rem 0 0; }
.mfa-step { border-top: 1px solid var(--line); padding-top: 1rem; }
/* MFA setup: QR on a white tile in both themes (scanners need dark-on-light). */
.mfa-qr { margin: 0.5rem auto 1rem; background: #ffffff; padding: 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); }
.mfa-manual { margin-bottom: 1rem; }
.mfa-key { font-size: 1rem; letter-spacing: 0.08em; word-break: break-all; }
.admin-user form { display: inline; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--link-hover); }

/* Staff management: access requests, add/edit forms, remove */
.nav-count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 0.35rem; border-radius: 999px; background: var(--warn-bg); color: var(--warn-ink); font-size: 0.78rem; font-weight: 700; }
.panel-attention { border-left: 6px solid var(--warn-ink); }
.panel-danger { border-left: 6px solid var(--danger); }
.form-narrow { max-width: 36rem; }
.form-row { display: grid; gap: 1.15rem; }
@media (min-width: 36rem) { .form-row { grid-template-columns: 1fr 1fr; } }
.request-list { list-style: none; padding: 0; margin: 0; }
.request-item { display: flex; flex-wrap: wrap; gap: 0.75rem 1.25rem; align-items: flex-end; justify-content: space-between; padding: 1rem 0; border-top: 1px solid var(--line); }
.request-item > div { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.inline-form { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: flex-end; }
.inline-form .check { padding-top: 0; align-items: center; }
.role-help { margin-top: 1rem; }
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Database alignment: business facts + stage tracker (BUSINESSSTAGE), plain lists */
.biz-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem 1rem; margin: .75rem 0; }
.biz-facts dt { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.biz-facts dd { margin: 0; font-weight: 700; color: var(--ink); }
.stage-track { list-style: none; padding: 0; margin: .25rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; font-size: .78rem; }
.stage-track li { border-top: 6px solid var(--line); padding-top: .3rem; color: var(--muted); }
.stage-track li.done { border-top-color: var(--brand-green); color: var(--ink); }
.stage-track li[aria-current] { font-weight: 700; }
.plain-list { padding-left: 1.1rem; margin: 0 0 1rem; }
.plain-list li { margin-bottom: .25rem; }

/* Stories on Our Work (published STORY rows with consent) */
.story-grid { display: grid; gap: 1.25rem; }
@media (min-width: 48rem) { .story-grid { grid-template-columns: repeat(2, 1fr); } }
.story-item { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; border-top: 6px solid var(--brand-blue); min-width: 0; }
.story-item img { width: 100%; height: auto; max-height: 18rem; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 0.75rem; }
.story-item h3 { margin: 0 0 0.5rem; }
.story-item .meta { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* Site management: version actions, consent rows */
.version-actions { margin-top: 0.4rem; }
.consent-list li { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.consent-add { margin: 0.5rem 0 1.25rem; }
