/* ============================================================
   Pondo Secondary School — landing page styles
   Palette inspired by the Nyandarua highlands: pine-forest greens,
   maize gold, murram-red, pale highland mist.
   ============================================================ */
 
:root {
  --forest-deep:   #1E3327;
  --forest-mid:    #33553F;
  --forest-soft:   #4C7458;
  --mist:          #EDF0E3;
  --mist-deep:     #E2E6D3;
  --ink:           #1B2420;
  --ink-soft:      #4A554C;
  --gold:          #C9962F;
  --gold-soft:     #E4C77E;
  --clay:          #A24632;
 
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
 
  --radius-lg: 22px;
  --radius-md: 14px;
  --wrap: 1120px;
}
 
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
 
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
 
img, svg { display: block; max-width: 100%; }
 
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}
 
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest-deep);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }
 
a { color: inherit; }
 
h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--forest-deep);
  margin: 0;
  letter-spacing: -0.01em;
  line-height:50px;
}
 
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
  font-weight: 500;
}
.eyebrow1 {
  font-family: var(--font-mono);
  font-size: 0.89rem;
  //letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 5px;
  font-weight: 500;
  display:block;
  text-align:left;
  text-decoration:none;
}
.eyebrow-inverse { color: var(--gold-soft); }

ul {
  list-style-type: square;
  margin-left:-20px;
}

orangebullet {
    color: #FFA500;
    font-size: 120%;
}
 
/* ---------------- Header ---------------- */
 
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(237, 240, 227, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(30, 51, 39, 0.1);
}
 
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  position: relative;
}
 
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
 
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forest-deep);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand-mark.small { width: 28px; height: 28px; font-size: 0.65rem; margin-right: 8px; vertical-align: middle; }
 
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.45rem; color: var(--forest-deep); }
.brand-place { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); letter-spacing: 0.03em; }
 
.site-nav { display: flex; gap: 25px; }
.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
  //padding-top: 3px;
}
.site-nav a:hover { color: var(--forest-deep); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.site-nav a:hover::after { width: 100%; }
 
.nav-toggle-input { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--forest-deep);
  border-radius: 2px;
}

.adslink {border: 2px solid #AAAAAA;display:block;width:350px;}
.adslink a:hover { font-size:140%; }
 
/* ---------------- Hero ---------------- */
 
.hero {
  position: relative;
  padding-top: 84px;
  padding-bottom: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #F4F6EC 0%, var(--mist) 60%);
}
 
.hero-inner {
  position: relative;
  z-index: 2;
  padding-bottom: 120px;
  text-align: left;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
 
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.04;
  margin: 0 0 22px;
  max-width: 16ch;
}
 
.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 34px;
}
 
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }
 
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: var(--forest-deep);
  color: var(--mist);
}
.btn-primary:hover { background: var(--forest-mid); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--forest-deep);
  border: 1.5px solid rgba(30, 51, 39, 0.35);
}
.btn-ghost:hover { border-color: var(--forest-deep); transform: translateY(-1px); }
 
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  //max-width: 620px;
  border-top: 1px solid rgba(30, 51, 39, 0.15);
  padding-top: 20px;
}

.stat-strip1 {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  //max-width: 620px;
  border-top: 1px solid rgba(30, 51, 39, 0.15);
  padding-top: 20px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--forest-deep);
}
 
