/* ============================================================
   CCCOOP — Cypress Community Multi-Purpose Cooperative
   Stylesheet
   ------------------------------------------------------------
   Sections:
     1. Design tokens (colors, spacing, type)
     2. Base / reset
     3. Layout helpers
     4. Buttons
     5. Header + navigation
     6. Hero
     7. General Assembly card
     8. Stubs & footer
     9. Responsive breakpoints
   ============================================================ */


/* ------------------------------------------------------------
   1. DESIGN TOKENS
   Brand colors sampled directly from the CCCOOP logo.
   ------------------------------------------------------------ */
:root {
  /* ============================================================
     Brand — blue, black, grey.

     The logo is 79% blue and grey already; the magenta and green
     in it are the two small CO-OP figures, and they are the only
     colour anywhere on the site. That is deliberate: the mark
     reads as the brand instead of competing with a page full of
     other colour.

     There are no --green or --magenta tokens. They existed for a
     while as aliases of blue, which let 115 rules go on saying
     "green" while rendering blue; every one has been rewritten to
     name the colour it actually uses.
     ============================================================ */
  /* ---- The logo blue ---------------------------------------
     #2070D0 is sampled straight out of logo.png, unmodified.
     Earlier versions of this palette used a derivative of it —
     first one step deeper, then a navy — and the client asked
     for the mark's own blue. It clears AA at 4.90:1 on white,
     so it can be used for link text as well as for fills.

     The rest of the ramp is derived from it, so hovers and dark
     panels stay the same hue rather than drifting.
     ---------------------------------------------------------- */
  --blue:        #2070D0;   /* primary  — 4.90:1 on white */
  --blue-dark:   #1957A2;   /* hover, pressed — 7.18:1 */
  --blue-deep:   #0E325E;   /* deepest panels and gradient stops */
  --blue-light:  #EAF2FD;   /* tinted fills */
  --blue-mid:    #8CB7E8;   /* rules; links on the dark footer (8.86:1) */

  --charcoal:    #0F1419;   /* headings */

  /* ------------------------------------------------------------
     Status. These are the one exception to blue/black/grey, and
     they are functional rather than decorative: a failed field and
     a saved record have to be told apart at a glance, and red is
     the only colour a reader already knows for "this is wrong".
     Both are desaturated so they read as signals, not decoration.
     Use them in notices, validation and status pills ONLY.
     ------------------------------------------------------------ */
  --ok:          #1F7A4D;
  --ok-light:    #ECF5F0;
  --ok-line:     #BFDDCD;
  --warn-line:   #F0E2C2;
  --danger-line: #F2CBD2;
  --warn:        #8A5A00;
  --warn-light:  #FBF3E3;
  --danger:      #B3253A;
  --danger-soft: #D4526E;
  --danger-light:#FBEDEF;

  /* Neutrals. Nearly black at the top so headings read as black,
     then a plain grey ramp. Barely any blue cast — the blue should
     come from the blue, not from the grey. */
  --ink:         #0F1419;   /* headings — reads as black */
  --body:        #454E58;   /* paragraph text */
  --muted:       #6B7681;   /* captions — 4.63:1 on white, the lightest
                               grey that still clears AA at small sizes */
  --line:        #E1E5EA;   /* borders and rules */
  --surface:     #FFFFFF;   /* cards */
  --paper:       #FFFFFF;   /* the page itself */
  --canvas:      #F4F6F9;   /* tinted bands */

  /* Elevation — Design B's softer spread, on the cool neutral. */
  --shadow-sm: 0 2px 6px rgba(15, 20, 25, .06);
  --shadow-md: 0 10px 28px -10px rgba(15, 20, 25, .14);
  --shadow-lg: 0 26px 60px -22px rgba(15, 20, 25, .22);

  /* Shape — nothing is hard-edged in Design B. */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-pill: 999px;

  /* Layout */
  --container: 1200px;
  --header-h: 76px;

  /* Type */
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, Helvetica, Arial, sans-serif;
}


/* ------------------------------------------------------------
   2. BASE / RESET
   ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; font-weight: 800; letter-spacing: -0.02em; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a  { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}


/* ------------------------------------------------------------
   3. LAYOUT HELPERS
   ------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 24px;
}


/* ------------------------------------------------------------
   4. BUTTONS
   ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease,
              border-color .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }

.btn-lg    { padding: 15px 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* Solid brand blue */
.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(32, 112, 208, .45);
}
.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 10px 22px -6px rgba(32, 112, 208, .55);
  transform: translateY(-1px);
}

/* The committing action — submit, verify, apply. Distinct from
   .btn-primary by weight rather than by hue: there is only one colour
   now, so the heavier blue is what marks a button as final. */
.btn-commit {
  background: var(--blue-dark);
  color: #fff;
  box-shadow: 0 6px 16px -4px rgba(25, 87, 162, .42);
}
.btn-commit:hover {
  background: var(--blue-deep);
  box-shadow: 0 10px 22px -6px rgba(25, 87, 162, .52);
  transform: translateY(-1px);
}

/* Bordered */
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }

/* Text-only */
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--blue-light); color: var(--blue); }


/* ------------------------------------------------------------
   5. HEADER + NAVIGATION
   ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
/* .is-stuck is toggled by main.js once the page is scrolled */
.site-header.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand img { height: 34px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-inline: auto;
}
.nav > a,
.nav-forms > a {
  position: relative;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--body);
  transition: color .18s ease, background-color .18s ease;
}
.nav > a:hover,
.nav-forms > a:hover { color: var(--blue); background: var(--blue-light); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-actions-mobile { display: none; }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin-inline: auto;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ------------------------------------------------------------
   6. HERO
   ------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--canvas) 100%);
  padding-block: 72px 0;
}

/* Soft brand-colored glows behind the content */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .30;
}
.blob-1    { width: 520px; height: 520px; top: -180px; left: -140px;  background: var(--blue); }
.blob-2 { width: 420px; height: 420px; top: -120px; right: 4%;     background: var(--blue-deep); opacity: .13; }
.blob-3   { width: 380px; height: 380px; bottom: -180px; right: 22%; background: var(--blue-mid); opacity: .26; }

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: 24px 8px;
}

/* --- Left column ------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
}
.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light);
}

.hero-title {
  margin-top: 24px;
  font-size: clamp(2.05rem, 3.7vw, 2.9rem);
  letter-spacing: -0.035em;
}
/* Theme colours, straight from the logo.
   .lead   the opening clause   .accent  the closing words */
.hero-title .lead   { color: var(--blue); }
.hero-title .accent { color: var(--ink); }

.hero-sub {
  max-width: 60ch;
  margin-top: 22px;
  font-size: 18px;
  line-height: 1.65;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 34px;
}

/* Trust stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 46px 0 0;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.hero-stats dt {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.hero-stats dd {
  margin: 4px 0 0;
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.hero-stats dd span { color: var(--blue); }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  width: 24px;
  height: 38px;
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  display: grid;
  place-items: start center;
  padding-top: 7px;
}
.scroll-hint span {
  width: 4px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot {
  0%, 100% { transform: translateY(0);    opacity: 1; }
  50%      { transform: translateY(11px); opacity: .3; }
}


/* ------------------------------------------------------------
   7. GENERAL ASSEMBLY CARD
   ------------------------------------------------------------ */
.ga-card {
  position: relative;
  padding: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}
/* Brand stripe along the top edge */
.ga-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue) 55%, var(--blue-mid));
}

.ga-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ga-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  background: var(--blue-light);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--blue-dark);
}
.ga-badge .pulse {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--blue);
}
.ga-badge .pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  animation: pulseRing 1.9s ease-out infinite;
}
@keyframes pulseRing {
  0%   { transform: scale(.5); opacity: .9; }
  100% { transform: scale(1.5); opacity: 0; }
}

.ga-year {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .08em;
}

.ga-title { margin-top: 18px; font-size: 27px; letter-spacing: -0.03em; }
.ga-desc  { margin-top: 10px; font-size: 15px; }

/* Detail rows */
.ga-meta {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  padding: 20px;
  background: var(--canvas);
  border-radius: var(--r-lg);
}
.ga-meta li { display: flex; align-items: center; gap: 13px; }
.ga-meta strong { display: block; font-size: 14.5px; font-weight: 700; color: var(--ink); }
.ga-meta small  { display: block; font-size: 12.5px; color: var(--muted); }

.ga-ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
}
.ga-ico-blue    { background: var(--blue-light);    color: var(--blue); }
.ga-ico-magenta { background: var(--blue-light); color: var(--blue); }
.ga-ico-green   { background: var(--blue-light);   color: var(--blue-dark); }

/* Countdown */
.ga-countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 22px 0;
}
.cd-unit {
  padding: 12px 6px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.cd-unit b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.cd-unit span {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .07em;
}


/* ------------------------------------------------------------
   8. SECTION STUB (temporary, replaced as we build)
   ------------------------------------------------------------ */
.section-stub {
  padding-block: 80px;
  text-align: center;
  color: var(--muted);
  border-top: 1px solid var(--line);
}


/* ------------------------------------------------------------
   9. RESPONSIVE
   ------------------------------------------------------------ */

/* Tablet — stack the hero, keep the desktop nav */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-sub   { max-width: 60ch; }
  .hero-panel { max-width: 480px; }
  .scroll-hint { display: none; }
  .nav > a,
  .nav-forms > a { padding-inline: 10px; font-size: 14.5px; }
}

/* Mobile — drawer navigation */
@media (max-width: 860px) {
  :root { --header-h: 66px; }

  .nav-toggle    { display: flex; }
  /* Only where there is a drawer for the buttons to move into, which is the
     home page: its Login sits inside the menu. Every other page has no menu,
     so hiding its header buttons took Sign out away from every member and
     administrator on a phone, and "Back to the site" from everyone else. */
  .nav ~ .header-actions { display: none; }
  .header-actions .btn { padding: 9px 14px; font-size: 14px; }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    padding: 16px 24px 26px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);

    /* Hidden by default; .is-open is toggled by main.js */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav > a,
  .nav-forms > a { padding: 13px 14px; font-size: 16px; }

  .nav-actions-mobile {
    display: grid;
    gap: 10px;
    margin-top: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }
  .nav-actions-mobile .btn { width: 100%; padding-block: 13px; }
  /* Give the ghost button an edge so it reads as a button, not a link */
  .nav-actions-mobile .btn-ghost {
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
  }

  /* Soften the background glows so hero text keeps its contrast */
  .blob-2 { opacity: .13; }
  .blob-1    { opacity: .20; }

  .brand img  { height: 28px; }
  .hero       { padding-block: 48px 64px; }
  /* The theme line keeps its own breaks here. Hiding the <br> ran the
     clauses together, because main.js builds the headline as spans with
     no whitespace between them. */
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-stats { gap: 28px; }
  .hero-stats dd { font-size: 25px; }
  .ga-card    { padding: 24px 20px; }
}

/* Small phones */
@media (max-width: 420px) {
  .hero-stats { gap: 20px 26px; }
  .ga-countdown { gap: 6px; }
  .cd-unit b { font-size: 19px; }
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
}


/* ============================================================
   10. AUTHENTICATION PAGES (login)
   ============================================================ */

.auth-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--canvas) 100%);
  overflow-x: hidden;
}

.auth-bg { position: fixed; inset: 0; pointer-events: none; z-index: 0; }

.auth-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 40px 24px;
}

.auth-brand { display: block; width: fit-content; margin: 0 auto 28px; }
.auth-brand img { height: 38px; width: auto; }

.auth-card {
  padding: 34px 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
}

.auth-title { font-size: 25px; letter-spacing: -0.03em; }
.auth-lead  { margin-top: 10px; font-size: 15px; line-height: 1.6; }
.auth-lead strong { color: var(--ink); font-weight: 600; word-break: break-word; }

.auth-help {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  text-align: center;
}

.auth-foot {
  margin-top: 24px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.auth-foot a { color: var(--body); }
.auth-foot a:hover { color: var(--blue); text-decoration: underline; }
.auth-foot span { margin-inline: 8px; }

/* "Use a different email" */
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color .18s ease;
}
.auth-back:hover { color: var(--blue); }

