/* PSPF public website — institutional design system on the Fund's brand.
   Palette from the sibling pspf-vote project: PSPF brown ramp, gold accents,
   warm ink and canvas. Structure follows the banded institutional layout.
   First-party only: system font stack, inline SVG icons, no third-party origins. */

:root {
  /* Brand ramp (pspf-vote tailwind config) */
  --brand-50:#faf5f0; --brand-100:#f3e8dc; --brand-200:#e5cfb8; --brand-300:#d4b291;
  --brand-500:#a16e46; --brand-600:#8a5a38; --brand-700:#6e462c; --brand-800:#573826;
  --brand-900:#472f21; --brand-950:#281a12;
  --gold:#c8912f; --gold-light:#e6be5a; --gold-deep:#8a6218;
  --ink:#241910;          /* deep brown-black */
  --paper:#faf4ea;        /* warm tinted band ground */
  --canvas:#f4f3f1;       /* page background */
  --surface:#ffffff;
  --muted:#6b5843;        /* secondary text */
  --line:#e5d9c9;         /* warm hairline */
  --pdf:#b3261e;          /* file-type red — PDFs look like PDFs */
  --radius:2px;
  --shadow:0 1px 2px rgba(36,25,16,.06), 0 4px 14px rgba(36,25,16,.07);
  --font-sans:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*{ box-sizing:border-box; }

body{ margin:0; color:var(--ink); font-family:var(--font-sans); background:var(--canvas); font-size:15px; line-height:1.55; }

/* Helper classes kept from earlier markup; redefined for this system. */
.slab{ font-weight:800; letter-spacing:-0.01em; color:var(--brand-800); }
.mono{ font-family:var(--font-sans); font-size:13px; letter-spacing:.01em; color:var(--muted); }

.wrap{ max-width:1200px; margin:0 auto; padding:0 24px; }

@keyframes riseIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.rise{ animation:riseIn .45s ease-out both; }
.rise-2{ animation-delay:.08s; }
@media (prefers-reduced-motion:reduce){ .rise{ animation:none; } }

.icon{ width:16px; height:16px; flex:none; vertical-align:middle; }

.skip-link{ position:absolute; left:-9999px; }
.skip-link:focus{
  left:16px; top:12px; background:var(--surface); color:var(--brand-800); padding:8px 16px;
  z-index:30; border:2px solid var(--brand-800); border-radius:var(--radius);
}

a:focus-visible, button:focus-visible, input:focus-visible{
  outline:3px solid var(--gold); outline-offset:2px;
}

/* ---- Utility bar ---- */
.utility-bar{ background:var(--brand-950); color:var(--brand-100); }
.utility-bar .wrap{
  display:flex; gap:24px; align-items:center; justify-content:space-between;
  font-size:12.5px; padding-top:7px; padding-bottom:7px;
}
.utility-contact{ display:inline-flex; align-items:center; gap:24px; }
.utility-apps{ display:inline-flex; align-items:center; gap:14px; }
.utility-apps-label{ display:inline-flex; align-items:center; color:var(--brand-300); }
.utility-apps a{ font-weight:700; color:var(--gold-light); }
.utility-apps a:hover{ color:#fff; }
.utility-bar a{ color:var(--brand-100); text-decoration:none; }
.utility-bar a:hover{ color:var(--gold-light); text-decoration:underline; }

/* ---- Header / nav ---- */
header{
  min-height:76px; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:0 max(24px, calc((100% - 1360px)/2 + 24px));
  background:var(--surface); position:sticky; top:0; z-index:20;
  border-bottom:1px solid var(--line); box-shadow:0 1px 3px rgba(36,25,16,.05);
}
.logo{ display:inline-flex; align-items:center; gap:10px; text-decoration:none; padding:8px 0; }
.logo img{ width:50px; height:53px; display:block; }
.logo-text{
  font-size:14px; line-height:1.25; font-weight:800; letter-spacing:-0.01em; color:var(--brand-800);
}

header nav{ display:flex; align-items:center; gap:22px; flex-wrap:wrap; }
header nav a{
  position:relative; font-size:14px; font-weight:600; color:var(--ink); text-decoration:none;
  padding:6px 0;
}
header nav a::after{
  content:""; position:absolute; left:0; right:0; bottom:0; height:2px;
  background:var(--gold); transform:scaleX(0); transform-origin:left;
  transition:transform .18s ease;
}
header nav a:hover{ color:var(--brand-600); }
header nav a:hover::after, header nav a:focus-visible::after{ transform:scaleX(1); }
header nav a.active{ color:var(--brand-800); }
header nav a.active::after{ transform:scaleX(1); }

/* Header layout: logo left, nav and the ePSPF button grouped on the right. */
.header-right{ display:flex; align-items:center; gap:20px; }
.header-actions{ display:flex; align-items:center; gap:10px; }
.nav-burger{
  display:none; align-items:center; justify-content:center; width:42px; height:38px;
  background:transparent; border:1px solid var(--line); border-radius:var(--radius); cursor:pointer;
  color:var(--ink);
}
.nav-burger-lines, .nav-burger-lines::before, .nav-burger-lines::after{
  display:block; width:20px; height:2px; background:currentColor;
}
.nav-burger-lines{ position:relative; }
.nav-burger-lines::before, .nav-burger-lines::after{ content:""; position:absolute; left:0; }
.nav-burger-lines::before{ top:-6px; }
.nav-burger-lines::after{ top:6px; }

/* Online Services control (markup keeps its historic epspf- class names) */
.epspf{ position:relative; margin-left:8px; }
.epspf-toggle{
  display:flex; align-items:center; gap:6px;
  background:var(--brand-700); color:#fff; border:none; border-radius:var(--radius); padding:10px 16px;
  font-family:var(--font-sans); font-size:13.5px; font-weight:700; cursor:pointer;
}
.epspf-toggle:hover{ background:var(--brand-600); }
.epspf-toggle .icon{ width:14px; height:14px; }
.epspf-panel{
  display:none; position:absolute; top:calc(100% + 8px); right:0; width:260px;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); overflow:hidden;
}
.epspf.open .epspf-panel{ display:block; }
.epspf-panel a{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 16px; font-size:13.5px; font-weight:500; color:var(--ink); text-decoration:none;
  border-bottom:1px solid var(--line);
}
.epspf-panel a:last-child{ border-bottom:none; }
.epspf-panel a:hover{ background:var(--brand-50); color:var(--brand-800); }
.epspf-panel .icon{ width:14px; height:14px; color:var(--muted); }
.epspf-service-disabled{
  display:flex; align-items:center;
  padding:12px 16px; font-size:13.5px; font-weight:500;
  color:var(--muted); border-bottom:1px solid var(--line);
  cursor:not-allowed; pointer-events:none;
}
.epspf-service-disabled:last-child{ border-bottom:none; }

/* Primary-nav dropdowns (legacy menu structure). Reuses the existing panel
   look — no new colours, just the same surface/line/shadow tokens as .epspf-panel. */
.nav-dd{ position:relative; }
.nav-dd > summary{
  list-style:none; cursor:pointer; display:inline-flex; align-items:center; gap:4px;
  font-size:14px; font-weight:600; color:var(--ink); padding:6px 0;
}
.nav-dd > summary::-webkit-details-marker{ display:none; }
.nav-dd > summary::marker{ content:""; }
.nav-dd > summary:hover{ color:var(--brand-600); }
.nav-dd > summary .icon{ width:14px; height:14px; transition:transform .15s ease; }
.nav-dd[open] > summary .icon{ transform:rotate(180deg); }
.nav-dd > ul{
  position:absolute; top:calc(100% + 8px); left:0; z-index:20; min-width:230px;
  margin:0; padding:0; list-style:none;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); overflow:hidden;
}
.nav-dd > ul a{
  display:block; padding:12px 16px; font-size:13.5px; font-weight:500; color:var(--ink);
  text-decoration:none; border-bottom:1px solid var(--line);
}
.nav-dd > ul li:last-child a{ border-bottom:none; }
.nav-dd > ul a:hover{ background:var(--brand-50); color:var(--brand-800); }

