/* =========================================================
   KENEWA website styles
   Colours follow Kenya's eCitizen portal: one government green,
   white space, dark text and red only for urgent things.
   Lighter shades are the same green at low opacity, so the
   whole site stays in one family of colour.
   Change colours in ONE place: :root.
   Colours come from the KENEWA logo (October 2026): wordmark green #346040, leaf green #5C7B4A,
   red #BD4A44 (darkened to #B23B35 so white text reads well), gold #CC9E4E and charcoal #393B32.
   ========================================================= */
:root {
    --green:       #346040;   /* buttons, links, headings */
    --green-deep:  #274A30;   /* hover */
    --green-night: #1E3324;   /* dark bands, footer, photo overlays */
    --green-rgb:   52, 96, 64;           /* used for see-through tints */
    --tint:        rgba(var(--green-rgb), .06);   /* soft section backgrounds */
    --tint-2:      rgba(var(--green-rgb), .12);   /* chips, icon backgrounds */
    --mint:        #F0CF8A;   /* logo gold, light: accent on dark green */
    --red:         #B23B35;   /* logo red: Get help, urgent things */
    --ink:         #2B2D26;   /* main text */
    --muted:       #545849;   /* secondary text */
    --header:      #FFFFFF;
    --stone:       #F4F6EF;   /* = the green at 5% on white */
    --line:        #E4E5DC;
    --line-soft:   #F1F3EC;
    --charcoal:    var(--green-night);
    --white:       #FFFFFF;
    --orange:      var(--mint);   /* older name: accent on dark backgrounds */
    --orange-text: var(--green);  /* older name: accent text on white */
    --gold:        var(--green);
    --gold-hover:  var(--green-deep);

    /* event colours (white text reads well on all of these) */
    --ev-everyone: #346040;
    --ev-families: #8A5A1E;
    --ev-youth:    #2F6670;
    --ev-women:    #8E3A4F;
    --ev-culture:  #B23B35;
    --ev-sport:    #3B5A86;
    --ev-members:  #2B2D26;

    /* older names still used by the members area (css/portal.css) */
    --purple:      var(--green);
    --purple-deep: var(--green-deep);
    --magenta:     var(--red);
    --teal:        var(--green);

    --radius: 12px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -12px rgba(16, 24, 40, .18);
    --font-display: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    --font-body:    "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    --font-brand:   "Inter", "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Base ---------- */
body { font-family: var(--font-body); color: var(--ink); line-height: 1.7; font-size: 1.0625rem; background: var(--white); }
h1, h2, h3, .num { font-family: var(--font-display); font-weight: 700; }
a { color: var(--green); }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.skip-link { position: absolute; left: -999px; top: .5rem; z-index: 2000; background: var(--green); color: var(--white); padding: .5rem 1rem; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: .5rem; }

/* Kenyan flag stripe (black, white, red, white, green) */

/* ---------- Buttons ---------- */
.btn { font-weight: 700; border-radius: 2px; padding: .6rem 1.3rem; text-transform: uppercase; letter-spacing: .02em; font-size: .92rem; }
.btn-lg { padding: .75rem 1.5rem; font-size: .98rem; }
.btn-sm { padding: .35rem .85rem; font-size: .8rem; }
.btn-gold { background: var(--green); color: var(--white); border: 2px solid var(--green); display: inline-flex; align-items: center; gap: .5rem; }
.btn-gold::after { content: ""; width: 1.05em; height: 1.05em; flex-shrink: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='10' r='10' fill='white'/%3E%3Cpath d='M6 10h7m-3-3 3 3-3 3' stroke='%23006634' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.btn-gold:hover, .btn-gold:focus { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }
.btn-ghost { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,.8); }
.btn-ghost:hover, .btn-ghost:focus { background: var(--white); color: var(--green); }
.btn-outline-ink { border: 2px solid var(--green); color: var(--green); background: transparent; }
.btn-outline-ink:hover, .btn-outline-ink:focus { background: var(--green); color: var(--white); }
.btn-help { background: transparent; color: var(--red); border: 2px solid var(--red); }
.btn-help:hover, .btn-help:focus { background: var(--red); color: var(--white); }
.btn-link { color: var(--green); font-weight: 700; text-transform: none; letter-spacing: 0; }

/* ---------- Header and menu ---------- */
.site-nav { background: var(--header); border-bottom: 1px solid var(--line); padding: .55rem 0; position: sticky; top: 0; z-index: 1030; }
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-logo { width: 52px; height: 52px; flex-shrink: 0; }
.brand-text { font-family: var(--font-brand); font-weight: 700; text-transform: uppercase; color: var(--green); font-size: .74rem; line-height: 1.12;
    border-left: 1px solid #CFCFCF; padding-left: .65rem; letter-spacing: .01em; }
.site-nav .nav-link { color: var(--ink); font-weight: 400; font-size: .93rem; letter-spacing: .04em; }
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: var(--green); }
.site-nav .nav-link.active { color: var(--green); font-weight: 500; box-shadow: inset 0 -2px 0 var(--orange); }
.site-nav .btn { white-space: nowrap; }
.site-nav .dropdown-menu { border: 0; border-radius: 0; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 0; min-width: 14rem; }
.site-nav .dropdown-item { border-bottom: 1px solid var(--line-soft); padding: .65rem 1rem; font-size: .88rem; letter-spacing: .04em; color: var(--ink); }
.site-nav .dropdown-item:hover, .site-nav .dropdown-item:focus { background: var(--line-soft); color: var(--green); }
.site-nav .dropdown-item:active { background: var(--green); color: var(--white); }
.dropdown-overview { font-weight: 700 !important; color: var(--green) !important; }
@media (min-width: 1200px) and (max-width: 1399px) { .site-nav .nav-link { padding-inline: .5rem !important; } }
@media (max-width: 1199px) {
    .site-nav .navbar-nav { padding: 1rem 0 .5rem; }
    .site-nav .dropdown-menu { box-shadow: none; border-left: 3px solid var(--green); margin-left: .5rem; background: transparent; }
    .site-nav .nav-btn { margin-top: .6rem; }
}
@media (max-width: 360px) { .brand-text { font-size: .66rem; } }

/* Floating help button (bottom right) */
.help-bubble { position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 1040; width: 58px; height: 58px; border-radius: 50%; background: var(--white);
    color: var(--green); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); text-decoration: none; }
