/* Public site theme — token-based custom CSS (doc 07 §3): the custom
 * properties below are the design tokens the future theme editor
 * manipulates (palette, type scale, spacing, radii). No framework. USWDS
 * is the design reference, not a dependency. */

:root {
  /* palette — the theme editor will refuse non-compliant combinations */
  --gs-color-primary: #1a4480;
  --gs-color-primary-dark: #162e51;
  --gs-color-accent: #0b6e4f;
  --gs-color-text: #1b1b1b;
  --gs-color-muted: #5c5c5c;
  --gs-color-bg: #ffffff;
  --gs-color-surface: #f0f0f0;
  --gs-color-link: #005ea2;
  --gs-color-link-visited: #54278f;
  --gs-color-focus: #1a6fd4;
  --gs-color-warning-bg: #faf3d1;
  --gs-color-border: #dfe1e2;

  /* callout flavors — surface tints + a strong accent edge. Text stays
   * --gs-color-text on every tint (all AA on these light backgrounds); the
   * visible label word, not color, carries the meaning. */
  --gs-callout-info-bg: #eef3fb;
  --gs-callout-info-edge: #1a4480;
  --gs-callout-tip-bg: #ecf3ec;
  --gs-callout-tip-edge: #2e6b2e;
  --gs-callout-warning-bg: #faf3d1;
  --gs-callout-warning-edge: #b35900;
  --gs-callout-success-bg: #ecf7ec;
  --gs-callout-success-edge: #2e8540;
  --gs-callout-danger-bg: #f8eaea;
  --gs-callout-danger-edge: #b50909;
  --gs-callout-emergency-bg: #f6e0de;
  --gs-callout-emergency-edge: #8b0a03;
  --gs-callout-highlight-bg: #efeaf6;
  --gs-callout-highlight-edge: #54278f;
  --gs-callout-aside-bg: #f0f0f0;
  --gs-callout-aside-edge: #565c65;

  /* type scale */
  --gs-font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gs-size-base: 1.125rem;
  --gs-size-display: 3.25rem;
  --gs-size-hero: 2.5rem;
  --gs-size-h1: 2.25rem;
  --gs-size-h2: 1.625rem;
  --gs-size-h3: 1.25rem;
  --gs-size-h4: 1.125rem;
  --gs-leading: 1.6;
  /* heading treatment (fixed, not town-editable) */
  --gs-heading-weight: 700;
  --gs-heading-tracking: -.01em;

  /* spacing + radii */
  --gs-space-1: .25rem;
  --gs-space-2: .5rem;
  --gs-space-3: 1rem;
  --gs-space-4: 1.5rem;
  --gs-space-5: 2.5rem;
  --gs-space-6: 4rem;
  --gs-space-7: 6rem;
  --gs-radius: .25rem;
  --gs-radius-md: .5rem;
  --gs-radius-lg: 1rem;
  --gs-measure: 68ch;
  --gs-content-width: 64rem;

  /* elevation (fixed, not town-editable; decorative depth only) */
  --gs-shadow-1: 0 1px 2px rgba(0, 0, 0, .06), 0 1px 3px rgba(0, 0, 0, .10);
  --gs-shadow-2: 0 .25rem .75rem rgba(0, 0, 0, .12);
  --gs-shadow-3: 0 .75rem 1.75rem rgba(0, 0, 0, .18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--gs-font-body);
  font-size: var(--gs-size-base);
  line-height: var(--gs-leading);
  color: var(--gs-color-text);
  background: var(--gs-color-bg);
}

h1, h2, h3, h4 {
  font-weight: var(--gs-heading-weight);
  letter-spacing: var(--gs-heading-tracking);
}
h1 { font-size: var(--gs-size-h1); line-height: 1.15; }
h2 { font-size: var(--gs-size-h2); line-height: 1.2; }
h3 { font-size: var(--gs-size-h3); line-height: 1.3; }
h4 { font-size: var(--gs-size-h4); line-height: 1.3; }

/* Links are underlined at rest — a modern, accessible default (affordance never
   by color alone). Components that manage their own affordance (nav, buttons,
   card links) opt out locally. */
a {
  color: var(--gs-color-link);
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .12em;
}

a:visited {
  color: var(--gs-color-link-visited);
}

:focus-visible {
  outline: .25rem solid var(--gs-color-focus);
  outline-offset: 0;
}

.gs-skip-link {
  position: absolute;
  top: -100%;
  left: var(--gs-space-2);
  z-index: 100;
  padding: var(--gs-space-2) var(--gs-space-3);
  background: var(--gs-color-bg);
  color: var(--gs-color-link);
}

.gs-skip-link:focus {
  top: var(--gs-space-2);
}

.gs-site-header {
  background: var(--gs-color-primary-dark);
  border-bottom: .1875rem solid var(--gs-color-primary);
}

/* Header + footer share the content measure so the brand/nav line up with the
   page body on wide screens. They wrap to a stack on narrow viewports — no JS
   hamburger, every link reachable at every width. */
.gs-header-inner {
  max-width: var(--gs-content-width);
  margin: 0 auto;
  padding: var(--gs-space-3) var(--gs-space-3);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--gs-space-2) var(--gs-space-4);
}

.gs-site-name {
  color: #ffffff;
  font-weight: 700;
  font-size: var(--gs-size-h3);
  text-decoration: none;
}

.gs-site-name:visited {
  color: #ffffff;
}

/* Block content placed in the site header (doc 18) inherits the header's light
   foreground: the header background is --gs-color-primary-dark, so default body
   text would fail contrast. #ffffff matches .gs-site-name — the established
   safe pairing on this background. Links stay underlined to read as links on
   the dark bar. (The footer background is the light surface, so footer-region
   content keeps the normal dark body text — no override needed there.) */
.gs-header-region,
.gs-header-region p,
.gs-header-region li,
.gs-header-region h2,
.gs-header-region h3,
.gs-header-region h4,
.gs-header-region a {
  color: #ffffff;
}
.gs-header-region a {
  text-decoration: underline;
}

/* Primary navigation — a row of links in the header band. Color change on
   hover is decorative; the underline + aria-current carry the state so it is
   never color-only. No hover-revealed content (doc 13 §10). */
.gs-site-nav {
  margin: 0;
}

.gs-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--gs-space-1) var(--gs-space-3);
}

.gs-nav-link {
  display: inline-block;
  padding: var(--gs-space-1) var(--gs-space-2);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border-bottom: .1875rem solid transparent;
}