/* ---- Sections ---- */
section{ padding:56px 0; }
section.tight{ padding-top:0; }
.eyebrow{
  font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.09em;
  color:var(--gold-deep); margin:0 0 16px;
}
.page-intro{ font-size:17px; color:var(--muted); max-width:70ch; margin:0 0 24px; }

/* Hero search panel — the page's working centrepiece. */
.search-panel{
  background:var(--surface); border-radius:var(--radius); padding:26px 28px;
  border-top:4px solid var(--gold); box-shadow:0 12px 34px rgba(36,25,16,.35);
}
.search-panel h2{ font-size:19px; font-weight:800; margin:0 0 14px; color:var(--brand-900); }
.search-form label{ display:block; font-size:12px; color:var(--muted); margin-bottom:6px; }
.search-controls{ display:flex; gap:8px; }
.search-controls input{
  flex:1; min-width:0; border:1px solid var(--line); border-radius:var(--radius);
  padding:11px 13px; font-family:var(--font-sans); font-size:14.5px;
  background:#fff; color:var(--ink);
}
.search-controls .btn-primary{ background:var(--gold); border-color:var(--gold); color:var(--brand-950); }
.search-controls .btn-primary:hover{ background:var(--gold-light); border-color:var(--gold-light); }
.search-shortcuts{ display:flex; flex-wrap:wrap; gap:8px; margin-top:16px; }
.search-shortcuts a{
  font-size:12.5px; font-weight:700; color:var(--brand-700); text-decoration:none;
  border:1px solid var(--brand-200); border-radius:var(--radius); padding:6px 14px;
}
.search-shortcuts a:hover{ border-color:var(--gold); color:var(--gold-deep); }