.hero-media { width: 100%;color:#222222; }
 
.image-placeholder {
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--mist-deep);
  border: 1.5px dashed rgba(30, 51, 39, 0.32);
  display: flex;
  flex-direction: column;
  align-items: top;
  justify-content: center;
  gap: 16px;
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: left;
  padding: 24px;
}
.placeholder-icon {
  width: 56px;
  height: 56px;
  fill: none;
  stroke: var(--forest-soft);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.placeholder-icon rect { fill: rgba(76, 116, 88, 0.08); }
.placeholder-icon circle,
.placeholder-icon path { fill: none; }
 
.ridge {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 160px;
  display: block;
  margin-top: -40px;
}
.ridge-back  { fill: #A9C0AA; }
.ridge-mid   { fill: var(--forest-soft); }
.ridge-front { fill: var(--forest-deep); }
 
/* ---------------- Section rhythm ---------------- */
 
.section { padding: 48px 0; }
.section.tint { background: var(--mist-deep); }
.section h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 26px;
}
 
/* Brief */
 
.two-col {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 64px;
  //align-items: center;
}
.col-text p { color: var(--ink-soft); font-size: 1.03rem; max-width: 54ch; }
.col-text p strong { color: var(--forest-deep); }
 
.field-art { width: 100%; height: auto; }
.field-bg { fill: #E2E6D3; }
.field-hill-1 { fill: #B9CBAE; }
.field-hill-2 { fill: var(--forest-soft); }
.field-sun { fill: var(--gold-soft); opacity: 0.9; }
.field-rows { fill: none; stroke: var(--forest-deep); opacity: 0.55; }
 
/* Details */
 
.details { background: var(--mist-deep); }
.detail-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
  border-top: 1px solid rgba(30, 51, 39, 0.15);
}
.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(30, 51, 39, 0.12);
}
.detail-row dt {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  text-transform: uppercase;
  flex: none;
  padding-top: 2px;
}
.detail-row dd {
  margin: 0;
  font-weight: 500;
  color: var(--forest-deep);
  text-align: right;
}
 
/* Programme */
 
.programme {
  background: var(--forest-deep);
  color: var(--mist);
}
.programme h2 { color: var(--mist); }
.programme-lede {
  max-width: 60ch;
  color: rgba(237, 240, 227, 0.82);
  font-size: 1.05rem;
  margin-bottom: 44px;
}
.programme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.programme-card {
  background: rgba(237, 240, 227, 0.06);
  border: 1px solid rgba(237, 240, 227, 0.15);
  border-radius: var(--radius-md);
  padding: 26px;
}
.programme-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.programme-card p { margin: 0; color: rgba(237, 240, 227, 0.85); font-size: 0.98rem; }
 
/* Contacts */
 
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.contact-card {
  background: #fff;
  border: 1px solid rgba(30, 51, 39, 0.1);
  border-radius: var(--radius-md);
  padding: 24px;
}
.contact-card h3 {
  font-size: 0.98rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--forest-deep);
  margin-bottom: 10px;
}
.contact-card p { margin: 0; color: var(--ink-soft); font-size: 0.95rem; }
.contact-card a { color: var(--clay); text-decoration: none; font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }
 
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .contact-grid { grid-template-columns: 1fr; }
}
 
/* Map */
 
.map-caption { color: var(--ink-soft); margin-bottom: 26px; }
.map-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(30, 51, 39, 0.15);
  box-shadow: 0 20px 50px -30px rgba(30, 51, 39, 0.45);
}
.map-frame iframe {
  width: 100%;
  height: 440px;
  border: 0;
  display: block;
  filter: grayscale(0.15) saturate(1.05);
}
 
/* Footer */
 
