/* =========================================================================================
   UMOJA NAVY (December 2026): the KENEWA theme for every public page.
   Loaded AFTER css/site.css (or css/home.css on the home page), so it wins.
   Layout after aickenya.org: coloured top bar, white sticky header, photo banners,
   dark navy four-column footer. Colours from the logo; navy leads.
     navy #1F2F63 (main)  gold #CC9E4E (accents)  red #BD4A44 (urgent help only)
     green #5C7B4A  charcoal #393B32  forest #346040 (logo band)
   Fonts: Lato, the logo's font (fonts/ folder, no outside font service).
   ========================================================================================= */

@font-face{font-family:'Lato';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/lato-latin-400-normal.woff2') format('woff2')}
@font-face{font-family:'Lato';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/lato-latin-400-italic.woff2') format('woff2')}
@font-face{font-family:'Lato';font-style:normal;font-weight:700;font-display:swap;src:url('../fonts/lato-latin-700-normal.woff2') format('woff2')}
@font-face{font-family:'Lato';font-style:normal;font-weight:900;font-display:swap;src:url('../fonts/lato-latin-900-normal.woff2') format('woff2')}

:root{
  --un-navy:#1F2F63; --un-navy-dark:#16224A; --un-navy-deep:#0F1834; --un-tint:#EEF2FB; --un-link:#2047C9;
  --un-gold:#CC9E4E; --un-gold-soft:#FBF5E9; --un-red:#BD4A44; --un-green:#5C7B4A; --un-char:#393B32;
  --un-soft:#F4F6FA; --un-text:#1F2937; --un-muted:#4B5563;
  --un-band:linear-gradient(90deg,#BD4A44 0 25%,#CC9E4E 25% 50%,#5C7B4A 50% 75%,#393B32 75% 100%);
  --un-font:'Lato',system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  --bs-body-font-family:var(--un-font);
}
html body{font-family:var(--un-font)}
body h1,body h2,body h3,body h4,body h5,body .h1,body .h2,body .h3,body .h4,body .h5{font-family:var(--un-font)}
body h1,body h2{font-weight:900;letter-spacing:-.2px}

/* ---------------- TOP BAR ---------------- */
body .u-head{position:sticky;top:0;z-index:1000;background:#fff;box-shadow:0 2px 10px rgba(0,0,0,.08);border-bottom:5px solid transparent;border-image:var(--un-band) 1}
body .u-util{background:var(--un-navy);color:#fff;border:0}
body .u-util-in{max-width:1200px;margin:0 auto;padding:8px 20px;display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;min-height:40px}
body .u-util-say{margin:0;color:#fff;font-size:14px;opacity:1;display:flex;gap:22px;flex-wrap:wrap;align-items:center}
body .u-util-say a,body .u-util-links a{color:#fff;text-decoration:none;opacity:.95;display:inline-flex;align-items:center;gap:7px}
body .u-util-say a:hover,body .u-util-links a:hover{opacity:1;text-decoration:underline}
body .u-util-say svg{width:16px;height:16px;flex:none}
body .u-util-links{display:flex;gap:18px;align-items:center;margin:0;padding:0;list-style:none;font-size:14px}
body .u-util-links .u-lang span{opacity:.5;margin:0 6px}
body .u-util-links .u-lang a[aria-current]{font-weight:700;text-decoration:underline;text-underline-offset:3px}
body .u-util .u-signin{background:#fff;color:var(--un-navy)!important;padding:3px 13px;border-radius:4px;font-weight:700;opacity:1}
body .u-util .u-signin:hover{background:var(--un-gold-soft);text-decoration:none}

/* ---------------- HEADER ---------------- */
body .u-head-in{max-width:1200px;margin:0 auto;padding:10px 20px;display:flex;align-items:center;gap:22px;background:#fff;min-height:74px}
body .u-brand{display:flex;align-items:center;gap:12px;color:var(--un-navy);text-decoration:none;margin-right:auto}
body .u-brand img{width:52px;height:52px}
body .u-brand span{font-family:var(--un-font);font-weight:700;font-size:23px;letter-spacing:3px;color:var(--un-navy)}
body .u-menu .u-links{display:flex;gap:24px;list-style:none;margin:0;padding:0;align-items:center}
body .u-menu .u-links a{font-weight:700;font-size:15px;color:#111827;text-decoration:none;padding:6px 0;border-bottom:2px solid transparent;transition:color .2s,border-color .2s}
body .u-menu .u-links a:hover{color:var(--un-link)}
body .u-menu .u-links a[aria-current]{color:var(--un-navy);border-bottom-color:var(--un-gold)}
body .u-acts{display:flex;gap:10px;list-style:none;margin:0;padding:0}
body .u-btn{font-family:var(--un-font);font-weight:700;border-radius:6px}
body .u-head .u-btn{padding:9px 18px;font-size:14px;line-height:1.2;transition:background .2s,transform .15s}
body .u-head .u-btn-help{background:#fff;color:var(--un-red);border:2px solid var(--un-red)}
body .u-head .u-btn-help:hover{background:var(--un-red);color:#fff}
body .u-head .u-btn-join{background:var(--un-navy);color:#fff;border:2px solid var(--un-navy)}
body .u-head .u-btn-join:hover{background:var(--un-navy-dark);border-color:var(--un-navy-dark);transform:translateY(-1px)}
body .u-menu-btn{font-family:var(--un-font);font-weight:700;color:var(--un-navy);border:2px solid var(--un-navy);background:#fff;border-radius:6px}

/* ---------------- PAGE BANNERS (inner pages): photo, navy veil, centred, like the AIC hero ---------------- */
body .page-hero{background:linear-gradient(rgba(15,24,52,.74),rgba(15,24,52,.74)),var(--banner-photo,none) center/cover no-repeat,var(--un-navy);
  color:#fff;text-align:center;padding:4.6rem 0 4.4rem;min-height:340px;display:flex;align-items:center}
body .page-hero::before,body .page-hero::after{display:none}
body .page-hero>.container,body .page-hero .container{max-width:860px;margin:0 auto}
body .page-hero h1{font-size:clamp(2rem,4.6vw,3rem);font-weight:900;max-width:none;margin:0 auto .8rem;color:#fff}
body .page-hero h1::after{content:"";display:block;width:64px;height:4px;border-radius:2px;background:var(--un-gold);margin:16px auto 0}
body .page-hero .hero-lead{margin:0 auto;max-width:40em;font-size:1.12rem;color:rgba(255,255,255,.94)}
body .page-hero .hero-place,body .page-hero .crumbs,body .page-hero nav[aria-label*="readcrumb"]{justify-content:center;text-align:center;color:rgba(255,255,255,.85)}
body .page-hero .hero-place{display:inline-block;font-size:13px;letter-spacing:1.5px;text-transform:uppercase;background:rgba(255,255,255,.14);padding:5px 14px;border-radius:30px;margin-bottom:16px}
body .page-hero a:not(.btn):not(.u-btn){color:#fff}
body .page-hero .d-flex,body .page-hero .hero-acts,body .page-hero .btn-row{justify-content:center}
body .page-hero .btn{border-radius:6px;font-weight:700}

/* ---------------- PAGE CONTENT ---------------- */
body main{color:var(--un-text)}
body main a:not(.btn):not(.u-btn):not(.kf-pill):not(.dept-card):not(.event-card){color:var(--un-link)}
body main h2{color:var(--un-navy)}
body main h3{color:#111827}
body .btn-primary,body .btn-navy{--bs-btn-bg:var(--un-navy);--bs-btn-border-color:var(--un-navy);--bs-btn-hover-bg:var(--un-navy-dark);--bs-btn-hover-border-color:var(--un-navy-dark);--bs-btn-active-bg:var(--un-navy-dark)}
body .btn{border-radius:6px;font-weight:700}
body .card,body .u-card{border-radius:12px}

/* ---------------- FOOTER: dark navy, four columns ----------------
   The old footer was light, so every text colour is set again here. */
html body .kf{background:var(--un-navy-deep);color:#CBD2E3;border-top:5px solid transparent;border-image:var(--un-band) 1;font-family:var(--un-font)}
html body .kf p,html body .kf address,html body .kf label,html body .kf .kf-news-say,html body .kf li{color:#CBD2E3}
html body .kf a{color:#E5E9F3;text-decoration-color:rgba(229,233,243,.45)}
html body .kf a:hover{color:#fff}
html body .kf .kf-col a{text-decoration:none;opacity:.9}
html body .kf .kf-col a:hover{opacity:1;text-decoration:underline}
html body .kf h2{color:#fff;font-size:1rem;font-weight:700;letter-spacing:.2px;text-transform:none}
html body .kf h2::after{content:"";display:block;width:32px;height:3px;background:var(--un-gold);border-radius:2px;margin-top:9px}
html body .kf .kf-help{background:transparent}
html body .kf .kf-help-in{background:#1A2550;border-left:4px solid var(--un-red);border-radius:12px}
html body .kf .kf-help-k{color:#fff;font-weight:900}
html body .kf .kf-help p{color:#DDE2EE}
html body .kf .kf-pill{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.35);color:#fff}
html body .kf .kf-pill-go{background:var(--un-red);border-color:var(--un-red);color:#fff}
html body .kf .kf-pill-go svg{color:#fff}
html body .kf .kf-logo span{color:#fff;letter-spacing:3px;font-weight:700}
html body .kf .kf-logo img{background:#fff;border-radius:50%;padding:4px}
html body .kf .kf-sign{color:var(--un-gold)}
html body .kf .kf-social a{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.35);color:#fff}
html body .kf .kf-social a:hover{background:var(--un-link);border-color:var(--un-link)}
html body .kf input[type=email]{background:#fff;color:#111827;border-radius:6px;border:1px solid #fff}
html body .kf .kf-nl-row button{background:var(--un-gold);color:#1B1B16;border-color:var(--un-gold);font-weight:700;border-radius:6px}
html body .kf .kf-nl-row button:hover{background:#B5873A}
html body .kf .nl-msg{color:#fff}
html body .kf .kf-ack,html body .kf .kf-ack span{border-top:1px solid #26325A;color:#AEB7CC}
html body .kf .kf-base,html body .kf .kf-base p{border-color:#26325A;color:#AEB7CC}
html body .kf .kf-top{color:#fff}

/* ---------------- PHONES AND TABLETS ---------------- */
@media (max-width:1060px){body .u-menu .u-links{gap:16px}body .u-menu .u-links a{font-size:14px}}
@media (max-width:760px){
  body .u-util-in{justify-content:center;text-align:center;padding:7px 14px}
  body .u-util-say{gap:14px;font-size:13px;justify-content:center}
  body .u-util-say .u-tb-hide{display:none}
  body .u-util-links{font-size:13px;gap:12px}
  body .u-head-in{min-height:64px;gap:10px;padding:8px 14px}
  body .u-brand img{width:44px;height:44px}
  body .u-brand span{font-size:20px}
  body .page-hero{min-height:260px;padding:3.2rem 0}
}

/* Older footer rules are very specific; these colours must win on the dark footer */
html body .kf .kf-col a,html body .kf .kf-col h2,html body .kf label{color:#E5E9F3!important}
html body .kf .kf-col h2{color:#fff!important}
html body .kf .kf-pill-go,html body .kf .kf-pill-go:hover{color:#fff!important}
html body .kf .kf-sign{color:var(--un-gold)!important}

/* Page banners: the photo behind a navy veil wins over the older flat gradient */
html body main .page-hero{background:linear-gradient(rgba(15,24,52,.74),rgba(15,24,52,.74)),var(--banner-photo,linear-gradient(#1F2F63,#1F2F63)) center/cover no-repeat,#1F2F63!important}
/* On a dark banner the main button is the logo's gold; elsewhere buttons stay navy */
html body .page-hero .btn-gold,html body main.kh .hero .btn-light{background:var(--un-gold)!important;border-color:var(--un-gold)!important;color:#1B1B16!important}
html body .page-hero .btn-gold:hover,html body main.kh .hero .btn-light:hover{background:#B5873A!important;border-color:#B5873A!important}
html body main .btn-gold:not(.page-hero .btn-gold){background:var(--un-navy);border-color:var(--un-navy);color:#fff}
html body .page-hero .btn-maize,html body .page-hero .btn-sun,html body .page-hero .btn--primary{background:var(--un-gold)!important;border-color:var(--un-gold)!important;color:#1B1B16!important}
html body .page-hero .btn-maize:hover,html body .page-hero .btn-sun:hover{background:#B5873A!important;border-color:#B5873A!important}
html body .u-util .u-util-links .u-signin{background:#fff!important;color:var(--un-navy)!important;padding:3px 13px;border-radius:4px;font-weight:700;text-decoration:none}

/* Main buttons on dark bands (banners, call-to-action bands) are the logo's gold.
   The older bundle reads --k-gold-on-dark for these, so set that colour here. */
html:root:root:root:root:root:root{--k-gold-on-dark:#CC9E4E;--anga-gold:#CC9E4E}
html:root:root:root:root:root:root body :is(.page-hero,.cta,.host-band,.section-green,.on-dark) :is(.btn-gold,.btn-maize,.btn--primary,.btn--gold):hover{background:#B5873A!important;border-color:#B5873A!important;color:#1B1B16!important}

/* Phones: a two-row top bar, and buttons that fit beside the menu button (Kiswahili labels are longer) */
@media (max-width:760px){
  html body .u-util .u-util-say .u-tb-hide{display:none!important}
  html body .u-util-in{row-gap:6px}
  html:root:root:root:root:root:root body:is(#un-pub,body) .u-head .u-acts{gap:6px}
  html:root:root:root:root:root:root body:is(#un-pub,body) .u-head .u-acts .u-btn{padding:7px 11px!important;font-size:13.5px!important;min-height:0!important}
  html:root:root:root:root:root:root body:is(#un-pub,body) .u-head .u-menu-btn{padding:7px 10px!important;font-size:14px!important;min-height:0!important}
}
@media (max-width:400px){
  html body .u-util-say a[href^="mailto"]{font-size:12.5px}
  html:root:root:root:root:root:root body:is(#un-pub,body) .u-head .u-acts .u-btn{padding:6px 9px!important;font-size:13px!important}
}

/* =========================================================================================
   TYPE SCALE (December 2026): one set of text sizes on every public page.
   13 tags · 14 small print and labels · 15 card and table text · 17 body · 19 lead · 22 large lead
   Buttons 16. Older themes had left 13 in-between sizes (14.08, 15.52, 17.92px...).
   The long selector start only outranks those older rules; it matches every page.
   ========================================================================================= */
:root{--t-xs:13px;--t-sm:14px;--t-md:15px;--t-body:17px;--t-lead:19px;--t-xl:22px;--t-btn:16px}
html:root:root:root:root:root:root body:is(#un-pub,body) main :is(p.fine,p.contact-note,dt,p.countdown-label,p.ym-empty,p.where,p.recent-ev-when,p.auth-foot,p.guide-num,p.note.small,small){font-size:var(--t-sm)!important}
html:root:root:root:root:root:root body:is(#un-pub,body) main :is(li>p,p.role,dd,p.portfolio-lead,.dept-card p,p.guide-note,td,th,.support p,.urgent p,.h-card p,.impact-item p,p.note,label.form-label,.fee-card li){font-size:var(--t-md)!important}
html:root:root:root:root:root:root body:is(#un-pub,body) main :is(.evt-tools .btn,.u-finder-chips button){font-size:var(--t-md)!important}
html:root:root:root:root:root:root body:is(#un-pub,body) main :is(p.section-subtitle,.ag-list li){font-size:var(--t-body)!important}
html:root:root:root:root:root:root body:is(#un-pub,body) :is(p.lead-narrow,.lead-narrow li,p.hero-lead,.hb-head p,p.feature-about){font-size:var(--t-lead)!important}
html:root:root:root:root:root:root body:is(#un-pub,body) :is(p.lead,p.mv-text){font-size:var(--t-xl)!important}
html:root:root:root:root:root:root body:is(#un-pub,body) .page-hero :is(.btn,.u-btn){font-size:var(--t-btn)!important}
html:root:root:root:root:root:root body:is(#un-pub,body) .kf :is(p,address,label,.kf-news-say){font-size:var(--t-md)!important}
html:root:root:root:root:root:root body:is(#un-pub,body) .kf :is(.kf-base p,.kf-ack span){font-size:var(--t-sm)!important}
html:root:root:root:root:root:root body:is(#un-pub,body) .kf .kf-nl-row button{font-size:var(--t-btn)!important}

/* =========================================================================================
   INNER-PAGE CONTENT (December 2026 polish): match the home page.
   ========================================================================================= */
/* Tinted bands: the home page's soft grey instead of pale blue. Set on the band only; things inside
   it (badges, chips) keep their pale blue. */
html body main :is(section,.band){--um-pale:#F4F6FA;--k-pasture:#F4F6FA;--kb-mint:#F4F6FA}
html body main :is(section,.band) *{--um-pale:#EAF0FA;--k-pasture:#EAF0FA;--kb-mint:#EAF0FA}
html body main :is(.section-soft,.hb-mist,.section--tint,.donate-band,.join-paths){background:#F4F6FA!important}
/* Cards: one radius, one border, a quiet shadow (cards that are not links do not lift) */
html:root:root:root:root body:is(#un-pub,body) main :is(article.benefit,li.nh-step,article.portfolio,div.ym,div.fact-panel,div.h-card,div.support,article.path-card,div.form-card,div.guide-msg,article.mv-card,div.card,div.pay-method-card,aside.benefit){
  border-radius:12px!important;border:1px solid #E5E7EB!important;box-shadow:0 1px 2px rgba(15,24,52,.05)!important}
html:root:root:root:root body:is(#un-pub,body) main article.path-card.path-featured{border:2px solid var(--un-navy)!important;box-shadow:0 12px 30px rgba(31,47,99,.12)!important}

/* Section titles: one size, and the home page's gold rule under them */
html:root:root:root:root body:is(#un-pub,body) main :is(section>.container>h2,.section-head>h2,section .row>[class*="col-"]>h2:first-child,.band>h2,.feature-main>h2):not(.container.prose>h2){font-size:clamp(1.75rem,3.2vw,2.4rem)!important;line-height:1.2}
html:root:root:root:root body:is(#un-pub,body) main :is(section>.container>h2,.section-head>h2,section .row>[class*="col-"]>h2:first-child,.band>h2,.feature-main>h2):not(.container.prose>h2)::after{content:"";display:block;width:56px;height:4px;border-radius:2px;background:var(--un-gold);margin-top:14px}
html:root:root:root:root body:is(#un-pub,body) main :is(.text-center>h2,.section-head.text-center>h2){text-align:center!important}
html:root:root:root:root body:is(#un-pub,body) main :is(.text-center>h2,.section-head.text-center>h2)::after{margin-left:auto;margin-right:auto}

/* Banners: darker behind the words, lighter at the edges, so the photograph shows (text contrast kept) */
html body main .page-hero{background:radial-gradient(ellipse 70% 75% at 50% 52%,rgba(15,24,52,.8) 0,rgba(15,24,52,.66) 55%,rgba(15,24,52,.38) 100%),var(--banner-photo,linear-gradient(#1F2F63,#1F2F63)) center/cover no-repeat,#1F2F63!important}

/* Phones get the 640px banner photographs (3 December 2026 speed fix). The page preloads the same file. */
@media (max-width:800px){
  html body .banner-about{--banner-photo:url("../images/stock/photo-1704494785126-9fa711d245f2-640.webp")}
  html body .banner-contact{--banner-photo:url("../images/stock/photo-1639390763147-31f98d795f2e-640.webp")}
  html body .banner-events{--banner-photo:url("../images/stock/photo-1515657241610-a6b33f0f6c5a-640.webp")}
  html body .banner-membership{--banner-photo:url("../images/stock/photo-1533659124865-d6072dc035e1-640.webp")}
  html body .banner-portfolios{--banner-photo:url("../images/stock/photo-1623241461978-668ede250064-640.webp")}
  html body .banner-resources{--banner-photo:url("../images/stock/photo-1655720348590-c739c860beed-640.webp")}
  html body .banner-welfare{--banner-photo:url("../images/stock/photo-1576560665905-28b4d4ea3380-640.webp")}
}
