/* ============================================================
   Site-wide chrome and base tokens

   Shared by every page. The header and footer markup itself is repeated
   in each page's HTML on purpose: this site is a search and AI-crawler
   play, and a nav injected by JavaScript is invisible to crawlers that
   do not run it. The design lives here so it is still defined once.

   Logged as tech debt alongside the index/poster duplication: revisit
   when a third sector page lands and the repetition starts to cost.
   ============================================================ */

:root {
  --forest: #152E21;
  --cream:  #F0EDE6;
  --sage:   #B8D4C4;
  --gold:   #E8C96A;

  --ink:      #152E21;
  --ink-soft: #5A6B60;
  --rule:     rgba(21, 46, 33, 0.14);
  --paper:    #FBFAF7;

  --wrap: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }

a { color: var(--forest); }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 10px;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border: 1px solid var(--forest);
  border-radius: 4px;
  background: transparent;
  color: var(--forest);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover { background: rgba(21, 46, 33, 0.06); }

.btn.primary {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--forest);
}

.btn.primary:hover { background: #DFBE55; border-color: #DFBE55; }

.btn.light { border-color: var(--sage); color: var(--cream); }
.btn.light:hover { background: rgba(240, 237, 230, 0.12); }

.btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- site header ----------

   Deliberately not sticky. The sector page already pins a WhatsApp and
   call bar to the bottom on mobile, and a second fixed strip at the top
   would eat the small viewport from both ends. Static also removes any
   chance of the header covering content, which the brief rules out.     */

.site-header {
  background: var(--forest);
  color: var(--cream);
}

.site-header .inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-header .logo {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font: 400 20px/1 Georgia, "Times New Roman", serif;
  color: var(--cream);
  text-decoration: none;
  white-space: nowrap;
}

.site-header .logo b { color: var(--gold); font-weight: 400; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-left: auto;
}

.site-nav a {
  color: var(--sage);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.site-nav a:hover { color: var(--cream); text-decoration: underline; }

.site-nav a[aria-current="page"] { color: var(--cream); }

/* "Sector maps" menu in the nav: the regions, without a script. */
.nav-maps { position: relative; }
.nav-maps summary {
  list-style: none;
  cursor: pointer;
  color: var(--sage);
  font-size: 14px;
  white-space: nowrap;
}
.nav-maps summary::-webkit-details-marker { display: none; }
.nav-maps summary::after { content: ""; display: inline-block; margin-left: 6px; vertical-align: 2px;
  border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.nav-maps summary:hover, .nav-maps[open] summary, .nav-maps.on summary { color: var(--cream); }
.nav-maps .nav-drop {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 10px);
  left: -14px;
  min-width: 210px;
  display: flex;
  flex-direction: column;
  padding: 8px;
  background: var(--forest);
  border: 1px solid rgba(240, 237, 230, 0.16);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
.nav-maps .nav-drop a { padding: 9px 10px; border-radius: 5px; font-size: 14px; }
.nav-maps .nav-drop a:hover { background: rgba(240, 237, 230, 0.08); text-decoration: none; }
.nav-maps .nav-drop a.all { border-top: 1px solid rgba(240, 237, 230, 0.14); margin-top: 4px; padding-top: 11px; color: var(--gold); }

.site-header .phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--gold);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.site-header .phone:hover { text-decoration: underline; }

/* ---------- site footer ---------- */

.site-footer {
  background: var(--forest);
  color: var(--sage);
  font-size: 14px;
  padding: 34px 0 26px;
  margin-top: 10px;
}

.site-footer a { color: var(--cream); }

.site-footer .cols {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
}

.site-footer h2 {
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(184, 212, 196, 0.7);
  margin: 0 0 12px;
}

.site-footer .blurb {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(240, 237, 230, 0.88);
  max-width: 42ch;
  margin: 0;
}

.site-footer .brandline {
  font: 400 19px/1 Georgia, "Times New Roman", serif;
  color: var(--cream);
  margin: 0 0 12px;
}

.site-footer .brandline b { color: var(--gold); font-weight: 400; }

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0 0 8px; }

.site-footer .legal {
  border-top: 1px solid rgba(184, 212, 196, 0.22);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 13px;
  color: rgba(184, 212, 196, 0.75);
}

@media (min-width: 720px) {
  .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
}

/* Logo, nav and phone stop fitting on one line well before the usual
   mobile breakpoint, so the header switches to two rows at 900px: logo
   and phone on top, nav underneath. Left to wrap on its own the phone
   dropped below the logo and sat there looking stranded. */
@media (max-width: 899px) {
  .site-header .inner { gap: 10px 14px; padding-top: 12px; padding-bottom: 12px; }

  .site-header .phone { order: 2; margin-left: auto; font-size: 13.5px; }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    gap: 12px 18px;
    padding-top: 2px;
  }

  .site-nav a, .nav-maps summary { font-size: 13px; }
  .nav-maps .nav-drop { left: 0; }
}

@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .site-header .logo { font-size: 18px; }
  .site-nav { gap: 10px 14px; }
  .site-nav a, .nav-maps summary { font-size: 12.5px; }
}

/* The static layout picture below each interactive map (shared/page_extras.py) */
.map-still { margin: 22px auto 0; max-width: 820px; }
.map-still img { display: block; width: 100%; height: auto; border: 1px solid #D9D4C8; border-radius: 10px; background: #F0EDE6; }
.map-still figcaption { margin-top: 8px; font-size: 13px; line-height: 1.5; color: #5B6B62; text-align: center; }
.block-table td:first-child { font-weight: 600; white-space: nowrap; }

/* ---------- lighter pages: folded sections (shared/page_extras.py simplify) ---------- */
section.folded { padding-top: 0; padding-bottom: 0; }
details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 22px 0; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { margin: 0; font-size: 22px; }
details.fold > summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(21, 46, 33, 0.25); font: 400 22px/1 Georgia, serif; color: #152E21; }
details.fold[open] > summary::after { content: "\2212"; }
details.fold > summary:hover h2 { text-decoration: underline; text-underline-offset: 4px; }
details.fold > .fold-body { padding: 0 0 26px; }
details.fold.still { margin: 14px 0 0; }
details.fold.still > summary { padding: 10px 0; font-size: 14px; font-weight: 600; color: #152E21; justify-content: flex-start; }
details.fold.still > summary::after { width: 24px; height: 24px; font-size: 16px; }
@media (max-width: 760px) { details.fold > summary h2 { font-size: 19px; } details.fold > summary { padding: 18px 0; } }