.gs-nav-link:visited {
  color: #ffffff;
}

.gs-nav-link:hover {
  text-decoration: underline;
}

.gs-nav-link[aria-current="page"] {
  border-bottom-color: #ffffff;
}

/* Public language switcher (Translation Governance, doc 00 P15). Sits in the dark
   header alongside the nav: white text (AA on --gs-color-primary-dark, like the nav
   links) + an underline for affordance; the current language is marked by a bottom
   border (NOT colour alone — WCAG 1.4.1). */
.gs-lang-switcher { margin-left: auto; }
.gs-lang-list {
  display: flex;
  gap: var(--gs-space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}
.gs-lang-link,
.gs-lang-link:visited {
  display: inline-block;
  color: #ffffff;
  font-weight: 600;
  text-decoration: underline;
  padding: var(--gs-space-1) var(--gs-space-2);
  border-bottom: .1875rem solid transparent;
}
.gs-lang-current,
.gs-lang-current:visited {
  text-decoration: none;
  border-bottom-color: #ffffff;
}

/* ===== Multilevel nav (epic #3) =================================================
   A semantic, nested <ul>. NO-JS FLOOR: a parent's children show as an indented
   list beneath it, so every link is reachable with JS off. The .gs-nav--js class
   (added by assets/js/nav.js) collapses the submenus into an accessible
   disclosure menu + reveals a mobile hamburger. Mobile-first: the base enhanced
   rules are the narrow layout; the min-width query is the desktop dropdown.     */
.gs-nav-item--parent {
  position: relative;
}

.gs-nav-submenu {
  list-style: none;
  margin: var(--gs-space-1) 0 0;
  padding: 0 0 0 var(--gs-space-3);
  display: flex;
  flex-direction: column;
  gap: var(--gs-space-1);
}

.gs-nav-sublink {
  display: inline-block;
  padding: var(--gs-space-1) var(--gs-space-2);
  color: #ffffff;
  font-weight: 500;
  text-decoration: none;
  border-bottom: .1875rem solid transparent;
}

.gs-nav-sublink:visited {
  color: #ffffff;
}

.gs-nav-sublink:hover {
  text-decoration: underline;
}

.gs-nav-sublink[aria-current="page"] {
  border-bottom-color: #ffffff;
}

/* A non-link parent label (its own target is gone but its children remain). */
.gs-nav-text {
  cursor: default;
}

/* The injected controls don't exist server-side; hide them as a belt-and-braces
   guard so an inert control can never flash before nav.js runs. */
.gs-nav-toggle,
.gs-nav-hamburger {
  display: none;
}

/* ---- JS-enhanced ---- */
.gs-nav--js .gs-nav-item--parent {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.gs-nav--js .gs-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  min-height: 1.75rem;
  padding: var(--gs-space-1);
  margin-left: .15rem;
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
}

.gs-nav-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: .3em solid transparent;
  border-right: .3em solid transparent;
  border-top: .35em solid currentColor;
}

.gs-nav--js .gs-nav-item--parent[data-gs-submenu-open] .gs-nav-caret {
  transform: rotate(180deg);
}

/* Visible keyboard focus on every nav control (never color-only). */
.gs-nav-link:focus-visible,
.gs-nav-sublink:focus-visible,
.gs-nav--js .gs-nav-toggle:focus-visible,
.gs-nav--js .gs-nav-hamburger:focus-visible {
  outline: .1875rem solid #ffffff;
  outline-offset: 2px;
}

/* Hamburger (mobile only; the desktop query hides it again). */
.gs-nav--js .gs-nav-hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: var(--gs-space-1);
  background: transparent;
  border: .125rem solid rgba(255, 255, 255, .6);
  border-radius: .25rem;
  cursor: pointer;
}

.gs-nav-hamburger-bars,
.gs-nav-hamburger-bars::before,
.gs-nav-hamburger-bars::after {
  display: block;
  width: 1.25rem;
  height: .15rem;
  background: #ffffff;
  border-radius: 1px;
}

.gs-nav-hamburger-bars {
  position: relative;
}

.gs-nav-hamburger-bars::before,
.gs-nav-hamburger-bars::after {
  content: '';
  position: absolute;
  left: 0;
}

.gs-nav-hamburger-bars::before { top: -.4rem; }
.gs-nav-hamburger-bars::after  { top: .4rem; }

/* Mobile (JS on): the list collapses behind the hamburger; submenus stack inline
   and are revealed by their own toggle. */
.gs-nav--js .gs-nav-list {
  display: none;
}

.gs-nav--js[data-gs-menu-open] .gs-nav-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.gs-nav--js .gs-nav-submenu {
  display: none;
}

.gs-nav--js .gs-nav-item--parent[data-gs-submenu-open] .gs-nav-submenu {
  display: flex;
  width: 100%;
}

/* Desktop (JS on): a horizontal bar; submenus become dropdowns. */
@media (min-width: 48em) {
  .gs-nav--js .gs-nav-hamburger {
    display: none;
  }

  .gs-nav--js .gs-nav-list {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: auto;
  }

  .gs-nav--js .gs-nav-item--parent[data-gs-submenu-open] .gs-nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 50;
    width: auto;
    min-width: 12rem;
    margin: 0;
    padding: var(--gs-space-2);
    background: var(--gs-color-primary-dark);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: .25rem;
    box-shadow: var(--gs-shadow-2);
  }

  /* Mega dropdown (epic #3 / Phase 4): a parent with many children lays its
     dropdown out in multiple columns instead of one tall stack. Reading order is
     unchanged (CSS grid auto-places in source order, top-to-bottom then across,
     matching the no-JS nested list). Comes AFTER the base dropdown rule so it
     wins on equal specificity. */
  .gs-nav--js .gs-nav-item--mega[data-gs-submenu-open] .gs-nav-submenu--mega {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(4, auto);
    column-gap: var(--gs-space-4);
    min-width: 24rem;
  }

  /* A mega panel that would overflow the right viewport edge is flipped to
     right-alignment by nav.js (it adds this class after measuring). */
  .gs-nav--js .gs-nav-submenu--flush-right {
    left: auto;
    right: 0;
  }
}

main {
  max-width: var(--gs-content-width);
  margin: 0 auto;
  padding: var(--gs-space-4) var(--gs-space-3) var(--gs-space-5);
}

/* Body prose stays at a comfortable reading measure inside the wider column;
   structural blocks (headings, cards, columns, tables) use the full width. */