/* --- Form fields ------------------------------------------- */
.field { display: block; margin-top: 24px; }

.field-label {
  display: block;
  margin-bottom: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.field-input {
  width: 100%;
  padding: 13px 15px;
  font: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.field-input::placeholder { color: #B9C2CC; }
/* iPhone Safari zooms the whole page in when a field under 16px is
   tapped, and leaves it zoomed. On a touch screen every field is 16px;
   the mouse-and-keyboard size above is unchanged. */
@media (hover: none) and (pointer: coarse) {
  .field-input, select.field-input, textarea.field-input { font-size: 16px; }
}
.field-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(32, 112, 208, .14);
}

/* The 6-digit code gets its own treatment */
.code-input {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 12px;
  text-indent: 12px;   /* keeps the digits optically centred */
  padding-block: 16px;
  font-variant-numeric: tabular-nums;
}
.code-input::placeholder { letter-spacing: 12px; font-weight: 600; }

/* --- Inline feedback ---------------------------------------- */
.auth-feedback {
  margin-top: 12px;
  padding: 11px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  border-radius: var(--r-md);
}
.auth-feedback.is-error {
  color: var(--danger);
  background: var(--danger-light);
  border: 1px solid var(--danger-line);
}
.auth-feedback.is-success {
  color: var(--ok);
  background: var(--ok-light);
  border: 1px solid var(--ok-line);
}

/* --- Button busy state --------------------------------------- */
.btn .spinner { display: none; }
.btn.is-busy .btn-label { opacity: .55; }
.btn.is-busy .spinner {
  display: block;
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.btn:disabled { cursor: not-allowed; opacity: .8; }
.btn:disabled:hover { transform: none; }

.field + .btn, .auth-feedback + .btn { margin-top: 20px; }

/* Text styled as a link, but semantically a button */
.link-button {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
  text-decoration: underline;
}
.link-button:disabled {
  color: var(--muted);
  cursor: default;
  text-decoration: none;
}

@media (max-width: 480px) {
  .auth-wrap { padding: 28px 18px; }
  .auth-card { padding: 26px 20px; }
  .code-input { font-size: 25px; letter-spacing: 9px; text-indent: 9px; }
}

/* Signed-in member badge in the dashboard header */
.member-chip {
  padding: 7px 13px;
  background: var(--blue-light);
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .member-chip { display: none; }
}


/* ============================================================
   11. FORM PAGES (registration + admin)
   ============================================================ */

.form-page { padding-block: 44px 90px; max-width: 900px; }

.form-page-title { margin-top: 18px; font-size: clamp(1.8rem, 3.2vw, 2.3rem); }
.form-page-sub   { margin-top: 10px; font-size: 15px; color: var(--body); }

/* The banner an admin sets on the form. Cropped to the same wide band the
   builder previews, so a tall photograph cannot push the first question
   below the fold. */
.ga-banner {
  width: 100%;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  margin-bottom: 26px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

/* --- Notices ------------------------------------------------ */
.notice {
  margin-top: 22px;
  padding: 14px 18px;
  font-size: 14px;
  line-height: 1.6;
  border-radius: var(--r-md);
}
.notice strong { display: inline; margin-right: 4px; }
.notice-success { color: var(--ok);        background: var(--ok-light);   border: 1px solid var(--ok-line); }
.notice-warn    { color: var(--warn);          background: var(--warn-light);            border: 1px solid var(--warn-line); }

/* --- Sections ----------------------------------------------- */
.form-section { margin-top: 32px; }
.form-section-title {
  margin-bottom: 4px;
  padding-bottom: 10px;
  font-size: 17px;
  border-bottom: 1px solid var(--line);
}
.form-section-body { display: grid; gap: 20px; padding-top: 20px; }

.form-field { display: block; }
.form-field .field-label { display: block; margin-bottom: 7px; }
.form-field.has-error .field-input { border-color: var(--danger-soft); }
.form-field.has-error .field-input:focus { box-shadow: 0 0 0 4px rgba(212, 82, 110, .14); }

.field-help  { margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.field-error { margin-top: 6px; font-size: 13px; color: var(--danger); }
.field-error:empty { display: none; }

.form-note {
  padding: 16px 18px;
  background: var(--canvas);
  border-radius: var(--r-md);
  font-size: 14px;
  line-height: 1.65;
}
.form-note strong { display: block; margin-bottom: 6px; color: var(--ink); }
.form-note p { color: var(--body); }

/* --- Choices ------------------------------------------------ */
.choice-group { display: grid; gap: 10px; }

.choice-row, .consent-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 14.5px;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.choice-row:hover, .consent-row:hover { border-color: var(--blue); background: var(--blue-light); }
.choice-row input, .consent-row input { margin-top: 2px; accent-color: var(--blue); flex: none; }

/* A choice can carry its own picture — a candidate's photograph on a
   ballot. Block, so it sits under the name rather than beside it. */
.choice-image {
  display: block;
  max-width: 100%;
  max-height: 200px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.consent-row strong { display: block; color: var(--ink); }
.consent-row small  { display: block; margin-bottom: 8px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
/* An explicit display beats the UA sheet's [hidden] rule, so a hidden
   .form-actions would otherwise stay on screen. */
.form-actions[hidden] { display: none; }

/* --- Admin tabs --------------------------------------------- */
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 28px 0 26px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line);
}
.admin-tab {
  padding: 11px 17px;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  transition: color .18s ease, border-color .18s ease;
}
.admin-tab:hover { color: var(--ink); }
.admin-tab.is-active { color: var(--blue); border-bottom-color: var(--blue); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.form-grid .field { margin-top: 0; }
.field-wide { grid-column: 1 / -1; }

.toggle-row { display: grid; gap: 10px; margin-top: 24px; }

/* --- Form builder rows --------------------------------------- */
.field-row {
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.field-row-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.field-row-index {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  flex: none;
  background: var(--blue-light);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}
.field-row-summary {
  flex: 1;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.field-row-controls { display: flex; gap: 5px; flex: none; }

.icon-btn {
  width: 30px; height: 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--body);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.icon-btn:hover:not(:disabled) { border-color: var(--blue); color: var(--blue); }
.icon-btn.is-danger:hover      { border-color: var(--danger-soft); color: var(--danger-soft); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }

.field-row-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 18px 16px;
}
.field-row-body .field { margin-top: 0; }
.field-row-body .consent-row { grid-column: 1 / -1; }

/* --- Responses table ------------------------------------------ */
.stat-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 24px; }
.stat-box {
  padding: 16px 22px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.stat-box-label { display: block; font-size: 12.5px; color: var(--muted); }
.stat-box-value { display: block; margin-top: 4px; font-size: 26px; color: var(--ink); letter-spacing: -.02em; }

.table-scroll { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table th { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.data-table td { color: var(--ink); }

@media (max-width: 700px) {
  .form-grid, .field-row-body { grid-template-columns: 1fr; }
}


/* ============================================================
   12. E-ELECTION BALLOT
   ============================================================ */

.ballot-group { margin-top: 42px; }
.ballot-group-title {
  padding-bottom: 12px;
  font-size: 20px;
  border-bottom: 2px solid var(--blue);
}

.ballot-position, .ballot-proposal {
  margin-top: 24px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.ballot-position.has-error, .ballot-proposal.has-error { border-color: var(--danger-soft); }

.ballot-position-title { font-size: 18px; }
.ballot-guidelines { margin-top: 6px; font-size: 14px; color: var(--body); }

.ballot-counter {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 12px;
  background: var(--canvas);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.ballot-counter.is-complete { background: var(--ok-light); color: var(--ok); }

.ballot-position .choice-group { margin-top: 16px; }

.candidate-row strong { display: block; font-size: 15px; color: var(--ink); }
.candidate-row small  { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }

/* A submitted form read back: the fields are disabled so nothing can be
   typed, but they are the member's own answers, not greyed-out controls,
   so they keep their full colour. */
.gform-readonly .field-input:disabled,
.gform-readonly .choice-row:has(input:disabled) {
  opacity: 1;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  cursor: default;
}
.gform-readonly .choice-row:has(input:disabled:not(:checked)) { opacity: .55; }
.gform-readonly .choice-row:hover { border-color: var(--line); }
.gform-readonly .gform-required-note { display: none; }

/* Greyed out once the maximum number of choices is reached */
.choice-row.is-disabled {
  opacity: .45;
  cursor: not-allowed;
  background: var(--canvas);
}
.choice-row.is-disabled:hover { border-color: var(--line); background: var(--canvas); }

/* Selected state */
.choice-row:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-light);
}

.ballot-proposal-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.ballot-proposal-title { margin-top: 8px; font-size: 17px; }

.yesno-group { display: flex; gap: 12px; margin-top: 16px; }
.yesno-option {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.yesno-option:hover { border-color: var(--blue); }
.yesno-option input { accent-color: var(--blue); }
.yesno-option:has(input:checked) {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue-dark);
}

/* --- Receipt -------------------------------------------------- */
.receipt-box {
  margin-top: 22px;
  padding: 24px;
  background: var(--canvas);
  border: 1px dashed var(--blue);
  border-radius: var(--r-lg);
  text-align: center;
}
.receipt-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}
.receipt-code {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 800;
  color: var(--blue);
  letter-spacing: 3px;
  word-break: break-all;
}
.receipt-note {
  max-width: 46ch;
  margin: 12px auto 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

/* --- Results (admin) ------------------------------------------ */
.result-bar-row { margin-bottom: 14px; }
.result-bar-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
  font-size: 14px;
}
.result-bar-head strong { color: var(--ink); }
.result-bar-track {
  height: 10px;
  background: var(--canvas);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.result-bar-fill {
  height: 100%;
  background: var(--blue);
  border-radius: var(--r-pill);
}
.result-bar-row.is-elected .result-bar-fill { background: var(--ok); }
.result-bar-row.is-elected strong::after {
  content: " ✓";
  color: var(--ok);
}

.tie-warning {
  margin: 10px 0 16px;
  padding: 11px 14px;
  background: var(--warn-light);
  border: 1px solid var(--warn-line);
  border-radius: var(--r-md);
  font-size: 13.5px;
  color: var(--warn);
}

@media (max-width: 560px) {
  .yesno-group { flex-direction: column; }
  .ballot-position, .ballot-proposal { padding: 18px 16px; }
}


/* ============================================================
   13. HERO STATS BAR  (single-column hero)
   ============================================================ */

.hero-stats-bar {
  position: relative;
  margin-top: 64px;
  padding-block: 34px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-dark) 60%, var(--blue));
}
.hero-stats-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.hstat {
  padding: 6px 18px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, .16);
}
.hstat:last-child { border-right: 0; }

.hstat-num {
  display: block;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -.03em;
}
.hstat-num span { color: rgba(255, 255, 255, .62); }
.hstat-label {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, .72);
}

@media (max-width: 700px) {
  .hero-stats-inner { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .hstat:nth-child(2n) { border-right: 0; }
}


/* ============================================================
   14. FORM CARDS + ADMIN BUILDER
   ============================================================ */

.form-card {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.form-card:hover { border-color: var(--blue); box-shadow: var(--shadow-sm); }
.form-card-main { flex: 1; min-width: 0; }
.form-card-main strong { display: block; font-size: 15.5px; color: var(--ink); }
.form-card-main small {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-card-kind {
  flex: none;
  padding: 5px 11px;
  background: var(--blue-light);
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--blue);
}
.form-card-kind.is-ballot { background: var(--blue-light); color: var(--blue); }

.status-pill {
  flex: none;
  padding: 5px 11px;
  border-radius: var(--r-pill);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: capitalize;
}
.status-pill.is-open   { background: var(--ok-light);   color: var(--ok); }
.status-pill.is-closed { background: var(--danger-light);            color: var(--danger); }
.status-pill.is-draft  { background: var(--canvas);      color: var(--muted); }

.add-item-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}
.add-item-bar .field-input { flex: 1; min-width: 180px; }

.item-image-preview,
.form-item-image {
  width: auto;
  max-width: 100%;
  max-height: 260px;
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}

.form-image { margin: 20px 0; text-align: center; }
/* Never upscale past the image's own size — a small picture stretched to
   full width looks broken. */
.form-image img {
  width: auto;
  max-width: 100%;
  max-height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.form-image figcaption {
  margin-top: 8px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 620px) {
  .form-card { flex-wrap: wrap; }
  .form-card-main { flex-basis: 100%; }
}

/* Form links sit inline with the other menu items */
.nav-forms { display: contents; }

@media (max-width: 860px) {
  /* display:contents would break the drawer's column layout */
  .nav-forms { display: flex; flex-direction: column; }
}


/* ============================================================
   15. DECK STYLING
   Taken from the cooperative's PowerPoint template:
   a small uppercase label, a heavy heading, and a grid of
   pastel cards that rotate through three steps of one blue-grey.
   ============================================================ */

/* The card tints that used to live here fed .tile, which was removed
   with the Duties section. Nothing referenced them any more. */

.section { padding-block: 92px; }
.section-tint { background: var(--canvas); }

/* --- Section header ----------------------------------------- */
.section-eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .16em;
}

.section-title {
  margin-top: 12px;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -.03em;
}

.section-lead {
  max-width: 62ch;
  margin-top: 14px;
  font-size: 17px;
  line-height: 1.7;
}

.section-head { margin-bottom: 44px; }

/* --- Numbered card grid -------------------------------------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

/* --- Letter cards (the ASENSO values) ------------------------- */
.letter-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.letter-card {
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: transform .25s ease, box-shadow .25s ease;
}
.letter-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }

.letter-mark {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  color: var(--blue);
  opacity: .18;
}
.letter-card h3 { margin-top: 6px; font-size: 16px; }
.letter-card p  { margin-top: 8px; font-size: 13.5px; line-height: 1.65; }

/* --- Footer --------------------------------------------------- */
.site-footer {
  padding-block: 40px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { height: 30px; width: auto; }

/* The cooperative's strapline, straight from the deck */
.footer-strap {
  padding-left: 14px;
  border-left: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
.footer-strap em { font-style: normal; font-weight: 700; color: var(--blue); }

.footer-note { font-size: 13px; color: var(--muted); line-height: 1.7; }
/* The registration numbers. Set in tabular figures because they are read
   digit by digit, against a document, by someone checking they match. */
.footer-reg {
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  opacity: .85;
}

@media (max-width: 900px) {
  .card-grid, .letter-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .section { padding-block: 64px; }
  .card-grid, .letter-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}


/* ============================================================
   17. ABOUT — timeline, mission cards
   ============================================================ */

/* --- Milestone timeline --------------------------------------- */
.timeline {
  --timeline-gap: 18px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--timeline-gap);
  margin-top: 8px;
}
/* The connecting line sits behind the year badges, and ends on the outer two
   rather than past them. A flat 6% was a guess at where their centres are: a
   column is (100% - five gaps) / 6 wide, so the first badge's centre is half
   of that from the left, and the last the same from the right. */
.timeline::before {
  content: "";
  position: absolute;
  top: 19px;
  left: calc((100% - 5 * var(--timeline-gap)) / 12);
  right: calc((100% - 5 * var(--timeline-gap)) / 12);
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blue-deep), var(--blue) 55%, var(--blue-mid));
}

/* The grid stretches each milestone to the height of the tallest, but the card
   inside it was sized by its own text, so six cards hanging off one line ended
   at six different heights. The card takes the leftover height instead. */
.milestone {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.milestone-year {
  position: relative;
  z-index: 1;
  /* As a flex item it would stretch the full column; this keeps it the width
     of the year it holds, centred over the card, where the line meets it. */
  align-self: center;
  display: inline-grid;
  place-items: center;
  min-width: 68px;
  height: 40px;
  padding-inline: 12px;
  background: var(--surface);
  border: 3px solid var(--blue);
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 800;
  color: var(--blue);
}
/* Every year badge is the same now. The rotation existed only to
   cycle three brand colours, and one blue reads as a sequence. */

.milestone-body {
  /* Fills whatever height the tallest milestone sets, with its text centred in
     it — otherwise "Released the new identity" would sit alone at the top of a
     card as tall as the four-line one beside it. */
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-top: 16px;
  padding: 16px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  font-size: 13px;
  line-height: 1.6;
}
.milestone-body strong { color: var(--ink); }

/* --- Mission / Vision / Social --------------------------------- */
.mv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}
/* Three solid blue blocks side by side, each a different blue, was a great
   deal of colour for the quietest statement on the page — and three different
   blues made them read as three unrelated things rather than one set. They are
   the same white card the programmes and services use, which is what the rest
   of the page is built from, with the colour spent on the icon alone. */
.mv-card {
  padding: 32px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-sm);
}

.mv-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  /* The glyphs are stroke="currentColor", so this one colour sets them. */
  color: var(--blue);
  background: var(--blue-light);
  border-radius: 14px;
}
.mv-card h3 { font-size: 19px; color: var(--ink); }
.mv-card p  { margin-top: 10px; font-size: 14.5px; line-height: 1.75; color: var(--body); }

/* --- Programs -------------------------------------------------- */
.program-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.program-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.program-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 15px;
}
.program-card h3 { font-size: 17.5px; }
.program-card p  { margin-top: 10px; font-size: 14px; line-height: 1.7; }

.program-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.program-tags span {
  padding: 5px 11px;
  background: var(--canvas);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  color: var(--body);
}

@media (max-width: 1000px) {
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .timeline::before { display: none; }
  .mv-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .timeline { grid-template-columns: 1fr; }
}


/* ============================================================
   18. CONTACT
   ============================================================ */

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: start;
}