/* Benefits calculator, shared by the hero and the Pensions Benefits page. */
.calc{
  background:var(--surface); border-radius:var(--radius); padding:24px 26px;
  border-top:4px solid var(--gold); box-shadow:0 12px 34px rgba(36,25,16,.35);
}
.calc h2{ font-size:19px; font-weight:800; margin:0 0 4px; color:var(--brand-900); }
.calc-lead{ font-size:13px; color:var(--muted); margin:0 0 16px; }
.calc-grid{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.calc-field{ display:flex; flex-direction:column; gap:6px; }
.calc-field.calc-full{ grid-column:1 / -1; }
.calc-field span{ font-size:12px; color:var(--muted); }
.calc-field input, .calc-field select{
  border:1px solid var(--line); border-radius:var(--radius); padding:10px 12px;
  font-family:var(--font-sans); font-size:14.5px; background:#fff; color:var(--ink);
}
.calc-actions{ display:flex; gap:8px; margin-top:16px; }
.calc-actions .btn-primary, .calc-actions .btn-reset{ display:inline-flex; align-items:center; gap:8px; }
.calc-actions .icon{ width:16px; height:16px; }
.calc-actions .btn-primary{ background:var(--gold); border-color:var(--gold); color:var(--brand-950); }
.calc-actions .btn-primary:hover{ background:var(--gold-light); border-color:var(--gold-light); }
.btn-reset{
  background:transparent; border:1px solid var(--brand-200); color:var(--brand-700);
  border-radius:var(--radius); padding:11px 18px; font-family:var(--font-sans);
  font-size:14px; font-weight:700; cursor:pointer;
}
.btn-reset:hover{ border-color:var(--gold); color:var(--gold-deep); }
/* The typed salary, formatted and written in words as the member types. */
.calc-inline-words{ font-size:12px; color:var(--gold-deep); margin-top:2px; line-height:1.4; }
.calc-inline-words:empty{ display:none; }
.calc-error{ color:var(--pdf); font-size:12.5px; font-weight:600; margin:10px 0 0; }
.calc-error:empty{ display:none; }
/* Fixed-height results area: the hint reserves the space, so revealing the
   figures never reflows the hero or the page. */
.calc-results{ margin-top:18px; border-top:1px solid var(--line); min-height:300px; }
.calc-hint{ font-size:12.5px; color:var(--muted); text-align:center; margin:0; padding:140px 16px; line-height:1.5; }
.calc-figures[hidden]{ display:none; }
.calc-figure{ padding:12px 0; border-bottom:1px solid var(--line); }
.calc-figure-top{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; }
.calc-figure-top span{ font-size:12.5px; color:var(--muted); }
.calc-figure strong{ font-size:18px; font-weight:800; color:var(--brand-800); letter-spacing:-0.01em; white-space:nowrap; }
.calc-figure-words{ display:block; margin-top:4px; font-size:12px; font-style:normal; color:var(--muted); line-height:1.4; }
.calc-note{ font-size:11.5px; color:var(--muted); margin:12px 0 0; }
/* On the Pensions Benefits page the calculator is a standalone panel. */
.section-page .calc{ max-width:560px; margin:8px 0 36px; }
@media (max-width:560px){ .calc-grid{ grid-template-columns:1fr; } }

/* Hero copy column (kept from reading bare next to the panel). */
.hero-lead{
  font-size:17px; line-height:1.55; color:rgba(255,255,255,.92);
  margin:16px 0 0; max-width:46ch; text-shadow:0 1px 8px rgba(0,0,0,.35);
}
.hero-cta{ display:flex; flex-wrap:wrap; gap:12px; margin-top:26px; }
.hero-cta .btn-primary{ background:var(--gold); border-color:var(--gold); color:var(--brand-950); }
.hero-cta .btn-primary:hover{ background:var(--gold-light); border-color:var(--gold-light); }
.btn-ghost{
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(255,255,255,.08); border:1px solid rgba(255,255,255,.55); color:#fff;
  border-radius:var(--radius); padding:11px 20px; font-family:var(--font-sans);
  font-size:14px; font-weight:700; text-decoration:none;
}
.btn-ghost:hover{ background:rgba(255,255,255,.16); border-color:#fff; }

/* Small app-download QR codes in the hero. First-party SVGs, dark on white. */
.hero-apps{ margin-top:26px; }
.hero-apps-label{
  display:block; font-size:11px; font-weight:800; letter-spacing:.1em; text-transform:uppercase;
  color:var(--gold-light); margin:0 0 10px;
}
.hero-qrs{ display:flex; gap:36px; }
.hero-qr{ display:flex; flex-direction:column; align-items:center; gap:6px; text-decoration:none; }
.hero-qr img{
  width:96px; height:96px; display:block; background:#fff; padding:7px;
  border-radius:var(--radius); box-shadow:0 4px 16px rgba(0,0,0,.28); transition:box-shadow .15s ease;
}
.hero-qr:hover img{ box-shadow:0 6px 22px rgba(0,0,0,.4); }
.hero-qr span{ font-size:11px; font-weight:700; color:rgba(255,255,255,.9); }
.hero-apps-head{ display:flex; align-items:center; gap:14px; margin:0 0 12px; }
.hero-apps-head .hero-apps-label{ margin:0; }
.hero-share{
  display:inline-flex; align-items:center; gap:6px; cursor:pointer;
  padding:5px 12px; background:transparent; color:#fff; text-decoration:none;
  border:1px solid rgba(255,255,255,.4); border-radius:var(--radius);
  font-family:var(--font-sans); font-size:12px; font-weight:700;
  transition:border-color .15s ease, color .15s ease;
}
.hero-share:hover, .hero-share.is-copied{ border-color:var(--gold); color:var(--gold-light); }
.hero-share .icon{ width:14px; height:14px; }

/* Emblem slot (logo shown until a hero video poster exists) */
.hero-emblem{ display:grid; place-items:center; min-height:180px; }
.hero-emblem img{ max-width:min(60%, 280px); height:auto; filter:drop-shadow(0 6px 18px rgba(36,25,16,.18)); }

/* Institutional seal overlay for the video slot */
.seal{
  position:absolute; top:-22px; right:-22px; width:88px; height:88px; border-radius:50%;
  background:var(--surface); border:2px solid var(--brand-800);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  box-shadow:var(--shadow); z-index:2;
}
.seal::before{ content:""; position:absolute; inset:6px; border:1px dashed var(--gold); border-radius:50%; }
.seal .est{ font-size:9px; letter-spacing:.08em; color:var(--gold-deep); font-weight:700; }
.seal .yr{ font-weight:800; font-size:15px; color:var(--brand-800); }
.seal .cap{ font-size:7.5px; letter-spacing:.08em; color:var(--muted); font-weight:600; }

/* Hero video slot (used once a poster exists) */
.video-slot{
  position:relative; aspect-ratio:16/9; border-radius:var(--radius); overflow:visible;
  background:var(--paper); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow);
}
.video-poster{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; border-radius:var(--radius); }
.play-btn{
  position:relative; z-index:1; width:58px; height:58px; border-radius:50%;
  background:var(--gold); border:none; cursor:pointer;
  display:flex; align-items:center; justify-content:center; box-shadow:var(--shadow);
}
.play-btn .icon{ width:20px; height:20px; color:var(--brand-950); margin-left:3px; }
.video-caption{ position:absolute; bottom:10px; left:14px; font-size:11.5px; color:#fff; text-shadow:0 1px 3px rgba(0,0,0,.5); }

/* ---- Bands ---- */
.band{ padding:56px 0; }
.band-alt{ background:var(--paper); border-top:1px solid var(--line); border-bottom:1px solid var(--line); }
.band-head{ display:flex; align-items:baseline; justify-content:space-between; gap:16px; margin-bottom:22px; }
.band-head .eyebrow{ margin:0; }
.band-head a{ font-size:13.5px; font-weight:700; color:var(--brand-700); text-decoration:none; }
.band-head a:hover{ color:var(--gold-deep); text-decoration:underline; }

/* ---- Grids ---- */
.card-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.card-grid-4{ display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }

/* ---- Chips ---- */
.chip{
  display:inline-block; font-size:10.5px; font-weight:700; text-transform:uppercase;
  letter-spacing:.08em; color:var(--brand-800); background:var(--brand-100);
  border:1px solid var(--brand-200); border-radius:4px; padding:3px 8px;
}

/* ---- News cards (the one band that uses cards) ---- */
.news-card{
  display:flex; flex-direction:column; gap:9px; background:var(--surface);
  border:1px solid var(--line); border-radius:var(--radius); padding:20px 22px;
  text-decoration:none; color:var(--ink); box-shadow:var(--shadow);
  transition:transform .12s ease, border-color .12s ease;
}
.news-card:hover{ transform:translateY(-2px); border-color:var(--gold); }
.news-card .meta{ display:flex; align-items:center; gap:10px; font-size:12px; color:var(--muted); }
.news-card h3{ font-size:16.5px; font-weight:800; letter-spacing:-0.01em; margin:0; color:var(--brand-800); }
.news-card p{ font-size:13.5px; color:var(--muted); margin:0; }

/* ---- Publications: document rows that read as files ---- */
.doc-card{
  display:flex; align-items:flex-start; gap:16px; background:var(--surface);
  border:1px solid var(--line); border-radius:var(--radius); padding:16px 18px;
  text-decoration:none; color:var(--ink); box-shadow:var(--shadow);
}
.doc-card:hover{ border-color:var(--gold); }
.pdf-badge{
  flex:none; display:inline-flex; align-items:center; justify-content:center;
  width:46px; height:56px; background:var(--pdf); color:#fff;
  font-size:11px; font-weight:800; letter-spacing:.04em;
  border-radius:0; /* dog-eared corner */
  position:relative;
}
.pdf-badge::before{
  content:""; position:absolute; top:0; right:0; width:0; height:0;
  border-style:solid; border-width:0 12px 12px 0;
  border-color:transparent var(--surface) rgba(0,0,0,.25) transparent;
}
.doc-body{ display:flex; flex-direction:column; gap:5px; min-width:0; }
.doc-card .meta{ display:flex; align-items:center; gap:10px; font-size:12px; color:var(--muted); }
.doc-card h3{ font-size:15.5px; font-weight:800; letter-spacing:-0.01em; margin:0; color:var(--brand-800); }
.doc-card p{ font-size:13px; color:var(--muted); margin:0; }
.doc-card .download{ font-size:13px; font-weight:700; color:var(--brand-700); margin-top:2px; }
.doc-card:hover .download{ color:var(--gold-deep); text-decoration:underline; }

/* Detail-page meta row */
article .meta{ display:inline-flex; align-items:center; gap:10px; }

/* ---- Search results page ---- */
.search-page{ padding:48px 0; }
.search-page h1{ font-size:30px; font-weight:800; letter-spacing:-0.02em; color:var(--brand-900); margin:0 0 20px; }
.search-page .search-controls input{ border:1px solid var(--line); }
.search-page .search-form label{ color:var(--muted); }
.search-count{ font-size:13px; color:var(--muted); margin:20px 0 12px; }
.search-results{ list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; }
.search-result{
  display:block; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  padding:16px 20px; text-decoration:none; color:var(--ink); box-shadow:var(--shadow);
}
.search-result:hover{ border-color:var(--gold); }
.search-result h2{ font-size:16.5px; font-weight:800; margin:0 0 4px; color:var(--brand-800); }
.search-result p{ font-size:13.5px; color:var(--muted); margin:0; }
.pagination{ display:flex; gap:16px; align-items:center; margin-top:20px; font-size:14px; }
.pagination a{ color:var(--brand-700); font-weight:700; }

/* ---- Responsive ---- */
@media (max-width:1023px){
  .card-grid{ grid-template-columns:repeat(2,1fr); }
  .hero{ grid-template-columns:1fr; gap:28px; }
}
@media (max-width:768px){
  .wrap{ padding:0 16px; }
  .utility-bar{ display:none; }
  header{ min-height:0; padding-top:12px; padding-bottom:12px; position:relative; }
  .nav-burger{ display:inline-flex; }
  /* The primary links collapse behind the burger; the ePSPF button stays. */
  nav#primary-nav{
    position:absolute; top:100%; left:0; right:0; z-index:19;
    flex-direction:column; align-items:stretch; gap:0; flex-wrap:nowrap;
    background:var(--surface); border-bottom:1px solid var(--line); box-shadow:var(--shadow);
    max-height:0; overflow:hidden; visibility:hidden;
  }
  header.nav-open nav#primary-nav{ max-height:calc(100vh - 72px); overflow-y:auto; visibility:visible; }
  nav#primary-nav > a, nav#primary-nav .nav-dd > summary{
    padding:14px 20px; border-bottom:1px solid var(--line); font-size:15px;
  }
  nav#primary-nav .nav-dd > summary{ justify-content:space-between; }
  nav#primary-nav .nav-dd > ul{
    position:static; box-shadow:none; border:none; border-radius:0; min-width:0; background:var(--brand-50);
  }
  nav#primary-nav .nav-dd > ul a{ padding:12px 20px 12px 36px; }
  nav#primary-nav a::after{ display:none; }
  /* Claiming a benefit: keep the numbered step titles, drop the descriptions. */
  .claim-steps p{ display:none; }
  .card-grid, .card-grid-4{ grid-template-columns:1fr; }
  .band, section{ padding:40px 0; }
  .hero{ padding:36px 0 24px; }
  .seal{ width:64px; height:64px; top:-14px; right:-14px; }
}