.site-footer {
  background: var(--forest-deep);
  color: rgba(237, 240, 227, 0.75);
  padding: 30px 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner a { text-decoration: none; color: rgba(237, 240, 227, 0.75); }
.footer-inner a:hover { color: #fff; }
 
/* ---------------- Responsive ---------------- */
 
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .col-art { order: -1; max-width: 320px; //margin: 0 auto; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-media { max-width: 340px; //margin: 0 auto; vertical-align:top; }
  .programme-grid { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .stat-strip1 { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
}
 
@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--mist);
    flex-direction: column;
    gap: 0;
    padding: 8px 28px 18px;
    border-bottom: 1px solid rgba(30, 51, 39, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav a { padding: 10px 0; }
  .nav-toggle { display: flex; }
  .nav-toggle-input:checked ~ .site-nav { max-height: 320px; }
  .hero-inner { padding-bottom: 90px; }
}
 
@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { padding-top: 74px; }
}
 
/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
 
/* Focus visibility */
a:focus-visible, .btn:focus-visible, .nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* servicecloud */
    .tag-widget {
        //max-width: 700px;
        margin: auto;
        //padding: 30px;
        //background: #ffffff;
        //border-radius: 20px;
        //box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
    }

    .tag-widget h2 {
        margin: 0 0 8px;
        font-size: 24px;
        color: #222;
        text-align: center;
    }

    .tag-widget p {
        margin: 0 0 25px;
        text-align: center;
        color: #111;
        font-size: 14px;
    }

    .tag-cloud {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 5px;
    }

    .tag {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 12px 12px;
        border-radius: 10px;
        background: #f1f3f8;
        color: #333;
        font-weight: 500;
        text-decoration: none;
        transition: all 0.3s ease;
        border: 1px solid transparent;
        max-width: 500px;
        //min-width: 150px;
        margin:5px;
        text-transform: capitalize;
        line-height:21px;
    }

    .tag:nth-child(1) {
        font-size: 17px;
        background: #e8f0ff;
        color: #2563eb;
    }

    .tag:nth-child(2) {
        font-size: 18px;
        background: #fff0e6;
        color: #ea580c;
    }

    .tag:nth-child(3) {
        font-size: 17px;
        background: #eafaf1;
        color: #16a34a;
    }

    .tag:nth-child(4) {
        font-size: 18px;
        background: #f5edff;
        color: #7c3aed;
    }

    .tag:nth-child(5) {
        font-size: 17px;
        background: #fff7d6;
        color: #ca8a04;
    }
    
    .tag:nth-child(6) {
        font-size: 18px;
        background: #eafaf1;
        color: #ca8a04;
    }

    .tag:nth-child(7) {
        font-size: 17px;
        background: #fff0e6;
        color: #ca8a04;
    }
    
    .tag:nth-child(8) {
        font-size: 17px;
        background: #e8f0ff;
        color: #2563eb;
    }

    .tag:nth-child(9) {
        font-size: 18px;
        background: #fff0e6;
        color: #ea580c;
    }

    .tag:nth-child(10) {
        font-size: 17px;
        background: #eafaf1;
        color: #16a34a;
    }

    .tag:nth-child(11) {
        font-size: 18px;
        background: #f5edff;
        color: #7c3aed;
    }

    .tag:nth-child(12) {
        font-size: 17px;
        background: #fff7d6;
        color: #ca8a04;
    }
    
    .tag:nth-child(13) {
        font-size: 18px;
        background: #eafaf1;
        color: #ca8a04;
    }

    .tag:nth-child(14) {
        font-size: 17px;
        background: #fff0e6;
        color: #ca8a04;
    }
    
    .tag:nth-child(15) {
        font-size: 17px;
        background: #e8f0ff;
        color: #ca8a04;
    }
    
    .tag:nth-child(16) {
        font-size: 17px;
        background: #fff7d6;
        color: #ca8a04;
    }

    .tag:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        background: #222;
        color: #fff;
    }

    @media (max-width: 600px) {
        body {
            padding: 20px;
        }

        .tag-widget {
            padding: 22px;
        }

        .tag {
            padding: 10px 16px;
        }

        .tag:nth-child(1) {
            font-size: 21px;
        }

        .tag:nth-child(2),
        .tag:nth-child(3),
        .tag:nth-child(4),
        .tag:nth-child(5) {
            font-size: 17px;
        }
    }
    
/* THE OTHER STYLESHEET */
:root {
  --forest-deep:   #1E3327;
  --forest-mid:    #33553F;
  --forest-soft:   #4C7458;
  --mist:          #EDF0E3;
  --mist-deep:     #E2E6D3;
  --ink:           #1B2420;
  --ink-soft:      #4A554C;
  --gold:          #C9962F;
  --gold-soft:     #E4C77E;
  --clay:          #A24632;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-lg: 22px;
  --radius-md: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest-deep);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--forest-deep);
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
  font-weight: 500;
}
.eyebrow-inverse { color: var(--gold-soft); }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(237, 240, 227, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(30, 51, 39, 0.1);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  position: relative;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--forest-deep); color: var(--mist);
  font-family: var(--font-mono); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.02em;
  display: flex; align-items: center; justify-content: center; flex: none;
}
.brand-mark.small { width: 28px; height: 28px; font-size: 0.65rem; margin-right: 8px; vertical-align: middle; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--forest-deep); }
.brand-place { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); letter-spacing: 0.03em; }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
  position: relative; padding-bottom: 3px;
}
.site-nav a:hover { color: var(--forest-deep); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--gold); transition: width 0.2s ease;
}
.site-nav a:hover::after { width: 100%; }