.contact-details { display: grid; gap: 22px; }

.contact-item { display: flex; gap: 15px; align-items: flex-start; }
.contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
}
.contact-item strong { display: block; font-size: 15px; color: var(--ink); }
.contact-item p { margin-top: 4px; font-size: 14px; line-height: 1.65; color: var(--body); }
.contact-item a { color: var(--blue); }
.contact-item a:hover { text-decoration: underline; }
/* A qualifier beside a detail — "Viber", "closed at weekends" — that should
   not read with the same weight as the detail itself. */
.contact-muted { color: var(--muted); }

.contact-form-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-md);
}
.contact-form-card h3 { font-size: 19px; }
.contact-form-card .form-page-sub { margin-top: 8px; font-size: 14px; }
.contact-form-card #contactFields { display: grid; gap: 18px; margin-top: 24px; }
.contact-form-card .form-field .field-label { display: block; margin-bottom: 6px; }

@media (max-width: 860px) {
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .contact-form-card { padding: 24px 20px; }
}


/* ============================================================
   19. MOTION
   Everything here is disabled by the prefers-reduced-motion rule
   in section 9, so nothing moves for anyone who asks it not to.
   ============================================================ */

/* Easing that decelerates hard at the end — movement settles rather
   than stopping abruptly. */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* --- Scroll reveal -------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s var(--ease-out), transform .75s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* Cards rise from slightly further, and scale up a touch */
.reveal-card {
  opacity: 0;
  transform: translateY(32px) scale(.97);
  transition: opacity .7s var(--ease-out), transform .7s var(--ease-out);
}
.reveal-card.is-visible { opacity: 1; transform: none; }

/* --- Hero entrance -------------------------------------------- */
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}
.hero-main > *,
.hero-ga-card {
  opacity: 0;
  animation: heroIn .85s var(--ease-out) forwards;
}
.hero-main > *:nth-child(1) { animation-delay: .05s; }
.hero-main > *:nth-child(2) { animation-delay: .18s; }
.hero-main > *:nth-child(3) { animation-delay: .31s; }
.hero-ga-card { animation-delay: .24s; }

/* The hero's own column. Exists so the card can sit beside the whole block
   rather than beside one line of it. */
.hero-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.hero-stats-bar { opacity: 0; animation: heroIn .9s var(--ease-out) .44s forwards; }

/* Blobs drift slowly, so the background is never quite static */
@keyframes drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(24px, -18px) scale(1.06); }
  66%      { transform: translate(-18px, 14px) scale(.96); }
}
.blob-1    { animation: drift 22s ease-in-out infinite; }
.blob-2 { animation: drift 27s ease-in-out infinite reverse; }
.blob-3   { animation: drift 31s ease-in-out infinite; }

/* --- Counters --------------------------------------------------- */
.hstat-num [data-count] { font-variant-numeric: tabular-nums; }

/* --- Navigation ------------------------------------------------- */
/* Underline that grows from the centre on hover and for the current section */
.nav > a,
.nav-forms > a { position: relative; }

.nav > a::after,
.nav-forms > a::after {
  content: "";
  position: absolute;
  left: 50%;
  right: 50%;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--blue);
  transition: left .28s var(--ease-out), right .28s var(--ease-out);
}
.nav > a:hover::after,
.nav-forms > a:hover::after,
.nav > a.is-current::after {
  left: 14px;
  right: 14px;
}
.nav > a.is-current { color: var(--blue); }

/* --- Interactive polish ----------------------------------------- */
.letter-card,
.program-card,
.org-card,
.form-card,
.mv-card{
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out),
              border-color .3s var(--ease-out);
}
/* A white card lifting needs less shadow than a saturated one did, and the
   border carries the hover as much as the shadow. */
.mv-card:hover {
  transform: translateY(-5px);
  border-color: var(--blue-mid);
  box-shadow: var(--shadow-md);
}

/* Milestone dots pop slightly when their card is revealed */
.milestone-year { transition: transform .4s var(--ease-out); }
.milestone:hover .milestone-year { transform: scale(1.08); }

/* Buttons get a soft lift already; add a pressed state that feels physical */
.btn { transition: transform .18s var(--ease-out), box-shadow .25s var(--ease-out),
                   background-color .2s ease, border-color .2s ease, color .2s ease; }

/* Links in the footer */
.footer-brand img { transition: transform .3s var(--ease-out); }
.footer-brand:hover img { transform: scale(1.04); }

/* On mobile the reveal distance is shorter — long travel feels sluggish
   on a small screen. */
@media (max-width: 700px) {
  .reveal { transform: translateY(16px); }
  .reveal-card { transform: translateY(18px) scale(.98); }
}

/* Anyone who asks for less motion gets none of the above. */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-card { opacity: 1 !important; transform: none !important; }
  .hero-inner > *, .hero-stats-bar { opacity: 1 !important; animation: none !important; }
  .blob-1, .blob-2, .blob-3 { animation: none !important; }
  .hero-ga-card { transition: none !important; translate: none !important; }
  .ga-card-status .pulse::after,
  .ga-cd-num { animation: none !important; }
  .ga-progress-fill, .btn-arrow .btn-arrow-glyph { transition: none !important; }
}


/* ============================================================
   20. ORGANISATIONAL CHART
   Modelled on the "CCCOOP in a glance" slides: dark header
   bars, pale blue group boxes, photo cards, connector lines.
   ============================================================ */

/* The chart is a dense diagram rather than prose, so it does not need the
   full 92px band the airier sections use. */
#leadership { padding-block: 64px; }

.org-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 34px;
}
.org-tab {
  padding: 11px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font: inherit;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--body);
  cursor: pointer;
  transition: background-color .22s var(--ease-out), color .22s var(--ease-out),
              border-color .22s var(--ease-out);
}
.org-tab:hover { border-color: var(--blue); color: var(--blue); }
.org-tab.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

/* No scrollbar. The drawing is scaled to the width available instead, by
   fitOrgChart() in main.js, and the panel is given the scaled height. */
.org-chart { overflow: hidden; padding-bottom: 8px; }

/* The chart breaks out of the 1200px reading column and takes the window. It
   is a drawing, not prose: the column exists to keep a line of text short,
   and holding a fifteen-person chart to it only forced the scale down.

   The width is set by main.js from documentElement.clientWidth, not from
   100vw here: on most desktop browsers 100vw includes the scrollbar, so a
   vw-based breakout overflows by its width and gives the page the sideways
   scrollbar this whole approach exists to avoid. */
