/* =========================================================
   KENEWA design "Harambee" (October 2026)
   "Harambee" means pulling together. Loaded LAST on every page (public site, members area,
   committee area and sign-in), so the whole of kenewa.org looks like one product.
   To go back to the previous look, remove the line
       <link rel="stylesheet" href="css/theme-harambee.css">
   from the pages (or empty this file). No page logic depends on it.

   Colours: the Kenyan flag colours, each with one job (contrast checked, WCAG 2.2 AA)
     --hb-ink       #13241B  text; dark sections            white 16.2:1
     --hb-tea       #2B6E46  links, secondary buttons       on white 6.1:1, on mist 5.5:1
     --hb-eucalypt  #1E4A34  hover, hero panels, cards      white 10.1:1
     --hb-maize     #F2B53C  the ONE main button per screen ink text 8.8:1
     --hb-red       #B3261E  Get help, urgent, errors only  white 6.5:1
     --hb-mist      #EDF3EE  alternate sections             ink 14.4:1
     --hb-slate     #4A5A50  secondary text                 white 7.3:1, mist 6.5:1
     --hb-rule      #D3DDD5  dividers only
     --hb-field     #6F8076  input borders                  4.2:1 (3:1 needed)
     --hb-notice    #FCEFD2 / #5C4210  "To be confirmed"    8.2:1
   Type
     Headings: Zilla Slab 600/700 (a sturdy, friendly slab serif)
     Text:     Atkinson Hyperlegible Next 400-800 (Braille Institute; its slashed zero keeps 0 and O apart)
   Shape: 6px buttons and inputs, 8px cards, no shadows. The kikoi band (flag stripe, 5:3:1:1:1:3:6)
   runs along the top of every page.
   ========================================================= */