.nav-toggle-input { display: none; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--forest-deep); border-radius: 2px; }

/* ---------------- Hero ---------------- */

.hero {
  position: relative; padding-top: 84px; padding-bottom: 0; overflow: hidden;
  background: linear-gradient(180deg, #F4F6EC 0%, var(--mist) 60%);
}
.hero-inner { position: relative; z-index: 2; padding-bottom: 120px; text-align: left; }
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 600; line-height: 1.02;
  margin: 0 0 22px; max-width: 16ch;
}
.hero-lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; margin: 0 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; border-radius: 999px;
  text-decoration: none; font-weight: 600; font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: none; cursor: pointer;
}
.btn-primary { background: var(--forest-deep); color: var(--mist); }
.btn-primary:hover { background: var(--forest-mid); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--forest-deep); border: 1.5px solid rgba(30, 51, 39, 0.35); }
.btn-ghost:hover { border-color: var(--forest-deep); transform: translateY(-1px); }

.stat-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0;
  //max-width: 640px; border-top: 1px solid rgba(30, 51, 39, 0.15); padding-top: 20px;
}

.stat-strip1 {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; margin: 0;
  //max-width: 640px; border-top: 1px solid rgba(30, 51, 39, 0.15); padding-top: 20px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat dt { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.stat dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--forest-deep); }

.ridge { position: relative; z-index: 1; width: 100%; height: 160px; display: block; margin-top: -40px; }
.ridge-back  { fill: #A9C0AA; }
.ridge-mid   { fill: var(--forest-soft); }
.ridge-front { fill: var(--forest-deep); }

/* ---------------- Section rhythm ---------------- */

.section { padding:30px 0; }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 600; margin-bottom: 16px; }
.section-lede { color: var(--ink-soft); max-width: 62ch; font-size: 1.03rem; margin: 0 0 40px; }

/* Brief / overview */
.two-col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; //align-items: center; }
.col-text p { color: var(--ink-soft); font-size: 1.03rem; max-width: 54ch; }
.col-text p strong { color: var(--forest-deep); }
.field-art { width: 100%; height: auto; }
.field-bg { fill: #E2E6D3; }
.field-hill-1 { fill: #B9CBAE; }
.field-hill-2 { fill: var(--forest-soft); }
.field-sun { fill: var(--gold-soft); opacity: 0.9; }
.field-rows { fill: none; stroke: var(--forest-deep); opacity: 0.55; }

/* ---------------- County subsections (Education / Health) ---------------- */

.county-section.light   { background: var(--mist); }
.county-section.tint    { background: var(--mist-deep); }
.county-section.dark    { background: var(--forest-deep); color: var(--mist); }
.county-section.dark h2, .county-section.dark h3, .county-section.dark h4 { color: var(--mist); }
.county-section.dark .section-lede { color: rgba(237, 240, 227, 0.82); }
.county-section.dark .stat-card { background: rgba(237, 240, 227, 0.06); border-color: rgba(237, 240, 227, 0.15); }
.county-section.dark .stat-card dt { color: rgba(237, 240, 227, 0.65); }
.county-section.dark .stat-card dd { color: var(--mist); }
.county-section.dark .post-card { background: rgba(237, 240, 227, 0.06); border-color: rgba(237, 240, 227, 0.15); }
.county-section.dark .post-date { color: var(--gold-soft); }
.county-section.dark .post-card p { color: rgba(237, 240, 227, 0.8); }
.county-section.dark .data-note { color: rgba(237, 240, 227, 0.55); }

.subsection-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.subsection-num {
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--gold); letter-spacing: 0.05em;
}

.subblock { margin-top: 5px; }
.subblock:first-of-type { margin-top: 0; }
.subblock-title {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); margin: 0 0 18px; display: flex; align-items: center; gap: 10px;
}
.county-section.dark .subblock-title { color: rgba(237, 240, 227, 0.65); }
.subblock-title::before {
  content: ""; width: 18px; height: 1px; background: var(--gold); display: inline-block;
}

/* Stats */
.stat-cards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat-card {
  background: #fff; border: 1px solid rgba(30, 51, 39, 0.1); border-radius: var(--radius-md);
  padding: 20px 18px;
  text-decoration:none;
}
.stat-card dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.stat-card dd { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--forest-deep); }
.data-note { font-size: 0.8rem; color: var(--ink-soft); opacity: 0.75; margin: 12px 2px 0; font-style: italic; }