#orgChart { max-width: none; }

/* The drawing itself, at its natural size. main.js measures this and scales
   it; width: max-content is what lets it report a natural width wider than
   the panel rather than being squeezed into it. */
.org-fit {
  width: max-content;
  max-width: none;
  transform-origin: top left;
}

/* ---------------------------------------------------------------
   The chart follows the cooperative's own printed chart: flat
   dark bars, pale blue group panels, white cards outlined in a
   hairline, and thin rules joining them. Nothing here is gradient
   fashion — it is a drawing the members already recognise.
   --------------------------------------------------------------- */

/* The colour of every joining line. */
:root { --org-rule: #3C3C3C; }

/* --- Banner bars --------------------------------------------- */
.org-banner {
  position: relative;
  width: fit-content;
  min-width: 240px;
  margin: 0 auto 10px;
  padding: 6px 26px;
  background: var(--blue);
  border: 1px solid var(--blue-deep);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
  /* The printed chart outlines its bar text; this is the restrained
     equivalent that survives at small sizes. */
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
/* Short connector between stacked banners */
.org-banner + .org-banner { margin-top: 0; }
.org-banner:not(:last-of-type)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -14px;
  width: 1px;
  height: 14px;
  background: var(--org-rule);
}

/* --- Group row ------------------------------------------------ */
.org-row {
  position: relative;
  display: flex;
  /* No wrapping: main.js sizes each panel to its contents and gives the row
     the width that needs, which .org-chart scrolls. Wrapping was what let a
     tier break into an uneven staircase. */
  flex-wrap: nowrap;
  justify-content: center;
  /* Panels end where their contents end. Stretching them to a shared height
     is NOT what the printed chart does — its Election and Audit panels are
     visibly shorter than the Board's — and forcing it left tall empty blue
     areas beneath every smaller panel. */
  align-items: flex-start;
  gap: 12px;
  padding-top: 22px;
}
/* Vertical drop out of the banner stack… */
.org-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 11px;
  background: var(--org-rule);
}
/* …then the horizontal rule the groups hang from. main.js measures the
   outer panels and sets the two offsets so the rule ends exactly on their
   drop lines; the percentages are only the fallback before it runs. */
/* Five committees and five more are one band of ten continued onto a second
   line, not a tier hanging off the first. Drawing a connector between them
   would claim a hierarchy that does not exist, so a continued row keeps the
   spacing and drops the lines. */
.org-row-continued { padding-top: 12px; }
.org-row-continued::before,
.org-row-continued::after { display: none; }
.org-row-continued .org-box::before { display: none; }

.org-row::after {
  content: "";
  position: absolute;
  top: 11px;
  left: var(--org-rule-left, 14%);
  right: var(--org-rule-right, 14%);
  height: 1px;
  background: var(--org-rule);
  /* One panel on the line means nothing to join. */
  opacity: calc(1 - var(--org-rule-hidden, 0));
}

/* --- Group box ------------------------------------------------ */
.org-box {
  position: relative;
  /* main.js sets the real flex from how many people the panel holds — the two
     charts are different shapes and one rule cannot serve both. A single 74px
     card plus the panel's own padding needs about 92px, which is the floor. */
  flex: 1 1 200px;
  min-width: 92px;
  padding: 0 0 9px;
  background: linear-gradient(165deg, #CFE6FB 0%, #9EC9EC 100%);
  border: 1px solid #6E9FC8;
  border-radius: 3px;
  /* NOT overflow:hidden. The line joining this panel to the one above is
     drawn just outside its top edge, and hiding the overflow clipped every
     one of them away. The title bar rounds its own corners instead. */
}

/* A committee panel carries its chairperson above the blue, so for those the
   surface moves inwards to .org-box-body and the box itself becomes a bare
   column. It is done this way round deliberately: the admin editor builds its
   own .org-box markup with no body inside it, and moving the surface for
   every panel would leave every panel in that editor unstyled. */
.org-box.has-chair {
  display: flex;
  flex-direction: column;
  padding: 0;
  background: none;
  border: 0;
}

.org-box.has-chair .org-box-body {
  padding: 0 0 9px;
  background: linear-gradient(165deg, #CFE6FB 0%, #9EC9EC 100%);
  border: 1px solid #6E9FC8;
  border-radius: 3px;
}
/* Each panel's own drop line up to the bus. */
.org-box::before {
  content: "";
  position: absolute;
  top: -11px;
  left: 50%;
  width: 1px;
  height: 11px;
  background: var(--org-rule);
}
/* A panel pushed onto its own line — the officers beneath the Board — sizes
   to its contents and sits centred, as it does on the printed chart, instead
   of stretching the full width because it is the only thing there.
   main.js works out which one that is; flexbox cannot. */
.org-box.is-dropped {
  flex: 0 1 auto;
  min-width: 0;
}
.org-box.is-dropped::before { top: -14px; height: 14px; }

/* --- Chairperson above the panel ------------------------------ */
.org-chair {
  position: relative;
  display: flex;
  justify-content: center;
  /* Clears the drop line that joins this panel to the bus above it. */
  margin-bottom: 11px;
}
/* The short line from the chairperson's card down into the title bar. */
.org-chair::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -11px;
  width: 1px;
  height: 11px;
  background: var(--org-rule);
}
/* With a chairperson above it the panel still hangs from the bus, but the
   line now lands on the chairperson's card rather than on the title bar.
   Read downwards it is: bus, drop, chairperson, short line, committee. */

/* One line, like the names. "ETHICS COMMITTEE" and "MEDIATION & CONCILIATION
   COMMITTEE" used to set on one line and three, which left the cards beneath
   them starting at different heights across a tier. Fitted by main.js. */
.org-box-title {
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  /* A title main.js could not fit on one line wraps instead of being cut
     off, so the bar has to be able to grow. */
  min-height: 2.1em;
  line-height: 1.2;
  margin: 0 0 10px;
  padding: 5px 12px;
  background: var(--blue);
  /* Matches the panel's corners, now that the panel no longer clips it. */
  border-radius: 2px 2px 0 0;
  border-bottom: 1px solid var(--blue-deep);
  font-size: 11.5px;
  font-weight: 800;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}

.org-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-content: flex-start;
  gap: 7px;
  padding-inline: 10px;
}

/* --- Person card ----------------------------------------------
   Deliberately small. Sixty-three of these across the three tabs is
   a chart to be taken in at a glance, not sixty-three portraits.
   128px -> 98px -> 68px. 68 is measured, not guessed: the portrait is
   square so it shrinks with the width, but the name strip grows as names
   wrap. Below 68 the longest names take an extra line and the strip jumps
   from 54px to 65px, which costs more than the narrower portrait saves. */
/* 84px. Was 96, which read well but made the management chart 1571px wide
   and so forced it to half size to fit. 84 keeps "Jeryl Cedric Gallano"
   around 7px — still legible — and takes roughly 170px off that chart.
   
   The height is fixed as well, and the name strip always reserves room for a
   position line whether or not the person has one. Both are so that editing
   the chart cannot move it: renaming someone, or giving them a title, changes
   what the card says and never what size it is. */
.org-card {
  width: 84px;
  height: 118px;
  display: flex;
  flex-direction: column;
  padding: 0;
  background: #fff;
  /* The hairline outline is the printed chart's signature. */
  border: 1px solid var(--org-rule);
  border-radius: 2px;
  overflow: hidden;
  text-align: center;
  transition: transform .2s var(--ease-out), box-shadow .2s var(--ease-out);
}
.org-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.org-photo {
  display: block;
  width: 100%;
  flex: none;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: top center;
  /* The rule between portrait and name, as on the printed chart. */
  border-bottom: 1px solid var(--org-rule);
  background: var(--canvas);
}

/* Initials stand in until a photo is uploaded.
   Kept quiet on purpose: only five of the thirty-three have photographs, so
   at full strength the gradient was the loudest thing in the section and the
   chart read as a wall of coloured squares rather than as people. */
.org-initials {
  flex: none;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-bottom: 1px solid var(--org-rule);
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
}

/* Name and role share the white strip under the portrait. */
.org-name {
  margin: 0;
  padding: 4px 3px 0;
  font-size: 9.5px;
  /* One line, always. main.js steps the size down per card until the name
     fits, so "Jeryl Cedric Gallano" sets smaller than "Rica Lopez" rather
     than wrapping or being split mid-word. */
  white-space: nowrap;
  font-weight: 700;
  line-height: 1.25;
  color: #111;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.org-position {
  margin: 0;
  padding: 1px 3px 4px;
  font-size: 8.5px;
  white-space: nowrap;
  line-height: 1.25;
  color: #444;
}
/* A card with no role still needs the strip's bottom padding. */
.org-name:last-child { padding-bottom: 4px; }


/* --- Nested groups (the business units) ----------------------- */
/* The business units. The printed chart rings this whole group in a
   dashed line, which is what says "these sit under Business" rather
   than beside it. */
.org-nested {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 10px 0;
  padding: 10px;
  border: 1px dashed var(--org-rule);
  border-radius: 3px;
}
.org-nested .org-box {
  /* Width comes from main.js, as it does for the panels outside the ring. */
  min-width: 0;
  background: linear-gradient(165deg, #DCEDFC 0%, #B4D6F1 100%);
}
/* Inside the ring the panels sit side by side, with no lines of their own. */
.org-nested .org-box::before { display: none; }
.org-nested .org-box-title { font-size: 10.5px; padding-block: 6px; }
.org-nested .org-card { width: 84px; }

@media (max-width: 760px) {
  /* The row is nowrap on desktop so a tier cannot break into a staircase.
     On a phone the panels do have to stack, so wrapping comes back here. */
  .org-row { flex-wrap: wrap; }
  .org-box, .org-box:nth-child(2) { flex: 1 1 100%; }
  /* Three across on a phone rather than two — the cards are small enough now
     that two left a lot of empty gutter. */
  .org-card { width: calc(33.333% - 5px); max-width: 88px; }
  /* Stacked one above another, there is no tree left to draw — every joining
     line would be a stray dash above a panel with nothing to join it to. */
  .org-row::before,
  .org-row::after,
  .org-box::before,
  .org-banner:not(:last-of-type)::after { display: none; }
  .org-banner { min-width: 0; width: 100%; }
}


/* ============================================================
   21. PRODUCTS, SAVINGS RATES, MEMBERSHIP
   ============================================================ */

/* --- Products & services -------------------------------------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  padding: 26px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out),
              border-color .28s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 16px;
  border-radius: 15px;
}
.service-icon svg { width: 24px; height: 24px; }
.service-icon.t-blue    { background: var(--blue-light);    color: var(--blue); }
.service-icon.t-green   { background: var(--blue-light);    color: var(--blue); }
.service-icon.t-magenta { background: var(--blue-light);    color: var(--blue); }

.service-card h3 { font-size: 16.5px; }
.service-card p  { margin-top: 8px; font-size: 13.5px; line-height: 1.65; }

/* --- Membership types ------------------------------------------ */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.plan-card {
  padding: 30px 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.plan-badge {
  display: inline-block;
  padding: 7px 16px;
  margin-bottom: 20px;
  background: var(--blue);
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.plan-badge.is-muted { background: var(--canvas); color: var(--charcoal); }

.plan-list { display: grid; gap: 12px; }
.plan-list li {
  position: relative;
  padding-left: 30px;
  font-size: 14.5px;
  line-height: 1.55;
}
.plan-list li::before {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.plan-list li.yes::before { content: "\2713"; background: var(--ok-light);   color: var(--ok); }
.plan-list li.no::before  { content: "\2715"; background: var(--danger-light);            color: var(--danger); }
.plan-list li.no { color: var(--muted); }

/* --- Benefits and cost ----------------------------------------- */
.benefit-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 40px;
  margin-top: 22px;
  align-items: start;
}

/* Clear of the plan cards above it, and close to the list it names. */
.benefit-heading { margin-top: 64px; font-size: 20px; color: var(--charcoal); }

.benefit-list { display: grid; gap: 13px; margin-top: 20px; }
.benefit-list li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  line-height: 1.6;
}
.benefit-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.cost-card {
  padding: 26px;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}
.cost-card h3 {
  font-size: 12.5px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.cost-list { display: grid; gap: 11px; margin-top: 16px; }
.cost-list > div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
}
.cost-list dt { color: var(--body); }
.cost-list dd { font-weight: 700; color: var(--ink); white-space: nowrap; }
.cost-list dd small { font-weight: 500; color: var(--muted); }

.cost-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--line);
}
.cost-total span { font-size: 13px; font-weight: 600; color: var(--muted); }
.cost-total strong { font-size: 19px; color: var(--blue); }