main > .gs-richtext {
  max-width: var(--gs-measure);
}

/* A visually-hidden utility — content stays in the accessibility tree (and is
   exposed to a screen reader) while removed from the visual layout. Used for the
   header search's label (the magnifier button is self-evident sighted, but the
   field still needs a programmatic label). */
.gs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Breadcrumbs (Phase 3b): the page's place in the nav hierarchy, above <main>
   and aligned to the same content measure. A semantic ordered list inside a
   labeled <nav>; the › separators are decorative ::before glyphs (CSS content,
   so assistive tech never reads them). The muted text rides the gated
   muted-on-bg contrast pair, so it stays AA. */
.gs-breadcrumbs {
  max-width: var(--gs-content-width);
  margin: 0 auto;
  padding: var(--gs-space-3) var(--gs-space-3) 0;
}

.gs-breadcrumb-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .25rem .5rem;
  font-size: .9375rem;
}

.gs-breadcrumb {
  display: inline-flex;
  align-items: center;
}

.gs-breadcrumb + .gs-breadcrumb::before {
  content: "\203A";
  margin-right: .5rem;
  color: var(--gs-color-muted);
}

.gs-breadcrumb--current span {
  color: var(--gs-color-muted);
}

/* Header search affordance (Phase 3b): a small GET form on the dark header bar.
   The input is white (dark body text on it stays AA); the submit rides the
   white-on-accent gated pair. No-JS, no inline anything. */
.gs-header-search {
  display: flex;
  align-items: center;
  gap: var(--gs-space-2);
}

.gs-header-search-input {
  font: inherit;
  font-size: .9375rem;
  padding: .375rem .625rem;
  min-width: 9rem;
  max-width: 16rem;
  background: #ffffff;
  color: var(--gs-color-text);
  border: 1px solid var(--gs-color-border);
  border-radius: var(--gs-radius);
}

.gs-header-search-input::placeholder {
  color: var(--gs-color-muted);
}

.gs-header-search-button {
  font: inherit;
  font-size: .9375rem;
  padding: .375rem .75rem;
  background: var(--gs-color-accent);
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: var(--gs-radius);
  cursor: pointer;
}

.gs-header-search-button:hover {
  filter: brightness(.92);
}

.gs-header-search-input:focus-visible,
.gs-header-search-button:focus-visible {
  outline: 3px solid var(--gs-color-focus);
  outline-offset: 2px;
}

/* Search results page (Phase 4). A prominent query form, then a counted list of
   results — each a type tag, a linked title, and an optional plain-text snippet.
   The muted metadata text rides the gated muted-on-bg pair (AA). */
.gs-search-form {
  margin: var(--gs-space-4) 0;
}

.form-label-block {
  display: block;
  font-weight: 600;
  margin-bottom: var(--gs-space-2);
}

.gs-search-form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--gs-space-2);
}

.gs-search-input {
  font: inherit;
  flex: 1 1 16rem;
  padding: .5rem .75rem;
  background: var(--gs-color-bg);
  color: var(--gs-color-text);
  border: 1px solid var(--gs-color-border);
  border-radius: var(--gs-radius);
}

.gs-search-input:focus-visible {
  outline: 3px solid var(--gs-color-focus);
  outline-offset: 2px;
}

.gs-search-prompt,
.gs-search-empty,
.gs-search-count {
  color: var(--gs-color-muted);
}

.gs-search-results {
  list-style: none;
  margin: var(--gs-space-4) 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gs-space-4);
}

.gs-search-result {
  padding-bottom: var(--gs-space-4);
  border-bottom: 1px solid var(--gs-color-border);
}

.gs-search-result:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.gs-search-result-type {
  display: inline-block;
  margin-bottom: var(--gs-space-1);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--gs-color-primary);
}

.gs-search-result-title {
  margin: 0 0 var(--gs-space-1);
  font-size: var(--gs-size-h3);
}

.gs-search-result-snippet {
  margin: 0;
  max-width: var(--gs-measure);
  color: var(--gs-color-muted);
}

/* Content-driven feed blocks (Phase 4): news (a card grid), events (a date-led
   list), and a departments directory. All read-only, server-rendered; the muted
   metadata rides the gated muted-on-bg pair (AA). */
.gs-feed {
  margin: var(--gs-space-5) 0;
}

.gs-feed-heading {
  margin-top: 0;
}

.gs-feed-empty {
  color: var(--gs-color-muted);
  font-style: italic;
}

/* News items reuse the .gs-cards grid; each gains a date line + snippet. */
.gs-feed-item-date {
  margin: 0 0 var(--gs-space-1);
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--gs-color-primary);
}

.gs-feed-item-snippet {
  color: var(--gs-color-muted);
}

/* Events: a date-led list. The date column reads first (source = reading order);
   it reflows under the title on narrow screens. */
.gs-event-list {
  list-style: none;
  margin: var(--gs-space-4) 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--gs-space-4);
}

.gs-event-list-item {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: var(--gs-space-1) var(--gs-space-4);
  align-items: baseline;
  padding-bottom: var(--gs-space-4);
  border-bottom: 1px solid var(--gs-color-border);
}

.gs-event-list-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.gs-event-list-date {
  grid-row: 1;
  margin: 0;
  font-weight: 700;
  color: var(--gs-color-primary);
}

.gs-event-list-title {
  grid-column: 2;
  margin: 0;
  font-size: var(--gs-size-h3);
}

.gs-event-list-where {
  grid-column: 2;
  margin: 0;
  color: var(--gs-color-muted);
}

@media (max-width: 40rem) {
  .gs-event-list-item {
    grid-template-columns: 1fr;
  }
  .gs-event-list-title,
  .gs-event-list-where {
    grid-column: 1;
  }
}

/* Departments directory: a responsive grid of department cards, each a name and
   a list of links to that department's published pages. */
.gs-dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: var(--gs-space-4);
  margin-top: var(--gs-space-4);
}

.gs-dept {
  padding: var(--gs-space-4);
  background: var(--gs-color-surface);
  border-radius: var(--gs-radius-md);
}

.gs-dept-name {
  margin: 0 0 var(--gs-space-2);
  font-weight: 700;
  font-size: var(--gs-size-h4);
}

.gs-dept-pages {
  margin: 0;
  padding-left: var(--gs-space-4);
}