/* ---- Buttons ---- */
.btn-primary{
  display:inline-block; background:var(--brand-700); color:#fff; border:2px solid var(--brand-700);
  border-radius:var(--radius); padding:11px 22px; font-size:14.5px; font-weight:700;
  font-family:var(--font-sans); cursor:pointer; text-decoration:none;
}
.btn-primary:hover{ background:var(--brand-800); border-color:var(--brand-800); }
.btn-secondary{
  display:inline-block; background:transparent; color:var(--brand-800); border:2px solid var(--brand-800);
  border-radius:var(--radius); padding:11px 22px; font-size:14.5px; font-weight:700;
  font-family:var(--font-sans); cursor:pointer; text-decoration:none;
}
.btn-secondary:hover{ background:var(--brand-100); }

/* ---- Hero banner: full-bleed photography behind the navbar ---- */
.hero-banner{ position:relative; padding:0; overflow:hidden; background:var(--brand-950); }
.hero-slides{ position:absolute; inset:0; }
.hero-slides .slide{
  position:absolute; inset:0; background-size:cover; background-position:center;
}
/* Slide 1 is a static base layer so the hero can never be blank; slide 2
   crossfades over it. */
.hero-slides .slide-1{ background-image:url("/static/img/hero-1.jpg"); }
.hero-slides .slide-2{ background-image:url("/static/img/hero-2.jpg"); opacity:0; animation:heroFade 16s ease-in-out infinite; }
@keyframes heroFade{ 0%,40%{opacity:0;} 50%,90%{opacity:1;} 100%{opacity:0;} }
@media (prefers-reduced-motion:reduce){
  .hero-slides .slide{ animation:none; }
  .hero-slides .slide-2{ display:none; }
}
/* Brand scrim so white text and the panel always read over any photo. */
.hero-slides::after{
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(180deg, rgba(40,26,18,.88) 0, rgba(40,26,18,.55) 150px, rgba(40,26,18,0) 320px),
    linear-gradient(100deg, rgba(40,26,18,.92) 0%, rgba(40,26,18,.72) 45%, rgba(40,26,18,.45) 100%);
}
.hero-inner{
  position:relative; z-index:1; display:grid; grid-template-columns:1.25fr 1fr;
  gap:40px; align-items:center; padding-top:190px; padding-bottom:72px; min-height:520px;
}
.hero-tag{
  font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.12em;
  color:var(--gold-light); margin:0 0 12px;
}
.hero-inner h1{
  font-size:clamp(32px, 4.2vw, 50px); line-height:1.12; font-weight:800; letter-spacing:-0.02em;
  margin:0; color:#fff; text-shadow:0 2px 12px rgba(0,0,0,.35);
}