.cost-note { margin-top: 10px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* The card carries two lists — what you pay, then what you get back. */
.cost-card .cost-sub {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--blue-dark);
}
.cost-total strong { color: var(--blue-dark); }

/* --- How to join ------------------------------------------------ */
.step-list { display: grid; gap: 18px; }
.step-list li {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out);
}
.step-list li:hover { transform: translateX(4px); box-shadow: var(--shadow-sm); }

.step-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
  border-radius: 50%;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
}
.step-list strong { display: block; font-size: 15.5px; color: var(--ink); }
.step-list p { margin-top: 5px; font-size: 14px; line-height: 1.6; }

/* The way into the membership seminar, closing the "How to Join" section. */
.join-cta {
  margin-top: 44px;
  text-align: center;
}
.join-cta-note {
  max-width: 44ch;
  margin: 14px auto 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* The two routes into membership, side by side so neither reads as the
   main one and the other as a footnote. */
.route-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}
.route-card {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.route-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue);
}
.route-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.route-card li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
}
.route-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 6px; height: 6px;
  background: var(--blue);
  border-radius: 50%;
}
.route-card b { color: var(--ink); }

/* --- Affiliations marquee --------------------------------------
   A strip of the bodies the cooperative belongs to, sliding left.

   Built from two identical rows. The track is animated by exactly
   -50% of its own width, which is the width of one row, so at the
   moment the animation restarts the second row is sitting precisely
   where the first began and the join is invisible. This is why the
   markup must contain the list twice and why the shift must be 50%
   rather than a pixel figure.
   ---------------------------------------------------------------- */

.affiliations-section { padding-bottom: 72px; }
/* The section head keeps the container; the strip itself runs full width. */
.affiliations-section .section-head { margin-bottom: 38px; }

.logo-marquee {
  position: relative;
  overflow: hidden;
  padding: 6px 0;
  /* Fades the logos out at both ends instead of letting them collide with
     the edge of the screen mid-stride. */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.logo-track {
  display: flex;
  /* Sized by its contents, not the viewport — the 50% shift depends on it. */
  width: max-content;
  animation: logo-scroll 46s linear infinite;
}

/* Slow enough to read a name as it passes; hovering stops it outright so a
   logo can be looked at properly. */
.logo-marquee:hover .logo-track,
.logo-marquee:focus-within .logo-track { animation-play-state: paused; }

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logo-row {
  display: flex;
  align-items: flex-start;
  gap: 54px;
  margin: 0;
  padding: 0 27px;
  list-style: none;
}

.logo-row li {
  flex: none;
  width: 176px;
  text-align: center;
}

.logo-row img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 72px;
  margin: 0 auto 14px;
  object-fit: contain;
  /* The logos arrive at six different sizes and two different backgrounds;
     a common height is what makes them read as one row. */
}

.logo-row span {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
}

.logo-row small {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--muted);
}

/* Someone who has asked for less motion — Windows with its animation
   effects switched off reports this too — gets the row standing still.
   Still, it is laid out as a centred grid inside the page's own width
   rather than left as the first half of a strip that no longer moves,
   which read as six logos parked in the corner of an empty band. */
@media (prefers-reduced-motion: reduce) {
  .logo-track {
    width: auto;
    animation: none;
    justify-content: center;
  }
  .logo-marquee {
    padding: 6px 24px;
    -webkit-mask-image: none;
            mask-image: none;
  }
  .logo-row {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 40px;
    max-width: 1180px;
    margin: 0 auto;
  }
  /* The duplicate row is decoration; with the animation off it is just a
     second copy of the same six. */
  .logo-row[aria-hidden="true"] { display: none; }
}

@media (max-width: 720px) {
  .logo-row { gap: 34px; padding: 0 17px; }
  .logo-row li { width: 140px; }
  .logo-row img { height: 54px; }
  .logo-track { animation-duration: 34s; }
}

/* --- Eligibility ------------------------------------------------ */
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 22px;
}
.area-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.area-card h4 {
  font-size: 15px;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.area-card p { margin-top: 10px; font-size: 13.5px; line-height: 1.7; }

@media (max-width: 900px) {
  .service-grid, .area-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-layout, .plan-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .service-grid, .area-grid { grid-template-columns: 1fr; }
  .step-list li { padding: 18px 16px; gap: 14px; }
}

/* Long-form legal pages */
.prose-page { max-width: 760px; padding-block: 56px 90px; }
.prose-page h2 { margin-top: 38px; font-size: 20px; color: var(--charcoal); }
.prose-page p  { margin-top: 12px; font-size: 15.5px; line-height: 1.75; }
.prose-page ul { margin-top: 12px; display: grid; gap: 9px; }
.prose-page li { position: relative; padding-left: 22px; font-size: 15px; line-height: 1.7; }
.prose-page li::before {
  content: "";
  position: absolute; left: 2px; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
}
.prose-page a { color: var(--blue); }
.prose-page a:hover { text-decoration: underline; }
.prose-updated { margin-top: 18px; font-size: 13px; color: var(--muted); }
.footer-note a { color: var(--blue); }
.footer-note a:hover { text-decoration: underline; }


/* ============================================================
   22. ORG CHART — EDITING
   The admin edits the chart itself, so these styles sit on top
   of the public chart rather than replacing it.
   ============================================================ */

/* --- Layout -----------------------------------------------------
   The editor is NOT the drawing, and trying to be it was the problem.

   The published chart is `flex-wrap: nowrap` and centred inside an
   `overflow: hidden` panel, which works only because sizeOrgBoxes() in
   main.js scales the whole drawing down to the width available. main.js is
   not loaded in the dashboard, so nothing scaled anything: ten panels laid
   out at full width, centred, and were sliced off at BOTH edges with no
   scrollbar to reach them. (`overflow-x: auto` existed, but only inside the
   700px phone query, so the chart scrolled on a phone and was silently cut
   on a desktop.)

   Scaling it here would not have helped either. At the scale that fits ten
   panels into the dashboard column, the name inputs are a few pixels tall and
   nobody can type into them. So the editor wraps instead: every panel is one
   card wide and the band runs onto as many lines as the screen needs. The
   published chart is untouched. */
.org-chart.is-editing {
  overflow: visible;
  padding-bottom: 0;
}

.org-chart.is-editing .org-row {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 14px;
  padding-top: 0;
}

/* The connectors joined panels hanging off a single bus. Once the panels wrap
   onto several lines those lines would be drawing a hierarchy that is not
   there, so the editor does without them. */
.org-chart.is-editing .org-row::before,
.org-chart.is-editing .org-row::after,
.org-chart.is-editing .org-box::before { display: none; }

/* Panels are sized in whole cards, by how many people they hold — set by
   panelColumns() in admin.js, the same square-ish rule main.js uses for the
   published chart. One column for the one-person panels, three for the Board.

   The arithmetic is 158px cards, 7px between them, 10px of grid padding
   either side, 1px of border either way, and then 6px of slack: exact-fit
   widths are what once made the public grid drop to a single card per row
   from sub-pixel rounding, and the same trap is here. */
.org-chart.is-editing .org-box {
  flex: 0 0 auto;
  min-width: 0;
  padding-bottom: 14px;
}
.org-chart.is-editing .org-box.cols-1 { width: 186px; }
.org-chart.is-editing .org-box.cols-2 { width: 351px; }
.org-chart.is-editing .org-box.cols-3 { width: 516px; }

.org-chart.is-editing .org-grid { justify-content: center; }

/* At 186px the title, the band selector and the remove button cannot share a
   line. They stack rather than squeezing the title to nothing. */
.org-chart.is-editing .org-box-head { flex-wrap: wrap; }

/* --- Bands ------------------------------------------------------
   The band selector writes a band to every person in the group, but the
   editor used to draw every group in one row regardless — so choosing a band
   moved nothing, and the only way to see whether it had worked was to save
   and open the public page. Each band now gets its own row and says so. */
.org-band-head {
  margin: 26px 0 10px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
}

.btn.org-add-group {
  margin-top: 14px;
  margin-bottom: 6px;
  padding-block: 7px;
  font-size: 13px;
}


/* --- Group header ---------------------------------------------- */
.org-box-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-deep));
}

.org-box-title-input {
  flex: 1;
  min-width: 0;
  padding: 5px 8px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.org-box-title-input::placeholder { color: rgba(255, 255, 255, .6); }
.org-box-title-input:focus {
  outline: none;
  background: rgba(255, 255, 255, .24);
  border-color: #fff;
}

/* --- Nesting control -------------------------------------------- */
.org-nest-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 2px;
  font-size: 11.5px;
  color: var(--muted);
}
.org-nest-select {
  flex: 1;
  min-width: 0;
  padding: 4px 8px;
  background: var(--surface);
  border: 1px solid #CFE0F7;
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 11.5px;
  color: var(--body);
}

/* --- Editable card ---------------------------------------------- */
.org-card.is-editing {
  position: relative;
  width: 158px;
  padding-bottom: 8px;
  /* The public card is a fixed 130px so that editing a name cannot reflow the
     chart. This one holds a photograph, two text inputs and a row of buttons,
     and at 130px with overflow:hidden everything below the name was clipped
     away. It sizes to its contents. */
  height: auto;
}
/* Typed text wraps here. nowrap belongs to the published chart, where main.js
   fits each label to the card; nothing fits anything in the editor, so a long
   name or position would simply be cut off. */
.org-card.is-editing .org-name,
.org-card.is-editing .org-position { white-space: normal; }

.org-photo-frame { position: relative; }
.org-photo-frame.is-uploading { opacity: .5; }

/* The photo button sits over the bottom of the picture */
.org-photo-btn {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  padding: 3px 12px;
  background: rgba(15, 20, 25, .78);
  border: 0;
  border-radius: var(--r-pill);
  font: inherit;
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity .2s var(--ease-out), background-color .2s var(--ease-out);
}
.org-card.is-editing:hover .org-photo-btn,
.org-photo-btn:focus-visible { opacity: 1; }
.org-photo-btn:hover { background: var(--blue); }

/* A card with no photo shows the button permanently — otherwise there
   is nothing to tell the admin one can be added. */
.org-card.is-editing .org-initials + .org-photo-btn { opacity: 1; }

.org-name-input,
.org-position-input {
  width: 100%;
  margin-top: 6px;
  padding: 4px 6px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font: inherit;
  text-align: center;
  transition: border-color .18s var(--ease-out), background-color .18s var(--ease-out);
}
.org-name-input {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
}
.org-position-input { font-size: 11px; color: var(--muted); }

.org-name-input:hover,
.org-position-input:hover { border-color: #D8E4F5; }
.org-name-input:focus,
.org-position-input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--blue);
}
.org-name-input::placeholder,
.org-position-input::placeholder { color: #B9C2CC; text-transform: none; font-weight: 500; }

/* --- Card tools -------------------------------------------------- */
.org-card-tools {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 8px;
  opacity: 0;
  transition: opacity .2s var(--ease-out);
}
.org-card.is-editing:hover .org-card-tools,
.org-card.is-editing:focus-within .org-card-tools { opacity: 1; }

.org-mini-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: 11px;
  line-height: 1;
  color: var(--body);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background-color .15s ease;
}
.org-mini-btn:hover { border-color: var(--blue); color: var(--blue); }
.org-mini-btn.is-danger:hover { border-color: var(--danger-soft); color: var(--danger-soft); }

