/* Kenya's independently authored decision guide follows the shared home UI. */
.ke-home {
  --ink: var(--af-home-ink, #10283b);
  --muted: #4e6373;
  --line: #d8e2eb;
  --navy: var(--af-home-navy, #092338);
  --blue: var(--af-home-blue, #075fcb);
  --soft: #f3f7fb;
  --mint: #eaf4ed;
  --warm: #fff7e5;
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
  padding: 1.4rem 0 5rem;
  color: var(--ink);
  font: 400 1rem/1.64 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.ke-home * { box-sizing: border-box; min-width: 0; }
.ke-home h1, .ke-home h2, .ke-home h3, .ke-home p { margin-top: 0; }
.ke-home h1, .ke-home h2 { font-weight: 800; line-height: 1.12; letter-spacing: -.035em; }
.ke-home h2 { max-width: 870px; margin: 0 0 .8rem; font-size: clamp(1.75rem, 3vw, 2.65rem); }
.ke-home h3 { margin: 0 0 .55rem; font-size: 1.2rem; line-height: 1.27; }
.ke-home a { color: #0753a7; overflow-wrap: anywhere; text-underline-offset: .18em; }
.ke-home a:focus-visible, .ke-home summary:focus-visible, .ke-home [tabindex="0"]:focus-visible { outline: 3px solid #c97820; outline-offset: 3px; }
.kh-kicker { margin: 0 0 .65rem!important; color: #245d83; font-size: .76rem; font-weight: 800; letter-spacing: .12em; line-height: 1.4!important; text-transform: uppercase; }

.kh-story-intro { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(220px, .5fr); align-items: end; gap: clamp(18px, 4vw, 48px); margin: 0 0 1.4rem; padding: clamp(22px, 3.6vw, 40px); border-top: 4px solid var(--blue); background: var(--soft); }
.kh-story-intro h1 { max-width: 18ch; margin: .15rem 0 .9rem; font-size: clamp(2.1rem, 4vw, 3.6rem); line-height: 1.08; }
.kh-story-intro div > p:last-child { max-width: 66ch; margin: 0; color: #405a6a; line-height: 1.55; }
.kh-story-intro__note { margin: 0; padding: 14px 16px; border-left: 3px solid #d1a848; background: #fff; color: #405a6a; font-size: .82rem; line-height: 1.5; }
.kh-map { display: flex; flex-wrap: wrap; gap: .45rem; margin: 1.25rem 0 3.2rem; }
.kh-map a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .7rem; border: 1px solid #ccd9e6; border-radius: 4px; background: #fff; color: #1c3950; font-size: .84rem; font-weight: 700; text-decoration: none; }
.kh-map a:hover { background: var(--soft); }

.kh-scene { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(1.3rem, 4vw, 3rem); margin: 0 0 clamp(3.8rem, 7vw, 6rem); padding: 1rem; border: 1px solid var(--line); background: var(--soft); }
.kh-art { display: block; margin: 0; padding: 0; }
.kh-art a { display: block; }
.kh-art img { display: block; width: 100%; height: auto; border-radius: 3px; }
.kh-art figcaption { max-width: none; margin: .6rem .15rem 0; color: var(--muted); font-size: .76rem; line-height: 1.45; }
.kh-scene-copy { padding: 1rem; }
.kh-scene-copy p:not(.kh-kicker) { color: var(--muted); }
.kh-scene-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.kh-scene-links a { display: inline-flex; align-items: center; min-height: 44px; padding: .45rem .7rem; border: 1px solid #bdd1e5; border-radius: 4px; background: #fff; color: #123e63; font-size: .81rem; font-weight: 700; text-decoration: none; }

.kh-section { margin: 0 0 clamp(3.8rem, 7vw, 6rem); scroll-margin-top: 1.25rem; }
.kh-heading { max-width: 940px; margin-bottom: 1.5rem; }
.kh-heading > p:last-child { color: var(--muted); }
.kh-path-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.kh-path-grid article { display: flex; flex-direction: column; padding: 1.4rem; border: 1px solid var(--line); border-radius: 5px; background: #fff; }
.kh-path-grid article:nth-child(3n + 1) { border-top: 3px solid var(--blue); }
.kh-path-grid article:nth-child(3n + 2) { border-top: 3px solid #c69c41; }
.kh-path-grid article:nth-child(3n) { border-top: 3px solid #548177; }
.kh-path-grid article:last-child { grid-column: 1/-1; }
.kh-path-grid article p:not(.kh-path-num) { color: var(--muted); }
.kh-path-num { margin: 0 0 .6rem!important; color: #245d83; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.kh-path-links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .8rem; }
.kh-path-links a { display: inline-flex; align-items: center; justify-content: space-between; gap: .45rem; min-height: 44px; padding: .44rem .72rem; border: 1px solid #bcd0d7; border-radius: 4px; background: #fff; color: #16405a; font-size: .87rem; font-weight: 740; text-decoration: none; }
.kh-path-links a:hover { background: var(--mint); }

.kh-table-wrap { max-width: 100%; border: 1px solid var(--line); border-radius: 4px; background: #fff; }
.ke-home table { width: 100%; border-collapse: collapse; table-layout: fixed; text-align: left; }
.ke-home caption { padding: .95rem 1.05rem; background: var(--navy); color: #fff; text-align: left; font-size: .91rem; font-weight: 750; }
.ke-home th, .ke-home td { padding: .85rem .92rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.ke-home thead th { background: #eaf2f5; color: #193b4a; font-size: .86rem; }
.ke-home tbody th { width: 24%; font-weight: 760; }
.ke-home tbody tr:nth-child(even) { background: #f8faf9; }
.ke-home tbody tr:last-child th, .ke-home tbody tr:last-child td { border-bottom: 0; }
.kh-cash { padding: clamp(1.1rem, 3vw, 2.4rem); border-radius: 7px; background: var(--warm); }
.kh-cash-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .7rem; margin: 1rem 0; }
.kh-cash-grid div { padding: 1.1rem; border: 1px solid #e7d8b8; background: #fff; }
.kh-cash-grid strong, .kh-cash-grid span { display: block; }
.kh-cash-grid strong { font: 500 clamp(1.25rem, 2.2vw, 1.75rem)/1.2 Georgia, serif; }
.kh-cash-grid span { margin-top: .45rem; color: var(--muted); font-size: .86rem; }
.kh-cash > p:last-child { margin: 1rem 0 0; color: #564533; }
.kh-trust { margin: 1.2rem 0 0; padding: 1.2rem; background: var(--navy); color: #fff; }
.kh-trust a { color: #d9efff; }
.kh-faq { max-width: 940px; }
.kh-faq details { padding: .8rem .2rem; border-top: 1px solid var(--line); }
.kh-faq details:last-child { border-bottom: 1px solid var(--line); }
.kh-faq summary { min-height: 44px; padding: .45rem 0; cursor: pointer; font-weight: 750; }
.kh-faq details p { margin: .7rem 0 .25rem; color: var(--muted); }
.kh-close { padding: 1.3rem; border-left: 5px solid #28745e; border-radius: 3px; background: var(--mint); }

@media (max-width: 920px) { .kh-scene { grid-template-columns: 1fr; } .kh-scene-copy { padding: .5rem; } }
@media (max-width: 850px) { .kh-path-grid { grid-template-columns: 1fr; } .kh-path-grid article:last-child { grid-column: auto; } }
@media (max-width: 750px) { .kh-story-intro { grid-template-columns: 1fr; } .kh-story-intro__note { max-width: 65ch; } }
@media (max-width: 680px) {
  .ke-home { width: min(100% - 20px, 1120px); padding-top: .7rem; }
  .kh-map { margin-bottom: 2.5rem; }
  .kh-scene { padding: .7rem; }
  .kh-cash-grid { grid-template-columns: 1fr; }
  .kh-table-wrap { overflow: visible; }
  .ke-home table, .ke-home thead, .ke-home tbody, .ke-home tr, .ke-home th, .ke-home td { display: block; width: 100%; }
  .ke-home thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .ke-home caption { display: block; width: 100%; }
  .ke-home tbody tr { padding: .7rem .8rem; border-bottom: 1px solid var(--line); }
  .ke-home tbody tr:last-child { border-bottom: 0; }
  .ke-home tbody th, .ke-home tbody td { padding: .35rem 0; border: 0; background: transparent!important; }
  .ke-home tbody th { width: 100%; font-size: 1.05rem; }
  .ke-home tbody td::before { display: block; margin: 0 0 .1rem; color: #48616e; content: attr(data-label); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
}
@media (max-width: 380px) { .kh-story-intro h1 { font-size: 2.18rem; } .kh-map { gap: .35rem; } .kh-map a { font-size: .78rem; } .kh-path-grid article { padding: 1.1rem; } }