@font-face { font-family: "Zilla Slab"; src: url("../fonts/zilla-slab-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Zilla Slab"; src: url("../fonts/zilla-slab-latin-700-normal.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-400-normal.woff2") format("woff2"); font-weight: 300 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-500-normal.woff2") format("woff2"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible Next"; src: url("../fonts/atkinson-hyperlegible-next-latin-800-normal.woff2") format("woff2"); font-weight: 800 900; font-style: normal; font-display: swap; }

:root {
    --hb-ink: #13241B;
    --hb-tea: #2B6E46;
    --hb-eucalypt: #1E4A34;
    --hb-maize: #F2B53C;
    --hb-maize-hover: #E9A51F;
    --hb-maize-light: #F7D07A;   /* hover on dark backgrounds; ink text 11:1 */
    --hb-red: #B3261E;
    --hb-red-deep: #8E1D17;
    --hb-red-tint: #FBEDEC;
    --hb-mist: #EDF3EE;
    --hb-slate: #4A5A50;
    --hb-rule: #D3DDD5;
    --hb-field: #6F8076;
    --hb-notice: #FCEFD2;
    --hb-notice-ink: #5C4210;
    --hb-on-dark: #C9D9CE;       /* quiet text on ink and eucalypt: 10:1 and 7:1 */
    --hb-display: "Zilla Slab", Rockwell, Georgia, serif;
    --hb-text: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", Verdana, "Segoe UI", Arial, sans-serif;
    --hb-kikoi: linear-gradient(90deg, #13241B 0 25%, #2B6E46 25% 40%, #fff 40% 45%, #B3261E 45% 50%, #fff 50% 55%, #F2B53C 55% 70%, #1E4A34 70% 100%);

    /* the older tokens every stylesheet already uses, pointed at Harambee */
    --tl-eucalypt: var(--hb-eucalypt); --tl-eucalypt-2: #255A40; --tl-eucalypt-deep: var(--hb-ink);
    --tl-forest: var(--hb-tea); --tl-forest-deep: var(--hb-eucalypt); --tl-olive: var(--hb-tea);
    --tl-gold: var(--hb-maize); --tl-gold-light: var(--hb-maize-light); --tl-amber: var(--hb-notice-ink); --tl-amber-tint: var(--hb-notice);
    --tl-wheat: var(--hb-mist); --tl-frost: var(--hb-mist); --tl-line: var(--hb-rule); --tl-ink: var(--hb-ink); --tl-muted: var(--hb-slate); --tl-red: var(--hb-red);

    --k-ink: var(--hb-ink); --k-muted: var(--hb-slate); --k-paper: #fff; --k-pasture: var(--hb-mist); --k-rule: var(--hb-rule);
    --k-eucalypt: var(--hb-eucalypt); --k-eucalypt-deep: var(--hb-ink); --k-forest: var(--hb-tea); --k-forest-deep: var(--hb-eucalypt);
    --k-maize: var(--hb-maize); --k-maize-soft: var(--hb-maize-light); --k-red: var(--hb-red);
    --k-display: var(--hb-display); --k-text: var(--hb-text);
    --k-fs-h1: clamp(2.5rem, 6.2vw, 3.9rem);
    --k-fs-h2: clamp(2rem, 4.4vw, 2.6rem);
    --k-fs-h3: 1.5rem;

    --u-night: var(--hb-eucalypt); --u-night-2: var(--hb-ink); --u-green: var(--hb-tea); --u-green-deep: var(--hb-eucalypt);
    --u-gold: var(--hb-maize); --u-gold-light: var(--hb-maize-light); --u-cream: var(--hb-mist); --u-line: var(--hb-rule);
    --u-ink: var(--hb-ink); --u-muted: var(--hb-slate); --u-red: var(--hb-red);

    --green: var(--hb-tea); --green-deep: var(--hb-eucalypt); --green-rgb: 43, 110, 70; --green-night: var(--hb-eucalypt);
    --teal: var(--hb-eucalypt); --teal-deep: var(--hb-ink); --msitu: var(--hb-eucalypt); --msitu-2: var(--hb-ink);
    --link: var(--hb-tea); --damu: var(--hb-tea); --mint: var(--hb-maize-light); --mahindi: var(--hb-maize-light); --accent: var(--hb-tea);
    --leaf: var(--hb-mist); --stone: var(--hb-mist); --paper: var(--hb-mist); --line: var(--hb-rule); --line-2: var(--hb-rule); --line-soft: #E4EBE6;
    --ink: var(--hb-ink); --muted: var(--hb-slate); --red: var(--hb-red); --urgent: var(--hb-red);
    --footer: var(--hb-ink); --charcoal: var(--hb-ink);
    --radius: 8px; --u-radius: 6px; --k-radius: 6px;
    --font-display: var(--hb-display); --font-body: var(--hb-text); --font-brand: var(--hb-text);
}

/* ---------- 1. type ---------- */
body { font-family: var(--hb-text); color: var(--hb-ink); }
h1, h2, .section-title, .page-hero h1, .footer-name {
    font-family: var(--hb-display) !important; font-weight: 700 !important; letter-spacing: 0 !important; }
h1, .page-hero h1 { line-height: 1.05 !important; }
h2, .section-title { line-height: 1.1 !important; }
h3, h4 { font-family: var(--hb-text); font-weight: 700; }
a { color: var(--hb-tea); }
a:hover { color: var(--hb-eucalypt); }

/* ---------- 2. buttons ---------- */
.btn { border-radius: 6px !important; font-family: var(--hb-text); font-weight: 700; }
/* the filled green button is the secondary action */
.btn-gold, .btn-damu, .btn-green { background: var(--hb-tea) !important; border: 2px solid var(--hb-tea) !important; color: #fff !important; }
.btn-gold:hover, .btn-gold:focus-visible, .btn-damu:hover, .btn-green:hover { background: var(--hb-eucalypt) !important; border-color: var(--hb-eucalypt) !important; color: #fff !important; }
/* maize: the one main action on a screen */
.btn-maize, .hb-primary,
.k-hero .btn-maize, .page-hero .btn-maize, .page-hero .btn-gold, .u-next .btn-maize, .section-dark .btn-gold, .cta .btn-gold, .cta .btn-maize, .donate-band .btn-gold,
.home-head-acts .btn-gold, .td-acts .btn-gold, .ui-bulk .btn-gold, .sheet-acts .btn-gold, .home-card .btn-maize, .choose-featured .btn-gold {
    background: var(--hb-maize) !important; border: 2px solid var(--hb-maize) !important; color: var(--hb-ink) !important; }
.btn-maize:hover, .hb-primary:hover, .page-hero .btn-gold:hover, .home-head-acts .btn-gold:hover, .td-acts .btn-gold:hover, .ui-bulk .btn-gold:hover,
.sheet-acts .btn-gold:hover, .choose-featured .btn-gold:hover {
    background: var(--hb-maize-hover) !important; border-color: var(--hb-maize-hover) !important; color: var(--hb-ink) !important; }
.btn-outline-ink { background: #fff !important; border: 2px solid var(--hb-ink) !important; color: var(--hb-ink) !important; }
.btn-outline-ink:hover, .btn-outline-ink:focus-visible { background: var(--hb-mist) !important; color: var(--hb-ink) !important; }
.btn-help { background: var(--hb-red) !important; border: 2px solid var(--hb-red) !important; color: #fff !important; border-radius: 6px !important; }
.btn-help:hover, .btn-help:focus-visible { background: var(--hb-red-deep) !important; border-color: var(--hb-red-deep) !important; color: #fff !important; }

/* forms: a field edge that meets 3:1 */
.form-control, .form-select { border: 2px solid var(--hb-field); border-radius: 6px !important; color: var(--hb-ink); }
.form-control:focus, .form-select:focus { border-color: var(--hb-tea); box-shadow: 0 0 0 3px rgba(242, 181, 60, .55); }

/* focus: ink ring with a maize halo, everywhere */
:focus-visible { outline: 3px solid var(--hb-ink) !important; outline-offset: 2px !important; box-shadow: 0 0 0 6px var(--hb-maize) !important; }

/* notices and "to be confirmed" labels */
.tbc, .badge-tbc { background: var(--hb-notice); color: var(--hb-notice-ink); }

/* ---------- 3. public header: white, five places, red Get help ---------- */
.hb-header { position: sticky; top: 0; z-index: 1030; background: #fff; border-bottom: 1px solid var(--hb-rule); }
.hb-header::before { content: ""; display: block; height: 6px; background: var(--hb-kikoi); }
.hb-header .site-nav { background: #fff !important; box-shadow: none !important; padding: .55rem 0 !important; position: static; }
.hb-header .brand { display: flex; align-items: center; gap: .75rem; margin-right: 1.5rem; text-decoration: none; }
.hb-header .brand::after { content: none !important; }
.hb-header .brand-logo { width: 52px; height: 52px; background: #fff; border-radius: 50%; padding: 0; }
.hb-header .brand-text { display: flex !important; flex-direction: column; text-transform: none; letter-spacing: 0; line-height: 1.1; }
.hb-header .brand-name { font-family: var(--hb-display); font-weight: 700; font-size: 1.75rem; color: var(--hb-ink); }
.hb-header .brand-full { font-family: var(--hb-text); font-weight: 400; font-size: .875rem; color: var(--hb-slate); }
.hb-header .nav-link { font-family: var(--hb-text); font-weight: 700; font-size: 1.0625rem; color: var(--hb-ink) !important; background: transparent !important;
    border-radius: 0 !important; padding: .55rem .2rem !important; margin: 0 .5rem; border-bottom: 3px solid transparent; box-shadow: none !important; text-decoration: none; }
.hb-header .nav-link:hover { color: var(--hb-tea) !important; border-bottom-color: var(--hb-maize); text-decoration: none; }
.hb-header .nav-link.active, .hb-header .nav-link[aria-current] { color: var(--hb-ink) !important; border-bottom-color: var(--hb-maize); box-shadow: none !important; }
.hb-header .hb-members { font-size: 1rem; }
.hb-header .nav-btn .btn-help { min-height: 46px; padding: .4rem 1.15rem; margin-left: .5rem; }
.hb-header .navbar-toggler { width: 48px; height: 48px; padding: 0; border: 2px solid var(--hb-ink) !important; border-radius: 6px; }
@media (max-width: 1199.98px) { .hb-header .navbar-toggler { display: inline-grid; place-items: center; } }
.hb-header .navbar-toggler-icon { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%2313241B' stroke-linecap='round' stroke-width='2.6' d='M5 8h20M5 15h20M5 22h20'/%3e%3c/svg%3e") !important; }
.hb-header :focus-visible { outline-color: var(--hb-ink) !important; }
.hb-help-phone { display: none; }
@media (min-width: 1200px) {
    .hb-header .container { max-width: 1240px; }
    .hb-header .navbar-collapse { gap: .5rem; }
    .hb-header .hb-more { display: none; }
    .hb-header .hb-actions { margin-left: 1rem; padding-left: 1rem; border-left: 1px solid var(--hb-rule); }
}
@media (min-width: 1200px) and (max-width: 1299.98px) {
    .hb-header .brand-full { display: none; }
    .hb-header .nav-link { margin: 0 .3rem; }
}
/* phones and tablets: logo, name, Get help and the menu button in one row */
@media (max-width: 1199.98px) {
    .hb-header .site-nav { min-height: 64px; padding: .4rem 0 !important; }
    .hb-header .brand { margin-right: auto; }
    .hb-header .brand-logo { width: 42px; height: 42px; }
    .hb-header .brand-full { display: none; }
    .hb-header .brand-name { font-size: 1.6rem; }
    .hb-help-phone { display: inline-flex; min-height: 48px; padding: 0 1rem; margin-right: .6rem; font-size: 1rem; }
    .hb-header .nav-btn { display: none; }
    .hb-header .navbar-collapse { border-top: 1px solid var(--hb-rule); margin-top: .5rem; }
    .hb-header .nav-link { min-height: 52px; display: flex; align-items: center; font-size: 1.2rem; margin: 0; padding-inline: 0 !important;
        border-bottom: 1px solid var(--hb-rule); }
    .hb-header .nav-link.active, .hb-header .nav-link[aria-current] { box-shadow: inset 4px 0 0 var(--hb-maize) !important; padding-left: .9rem !important; }
    .hb-header .hb-actions { padding-bottom: 1rem; }
}
@media (max-width: 399.98px) { .hb-header .brand-name { font-size: 1.35rem; } .hb-help-phone { padding: 0 .75rem; } }

/* old pieces of the previous header that some pages still style */
.topbar { display: none !important; }

/* ---------- 4. inner-page banners and sections ---------- */
.page-hero { background: var(--hb-eucalypt) !important; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 3.9rem) !important; max-width: 18ch; }
.section-soft { background: var(--hb-mist) !important; }
.section-dark, .section-green, .objective-band, .cta, .donate-band, .host-band { background: var(--hb-ink) !important; }
.h-card, .u-board, .u-news-card, .u-promo, .path-card, .fact-panel, .form-card, .h-join-form, .res-group, .portfolio, .h-people li,
.mv-card, .benefit, .support-cards .support, .u-port-list a, .u-tiles a, .u-quick-list a, .ev-card, .feature { border-radius: 8px !important; border-color: var(--hb-rule) !important; }
.h-ico, .support-ic { background: var(--hb-mist) !important; }

/* ---------- 5. footer: ink, with the kikoi band on top ---------- */
.site-footer { background: var(--hb-ink) !important; color: var(--hb-on-dark); position: relative; }
.site-footer::before { content: "" !important; display: block !important; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--hb-kikoi); }
.site-footer a { color: #fff; }
.footer-head { color: var(--hb-maize) !important; }
.footer-ack { border-left-color: var(--hb-maize) !important; }

/* ---------- 6. members area and committee area ---------- */
body.app, body.auth { background: var(--hb-mist); }
body.app .app-main h1, body.app .view > h1, body.app .pg-head h1 { font-family: var(--hb-display) !important; font-weight: 700 !important; letter-spacing: 0 !important; }
@media (min-width: 992px) {
    body.app .side { background: var(--hb-ink); box-shadow: none; padding-top: 0; }
    body.app .side::before { content: ""; display: block; height: 6px; margin: 0 -.75rem; background: var(--hb-kikoi); position: sticky; top: 0; z-index: 2; flex: none; }
    .side-brand { background: var(--hb-ink); top: 6px; }
    .side-brand strong { font-family: var(--hb-display); font-weight: 700; font-size: 1.45rem; letter-spacing: 0; }
    .side-brand span span { color: var(--hb-on-dark); }
    body.app .side .side-label { color: var(--hb-on-dark); opacity: 1; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
    body.app .side button, body.app .side .side-link { color: var(--hb-mist) !important; border-radius: 6px; }
    body.app .side button:hover, body.app .side .side-link:hover { background: rgba(255, 255, 255, .07) !important; }
    body.app .side button.on { background: var(--hb-tea) !important; color: #fff !important; box-shadow: inset 4px 0 0 var(--hb-maize) !important; }
    body.app .side button.on svg { color: #fff !important; }
    body.app .side .count { background: var(--hb-maize); color: var(--hb-ink); box-shadow: none; }
    .side-help { background: var(--hb-eucalypt) !important; border-radius: 8px; }
    .side-help .btn-help { background: var(--hb-red) !important; border-color: var(--hb-red) !important; color: #fff !important; }
    .side-help .btn-help:hover { background: var(--hb-red-deep) !important; border-color: var(--hb-red-deep) !important; }
    .side-me { border-top-color: rgba(255, 255, 255, .14); }
    .side-me .ui-av { background: var(--hb-tea); color: #fff; }
    .side-me small { color: var(--hb-on-dark); }
}
/* phones and tablets: dark top bar with the kikoi band */
.app-top { box-shadow: none; }
@media (max-width: 991.98px) {
    .app-top, .pt-head { background: var(--hb-ink) !important; border-top: 0 !important; }
    .app-top::before, .pt-head::before { content: ""; display: block; height: 5px; background: var(--hb-kikoi); }
}
.drawer { border-top: 5px solid var(--hb-maize); }

/* cards: white, 8px, a thin rule, no shadow */
body.app .panel, body.app .card, .home-steps, .glance-card, .svc-dir-grid, .td-inbox, .td-cal, .ui-table-box, .cm-section, .wa-card, .ht, .sd {
    border-radius: 8px !important; box-shadow: none !important; }
body.app .panel, body.app .card, .ht, .glance-card:not(.fee-card), .wa-card { border: 1px solid var(--hb-rule) !important; background: #fff; }

/* the membership card: eucalypt with the kikoi band along the top */
.home-card { background: var(--hb-eucalypt) !important; border-radius: 8px !important; box-shadow: none !important; }
.home-card::before { background: var(--hb-kikoi) !important; height: 8px !important; }
.home-card::after { content: none !important; }
.home-card .hc-name { font-family: var(--hb-display); font-weight: 700; letter-spacing: 0; }
.home-card .hc-motto, .home-card .hc-motto em { color: var(--hb-maize); }
.home-card .hc-meta dt { color: var(--hb-on-dark); }
.home-card .hc-meta dd { font-family: var(--hb-text); }

/* small headings and tile labels use the text face; Zilla Slab is for page and section headings */
body.app h3, body.app h4, body.app .ht strong, body.app .sd strong, body.app .glance-k, body.app .ov-k, body.app .td-case-what strong { font-family: var(--hb-text) !important; letter-spacing: 0; }

/* quick tiles: Ask for support keeps its red, as an outline */
.ht { background: #fff !important; }
.ht.ht-help { background: #fff !important; border: 2px solid var(--hb-red) !important; color: var(--hb-red) !important; }
.ht.ht-help strong { color: var(--hb-red) !important; }
.ht.ht-help span { color: var(--hb-slate) !important; }
.ht.ht-help .ht-ic { background: var(--hb-red-tint) !important; color: var(--hb-red) !important; }

/* the fees card and the welfare fund balance: eucalypt panels */
.fee-card, .td-fund { background: var(--hb-eucalypt) !important; color: #fff; border-radius: 8px !important; border: 0 !important; }

/* committee "Needs you now": the one urgent case stands out in red */
.td-case-urgent, .td-cases li.urgent { border-left: 5px solid var(--hb-red) !important; background: var(--hb-red-tint) !important; }
.ov-card.ov-urgent { border-color: var(--hb-red) !important; }

/* tables and status labels */
.ui-table th { color: var(--hb-slate); border-bottom: 2px solid var(--hb-ink) !important; }
.ui-seg button[aria-pressed="true"], .ui-seg .on { background: var(--hb-ink) !important; color: #fff !important; border-color: var(--hb-ink) !important; }

/* sign-in pages */
body.auth .auth-card, .auth .card { border-radius: 8px !important; box-shadow: none !important; border: 1px solid var(--hb-rule) !important; }

/* reduce motion: nothing here animates, but keep the promise */
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* the older striped borders become the kikoi band */
:root { --u-stripe: var(--hb-kikoi); }
.td-fund::before, .mc-stripe { background: var(--hb-kikoi) !important; }
@media print { .pc-stripe { background: var(--hb-kikoi) !important; } .pc-front { background: var(--hb-eucalypt) !important; } }

/* =========================================================
   7. Home page (index.html)
   ========================================================= */
.hb-section { padding: clamp(3.5rem, 7vw, 6rem) 0; background: #fff; }
.hb-section-tight { padding: clamp(2.5rem, 5vw, 3.5rem) 0; }
.hb-section-top { padding-top: clamp(2.5rem, 5vw, 4rem); }
.hb-mist { background: var(--hb-mist); }
.hb-dark { background: var(--hb-ink); color: #fff; }
.hb-dark h2, .hb-dark h3 { color: #fff !important; }
.hb-dark p { color: var(--hb-mist); }
.hb-section h2 { font-size: var(--k-fs-h2); margin: 0 0 .75rem; color: inherit; }
.hb-head { max-width: 46rem; margin-bottom: 2rem; }
.hb-head p { color: var(--hb-slate); font-size: 1.125rem; margin: 0; }
.hb-head-row { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; }
.hb-head-row h2 { margin: 0; }
.hb-head-row a { font-weight: 700; }
.hb-small { font-size: .9375rem; color: var(--hb-slate); }
.hb-dark .hb-small { color: var(--hb-on-dark); }
.hb-dark a { color: #fff; }
.hb-more { font-weight: 700; color: var(--hb-tea); }
.hb-more-light { color: #fff !important; }
.hb-label { font-weight: 700; color: var(--hb-tea); margin: 0 0 .5rem; }
.hb-subhead { font-family: var(--hb-display) !important; font-size: 1.5rem !important; margin: 0 0 .75rem; }
.hb-kikoi { height: 8px; margin: 0; max-width: none !important; background: var(--hb-kikoi); }

/* welcome: eucalypt panel and a real photo */
.hb-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--hb-eucalypt); color: #fff; min-height: 560px; }
.hb-hero-text { padding: clamp(2.5rem, 6vw, 5rem) clamp(1.25rem, 5vw, 4rem) clamp(2.5rem, 6vw, 4.5rem) max(1.25rem, calc((100vw - 1240px) / 2 + 24px));
    display: flex; flex-direction: column; justify-content: center; gap: 1.1rem; }
.hb-place { color: var(--hb-maize); font-weight: 700; margin: 0; }
.hb-hero h1 { color: #fff !important; font-size: var(--k-fs-h1) !important; margin: 0; max-width: 14ch; }
.hb-lead { font-size: 1.1875rem; color: var(--hb-mist); max-width: 32em; margin: 0; }
.hb-hero-acts { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: .5rem; }
.hb-btn-light { background: #fff !important; border: 2px solid #fff !important; color: var(--hb-red) !important; }
.hb-btn-light:hover { background: var(--hb-red-tint) !important; color: var(--hb-red-deep) !important; }
.hb-btn-light svg { fill: none; stroke: currentColor; color: var(--hb-red); }
.hb-hero-photo { margin: 0; position: relative; }
.hb-hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-hero-photo figcaption { position: absolute; left: 1rem; bottom: 1rem; background: rgba(19, 36, 27, .85); color: #fff; padding: .35rem .7rem; border-radius: 6px; font-size: .9375rem; }
@media (max-width: 991.98px) {
    .hb-hero { grid-template-columns: 1fr; min-height: 0; }
    .hb-hero-photo { order: -1; }
    .hb-hero-photo img { aspect-ratio: 16 / 10; height: auto; }
    .hb-hero-text { padding: 2rem 1.25rem 2.5rem; }
    .hb-hero-acts .btn { width: 100%; }
}

/* next big event: a slim strip */
.hb-next { background: var(--hb-mist) !important; color: var(--hb-ink) !important; padding: 1.25rem 0 !important; border-bottom: 1px solid var(--hb-rule); }
.hb-next .u-next-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.hb-next .u-next-text { flex: 1 1 22rem; }
.hb-next .u-next-label { color: var(--hb-tea) !important; font-weight: 700; margin: 0; text-transform: none; letter-spacing: 0; font-size: .9375rem; }
.hb-next h2 { font-family: var(--hb-display) !important; font-size: 1.75rem !important; color: var(--hb-ink) !important; margin: 0 !important; line-height: 1.15 !important; }
.hb-next .u-next-when { color: var(--hb-slate) !important; margin: .15rem 0 0; }
.hb-next .u-next-count { display: none !important; }
.hb-next .u-next-tools { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: center; }
.hb-next .u-next-tools .btn { background: #fff !important; border: 2px solid var(--hb-ink) !important; color: var(--hb-ink) !important; min-height: 46px; }
.hb-next .u-next-tools a:not(.btn) { color: var(--hb-tea) !important; font-weight: 700; }

/* three cards */
.hb-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 1.5rem; }
.hb-card { border: 1px solid var(--hb-rule); border-radius: 8px; padding: 1.75rem; display: flex; flex-direction: column; gap: .7rem; }
.hb-card h3 { font-family: var(--hb-display) !important; font-size: 1.5rem; margin: 0; }
.hb-card p { margin: 0; }
.hb-card .hb-more { margin-top: auto; padding-top: .5rem; }
.hb-ic { width: 32px; height: 32px; color: var(--hb-tea); }

/* two ways to belong */
.hb-ways { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; align-items: stretch; }
.hb-ways-intro p { color: var(--hb-slate); }
.hb-plan { background: #fff; border: 1px solid var(--hb-rule); border-radius: 8px; padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; }
.hb-plan-feature { border: 2px solid var(--hb-tea); }
.hb-plan h3 { font-family: var(--hb-display) !important; font-size: 1.5rem; margin: 0; }
.hb-price { font-family: var(--hb-display); font-weight: 700; font-size: 2.4rem; line-height: 1; margin: 0; }
.hb-price span { font-family: var(--hb-text); font-size: 1rem; font-weight: 400; color: var(--hb-slate); }
.hb-badge { align-self: flex-start; background: var(--hb-tea); color: #fff; font-weight: 700; font-size: .875rem; padding: .2rem .6rem; border-radius: 4px; margin: 0; }
.hb-plan ul { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.hb-plan .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 991.98px) { .hb-ways { grid-template-columns: 1fr; } }

/* if someone has died */
.hb-died { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2.5rem 4rem; align-items: start; }
.hb-email { display: inline-flex; flex-direction: column; gap: .15rem; background: #fff; color: var(--hb-ink) !important; text-decoration: none;
    padding: 1rem 1.25rem; border-radius: 8px; margin: 1rem 0; border-left: 6px solid var(--hb-maize); }
.hb-email span { font-size: .875rem; font-weight: 700; color: var(--hb-slate); }
.hb-email { font-family: var(--hb-display); font-weight: 700; font-size: clamp(1.6rem, 3.4vw, 2.1rem); line-height: 1.1; }
.hb-email:hover { background: var(--hb-mist); }
.hb-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1.5rem; }
.hb-steps li { counter-increment: s; display: grid; grid-template-columns: 2.5rem 1fr; column-gap: 1rem; }
.hb-steps li::before { content: counter(s); grid-row: span 2; font-family: var(--hb-display); font-weight: 700; font-size: 2rem; line-height: 1; color: var(--hb-maize); }
.hb-steps h3 { font-size: 1.1875rem; margin: 0 0 .2rem; font-family: var(--hb-text) !important; }
.hb-steps p { margin: 0; }
@media (max-width: 991.98px) { .hb-died { grid-template-columns: 1fr; } }

/* coming up, news and notices */
.hb-upcoming { list-style: none; margin: 0 0 3rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 1.5rem; }
.hb-upcoming li { border-top: 3px solid var(--hb-ink); padding-top: 1rem; display: grid; grid-template-columns: 3.75rem 1fr; gap: .25rem 1rem; align-items: start;
    background: none !important; border-left: 0 !important; border-right: 0 !important; border-bottom: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.hb-upcoming .h-dateblock { margin: 0; text-align: center; background: none !important; padding: 0 !important; border: 0 !important; color: var(--hb-ink) !important; }
.hb-upcoming .h-dd { display: block; font-family: var(--hb-display) !important; font-weight: 700 !important; font-size: 2.4rem !important; line-height: 1 !important; color: var(--hb-ink) !important; }
.hb-upcoming .h-dd-word { font-size: 1.4rem !important; }
.hb-upcoming .h-mm { font-weight: 700; font-size: .9375rem; color: var(--hb-ink) !important; }
.hb-upcoming h3 { font-family: var(--hb-display) !important; font-size: 1.3rem !important; margin: 0 0 .25rem; }
.hb-upcoming .h-up-text p { margin: 0; font-size: .9375rem; color: var(--hb-slate); }
.hb-upcoming .btn { grid-column: 2; justify-self: start; margin-top: .5rem; min-height: 44px; }
.hb-news-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 2.5rem; border-top: 1px solid var(--hb-rule); padding-top: 2.5rem; }
.hb-news { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1.25rem; }
.hb-news .u-news-card { border: 1px solid var(--hb-rule) !important; border-radius: 8px !important; padding: 0 !important; overflow: hidden; background: #fff; }
.hb-news .u-news-card > div { padding: 1rem 1.1rem 1.2rem; }
.hb-news .u-news-card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.hb-news .u-news-card h3 { font-size: 1.0625rem; margin: .2rem 0 .4rem; }
.hb-news .u-news-when { font-size: .875rem; color: var(--hb-slate); margin: 0; }
.hb-notices { list-style: none; margin: 0; padding: 0; }
.hb-notices li { padding: .75rem 0; border-top: 1px solid var(--hb-rule); max-width: none; }
@media (max-width: 991.98px) { .hb-news-row { grid-template-columns: 1fr; } }

/* chairperson */
.hb-chair { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 2.5rem 4rem; align-items: start; }
.hb-chair-photo { margin: 0; }
.hb-chair-photo img { width: 100%; height: auto; border-radius: 8px; display: block; }
.hb-quote { margin: 0; }
.hb-quote p { font-family: var(--hb-display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; color: var(--hb-ink); max-width: 30em; margin: 0; }
.hb-by { font-weight: 700; margin: .9rem 0 1rem; }
.hb-facts { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 1.5rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--hb-rule); }
.hb-facts dt { font-size: .875rem; color: var(--hb-slate); font-weight: 400; }
.hb-facts dd { font-weight: 700; margin: 0; }
.hb-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-weight: 700; }
@media (max-width: 767.98px) { .hb-chair { grid-template-columns: 1fr; } .hb-chair-photo { max-width: 200px; } }

/* photos: three across */
.hb-gallery { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.hb-gallery .tile:nth-child(n+4) { display: none; }
.hb-gallery .tile { margin: 0; }
.hb-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
@media (max-width: 575.98px) { .hb-gallery { grid-template-columns: 1fr 1fr; } .hb-gallery .tile:nth-child(3) { display: none; } }

/* newsletter: the one maize box */
.hb-signup { background: var(--hb-maize); border-radius: 8px; padding: clamp(1.5rem, 4vw, 2.75rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem 3rem; align-items: center; }
.hb-signup h2 { font-size: clamp(1.6rem, 3vw, 2.1rem) !important; color: var(--hb-ink) !important; margin: 0 0 .5rem; }
.hb-signup p, .hb-signup label { color: var(--hb-ink); }
.hb-signup .nl-band-row { display: flex; gap: .6rem; flex-wrap: wrap; }
.hb-signup .form-control { flex: 1 1 14rem; border-color: var(--hb-ink); background: #fff; }
.hb-signup .nl-band-note { font-size: .9375rem; margin: .6rem 0 0; }
.hb-signup .nl-band-note a { color: var(--hb-ink); }
.hb-btn-ink { background: var(--hb-ink) !important; border: 2px solid var(--hb-ink) !important; color: #fff !important; }
.hb-btn-ink:hover { background: var(--hb-eucalypt) !important; border-color: var(--hb-eucalypt) !important; }
.hb-signup :focus-visible { box-shadow: 0 0 0 6px #fff !important; }
@media (max-width: 767.98px) { .hb-signup { grid-template-columns: 1fr; } }

/* =========================================================
   8. Get help page (support.html)
   ========================================================= */
.hb-emergency { background: var(--hb-red); color: #fff; padding: .9rem 0; }
.hb-emergency-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.hb-emergency strong { font-size: 1.125rem; }
.hb-emergency-acts { display: flex; flex-wrap: wrap; gap: .6rem; }
.hb-btn-white-red { background: #fff !important; border: 2px solid #fff !important; color: var(--hb-red) !important; }
.hb-btn-white { background: #fff !important; border: 2px solid #fff !important; color: var(--hb-ink) !important; }
.hb-emergency :focus-visible { outline-color: #fff !important; }
.hb-help h1 { font-size: var(--k-fs-h1) !important; margin: 0 0 .75rem; }
.hb-doors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.hb-door { border: 1px solid var(--hb-rule); border-radius: 8px; padding: 1.75rem; display: flex; flex-direction: column; gap: .85rem; scroll-margin-top: 110px; }
.hb-door h2 { font-size: 1.6rem !important; margin: 0; }
.hb-door p { margin: 0; }
.hb-door .btn { align-self: flex-start; margin-top: auto; }
.hb-door-urgent { border: 2px solid var(--hb-ink); }
.hb-door-urgent .hb-email { background: var(--hb-ink); color: #fff !important; border-left-color: var(--hb-maize); margin: .25rem 0; font-size: 1.6rem; }
.hb-door-urgent .hb-email span { color: var(--hb-maize); }
.hb-door-urgent .hb-email:hover { background: var(--hb-eucalypt); }
@media (max-width: 991.98px) { .hb-doors { grid-template-columns: 1fr; } }
.hb-finder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1.5rem 4rem; }
.hb-finder-form { display: flex; gap: .6rem; flex-wrap: wrap; }
.hb-finder-form .form-control { flex: 1 1 16rem; }
.hb-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.hb-chips button { min-height: 44px; padding: .4rem .9rem; border: 2px solid var(--hb-ink); border-radius: 6px; background: #fff; color: var(--hb-ink); font-weight: 700; }
.hb-chips button:hover { background: var(--hb-mist); }
.hb-finder-results { list-style: none; padding: 0; margin: 0; }
.hb-finder-results li { padding: .6rem 0; border-top: 1px solid var(--hb-rule); }
.hb-finder-results a { font-weight: 700; }
@media (max-width: 991.98px) { .hb-finder { grid-template-columns: 1fr; } }
.hb-services { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 0 3rem; }
.hb-services li { display: grid; grid-template-columns: 1fr auto; gap: .1rem 1rem; padding: .9rem 0; border-top: 1px solid var(--hb-rule); align-items: center; max-width: none; }
.hb-services strong { grid-column: 1; }
.hb-services span { grid-column: 1; font-size: .9375rem; color: var(--hb-slate); }
.hb-services > li > a { grid-column: 2; grid-row: 1 / span 2; font-weight: 700; white-space: nowrap; font-size: 1.0625rem; }
.tbc { display: inline-block; font-size: .875rem; font-weight: 700; padding: .1rem .5rem; border-radius: 4px; background: var(--hb-notice); color: var(--hb-notice-ink); }

/* ---------- home page on phones: shorter, one idea per screen ---------- */
@media (max-width: 767.98px) {
    .hb-section { padding: 3rem 0; }
    .hb-head { margin-bottom: 1.25rem; }
    .hb-head p { font-size: 1rem; }
    .hb-hero-photo img { aspect-ratio: 3 / 2; }
    .hb-hero-photo figcaption { display: none; }
    .hb-next .u-next-tools .btn { min-height: 44px; padding: .35rem .8rem; font-size: .9375rem; }
    .hb-next .u-next-tools { gap: .5rem; }
    /* three cards become three rows */
    .hb-cards { gap: 0; }
    .hb-card { border: 0; border-top: 1px solid var(--hb-rule); border-radius: 0; padding: 1.1rem 0; gap: .35rem; }
    .hb-card:last-child { border-bottom: 1px solid var(--hb-rule); }
    .hb-card .hb-ic, .hb-card .hb-small { display: none; }
    .hb-card h3 { font-size: 1.3rem; }
    .hb-card p { font-size: 1rem; }
    .hb-plan { padding: 1.25rem; }
    .hb-plan ul { font-size: 1rem; }
    .hb-steps { gap: 1rem; }
    .hb-steps p { font-size: 1rem; }
    /* coming up: three compact rows, no extra buttons */
    .hb-upcoming { gap: 0; margin-bottom: 2rem; }
    .hb-upcoming li { border-top: 1px solid var(--hb-rule); padding: .9rem 0; }
    .hb-upcoming li:nth-child(n+4) { display: none; }
    .hb-upcoming .btn, .hb-upcoming .note { display: none; }
    .hb-upcoming .h-dd { font-size: 1.9rem !important; }
    .hb-upcoming h3 { font-size: 1.15rem !important; }
    /* news: two, without pictures; notices: the first three */
    .hb-news .u-news-card:nth-child(n+3) { display: none; }
    .hb-news .u-news-card img { display: none; }
    .hb-news .u-news-card p:not(.u-news-when) { display: none; }
    .hb-notices li:nth-child(n+4) { display: none; }
    .hb-news-row { gap: 2rem; padding-top: 2rem; }
    .hb-chair { gap: 1.25rem; }
    .hb-chair-photo { max-width: 120px; }
    .hb-facts { gap: .75rem 1.5rem; }
}
.hb-header .navbar-toggler-icon { filter: none !important; }
@media (max-width: 767.98px) {
    /* the strip keeps Add to calendar and Event details; directions and sharing are on the event page */
    .hb-next .u-next-tools .btn ~ .btn { display: none; }
}

/* event cards: category colours from the palette only (red stays for help) */
:root { --ev-everyone: #1E4A34; --ev-families: #2B6E46; --ev-youth: #13241B; --ev-women: #1E4A34; --ev-culture: #13241B; --ev-sport: #2B6E46; --ev-members: #4A5A50; }
.ev-card { border-radius: 8px !important; }