/* The group header sits on the dark bar, so its buttons invert */
.org-box-head .org-mini-btn {
  flex: none;
  background: rgba(255, 255, 255, .16);
  border-color: rgba(255, 255, 255, .3);
  color: #fff;
}
.org-box-head .org-mini-btn:hover { background: #fff; color: var(--blue); border-color: #fff; }

/* --- Add-a-person tile -------------------------------------------- */
.org-add-card {
  width: 158px;
  min-height: 150px;
  background: rgba(255, 255, 255, .45);
  border: 2px dashed #BFD5F0;
  border-radius: var(--r-md);
  font-size: 26px;
  font-weight: 300;
  line-height: 1;
  color: var(--blue);
  cursor: pointer;
  transition: border-color .2s var(--ease-out), background-color .2s var(--ease-out),
              transform .2s var(--ease-out);
}
.org-add-card:hover {
  border-color: var(--blue);
  background: var(--surface);
  transform: translateY(-3px);
}

@media (max-width: 760px) {
  .org-card.is-editing, .org-add-card { width: calc(50% - 7px); }
}

/* Group title while the structure is locked */
.org-box-title-fixed {
  flex: 1;
  padding: 5px 4px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .04em;
  text-align: center;
}


/* ============================================================
   23. PHOTOGRAPHY — community gallery
   ============================================================ */

/* --- Community gallery ------------------------------------------ */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* A fixed row height lets the tall card span exactly three rows, so the
     three smaller ones stack beside it with no ragged gap. */
  grid-auto-rows: 214px;
  gap: 20px;
}

.photo-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.photo-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

/* The lead photo fills two columns and all three rows */
.photo-card.is-wide { grid-column: span 2; grid-row: span 3; }

.photo-card img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform .5s var(--ease-out);
}
.photo-card:hover img { transform: scale(1.04); }

.photo-card figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 34px 20px 18px;
  /* Gradient rather than a flat panel, so the photo stays visible
     behind the text. */
  background: linear-gradient(to top, rgba(15, 20, 25, .88), rgba(15, 20, 25, 0));
  color: #fff;
}
.photo-card figcaption strong {
  display: block;
  font-size: 15px;
  line-height: 1.35;
}
.photo-card figcaption span {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
}

.photo-card.is-wide figcaption { padding: 46px 26px 24px; }
.photo-card.is-wide figcaption strong { font-size: 19px; }
.photo-card.is-wide figcaption span { font-size: 13.5px; }

@media (max-width: 800px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .photo-card.is-wide { grid-column: span 2; grid-row: span 2; }
}
@media (max-width: 540px) {
  .photo-grid { grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .photo-card.is-wide { grid-column: auto; grid-row: span 2; }
}


/* ============================================================
   24. ELIGIBILITY — areas and family
   ============================================================ */


.eligibility-label {
  font-size: 17px;
  color: var(--charcoal);
  margin-bottom: 14px;
}
.eligibility-note { margin: -8px 0 16px; font-size: 14px; color: var(--muted); }

/* --- Map -------------------------------------------------------- */

.area-list { display: grid; gap: 14px; }
.area-list .area-card { padding: 18px 20px; }



/* ============================================================
   25. ELIGIBILITY MAP — pins, regions and leader lines
   See the note in the changelog: every distance here is fixed, so
   the leader lines land on their pins instead of drifting. The
   side-by-side layout is gated at 1040px, below which the regions
   stack under the map and the lines are dropped.
   ============================================================ */

.map-stage {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 30px auto 0;
}

.map-frame {
  position: relative;
  width: 300px;
  margin: 0 auto;
}
.map-frame img { width: 100%; height: auto; display: block; }

/* The pin overlay shares the map's own coordinate system, so the
   positions taken from the deck stay exact at any size. */
.map-pins {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.pin .pin-dot { fill: currentColor; stroke: #fff; stroke-width: 4; r: 9; }
.pin .pin-pulse { fill: currentColor; opacity: .3; transform-origin: center; }

@keyframes pinPulse {
  0%, 100% { r: 15; opacity: .3; }
  50%      { r: 23; opacity: .06; }
}
.pin .pin-pulse { animation: pinPulse 2.8s ease-in-out infinite; }
.pin.c-r4a .pin-pulse { animation-delay: .5s; }
.pin.c-r7 .pin-pulse  { animation-delay: 1s; }

.pin.c-ncr { color: var(--blue); }
.pin.c-r4a { color: var(--blue); }
.pin.c-r7  { color: var(--blue-dark); }

/* --- Region callouts ---------------------------------------------- */
.map-callout {
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform .28s var(--ease-out), box-shadow .28s var(--ease-out);
}
.map-callout:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }

/* The heading sits on one line, level with its leader line. */
.map-callout h5 {
  display: block;
  height: 16px;
  line-height: 16px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.map-callout p {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--body);
  text-align: left;
  hyphens: none;
  /* Balances the lines so a list never ends on a single orphan word
     (Region 4A was breaking as "...Quezon, Rizal," / "Batangas"). */
  text-wrap: pretty;
}

.map-callout.c-ncr { border-left-color: var(--blue); }
.map-callout.c-ncr h5 { color: var(--blue); }
.map-callout.c-r4a { border-left-color: var(--blue); }
.map-callout.c-r4a h5 { color: var(--blue); }
.map-callout.c-r7 { border-left-color: var(--blue); }
.map-callout.c-r7 h5 { color: var(--blue-dark); }

/* --- Stacked, below 1040px ---------------------------------------- */
/* Source order puts the regions first, so the map is pulled ahead. */
.map-stage { display: flex; flex-direction: column; gap: 14px; }
.map-frame { order: -1; margin-bottom: 10px; }
.map-callout { max-width: 560px; margin-inline: auto; width: 100%; }

/* --- Side by side, with the leader lines -------------------------- */
@media (min-width: 1040px) {
  .map-stage { display: block; height: 474px; }
  .map-frame { margin-bottom: 0; }

  .map-callout {
    position: absolute;
    width: 280px;
    max-width: none;
    margin-inline: 0;
  }

  /* The leader line runs from the callout all the way to its pin. The
     widths are the measured distances noted in the changelog — stopping
     at the map's bounding box left them short, because the image has a
     wide transparent margin around the islands. */
  .map-callout::after {
    content: "";
    position: absolute;
    top: 26px;
    height: 1.5px;
    background: currentColor;
    opacity: .45;
  }
  .map-callout.c-r4a::after,
  .map-callout.c-r7::after { left: 100%; }
  .map-callout.c-ncr::after { right: 100%; }

  .map-callout.c-r4a::after { width: 193px; }
  .map-callout.c-r7::after  { width: 272px; }
  .map-callout.c-ncr::after { width: 233px; }

  /* A small ring where the line leaves the callout, so the eye picks up
     which box each line belongs to. */
  .map-callout::before {
    content: "";
    position: absolute;
    top: 22.5px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid currentColor;
    background: var(--surface);
  }
  .map-callout.c-r4a::before,
  .map-callout.c-r7::before { left: calc(100% - 4px); }
  .map-callout.c-ncr::before { right: calc(100% - 4px); }

  /* Lines sit over the map, the boxes over the lines. */
  .map-frame { position: relative; z-index: 1; }
  .map-callout { z-index: 3; }
  .map-callout::after, .map-callout::before { z-index: 2; }

  .map-callout.c-ncr { color: var(--blue); }
  .map-callout.c-r4a { color: var(--blue); }
  .map-callout.c-r7  { color: var(--blue-dark); }

  /* NCR and Region 7 hang from their line: top = pin y - 26.
     Region 4A sits ABOVE its line instead, anchored by its bottom edge,
     because its pin (196px) is only 117px above Region 7's (313px) and
     hanging both downwards made the two boxes overlap. Anchoring by the
     bottom also keeps the line on the pin however the text rewraps. */
  .map-callout.c-ncr { top: 149px; left: 700px; }
  .map-callout.c-r7  { top: 287px; left: 0; }

  .map-callout.c-r4a { top: auto; bottom: 252px; left: 0; }   /* 474 - (196 + 26) */
  .map-callout.c-r4a::after  { top: auto; bottom: 26px; }
  .map-callout.c-r4a::before { top: auto; bottom: 22.5px; }
}

/* ============================================================
   26. OTHER WEBSITES — cards in the contact column
   The card layout from the old CCCOOP Online band, carried over to
   the page's own white surface. Each card takes its accent from the
   site it points at rather than from a background.
   ============================================================ */

.contact-sites {
  display: grid;
  gap: 14px;
  margin-top: 4px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-sites-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}

.site-card {
  display: block;
  padding: 15px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  text-decoration: none;
  transition: transform .25s var(--ease-out),
              border-color .25s var(--ease-out),
              box-shadow .25s var(--ease-out);
}
.site-card:hover,
.site-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.site-card.c-loans:hover { border-color: var(--blue); }
.site-card.c-shop:hover  { border-color: var(--blue); }

.site-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.site-icon svg { width: 19px; height: 19px; }
.site-card.c-loans .site-icon { background: var(--blue-light);  color: var(--blue); }
.site-card.c-shop  .site-icon { background: var(--blue-light); color: var(--blue-dark); }

.site-card h3 {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.site-out {
  display: inline-block;
  font-size: 12px;
  color: var(--muted);
  transition: transform .2s var(--ease-out), color .2s var(--ease-out);
}
.site-card:hover .site-out { transform: translate(2px, -2px); }
.site-card.c-loans:hover .site-out { color: var(--blue); }
.site-card.c-shop:hover  .site-out { color: var(--blue-dark); }

.site-tag {
  margin-top: 3px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.site-copy {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--body);
}

/* The arrow is repeated on the button so the whole card reads as a link. */
.site-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  transition: filter .2s var(--ease-out);
}
.site-cta::after { content: "\2197"; font-size: 13px; opacity: .8; }
.site-card.c-loans .site-cta { background: var(--blue); }
.site-card.c-shop  .site-cta { background: var(--blue-dark); }
.site-card:hover .site-cta { filter: brightness(1.08); }

@media (prefers-reduced-motion: reduce) {
  .site-card:hover { transform: none; }
  .site-card:hover .site-out { transform: none; }
}


/* ============================================================
   27. DESIGN B SKIN — "Kapit-Bisig"
   ------------------------------------------------------------
   The look chosen from the design options: a cooperative is
   neighbours pooling money, not a bank. Cream ground, fully
   rounded shapes, soft depth instead of borders, blue leading
   instead of blue, section heads centred.

   This layer only changes how the site LOOKS. No markup and no
   copy was touched — every rule below targets classes that were
   already in index.html. The tokens above carry most of it; what
   follows is the handful of components that need more than a
   colour swap.
   ============================================================ */

/* --- Page ground --------------------------------------------- */
body { background: var(--paper); }

.section { background: transparent; }
.section-tint { background: var(--canvas); }

/* --- Header --------------------------------------------------- */
.site-header {
  /* Was a warm cream. Neutral white now — a warm header against a
     cool blue page was the one place the two casts met. */
  background: rgba(255, 255, 255, .92);
  border-bottom: 0;
  box-shadow: 0 1px 0 var(--line);
}
.site-header.is-stuck { box-shadow: 0 1px 0 var(--line), var(--shadow-sm); }

/* Nav items become soft pills rather than underlined text. */
.nav > a,
.nav-forms > a {
  border-radius: var(--r-pill);
  font-weight: 600;
}
.nav > a::after,
.nav-forms > a::after { display: none; }
.nav > a:hover,
.nav-forms > a:hover { background: var(--blue-light); color: var(--blue-dark); }
.nav > a.is-current { background: var(--blue-light); color: var(--blue-dark); }

/* --- Buttons: blue leads, fully round ------------------------- */
.btn { border-radius: var(--r-pill); font-weight: 700; }

.btn-primary {
  background: var(--blue);
  box-shadow: 0 8px 20px -8px rgba(32, 112, 208, .40);
}
.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 14px 28px -10px rgba(32, 112, 208, .50);
}

.btn-outline { background: var(--surface); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue-dark); }