.gs-site-footer {
  background: var(--gs-color-surface);
  border-top: 1px solid var(--gs-color-border);
  margin-top: var(--gs-space-5);
}

.gs-footer-inner {
  max-width: var(--gs-content-width);
  margin: 0 auto;
  padding: var(--gs-space-4) var(--gs-space-3);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--gs-space-2) var(--gs-space-4);
}

.gs-footer-name {
  margin: 0;
  font-weight: 700;
}

.gs-draft-banner {
  background: var(--gs-color-warning-bg);
  border-left: .5rem solid var(--gs-color-primary);
  padding: var(--gs-space-2) var(--gs-space-3);
  margin-bottom: var(--gs-space-3);
}

/* Language offer (doc 00 P15): the "this page is available in <language>" note.
   Reuses the AA-proven callout-info tokens — no new :root token. */
.gs-lang-offer {
  background: var(--gs-callout-info-bg);
  border-left: .35rem solid var(--gs-callout-info-edge);
  padding: var(--gs-space-2) var(--gs-space-3);
  margin-bottom: var(--gs-space-3);
}

.gs-lang-offer[dir="rtl"] {
  border-left: 0;
  border-right: .35rem solid var(--gs-callout-info-edge);
}

.gs-image img {
  max-width: 100%;
  height: auto;
  border-radius: var(--gs-radius-md);
  box-shadow: var(--gs-shadow-1);
}

.gs-image figcaption {
  color: var(--gs-color-muted);
  font-size: .9rem;
  margin-top: var(--gs-space-1);
}

.gs-image,
figure.gs-image {
  margin: var(--gs-space-3) 0;
}

/* Image art-direction (C4 — gsImageRatios()/gsImageFocusPoints()). A crop shape
   forces the box ratio and lets object-fit:cover trim the overflow; the focus
   zone chooses which part survives the crop. Class-only (no inline style) so the
   strict CSP (style-src 'self') holds. natural/center get no class (default). */
.gs-image--ratio-16x9 img,
.gs-image--ratio-4x3 img,
.gs-image--ratio-3x2 img,
.gs-image--ratio-1x1 img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}
.gs-image--ratio-16x9 img { aspect-ratio: 16 / 9; }
.gs-image--ratio-4x3 img  { aspect-ratio: 4 / 3; }
.gs-image--ratio-3x2 img  { aspect-ratio: 3 / 2; }
.gs-image--ratio-1x1 img  { aspect-ratio: 1 / 1; }

.gs-image--focus-top img          { object-position: center top; }
.gs-image--focus-bottom img       { object-position: center bottom; }
.gs-image--focus-left img         { object-position: left center; }
.gs-image--focus-right img        { object-position: right center; }
.gs-image--focus-top-left img     { object-position: left top; }
.gs-image--focus-top-right img    { object-position: right top; }
.gs-image--focus-bottom-left img  { object-position: left bottom; }
.gs-image--focus-bottom-right img { object-position: right bottom; }

.gs-doclist ul {
  padding-left: 1.25rem;
}

.gs-doclist li {
  margin-bottom: var(--gs-space-1);
}

/* Video (text-first): an accessible link to the video on its host + a transcript
 * link. No embedded player (the no-JS public site + strict CSP); the camera glyph
 * is a pure-CSS decorative cue, meaning carried by the visible link text. */
.gs-video {
  margin: var(--gs-space-3) 0;
}

.gs-video__link {
  display: inline-flex;
  align-items: baseline;
  gap: .4rem;
  font-weight: 600;
}

.gs-video__icon {
  flex: none;
  width: .9em;
  height: .9em;
  align-self: center;
  background: currentColor;
  /* a simple play triangle, decorative (aria-hidden) */
  clip-path: polygon(15% 0, 15% 100%, 100% 50%);
}

.gs-video__cue,
.gs-video__desc {
  color: var(--gs-color-muted);
  font-weight: 400;
}

.gs-video__desc {
  font-size: .95rem;
  margin-top: var(--gs-space-1);
}

.gs-video__transcript {
  margin-top: var(--gs-space-1);
}

/* Map / location (text-first): the address is the primary content (the embed-policy
 * text fallback), in a semantic <address>, with optional hours + a directions link.
 * No tiles, no Leaflet, no JS. */