/* Featured institution card */
.featured-card {
  display: flex; align-items: center; gap: 20px; background: #fff; border: 1px solid rgba(30, 51, 39, 0.1);
  border-radius: var(--radius-md); padding: 22px 24px; text-decoration: none; margin-top: 4px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.featured-card:hover { border-color: var(--gold); transform: translateY(-1px); }
.featured-card .brand-mark { background: var(--gold); color: var(--forest-deep); }
.featured-card-text h4 { font-size: 1.05rem; margin-bottom: 4px; }
.featured-card-text p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.featured-card-arrow { margin-left: auto; font-family: var(--font-mono); color: var(--gold); flex: none; }

/* Split two-column: Featured institutions / Latest News */
.split-cols {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start;
}
.split-col-title {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px;
}
.split-col-title h3 { font-size: 1.15rem; }
.live-badge {
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--forest-soft); border: 1px solid rgba(30, 51, 39, 0.2); border-radius: 999px;
  padding: 4px 10px; display: inline-flex; align-items: center; gap: 6px;
}
.live-badge::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--forest-soft); display: inline-block;
}

.featured-list { display: flex; flex-direction: column; gap: 14px; }
.featured-card.placeholder {
  border: 1.5px dashed rgba(30, 51, 39, 0.28); background: transparent; color: var(--ink-soft);
}
.featured-card.placeholder .featured-card-text h4 { color: var(--ink-soft); font-weight: 500; }
.featured-card.placeholder:hover { border-color: var(--gold); }
.featured-card.placeholder .brand-mark {
  background: transparent; border: 1.5px dashed rgba(30, 51, 39, 0.35); color: var(--ink-soft);
}

.news-list { display: flex; flex-direction: column; gap: 4px; }
.news-item {
  padding: 16px 0; border-bottom: 1px solid rgba(30, 51, 39, 0.12);
}
.news-item:last-child { border-bottom: none; }
.news-date {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--clay); margin: 0 0 6px;
}
.news-item h4 { font-size: 0.98rem; line-height: 1.35; font-weight: 500; }
.news-item h4 a { text-decoration: none; }
.news-item h4 a:hover { color: var(--clay); }
.news-loading { color: var(--ink-soft); font-size: 0.92rem; font-style: italic; padding: 8px 0; }
.news-fallback { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.6; }
.news-fallback a { color: var(--forest-deep); font-weight: 500; }
.news-fallback a:hover { color: var(--clay); }
.news-source-note {
  font-size: 0.78rem; color: var(--ink-soft); opacity: 0.7; margin-top: 16px; font-style: italic;
}

/* Blog / news post list */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card {
  background: #fff; border: 1px solid rgba(30, 51, 39, 0.1); border-radius: var(--radius-md);
  padding: 22px; display: flex; flex-direction: column; gap: 8px;
}
.post-date { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--clay); margin: 0; }
.post-card h4 { font-size: 1.02rem; line-height: 1.3; }
.post-card h4 a { text-decoration: none; }
.post-card h4 a:hover { color: var(--clay); }
.post-card p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; flex-grow: 1; }
.post-more {
  font-family: var(--font-mono); font-size: 0.78rem; text-decoration: none; color: var(--forest-deep);
  font-weight: 500; margin-top: 4px;
}
.post-more:hover { color: var(--clay); }

/* ---------------- Footer ---------------- */