/* ---- Homepage: chrome floats over the hero photo ---- */
body.home .utility-bar{ position:absolute; top:0; left:0; right:0; z-index:22; background:rgba(40,26,18,.55); }
body.home header{
  position:absolute; top:34px; left:0; right:0; z-index:21;
  background:transparent; border-bottom:1px solid rgba(255,255,255,.22); box-shadow:none;
}
body.home .logo-text{ color:#fff; }
body.home nav a{ color:rgba(255,255,255,.92); }
body.home nav a:hover{ color:var(--gold-light); }
body.home nav a.active{ color:#fff; border-bottom-color:var(--gold); }
body.home .epspf-toggle{ background:var(--gold); color:var(--brand-950); }
body.home .epspf-toggle:hover{ background:var(--gold-light); }
/* Dropdown labels are top-level nav items, so they track the white nav-link
   colour over the hero. */
body.home nav .nav-dd > summary{ color:rgba(255,255,255,.92); }
body.home nav .nav-dd > summary:hover{ color:var(--gold-light); }
/* Dropdown flyouts are white surfaces, so their links stay dark even while the
   homepage floats white top-level nav links over the hero photo. */
body.home nav .nav-dd > ul a{ color:var(--ink); }
body.home nav .nav-dd > ul a:hover{ color:var(--brand-800); }
body.home nav .epspf-panel a{ color:var(--ink); }
body.home nav .epspf-panel a:hover{ color:var(--brand-800); }

/* ---- Online Services dropdown refinements ---- */
.epspf-panel{ width:300px; }
.epspf-panel-title{
  margin:0; padding:12px 16px 10px; font-size:11px; font-weight:800; text-transform:uppercase;
  letter-spacing:.1em; color:var(--muted); border-bottom:1px solid var(--line);
  background:var(--brand-50);
}
.epspf-panel a{ border-left:3px solid transparent; }
.epspf-panel a:hover{ border-left-color:var(--gold); }
.epspf-toggle .icon{ transition:transform .15s ease; }
.epspf.open .epspf-toggle .icon{ transform:rotate(180deg); }

/* ---- Utility bar icons ---- */
.utility-bar .icon{ width:14px; height:14px; margin-right:4px; color:var(--gold-light); }
.utility-bar span, .utility-bar a{ display:inline-flex; align-items:center; }

@media (max-width:1023px){
  .hero-inner{ grid-template-columns:1fr; padding-top:170px; min-height:0; }
}
@media (max-width:768px){
  /* Solid chrome on mobile: photo hero starts below the header. Relative (not
     static) so the collapsed nav can anchor to it. */
  body.home header{ position:relative; background:var(--surface); border-bottom:1px solid var(--line); }
  body.home .logo-text{ color:var(--brand-800); }
  body.home nav a{ color:var(--ink); }
  body.home nav .nav-dd > summary{ color:var(--ink); }
  .hero-inner{ padding-top:48px; padding-bottom:48px; }
}

/* Search button and shortcut icons */
.btn-primary .icon{ width:15px; height:15px; margin-right:6px; margin-top:-2px; }
.search-shortcuts .icon{ width:12px; height:12px; margin-left:4px; }
.search-shortcuts a{ display:inline-flex; align-items:center; }

/* The dropdown panel is inside <nav>, so the homepage's white nav-link colour
   must not reach into it — the panel is a white surface everywhere. */
body.home .epspf-panel a{ color:var(--ink); }
body.home .epspf-panel a:hover{ color:var(--brand-800); }
.epspf-panel a::after{ content:none; }



/* ---- About the Fund: the Charter Plate ------------------------------------
   A founding statement set as an official instrument: a single gold-hairline
   plate on deep brown, with the crest struck once behind the text as a faint
   seal. One symmetric axis; no eyebrow, no pull-quote, no sidebar. --------- */
.about-charter{
  background:var(--paper); color:var(--ink); padding:76px 0;
  border-top:1px solid var(--line); border-bottom:1px solid var(--line);
}
.about-charter .wrap{ text-align:center; }

.charter{
  position:relative; max-width:720px; margin:0 auto; overflow:hidden;
  border:1px solid var(--gold); padding:56px 56px 0;
}
/* The crest as a faint intaglio seal behind the statement. Decorative. */
.charter-seal{
  position:absolute; left:50%; top:52%; transform:translate(-50%,-50%);
  width:360px; height:auto; opacity:.05; pointer-events:none; user-select:none;
}
.charter-body{ position:relative; }            /* lifts the text above the seal */
.charter-crest{ display:block; width:60px; height:auto; margin:0 auto 24px; }
.charter h2{
  margin:0 auto; max-width:16ch;
  font-size:clamp(24px, 3vw, 34px); font-weight:800; letter-spacing:-0.02em;
  line-height:1.15; color:var(--brand-900);
}
.charter-lede{
  margin:20px auto 0; max-width:54ch;
  font-size:16px; line-height:1.7; color:var(--brand-800);
}

/* Founding record: a formal footer strip inside the plate. */
.charter-facts{
  display:flex; flex-wrap:wrap; justify-content:center; align-items:baseline;
  gap:8px 34px; margin:34px 0 0; padding:22px 0 44px;
  border-top:1px solid var(--line);
}
.charter-facts > div{ position:relative; }
.charter-facts > div + div::before{
  content:"\25C6"; position:absolute; left:-19px; top:50%; transform:translateY(-50%);
  color:var(--gold); font-size:8px;
}
.charter-facts dt{
  margin-bottom:6px; font-size:10.5px; font-weight:800; letter-spacing:.14em;
  text-transform:uppercase; color:var(--gold-deep);
}
.charter-facts dd{
  margin:0; font-size:14px; font-weight:700; letter-spacing:.01em; color:var(--brand-900);
}

.charter-more{
  display:inline-flex; align-items:center; gap:6px; margin-top:30px;
  font-size:14px; font-weight:700; color:var(--brand-700); text-decoration:none;
}
.charter-more:hover{ color:var(--gold-deep); text-decoration:underline; text-underline-offset:3px; }
.charter-more .icon{ width:15px; height:15px; }

@media (max-width:640px){
  .about-charter{ padding:52px 0; }
  .charter{ padding:40px 22px 0; }
  .charter-seal{ width:280px; }
  .charter-facts{ flex-direction:column; gap:20px; padding-bottom:34px; }
  .charter-facts > div + div::before{ display:none; }
}

/* ---- ePSPF gateway band (pre-footer, full bleed) ---- */
.gateway{
  background:linear-gradient(120deg, var(--brand-950), var(--brand-800));
  border-top:4px solid var(--gold); padding:44px 0; margin-top:56px;
}
.gateway-inner{ display:flex; align-items:center; justify-content:space-between; gap:32px; }
.gateway-eyebrow{
  /* No uppercase transform: "ePSPF" is a brand mark and keeps its casing. */
  font-size:12px; font-weight:800; letter-spacing:.12em;
  color:var(--gold-light); margin:0 0 8px;
}
.gateway h2{ font-size:24px; font-weight:800; letter-spacing:-0.01em; color:#fff; margin:0 0 6px; }
.gateway-sub{ font-size:13.5px; color:var(--brand-200); margin:0; }
.banner-btn{
  flex:none; background:var(--gold); color:var(--brand-950); border-radius:var(--radius);
  padding:13px 26px; font-size:14.5px; font-weight:800; text-decoration:none;
}
.banner-btn:hover{ background:var(--gold-light); }
.banner-btn-disabled{
  background:rgba(255,255,255,.10); color:var(--brand-300);
  border:1px solid rgba(255,255,255,.20); cursor:not-allowed; pointer-events:none;
}

/* ---- Online-services video (opens in an overlay; loads only on play) ---- */
.video-inner{ display:grid; grid-template-columns:1fr 1.15fr; gap:44px; align-items:center; }
.video-copy .eyebrow{ margin:0 0 10px; }
.video-copy h2{ font-size:clamp(24px, 3vw, 34px); font-weight:800; letter-spacing:-0.02em; color:var(--brand-900); margin:0 0 12px; }
.video-copy p{ font-size:16px; line-height:1.6; color:var(--muted); max-width:44ch; margin:0; }
.video-facade{
  position:relative; width:100%; aspect-ratio:16 / 9; padding:0; cursor:pointer;
  border:1px solid var(--line); border-radius:var(--radius); overflow:hidden;
  background:#2a1c12 center / cover no-repeat url("/static/img/hero-1.jpg");
  display:flex; align-items:center; justify-content:center;
  transition:transform .25s ease, box-shadow .25s ease;
}
.video-facade:hover{ transform:translateY(-2px); box-shadow:0 14px 34px rgba(36,25,16,.32); }
.video-facade-scrim{
  position:absolute; inset:0; transition:opacity .25s ease;
  background:linear-gradient(180deg, rgba(40,26,18,.20), rgba(40,26,18,.55));
}
.video-facade:hover .video-facade-scrim{ opacity:.7; }
.video-play{
  position:relative; z-index:1; width:70px; height:70px; border-radius:50%;
  background:var(--gold); color:var(--brand-950);
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 22px rgba(0,0,0,.35); transition:transform .2s ease, background .2s ease;
}
.video-facade:hover .video-play{ transform:scale(1.08); background:var(--gold-light); }
.video-play .icon{ width:28px; height:28px; margin-left:4px; }
.video-play-ring{
  position:absolute; inset:0; border-radius:50%; border:2px solid var(--gold); pointer-events:none;
  animation:videoPulse 2.4s ease-out infinite;
}
@keyframes videoPulse{ 0%{ transform:scale(1); opacity:.7; } 70%{ transform:scale(1.6); opacity:0; } 100%{ opacity:0; } }
.video-facade-meta{
  position:absolute; z-index:1; left:16px; right:16px; bottom:14px;
  display:flex; align-items:center; justify-content:space-between;
  color:#fff; font-size:13px; font-weight:700; text-shadow:0 1px 6px rgba(0,0,0,.5);
}
.video-facade-time{ background:rgba(0,0,0,.5); padding:3px 9px; border-radius:var(--radius); font-variant-numeric:tabular-nums; }
/* The overlay the clip plays in */
.video-modal{
  position:fixed; inset:0; z-index:60; display:flex; align-items:center; justify-content:center;
  padding:24px; background:rgba(20,12,6,.86); opacity:0; transition:opacity .25s ease;
}
.video-modal[hidden]{ display:none; }
.video-modal.open{ opacity:1; }
.video-modal-inner{ position:relative; width:min(960px, 100%); transform:scale(.96); transition:transform .25s ease; }
.video-modal.open .video-modal-inner{ transform:scale(1); }
.video-modal-frame video{
  width:100%; aspect-ratio:16 / 9; display:block; background:#000;
  border-radius:var(--radius); box-shadow:0 24px 60px rgba(0,0,0,.5);
}
.video-modal-close{
  position:absolute; top:-46px; right:-4px; width:40px; height:40px;
  background:transparent; border:none; color:#fff; font-size:32px; line-height:1;
  cursor:pointer; opacity:.85; transition:opacity .15s ease;
}
.video-modal-close:hover{ opacity:1; }
@media (prefers-reduced-motion:reduce){
  .video-play-ring{ animation:none; }
  .video-facade, .video-facade-scrim, .video-play, .video-modal, .video-modal-inner{ transition:none; }
}

@media (max-width:768px){
  .gateway-inner{ flex-direction:column; align-items:flex-start; }
  .video-inner{ grid-template-columns:1fr; gap:24px; }
}

/* ---- Footer (standard four column + bottom bar) ---- */
footer{ background:var(--brand-950); color:var(--brand-200); }
.footer-cols{
  display:grid; grid-template-columns:repeat(4,1fr); gap:36px;
  padding-top:48px; padding-bottom:40px; align-items:start;
}
.footer-col{
  /* Two of these columns are <nav> elements; neutralise the header nav rule's
     centring and gap so every column aligns and spaces identically. */
  display:flex; flex-direction:column; align-items:flex-start; gap:0;
  font-style:normal; text-align:left;
}
.footer-col h4{
  font-size:11.5px; font-weight:800; text-transform:uppercase; letter-spacing:.09em;
  color:#fff; margin:0 0 14px;
}
.footer-col a, .footer-col > span{
  font-size:13.5px; font-weight:400; line-height:1.6; color:var(--brand-200);
  text-decoration:none; padding:3px 0;
}
.footer-col a:hover{ color:var(--gold-light); text-decoration:underline; }
.footer-col a::after{ content:none; }
.footer-col p{ font-size:13px; line-height:1.65; color:var(--brand-200); margin:0; }

.footer-logo{
  display:inline-flex; align-items:center; gap:10px; text-decoration:none; margin-bottom:14px;
}
.footer-logo img{ display:block; }
.footer-logo span{ font-size:13.5px; line-height:1.3; font-weight:800; color:#fff; }

.footer-bottom{ background:rgba(0,0,0,.28); border-top:1px solid rgba(255,255,255,.10); }
.footer-bottom-inner{
  display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap;
  padding-top:14px; padding-bottom:14px; font-size:12.5px; color:var(--brand-300);
}
.footer-social{ display:inline-flex; gap:18px; }
.footer-social a{ color:var(--brand-200); text-decoration:none; }
.footer-social a:hover{ color:var(--gold-light); text-decoration:underline; }

@media (max-width:1023px){
  .footer-cols{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:768px){
  .footer-cols{ grid-template-columns:1fr; gap:28px; }
}

/* Footer link icons */
.footer-col a, .footer-contact > span{ display:inline-flex; align-items:center; gap:8px; }
.footer-col .icon{ width:13px; height:13px; color:var(--gold); }
.footer-address{ align-items:flex-start !important; }
.footer-address .icon{ margin-top:4px; }

/* ---- Publications band: featured document + register rows ---- */
.pubs-grid{ display:grid; grid-template-columns:1.15fr 1fr; gap:40px; align-items:start; }
.pub-featured{
  display:flex; gap:26px; text-decoration:none; color:var(--ink);
  background:var(--surface); border:1px solid var(--line); padding:24px;
}
.pub-featured:hover{ border-color:var(--gold); }
.pub-plate{
  flex:none; width:150px; aspect-ratio:3/4; background:var(--pdf); color:#fff;
  display:flex; flex-direction:column; justify-content:space-between; padding:14px;
  position:relative; border-radius:0;
}
.pub-plate::before{
  content:""; position:absolute; top:0; right:0; width:0; height:0;
  border-style:solid; border-width:0 22px 22px 0;
  border-color:transparent var(--surface) rgba(0,0,0,.25) transparent;
}
.pub-plate-ext{ font-size:12px; font-weight:800; letter-spacing:.06em; }
.pub-plate-title{ font-size:12.5px; font-weight:700; line-height:1.4; opacity:.92; }
.pub-cover{ flex:none; width:150px; height:auto; object-fit:cover; }
.pub-featured-body{ display:flex; flex-direction:column; gap:10px; min-width:0; }
.pub-featured-body .meta{ display:flex; align-items:center; gap:10px; font-size:12px; color:var(--muted); }
.pub-featured-body h3{ font-size:20px; font-weight:800; letter-spacing:-0.01em; margin:0; color:var(--brand-900); }
.pub-featured-body p{ font-size:13.5px; line-height:1.6; color:var(--muted); margin:0; text-align:justify; }
.pub-download{ align-self:flex-start; display:inline-flex; align-items:center; gap:8px; margin-top:auto; }
.pub-download .icon{ width:15px; height:15px; }

.pub-rows{ display:flex; flex-direction:column; }
.pub-row{
  display:flex; align-items:center; gap:14px; padding:14px 4px;
  text-decoration:none; color:var(--ink); border-bottom:1px solid var(--line);
}
.pub-row:first-child{ padding-top:4px; }
.pub-row .pdf-badge{ width:36px; height:44px; font-size:9.5px; }
.pub-row-body{ display:flex; flex-direction:column; gap:4px; min-width:0; }
.pub-row-title{ font-size:15px; font-weight:700; color:var(--brand-900); }
.pub-row:hover .pub-row-title{ color:var(--brand-600); text-decoration:underline; }
.pub-row .meta{ display:flex; align-items:center; gap:10px; font-size:11.5px; color:var(--muted); }
.pub-row-action{ margin-left:auto; color:var(--brand-700); }
.pub-row-action .icon{ width:17px; height:17px; }
.pub-row:hover .pub-row-action{ color:var(--gold-deep); }

@media (max-width:1023px){
  .pubs-grid{ grid-template-columns:1fr; gap:24px; }
}
@media (max-width:768px){
  .pub-featured{ flex-direction:column; }
}

/* ---- Member services: hairline rows (doors, not boxes) ---- */
.services-list{ border-top:1px solid var(--line); }
.service-row{
  display:flex; align-items:center; gap:20px;
  padding:20px 4px; border-bottom:1px solid var(--line);
  text-decoration:none; color:var(--ink);
  transition:padding-left .14s ease, background .14s ease;
}
.service-row:hover{ padding-left:14px; background:var(--surface); }
.service-row > .icon{ width:24px; height:24px; color:var(--gold-deep); flex:none; }
.service-row-text{ display:flex; flex-direction:column; gap:2px; flex:1; min-width:0; }
.service-row-title{ font-size:18px; font-weight:800; letter-spacing:-0.01em; color:var(--brand-900); }
.service-row-desc{ font-size:14px; line-height:1.5; color:var(--muted); }
.service-row-go{
  display:inline-flex; align-items:center; gap:6px; flex:none;
  font-size:12.5px; font-weight:700; color:var(--brand-300); white-space:nowrap;
  transition:color .14s ease;
}
.service-row-go .icon{ width:14px; height:14px; transition:transform .14s ease; }
.service-row:hover .service-row-go{ color:var(--gold-deep); }
.service-row:hover .service-row-go .icon{ transform:translateX(4px); }

/* ---- Claiming a benefit: a numbered, top-ruled sequence ---- */
.claim-steps{
  list-style:none; counter-reset:step; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(4,1fr); gap:28px;
}
/* Responsive collapse placed AFTER the base rule so it is not defeated by source
   order (equal specificity): tablet halves the strip, phones stack it. */
@media (max-width:1023px){ .claim-steps{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:768px){ .claim-steps{ grid-template-columns:1fr; gap:0; } }
.claim-steps li{ counter-increment:step; padding-top:16px; border-top:2px solid var(--brand-900); }
.claim-steps li::before{
  content:"0" counter(step); display:block; margin-bottom:12px;
  font-size:34px; font-weight:800; letter-spacing:-0.03em; line-height:1; color:var(--gold-deep);
}
.claim-steps h3{ font-size:16px; font-weight:800; letter-spacing:-0.01em; margin:0 0 6px; color:var(--brand-900); }
.claim-steps p{ font-size:13px; line-height:1.6; color:var(--muted); margin:0; }

@media (max-width:768px){
  /* Tighten the service rows: keep the arrow, drop the label. */
  .service-row-go-label{ display:none; }
}

/* ---- Primary nav: fit ten items on one row ---- */
header{ gap:24px; }
.logo{ flex:none; }
.logo-text{ white-space:nowrap; }
header > nav{ gap:16px; flex-wrap:nowrap; }
header nav a, header nav summary{ font-size:13px; }

/* ---- Nav dropdowns (details/summary, no JS needed) ---- */
.nav-dd{ position:relative; }
.nav-dd summary{
  list-style:none; cursor:pointer; display:inline-flex; align-items:center; gap:4px;
  font-weight:600; color:var(--ink); padding:6px 0; user-select:none;
}
.nav-dd summary::-webkit-details-marker{ display:none; }
.nav-dd summary .icon{ width:13px; height:13px; transition:transform .15s ease; }
.nav-dd[open] summary .icon{ transform:rotate(180deg); }
.nav-dd summary:hover{ color:var(--brand-600); }
.nav-dd ul{
  list-style:none; margin:0; padding:0;
  position:absolute; top:calc(100% + 8px); left:0; min-width:230px; z-index:30;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--radius);
  box-shadow:var(--shadow); overflow:hidden;
}
.nav-dd ul a{
  display:flex; align-items:center; justify-content:space-between; gap:8px;
  padding:11px 16px; font-size:13.5px; font-weight:500; color:var(--ink);
  text-decoration:none; border-bottom:1px solid var(--line); border-left:3px solid transparent;
}
.nav-dd ul li:last-child a{ border-bottom:none; }
.nav-dd ul a:hover{ background:var(--brand-50); color:var(--brand-800); border-left-color:var(--gold); }
.nav-dd ul a::after{ content:none; }
.nav-dd ul .icon{ width:13px; height:13px; color:var(--muted); }

/* Homepage: summaries go white with the links; panels stay a white surface */
body.home .nav-dd summary{ color:rgba(255,255,255,.92); }
body.home .nav-dd summary:hover{ color:var(--gold-light); }
body.home .nav-dd ul a{ color:var(--ink); }
body.home .nav-dd ul a:hover{ color:var(--brand-800); }

@media (max-width:1200px){
  header > nav{ flex-wrap:wrap; }
}

/* ---- Content pages (About, Benefits, HOS, Micro-Finance, Integrity, Mobile) ---- */
.section-page{ max-width:900px; padding:56px 0 72px; }
.section-page h1{
  font-size:clamp(28px, 3.4vw, 40px); font-weight:800; letter-spacing:-0.02em;
  color:var(--brand-900); margin:0 0 16px; padding-bottom:18px;
  border-bottom:2px solid var(--brand-900);
}
.section-page .page-intro{
  font-size:17.5px; line-height:1.6; color:var(--muted); margin:0 0 32px;
  text-align:left; /* short measure: justification tears rivers */
}

/* Error pages (404, 403 use the branded chrome; 500, 400 are standalone). */
.error-page{ text-align:center; padding:100px 0 96px; }
.error-page .error-code{
  font-size:14px; font-weight:800; letter-spacing:.14em; text-transform:uppercase;
  color:var(--gold-deep); margin:0 0 12px;
}
.error-page h1{
  font-size:clamp(28px, 4vw, 42px); font-weight:800; letter-spacing:-0.02em;
  color:var(--brand-900); margin:0 0 14px;
}
.error-lead{ font-size:17px; line-height:1.6; color:var(--muted); max-width:52ch; margin:0 auto 28px; }
.error-actions{ margin:0 0 30px; }
.error-links{ display:flex; flex-wrap:wrap; justify-content:center; gap:8px; }
.error-links a{
  font-size:13px; font-weight:700; color:var(--brand-700); text-decoration:none;
  border:1px solid var(--brand-200); border-radius:var(--radius); padding:8px 16px;
}
.error-links a:hover{ border-color:var(--gold); color:var(--gold-deep); }
.section-page .block-heading{
  font-size:22px; font-weight:800; letter-spacing:-0.01em; color:var(--brand-900);
  margin:38px 0 12px;
}
.section-page h3.block-heading{ font-size:18px; margin-top:28px; }
.section-page p{ line-height:1.7; text-align:justify; }
.section-page ol, .section-page ul{ line-height:1.7; padding-left:22px; }
.section-page li{ margin-bottom:6px; }
.section-page li::marker{ color:var(--gold-deep); font-weight:700; }

/* Accordions carry most of the benefit and how-to content */
.block-accordion{ margin:24px 0; }
.block-accordion h2{
  font-size:20px; font-weight:800; color:var(--brand-900); margin:0 0 14px;
}
.block-accordion details{
  background:var(--surface); border:1px solid var(--line); border-left:3px solid var(--gold);
  margin-bottom:8px;
}
.block-accordion summary{
  cursor:pointer; list-style:none; padding:15px 20px;
  font-size:15.5px; font-weight:700; color:var(--brand-800);
  display:flex; align-items:center; justify-content:space-between; gap:12px;
}
.block-accordion summary::-webkit-details-marker{ display:none; }
.block-accordion summary::after{
  content:"+"; font-size:19px; font-weight:700; color:var(--gold-deep); flex:none;
}
.block-accordion details[open] summary::after{ content:"\2212"; }
.block-accordion summary:hover{ background:var(--brand-50); }
.block-accordion .accordion-body{ padding:0 20px 18px; border-top:1px solid var(--line); }
.block-accordion .accordion-body p:first-child{ margin-top:14px; }

/* Tables (partner offices on Contact) */
.section-page table{
  width:100%; border-collapse:collapse; margin:18px 0; font-size:14px;
}
.section-page th, .section-page td{
  text-align:left; padding:10px 12px; border-bottom:1px solid var(--line);
}
.section-page th{
  background:var(--brand-900); color:#fff; font-weight:700; font-size:12.5px;
  text-transform:uppercase; letter-spacing:.06em;
}
.section-page tbody tr:nth-child(even){ background:var(--brand-50); }

/* ---- People pages (Board, Senior Management) ---- */
.people-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:24px; margin-top:12px; }
.person{
  background:var(--surface); border:1px solid var(--line); border-top:3px solid var(--gold);
  padding:22px; box-shadow:var(--shadow);
}
.person-portrait{ width:100%; height:auto; display:block; margin-bottom:14px; }
.person-portrait-blank{
  aspect-ratio:1; display:flex; align-items:center; justify-content:center;
  background:var(--brand-100); color:var(--brand-700);
  font-size:44px; font-weight:800;
}
.person h2{ font-size:17px; font-weight:800; color:var(--brand-900); margin:0 0 4px; }
.person-role{
  font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.07em;
  color:var(--gold-deep); margin:0 0 10px;
}
.person-bio p{ font-size:13.5px; line-height:1.6; color:var(--muted); margin:0; text-align:left; }

/* ---- Contact page ---- */
.contact-grid{ display:grid; grid-template-columns:1fr 1.3fr; gap:40px; margin:8px 0 40px; }
.contact-details h2, .contact-form-panel h2{
  font-size:19px; font-weight:800; color:var(--brand-900); margin:0 0 16px;
}
.contact-details address{ font-style:normal; display:flex; flex-direction:column; gap:10px; }
.contact-details a, .contact-details span{
  display:inline-flex; align-items:flex-start; gap:9px;
  font-size:14.5px; color:var(--ink); text-decoration:none;
}
.contact-details a:hover{ color:var(--brand-600); text-decoration:underline; }
.contact-details .icon{ width:16px; height:16px; color:var(--gold-deep); margin-top:3px; }
.contact-form-panel{
  background:var(--surface); border:1px solid var(--line); border-top:4px solid var(--gold);
  padding:26px 28px; box-shadow:var(--shadow);
}
.form-field{ display:flex; flex-direction:column; gap:6px; margin:0 0 16px; }
.form-field label{ font-size:13px; font-weight:700; color:var(--brand-800); }
.form-field input, .form-field textarea, .form-field select{
  border:1px solid var(--line); border-radius:var(--radius); padding:11px 13px;
  font-family:var(--font-sans); font-size:14.5px; background:#fff; color:var(--ink);
  width:100%;
}
.form-field textarea{ min-height:130px; resize:vertical; }
.form-help{ font-size:12px; color:var(--muted); }
.form-error{ font-size:12.5px; font-weight:700; color:var(--pdf); }
.contact-thanks{ padding:20px 0 40px; }
.contact-thanks p{ font-size:16px; }

@media (max-width:1023px){
  .people-grid{ grid-template-columns:repeat(2,1fr); }
  .contact-grid{ grid-template-columns:1fr; gap:28px; }
}
@media (max-width:768px){
  .people-grid{ grid-template-columns:1fr; }
  .section-page p{ text-align:left; }
  .section-page table{ display:block; overflow-x:auto; }
}

/* Service icons in the ePSPF gateway panel */
.epspf-panel a, .epspf-service-disabled{ gap:10px; justify-content:space-between; }
.epspf-panel a > span{ flex:1; }
.epspf-panel a .icon:first-child, .epspf-service-disabled .icon:first-child{
  width:17px; height:17px; color:var(--gold-deep); flex:none;
}
.epspf-panel a:hover .icon:first-child{ color:var(--brand-700); }

/* Service status indicator: a plain coloured icon, no filled badge. Green when
   the service is live, orange when it is in maintenance. */
.epspf-panel a > .icon:last-child,
.epspf-service-disabled > .icon:last-child{
  width:16px; height:16px; flex:none;
}
.epspf-panel a > .icon:last-child{ color:#1f9d55; }
.epspf-service-disabled > .icon:last-child{ color:#e07b18; }
.epspf-service-disabled > span{ flex:1; }

/* Dropdown items stay on one line; the panel widens to fit the longest label
   rather than wrapping a service name across two rows. */
.nav-dd ul{ min-width:max-content; }
.nav-dd ul a{ white-space:nowrap; }
.epspf-panel{ width:auto; min-width:max-content; max-width:none; }
.epspf-panel a, .epspf-service-disabled{ white-space:nowrap; }
.epspf-panel a > span, .epspf-service-disabled{ flex:1 0 auto; }

/* The app guide closes the panel as a quieter, related entry. */
.epspf-guide{ border-top:1px solid var(--line) !important; background:var(--brand-50); }

/* ============================================================
   Landing page, below the hero: conformance with the UI manual
   (docs/superpowers/specs/2026-07-29-ui-manual.md)
   ============================================================ */

/* §3 Typography — left aligned. Government design systems discourage
   justification: it opens uneven rivers of white space, which is a
   readability problem, most of all for dyslexic readers. */
.section-page p,
.pub-featured-body p,
.claim-steps p{ text-align:left; }

/* §3 Body text floor. Supporting copy sat at 13px; the audience for this site
   includes pensioners reading on phones, so nothing that is read as prose goes
   below 15px, and true UI labels stay legible too. */
.service-tile p,
.claim-steps p,
.news-card p,
.doc-card p{ font-size:15px; line-height:1.6; }
.news-card .meta,
.doc-card .meta{ font-size:13px; }
.service-more,
.doc-card .download,
.band-head a{ font-size:14px; }
.chip{ font-size:11.5px; }
.about-strip dd{ font-size:15.5px; }
.pub-row-title{ font-size:15.5px; }

/* §3 A heading binds to the text it introduces: more space above than below. */
.band-head{ margin-bottom:20px; }
.about-head{ margin-bottom:28px; }

/* §5 Cards keep a 24px minimum target with real spacing (WCAG 2.2). */
.service-more, .band-head a, .doc-card .download{ min-height:24px; display:inline-flex; align-items:center; }

/* Band headings keep the eyebrow look now that they are h2 elements. */
h2.eyebrow{
  font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.09em;
  color:var(--gold-deep); margin:0;
}

/* ---- Breadcrumbs (before <main>, per GOV.UK) ---- */
.breadcrumbs{ background:var(--surface); border-bottom:1px solid var(--line); }
.breadcrumbs ol{
  list-style:none; margin:0; padding:11px 0; display:flex; flex-wrap:wrap;
  align-items:center; gap:6px 10px; font-size:13.5px;
}
.breadcrumbs li{ display:inline-flex; align-items:center; gap:10px; }
.breadcrumbs li + li::before{ content:"/"; color:var(--line); }
.breadcrumbs a{
  color:var(--muted); text-decoration:none; min-height:24px; display:inline-flex; align-items:center;
}
.breadcrumbs a:hover{ color:var(--brand-700); text-decoration:underline; }

/* ---- Page header band: gives every inner page a sense of place ---- */
.page-header{
  background:var(--paper); border-bottom:1px solid var(--line);
  padding:40px 0 34px;
}
.page-header .eyebrow{ margin:0 0 10px; }
.page-header h1{
  font-size:clamp(28px, 3.4vw, 40px); font-weight:800; letter-spacing:-0.02em;
  color:var(--brand-900); margin:0; max-width:22ch;
}
.page-header .standfirst{
  font-size:17.5px; line-height:1.6; color:var(--muted);
  margin:14px 0 0; max-width:66ch; /* §3 measure */
}
.page-header-meta{ margin-bottom:10px; }

/* The section page no longer owns the title, so it starts with content. */
.section-page{ padding:44px 0 72px; }
.section-page > h1{ display:none; }
.detail-meta{
  display:flex; align-items:center; gap:12px; font-size:13.5px; color:var(--muted);
  margin:0 0 22px;
}

@media (max-width:768px){
  .page-header{ padding:28px 0 24px; }
  .page-header h1{ max-width:none; }
}

/* ---- Archive controls: filter chips, sort and count ---- */
.archive-controls{
  display:flex; align-items:center; justify-content:space-between; gap:20px;
  flex-wrap:wrap; padding-bottom:16px; border-bottom:1px solid var(--line);
}
.filter-chips{ display:flex; flex-wrap:wrap; gap:8px; }
.filter-chip{
  display:inline-flex; align-items:center; gap:7px; min-height:36px;
  padding:7px 14px; border:1px solid var(--line); background:var(--surface);
  font-size:14px; font-weight:600; color:var(--ink); text-decoration:none;
  border-radius:var(--radius);
}
.filter-chip:hover{ border-color:var(--gold); color:var(--brand-800); }
.filter-chip.is-active{
  background:var(--brand-800); border-color:var(--brand-800); color:#fff;
}
.filter-count{
  font-size:12.5px; font-weight:700; color:var(--muted);
  background:var(--brand-50); border-radius:var(--radius); padding:1px 7px;
}
.filter-chip.is-active .filter-count{ background:rgba(255,255,255,.18); color:#fff; }

.archive-sort{ display:inline-flex; align-items:center; gap:12px; font-size:14px; }
.archive-sort-label{ color:var(--muted); font-weight:700; }
.sort-link{
  color:var(--brand-700); text-decoration:none; font-weight:600;
  min-height:24px; display:inline-flex; align-items:center;
  border-bottom:2px solid transparent;
}
.sort-link:hover{ color:var(--gold-deep); }
.sort-link.is-active{ color:var(--brand-900); border-bottom-color:var(--gold); }

.archive-count{ font-size:14px; color:var(--muted); margin:14px 0 22px; }
.archive-empty{
  font-size:16px; color:var(--muted); background:var(--paper);
  border:1px solid var(--line); padding:22px 24px; margin:0;
}
.archive-empty a{ color:var(--brand-700); font-weight:700; }

/* The register keeps a top rule so the first row is bounded like the rest. */
.pub-register .pub-row:first-child{ border-top:1px solid var(--line); padding-top:14px; }

@media (max-width:768px){
  .archive-controls{ flex-direction:column; align-items:flex-start; gap:14px; }
}

/* ---- Mobile: keep the nav dropdowns and the ePSPF panel inside the viewport,
   and lighten the footer. Overrides the desktop max-content / nowrap sizing
   further up the file, which spilled off-screen and clipped on phones. ---- */
@media (max-width:768px){
  /* Primary-nav flyouts wrap instead of running off the edge. */
  .nav-dd ul{ min-width:0; }
  .nav-dd ul a{ white-space:normal; }

  /* ePSPF panel: anchor to the header's right edge (the toggle itself sits to
     the left of the burger) and cap the width so it can never overflow. */
  .header-actions{ position:relative; }
  .epspf{ position:static; }
  .epspf-panel{
    top:calc(100% + 10px); right:0; left:auto;
    width:min(320px, calc(100vw - 32px)); min-width:0; max-width:calc(100vw - 32px); z-index:25;
  }
  .epspf-panel a, .epspf-service-disabled{ white-space:normal; }

  /* Footer: on mobile, a tidy left-aligned stack — logo, then Contact us.
     Centring a multi-line address with leading icons reads as ragged, so the
     column keeps the base flex-start alignment. */
  .footer-cols{
    grid-template-columns:1fr;
    gap:20px; padding-top:32px; padding-bottom:26px;
  }
  .footer-about p{ display:none; }
  .footer-hide-mobile{ display:none !important; }
  .footer-bottom-inner{ flex-direction:column; align-items:flex-start; gap:10px; }
}