/* --- Hero ------------------------------------------------------ */
.hero {
  padding-block: 76px 0;
  background:
    /* Two washes of the same blue at different strengths. They used to be
       a green one and a magenta one, which is what gave the hero its tint. */
    radial-gradient(1100px 520px at 50% -10%, var(--blue-light), transparent 62%),
    radial-gradient(900px 460px at 88% 6%, rgba(32, 112, 208, .10), transparent 60%),
    var(--canvas);
}

/* The wash above replaces the three blurred circles. */
.hero-bg { display: none; }

/* The figures card overhangs the bottom edge, and the hero clipped it —
   overflow was only there to contain the blurred circles, which are gone. */
.hero { overflow: visible; }

.eyebrow {
  box-shadow: var(--shadow-sm);
  border: 0;
  padding: 9px 18px;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
/* The separator belongs to the fact after it, so it travels with that
   fact when the badge wraps instead of being left at a line end. */
.eyebrow .fact { white-space: nowrap; }
.eyebrow .fact + .fact::before {
  content: "/";
  margin-right: 10px;
  color: var(--line);
}

/* Design B's headline, which is the point of the hero: much larger, and
   held to a measure that keeps the three clauses balanced. */
.hero-title {
  max-width: 17ch;
  margin-inline: auto;
  margin-top: 26px;
  font-size: clamp(2.4rem, 5.6vw, 4.25rem);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.03em;
}

.hero-sub { max-width: 56ch; margin-top: 22px; font-size: 17.5px; }
.hero-cta { margin-top: 34px; }

/* The figures move out of the coloured bar and into one white card
   that straddles the edge of the hero. */
.hero-stats-bar {
  margin-top: 60px;
  padding-block: 0;
  background: none;
}
.hero-stats-inner {
  padding: 32px 18px;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  transform: translateY(46px);
}
.hstat { border-right: 1px solid var(--line); }
/* One blue for all four. They were #1957A2, #2070D0, #2070D0, #1957A2 — a
   rotation, which reads as two of the figures being picked out and the other
   two not, rather than as four readings of the same kind. This is the same
   colour the year badges and the mission icons use, so the accent is one
   colour down the page. */
.hstat-num { color: var(--blue); }
.hstat-num span { color: inherit; }
.hstat-label { color: var(--muted); font-weight: 600; }

/* The card overhangs, so the section under it needs room. */
.hero + .section,
.hero + .section-tint { padding-top: 130px; }

/* --- Section heads: centred ------------------------------------ */
.section-head { text-align: center; }
.section-lead { margin-inline: auto; }

.section-eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--r-pill);
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 11.5px;
  letter-spacing: .1em;
}
.section-title { margin-top: 16px; }

/* Sub-headings inside a section stay flush left, the way the membership
   deck sets them. The section title above them is still centred — the
   contrast is what marks one as a title and the other as a sub-head. */
.benefit-heading,
.eligibility-label,
.eligibility-note { text-align: left; }

/* The line of copy under a sub-head is part of it, so it starts at the
   same left edge rather than being centred as a section lead would be. */
.benefit-heading + .section-lead,
.eligibility-label + .section-lead {
  margin-inline: 0;
  text-align: left;
}

/* --- Cards: soft depth, no borders ----------------------------- */
.letter-card,
.service-card,
.plan-card,

.step-list li,
.milestone-body,
.map-callout,
.contact-form-card,
.cost-card,
.site-card,
.photo-card,
.org-group {
  border: 0;
  box-shadow: var(--shadow-sm);
}
.letter-card:hover,
.service-card:hover,
.site-card:hover{ box-shadow: var(--shadow-md); }

.cost-card { background: var(--surface); }

/* The ASENSO initial becomes a medallion rather than a ghosted glyph. */
.letter-mark {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 25px;
  opacity: 1;
}

/* Service icons pick up the same rounded medallion treatment. */
.service-icon { border-radius: 50%; }

/* --- Tables sit in a card -------------------------------------- */
.table-scroll {
  padding: 8px 26px 18px;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}

/* --- Officers --------------------------------------------------- */
/* The banners are deliberately NOT pills: the chart follows the
   cooperative's printed one, where they are square-cornered bars.
   Only the tabs above it take the site's pill shape. */
.org-banner { text-align: center; }
.org-tab { border-radius: var(--r-pill); font-weight: 700; }
.org-tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* --- Contact ---------------------------------------------------- */
.contact-item .contact-icon { border-radius: 50%; }
.contact-form-card { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); }

.contact-form-card :is(input, select, textarea) {
  background: var(--paper);
  border-radius: var(--r-sm);
}
.contact-form-card :is(input, select, textarea):focus {
  background: #fff;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-light);
}

/* --- Footer: dark, to close the page ---------------------------- */
.site-footer {
  background: var(--ink);
  border-top: 0;
  color: #AAB3BD;
}
.site-footer img { filter: brightness(0) invert(1); opacity: .9; }
.footer-strap { color: #DCE3EB; }
.footer-strap em { color: #8FB5E4; font-style: normal; font-weight: 700; }
.footer-note, .footer-links-label { color: #949DA7; }
.site-footer a { color: #8FB5E4; }

@media (max-width: 860px) {
  /* On a phone the three facts wrap onto their own lines, each keeping
     its own separator. */
  .eyebrow { padding: 11px 18px; gap: 8px; font-size: 12.5px; }

  /* The overhanging figures card needs less clearance once it stacks. */
  .hero-stats-inner { transform: translateY(38px); }
  .hero + .section,
  .hero + .section-tint { padding-top: 96px; }
  .hstat:nth-child(2) { border-right: 0; }
}


/* ============================================================
   28. MOTION — DESIGN B
   Adds to section 19 rather than replacing it. The rule of thumb
   throughout: things should arrive and settle, never bounce or
   spin. Everything is switched off at the end for anyone who has
   asked for reduced motion.
   ============================================================ */

/* --- Hero entrance ------------------------------------------------ */
/* The hero gained a fourth child (the buttons), so the stagger runs
   one step further and the figures card follows it. */
.hero-main > *:nth-child(4) { animation-delay: .44s; }
.hero-stats-bar { animation-delay: .58s; }

/* --- Header ------------------------------------------------------- */
.site-header {
  transition: background-color .3s var(--ease-out),
              box-shadow .3s var(--ease-out);
}
.brand img { transition: transform .35s var(--ease-out); }
.brand:hover img { transform: scale(1.04); }

/* --- Section heads ------------------------------------------------ */
/* The eyebrow chip settles in just ahead of its heading. */
.reveal .section-eyebrow {
  transition: transform .6s var(--ease-out) .1s, opacity .6s var(--ease-out) .1s;
  transform: translateY(6px);
  opacity: 0;
}
.reveal.is-visible .section-eyebrow { transform: none; opacity: 1; }

/* --- Cards -------------------------------------------------------- */
.service-card,
.letter-card,
.plan-card,
.site-card,
.step-list li,
.map-callout,
.cost-card{
  transition: transform .32s var(--ease-out),
              box-shadow .32s var(--ease-out);
}
.service-card:hover,
.letter-card:hover,
.site-card:hover{
  transform: translateY(-5px);
}

/* The icon inside a card leans in with it. */
.service-icon, .letter-mark, .contact-icon, .mv-icon {
  transition: transform .35s var(--ease-out);
}
.service-card:hover .service-icon,
.letter-card:hover .letter-mark { transform: scale(1.08) rotate(-3deg); }
.contact-item:hover .contact-icon { transform: scale(1.08); }

/* --- Steps -------------------------------------------------------- */
.step-num { transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out); }
.step-list li:hover .step-num { transform: scale(1.1); }

/* --- Buttons ------------------------------------------------------ */
.btn-primary:hover { transform: translateY(-2px); }
.btn-outline:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* --- Links -------------------------------------------------------- */
/* Underline that draws in from the left rather than snapping on. */
.footer-links a, .contact-item a, .site-footer a {
  position: relative;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0 1px;
  transition: background-size .3s var(--ease-out);
}
.footer-links a:hover, .contact-item a:hover, .site-footer a:hover {
  background-size: 100% 1px;
  text-decoration: none;
}

/* --- Officers ------------------------------------------------------ */
.org-card { transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out); }
.org-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.org-tab { transition: background-color .22s var(--ease-out), color .22s var(--ease-out),
                       border-color .22s var(--ease-out); }

/* --- Narrow desktops ------------------------------------------------ */
/* Between the drawer breakpoint and roughly 1000px the six labels are
   squeezed, and "Products & Services" was wrapping inside its own pill.
   Tighten the row rather than letting labels break in half. */
.nav > a, .nav-forms > a { white-space: nowrap; }

@media (min-width: 861px) and (max-width: 1040px) {
  .header-inner { gap: 14px; }
  .brand img { height: 30px; }
  .nav { gap: 0; }
  .nav > a, .nav-forms > a { padding: 8px 9px; font-size: 13.5px; }
}

/* --- Focus --------------------------------------------------------- */
/* Keyboard users get the same care as everyone else. */
:where(a, button, input, select, textarea):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

@media (prefers-reduced-motion: reduce) {
  .reveal .section-eyebrow { opacity: 1 !important; transform: none !important; }
  .hero-inner > *, .hero-stats-bar { animation: none !important; opacity: 1 !important; }
  .service-card:hover,
.letter-card:hover,
.site-card:hover,
.org-card:hover,
.btn-primary:hover,
.btn-outline:hover,
.brand:hover img,
.service-card:hover .service-icon,
.letter-card:hover .letter-mark,
.contact-item:hover .contact-icon,
.step-list li:hover .step-num{ transform: none !important; }
}

/* ---------------------------------------------------------------
   GENERAL ASSEMBLY CARD

   The hero was a centred column with a wide empty band down its
   right-hand side. The assembly is the one date in the cooperative's
   year that every member needs, so it takes that space: when the card
   is shown the hero becomes two columns, and when it is not the hero
   is the centred column it has always been. Nothing else moves.
   --------------------------------------------------------------- */
.hero-inner.has-ga {
  flex-direction: row;
  /* Top-aligned, so the card and the hero text start on the same line and
     read as one block. Centred, it floated halfway down with its top edge
     level with nothing. */
  align-items: flex-start;
  justify-content: center;
  gap: 48px;
  text-align: left;
}
.hero-inner.has-ga .hero-main {
  align-items: flex-start;
  flex: 1 1 auto;
}
/* Smaller beside the card, and no width cap.
   The headline carries its own <br> breaks — "United in Cooperation," is
   meant to be one line — but at the full 4.25rem that line needs about
   778px and the card leaves a column of 674px, so it broke after "in".
   Capping at 3.3rem it needs 604px at every width the card is shown.
   The max-width went with it: with explicit breaks in the markup, a ch
   cap can only force a wrap the design did not ask for. */
.hero-inner.has-ga .hero-title {
  margin-inline: 0;
  font-size: clamp(2.05rem, 4vw, 3.3rem);
}
.hero-inner.has-ga .hero-sub { max-width: 52ch; margin-inline: 0; }
.hero-inner.has-ga .hero-cta { justify-content: flex-start; }
.hero-inner.has-ga .hero-ga-card { flex: 0 0 clamp(320px, 30vw, 430px); }

.hero-ga-card {
  position: relative;
  overflow: hidden;
  padding: 30px 30px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg, 14px);
  box-shadow: 0 18px 44px -28px rgba(15, 20, 25, .4);
  text-align: left;
  /* `translate`, not `transform`: the entrance animation holds transform
     with fill-mode forwards, and would otherwise cancel the hover lift. */
  translate: 0 0;
  transition: translate .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.hero-ga-card:hover {
  translate: 0 -4px;
  box-shadow: 0 26px 54px -26px rgba(15, 20, 25, .45);
}
/* The brand stripe along the top. Still, and the plain brand blue: a
   moving sheen on a 3px line read as a bar resting on the card. */
.hero-ga-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--blue);
}