.site-footer { background: var(--forest-deep); color: rgba(237, 240, 227, 0.75); padding: 30px 0; font-size: 0.9rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-inner a { text-decoration: none; color: rgba(237, 240, 227, 0.75); }
.footer-inner a:hover { color: #fff; }

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .post-list { grid-template-columns: 1fr; }
  .split-cols { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .col-art { order: -1; max-width: 320px; margin: 0 auto; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .stat-strip1 { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
}
@media (max-width: 760px) {
  .site-nav {
    position: absolute; top: 100%; left: 0; right: 0; background: var(--mist);
    flex-direction: column; gap: 0; padding: 8px 28px 18px; border-bottom: 1px solid rgba(30, 51, 39, 0.1);
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
  }
  .site-nav a { padding: 10px 0; }
  .nav-toggle { display: flex; }
  .nav-toggle-input:checked ~ .site-nav { max-height: 360px; }
  .hero-inner { padding-bottom: 90px; }
  .featured-card { flex-wrap: wrap; }
  .featured-card-arrow { margin-left: 0; }
}
@media (max-width: 560px) {
  .stat-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { padding-top: 74px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

a:focus-visible, .btn:focus-visible, .nav-toggle:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px;
}

/* SEARCH BOX */
*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

bbbody{
    font-family:Arial, Helvetica, sans-serif;
    background:linear-gradient(135deg,#eef2f7,#d7e6f8);
    height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
}

/* Wrapper */
.search-wrapper{
    width:100%;
    display:flex;
    justify-content:center;
    padding:20px;
}

/* Search Box */
.search-box{
    width:100%;
    max-width:700px;
    display:flex;
    align-items:center;
    background:#fff;
    border-radius:60px;
    padding:8px;
    box-shadow:0 12px 30px rgba(0,0,0,0.12);
    transition:.3s ease;
}

.search-box:hover{
    box-shadow:0 18px 40px rgba(0,0,0,0.18);
}

.search-box:focus-within{
    box-shadow:0 0 0 4px rgba(13,110,253,.2),
               0 18px 40px rgba(0,0,0,.15);
}

/* Icon */
.search-box i{
    color:#888;
    font-size:20px;
    margin-left:20px;
}

/* Input */
.search-box input{
    flex:1;
    border:none;
    outline:none;
    padding:16px 18px;
    font-size:17px;
    background:transparent;
}

/* Button */
.search-box button{
    border:none;
    background:#0d6efd;
    color:#fff;
    padding:14px 28px;
    border-radius:50px;
    font-size:16px;
    cursor:pointer;
    transition:.3s;
}

.search-box button:hover{
    background:#0b5ed7;
    transform:translateY(-2px);
}

/* Mobile */
@media (max-width:600px){

    .search-box{
        border-radius:18px;
    }

    .search-box button{
        padding:14px 18px;
    }

    .search-box input{
        font-size:15px;
    }
}
/* loading more */
.grid-list {
    display: grid;
    //grid-template-columns: 1fr 1fr 1fr;
    grid-template-columns: repeat(4, 1fr);
    //grid-template-columns: repeat(auto-fit, minmax(200px, 1fr 1fr 1fr));
    gap: 20px;
}

.grid-item {
    display: inline-block;
    padding: 20px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 8px;
    text-decoration: none;
    color: #333;
    transition: 0.3s;
}

.grid-item:hover {
    background: #fff;
    border-color: #007bff;
    transform: translateY(-3px);
}

.grid-item h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.grid-item p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Hide items after the first 8 */
.grid-item:nth-child(n+9) {
    display: none;
}

.load-more-wrapper {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    padding: 11px 30px;
    border: none;
    border-radius: 6px;
    background: #007bff;
    color: white;
    font-size: 15px;
    cursor: pointer;
    transition: 0.3s;
}

.load-more-btn:hover {
    background: #0056b3;
}

/* Tablet */
@media (max-width: 992px) {
    .grid-listx {
        grid-template-columns: repeat(3, 1fr);
    }
} 

/* Mobile */
@media (max-width: 600px) {
    .grid-listx {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ============================================================
   Kenya db
   ============================================================ */

:root {
  --forest-deep:   #1E3327;
  --forest-mid:    #33553F;
  --forest-soft:   #4C7458;
  --mist:          #EDF0E3;
  --mist-deep:     #E2E6D3;
  --ink:           #1B2420;
  --ink-soft:      #4A554C;
  --gold:          #C9962F;
  --gold-soft:     #E4C77E;
  --clay:          #A24632;
  --label-orange:  #E0792E;
  --label-orange-deep: #B85A1D;

  /* regional palette (eight former provinces) */
  --prov-nairobi:      #C9962F;
  --prov-central:      #1E3327;
  --prov-coast:        #2F6E73;
  --prov-eastern:      #A24632;
  --prov-northeastern: #C98A3E;
  --prov-nyanza:       #3D6E8C;
  --prov-riftvalley:   #4C7458;
  --prov-western:      #8A9A4E;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Work Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-lg: 22px;
  --radius-md: 14px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--forest-deep);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--forest-deep);
  margin: 0;
  letter-spacing: -0.01em;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 1.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 12px;
  font-weight: 500;
}
.eyebrow-inverse { color: var(--gold-soft); }

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(237, 240, 227, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(30, 51, 39, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--forest-deep);
  color: var(--mist);
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.brand-mark.small { width: 28px; height: 28px; font-size: 0.65rem; margin-right: 8px; vertical-align: middle; }

.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-name2 { font-family: var(--font-display); font-weight: 600; font-size: 2.05rem; color: var(--forest-deep); }
.brand-place { font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); letter-spacing: 0.03em; }

.site-nav { display: flex; gap: 28px; }
.site-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding-bottom: 3px;
}
.site-nav a:hover { color: var(--forest-deep); }
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.2s ease;
}
.site-nav a:hover::after { width: 100%; }

.nav-toggle-input { display: none; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--forest-deep);
  border-radius: 2px;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  padding-top: 84px;
  padding-bottom: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #F4F6EC 0%, var(--mist) 60%);
}

.hero-inner { position: relative; z-index: 2; padding-bottom: 120px; text-align: left; }

.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  font-weight: 600;
  line-height: 1.02;
  margin: 0 0 22px;
  max-width: 16ch;
}

.hero-lede {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 34px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 56px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: none;
  cursor: pointer;
}
.btn-primary {
  background: var(--forest-deep);
  color: var(--mist);
}
.btn-primary:hover { background: var(--forest-mid); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--forest-deep);
  border: 1.5px solid rgba(30, 51, 39, 0.35);
}
.btn-ghost:hover { border-color: var(--forest-deep); transform: translateY(-1px); }

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  max-width: 640px;
  border-top: 1px solid rgba(30, 51, 39, 0.15);
  padding-top: 20px;
}
.stat { display: flex; flex-direction: column; gap: 6px; }
.stat dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stat dd {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--forest-deep);
}

