/* Portal stylesheet — layout and type from the SWOPP Website design
   canvas (scratchpad/swopp-capture/design/, extraction in STEP1-1.1);
   ground restyled to clean white per Hugh, 2026-09-03 (the cream paper
   was the old site's). Surfaces separate by edge and elevation, not
   background colour. No brand colour is hardcoded as a fact about a
   cooperative; these are the design system's palette. */

@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  src: url('/fonts/archivo-latin-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Anton loads only when the published theme names it (display_font:
   anton — the documented web substitute where a brand book says
   Impact). One weight; body text never uses it. */
@font-face {
  font-family: 'Anton';
  src: url('/fonts/anton-latin.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Anton';
  src: url('/fonts/anton-latin-ext.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #FFFFFF;
  --ink: #1F2A18;
  --deep: #1F3A28;
  --deep-hover: #16301F;
  --red: #D3000A; /* the logo's red dot; 5.6:1 against white either way */
  --red-hover: #A80008; /* the accent, pressed: a published theme derives its own */
  --green: #72AB2D;
  --green-strong: #568321;  /* 4.5:1 on white — the display green for big numbers */
  --green-deep: #4E7A1A;    /* 5.1:1 on white — green at small sizes */
  --sage: #AFC2A8;          /* eyebrow tint of --deep; 6.55:1 on it. A theme derives its own */
  --deep-text: #DDE6D9;     /* body text on --deep; a theme derives its own */
  --chip-bg: #F0F6E8;       /* the offer chip: a wash of --green; a theme derives its own */
  --green-ink: #3E6318;     /* chip text and form-ok; ~7:1 on white; a theme derives its own */
  --border: #E3E5DE;
  --border-soft: #ECEEE8;
  --muted: #767463; /* 4.7:1 on white */
  --body: #4E564C;
  --radius-card: 16px;
  --radius-panel: 28px;
  --shadow-card: 0 1px 2px rgba(15, 23, 12, .04), 0 6px 16px rgba(15, 23, 12, .05);
  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }

.eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 1.8px;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.eyebrow-light { color: var(--sage); }
.eyebrow-red { color: var(--red); }
.band-deep .eyebrow { color: var(--sage); } /* --red is 2.2:1 on --deep */
.cta .eyebrow-light { color: rgba(255,255,255,.92); } /* sage fails on the red half */

.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 800; font-size: 15px; text-decoration: none;
  border: 2px solid transparent; cursor: pointer; font-family: var(--font);
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
/* One committed action per section: the secondary reads as a text link,
   not a competing button. */
.btn-ghost {
  border: 0; padding: 14px 8px; color: #fff; font-weight: 700;
  text-decoration: underline; text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
}
.btn-ghost:hover { opacity: .85; background: none; }
.btn-deep { background: var(--deep); color: #fff; }
.btn-deep:hover { background: var(--deep-hover); }
.btn-block { display: block; text-align: center; }

/* header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; max-width: 1200px; margin: 0 auto; padding: 18px 24px;
}
.brand { text-decoration: none; display: flex; align-items: center; }
.brand-mark { font-weight: 900; font-size: 22px; letter-spacing: .5px; color: var(--deep); text-transform: uppercase; }
.brand-logo { height: 40px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { text-decoration: none; font-weight: 700; font-size: 15px; color: var(--ink); }
.site-nav a:hover { color: var(--red); }
.site-nav a[aria-current="page"] { color: var(--red); }
.site-nav .btn-nav { color: #fff; padding: 10px 20px; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 3px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* hero — the split (ruling 2026-09-04). Copy on white at left, the
   image full-bleed at right and untouched: it is the asset, and nothing
   is laid over it. Phones stack the image on top. Ink on white needs no
   measuring, whatever the cooperative's picture is. */
.hero {
  display: grid; grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--border);
  width: calc(100% - 32px); max-width: 1360px; margin: 8px auto 0;
  border-radius: var(--radius-panel);
}
.hero-noimg { grid-template-columns: 1fr; }
.hero-copy { display: flex; align-items: center; }
.hero-inner { position: relative; max-width: 640px; padding: 72px 48px 72px 56px; color: var(--ink); }
.hero-media { position: relative; min-height: 560px; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .eyebrow-light { color: var(--green-deep); }
.hero .btn-ghost { color: var(--ink); border-color: var(--ink); }
.hero-heading {
  font-size: clamp(36px, 5.5vw, 56px); font-weight: 900; text-transform: uppercase;
  line-height: 1.05; letter-spacing: .5px; margin: 0 0 20px; max-width: 820px;
}
.hero-heading .accent { color: var(--green); }
.hero-sub { font-size: 18px; max-width: 600px; color: var(--body); margin: 0 0 32px; }
.hero-ctas { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.hero-note { margin-top: 26px; font-size: 14px; color: var(--muted); }
.hero-note a { color: var(--ink); font-weight: 700; }

/* stats band — the numbers carry it: big, green, unfenced */
.stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  max-width: 1200px; margin: 0 auto; padding: 72px 24px 24px; gap: 24px;
}
/* The column count is an attribute the renderer sets from the block
   count, read here — never an inline style: the site's CSP admits none. */
.stats[data-cols="1"] { grid-template-columns: 1fr; }
.stats[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.stats[data-cols="4"] { grid-template-columns: repeat(4, 1fr); }
.stats[data-cols="5"] { grid-template-columns: repeat(5, 1fr); }
.stats[data-cols="6"] { grid-template-columns: repeat(6, 1fr); }
.stat { text-align: center; padding: 10px 16px; }
.stat-value { font-size: clamp(44px, 5vw, 60px); font-weight: 900; color: var(--green-strong); letter-spacing: -1px; line-height: 1; }
.stat-label { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-top: 10px; }

/* generic bands — white ground; surfaces separate by edge and elevation */
.band { padding: 96px 24px; }
.band > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.band-white { background: var(--bg); }
.band-paper { background: var(--bg); }
.band-deep {
  background: var(--deep); color: var(--deep-text);
  width: calc(100% - 32px); max-width: 1360px; margin: 0 auto;
  border-radius: var(--radius-panel); padding: 88px 48px;
}
.band-deep .band-heading { color: #fff; }
.band-head { margin-bottom: 52px; }
.band-head.center { text-align: center; }
.band-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.band-heading { font-size: clamp(28px, 3.6vw, 40px); font-weight: 900; margin: 0; color: var(--deep); line-height: 1.12; letter-spacing: -.3px; }
.band-sub { color: var(--body); max-width: 620px; margin: 14px 0 0; font-size: 17px; }
.band-head.center .band-sub { margin-left: auto; margin-right: auto; }
.band-link { font-weight: 800; color: var(--red); text-decoration: none; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.steps[data-cols="1"] { grid-template-columns: 1fr; }
.steps[data-cols="2"] { grid-template-columns: repeat(2, 1fr); }
.steps[data-cols="3"] { grid-template-columns: repeat(3, 1fr); }
.steps[data-cols="5"] { grid-template-columns: repeat(5, 1fr); }
.steps[data-cols="6"] { grid-template-columns: repeat(6, 1fr); }
.step { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-card); padding: 30px 26px; box-shadow: var(--shadow-card); }
.step-num { font-size: 13px; font-weight: 900; color: var(--green-deep); letter-spacing: 1px; margin-bottom: 12px; }
.step-heading { font-size: 18px; font-weight: 800; margin: 0 0 8px; color: var(--deep); }
.step-body { font-size: 15px; color: var(--body); margin: 0; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-card); padding: 30px 26px; box-shadow: var(--shadow-card); }
.card-heading { font-size: 18px; font-weight: 800; margin: 0 0 8px; color: var(--deep); }
.card-body { font-size: 15px; color: var(--body); margin: 0; }

/* split */
.split { display: grid; grid-template-columns: 1.2fr .8fr; gap: 56px; align-items: start; }
.split-body { color: inherit; font-size: 16px; max-width: 62ch; }
.band-white .split-body { color: var(--body); }
.person-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-card);
  padding: 28px; display: flex; gap: 18px; align-items: flex-start; color: var(--ink);
  box-shadow: var(--shadow-card);
}
.person-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.person-name { font-weight: 900; font-size: 18px; color: var(--deep); }
.person-role { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--red); margin: 2px 0 10px; }
.person-body { font-size: 14px; color: var(--body); margin: 0; }
.aside-note { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 26px; }
.aside-body { margin: 0; }

/* benefits + fee card */
.benefit-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 26px; align-content: start; }
.benefit-heading { font-size: 16px; font-weight: 800; margin: 0 0 6px; color: var(--deep); }
.benefit-body { font-size: 15px; color: var(--body); margin: 0; }
.fee-card { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-card); padding: 32px; box-shadow: var(--shadow-card); }
.fee-heading { font-size: 30px; font-weight: 900; color: var(--deep); margin: 0 0 10px; }
.fee-note { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.fee-includes { font-size: 14px; color: var(--body); margin: 0 0 20px; }

/* partner logo strip */
.logo-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.logo-tile {
  background: #fff; border: 1px solid var(--border-soft); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; padding: 18px; min-height: 96px;
  box-shadow: var(--shadow-card);
}
.logo-tile img { max-height: 60px; object-fit: contain; }

/* CTA pair — an inset rounded panel, like the hero */
.cta-pair {
  display: grid; grid-template-columns: 1fr 1fr;
  width: calc(100% - 32px); max-width: 1360px; margin: 0 auto 96px;
  border-radius: var(--radius-panel); overflow: hidden;
}
.cta { padding: 72px 56px; color: #fff; }
/* A cta panel names what it paints, not what the default palette
   happened to resolve (181): deep is the theme deep, accent the theme
   accent. */
.cta-deep { background: var(--deep); }
.cta-accent { background: var(--red); }
.cta-heading { font-size: 28px; font-weight: 900; margin: 0 0 10px; }
.cta-body { max-width: 460px; opacity: .9; margin: 0 0 24px; }

/* prose */
.prose { max-width: 680px; }
.prose-para { color: var(--body); }
.prose-heading { font-size: 19px; font-weight: 800; color: var(--deep); margin: 28px 0 6px; }
.prose-meta { font-size: 13px; color: var(--muted); }

/* directory */
.dir { display: grid; grid-template-columns: 260px 1fr; gap: 34px; align-items: start; }
.dir-facets { position: sticky; top: 16px; }
.dir-search {
  width: 100%; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--border);
  font-family: var(--font); font-size: 15px; background: #fff; margin-bottom: 20px;
}
.facet { border: 0; padding: 0; margin: 0 0 20px; }
.facet-title { font-size: 11px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.facet-opt { display: block; font-size: 14px; color: var(--body); padding: 3px 0; cursor: pointer; }
.dir-count { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.dir-list { display: grid; gap: 14px; }
/* The filter script hides cards with the hidden attribute; any author
   display rule (like .dir-card's flex) beats the UA sheet's [hidden],
   so the attribute needs its own author rule to mean anything. */
[hidden] { display: none !important; }
.dir-card {
  display: flex; gap: 18px; background: #fff; border: 1px solid var(--border-soft);
  border-radius: var(--radius-card); padding: 20px 22px; text-decoration: none; align-items: center;
  box-shadow: var(--shadow-card);
}
.dir-card:hover { border-color: var(--green-strong); }
.dir-logo { width: 72px; height: 72px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.dir-logo img { max-height: 64px; object-fit: contain; }
.dir-card-main { min-width: 0; }
.dir-card-head { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.dir-name { font-weight: 800; font-size: 17px; color: var(--deep); }
.dir-meta { font-size: 13px; color: var(--muted); }
.offer-chip {
  display: inline-block; margin-top: 8px; padding: 6px 12px; border-radius: 8px;
  background: var(--chip-bg); color: var(--green-ink); font-size: 13px; font-weight: 700;
}
.dir-tags { margin-top: 8px; }
.tag {
  display: inline-block; font-size: 12px; color: var(--body); background: #F4F6F1;
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; margin: 2px 4px 2px 0;
}

/* partner detail */
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.crumbs a { color: var(--red); font-weight: 700; text-decoration: none; }
.partner-head { display: flex; gap: 22px; align-items: center; margin-bottom: 30px; }
.partner-logo { max-height: 88px; max-width: 160px; object-fit: contain; }
.partner-name { font-size: clamp(26px, 3.4vw, 38px); font-weight: 900; color: var(--deep); margin: 0; }
.partner-meta { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.partner-cols { display: grid; grid-template-columns: 1.4fr .6fr; gap: 40px; align-items: start; }
.arrangement { background: #fff; border: 1px solid var(--border-soft); border-left: 4px solid var(--green-strong); border-radius: 0 var(--radius-card) var(--radius-card) 0; padding: 24px 28px; margin-bottom: 24px; box-shadow: var(--shadow-card); }
.arrangement-text { font-size: 18px; font-weight: 700; color: var(--deep); margin: 8px 0; }
.arrangement-note { font-size: 12px; color: var(--muted); margin: 0; }
.partner-desc { color: var(--body); }
.locations { margin-top: 24px; }
.loc-chips { margin-top: 10px; }
.contact-card, .related { background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-card); padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow-card); }
.contact-card p { margin: 8px 0 0; font-size: 14px; }
.contact-card a { color: var(--deep); font-weight: 700; text-decoration: none; }
.contact-card a:hover { color: var(--red); }
.hours { color: var(--body); }
.related-link { display: block; margin-top: 10px; font-size: 14px; font-weight: 700; color: var(--deep); text-decoration: none; }
.related-link:hover { color: var(--red); }

/* forms */
.form-wrap { max-width: 640px; }
.enquiry { margin-top: 10px; }
.field { display: block; margin-bottom: 16px; font-size: 13px; font-weight: 800; color: var(--deep); }
.field input, .field textarea {
  display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font-size: 15px;
  font-family: var(--font); border: 1px solid var(--border); border-radius: 10px; background: #fff;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--green); border-color: var(--green); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hp { position: absolute; left: -9999px; top: -9999px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--body); margin: 18px 0 22px; }
.consent a { color: var(--red); font-weight: 700; }
.form-status { font-size: 14px; font-weight: 700; margin-top: 14px; min-height: 20px; }
.form-status.ok { color: var(--green-ink); }
.form-status.err { color: var(--red); }

/* footer */
.site-footer { background: var(--ink); color: #C8CFC3; padding: 64px 24px 36px; margin-top: 32px; }
.footer-cols { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-logo { height: 36px; width: auto; display: block; margin-bottom: 12px; }
.footer-brand { font-weight: 900; font-size: 20px; text-transform: uppercase; color: #fff; letter-spacing: .5px; margin-bottom: 10px; }
.footer-line { font-size: 14px; margin: 4px 0; }
.footer-line a { color: #E8EDE5; }
.footer-tagline { color: #E8EDE5; }
.footer-col-heading { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #A6AF9F; margin-bottom: 2px; }
.footer-nav { display: grid; gap: 8px; align-content: start; }
.footer-nav a { font-size: 14px; color: #C8CFC3; text-decoration: none; }
.footer-nav a:hover { color: #fff; }
.footer-legal { max-width: 1200px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12px; color: #A6AF9F; }

/* responsive */
@media (max-width: 900px) {
  .band { padding: 72px 24px; }
  .band-deep { padding: 64px 32px; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; min-height: 0; aspect-ratio: 4 / 3; }
  .hero-inner { max-width: none; padding: 40px 32px 48px; }
  .cta { padding: 56px 36px; }
  .split, .partner-cols, .dir { grid-template-columns: 1fr; }
  .dir-facets { position: static; }
  .steps, .steps[data-cols] { grid-template-columns: 1fr 1fr; }
  /* Four or more stats halve at tablet width; three still fit across. */
  .stats[data-cols="4"], .stats[data-cols="5"], .stats[data-cols="6"] { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: 1fr; }
  .benefit-list { grid-template-columns: 1fr; }
  .logo-strip { grid-template-columns: repeat(3, 1fr); }
  .cta-pair { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .band { padding: 56px 20px; }
  .hero, .band-deep, .cta-pair { width: calc(100% - 20px); border-radius: 20px; }
  .hero-inner { padding: 36px 24px 44px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0; z-index: 20;
    flex-direction: column; align-items: stretch; background: var(--bg);
    border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 14px;
  }
  .site-nav.open { display: flex; }
  .site-header { position: relative; }
  .steps, .steps[data-cols] { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  /* Phone: 2x2. Four numbers stacked one per row ran 570px tall; two across
     keeps the band to half that with the labels wrapping to two lines. */
  .stats, .stats[data-cols] { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; padding-top: 56px; }
  .stats[data-cols="1"] { grid-template-columns: 1fr; }
  .stat-label { letter-spacing: .8px; }
}

/* Image treatments, set by the published theme on <body>. Full bleed is
   the default and needs no class. */
.img-inset .hero-img { inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); border-radius: var(--radius-card); }
.img-duotone .hero-img { filter: grayscale(1) contrast(1.1); mix-blend-mode: luminosity; opacity: .55; }

/* The display face, set by the published theme on <body>. Archivo is
   the default and needs no class. Anton has one weight, so the 900s
   above simply stop mattering under it; it runs tall and narrow, so it
   gets a breath of tracking and the brand books' uppercase. Display
   type only — body text, buttons and navigation keep the body face. */
.font-anton .hero-heading, .font-anton .band-heading, .font-anton .stat-value,
.font-anton .cta-heading, .font-anton .fee-heading, .font-anton .partner-name {
  font-family: 'Anton', var(--font);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .5px;
}