.gs-map {
  margin: var(--gs-space-3) 0;
  padding: var(--gs-space-3);
  background: var(--gs-color-surface, #f4f6f9);
  border-radius: var(--gs-radius-md);
}

.gs-map__name {
  font-weight: 600;
  margin: 0 0 var(--gs-space-1);
}

.gs-map__address {
  font-style: normal;
  margin: 0;
}

.gs-map__hours {
  margin-top: var(--gs-space-2);
}

.gs-map__hours-label {
  font-weight: 600;
}

.gs-map__directions {
  margin: var(--gs-space-2) 0 0;
}

/* Callout — a highlighted box. Color is the enhancement; .gs-callout-label
 * is the color-independent meaning carrier (rendered server-side). */
.gs-callout {
  margin: var(--gs-space-4) 0;
  padding: var(--gs-space-3);
  background: var(--gs-callout-info-bg);
  border-left: .35rem solid var(--gs-callout-info-edge);
  border-radius: var(--gs-radius-md);
}

.gs-callout--tip {
  background: var(--gs-callout-tip-bg);
  border-left-color: var(--gs-callout-tip-edge);
}

.gs-callout--warning {
  background: var(--gs-callout-warning-bg);
  border-left-color: var(--gs-callout-warning-edge);
}

.gs-callout--success {
  background: var(--gs-callout-success-bg);
  border-left-color: var(--gs-callout-success-edge);
}

.gs-callout--danger {
  background: var(--gs-callout-danger-bg);
  border-left-color: var(--gs-callout-danger-edge);
}

/* Emergency is the strongest flavor — a heavier edge so it reads as urgent
 * without abandoning the dark-text-on-light-tint AA contract. */
.gs-callout--emergency {
  background: var(--gs-callout-emergency-bg);
  border-left-color: var(--gs-callout-emergency-edge);
  border-left-width: .55rem;
}

.gs-callout--highlight {
  background: var(--gs-callout-highlight-bg);
  border-left-color: var(--gs-callout-highlight-edge);
}

.gs-callout--aside {
  background: var(--gs-callout-aside-bg);
  border-left-color: var(--gs-callout-aside-edge);
}

.gs-callout-label {
  margin: 0 0 var(--gs-space-1);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.gs-callout-title {
  margin: 0 0 var(--gs-space-1);
}

.gs-callout > :last-child {
  margin-bottom: 0;
}

/* Button / CTA — a link styled as a prominent action. */
.gs-button-wrap {
  margin: var(--gs-space-3) 0;
}

.gs-button {
  display: inline-block;
  padding: var(--gs-space-2) var(--gs-space-4);
  border: .125rem solid var(--gs-color-primary);
  border-radius: var(--gs-radius);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
}

.gs-button--primary,
.gs-button--primary:visited {
  background: var(--gs-color-primary);
  color: #ffffff;
}

.gs-button--primary:hover {
  background: var(--gs-color-primary-dark);
  border-color: var(--gs-color-primary-dark);
}

.gs-button--secondary,
.gs-button--secondary:visited {
  background: transparent;
  color: var(--gs-color-primary);
}

.gs-button--secondary:hover {
  background: var(--gs-color-surface);
}

/* Accent — a solid action in the theme's accent color (white text is AA on the
 * default accent green; admin theming keeps the accent token AA via the gate). */
.gs-button--accent,
.gs-button--accent:visited {
  background: var(--gs-color-accent);
  border-color: var(--gs-color-accent);
  color: #ffffff;
}

.gs-button--accent:hover {
  filter: brightness(.92);
}

/* Subtle — a quiet, low-emphasis action: surface fill, neutral border, body text. */
.gs-button--subtle,
.gs-button--subtle:visited {
  background: var(--gs-color-surface);
  border-color: var(--gs-color-border);
  color: var(--gs-color-text);
}

.gs-button--subtle:hover {
  background: var(--gs-color-border);
}

/* Data table — a vetted <table> with a required header row (scope="col",
 * rendered server-side). The wrapper scrolls horizontally on narrow screens so
 * a wide grid never breaks the layout. */
.gs-table-wrap {
  margin: var(--gs-space-3) 0;
  overflow-x: auto;
}

.gs-table {
  border-collapse: collapse;
  width: 100%;
}

.gs-table caption {
  caption-side: top;
  text-align: left;
  color: var(--gs-color-muted);
  font-size: .9rem;
  margin-bottom: var(--gs-space-1);
}

.gs-table th,
.gs-table td {
  border: 1px solid var(--gs-color-border);
  padding: var(--gs-space-2);
  text-align: left;
  vertical-align: top;
}

.gs-table thead th {
  background: var(--gs-color-surface);
}

/* Transparency Portal (doc 24) — right-align money cells; space the sections. */
.gs-table td.gs-finance-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.gs-finance-rollup,
.gs-finance-records {
  margin-top: var(--gs-space-4);
}

/* Decorative no-JS roll-up bar chart (aria-hidden; the table is the accessible
 * data). Colours come from tokens — bar widths are SVG geometry, not inline CSS. */
.gs-finance-chart {
  display: block;
  width: 100%;
  max-width: 40rem;
  height: auto;
  margin: var(--gs-space-3) 0;
}

.gs-finance-chart-bar {
  fill: var(--gs-color-primary);
}

.gs-finance-chart-label {
  fill: var(--gs-color-text);
  font-size: 13px;
}

/* Structured emergency-info card (doc 22 B4). Status MEANING is the text label;
 * the tone only tints the left edge (reusing the AA-proven callout edge tokens).
 * Card text is default body colour on the surface (AA), so no new contrast risk. */
.gs-emergency-info {
  margin: var(--gs-space-3) 0;
  padding: var(--gs-space-3);
  background: var(--gs-color-surface);
  border: 1px solid var(--gs-color-border);
  border-left: .35rem solid var(--gs-color-border);
  border-radius: .25rem;
}

.gs-emergency-info--ok     { border-left-color: var(--gs-callout-success-edge); }
.gs-emergency-info--warn   { border-left-color: var(--gs-callout-warning-edge); }
.gs-emergency-info--danger { border-left-color: var(--gs-callout-danger-edge); }

.gs-emergency-info-kind {
  margin: 0 0 var(--gs-space-1);
  font-size: .85rem;
  color: var(--gs-color-text);
}

.gs-emergency-info-title { margin: 0; }
.gs-emergency-info-status { font-weight: 600; }
.gs-emergency-info-detail { margin: var(--gs-space-1) 0 0; }

/* Plain-language summary (doc 00 P16) — a resident-friendly TL;DR box. Info-tinted
 * edge; default body text on the surface (AA). Labels via a real <dl>. */
.gs-plain-summary {
  margin: var(--gs-space-3) 0;
  padding: var(--gs-space-3);
  background: var(--gs-color-surface);
  border-left: .35rem solid var(--gs-callout-info-edge);
  border-radius: .25rem;
}

.gs-plain-summary-label {
  margin: 0 0 var(--gs-space-2);
  font-weight: 700;
}

.gs-plain-summary-dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--gs-space-1) var(--gs-space-3);
  margin: var(--gs-space-2) 0 0;
}

.gs-plain-summary-dl dt { font-weight: 600; }
.gs-plain-summary-dl dd { margin: 0; }

/* Analytics daily-views trend (aria-hidden decorative; the totals + table are the
 * accessible data). Bar heights are SVG geometry, not inline CSS. */
.gs-analytics-chart {
  display: block;
  width: 100%;
  max-width: 40rem;
  height: 120px;
  margin: var(--gs-space-3) 0;
}

.gs-analytics-bar {
  fill: var(--gs-color-primary);
}


/* Accordion — native <details>/<summary> disclosure (APG pattern). Keyboard-
 * operable by the browser; works fully with JavaScript off. */
.gs-accordion {
  margin: var(--gs-space-3) 0;
}

.gs-accordion-panel {
  border: 1px solid var(--gs-color-border);
  border-radius: var(--gs-radius-md);
  margin-bottom: var(--gs-space-2);
}

.gs-accordion-summary {
  padding: var(--gs-space-2) var(--gs-space-3);
  font-weight: 700;
  cursor: pointer;
}

.gs-accordion-summary:focus-visible {
  outline: .15rem solid var(--gs-color-focus);
  outline-offset: -.15rem;
}

.gs-accordion-body {
  padding: 0 var(--gs-space-3) var(--gs-space-2);
}

.gs-accordion-body > :first-child {
  margin-top: 0;
}

/* Cards — a flat grid of short titled cards. auto-fill columns never reorder,
   so the visual order is the DOM/reading order (source-order-correct); the grid
   collapses to one column when the viewport is narrow. */