.ridge {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 160px;
  display: block;
  margin-top: -40px;
}
.ridge-back  { fill: #A9C0AA; }
.ridge-mid   { fill: var(--forest-soft); }
.ridge-front { fill: var(--forest-deep); }

/* ---------------- Section rhythm ---------------- */

.section { padding: 88px 0; }
.section h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 600;
  margin-bottom: 16px;
}
.section-lede {
  color: var(--ink-soft);
  max-width: 62ch;
  font-size: 1.03rem;
  margin: 0 0 40px;
}

/* ---------------- Map section ---------------- */

.map-section { background: var(--mist); }

.map-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.map-hint {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
  background: var(--mist-deep);
  border: 1px solid rgba(30, 51, 39, 0.12);
  border-radius: 999px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.map-hint svg { width: 14px; height: 14px; flex: none; }

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 30px;
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
  flex: none;
}
.province-nairobi      { fill: var(--prov-nairobi); background: var(--prov-nairobi); }
.province-central      { fill: var(--prov-central); background: var(--prov-central); }
.province-coast        { fill: var(--prov-coast); background: var(--prov-coast); }
.province-eastern      { fill: var(--prov-eastern); background: var(--prov-eastern); }
.province-northeastern { fill: var(--prov-northeastern); background: var(--prov-northeastern); }
.province-nyanza       { fill: var(--prov-nyanza); background: var(--prov-nyanza); }
.province-riftvalley   { fill: var(--prov-riftvalley); background: var(--prov-riftvalley); }
.province-western      { fill: var(--prov-western); background: var(--prov-western); }

.map-frame-wrap {
  //background: #fff;
  //border: 1px solid rgba(30, 51, 39, 0.1);
  border-radius: var(--radius-lg);
  padding: 2px;
  //box-shadow: 0 24px 60px -36px rgba(30, 51, 39, 0.45);
}

.map-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.map-canvas {
  min-width: 640px;
  max-width: 860px;
  margin: 0 auto;
}

.kenya-map { width: 100%; height: auto; }