.help-bubble-label { position: absolute; right: 68px; background: var(--ink); color: var(--white); font-size: .85rem; font-weight: 500; padding: .3rem .7rem;
    border-radius: 3px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.help-bubble:hover .help-bubble-label, .help-bubble:focus .help-bubble-label { opacity: 1; }
@media print { .help-bubble { display: none; } }

/* ---------- Home welcome slider ---------- */
.hero { position: relative; color: var(--white); }
.hero .carousel-inner { display: grid; }   /* all slides share one space, so the page never jumps */
.hero .carousel-item { display: flex; align-items: center; grid-area: 1 / 1; float: none; margin-right: 0; min-height: 70vh; min-height: 70svh; padding: 5rem 0 6.5rem; }
.hero .carousel-item:not(.active):not(.carousel-item-next):not(.carousel-item-prev) { visibility: hidden; }
.hero .carousel-item > .container { display: flex; flex-direction: column; justify-content: center; }
/* To use photos (recommended), add a line like this inside a slide rule below:
     --slide-photo: url("../images/jamhuri-2026.jpg");
   The dark overlay keeps the white text readable. */
.hero .carousel-item, .page-hero {
    background:
        linear-gradient(100deg, rgba(46, 42, 42, .94) 0%, rgba(46, 42, 42, .78) 50%, rgba(46, 42, 42, .35) 100%),
        var(--slide-photo, var(--banner-photo, none)) center / cover no-repeat,
        var(--tone, var(--charcoal));
}
.slide-1 { --tone: radial-gradient(circle at 80% 40%, #4A6B3A 0, #2E2A2A 62%); }
.slide-2 { --tone: radial-gradient(circle at 80% 40%, #8A4A22 0, #2E2A2A 62%); }
.slide-3 { --tone: radial-gradient(circle at 80% 40%, #8F2E29 0, #2E2A2A 62%); }
.slide-4 { --tone: radial-gradient(circle at 80% 40%, #8C6A1E 0, #2E2A2A 62%); }
.slide-5 { --tone: radial-gradient(circle at 80% 40%, #1C5E6E 0, #2E2A2A 62%); }
.hero-content { position: relative; z-index: 2; }
.hero-content > * { max-width: 760px; }
/* small label above headings */
.hero-place, .eyebrow { font-weight: 400; text-transform: uppercase; letter-spacing: .03em; font-size: .92rem; margin-bottom: .7rem; }
.hero-place::before, .eyebrow::before { content: "\2192"; margin-right: .5rem; font-weight: 700; }
.hero-place { color: var(--orange); margin-bottom: 1rem; }
.eyebrow { color: var(--orange-text); }
.hero-place::before { color: var(--white); }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin-bottom: 1.4rem; max-width: 15em; }
.hero-lead { font-size: 1.05rem; max-width: 34em; opacity: .95; margin-bottom: 2rem; font-weight: 300; }
.hero-emblem { position: absolute; right: 7%; top: 50%; transform: translateY(-50%); width: min(30vw, 420px); height: auto; opacity: .9; z-index: 1;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,.4)); pointer-events: none; }
@media (max-width: 991px) { .hero-emblem { display: none; } }
.hero-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero > .hero .carousel-indicators { bottom: 2.4rem; z-index: 3; justify-content: center; margin: 0; left: 0; right: 0; }
.hero .carousel-indicators [data-bs-target] { width: 34px; height: 4px; border: 0; background: var(--white); opacity: .45; margin: 0 4px; }
.hero .carousel-indicators .active { background: var(--orange); opacity: 1; width: 48px; }
@media (prefers-reduced-motion: reduce) { .carousel-item { transition: none !important; } }

/* ---------- Inner page banner ---------- */
.page-hero { position: relative; color: var(--white); padding: 4.2rem 0 4.6rem; --tone: radial-gradient(circle at 85% 30%, #4A6B3A 0, #2E2A2A 60%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); font-weight: 700; line-height: 1.12; max-width: 22ch; margin-bottom: .9rem; }
.page-hero .hero-lead { margin-bottom: 0; max-width: 40em; }
.page-hero > .hero-help   { --tone: radial-gradient(circle at 85% 30%, #8F2E29 0, #2E2A2A 62%); }
.hero-events { --tone: radial-gradient(circle at 85% 30%, #9A4A18 0, #2E2A2A 60%); }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.6rem; }
.hero-badges span { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.4); padding: .3rem .85rem; border-radius: 2px; font-weight: 500; font-size: .88rem; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-soft { background: var(--stone); }
.section-dark, .section-green { background: var(--green); color: var(--white); }
.section-dark .section-title, .section-green .section-title { color: var(--white); }
.section-dark a, .section-green a { color: var(--white); }
.section-head { margin-bottom: 2.4rem; }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 700; line-height: 1.15; margin-bottom: 1.1rem; color: var(--green); }
.prose { max-width: 70ch; }
.prose h2:not(.section-title) { font-size: 1.5rem; font-weight: 700; margin: 2.2rem 0 .7rem; color: var(--orange-text); }
.prose p, .prose li { color: var(--muted); }
.narrow { max-width: 760px; }
.lead-narrow { max-width: 42em; font-size: 1.1rem; color: var(--muted); margin-bottom: 2rem; }
.lead-light { opacity: .9; max-width: 46em; margin-bottom: 1.5rem; }
.note { font-size: .92rem; color: var(--muted); margin-top: 1rem; }
.section-dark .note { color: #D2DDD3; }
.empty { color: var(--muted); font-style: italic; }
.msg { padding: .8rem 1rem; margin: 1rem 0; border-left: 4px solid var(--green); background: #E7F1E8; border-radius: 0 10px 10px 0; }
.msg.warn { border-left-color: var(--orange); background: #FDF0E6; }

/* ---------- Lists, values ---------- */
.tick-list { list-style: none; padding: 0; }
.tick-list li { position: relative; padding: .45rem 0 .45rem 1.8rem; border-bottom: 1px solid var(--line-soft); }
.tick-list li::before { content: ""; position: absolute; left: .1rem; top: .95rem; width: .55rem; height: .9rem; border: solid var(--orange); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.values { list-style: none; padding: 0; margin: 0; }
.values li { display: grid; grid-template-columns: 9rem 1fr; column-gap: 1.2rem; padding: 1.1rem 0; border-top: 1px solid var(--line); }
.values li:last-child { border-bottom: 1px solid var(--line); }
.values .sw { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--green); grid-row: span 2; }
.values li:nth-child(even) .sw { color: var(--orange-text); }
.values .en { font-weight: 700; }
.values .desc { color: var(--muted); }
@media (max-width: 480px) { .values li { grid-template-columns: 1fr; } .values .sw { grid-row: auto; } }

/* ---------- From our leadership (home) ---------- */
.leadership-title { font-size: clamp(2.2rem, 4.4vw, 3.2rem); font-weight: 700; line-height: 1.08; color: var(--green); }
.leader-heading { font-size: 1.45rem; font-weight: 500; color: var(--green); margin-bottom: 1rem; }
.leader-message p { color: var(--muted); }
.leader-message p:first-child { color: var(--ink); font-weight: 500; }
.signature { margin-top: 1.2rem; color: var(--muted); }
.signature strong { color: var(--green); }
.leader-photo { aspect-ratio: 3 / 4; max-width: 300px; margin-inline: auto; overflow: hidden; position: relative; border-radius: 2px;
    background: radial-gradient(circle at 30% 20%, #4A6B3A, #2E2A2A 75%); display: flex; align-items: center; justify-content: center; }
.leader-photo span { font-size: 4rem; font-weight: 700; color: rgba(255,255,255,.9); }
.leader-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 991px) { .leader-photo { max-width: 220px; margin-inline: 0; } }

/* ---------- Signature event + countdown ---------- */
.signature-event { padding: 4.5rem 0; color: var(--white);
    background: radial-gradient(circle at 10% 10%, rgba(229,125,56,.35), transparent 40%), radial-gradient(circle at 90% 90%, rgba(0,102,52,.55), transparent 45%), var(--charcoal); }
.signature-event h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 700; }
.signature-event .eyebrow { color: var(--orange); }
.signature-event .eyebrow::before { color: var(--white); }
.signature-event .lead { opacity: .92; max-width: 38em; }
.event-when { font-size: 1.1rem; margin: 1rem 0 1.6rem; }
.countdown { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius); padding: 1.4rem; text-align: center; color: var(--white); }
.countdown-label { font-weight: 500; color: var(--orange); margin-bottom: .8rem; text-transform: uppercase; letter-spacing: .04em; font-size: .9rem; }
.countdown-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.countdown-grid div { background: var(--green); border-radius: 2px; padding: .9rem .3rem; }
.countdown-grid span { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem); line-height: 1; }
.countdown-grid small { display: block; margin-top: .3rem; font-weight: 600; opacity: .85; }
.countdown-today { grid-column: 1 / -1; font-size: 1.6rem; font-weight: 700; margin: 0; }

/* ---------- Objectives ---------- */
.objective { height: 100%; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: 2px; padding: 1.6rem; box-shadow: var(--shadow); }
.objectives .col-sm-6:nth-child(even) .objective { border-top-color: var(--orange); }
.objective h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; color: var(--green); }
.objective p { margin: 0; color: var(--muted); }

/* ---------- Numbers ---------- */
.numbers { background: var(--green); color: var(--white); padding: 3.2rem 0; }
.num { font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 700; color: var(--white); line-height: 1; margin-bottom: .4rem; }
.numbers .col-6:nth-child(even) .num { color: #FFD2B3; }
.num-label { margin: 0; font-weight: 600; }

/* ---------- Gallery (photo grid) ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 210px; gap: 1rem; }
.gallery .tile { position: relative; margin: 0; border-radius: 2px; overflow: hidden; background: var(--charcoal); }
.gallery .tile:nth-child(1) { grid-row: span 2; }
.gallery .tile:nth-child(4), .gallery .tile:nth-child(6) { grid-column: span 2; }
.gallery .tile img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .8rem; color: var(--white); font-weight: 700;
    background: linear-gradient(transparent, rgba(30,27,27,.88)); }
/* placeholder tiles until photos are added */
.tile-a { background: radial-gradient(circle at 30% 30%, #4A6B3A, #2E2A2A 75%) !important; }
.tile-b { background: radial-gradient(circle at 70% 30%, #C4621E, #2E2A2A 75%) !important; }
.tile-c { background: radial-gradient(circle at 30% 70%, #2E5539, #1E1B1B 75%) !important; }
.tile-d { background: radial-gradient(circle at 70% 70%, #8A4A22, #2E2A2A 70%) !important; }
.tile-e { background: radial-gradient(circle at 30% 30%, #4A6B3A, #2E2A2A 75%) !important; }
.tile-f { background: radial-gradient(circle at 60% 40%, #A2531E, #2E2A2A 75%) !important; }
@media (max-width: 767px) {
    .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
    .gallery .tile:nth-child(1) { grid-row: span 1; }
    .gallery .tile:nth-child(4) { grid-column: span 1; }
    .gallery .tile:nth-child(6) { grid-column: span 2; }
}

/* ---------- Donate band ---------- */
.donate-band { padding: 3.5rem 0; color: var(--white); background: linear-gradient(110deg, var(--charcoal) 0%, #4A2A18 100%); border-top: 4px solid var(--orange); }
.donate-band .btn-gold, .host-band .btn-gold { background: var(--orange); border-color: var(--orange); color: #1E1B1B; }
.donate-band .btn-gold::after, .host-band .btn-gold::after { filter: brightness(0); }
.donate-band .btn-gold:hover, .host-band .btn-gold:hover { background: #F09A5E; border-color: #F09A5E; color: #1E1B1B; }
.donate-band h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700; }
.donate-band p { margin: 0; opacity: .94; max-width: 44em; }

/* ---------- Two ways to join ---------- */
.path-card { height: 100%; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--green); border-radius: 2px; padding: 2rem; box-shadow: var(--shadow); }
.path-card h3 { font-size: 1.5rem; font-weight: 700; color: var(--green); }
.path-card p { color: var(--muted); }
.path-card .tick-list { margin: 1rem 0 1.6rem; }
.path-card .btn { margin-top: auto; align-self: flex-start; }
.path-card .path-price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--orange-text); line-height: 1; margin-bottom: .6rem; }
.path-price span { font-size: 1rem; font-weight: 600; color: var(--muted); }
.path-featured { border-top-color: var(--orange); position: relative; }
.path-featured::before { content: "Includes welfare cover"; position: absolute; top: -.95rem; right: 1.5rem; background: var(--orange); color: #1E1B1B; font-weight: 700; font-size: .76rem; padding: .2rem .7rem; border-radius: 2px; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- About page ---------- */
.fact-panel { background: var(--line-soft); border-top: 5px solid var(--green); padding: 1.8rem; border-radius: 2px; }
.fact-panel h2 { font-weight: 700; margin-bottom: 1rem; }
.fact-panel dt { font-weight: 600; font-size: .9rem; color: var(--muted); }
.fact-panel dd { margin-bottom: .9rem; }
.objective-band { background: var(--green); color: var(--white); padding: 4rem 0; }
.objective-band .eyebrow { color: #FFD2B3; }
.objective-band blockquote { font-family: var(--font-display); font-size: clamp(1.4rem, 3.2vw, 2.1rem); font-weight: 500; line-height: 1.3; margin: 0; max-width: 34ch; }
.mv-card { height: 100%; background: var(--line-soft); border-radius: 2px; padding: 2rem; border-left: 6px solid var(--green); }
.mv-vision { border-left-color: var(--orange); }
.mv-text { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; line-height: 1.4; margin: 0; }
.person { text-align: center; }
.person .initials { display: inline-flex; align-items: center; justify-content: center; width: 96px; height: 96px; border-radius: 50%;
    background: var(--white); border: 4px solid var(--green); font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--green); margin-bottom: .8rem; }
.committee .col-6:nth-child(even) .initials { border-color: var(--orange); color: var(--orange-text); }
.person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; margin-bottom: .8rem; }
.person .name { font-weight: 700; margin: 0; }
.person .role { color: var(--muted); font-size: .92rem; }

/* ---------- Steps / timeline ---------- */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.8rem 4rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 2.6rem; height: 2.6rem; border-radius: 50%;
    background: var(--orange); color: #1E1B1B; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 1.25rem; top: 2.8rem; bottom: .3rem; width: 2px; background: var(--line); }
.steps h3 { font-size: 1.2rem; font-weight: 700; margin: .45rem 0 .3rem; color: var(--green); }
.steps p { margin: 0; color: var(--muted); }
.journey li::before { background: var(--green); color: var(--white); }

/* ---------- Portfolios ---------- */
.portfolio { height: 100%; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: 1.8rem; box-shadow: var(--shadow); border-top: 5px solid var(--green); scroll-margin-top: 140px; }
.portfolios .col-md-6:nth-child(even) .portfolio { border-top-color: var(--orange); }
.portfolio h2 { font-size: 1.45rem; font-weight: 700; margin-bottom: .3rem; color: var(--green); }
.portfolio-lead { color: var(--orange-text); font-weight: 500; font-size: .95rem; }
.portfolio .btn { margin-top: auto; align-self: flex-start; }
:target { scroll-margin-top: 140px; }

/* ---------- Community resources ---------- */
.res-jump { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
.res-jump a { background: var(--white); border: 1px solid var(--green); padding: .35rem .9rem; border-radius: 2px; text-decoration: none; font-weight: 500; text-transform: uppercase; font-size: .85rem; letter-spacing: .03em; }
.res-jump a:hover { background: var(--green); color: var(--white); }
.res-group { display: grid; grid-template-columns: 18rem 1fr; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--line); scroll-margin-top: 140px; }
.res-head h2 { font-size: 1.5rem; font-weight: 700; color: var(--green); }
.res-head p { color: var(--muted); }
.res-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.res-list li { background: var(--line-soft); border-left: 4px solid var(--orange); border-radius: 2px; padding: 1rem 1.1rem; }
.res-list strong { display: block; }
.res-list span { display: block; color: var(--muted); font-size: .95rem; }
.res-list .res-links { color: var(--ink); margin-top: .3rem; font-weight: 600; word-break: break-word; }
@media (max-width: 991px) { .res-group { grid-template-columns: 1fr; gap: .5rem; } }
@media (max-width: 575px) { .res-list { grid-template-columns: 1fr; } }

/* ---------- Events page ---------- */
.featured-wrap { padding-bottom: 2.5rem; }
.feature { display: grid; grid-template-columns: 1fr 22rem; gap: 2rem; align-items: center; color: var(--white); border-radius: 4px; padding: 2.4rem; scroll-margin-top: 140px;
    background: radial-gradient(circle at 10% 0%, rgba(229,125,56,.4), transparent 45%), radial-gradient(circle at 100% 100%, rgba(0,102,52,.6), transparent 45%), var(--charcoal); box-shadow: var(--shadow); }
.feature .eyebrow { color: var(--orange); }
.feature .eyebrow::before { color: var(--white); }
.feature h2 { font-size: clamp(2rem, 4.2vw, 2.8rem); font-weight: 700; }
.feature-about { font-size: 1.1rem; opacity: .94; max-width: 40em; }
.feature .ev-facts dt { color: var(--orange); }
.feature .ev-facts dd { color: var(--white); }
.feature .ev-tags li { background: rgba(255,255,255,.14); color: var(--white); border-color: rgba(255,255,255,.35); }
.feature .btn-outline-ink { color: var(--white); border-color: rgba(255,255,255,.75); }
.feature .btn-outline-ink:hover { background: var(--white); color: var(--ink); }
.feature .btn-link { color: var(--orange); }
@media (max-width: 991px) { .feature { grid-template-columns: 1fr; padding: 1.6rem; } }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.8rem; }
.chip { border: 1px solid var(--green); background: var(--white); color: var(--green); font-weight: 500; padding: .4rem 1rem; border-radius: 2px; text-transform: uppercase; font-size: .82rem; letter-spacing: .03em; }
.chip:hover { border-color: var(--green); }
.chip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--white); }

.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 1.4rem; }
.ev-card { --ev: var(--ev-everyone); display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); scroll-margin-top: 140px; transition: transform .15s ease; }
.ev-card:hover { transform: translateY(-3px); }
.ev-card[hidden] { display: none; }
.theme-families { --ev: var(--ev-families); } .theme-youth { --ev: var(--ev-youth); } .theme-women { --ev: var(--ev-women); }
.theme-culture { --ev: var(--ev-culture); } .theme-sport { --ev: var(--ev-sport); } .theme-members { --ev: var(--ev-members); }
.ev-poster { position: relative; color: var(--white); padding: 1.3rem 1.4rem 1.1rem; min-height: 132px; display: flex; flex-direction: column; justify-content: flex-end;
    background: radial-gradient(circle at 92% 8%, rgba(255,255,255,.28), transparent 38%),
                repeating-linear-gradient(135deg, rgba(255,255,255,.06) 0 12px, transparent 12px 24px), var(--ev); }
.ev-day { font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; line-height: .95; }
.ev-day-word { font-size: 2.4rem; }
.ev-mon { font-weight: 700; letter-spacing: .03em; }
.ev-status { position: absolute; top: 1rem; right: 1rem; background: rgba(0,0,0,.3); padding: .2rem .6rem; border-radius: 2px; font-size: .72rem; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }
.status-proposed .ev-poster { background: repeating-linear-gradient(135deg, rgba(255,255,255,.1) 0 10px, transparent 10px 20px), var(--ev); }
.status-proposed { border-style: dashed; border-width: 2px; }
.ev-body { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.ev-body h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .7rem; color: var(--green); }
.ev-body > p { color: var(--muted); }
.ev-facts { margin: 0 0 .8rem; display: grid; gap: .25rem; }
.ev-facts div { display: grid; grid-template-columns: 4.2rem 1fr; gap: .5rem; font-size: .95rem; }
.ev-facts dt { color: var(--ev, var(--green)); font-weight: 700; }
.ev-facts dd { margin: 0; }
.ev-tags { list-style: none; padding: 0; margin: .4rem 0 1rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.ev-tags li { font-size: .78rem; font-weight: 500; padding: .15rem .55rem; border-radius: 2px; background: var(--line-soft); border: 1px solid var(--line); color: var(--ink); }
.ev-tags .tag-everyone { background: #E5EFE6; border-color: #BAD1BD; color: #0C4614; }
.ev-actions { margin-top: auto; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.is-linked { outline: 4px solid var(--orange); outline-offset: 4px; }
.filter-empty { grid-column: 1 / -1; background: var(--line-soft); border-radius: 2px; padding: 1.4rem; margin: 0; }

.year-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; }
.ym { background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: .9rem; min-height: 120px; }
.ym.has { border-top: 4px solid var(--orange); }
.ym-name { font-weight: 700; margin-bottom: .4rem; color: var(--green); }
.ym-name span { font-weight: 600; color: var(--muted); font-family: var(--font-body); font-size: .85rem; }
.ym ul { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.ym li { margin-bottom: .3rem; }
.ym-empty { color: #66716B; font-size: .88rem; margin: 0; }
@media (max-width: 991px) { .year-strip { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .year-strip { grid-template-columns: repeat(2, 1fr); } }

.belong-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.belong-grid article { background: var(--line-soft); border-radius: 2px; padding: 1.3rem; border-left: 5px solid var(--green); }
.belong-grid article:nth-child(even) { border-left-color: var(--orange); }
.belong-grid h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .3rem; color: var(--green); }
.belong-grid p { margin: 0; color: var(--muted); }
@media (max-width: 575px) { .belong-grid { grid-template-columns: 1fr; } }
.host-band { padding: 3.5rem 0; color: var(--white); background: linear-gradient(110deg, var(--green-deep), var(--green)); }
.host-band h2 { font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.host-band p { margin: 0; opacity: .94; }

/* ---------- Welfare, help and contact pages ---------- */
.support-list { display: grid; gap: 0; }
.support { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.support h3 { font-size: 1.2rem; font-weight: 700; color: var(--green); margin-bottom: .3rem; }
.support p { margin: 0; }
.faq .accordion-button { font-weight: 600; font-family: var(--font-body); }
.faq .accordion-button:not(.collapsed) { background: var(--stone); color: var(--green-deep); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 3px var(--orange); }
.emergency { border-left: 6px solid var(--red); background: #FBE9EA; padding: 1.1rem 1.3rem; border-radius: 0 12px 12px 0; }
.emergency a { color: var(--red); font-weight: 700; }
.contact-people { list-style: none; padding: 0; margin: 0 0 1rem; }
.contact-people li { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: center; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.contact-people .who { font-weight: 600; }
.contact-people .role { grid-row: 2; color: var(--muted); font-size: .92rem; }
.contact-people .call { grid-row: 1 / span 2; grid-column: 2; background: var(--green); color: var(--white); text-decoration: none; font-weight: 600; padding: .45rem 1.1rem; border-radius: 2px; }
.contact-people .call-pending { background: var(--line-soft); color: var(--muted); font-size: .85rem; }
.services { list-style: none; padding: 0; }
.services li { padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.services li span { display: block; color: var(--muted); font-size: .92rem; }
.services a { font-weight: 700; margin-left: .3rem; }

/* ---------- Forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-top: 5px solid var(--green); padding: 2rem; border-radius: 2px; box-shadow: var(--shadow); }
.form-card h2 { font-weight: 700; }
.form-label { font-weight: 600; }
.form-control, .form-select { border-radius: 2px; border-color: #C9C9C9; padding: .65rem .8rem; }
.form-control:focus, .form-select:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(0,102,52,.2); }
.form-check-input:checked { background-color: var(--green); border-color: var(--green); }
.choice-group .form-check { padding: .9rem 1rem .9rem 2.6rem; border: 1px solid var(--line); margin-bottom: .6rem; border-radius: 2px; }
@media (max-width: 520px) { .form-card { padding: 1.3rem; } }

/* ---------- Fees, payments ---------- */
.fees { width: 100%; border-collapse: collapse; }
.fees th, .fees td { padding: .7rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.fees th { font-weight: 600; padding-right: 1rem; }
.fees td { text-align: right; white-space: nowrap; }
.fees-total th, .fees-total td { font-weight: 700; color: var(--green); border-bottom-width: 2px; }
.register-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.pay-summary { border: 1px solid var(--line); margin-bottom: 1.4rem; border-radius: 12px; overflow: hidden; }
.pay-summary div { display: flex; justify-content: space-between; padding: .65rem 1rem; border-bottom: 1px solid var(--line); }
.pay-summary div:last-child { border-bottom: 0; }
.pay-total { background: var(--stone); font-weight: 700; color: var(--green); font-size: 1.1rem; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.pay-methods-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 767px) { .pay-methods, .pay-methods-2 { grid-template-columns: 1fr; } }
.pay-method { background: var(--white); padding: 1rem 1.1rem; border-top: 4px solid var(--green); border-radius: 0 0 12px 12px; box-shadow: var(--shadow); }
.pay-method:nth-child(2) { border-top-color: var(--orange); }
.pay-method:nth-child(3) { border-top-color: var(--red); }
.pay-method h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .6rem; }
.pay-method dt { font-size: .82rem; color: var(--muted); font-weight: 600; }
.pay-method dd { margin-bottom: .5rem; font-weight: 600; word-break: break-word; }
.pay-ref { margin: 1.2rem 0 0; background: #FDF0E6; padding: .8rem 1rem; border-left: 4px solid var(--orange); border-radius: 2px; }

/* ---------- Member benefits ---------- */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2.5rem; }
.benefits-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { .benefits-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 767px) { .benefits, .benefits-3 { grid-template-columns: 1fr; } }
.benefit { padding: 1.5rem 0; border-top: 1px solid rgba(255,255,255,.2); }
.benefit h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .5rem; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; }
.benefit h3::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.benefit p { margin: 0; opacity: .88; }
.tag { display: inline-block; font-family: var(--font-body); font-size: .72rem; font-weight: 700; background: var(--orange); color: #1E1B1B; padding: .1rem .5rem; border-radius: 2px; vertical-align: middle; text-transform: uppercase; letter-spacing: .03em; }

/* ---------- Footer ---------- */
.site-footer { background: #1E1B1B; color: #D6D6D6; padding: 4rem 0 5rem; font-size: .95rem; border-top: 6px solid var(--green); }
.footer-motto { color: var(--orange); font-weight: 500; }
.footer-logo { margin-bottom: 1rem; }
.footer-name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--white); }
.footer-head { font-weight: 700; color: var(--white); margin-bottom: .7rem; text-transform: uppercase; letter-spacing: .05em; font-size: .88rem; border-bottom: 2px solid var(--orange); display: inline-block; padding-bottom: .2rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .4rem; }
.site-footer a { color: #D6D6D6; }
.site-footer a:hover { color: var(--white); }
.footer-reg { font-size: .85rem; color: #ABABAB; }
.social { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.social a { display: inline-block; border: 1px solid rgba(255,255,255,.3); padding: .3rem .85rem; border-radius: 2px; text-decoration: none; font-weight: 500; }
.social a:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; border-top: 1px solid rgba(255,255,255,.15); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; }

/* =========================================================
   eCitizen-style finish: rounded corners, calm buttons,
   photos under a see-through green, light green tints
   ========================================================= */
body { font-size: 1rem; line-height: 1.65; }
h1, h2, h3, .num { letter-spacing: -0.015em; }
:focus-visible { outline: 3px solid rgba(var(--green-rgb), .45); }

/* buttons: rounded, sentence case */
.btn { border-radius: 8px; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .95rem; }
.btn-lg { font-size: 1rem; padding: .75rem 1.4rem; }
.btn-sm { font-size: .85rem; }
.btn-gold::after { display: none; }
.btn-ghost { border-width: 1.5px; border-color: rgba(255,255,255,.75); }
.btn-outline-ink { border-width: 1.5px; }
.btn-help { border-width: 1.5px; }
.btn-light { background: #fff; color: var(--green-deep); border: 0; font-weight: 600; }
.btn-light:hover { background: var(--mint); color: var(--green-night); }

/* header */
.site-nav { background: rgba(255,255,255,.96); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.brand-text { font-weight: 800; font-size: .76rem; letter-spacing: .02em; border-left-color: var(--line); }
.site-nav .nav-link { font-weight: 500; letter-spacing: 0; font-size: .95rem; border-radius: 8px; }
.site-nav .nav-link:hover { background: var(--tint); }
.site-nav .nav-link.active { box-shadow: inset 0 -3px 0 var(--green); border-radius: 8px 8px 0 0; font-weight: 600; }
.site-nav .dropdown-menu { border-radius: 12px; padding: .4rem; border: 1px solid var(--line); }
.site-nav .dropdown-item { border: 0; border-radius: 8px; letter-spacing: 0; font-size: .92rem; }
.site-nav .dropdown-item:hover, .site-nav .dropdown-item:focus { background: var(--tint-2); }

/* labels above headings: a small green pill */
.hero-place, .eyebrow { display: inline-block; text-transform: none; letter-spacing: 0; font-weight: 600; font-size: .85rem;
    padding: .25rem .75rem; border-radius: 999px; }
.hero-place::before, .eyebrow::before { content: none; }
.eyebrow { background: var(--tint-2); color: var(--green-deep); }
.hero-place { background: rgba(255,255,255,.16); color: #fff; border: 1px solid rgba(255,255,255,.3); }
.signature-event .eyebrow, .feature .eyebrow, .objective-band .eyebrow { background: rgba(255,255,255,.14); color: #fff; }

/* photos under a see-through green (opacity keeps text readable) */
.hero .carousel-item, .page-hero {
    background:
        linear-gradient(100deg, rgba(30, 51, 36, .92) 0%, rgba(30, 51, 36, .74) 48%, rgba(30, 51, 36, .30) 100%),
        var(--slide-photo, var(--banner-photo, none)) center / cover no-repeat,
        var(--green-night);
}
.slide-1 { --slide-photo: url("../images/stock/photo-1515658323406-25d61c141a6e-1600.webp"); }
.slide-2 { --slide-photo: url("../images/stock/photo-1631404299824-4cef07b6f3d4-1600.webp"); }
.slide-3 { --slide-photo: url("../images/stock/photo-1604881991720-f91add269bed-1600.webp"); }
.slide-4 { --slide-photo: url("../images/stock/photo-1515657834497-26509e295154-1600.webp"); }
.slide-5 { --slide-photo: url("../images/stock/photo-1765725641810-718b574904f3-1600.webp"); }
.hero-emblem { opacity: .95; width: min(24vw, 320px); }
.hero .carousel-indicators [data-bs-target] { border-radius: 4px; }
.hero .carousel-indicators .active { background: #fff; }
.hero-badges span { border-radius: 999px; text-transform: none; letter-spacing: 0; }

/* sections and cards */
.section-soft { background: var(--stone); }
.objective, .path-card, .portfolio, .form-card, .ev-card, .feature, .countdown, .fact-panel, .mv-card,
.belong-grid article, .res-list li, .ym, .pay-method, .filter-empty, .leader-photo, .gallery .tile { border-radius: var(--radius); }
.objective, .path-card, .portfolio, .form-card { border: 1px solid var(--line); border-top: 4px solid var(--green); }
.objectives .col-sm-6:nth-child(even) .objective, .portfolios .col-md-6:nth-child(even) .portfolio { border-top-color: var(--green-deep); }
.objective { box-shadow: var(--shadow); }
.objective h3::before { content: ""; display: block; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 1rem;
    background: var(--tint-2) center / 22px no-repeat; }
.objectives .col-sm-6:nth-child(1) h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23346040' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='8' cy='8' r='3'/%3E%3Ccircle cx='16' cy='8' r='3'/%3E%3Cpath d='M2 20c.7-3.6 3-5.6 6-5.6s5.3 2 6 5.6M12.5 15c.9-.4 2.1-.6 3.5-.6 3 0 5.3 2 6 5.6'/%3E%3C/svg%3E"); }
.objectives .col-sm-6:nth-child(2) h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23346040' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7.5-4.4-7.5-10A4.2 4.2 0 0 1 12 7.6 4.2 4.2 0 0 1 19.5 10c0 5.6-7.5 10-7.5 10z'/%3E%3C/svg%3E"); }
.objectives .col-sm-6:nth-child(3) h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23346040' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 18V6l11-2v12'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='17' cy='16' r='3'/%3E%3C/svg%3E"); }
.objectives .col-sm-6:nth-child(4) h3::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23346040' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19l6-6 4 4 6-8'/%3E%3Cpath d='M15 9h5v5'/%3E%3C/svg%3E"); }

.leader-photo { background: radial-gradient(circle at 30% 20%, var(--green), var(--green-night) 75%); }
.signature-event { background: radial-gradient(circle at 12% 0%, rgba(240,207,138,.22), transparent 42%), linear-gradient(120deg, var(--green-night), var(--green-deep)); }
.countdown { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }
.countdown-label { color: var(--mint); text-transform: none; letter-spacing: 0; }
.countdown-grid div { background: rgba(255,255,255,.12); border-radius: 10px; }
.numbers { background: var(--green); }
.numbers .col-6:nth-child(even) .num { color: var(--mint); }

/* gallery photos */
.gallery .tile img { position: absolute; inset: 0; }
.gallery figcaption { background: linear-gradient(transparent, rgba(30,51,36,.9)); font-weight: 600; }

.donate-band { background: linear-gradient(110deg, var(--green-night), var(--green-deep)); border-top: 0; }
.donate-band .btn-gold, .host-band .btn-gold { background: #fff; border-color: #fff; color: var(--green-deep); }
.donate-band .btn-gold:hover, .host-band .btn-gold:hover { background: var(--mint); border-color: var(--mint); color: var(--green-night); }
.host-band { background: linear-gradient(110deg, var(--green-night), var(--green)); }

.path-card .path-price { color: var(--green); }
.path-featured { border-top-color: var(--green-deep); }
.path-featured::before { background: var(--green-deep); color: #fff; border-radius: 999px; text-transform: none; letter-spacing: 0; font-weight: 600; }

.fact-panel { background: var(--stone); border-top: 0; border-left: 4px solid var(--green); }
.objective-band { background: linear-gradient(110deg, var(--green-night), var(--green)); }
.mv-card { background: var(--stone); }
.mv-vision { border-left-color: var(--green-deep); }
.person { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem .8rem 1rem; height: 100%; box-shadow: var(--shadow); }
.person .initials { background: var(--tint-2); border: 0; color: var(--green-deep); }
.committee .col-6:nth-child(even) .initials { color: var(--green-deep); }

.tick-list li::before { border-color: var(--green); }
.steps li::before { background: var(--tint-2); color: var(--green-deep); }
.journey li::before { background: var(--green); color: #fff; }
.values .sw, .values li:nth-child(even) .sw { color: var(--green); }
.res-jump a, .chip { border-radius: 999px; text-transform: none; letter-spacing: 0; }
.res-list li { background: var(--stone); border-left-color: var(--green); }
.ym.has { border-top-color: var(--green); }
.belong-grid article, .belong-grid article:nth-child(even) { background: var(--stone); border-left-color: var(--green); }
.feature { background: radial-gradient(circle at 10% 0%, rgba(240,207,138,.22), transparent 45%), linear-gradient(120deg, var(--green-night), var(--green-deep)); }
.feature .ev-facts dt { color: var(--mint); }
.feature .btn-link { color: var(--mint); }
.ev-status, .ev-tags li, .hero-badges span { border-radius: 999px; text-transform: none; letter-spacing: 0; }
.ev-tags .tag-everyone { background: var(--tint-2); border-color: transparent; color: var(--green-deep); }
.is-linked { outline-color: var(--green); }
.emergency { border-radius: 0 var(--radius) var(--radius) 0; background: rgba(178,59,53,.07); }
.contact-people .call { border-radius: 8px; }
.msg { background: var(--tint); border-radius: 0 10px 10px 0; }
.msg.warn { border-left-color: #B7791F; background: #FEF6E4; }
.pay-ref { background: var(--tint); border-left-color: var(--green); border-radius: 8px; }
.pay-method:nth-child(2) { border-top-color: var(--green-deep); }
.pay-method:nth-child(3) { border-top-color: var(--green-night); }
.tag { background: var(--mint); color: var(--green-night); border-radius: 999px; text-transform: none; letter-spacing: 0; }
.benefit h3::before { background: var(--mint); }
.form-control, .form-select { border-radius: 8px; border-color: #D1D5DB; }
.form-control:focus, .form-select:focus { box-shadow: 0 0 0 3px rgba(var(--green-rgb), .2); }
.choice-group .form-check { border-radius: 10px; }
.faq .accordion-button:not(.collapsed) { background: var(--tint); }

/* footer */
.site-footer { background: var(--green-night); color: #D9E3DA; border-top: 0; }
.site-footer a { color: #D9E3DA; }
.footer-motto { color: var(--mint); }
.footer-head { border-bottom-color: var(--mint); text-transform: none; letter-spacing: 0; font-size: .95rem; }
.footer-reg { color: #ADBFAF; }
.social a { border-radius: 999px; }
.social a:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.5); }
.footer-contact a { font-weight: 600; }

/* help bubble */
.help-bubble { background: var(--green); color: #fff; }
.help-bubble-label { border-radius: 8px; background: var(--green-night); }

/* photo credit line and credits page */
.photo-credit { font-size: .8rem; color: var(--muted); margin-top: .6rem; }
.credits { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1rem; }
.credits li { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.credits img { width: 100%; height: 150px; object-fit: cover; display: block; background: var(--stone); }
.credits p { margin: 0; padding: .7rem .9rem; font-size: .92rem; }
.credits .used { display: block; color: var(--muted); font-size: .85rem; }

.call-card { display: block; text-decoration: none; background: var(--green); color: #fff; border-radius: var(--radius); padding: 1rem 1.2rem; margin: .4rem 0 1rem; box-shadow: var(--shadow); }
.call-card:hover { background: var(--green-deep); color: #fff; }
.call-card-label { display: block; font-size: .88rem; opacity: .9; }
.call-card-num { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: .01em; }
.hero-place { align-self: flex-start; }
.hero-emblem { display: none; }   /* the slides now have photos; the logo is in the menu bar */

/* ---------- Home: next event tile ---------- */
.next-event-band { padding: 2rem 0 0; background: var(--stone); }
.next-event { display: grid; grid-template-columns: 1fr minmax(260px, 360px); gap: 1.4rem; align-items: center;
    background: var(--green-night); color: var(--white); border-radius: var(--radius); padding: 1.5rem 1.6rem;
    border-left: 6px solid var(--red); box-shadow: var(--shadow); }
.next-event-label { text-transform: uppercase; letter-spacing: .06em; font-size: .85rem; font-weight: 600; color: var(--mint); margin-bottom: .3rem; }
.next-event h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; margin-bottom: .4rem; color: var(--white); }
.next-event-when { font-weight: 500; margin-bottom: .2rem; }
.next-event-place { opacity: .88; margin-bottom: 1rem; }
.next-event .btn-gold { background: var(--white); color: var(--green); border-color: var(--white); }
.next-event .btn-gold:hover, .next-event .btn-gold:focus-visible { background: var(--mint); color: var(--green-night); border-color: var(--mint); }
.countdown-compact { padding: 1rem; }
.countdown-compact .countdown-label { margin-bottom: .5rem; }
.countdown-compact .countdown-grid div { padding: .6rem .2rem; }
.countdown-compact .countdown-grid span { font-size: clamp(1.6rem, 4vw, 2.2rem); }
@media (max-width: 767px) { .next-event { grid-template-columns: 1fr; padding: 1.2rem; } }

/* ---------- Members area guide ---------- */
.practice-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: center; background: var(--tint);
    border: 2px dashed var(--green); border-radius: var(--radius); padding: 1.6rem; margin-bottom: 3rem; }
.practice-card h2 { color: var(--green); font-weight: 700; }
.practice-details { background: var(--white); border-radius: var(--radius); padding: 1.2rem; margin: 0; box-shadow: var(--shadow); }
.practice-details div { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem 0; border-bottom: 1px solid var(--line); }
.practice-details div:last-child { border: 0; }
.practice-details dt { font-weight: 600; }
.practice-details dd { margin: 0; }
.practice-details code { font-size: 1.05rem; color: var(--ink); background: var(--stone); padding: .1rem .4rem; border-radius: 4px; }
.pd-btn { margin: .9rem 0 0; }
.pd-btn .btn { width: 100%; }
.guide-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 2.5rem; }
.guide-step { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); }
.guide-num { display: inline-block; background: var(--green); color: var(--white); font-weight: 600; font-size: .85rem;
    border-radius: 999px; padding: .15rem .7rem; margin-bottom: .5rem; }
.guide-step h2 { font-size: 1.5rem; font-weight: 700; color: var(--green); }
.guide-shot { margin: 0; }
.guide-shot img { width: 100%; max-height: 640px; object-fit: cover; object-position: top; border-radius: 14px;
    border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--white); }
.guide-help { margin-top: 2.5rem; padding: 1.4rem; border-left: 5px solid var(--green); background: var(--stone); border-radius: 4px; }
.guide-help h2 { font-size: 1.3rem; font-weight: 700; color: var(--green); }
@media (max-width: 767px) {
    .practice-card, .guide-step { grid-template-columns: 1fr; }
    .guide-shot { max-width: 340px; }
}
@media print {
    .site-nav, .skip-link, .site-footer, .cta, .wa-float, .help-fab { display: none !important; }
    .page-hero { padding: 1.6rem 0; }
    .section { padding: 1.2rem 0; }
    .practice-card { margin-bottom: 1.5rem; padding: 1rem; grid-template-columns: 1.3fr 1fr; }
    .guide-steps { gap: 1.1rem; }
    .guide-step { break-inside: avoid; grid-template-columns: 1fr 190px; gap: 1.2rem; padding-bottom: 1.1rem; }
    .guide-step.no-shot { break-inside: auto; }
    pre.code { background: #F4F6EF; color: #172719; border: 1px solid #ccc; }
    .guide-shot img { max-height: 330px; box-shadow: none; }
}

/* ---------- Photos: albums, album view, lightbox (js/photos.js) ---------- */
.albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.album { display: block; text-decoration: none; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.album:hover { border-color: var(--green); }
.album-cover { display: block; aspect-ratio: 4 / 3; background: var(--stone); }
.album-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-text { display: flex; flex-direction: column; padding: .8rem 1rem; }
.album-text span { color: var(--muted); font-size: .9rem; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .8rem; }
#album-view { scroll-margin-top: 120px; }
.photo-grid figure { margin: 0; }
.photo-grid figcaption { font-size: .9rem; color: var(--muted); padding: .35rem .1rem 0; }
.tile-open { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.photo-grid .tile-open { aspect-ratio: 4 / 3; height: auto; border-radius: 10px; overflow: hidden; }
.tile-open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.back-link { font-weight: 600; text-decoration: none; }
.consent-box { border: 1px solid var(--line, #D8E0D9); border-radius: 6px; padding: 1rem 1.2rem .6rem; background: var(--stone); }
.consent-box legend { float: none; width: auto; padding: 0 .4rem; margin: 0 0 .4rem -.4rem; font-weight: 700; }
.consent-box .form-check { margin-bottom: .6rem; }
.photo-consent { margin-top: 2.5rem; padding: 1.2rem 1.4rem; background: var(--stone); border-left: 5px solid var(--green); }
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 92vw; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; }
.lightbox figcaption { color: #fff; margin-top: .6rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; }
.lightbox .lb-close { top: 14px; right: 14px; }
.lightbox .lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
body.lb-open { overflow: hidden; }
.ev-photo { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.ev-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-photo span { position: absolute; right: 8px; bottom: 8px; background: rgba(0,0,0,.6); color: #fff; font-size: .8rem; padding: .15rem .55rem; border-radius: 999px; }
.guide-step h3 { font-size: 1.35rem; font-weight: 700; color: var(--green); }
.guide-step.no-shot { grid-template-columns: 1fr; }
.guide-toc { background: var(--stone); border-radius: var(--radius); padding: 1rem 1.4rem; }
.guide-toc ol { margin: 0; columns: 2; }
@media (max-width: 575px) { .guide-toc ol { columns: 1; } }
pre.code { background: #172719; color: #E8F2E9; padding: .8rem 1rem; border-radius: 8px; font-size: .85rem; white-space: pre-wrap; word-break: break-word; }

/* =========================================================
   KENEWA IDENTITY (October 2026)
   eCitizen-style colours: Kenyan government green, white, dark text,
   red only for urgent things, and light see-through greens.
   Type: Inter, in /fonts (SIL Open Font Licence).
   ========================================================= */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
    font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-italic.woff2") format("woff2");
    font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
    /* October 2026: colours from the KENEWA logo (green, gold, red and charcoal), white backgrounds,
       red only for urgent things, and the Inter font. The old kanga names below now point at these colours. */
    --msitu:   #1E3324;   /* night green: dark bands, header, footer */
    --msitu-2: #274A30;   /* deep green: headings */
    --mahindi: #F0CF8A;   /* light gold: small accents on dark green only */
    --damu:    #346040;   /* accents and links are green (red is kept for urgent things: --urgent) */
    --urgent:  #B23B35;   /* logo red: Get help, emergencies, bereavement */
    --stone:   #F4F6EF;
    --ink:     #2B2D26;
    --muted:   #545849;
    --green-night: var(--msitu);
    --charcoal: var(--msitu);
    --orange: var(--mahindi);
    --mint: #F0CF8A;
    --radius: 10px;
    --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px -12px rgba(16, 24, 40, .18);
    --font-display: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    --font-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    --font-brand: var(--font-display);
}

/* ---------- Type ---------- */
body { font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); }
h1, h2, h3, h4, .num, .section-title, .leadership-title, .brand-text { font-family: var(--font-display); font-optical-sizing: auto; }
h1, h2, h3 { letter-spacing: -0.01em; }
/* dark bands keep white headings */
.signature-event h2, .donate-band h2, .host-band h2, .section-dark h2, .section-green h2, .objective-band h2, .numbers,
.cta h2, .page-hero h1, .next-event h2, .welcome h1, .welcome h2 { color: var(--white); }
.text-center p, p.text-center, .section-head.text-center p { margin-left: auto; margin-right: auto; }
.section-title { color: var(--msitu-2); font-weight: 700; font-size: clamp(1.9rem, 3.8vw, 2.6rem); line-height: 1.08; letter-spacing: -0.02em; }
.section-dark .section-title, .section-green .section-title { color: var(--white); }
p, li { max-width: 72ch; }
.leadership-title { color: var(--msitu-2); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.leader-heading { color: var(--green); font-family: var(--font-display); font-weight: 600; }
.brand-text { font-weight: 700; text-transform: none; font-size: .82rem; letter-spacing: 0; color: var(--msitu-2); }

/* small labels above headings: plain words, sentence case, no pills or arrows */
.hero-place, .eyebrow { display: block; background: none; border: 0; padding: 0; border-radius: 0; text-transform: none;
    letter-spacing: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; margin-bottom: .4rem; }
.hero-place::before, .eyebrow::before { content: none; }
.eyebrow { color: var(--damu); }
.hero-place, .signature-event .eyebrow, .feature .eyebrow, .objective-band .eyebrow { color: var(--mahindi); background: none; }
.text-center .eyebrow, .section-head.text-center .eyebrow { text-align: center; }

/* ---------- Buttons: sentence case, no arrows ---------- */
.btn { text-transform: none; letter-spacing: 0; border-radius: 6px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; }
.btn-lg { font-size: 1.08rem; padding: .8rem 1.5rem; }
.btn-sm { font-size: .92rem; }
.btn-gold::after { content: none; }
.btn-maize { background: var(--mahindi); color: var(--msitu); border: 2px solid var(--mahindi); }
.btn-maize:hover, .btn-maize:focus { background: #E2B866; border-color: #E2B866; color: var(--msitu); }
.donate-band .btn-gold, .host-band .btn-gold { background: var(--mahindi); border-color: var(--mahindi); color: var(--msitu); }
.donate-band .btn-gold:hover, .host-band .btn-gold:hover { background: #E2B866; border-color: #E2B866; color: var(--msitu); }
:focus-visible { outline: 3px solid var(--msitu); outline-offset: 2px; box-shadow: 0 0 0 6px var(--mahindi); }

/* ---------- Page banners and footer ---------- */
.page-hero { --tone: var(--msitu); }
.page-hero h1 { color: var(--white); font-weight: 800; letter-spacing: -0.03em; }
.site-footer { background: var(--msitu); border-top: 0; position: relative; color: #DAE2DB; }
.site-footer h2, .site-footer h3, .site-footer h4 { color: var(--white); }

/* ---------- Quieter sections and cards ---------- */
.objective { box-shadow: none; border: 1px solid #D8E0D9; border-top: 4px solid var(--green); border-radius: 6px; }
.objectives .col-sm-6:nth-child(even) .objective { border-top-color: var(--mahindi); }
.objective h3 { color: var(--msitu-2); }
.path-card, .portfolio, .form-card { box-shadow: none; border-radius: 6px; }
.numbers { background: var(--msitu); }
.numbers .num, .numbers .col-6:nth-child(even) .num { color: var(--mahindi); font-weight: 800; letter-spacing: -0.03em; }
.signature-event { background: var(--msitu); }
.countdown-label { color: var(--mahindi); }
.donate-band { background: var(--msitu); border-top: 0; position: relative; }
.next-event { background: var(--msitu); border-left-color: var(--mahindi); border-radius: 6px; box-shadow: none; }
.next-event-label { color: var(--mahindi); text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-size: 1rem; }
.next-event h2 { font-weight: 800; letter-spacing: -0.02em; }
.next-event .btn-gold { background: var(--mahindi); color: var(--msitu); border-color: var(--mahindi); }
.leader-photo { border-radius: 4px; box-shadow: 10px 10px 0 var(--mahindi); }
.gallery .tile { border-radius: 4px; }

/* =========================================================
   HOME PAGE BUILDING BLOCKS (October 2026)
   Icons, cards, upcoming events, gallery, members' words, join form and
   featured businesses, used by the home page sections further down.
   ========================================================= */
.home { --h-line: #DDE4DE; --h-warm: #FBEFEC; --h-maize-soft: #FFF6DC; }
.home .section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }

.home ul li, .home ol li { max-width: none; }

.h-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }
.h-actions-left { justify-content: flex-start; }
.btn-damu { background: var(--damu); color: var(--white); border: 2px solid var(--damu); }
.btn-damu:hover, .btn-damu:focus { background: #8F2E29; border-color: #8F2E29; color: var(--white); }

/* round icons */
.h-ico { --c: var(--green); flex: none; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--c); }
.h-ico svg { width: 24px; height: 24px; fill: none; stroke: var(--white); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.h-ico-maize { background: var(--mahindi); }
.h-ico-maize svg { stroke: var(--msitu); }

/* 1. welcome */

.h-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 620px; margin: 2rem auto 0; }
.h-stats div { display: flex; flex-direction: column-reverse; align-items: center; }
.h-stats dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 2.6rem); line-height: 1; color: var(--damu); }
.h-stats dt { font-weight: 400; color: var(--muted); font-size: .95rem; margin-top: .35rem; line-height: 1.3; }
.h-stats div + div { border-left: 1px solid var(--h-line); }

/* 2. community photo */

/* 3. about */

/* 4. values */

/* cards */
.h-cards { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }

.h-card { background: var(--white); border: 1px solid var(--h-line); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; align-items: flex-start; }
.h-card .h-ico { margin-bottom: 1rem; }
.h-card h3, .h-card h4 { font-size: 1.15rem; font-weight: 700; color: var(--msitu-2); margin: 0 0 .4rem; }
.h-card p { color: var(--muted); margin: 0; font-size: .98rem; }
.h-card > a:last-child { margin-top: auto; padding-top: .9rem; font-weight: 700; color: var(--damu); }

/* 5. welfare */

/* 6. events */

.h-upcoming { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; }
.h-upcoming li { display: flex; align-items: center; gap: 1.1rem; background: var(--white); border: 1px solid var(--h-line); border-radius: 14px; padding: .9rem 1rem; }
.h-dateblock { flex: none; display: grid; place-content: center; text-align: center; width: 72px; height: 72px; border-radius: 10px; background: var(--stone); margin: 0; }
.h-dd { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; color: var(--msitu-2); }
.h-dd-word { font-size: 1.3rem; }
.h-mm { font-size: .85rem; color: var(--damu); font-weight: 700; }
.h-up-text { flex: 1; min-width: 0; }
.h-up-text h4 { font-size: 1.08rem; font-weight: 700; color: var(--msitu-2); margin: 0 0 .15rem; }
.h-up-text p { margin: 0; font-size: .96rem; color: var(--ink); }
.h-upcoming .btn { flex: none; }
.h-up-empty { color: var(--muted); }

/* 8. photos: one big photo, then a grid */
.h-gallery .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: .9rem; margin-top: 1.75rem; }
.h-gallery .gallery .tile { border-radius: 12px; }
.h-gallery .gallery .tile:nth-child(n) { grid-row: auto; grid-column: auto; }
.h-gallery .gallery .tile:first-child { grid-column: span 2; grid-row: span 2; }
.h-gallery .gallery .tile:nth-child(n+6) { display: none; }
.h-gallery .h-actions { justify-content: flex-start; margin-top: 1.25rem; }

/* 9. members' words */
.h-quote-list { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.h-quote-list li { background: var(--white); border: 1px solid var(--h-line); border-radius: 14px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.h-quote-list blockquote { margin: 0 0 1.25rem; padding-left: 1rem; border-left: 4px solid var(--mahindi); }
.h-quote-list blockquote p { margin: 0; font-size: 1.05rem; color: var(--ink); }
.h-quote-who { display: flex; align-items: center; gap: .75rem; margin: 0; }
.h-quote-who img, .h-quote-who > span:first-child { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.h-quote-who > span:first-child { display: grid; place-items: center; background: var(--msitu); color: var(--mahindi); font-weight: 700; }
.h-quote-who strong { display: block; color: var(--msitu-2); }
.h-quote-who small { display: block; color: var(--muted); }

/* 10. join */
.h-join-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.h-join-text p { color: var(--muted); }
.h-contact { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .7rem; }
.h-contact li { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.h-contact svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--damu); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.h-join-form { background: var(--white); border: 1px solid var(--h-line); border-top: 6px solid var(--damu); border-radius: 14px; padding: clamp(1.25rem, 3vw, 2rem);
    box-shadow: 0 10px 30px rgba(26, 44, 31, .07); }

/* 11. committee */
.h-people { list-style: none; padding: 0; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; max-width: 1000px; }
.h-people li { background: var(--white); border: 1px solid var(--h-line); border-radius: 14px; padding: 1.5rem 1.25rem; text-align: center; }
.h-people img { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 1rem; object-fit: cover;
    border: 3px solid var(--mahindi); outline: 3px solid var(--white); outline-offset: -6px; }

.h-people h3 { font-size: 1.12rem; font-weight: 700; color: var(--msitu-2); margin: 0; }
.h-role { color: var(--damu); font-weight: 700; font-size: .95rem; margin: .15rem 0 .5rem; }
.h-people p:last-child { color: var(--muted); font-size: .95rem; margin: 0 auto; }

/* 13. membership */

/* 14. businesses */
.h-biz-list { list-style: none; padding: 0; margin: 0 0 1.5rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.h-biz-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; margin-bottom: 1rem; }
.h-offer { display: inline-flex; align-items: center; gap: .4rem; margin-top: .75rem !important; color: var(--msitu-2) !important; font-weight: 700;
    background: var(--h-maize-soft); border-radius: 999px; padding: .25rem .75rem; font-size: .92rem !important; }
.h-offer svg, .h-biz-links svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.h-biz-links { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .9rem !important; }
.h-biz-links a { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--damu); }

@media (max-width: 991px) {
    
    
    .h-join-box { grid-template-columns: 1fr; }
    .h-people { grid-template-columns: repeat(2, 1fr); }
    .h-people li:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .h-gallery .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
}
@media (max-width: 767px) {
     .h-quote-list { grid-template-columns: 1fr; }
    
    
    
    
    
    
    
    
    
    
    .h-upcoming li { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: .4rem 1rem; }
    .h-dateblock { width: 64px; height: 64px; grid-row: span 2; }
    .h-upcoming .btn { justify-self: start; }
    
    
    .h-stats dt { font-size: .85rem; }
}
@media (max-width: 575px) {
    
    
    
    .h-people { gap: .75rem; }
    .h-people li { padding: 1.1rem .75rem; }
    .h-people img { width: 88px; height: 88px; font-size: 1.4rem; }
    .h-people p:last-child { font-size: .9rem; }
}
@media (max-width: 420px) {
    .h-gallery .gallery { grid-auto-rows: 130px; }
    
}

/* =========================================================
   HEADER AND FOOTER (October 2026, after the University of Eldoret site)
   A slim top bar for contacts and the most-used links, then the main
   menu with grouped drop-down panels ("mega menus").
   ========================================================= */
.topbar { background: var(--msitu); color: #DAE2DB; font-size: .9rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 40px; }
.topbar p, .topbar ul { margin: 0; }
.topbar-contact { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.topbar-contact span { color: #ADBFAF; }
.topbar a { color: #fff; text-decoration: none; font-weight: 700; }
.topbar a:hover, .topbar a:focus { text-decoration: underline; color: #fff; }
.topbar-links { list-style: none; padding: 0; display: flex; gap: 1.25rem; align-items: center; }
.topbar .topbar-help { background: var(--damu); padding: .3rem .8rem; border-radius: 4px; }
.topbar .topbar-help:hover { background: #8F2E29; text-decoration: none; }
@media (max-width: 767px) {
    .topbar-contact span, .topbar-contact a[href^="mailto"] { display: none; }
    .topbar-links { gap: .9rem; }
    .topbar-links li:nth-child(2) { display: none; }
}

/* grouped drop-down panels */
.site-nav .mega-menu { padding: 1.1rem 1.25rem; }
.site-nav .mega-menu.show { display: flex; gap: 1.75rem; }
.mega-col ul { list-style: none; padding: 0; margin: 0; }
.mega-col li { max-width: none; }
.mega-head { font-family: var(--font-display); font-weight: 700; font-size: .95rem; color: var(--damu); margin: 0 0 .35rem .5rem; white-space: nowrap; }
.site-nav .mega-menu .dropdown-item { padding: .45rem .5rem; white-space: nowrap; }
@media (min-width: 1200px) {
    .site-nav .mega-menu[data-bs-popper] { left: 50%; transform: translateX(-50%); margin-top: .4rem; border-top: 4px solid var(--mahindi); }
    .site-nav .mega-col { min-width: 190px; }
}
@media (max-width: 1199px) {
    .site-nav .mega-menu.show { flex-direction: column; gap: .5rem; padding: .5rem 0 .5rem .75rem; }
    .mega-head { margin-left: .5rem; }
}

/* footer columns */
.footer-cols .footer-contact li { margin-bottom: .55rem; }

/* =========================================================
   HOME PAGE (October 2026, after the University of Eldoret site)
   Order: welcome slides, quick buttons, Chairperson's welcome, four
   help cards, news, noticeboard and events, portfolios, photos, members'
   words, find help, online services, get involved, stay in touch.
   ========================================================= */
.home ul, .home ol { max-width: none; }
.u-muted { color: var(--muted); }
.u-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .5rem 1.5rem; margin-bottom: 1.75rem; }
.u-head-row > a { font-weight: 700; color: var(--damu); }

/* 1. slides */
.u-hero { position: relative; color: #fff; background: var(--msitu); }
.u-hero .carousel-item { min-height: clamp(520px, 72vh, 640px);
    background: linear-gradient(95deg, rgba(26, 44, 31, .94) 0%, rgba(26, 44, 31, .80) 45%, rgba(26, 44, 31, .35) 100%),
                var(--slide-photo, none) center / cover no-repeat, var(--msitu); }
.u-slide { display: flex; flex-direction: column; justify-content: center; min-height: inherit; padding-top: 4rem; padding-bottom: 9rem; }
.u-slide > * { max-width: 760px; }
.u-slide-label { font-family: var(--font-display); font-weight: 600; color: var(--mahindi); font-size: 1.1rem; margin-bottom: .6rem; }
.u-hero h1, .u-hero h2 { color: #fff; font-weight: 800; font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.04; letter-spacing: -0.03em; max-width: 17ch; margin-bottom: 1rem; }
.u-slide-lead { font-size: 1.15rem; color: #E5ECE6; max-width: 46ch; margin-bottom: 0; }
.u-hero .h-actions { margin-top: 1.75rem; }
.u-hero-controls { position: absolute; left: 0; right: 0; bottom: 5.25rem; display: flex; align-items: center; gap: .6rem; z-index: 3; pointer-events: none; }
.u-hero-controls > * { pointer-events: auto; }
.u-ctrl { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid rgba(255, 255, 255, .75); background: rgba(26, 44, 31, .35); color: #fff;
    display: grid; place-items: center; padding: 0; }
.u-ctrl:hover { background: #fff; color: var(--msitu); }
.u-ctrl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.u-count { font-family: var(--font-display); font-weight: 700; min-width: 3.2rem; text-align: center; color: #fff; }
@media (prefers-reduced-motion: reduce) { .u-hero .carousel-item { transition: none; } }

/* 2. quick buttons over the bottom of the slides */
.u-quick { position: relative; z-index: 4; margin-top: -3.5rem; }
.u-quick-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.u-quick-list a { display: flex; align-items: center; gap: .9rem; height: 100%; background: #fff; border-radius: 14px; padding: 1.1rem 1.15rem;
    color: var(--muted); text-decoration: none; box-shadow: 0 12px 30px rgba(26, 44, 31, .14); border-bottom: 4px solid transparent; font-size: .95rem; line-height: 1.35; }
.u-quick-list a:hover, .u-quick-list a:focus { border-bottom-color: var(--mahindi); color: var(--muted); }
.u-quick-list strong { display: block; color: var(--msitu-2); font-family: var(--font-display); font-size: 1.08rem; margin-bottom: .1rem; }

/* 3. welcome */
.u-welcome-grid { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.u-chair { margin: 0; position: relative; }
.u-chair img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; display: block; background: var(--stone); }
.u-chair figcaption { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; background: #fff; border-radius: 10px; padding: .6rem .9rem; border-left: 5px solid var(--mahindi);
    color: var(--muted); font-size: .92rem; box-shadow: 0 6px 18px rgba(26, 44, 31, .15); }
.u-chair figcaption strong { display: block; color: var(--msitu-2); font-family: var(--font-display); font-size: 1.05rem; }
.u-lead { font-size: 1.12rem; color: var(--ink); }
.u-more summary { cursor: pointer; font-weight: 700; color: var(--damu); margin-bottom: .75rem; }
.u-more p { color: var(--muted); }
.u-stats { margin: 1.75rem 0 0; max-width: 520px; }

/* 4. help cards */
.u-cards-4 { grid-template-columns: repeat(4, 1fr); margin-top: 1.5rem; }
.u-cards-4 .h-card > .btn { margin-top: auto; }
.u-cards-4 .h-card p { margin-bottom: 1.1rem; }

/* 5. news */
.u-news-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.u-news-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #DDE4DE; border-top: 5px solid var(--mahindi); border-radius: 14px; overflow: hidden; }
.u-news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.u-news-card > div { padding: 1.3rem 1.4rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.u-news-when { color: var(--damu); font-weight: 700; font-size: .9rem; margin: 0 0 .35rem; }
.u-news-card h3 { font-size: 1.2rem; font-weight: 700; color: var(--msitu-2); margin: 0 0 .5rem; }
.u-news-card p { color: var(--muted); font-size: .98rem; }
.u-news-card a { margin-top: auto; font-weight: 700; color: var(--damu); }

/* 6. noticeboard and events */
.u-boards-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.5rem; }
.u-board { background: #fff; border: 1px solid #DDE4DE; border-radius: 14px; padding: clamp(1.25rem, 3vw, 1.75rem); }
.u-board-title { font-family: var(--font-display); font-weight: 700; color: var(--msitu-2); font-size: 1.45rem; margin-bottom: 1rem; }
.u-notices { list-style: none; counter-reset: notice; padding: 0; margin: 0; }
.u-notices li { counter-increment: notice; display: grid; grid-template-columns: 2rem minmax(0, 1fr); gap: .5rem; padding: .7rem 0; border-bottom: 1px solid var(--line-soft); }
.u-notices li:last-child { border-bottom: 0; }
.u-notices li::before { content: counter(notice); font-family: var(--font-display); font-weight: 800; color: var(--damu); }
.u-notices a { color: var(--ink); text-decoration: none; }
.u-notices a:hover, .u-notices a:focus { color: var(--msitu-2); text-decoration: underline; }
.u-upcoming li { border: 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; padding: .8rem 0; }
.u-upcoming li:last-child { border-bottom: 0; }
.u-board .u-head-row { margin-bottom: 1rem; align-items: baseline; }

/* 7. portfolios */
.u-portfolios-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.u-port-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .85rem; }
.u-port-list a { display: block; height: 100%; padding: .85rem 1rem; border-left: 4px solid var(--mahindi); background: var(--stone); border-radius: 0 10px 10px 0;
    color: var(--muted); text-decoration: none; font-size: .95rem; }
.u-port-list a:hover, .u-port-list a:focus { background: #E4EAE4; border-left-color: var(--damu); color: var(--muted); }
.u-port-list strong { display: block; color: var(--msitu-2); font-size: 1.05rem; }

/* 10. find help (dark band) */
.u-finder { background: var(--msitu); position: relative; }
.u-finder-box { max-width: 820px; margin: 0 auto; text-align: center; color: #E5ECE6; }
.u-finder .section-title { color: #fff; }
.u-finder .u-muted { color: #CCD8CD; margin-left: auto; margin-right: auto; }
.u-finder-form { display: flex; gap: .6rem; margin: 1.5rem 0 1rem; }
.u-finder-form .form-control { flex: 1; }
.u-finder-form .btn { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.u-finder-form .btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.u-finder-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 1.25rem; }
.u-finder-chips button { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 999px; padding: .35rem .95rem; font-weight: 600; font-size: .92rem; }
.u-finder-chips button:hover { background: #fff; color: var(--msitu); }
.u-finder-results { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: .5rem; text-align: left; }
.u-finder-results li { background: #fff; border-radius: 10px; }
.u-finder-results a { display: block; padding: .8rem 1rem; color: var(--msitu-2); font-weight: 700; }
.u-finder-results .u-finder-none { padding: .8rem 1rem; color: var(--ink); }
.u-finder-results .u-finder-none a { display: inline; padding: 0; color: var(--damu); }
.u-finder-box > p:last-child a { color: var(--mahindi); font-weight: 700; }

/* 11. online services */
.u-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
.u-tiles a { display: flex; align-items: center; gap: .9rem; height: 100%; background: #fff; border: 1px solid #DDE4DE; border-radius: 12px; padding: 1rem 1.1rem;
    color: var(--msitu-2); font-weight: 700; text-decoration: none; }
.u-tiles a:hover, .u-tiles a:focus { border-color: var(--msitu); background: #F7FAF8; }
.u-tiles svg { width: 30px; height: 30px; flex: none; fill: none; stroke: var(--damu); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

/* 12. get involved */
.u-promo-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.u-promo { display: flex; flex-direction: column; background: #fff; border: 1px solid #DDE4DE; border-radius: 14px; overflow: hidden; }
.u-promo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--stone); }
.u-promo > div { padding: 1.2rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.u-promo h3 { font-size: 1.15rem; font-weight: 700; color: var(--msitu-2); margin: 0 0 .4rem; }
.u-promo p { color: var(--muted); font-size: .96rem; }
.u-promo a { margin-top: auto; font-weight: 700; color: var(--damu); }

@media (max-width: 1199px) {
    .u-cards-4, .u-promo-grid { grid-template-columns: repeat(2, 1fr); }
    .u-quick-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 991px) {
    .u-welcome-grid, .u-boards-grid, .u-portfolios-grid { grid-template-columns: 1fr; }
    .u-chair { max-width: 280px; }
    .u-news-grid { grid-template-columns: 1fr 1fr; }
    .u-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575px) {
    .u-slide { padding-top: 3rem; padding-bottom: 9.5rem; }
    .u-promo img { aspect-ratio: 16 / 9; }
    .u-tiles li:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .u-hero-controls { bottom: 4.6rem; }
    .u-quick { margin-top: -2.75rem; }
    .u-quick-list { gap: .6rem; }
    .u-quick-list a { flex-direction: column; align-items: flex-start; gap: .55rem; padding: .9rem; font-size: .88rem; }
    .u-quick-list .h-ico { width: 40px; height: 40px; }
    .u-quick-list .h-ico svg { width: 20px; height: 20px; }
    .u-cards-4, .u-promo-grid, .u-news-grid, .u-port-list { grid-template-columns: 1fr; }
    .u-tiles { grid-template-columns: 1fr 1fr; gap: .6rem; }
    .u-tiles a { flex-direction: column; align-items: flex-start; gap: .5rem; padding: .85rem; font-size: .95rem; }
    .u-finder-form { flex-direction: column; }
}

/* =========================================================
   ACCESSIBILITY (October 2026 review)
   Form fields, checkboxes and radio buttons need a border with at
   least 3:1 contrast so people can see where to type or tap (WCAG 1.4.11).
   ========================================================= */
.form-control, .form-select, .form-check-input { border-color: #728074; }
.form-check-input { border-width: 1.5px; }
.form-control:focus, .form-select:focus { border-color: var(--green); }
.form-control::placeholder { color: #5F6B64; opacity: 1; }

/* policy pages: simple tables that stack on phones */
.policy-table { font-size: .97rem; }
.policy-table th { background: var(--stone); color: var(--msitu-2, #153419); font-family: var(--font-display); }
.policy-table td, .policy-table th { padding: .7rem .75rem; vertical-align: top; }
@media (max-width: 575px) {
    .policy-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .policy-table tr { display: block; border-bottom: 2px solid var(--line); padding: .4rem 0; }
    .policy-table td { display: block; border: 0; padding: .3rem .25rem; }
    .policy-table td:first-child { font-weight: 700; }
    .policy-table td[data-label]:not(:first-child)::before { content: attr(data-label) ": "; font-weight: 700; color: var(--muted); }
}

/* Keyboard focus must always be visible (WCAG 2.4.7). Bootstrap's buttons, menu
   links and dropdown items switch the outline off, so put the KENEWA ring back:
   a dark outline with a maize halo, visible on light and dark backgrounds. */
.btn:focus-visible, .btn:active:focus-visible, .nav-link:focus-visible, .dropdown-item:focus-visible,
.form-check-input:focus-visible, .btn-close:focus-visible, .carousel-control-prev:focus-visible, .carousel-control-next:focus-visible {
    outline: 3px solid var(--msitu, #1A2C1F) !important; outline-offset: 2px; box-shadow: 0 0 0 6px var(--mahindi, #F0B323) !important;
}
.form-control:focus-visible, .form-select:focus-visible { outline: 3px solid var(--msitu, #1A2C1F); outline-offset: 1px; }


/* =========================================================
   eCitizen-STYLE COLOURS (October 2026)
   Green, white and dark text. Light mint only as a small accent on dark green.
   Red (--urgent) only for urgent things: Get help, emergencies, bereavement.
   ========================================================= */
body, button, input, select, textarea { font-family: var(--font-body); }
h1, h2, h3, h4 { letter-spacing: -0.015em; }
.eyebrow { color: var(--green); }
/* accents on light backgrounds: green, never yellow */
.objectives .col-sm-6:nth-child(even) .objective { border-top-color: var(--green); }
.leader-photo { box-shadow: 10px 10px 0 var(--tint-2); }
.h-quote-list blockquote { border-left-color: var(--green); }
.site-nav .mega-menu[data-bs-popper] { border-top-color: var(--green) !important; }
.u-quick-list a:hover, .u-quick-list a:focus { border-bottom-color: var(--green); }
.u-chair figcaption { border-left-color: var(--green) !important; }
.u-news-card { border-top-color: var(--green); }
.u-port-list a { border-left-color: var(--green); }
.u-port-list a:hover, .u-port-list a:focus { border-left-color: var(--green-deep); }
/* buttons: green on light, mint on dark green */
.btn-damu { background: var(--green); border-color: var(--green); }
.btn-damu:hover, .btn-damu:focus { background: var(--green-deep); border-color: var(--green-deep); }
.btn-maize { background: var(--mint); border-color: var(--mint); color: var(--msitu); }
.btn-maize:hover, .btn-maize:focus { background: #fff; border-color: #fff; color: var(--msitu); }
/* urgent things stay red */
.topbar .topbar-help, .btn-help, .help-fab { background: var(--urgent) !important; border-color: var(--urgent) !important; color: #fff !important; }
.nav-help, .site-nav .btn-help-outline { color: var(--urgent); border-color: var(--urgent); }
/* keyboard focus: dark green outline with a light green halo */
:focus-visible { outline: 3px solid var(--msitu); box-shadow: 0 0 0 6px rgba(52, 96, 64, .28); }
.btn:focus-visible, .btn:active:focus-visible, .nav-link:focus-visible, .dropdown-item:focus-visible,
.form-check-input:focus-visible, .btn-close:focus-visible, .carousel-control-prev:focus-visible, .carousel-control-next:focus-visible {
    outline: 3px solid var(--msitu) !important; box-shadow: 0 0 0 6px rgba(52, 96, 64, .28) !important;
}

/* =========================================================
   EVENTS: Add to calendar, Get directions, Share on WhatsApp, calendar subscription,
   next big event countdown (js/event-tools.js, js/home.js)
   ========================================================= */
.evt-tools { display: flex; flex-wrap: wrap; gap: .5rem; margin: .6rem 0 .4rem; }
.evt-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; background: #fff; color: var(--green-deep);
    border: 1.5px solid rgba(var(--green-rgb), .45); border-radius: 8px; font-weight: 700; text-decoration: none; }
.evt-btn:hover { background: var(--tint); color: var(--green-deep); border-color: var(--green); }
.evt-btn.btn-sm { min-height: 40px; padding: .3rem .7rem; font-size: .92rem; }
.evt-ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.evt-wa { color: #075E54; border-color: rgba(7, 94, 84, .45); }
.evt-wa:hover { background: rgba(37, 211, 102, .1); color: #1E3324; border-color: #075E54; }
.evt-tools.on-dark .evt-btn { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .45); }
.evt-tools.on-dark .evt-btn:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.cal-sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding: 1.4rem 1.6rem;
    background: var(--stone); border: 1px solid rgba(var(--green-rgb), .25); border-left: 6px solid var(--green); border-radius: 10px; }
.cal-sub-text { flex: 1 1 22rem; }
.cal-sub-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 .25rem; color: var(--msitu-2); }
.cal-sub-text p { margin: 0; color: var(--muted); }
.cal-sub-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cal-sub-actions .btn { min-height: 44px; display: inline-flex; align-items: center; }
.cal-sub.compact { padding: 1rem 1.2rem; }
.cal-sub.compact .cal-sub-title { font-size: 1.1rem; }

.u-next { background: var(--msitu); color: #fff; padding: 1.6rem 0; }
.u-next-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; grid-template-areas: "text count" "tools tools"; gap: 1rem 2rem; align-items: center; }
.u-next-text { grid-area: text; }
.u-next-count { grid-area: count; }
.u-next-tools { grid-area: tools; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
.u-next-tools .evt-tools { margin: 0; }
.u-next-label { margin: 0 0 .2rem; color: var(--mint); font-weight: 700; }
.u-next h2 { color: #fff; font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; margin: 0 0 .3rem; }
.u-next-when { margin: 0; color: #DEE9E0; max-width: 60ch; }
.u-next-more { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; display: inline-flex; align-items: center; }
.u-next-more:hover { color: var(--mint); }
.u-next-count .countdown-grid { display: flex; gap: .6rem; }
.u-next-count .countdown-grid > div { min-width: 5.2rem; text-align: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18); border-radius: 10px; padding: .55rem .4rem; }
.u-next-count .countdown-grid span { display: block; font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.u-next-count .countdown-grid small { display: block; color: #DEE9E0; font-size: .85rem; margin-top: .2rem; }
.u-next-count .countdown-today { margin: 0; font-weight: 800; font-size: 1.5rem; }
@media (max-width: 767px) {
    .u-next-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "text" "count" "tools"; }
    .u-next-count .countdown-grid > div { flex: 1; min-width: 0; }
}

/* =========================================================
   READING TOOLS on public pages: Listen and text size (js/a11y-tools.js)
   ========================================================= */
html[data-text="large"] { font-size: 112.5%; }
html[data-text="xlarge"] { font-size: 125%; }
.rt { position: fixed; left: 1rem; bottom: 1rem; z-index: 1040; }
.rt-btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding: .4rem .95rem .4rem .75rem; border-radius: 999px;
    border: 2px solid #fff; background: var(--green); color: #fff; font-weight: 700; box-shadow: 0 6px 18px -6px rgba(30, 51, 36, .55); }
.rt-btn svg, .rt-panel svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.rt-btn:hover { background: var(--green-deep); }
.rt-btn.is-reading { background: var(--msitu); }
.rt-panel { position: absolute; left: 0; bottom: calc(100% + .5rem); width: 250px; padding: .75rem; background: #fff; color: var(--ink);
    border: 1px solid rgba(var(--green-rgb), .3); border-radius: 12px; box-shadow: 0 16px 40px -12px rgba(30, 51, 36, .4); }
.rt-panel[hidden] { display: none; }
.rt-listen, .rt-stop { display: flex; align-items: center; gap: .55rem; width: 100%; min-height: 48px; padding: .5rem .8rem; border: 0; border-radius: 8px;
    background: var(--green); color: #fff; font-weight: 700; }
.rt-listen svg, .rt-stop svg { fill: currentColor; stroke: none; }
.rt-stop { background: var(--msitu); }
.rt-label { margin: .75rem 0 .35rem; font-weight: 700; font-size: .95rem; }
.rt-note { margin: 0; font-size: .9rem; color: var(--muted); }
.rt-sizes { display: flex; border: 1px solid #CBD4CC; border-radius: 8px; overflow: hidden; }
.rt-sizes button { flex: 1; min-height: 44px; border: 0; background: #fff; color: var(--msitu); font-weight: 800; }
.rt-sizes button + button { border-left: 1px solid #CBD4CC; }
.rt-sizes [data-size=""] { font-size: .9rem; }
.rt-sizes [data-size="large"] { font-size: 1.1rem; }
.rt-sizes [data-size="xlarge"] { font-size: 1.35rem; }
.rt-sizes button[aria-pressed="true"] { background: var(--green); color: #fff; }
.rt-reading { background: rgba(var(--green-rgb), .1); outline: 3px solid rgba(var(--green-rgb), .45); outline-offset: 4px; border-radius: 4px; }
@media print { .rt { display: none !important; } }

/* =========================================================
   MONTHLY NEWSLETTER (newsletter.html and the home page band: js/newsletter.js)
   ========================================================= */
.nl-msg { margin: .9rem 0 0; padding: .7rem .9rem; border-radius: 8px; font-weight: 600; }
.nl-msg.is-ok { background: #E9F4EB; color: #114318; border-left: 4px solid var(--green); }
.nl-msg.is-error { background: #F9ECEB; color: #8F2E29; border-left: 4px solid var(--urgent); }
.nl-status { border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: 10px; padding: 1.2rem 1.4rem; margin-bottom: 2rem; background: #fff; }
.nl-status:focus { outline: none; }
.nl-status h2 { font-size: 1.35rem; margin: 0 0 .3rem; color: var(--msitu-2); }
.nl-status p { margin: 0; }
.nl-status.is-error { border-left-color: var(--urgent); }
.nl-status.is-error h2 { color: #8F2E29; }
.nl-status-actions:not(:empty) { margin-top: 1rem; }
.nl-what { background: var(--stone); border-radius: 10px; padding: 1.6rem; }
.nl-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .9rem; }
.nl-list li { padding-left: 1.1rem; border-left: 3px solid var(--green); }
.nl-list strong { display: block; color: var(--msitu-2); }

.u-news-signup { padding: 2.2rem 0; }
.nl-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 1.2rem 2.5rem; align-items: center;
    background: var(--stone); border: 1px solid #DFE9E0; border-radius: 12px; padding: 1.6rem 1.8rem; }
.nl-band h2 { font-size: 1.45rem; font-weight: 800; color: var(--msitu-2); margin: 0 0 .35rem; }
.nl-band-text p { margin: 0; color: var(--muted); }
.nl-band-row { display: flex; gap: .5rem; }
.nl-band-row .form-control { min-height: 48px; }
.nl-band-row .btn { white-space: nowrap; min-height: 48px; }
.nl-band-note { margin: .5rem 0 0; font-size: .88rem; color: var(--muted); }
@media (max-width: 767px) {
    .nl-band { grid-template-columns: 1fr; padding: 1.3rem; }
    .nl-band-row { flex-direction: column; }
}

/* =========================================================
   PUBLIC APPEAL PROGRESS (home page: js/public-appeal.js)
   ========================================================= */
.u-appeal { padding: 2rem 0 1rem; }
.pa-head { margin-bottom: 1rem; }
.pa-head p { color: var(--muted); }
.pa-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center;
    background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: 10px; padding: 1.3rem 1.5rem; margin-bottom: .8rem; }
.pa-kicker { margin: 0 0 .2rem; font-size: .88rem; font-weight: 600; color: var(--green); }
.pa-title { font-size: 1.3rem; font-weight: 800; margin: 0 0 .8rem; color: var(--ink); }
.pa-bar { height: 14px; border-radius: 99px; background: #E5ECE6; overflow: hidden; }
.pa-bar span { display: block; height: 100%; min-width: 6px; border-radius: inherit; background: linear-gradient(90deg, var(--green-deep), var(--green)); }
.pa-nums { margin: .6rem 0 .2rem; font-size: 1.02rem; }
.pa-nums strong { font-size: 1.3rem; color: var(--msitu-2); }
.pa-dot { color: var(--muted); margin: 0 .2rem; }
.pa-how { margin: 0; color: var(--muted); font-size: .94rem; }
.pa-actions { display: flex; flex-direction: column; gap: .5rem; }
@media (max-width: 767px) {
    .pa-card { grid-template-columns: 1fr; padding: 1.1rem; }
    .pa-actions { flex-direction: row; flex-wrap: wrap; }
}

/* recent events on the Events page (js/photos.js) */
.recent-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.recent-ev { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.recent-ev-photo { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--stone); }
.recent-ev-photo img { width: 100%; height: 100%; object-fit: cover; }
.recent-ev-photo span { position: absolute; left: .6rem; bottom: .6rem; background: rgba(30, 51, 36, .85); color: #fff; font-size: .82rem; font-weight: 700; padding: .2rem .55rem; border-radius: 99px; }
.recent-ev-body { padding: 1rem 1.1rem 1.2rem; border-top: 4px solid var(--green); flex: 1; }
.recent-ev.has-album .recent-ev-body { border-top: 0; }
.recent-ev-when { margin: 0 0 .2rem; font-size: .88rem; font-weight: 600; color: var(--green); }
.recent-ev h3 { font-size: 1.12rem; font-weight: 800; margin: 0 0 .5rem; }
.recent-ev p:not(.recent-ev-when) { color: var(--muted); font-size: .94rem; }

/* phones: smaller floating "Listen" button, and event/appeal buttons the same width */
@media (max-width: 575px) {
    .rt { left: .75rem; bottom: .75rem; }
    .rt-btn { width: 52px; height: 52px; padding: 0; justify-content: center; box-shadow: 0 4px 14px rgba(30, 51, 36, .3); }
    .rt-btn .rt-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
    .rt-btn svg { width: 24px; height: 24px; }
    .evt-tools { display: grid; grid-template-columns: 1fr; }
    .evt-tools .evt-btn { justify-content: center; width: 100%; }
    .pa-actions { display: grid; grid-template-columns: 1fr; }
    .pa-actions .btn { width: 100%; }
}

/* ===================== PAGE BANNER AND WELCOME SLIDE PHOTOS =====================
   Stock photos from Unsplash, kept in images/stock/ (see credits.html and tools/fetch-photos.mjs).
   To use your own photo: put it in images/ and change the address here. */
.banner-about { --banner-photo: url("../images/stock/photo-1704494785126-9fa711d245f2-1600.webp"); }
.banner-contact { --banner-photo: url("../images/stock/photo-1639390763147-31f98d795f2e-1600.webp"); }
.banner-events { --banner-photo: url("../images/stock/photo-1515657241610-a6b33f0f6c5a-1600.webp"); }
.banner-membership { --banner-photo: url("../images/stock/photo-1533659124865-d6072dc035e1-1600.webp"); }
.banner-portfolios { --banner-photo: url("../images/stock/photo-1623241461978-668ede250064-1600.webp"); }
.banner-resources { --banner-photo: url("../images/stock/photo-1655720348590-c739c860beed-1600.webp"); }
.banner-support { --banner-photo: url("../images/stock/photo-1586726370832-3440a511e479-1600.webp"); }
.banner-welfare { --banner-photo: url("../images/stock/photo-1576560665905-28b4d4ea3380-1600.webp"); }
.hero-slide-1 { --slide-photo: url("../images/banners/welcome.svg"); }    /* home slides: drawings in images/banners/ */
.hero-slide-2 { --slide-photo: url("../images/jamhuri-2026.jpg"); }        /* Jamhuri Day picture */
.hero-slide-3 { --slide-photo: url("../images/banners/welfare.svg"); }
.hero-slide-4 { --slide-photo: url("../images/banners/settling.svg"); }
.hero-slide-5 { --slide-photo: url("../images/banners/members.svg"); }


/* Acknowledgement of Country (Constitution preamble, October 2026) */
.footer-ack { margin: 2rem 0 0; padding: 1rem 1.25rem; border-left: 3px solid var(--gold, #CC9E4E);
  background: rgba(255,255,255,.04); color: #D8E3DA; font-size: .9rem; line-height: 1.55; }
.footer-ack .ack-label { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--gold, #CC9E4E); margin-bottom: .25rem; }
.ack-panel { margin-top: 1.5rem; padding: 1.1rem 1.3rem; border-left: 4px solid #CC9E4E; background: #FBF7EE;
  border-radius: 0 10px 10px 0; }
.ack-panel h3 { font-size: 1rem; margin: 0 0 .35rem; }
.ack-panel p { margin: 0; }