.gs-cards {
  list-style: none;
  margin: var(--gs-space-3) 0;
  padding: 0;
  display: grid;
  gap: var(--gs-space-3);
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
}

.gs-card {
  border: 1px solid var(--gs-color-border);
  border-radius: var(--gs-radius-md);
  padding: var(--gs-space-3);
  background: var(--gs-color-bg);
}

.gs-card-title {
  margin: 0 0 var(--gs-space-1);
  font-weight: 700;
  font-size: var(--gs-size-h4);
}

.gs-card-text {
  margin: 0 0 var(--gs-space-2);
}

.gs-card-link {
  margin: 0;
}

.gs-card > :last-child {
  margin-bottom: 0;
}

/* Columns — content laid out side by side. A CSS grid lays each .gs-column out
   left-to-right in DOM order, so the rendered order is the reading order
   (source-order-correct); on narrow screens the grid collapses to a single
   column so a phone reads column 1's content, then column 2's. minmax(0,1fr)
   lets a column shrink rather than overflow on long words. */
.gs-columns {
  display: grid;
  gap: var(--gs-space-4);
  margin: var(--gs-space-3) 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gs-columns--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gs-column > :first-child {
  margin-top: 0;
}

.gs-column > :last-child {
  margin-bottom: 0;
}

@media (max-width: 40rem) {
  .gs-columns,
  .gs-columns--3 {
    grid-template-columns: 1fr;
  }
}

/* Section — a vetted named-layout container (free-canvas Option B, doc 16 §10).
   Asymmetric / 2-D layouts the equal-column grid can't express, still pure CSS.
   Crucially these use grid-template-columns + AUTO-PLACEMENT (never
   grid-template-areas), so each .gs-grid__area lands in source order — visual
   order == DOM order == reading order, by construction (the same guarantee
   .gs-columns gives). minmax(0,Nfr) lets an area shrink rather than overflow.
   Every layout collapses to a single stack on narrow screens. */
.gs-grid {
  display: grid;
  gap: var(--gs-space-4);
  margin: var(--gs-space-3) 0;
  grid-template-columns: 1fr;
}

.gs-grid__area > :first-child {
  margin-top: 0;
}

.gs-grid__area > :last-child {
  margin-bottom: 0;
}

/* Sidebar-left: a narrow rail then the main content (≈1:2). */
.gs-grid--sidebar-left {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
}

/* Sidebar-right: main content then a narrow rail (≈3:1). */
.gs-grid--sidebar-right {
  grid-template-columns: minmax(0, 3fr) minmax(0, 1fr);
}

/* Two-thirds / one-third: an asymmetric split (≈2:1). */
.gs-grid--two-thirds {
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

/* Feature + rail: a feature region spanning the top, a wrapping rail of items
   beneath it (genuine 2-D). One grid column (feature row, then rail row); the
   rail area lays its own children out in a wrapping row. */
.gs-grid--feature-rail {
  grid-template-columns: 1fr;
}

.gs-grid--feature-rail .gs-grid__area--rail {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gs-space-4);
}

.gs-grid--feature-rail .gs-grid__area--rail > * {
  flex: 1 1 14rem;
  margin: 0;
}

/* Media + text feature bands (Phase 3b): a balanced 1:1 split for a picture
   beside a block of copy, vertically centred so a photo and a short paragraph
   read as one band. media-left/media-right differ only in source order (the
   renderer never reorders), so reading order stays correct by construction.
   An image child fills its area cleanly (it already carries radius + shadow). */
.gs-grid--media-left,
.gs-grid--media-right {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--gs-space-5);
}

.gs-grid--media-left .gs-grid__area--media > :first-child,
.gs-grid--media-right .gs-grid__area--media > :first-child {
  margin-top: 0;
  margin-bottom: 0;
}

@media (max-width: 40rem) {
  .gs-grid--sidebar-left,
  .gs-grid--sidebar-right,
  .gs-grid--two-thirds,
  .gs-grid--media-left,
  .gs-grid--media-right {
    grid-template-columns: 1fr;
  }
  .gs-grid--feature-rail .gs-grid__area--rail {
    flex-direction: column;
  }
}

/* Section background tones (C3 — gsSectionTones()). A vetted background band; the
   color lives ONLY here (registry↔CSS parity, no inline style → strict CSP). Each
   tone reuses a card-variant fg/bg pair the contrast gate already proves AA. The
   band is a padded, rounded box (not full-bleed). `none` gets no class.
   muted keeps the default dark text + link colors (AA on the light surface);
   primary/dark flip text to white and render links white + UNDERLINED so the link
   affordance never relies on color alone (WCAG 1.4.1). */