.ga-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
/* "Voting open" with a breathing dot; green on the day itself. */
.ga-card-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: var(--r-pill);
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}
.ga-card-status .pulse {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.ga-card-status .pulse::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: pulseRing 1.9s ease-out infinite;
}
.ga-card-status.is-live { background: #e3f6ea; color: #15713f; }


.ga-card-eyebrow {
  margin: 0;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--blue);
}
.ga-card-day {
  margin: 18px 0 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--body);
}
.ga-card-date {
  margin: 2px 0 0;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--ink);
  text-wrap: balance;
}
.ga-card-meta {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* Days / hours / minutes, each in a quiet tile. */
.ga-countdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.ga-countdown[hidden] { display: none; }
.ga-cd-tile {
  padding: 9px 4px 7px;
  border-radius: 10px;
  background: var(--blue-light);
  text-align: center;
}
.ga-cd-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--blue-dark);
  font-variant-numeric: tabular-nums;
}
.ga-cd-num.is-tick { animation: gaTick .45s var(--ease-out); }
@keyframes gaTick {
  0%   { transform: translateY(-6px); opacity: .2; }
  100% { transform: none; opacity: 1; }
}
.ga-cd-label {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* "Members registered · 128 of 500" and the bar beneath it. */
.ga-progress { margin-top: 16px; }
.ga-progress[hidden] { display: none; }
.ga-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}
.ga-progress-row strong { color: var(--ink); font-weight: 700; }
.ga-progress-track {
  height: 6px;
  margin-top: 6px;
  border-radius: var(--r-pill);
  background: var(--blue-light);
  overflow: hidden;
}
.ga-progress-fill {
  height: 100%;
  width: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--blue-deep), var(--blue));
  transition: width 1.1s var(--ease-out);
}

/* The first lines of the agenda, as a compact list. */
.ga-agenda {
  margin: 14px 0 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: grid;
  gap: 5px;
  font-size: 13.5px;
  color: var(--body);
}
.ga-agenda[hidden] { display: none; }
.ga-agenda li { display: flex; gap: 8px; align-items: baseline; }
.ga-agenda li::before {
  content: "";
  flex: none;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--blue);
  translate: 0 -1px;
}

/* A button whose arrow slides to the right as it is hovered. */
/* No margin of its own: the button already spaces its children by 8px. */
.btn-arrow .btn-arrow-glyph {
  display: inline-block;
  transition: transform .3s var(--ease-out);
}
.btn-arrow:hover .btn-arrow-glyph,
.btn-arrow:focus-visible .btn-arrow-glyph { transform: translateX(4px); }

/* "Add to calendar" under the buttons. */
.ga-card-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 12px 0 0;
  font-size: 13.5px;
}
.ga-card-links[hidden] { display: none; }
.ga-card-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: none;
}
.ga-card-links a:hover { text-decoration: underline; }

.ga-card-actions { margin-top: 18px; display: grid; gap: 10px; }
/* Full width inside the card: there is one thing to do here. */
.ga-card-actions .btn { width: 100%; justify-content: center; }
.ga-card-note { margin: 0; font-size: 13.5px; color: var(--muted); }

/* One column again before the card would squeeze the headline. */
@media (max-width: 900px) {
  .hero-inner.has-ga {
    flex-direction: column;
    text-align: center;
  }
  .hero-inner.has-ga .hero-main { align-items: center; }
  .hero-inner.has-ga .hero-title,
  .hero-inner.has-ga .hero-sub { margin-inline: auto; }
  .hero-inner.has-ga .hero-cta { justify-content: center; }
  .hero-inner.has-ga .hero-ga-card {
    flex: 0 0 auto;
    width: min(100%, 420px);
    margin-top: 34px;
  }
}


/* ============================================================
   FORMS — the shape of a Google form

   Members fill the cooperative's forms in Google Forms every year,
   and the General Assembly registration and the ballot are the two
   they are asked to get right. Those forms are a header card, a card
   for each question, and sections answered one screen at a time —
   so these are too, drawn with the site's own type and colour rather
   than Google's.

   The site's own radius is kept (nothing here is hard-edged) and so
   are the field, choice and consent styles above: a question card is
   still a .form-field, and still shows its error the same way.
   ============================================================ */

.gform-card {
  padding: 24px 26px;
  margin-bottom: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

/* --- The form's own header ------------------------------------- */
/* The stripe across the top is the one thing every Google form has in
   common, and it is what makes this read as a form to fill in rather
   than another page of the site. */
.gform-head {
  margin-bottom: 24px;
  padding-top: 26px;
  border-top: 9px solid var(--blue);
}
.gform-title { margin-top: 14px; font-size: clamp(1.7rem, 3vw, 2.15rem); }
.gform-desc  { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--body); }
.gform-desc:empty { display: none; }

/* --- Sections --------------------------------------------------- */
.gform-section[hidden] { display: none; }

/* "Section 2 of 5" — which is the one thing paging takes away unless
   it is said out loud: how much of this is left. */
.gform-step {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 13px;
  background: var(--blue-light);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--blue-dark);
}

.gform-section-head { border-top: 4px solid var(--blue); }
.gform-section-head h2 { font-size: 20px; }
.gform-section-desc { margin-top: 8px; font-size: 14.5px; line-height: 1.7; color: var(--body); }

/* --- A question ------------------------------------------------- */
.gform-label {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--ink);
}
/* Red, as every form the members have ever filled in marks it. */
.gform-req { color: var(--danger); font-weight: 700; }

.gform-help {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* The gap under the question text, wherever the answer starts. */
.gform-card > .field-input,
.gform-card > .choice-group,
.gform-card > .ballot-counter,
.gform-card > .form-item-image { margin-top: 14px; }

.gform-card.has-error { border-color: var(--danger-soft); }

/* --- A block of text, not a question ---------------------------- */
/* The REMINDER panel at the top of the cooperative's own forms: a card
   with a coloured edge, rather than a paragraph adrift between two
   questions where it reads as something already answered. */
.gform-note {
  border-left: 5px solid var(--blue);
  background: var(--blue-light);
}
.gform-note strong { display: block; margin-bottom: 6px; color: var(--ink); }
.gform-note p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--body); }

/* --- Moving between sections ------------------------------------ */
.gform-nav {
  display: flex;
  align-items: center;
  margin-top: 24px;
}
/* Same trap as .form-actions above: .btn sets display:inline-flex, which beats
   the UA sheet's [hidden] rule, so Back and Next were still drawn after being
   hidden — Next sat on the last section of the ballot, above the Submit button
   it had nothing left to do before. */
.gform-nav .btn[hidden] { display: none; }
/* And every other button: the same rule bit again on the Responses tab's
   Download button, so it is said once for all of them. */
.btn[hidden] { display: none; }

/* Auto margins either side, so the count stays put whether or not Back
   is on the page — on the first section it is not. */
.gform-progress {
  margin-inline: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* Submit is the page's own button, below the paging. It is hidden until
   the last section, so the gap it leaves should not be there either. */
.form-page .form-actions[hidden] { display: none; }

@media (max-width: 600px) {
  .gform-card { padding: 20px 18px; }
  .gform-head { padding-top: 22px; }
  /* The buttons need the width more than the count needs the middle. */
  .gform-nav { flex-wrap: wrap; gap: 12px; }
  .gform-progress { order: -1; width: 100%; margin-inline: 0; text-align: center; }
  .gform-nav .btn { flex: 1; }
}

/* --- The same questions, embedded -------------------------------- */
/* The home page's contact form runs through the same renderer, but it is
   already sitting inside a card. A card for each question inside that one
   would be a card in a card, so here the chrome comes off and the questions
   read as the short list they are. */
.contact-form-card .gform-card {
  padding: 0;
  margin-bottom: 20px;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.contact-form-card .gform-card:last-of-type { margin-bottom: 0; }
.contact-form-card .gform-card > .field-input,
.contact-form-card .gform-card > .choice-group { margin-top: 8px; }
.contact-form-card .gform-card.has-error { border: 0; }

/* How far through the sections — Google's "show progress bar". With sixteen
   of them on the ballot, "Section 9 of 16" alone asks the member to do the
   arithmetic. */
.gform-progress-track {
  height: 6px;
  margin-top: 26px;
  background: var(--canvas);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.gform-progress-bar {
  height: 100%;
  width: 0;
  background: var(--blue);
  border-radius: var(--r-pill);
  transition: width .3s var(--ease-out);
}
.gform-progress-track + .gform-nav { margin-top: 14px; }

/* "* Indicates required question" — Google's one line under the header. */
.gform-required-note {
  margin: 0 0 12px;
  font-size: 13.5px;
  color: var(--muted);
}
.gform-required-note .gform-req { margin-right: 2px; }
.form-actions .gform-clear { margin-left: auto; }


/* ============================================================
   MEMBER AREA — the assembly card with the member's steps on it
   ============================================================ */
.member-ga {
  max-width: 560px;
  margin-top: 30px;
  /* The hero entrance animation is the home page's; here the card is
     simply there. */
  opacity: 1;
  animation: none;
}
.ga-steps-title {
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.ga-steps {
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.ga-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface, #fff);
}
.ga-step.is-open { border-color: var(--blue); background: var(--blue-light); }
.ga-step.is-done { background: #f3faf6; border-color: #cfead9; }
.ga-step.is-locked, .ga-step.is-closed { color: var(--muted); }
.ga-step.is-empty { justify-content: center; color: var(--muted); font-size: 14px; }

/* The number, or a tick once done. */
.ga-step-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  font-size: 13px;
  font-weight: 800;
  color: var(--blue);
  background: #fff;
}
.ga-step.is-done .ga-step-mark {
  border-color: #15713f;
  background: #15713f;
  color: #fff;
}
.ga-step.is-done .ga-step-mark::before {
  content: "";
  width: 7px; height: 12px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: translateY(-1px) rotate(45deg);
}
.ga-step.is-locked .ga-step-mark,
.ga-step.is-closed .ga-step-mark { border-color: var(--line); color: var(--muted); }

.ga-step-text { flex: 1; min-width: 0; }
.ga-step-text strong { display: block; font-size: 15px; color: var(--ink); }
.ga-step.is-locked .ga-step-text strong,
.ga-step.is-closed .ga-step-text strong { color: var(--body); }
.ga-step-text small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.ga-step.is-done .ga-step-text small { color: #15713f; }

.ga-step-action { flex: none; }
.ga-step-action .btn { padding-inline: 16px; }
.ga-step-state {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.ga-step.is-done .ga-step-state { color: #15713f; }
.ga-step-link { font-size: 14px; font-weight: 600; color: var(--blue-dark); }

.member-ga .ga-card-actions { margin-top: 14px; }
.member-ga .ga-card-actions[hidden] { display: none; }

/* --- How it works: the guide beside the card ---------------------- */
/* The member page is wider than a form page so the card and the guide
   can sit side by side; below 960px they stack, card first. */
.member-page { max-width: 1140px; }
.member-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
@media (min-width: 960px) {
  .member-columns { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); gap: 28px; }
  .member-columns .member-guide { margin-top: 30px; }   /* level with the card */
}
.member-guide {
  max-width: 560px;
  margin-top: 0;
  padding: 22px 26px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.member-guide-title {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.member-guide-list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide;
  display: grid;
  gap: 14px;
}
.member-guide-list li {
  position: relative;
  padding-left: 40px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}
.member-guide-list li::before {
  counter-increment: guide;
  content: counter(guide);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue-light);
  color: var(--blue-dark);
  font-size: 12.5px;
  font-weight: 800;
}
.member-guide-list strong { color: var(--ink); }
.member-guide-list em { font-style: normal; font-weight: 600; color: var(--blue-dark); }
.member-guide-help {
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--muted);
}
.member-guide-help a { color: var(--blue-dark); font-weight: 600; text-decoration: none; }
.member-guide-help a:hover { text-decoration: underline; }
@media (max-width: 520px) {
  .member-guide { padding: 18px 18px 16px; }
}

.member-services {
  margin: 26px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.member-services a {
  margin-left: 14px;
  color: var(--blue-dark);
  font-weight: 600;
  text-decoration: none;
}
.member-services a:hover { text-decoration: underline; }

@media (max-width: 520px) {
  .ga-step { flex-wrap: wrap; }
  .ga-step-action { width: 100%; padding-left: 42px; }
  .ga-step-action .btn { width: 100%; justify-content: center; }
}