.kenya-map .county {
  stroke: rgba(237, 240, 227, 0.9);
  stroke-width: 1.1;
  transition: filter 0.15s ease, stroke-width 0.15s ease;
  cursor: pointer;
  outline: none;
}
.kenya-map .county path { transition: filter 0.15s ease; }
.kenya-map .county:hover,
.kenya-map .county:focus-visible {
  filter: brightness(1.16) saturate(1.05);
  stroke: var(--gold);
  stroke-width: 2;
}
.kenya-map .county:focus-visible { outline: none; }

.kenya-map .county-labels text,
.kenya-map .margin-callouts text {
  font-family: var(--font-mono);
  fill: var(--label-orange);
  paint-order: stroke;
  stroke: rgba(237, 240, 227, 0.9);
  stroke-width: 3px;
  stroke-linejoin: round;
  pointer-events: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.kenya-map .county-label-link { cursor: pointer; }
.kenya-map .county-label-link:hover text,
.kenya-map .county-label-link:focus-visible text {
  fill: var(--label-orange-deep);
}

/* Callouts for the five counties too small to label in place:
   a dot on their true location, an arrow pointing to it, and the
   name set outside the country outline in the map's side margin. */
.kenya-map .margin-callouts .callout-line {
  stroke: var(--label-orange);
  stroke-width: 1.3;
  opacity: 0.85;
  fill: none;
}
.kenya-map .margin-callouts .callout-dot {
  fill: var(--label-orange);
  stroke: #fff;
  stroke-width: 0.6;
}
.kenya-map .margin-callouts .margin-label text {
  font-weight: 600;
}
.kenya-map .margin-callouts .margin-label:hover text,
.kenya-map .margin-callouts .margin-label:focus-visible text {
  fill: var(--label-orange-deep);
}

.map-caption {
  color: var(--ink-soft);
  font-size: 0.86rem;
  margin: 18px 4px 0;
  max-width: 60ch;
}

/* ---------------- Region list ---------------- */

.regions { background: var(--mist-deep); }

.region-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px 28px;
}

.region-group h3 {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--forest-deep);
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(30, 51, 39, 0.15);
}
.region-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-left: auto;
}

.region-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.region-group a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.region-group a::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.region-group a:hover { color: var(--clay); text-decoration: underline; }

/* ---------------- About / devolution callout ---------------- */

.about {
  background: var(--forest-deep);
  color: var(--mist);
}
.about h2 { color: var(--mist); }
.about-lede {
  max-width: 62ch;
  color: rgba(237, 240, 227, 0.82);
  font-size: 1.05rem;
  margin-bottom: 44px;
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.about-card {
  background: rgba(237, 240, 227, 0.06);
  border: 1px solid rgba(237, 240, 227, 0.15);
  border-radius: var(--radius-md);
  padding: 26px;
}
.about-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 14px;
}
.about-card p { margin: 0; color: rgba(237, 240, 227, 0.85); font-size: 0.98rem; }

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--forest-deep);
  color: rgba(237, 240, 227, 0.75);
  padding: 30px 0;
  font-size: 0.9rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-inner a { text-decoration: none; color: rgba(237, 240, 227, 0.75); }
.footer-inner a:hover { color: #fff; }

/* ---------------- Responsive ---------------- */

@media (max-width: 900px) {
  .region-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .map-canvas { min-width: 520px; }
}

@media (max-width: 760px) {
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--mist);
    flex-direction: column;
    gap: 0;
    padding: 8px 28px 18px;
    border-bottom: 1px solid rgba(30, 51, 39, 0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .site-nav a { padding: 10px 0; }
  .nav-toggle { display: flex; }
  .nav-toggle-input:checked ~ .site-nav { max-height: 360px; }
  .hero-inner { padding-bottom: 90px; }
  .region-grid { grid-template-columns: 1fr; }
  .map-frame-wrap { padding: 16px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .section { padding: 64px 0; }
  .hero { padding-top: 74px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* Focus visibility */
a:focus-visible, .btn:focus-visible, .nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.two-col { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: center; }
.col-text p { color: var(--ink-soft); font-size: 1.03rem; max-width: 54ch; }
.col-text p strong { color: var(--forest-deep); }