.gs-grid--tone-muted,
.gs-grid--tone-primary,
.gs-grid--tone-dark {
  padding: var(--gs-space-4);
  border-radius: var(--gs-radius-md);
}
.gs-grid--tone-muted   { background: var(--gs-color-surface); }
.gs-grid--tone-primary { background: var(--gs-color-primary); color: #ffffff; }
.gs-grid--tone-dark    { background: var(--gs-color-primary-dark); color: #ffffff; }

.gs-grid--tone-primary :is(h1, h2, h3, h4, h5, h6),
.gs-grid--tone-dark :is(h1, h2, h3, h4, h5, h6) {
  color: #ffffff;
}
.gs-grid--tone-primary a,
.gs-grid--tone-primary a:visited,
.gs-grid--tone-dark a,
.gs-grid--tone-dark a:visited {
  color: #ffffff;
  text-decoration: underline;
}

/* ===========================================================================
 * Card primitive (doc 13 §3.8–13). ONE box, five faces, named color variants.
 * Color comes ONLY from the variant classes below — each rides a fg/bg token
 * pair D1's contrast gate enforces, so every card is AA by construction. No
 * hover-revealed content (§10): hover is a decorative lift only, and reduced
 * motion is honoured. A card drops into the columns grid (the framework-free
 * fractional layout, §3.13) like any other block.
 * ======================================================================== */
.gs-card {
  display: flex;
  flex-direction: column;
  gap: var(--gs-space-3);
  margin: var(--gs-space-4) 0;
  padding: var(--gs-space-4);
  border-radius: var(--gs-radius-md);
  box-shadow: var(--gs-shadow-1);
}

/* A card dropped into a columns cell (the §3.13 multi-up Feature-card row) fills
   the grid cell, so a row of cards is equal-height regardless of body length.
   Scoped to .gs-card so the other column children keep their natural flow. */
.gs-column > .gs-card { height: 100%; margin-top: 0; margin-bottom: 0; }

/* Full-bleed banner (the full_width knob). Symmetric negative side margins make
   the card span the viewport without an explicit 100vw — so it never adds a
   horizontal scrollbar — and the calc padding re-centres the card's content to
   the content width, so text stays readable while the color goes edge to edge.
   The margins are relative to the centred <main>, whose centre is the viewport
   centre, so the band lands flush on both sides at every width. */
.gs-card--bleed {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: max(var(--gs-space-4), calc((100vw - var(--gs-content-width)) / 2 + var(--gs-space-3)));
  padding-right: max(var(--gs-space-4), calc((100vw - var(--gs-content-width)) / 2 + var(--gs-space-3)));
  padding-top: var(--gs-space-6);
  padding-bottom: var(--gs-space-6);
  border-radius: 0;
  box-shadow: none;
  margin-top: var(--gs-space-4);
  margin-bottom: var(--gs-space-4);
}

/* A bleed banner as the first thing on the page sits flush under the site header
   (cancel <main>'s top padding) for a true hero. */
main > .gs-card--bleed:first-child { margin-top: calc(var(--gs-space-4) * -1); }

/* Photo banner (the `banner` face) — an image-backed hero with white text over a
   dark scrim. The photo is an <img> (strict CSP: never a CSS background); the
   scrim is this fixed gradient. Text sits at the bottom over the gradient's
   darkest stop (~.72 over a worst-case white photo flattens to ~#474747 →
   white-on ≈ 9:1), so AA holds regardless of the photo. The solid base color is
   the fallback if the image fails to load (white on primary-dark, already gated). */
.gs-card--banner {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 24rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--gs-color-primary-dark);
  color: #ffffff;
  box-shadow: none;
}
.gs-card-banner-media { position: absolute; inset: 0; z-index: 0; margin: 0; }
.gs-card-banner-media .gs-image,
.gs-card-banner-media figure { margin: 0; height: 100%; width: 100%; }
.gs-card-banner-media img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none;
}
.gs-card-banner-scrim {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(rgba(0, 0, 0, .30), rgba(0, 0, 0, .72));
}
.gs-card--banner .gs-card-text { position: relative; z-index: 2; color: #ffffff; max-width: var(--gs-measure); }
.gs-card--banner .gs-card-heading { font-size: var(--gs-size-hero); color: #ffffff; }
.gs-card--banner .gs-card-body { color: #ffffff; }
/* Inside the dark banner the action reads as a solid light button. */
.gs-card--banner .gs-card-button,
.gs-card--banner .gs-card-button:visited {
  background: #ffffff; color: var(--gs-color-primary-dark); border-color: #ffffff;
}
.gs-card--banner .gs-card-button:hover { background: rgba(255, 255, 255, .85); }

.gs-card-text > :last-child { margin-bottom: 0; }
.gs-card-heading { margin: 0 0 var(--gs-space-2); font-weight: 700; font-size: var(--gs-size-h3); line-height: 1.25; }
.gs-card-body { margin: 0 0 var(--gs-space-3); }
.gs-card-stat { margin: 0 0 var(--gs-space-1); font-size: 2.75rem; font-weight: 800; line-height: 1.1; }

/* Media zone — a decorative inline-SVG icon (currentColor, so it follows the
   card's text color and stays AA-irrelevant) or a picked promo image. */
.gs-card-icon { width: 2.75rem; height: 2.75rem; }
.gs-card-media--icon { line-height: 0; }
.gs-card-media img { max-width: 100%; height: auto; display: block; border-radius: var(--gs-radius-md); }

/* ---- named color variants (the ONLY source of card color) ---- */
.gs-card--v-primary { background: var(--gs-color-primary); color: #ffffff; }
.gs-card--v-accent  { background: var(--gs-color-accent);  color: #ffffff; }
.gs-card--v-inverse { background: var(--gs-color-primary-dark); color: #ffffff; }
.gs-card--v-neutral { background: var(--gs-color-bg); color: var(--gs-color-text); border: 1px solid var(--gs-color-border); }
.gs-card--v-surface { background: var(--gs-color-surface); color: var(--gs-color-text); }

/* A link on a dark card must stay white (the gated white-on-variant pair); on a
   light card the heading keeps the text color — the whole card is the target. */
.gs-card-heading .gs-card-link { color: inherit; text-decoration: none; }
.gs-card-heading .gs-card-link:hover { text-decoration: underline; }

/* ---- the inline action (a labelled link styled as a button) ---- */
.gs-card-button {
  display: inline-block;
  padding: var(--gs-space-2) var(--gs-space-4);
  border: .125rem solid transparent;
  border-radius: var(--gs-radius);
  font-weight: 700;
  text-decoration: none;
  line-height: 1.3;
}
/* Solo (Button face) + light-card buttons: filled in the variant color, on the
   page/light surface — each pair (white on primary/accent/primary-dark, text on
   surface) is gated by D1. */
.gs-card-button--primary, .gs-card-button--primary:visited,
.gs-card-button--neutral, .gs-card-button--neutral:visited,
.gs-card-button--surface, .gs-card-button--surface:visited {
  background: var(--gs-color-primary); color: #ffffff; border-color: var(--gs-color-primary);
}
.gs-card-button--accent, .gs-card-button--accent:visited {
  background: var(--gs-color-accent); color: #ffffff; border-color: var(--gs-color-accent);
}
.gs-card-button--inverse, .gs-card-button--inverse:visited {
  background: var(--gs-color-primary-dark); color: #ffffff; border-color: var(--gs-color-primary-dark);
}
.gs-card-button--primary:hover, .gs-card-button--neutral:hover, .gs-card-button--surface:hover,
.gs-card-button--inverse:hover {
  background: var(--gs-color-primary-dark); border-color: var(--gs-color-primary-dark); color: #ffffff;
}
.gs-card-button--accent:hover { filter: brightness(.92); }

/* Inside a dark card, the button inverts to a white outline so it stays visible
   against the card — white text on the (gated) card color. */
.gs-card--v-primary .gs-card-button, .gs-card--v-primary .gs-card-button:visited,
.gs-card--v-accent .gs-card-button,  .gs-card--v-accent .gs-card-button:visited,
.gs-card--v-inverse .gs-card-button, .gs-card--v-inverse .gs-card-button:visited {
  background: transparent; color: #ffffff; border-color: #ffffff;
}
.gs-card--v-primary .gs-card-button:hover,
.gs-card--v-accent .gs-card-button:hover,
.gs-card--v-inverse .gs-card-button:hover { background: rgba(255, 255, 255, .15); filter: none; }

.gs-card-action { margin: var(--gs-space-2) 0 0; }
.gs-card-action--solo { margin: var(--gs-space-3) 0; }

/* ---- whole-card link: ::after overlay makes the card clickable while leaving
   exactly one labelled link in the a11y tree (§12). ---- */
.gs-card--linked { position: relative; }
.gs-card-heading .gs-card-link::after { content: ""; position: absolute; inset: 0; }
.gs-card--linked:focus-within { outline: .25rem solid var(--gs-color-focus); outline-offset: .15rem; }

/* ---- per-face layout tweaks ---- */
.gs-card--cta, .gs-card--stat { text-align: center; align-items: center; }
.gs-card--cta .gs-card-text, .gs-card--stat .gs-card-text { width: 100%; }
.gs-card--promo { flex-direction: row; align-items: center; }
.gs-card--promo .gs-card-media { flex: 0 0 38%; }
@media (max-width: 40rem) {
  .gs-card--promo { flex-direction: column; align-items: stretch; }
  .gs-card--promo .gs-card-media { flex: none; }
}

/* ---- hover is decorative only (a lift on a linked card), reduced-motion-safe ---- */
@media (hover: hover) {
  .gs-card--linked { transition: transform .15s ease, box-shadow .15s ease; }
  .gs-card--linked:hover { transform: translateY(-2px); box-shadow: var(--gs-shadow-3); }
}
@media (prefers-reduced-motion: reduce) {
  .gs-card--linked { transition: none; }
  .gs-card--linked:hover { transform: none; }
}

/* ---- Public Trust Center (doc 22 B3): hub + the resident intake forms ---- */
.gs-trust-intro { color: var(--gs-color-muted); }
.gs-muted { color: var(--gs-color-muted); }

.gs-trust-channels {
  list-style: none;
  margin: var(--gs-space-4) 0;
  padding: 0;
  display: grid;
  gap: var(--gs-space-3);
}
.gs-trust-channel {
  border: .0625rem solid var(--gs-color-border);
  border-radius: var(--gs-radius);
  padding: var(--gs-space-3) var(--gs-space-4);
  background: var(--gs-color-bg);
}
.gs-trust-channel h2 { margin: 0 0 var(--gs-space-1); }
.gs-trust-channel > :last-child { margin-bottom: 0; }
.gs-trust-statement { margin: var(--gs-space-3) 0; }

.gs-trust-form { max-width: 38rem; margin: var(--gs-space-4) 0; }
.gs-field { margin-bottom: var(--gs-space-3); }
.gs-field label {
  display: block;
  font-weight: 700;
  margin-bottom: var(--gs-space-1);
}
.gs-field input,
.gs-field textarea,
.gs-field select {
  width: 100%;
  padding: var(--gs-space-2);
  border: .0625rem solid var(--gs-color-border);
  border-radius: var(--gs-radius);
  background: var(--gs-color-bg);
  color: var(--gs-color-text);
  font: inherit;
}
.gs-field input:focus,
.gs-field textarea:focus,
.gs-field select:focus {
  outline: .1875rem solid var(--gs-color-focus);
  outline-offset: .0625rem;
}

/* A checkbox/radio is a choice control, not a text field. The sizing above is
 * written for a field that owns its row, so it stretches a checkbox's box the
 * full width — the tick centres itself on its own line and the words drop
 * underneath, leaving the control nowhere near the option it belongs to.
 * Proximity IS the meaning for a choice control, so opt them out and lay each
 * option out as control-then-words. Scoped to a fieldset: a `div.gs-field`
 * label still owns its row, bold, as the text fields expect. */
fieldset.gs-field > label {
  display: flex;
  align-items: flex-start;
  gap: var(--gs-space-2);
  font-weight: 400;
  margin-bottom: var(--gs-space-2);
}
.gs-field input[type="checkbox"],
.gs-field input[type="radio"] {
  width: revert;
  flex: 0 0 auto;
  padding: revert;
  border: revert;
  border-radius: revert;
  background: revert;
  margin: 0;
}
/* The options are separated by <br>. Once each label is block-level those only
 * add empty rows. */
fieldset.gs-field > br { display: none; }
.gs-req { color: var(--gs-callout-warning-edge); }

/* The honeypot field: removed from view and the accessibility tree, but still a
 * real focusable input the form posts (kept off-screen, not display:none, so it
 * survives autofill heuristics). */
.gs-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.gs-trust-errors {
  background: var(--gs-color-warning-bg);
  border-left: .25rem solid var(--gs-callout-warning-edge);
  padding: var(--gs-space-2) var(--gs-space-4);
  margin: var(--gs-space-3) 0;
  border-radius: var(--gs-radius);
}
.gs-trust-confirm {
  background: var(--gs-callout-success-bg);
  border-left: .25rem solid var(--gs-color-accent);
  padding: var(--gs-space-3) var(--gs-space-4);
  border-radius: var(--gs-radius);
}

/* Verified answer card (Tier F F6) — the source-grounded service facts that
   lead a search result or a service page. Token-driven like every public
   component; no inline styles anywhere. */
.gs-answer-card {
  background: var(--gs-color-surface, #fff);
  border: 1px solid var(--gs-color-border, #d0d7de);
  border-left: .25rem solid var(--gs-color-accent);
  border-radius: var(--gs-radius);
  padding: var(--gs-space-3) var(--gs-space-4);
  margin: var(--gs-space-3) 0 var(--gs-space-4);
}
.gs-answer-title {
  margin-top: 0;
}
.gs-answer-facts {
  display: grid;
  grid-template-columns: minmax(10rem, max-content) 1fr;
  gap: var(--gs-space-1) var(--gs-space-3);
  margin: 0 0 var(--gs-space-2);
}
.gs-answer-facts dt {
  font-weight: 600;
}
.gs-answer-facts dd {
  margin: 0;
}
@media (max-width: 40rem) {
  .gs-answer-facts {
    grid-template-columns: 1fr;
  }
  .gs-answer-facts dd {
    margin-bottom: var(--gs-space-2);
  }
}
.gs-answer-source {
  font-size: .875rem;
  margin-bottom: 0;
}
