[hidden] { display: none !important; } /* filters and search hide cards with the hidden attribute */
/* Kazi Abroad Guide - design system (chalkboard + pastel editorial) */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f6f3;
  --surface: #ffffff;
  --surface-2: #f3f2ee;
  --ink: #15171a;
  --ink-2: #3f444b;
  --ink-3: #6b7079;
  --line: #e6e4df;
  --line-2: #d8d5cf;
  --brand: #15171a;          /* black pill buttons */
  --brand-ink: #ffffff;
  --link: #0f766e;
  --accent: #ef5f3c;         /* chalk underline orange */
  --accent-ink: #c4461f;     /* the same orange, dark enough for small text on white (4.9:1) */
  --peach: #f8b48e;
  --peach-ink: #2a1a10;
  --board: #1e2b25;
  --board-2: #253530;
  --wood: #6e4b2d;
  --chalk: #f4f1e8;
  --chalk-2: #c9cfc8;
  /* category palette */
  --c-blue: #3b82f6;   --c-blue-bg: #d6e2fb;   --c-blue-bd: #8fb0f3;
  --c-green: #10a36b;  --c-green-bg: #c9eadb;  --c-green-bd: #7fcaa8;
  --c-purple: #8b5cf6; --c-purple-bg: #e3d8f8; --c-purple-bd: #b79bef;
  --c-amber: #e59a0b;  --c-amber-bg: #faeac2;  --c-amber-bd: #f0c661;
  --c-rose: #e5466a;   --c-rose-bg: #f7d3dc;   --c-rose-bd: #ec98ac;
  --c-teal: #0e9aa7;   --c-teal-bg: #cdebee;   --c-teal-bd: #7fcbd3;
  --c-green-ink: #08704a; --c-rose-ink: #a8173c; --c-amber-ink: #7a4f00; /* badge text that passes 4.5:1 on the tinted fills */
  /* status */
  --ok: #0f7a4d; --ok-soft: #e2f3ea;
  --warn: #8a5a00; --warn-soft: #fff3d6;
  --bad: #b42318; --bad-soft: #fdeceb;
  --info: #1d4f91; --info-soft: #e7effb;
  --grey-soft: #efeeea;
  --shadow: 0 1px 2px rgba(15,17,20,.05), 0 6px 20px rgba(15,17,20,.06);
  --shadow-lg: 0 18px 40px rgba(15,17,20,.16);
  --radius: 16px; --radius-sm: 10px; --max: 1200px;
  --font: "Source Sans 3", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Print", "Bradley Hand", cursive;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1114; --bg-soft: #14171b; --surface: #171a1f; --surface-2: #1e2228; --ink: #eef0f2; --ink-2: #c3c8cf; --ink-3: #8f96a0;
    --line: #2a2f36; --line-2: #343a42; --brand: #f4f1e8; --brand-ink: #15171a; --link: #5ed3c4; --accent-ink: #ef5f3c;
    --c-blue-bg: #1b2a44; --c-blue-bd: #34528a; --c-green-bg: #15322a; --c-green-bd: #2c6b54; --c-purple-bg: #2a2242; --c-purple-bd: #57439a;
    --c-amber-bg: #3a2f14; --c-amber-bd: #7a6024; --c-rose-bg: #3d1d26; --c-rose-bd: #8a3a50; --c-teal-bg: #133337; --c-teal-bd: #2b6c73;
    --c-green-ink: #6fdcaa; --c-rose-ink: #ff9bb2; --c-amber-ink: #f2c866;
    --ok: #4cc58e; --ok-soft: #14301f; --warn: #f2c14e; --warn-soft: #362a0f; --bad: #ff8a80; --bad-soft: #3a1b19; --info: #8db8ff; --info-soft: #172438; --grey-soft: #23272d;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.3); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1114; --bg-soft: #14171b; --surface: #171a1f; --surface-2: #1e2228; --ink: #eef0f2; --ink-2: #c3c8cf; --ink-3: #8f96a0;
  --line: #2a2f36; --line-2: #343a42; --brand: #f4f1e8; --brand-ink: #15171a; --link: #5ed3c4; --accent-ink: #ef5f3c;
  --c-blue-bg: #1b2a44; --c-blue-bd: #34528a; --c-green-bg: #15322a; --c-green-bd: #2c6b54; --c-purple-bg: #2a2242; --c-purple-bd: #57439a;
  --c-amber-bg: #3a2f14; --c-amber-bd: #7a6024; --c-rose-bg: #3d1d26; --c-rose-bd: #8a3a50; --c-teal-bg: #133337; --c-teal-bd: #2b6c73;
    --c-green-ink: #6fdcaa; --c-rose-ink: #ff9bb2; --c-amber-ink: #f2c866;
  --ok: #4cc58e; --ok-soft: #14301f; --warn: #f2c14e; --warn-soft: #362a0f; --bad: #ff8a80; --bad-soft: #3a1b19; --info: #8db8ff; --info-soft: #172438; --grey-soft: #23272d;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 20px rgba(0,0,0,.3); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.6; overflow-x: hidden; }
a { color: var(--link); text-underline-offset: 3px; overflow-wrap: anywhere; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.18; margin: 0 0 .5em; color: var(--ink); }
h1 { font-family: var(--serif); font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.12rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
small, .small { font-size: .875rem; }
.muted { color: var(--ink-3); }
.hand { font-family: var(--hand); font-weight: 700; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--bg); padding: 8px 14px; z-index: 200; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 2px; border-radius: 6px; }
.search-panel input:focus-visible { outline: 3px solid var(--c-blue); outline-offset: -3px; border-radius: 0; }
/* Browser parts the page did not draw: themed from the palette */
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--ink); }
html { accent-color: var(--accent); caret-color: var(--accent); scrollbar-color: var(--line-2) transparent; }
table, .kv dd, .count, .chip .n, .when b { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation-duration: 0s !important; scroll-behavior: auto !important; }
}

/* ================= Header ================= */
/* The header is built by app.js after the first paint. Until then keep its exact height free, so the page does not
   jump down when it arrives (Lighthouse layout shift, 30 Nov 2026). Heights measured: 63px to 900px wide, 124.8px above. */
body:not(:has(> .site-header))::before { content: ""; display: block; height: 124.8px; }
@media (max-width: 900px) { body:not(:has(> .site-header))::before { height: 63px; } }
@media print { body::before { display: none !important; } }
/* Card lists are filled by app.js. Until then hold a screen of space, so the sections below them do not jump. */
[data-list]:not([data-list="closed"]):empty { min-height: 100vh; }
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 70px; }
.hdr-left { display: flex; align-items: center; gap: 6px; }
.hdr-right { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.wordmark { font-family: var(--serif); font-weight: 700; font-size: 1.85rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.wordmark em { font-style: italic; font-weight: 600; color: var(--accent-ink, var(--accent)); }
.icon-btn { background: transparent; border: 0; color: var(--ink); width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: var(--surface-2); }
.icon-btn svg { width: 19px; height: 19px; }
.pill { display: inline-flex; align-items: center; gap: 8px; background: var(--brand); color: var(--brand-ink); border-radius: 999px; padding: 10px 20px; font-weight: 700; text-decoration: none; font-size: .95rem; white-space: nowrap; border: 0; cursor: pointer; font-family: inherit; }
.pill:hover { filter: brightness(1.15); }
.hdr-nav { display: flex; justify-content: center; gap: 4px 22px; flex-wrap: wrap; padding: 6px 0 14px; }
.hdr-nav a { color: var(--ink-2); text-decoration: none; font-size: .93rem; font-weight: 500; display: inline-flex; align-items: center; gap: 8px; padding: 4px 2px; border-bottom: 2px solid transparent; }
.hdr-nav a:hover { color: var(--ink); }
.hdr-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
.hdr-nav .mob-only { display: none; }
@media (max-width: 900px) { .hdr-nav .mob-only { display: flex; } }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .hdr-top { height: 62px; }
  .wordmark { font-size: 1.45rem; }
  .menu-btn { display: grid; }
  .hdr-right .pill { display: none; }
  .hdr-nav { display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 14px; }
  /* The header is sticky, so an open menu taller than the screen must scroll inside itself (bottom links were out of reach, 3 Dec 2026) */
  .hdr-nav.open { display: flex; flex-wrap: nowrap; max-height: calc(100vh - 63px); max-height: calc(100dvh - 63px); overflow-y: auto; overscroll-behavior: contain; }
  .hdr-nav a { padding: 11px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .hdr-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--accent); }
}
@media (max-width: 380px) { .wordmark { font-size: 1.25rem; } }

/* ================= Search overlay ================= */
.search-overlay { position: fixed; inset: 0; z-index: 100; background: rgba(10,12,14,.55); display: none; padding: 9vh 16px 16px; }
.search-overlay.open { display: block; }
.search-panel { max-width: 720px; margin: 0 auto; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-panel input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 18px 20px; font: inherit; font-size: 1.1rem; background: transparent; color: var(--ink); outline: none; }
.search-results { max-height: 62vh; overflow-y: auto; padding: 6px; }
.search-results a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.search-results a:hover, .search-results a.sel { background: var(--surface-2); }
.search-results .k { font-size: .82rem; font-weight: 700; }
.search-results .d { display: block; color: var(--ink-3); font-size: .88rem; }
.search-hint { padding: 12px 18px; color: var(--ink-3); font-size: .88rem; }

/* ================= Chalkboard ================= */
.board { position: relative; background: radial-gradient(120% 140% at 20% 10%, var(--board-2), var(--board) 60%, #18231e); border: 11px solid var(--wood); border-radius: 18px; box-shadow: inset 0 0 0 2px rgba(0,0,0,.25), inset 0 0 60px rgba(0,0,0,.35), var(--shadow-lg); color: var(--chalk); overflow: hidden; }
.board::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .06; background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 3px 3px; }
.board a { color: var(--chalk); }
.board h1, .board h2, .board h3 { color: var(--chalk); }
.chalk-title { font-family: var(--hand); font-weight: 700; font-size: clamp(3rem, 8vw, 5.6rem); line-height: .95; margin: 0 0 .1em; display: inline-block; position: relative; padding-bottom: 6px; }
.chalk-title::after { content: ""; position: absolute; left: -4px; right: -4px; bottom: -2px; height: 11px; background: var(--accent); border-radius: 2px; transform: rotate(-.6deg); }
.chalk-sub { font-size: clamp(1.15rem, 2.2vw, 1.45rem); color: var(--chalk); margin: 14px 0 12px; font-weight: 500; }
.chalk-body { color: var(--chalk-2); font-size: 1.02rem; max-width: 600px; }
.hero { padding: 26px 0 0; }
.hero .board { display: grid; grid-template-columns: minmax(0, 1fr); gap: 34px; padding: 40px 40px 36px; align-items: center; }
.hero .chalk-sub, .hero .chalk-body { max-width: 62ch; }
@media (max-width: 900px) { .hero .board { grid-template-columns: 1fr; padding: 30px 22px; } }
.btn-chalk { display: inline-flex; align-items: center; gap: 10px; background: var(--peach); color: var(--peach-ink) !important; padding: 13px 22px; border-radius: 4px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 14px rgba(0,0,0,.35); transform: rotate(-1.2deg); transition: transform .15s; font-size: 1rem; }
.btn-chalk:hover { transform: rotate(0) translateY(-1px); }
.link-chalk { color: var(--chalk) !important; font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-top: 24px; }
.note-card { background: #151c18; border: 4px solid var(--chalk); border-radius: 6px; padding: 22px 24px; transform: rotate(1.3deg); box-shadow: 0 14px 30px rgba(0,0,0,.4); }
.note-card .ln { font-family: var(--hand); font-size: 1.7rem; line-height: 1.25; }
.note-card .ln b { color: var(--peach); font-weight: 700; }
.note-card .ln.y { color: #f6d77a; } .note-card .ln.r { color: #ff9a80; } .note-card .ln.g { color: #9be7bf; }
.note-caption { font-family: var(--hand); font-size: 1.35rem; text-align: center; margin-top: 14px; color: var(--chalk); }

/* ================= Pastel category cards ================= */
.cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 22px; margin: 18px 0 8px; }
@media (max-width: 760px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 16px; } }
.cat { border-top: 1px solid var(--line); padding: 12px 2px 10px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; }
.cat:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat svg { width: 26px; height: 26px; margin-bottom: 10px; }
.cat h3 { font-size: 1.05rem; margin-bottom: 4px; }
.cat p { font-size: .88rem; color: var(--ink-2); margin: 0; }
.cat .cnt { font-size: .88rem; font-weight: 700; margin-top: 8px; font-variant-numeric: tabular-nums; }
.cat.blue .cnt { color: var(--ink-2); }
.cat.green .cnt { color: var(--ink-2); }
.cat.purple .cnt { color: var(--ink-2); }
.cat.amber .cnt { color: var(--ink-2); }
.cat.rose .cnt { color: var(--ink-2); }
.cat.teal .cnt { color: var(--ink-2); }

/* ================= Section heads ================= */
section.block { padding: 34px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding-top: 26px; margin-bottom: 18px; }
.sec-head h2 { font-family: var(--hand); font-size: clamp(2.1rem, 4vw, 2.6rem); font-weight: 700; margin: 0; line-height: 1; }
.sec-head p { margin: 6px 0 0; color: var(--ink-3); }
.round-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; flex: none; font-size: 1.05rem; }
.round-btn:hover { background: var(--surface-2); }
.section-intro { max-width: 780px; color: var(--ink-2); }
.lede { font-size: 1.12rem; color: var(--ink-2); max-width: 780px; }

/* page head (inner pages) */
.page-head { padding: 26px 0 6px; }
.page-head .board { padding: 34px 36px 32px; }
.page-head .board h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-head .board .eyebrow { color: var(--peach); }
.page-head .board .lede { color: var(--chalk-2); margin-bottom: 0; }
@media (max-width: 600px) { .page-head .board { padding: 24px 18px; } }

/* ================= Featured + side list ================= */
.feature-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 34px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.feat-art { border-radius: 14px; aspect-ratio: 16 / 8.2; display: grid; place-items: center; position: relative; overflow: hidden; border: 1px solid var(--line); }
.feat-art .big-emoji { font-size: clamp(4rem, 9vw, 6.5rem); filter: drop-shadow(0 8px 14px rgba(0,0,0,.2)); }
.feat-art .stamp { position: absolute; bottom: 14px; left: 16px; font-family: var(--hand); font-size: 1.6rem; color: var(--ink); background: rgba(255,255,255,.75); padding: 2px 12px; border-radius: 6px; transform: rotate(-2deg); }
.kicker { color: var(--bad); font-weight: 700; font-size: .9rem; margin: 16px 0 6px; display: block; }
.meta { color: var(--ink-3); font-size: .86rem; }
.feat h3.title { font-family: var(--serif); font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.12; margin: 6px 0 10px; }
.feat h3.title a { color: var(--ink); text-decoration: none; }
.side-list { display: flex; flex-direction: column; gap: 14px; }
.side-item { display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 12px; padding: 13px; text-decoration: none; color: var(--ink); background: var(--surface); }
.side-item:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.thumb { width: 72px; height: 72px; border-radius: 9px; display: grid; place-items: center; font-size: 2rem; }
.side-item h4 { font-family: var(--serif); font-size: 1.02rem; margin: 0 0 4px; line-height: 1.25; }
.byline { font-size: .84rem; font-weight: 600; color: var(--ink-3); }

/* ================= Carousel ================= */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.carousel > * { scroll-snap-align: start; }
@media (min-width: 1000px) { .carousel { grid-auto-columns: calc((100% - 66px) / 4); } }
.c-card { text-decoration: none; color: var(--ink); display: block; }
.c-card .art { height: 150px; border-radius: 12px; display: grid; place-items: center; font-size: 3.2rem; margin-bottom: 12px; border: 1px solid var(--line); }
.c-card .kick { font-size: .86rem; font-weight: 700; color: var(--ink-3); }
.c-card h3 { font-family: var(--serif); font-size: 1.25rem; line-height: 1.2; margin: 4px 0 6px; }
.c-card p { color: var(--ink-2); font-size: .93rem; margin: 0; }
.bg-blue { background: var(--c-blue-bg); } .bg-green { background: var(--c-green-bg); } .bg-purple { background: var(--c-purple-bg); }
.bg-amber { background: var(--c-amber-bg); } .bg-rose { background: var(--c-rose-bg); } .bg-teal { background: var(--c-teal-bg); }

/* ================= Numbered list ================= */
.numlist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.numlist li { margin: 0; border-bottom: 1px solid var(--line); }
.numlist a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 22px 4px; text-decoration: none; color: var(--ink); }
.numlist a:hover .t { text-decoration: underline; text-decoration-thickness: 1px; }
.numlist .n { font-size: 1.05rem; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.numlist .t { font-family: var(--serif); font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 700; line-height: 1.25; }
.numlist .t span { display: block; font-family: var(--font); font-size: .9rem; font-weight: 400; color: var(--ink-3); margin-top: 4px; }
.numlist .r { color: var(--ink-3); font-size: .86rem; white-space: nowrap; }
@media (max-width: 600px) { .numlist a { grid-template-columns: 28px minmax(0,1fr); } .numlist .r { display: none; } }

/* ================= CTA board ================= */
.cta-board { text-align: center; padding: 46px 24px 40px; }
.cta-board .hand-h { font-family: var(--hand); font-size: clamp(2.4rem, 5.5vw, 3.6rem); line-height: 1; margin: 0 0 12px; }
.cta-board p { color: var(--chalk-2); max-width: 640px; margin: 0 auto 18px; }
.rules { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; text-align: left; max-width: 980px; margin: 22px auto 24px; }
.rules div { border: 1px dashed rgba(244,241,232,.35); border-radius: 10px; padding: 14px 16px; color: var(--chalk-2); font-size: .95rem; }
.rules b { color: var(--chalk); display: block; font-family: var(--hand); font-size: 1.5rem; margin-bottom: 4px; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

/* ================= Buttons (generic) ================= */
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; font-weight: 650; text-decoration: none; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; font-size: .95rem; font-family: inherit; }
.btn:hover { border-color: var(--ink-3); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.15); border-color: var(--brand); }
.btn-sm { padding: 7px 13px; font-size: .86rem; }

/* ================= Alerts ================= */
.alert { border-radius: var(--radius); padding: 15px 18px; display: flex; gap: 12px; align-items: flex-start; border: 1px solid; margin: 18px 0; }
.alert .ico { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.alert .ico svg { width: 22px; height: 22px; display: block; }
.alert-danger .ico { color: var(--bad); } .alert-warn .ico { color: var(--warn); } .alert-info .ico { color: var(--info); } .alert-ok .ico { color: var(--ok); }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert-danger { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.alert-danger strong.t { color: var(--bad); }
.alert-warn { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.alert-info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 25%, transparent); }
.alert-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }

/* ================= Grids / cards ================= */
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card h3 { margin-bottom: .35em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
a.card { text-decoration: none; color: inherit; display: block; transition: transform .15s, box-shadow .15s; }
a.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card .go { color: var(--link); font-weight: 650; font-size: .92rem; margin-top: 8px; display: inline-block; }
.card-ico { font-size: 26px; margin-bottom: 8px; display: block; }
.stat .num { font-family: var(--hand); font-size: 2.8rem; font-weight: 700; line-height: 1; }
.stat .lbl { color: var(--ink-2); font-size: .92rem; margin-top: 6px; }
.stat .src { font-size: .78rem; color: var(--ink-3); margin-top: 6px; }
.stats-strip { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stats-strip > div { padding: 20px 22px; border-right: 1px solid var(--line); }
.stats-strip > div:last-child { border-right: 0; }
@media (max-width: 860px) { .stats-strip { grid-template-columns: repeat(2, minmax(0,1fr)); } .stats-strip > div:nth-child(2) { border-right: 0; } .stats-strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ================= Badges ================= */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; letter-spacing: .02em; white-space: nowrap; border: 1px solid transparent; max-width: 100%; }
/* Long badges (deadline dates) wrap on narrow phones instead of making the page scroll sideways (3 Dec 2026) */
@media (max-width: 480px) { .badge { white-space: normal; line-height: 1.35; } }
.b-active { background: var(--ok-soft); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 28%, transparent); }
.b-early { background: var(--info-soft); color: var(--info); border-color: color-mix(in srgb, var(--info) 28%, transparent); }
.b-paused { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 32%, transparent); }
.b-announced { background: var(--grey-soft); color: var(--ink-2); border-color: var(--line); }
.b-closed, .b-avoid { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 28%, transparent); }
.b-unv { background: transparent; color: var(--warn); border: 1px dashed color-mix(in srgb, var(--warn) 60%, transparent); }
.b-tag { background: var(--surface-2); color: var(--ink-2); border-color: var(--line); font-weight: 600; }
.b-full { background: var(--c-green-bg); color: var(--c-green-ink); border-color: var(--c-green-bd); }
.b-partial { background: var(--c-amber-bg); color: var(--c-amber-ink); border-color: var(--c-amber-bd); }
/* Destination tiers (data/tiers.json) */
.b-tier-1 { background: var(--c-blue-bg); color: var(--c-blue); border-color: var(--c-blue-bd); }
.b-tier-2 { background: var(--c-teal-bg); color: var(--c-teal); border-color: var(--c-teal-bd); }
.b-tier-3 { background: var(--grey-soft); color: var(--ink-2); border-color: var(--line); }
.b-tier-kenya { background: var(--c-green-bg); color: var(--c-green-ink); border-color: var(--c-green-bd); }
.b-tier-warning { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 28%, transparent); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0 10px; }

/* ================= Filters ================= */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 22px 0 20px; }
.toolbar .label { font-size: .9rem; font-weight: 700; color: var(--ink-2); margin-right: 4px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); padding: 7px 14px; border-radius: 99px; cursor: pointer; font-size: .87rem; font-weight: 600; font-family: inherit; display: inline-flex; align-items: center; gap: 7px; }
.chip:hover { border-color: var(--ink-3); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search { flex: 1 1 220px; min-width: 0; max-width: 380px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem; }
.count { color: var(--ink-3); font-size: .88rem; }
/* Filter panel built by app.js mountList: labelled rows of chips; extra rows fold away on phones */
.filters { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 16px 10px; margin: 0 0 22px; }
.filters .frow { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; align-items: start; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.filters .frow:last-of-type { border-bottom: 0; }
.filters .label { font-size: .9rem; font-weight: 700; color: var(--ink-2); padding-top: 7px; }
.filters .chip { padding: 6px 12px; font-size: .84rem; }
.filters .chip .n { font-size: .75rem; font-weight: 700; color: var(--ink-3); }
.filters .chip[aria-pressed="true"] .n { color: inherit; opacity: .8; }
.filters .chip-zero { opacity: .45; }
.filters .fhelp { grid-column: 2; margin: 2px 0 0; font-size: .78rem; color: var(--ink-3); }
.filters .fbar { display: flex; gap: 8px; flex-wrap: wrap; padding-top: 8px; }
.filters .fsheet-head, .filters .fshow, .fopen { display: none; }
.factive { display: flex; flex-wrap: wrap; gap: 6px; margin: -10px 0 18px; }
.factive[hidden] { display: none; }
.chip-on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip-on span { font-size: 1.05em; line-height: 1; }
.toolbar-search { margin: 18px 0 12px; }
.b-diff-easy { background: var(--c-green-bg); color: var(--c-green-ink); border-color: var(--c-green-bd); }
.b-diff-moderate { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 32%, transparent); }
.b-diff-hard { background: var(--c-rose-bg); color: var(--c-rose-ink); border-color: var(--c-rose-bd); }
.b-diff-veryhard { background: var(--bad-soft); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
@media (max-width: 700px) {
  .fopen { display: inline-flex; margin: 0 0 14px; }
  .filters { display: none; }
  .filters.sheet-open { display: block; position: fixed; inset: 0; z-index: 95; margin: 0; border: 0; border-radius: 0; overflow-y: auto; padding: 0 16px 90px; background: var(--surface); }
  .filters.sheet-open .fsheet-head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--surface); padding: 14px 0 10px; border-bottom: 1px solid var(--line); z-index: 1; }
  .filters.sheet-open .fbar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px; background: var(--surface); border-top: 1px solid var(--line); justify-content: space-between; }
  .filters.sheet-open .fshow { display: inline-flex; }
  .filters .frow { grid-template-columns: 1fr; gap: 4px; }
  .filters .label { padding-top: 2px; }
  .filters .fhelp { grid-column: 1; }
  .factive { margin: 0 0 16px; }
  body.sheet-lock { overflow: hidden; }
}


/* ================= Entry cards ================= */
.entry { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; min-width: 0; display: flex; flex-direction: column; }
.entry:hover { box-shadow: var(--shadow); }
.entry, section[id], [id] { scroll-margin-top: 140px; }
.entry-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.entry h3 { margin: 0; font-family: var(--serif); font-size: 1.22rem; line-height: 1.25; }
.entry .flag { font-size: 1.6rem; line-height: 1; flex: none; }
.entry .sum { color: var(--ink-2); margin: 4px 0 10px; }
.entry .prov { color: var(--ink-3); font-size: .86rem; margin-top: 4px; }
.brief { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 0 0 12px; font-size: .93rem; }
.brief dt { color: var(--ink-3); font-weight: 650; }
.brief dd { margin: 0; color: var(--ink); }
.brief dd.full { grid-column: 1 / -1; }
.entry .apply-row { margin-top: auto; }
.kv { display: grid; grid-template-columns: 124px minmax(0,1fr); gap: 6px 14px; font-size: .92rem; margin: 6px 0 4px; }
.kv dt { color: var(--ink-3); font-weight: 650; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 6px; } }
details.more { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
details.more summary { cursor: pointer; font-weight: 650; color: var(--link); font-size: .92rem; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::before { content: "▸ "; }
details.more[open] summary::before { content: "▾ "; }
details.more ul { margin-top: 8px; font-size: .93rem; }
.srcs { font-size: .8rem; color: var(--ink-3); margin-top: auto; padding-top: 12px; overflow-wrap: anywhere; }
.srcs a { color: var(--ink-3); }
.apply-row { margin-top: 12px; }

/* ================= Tables ================= */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .93rem; min-width: 640px; }
th, td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--surface-2); font-size: .88rem; color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }

/* ================= Steps ================= */
.steps { counter-reset: s; list-style: none; padding: 0; }
.steps > li { counter-increment: s; position: relative; padding: 0 0 20px 58px; margin: 0; }
.steps > li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: -4px; font-family: var(--hand); font-size: 2rem; font-weight: 700; color: var(--accent); }
.steps h4 { margin-bottom: 2px; padding-top: 4px; font-family: var(--serif); font-size: 1.12rem; }
.path { display: flex; flex-wrap: wrap; margin: 10px 0; }
.path span { background: var(--surface-2); border: 1px solid var(--line); padding: 6px 12px; font-size: .85rem; font-weight: 600; border-radius: 8px; margin: 3px 20px 3px 0; position: relative; }
.path span:not(:last-child)::after { content: "→"; position: absolute; right: -16px; color: var(--ink-3); }

/* ================= Quiz ================= */
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.q { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.q legend { font-weight: 700; margin-bottom: 9px; padding: 0; font-family: var(--serif); font-size: 1.08rem; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: inline-block; border: 1px solid var(--line-2); padding: 8px 15px; border-radius: 999px; cursor: pointer; font-size: .92rem; background: var(--bg); }
.opt input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.opt input:focus-visible + span { outline: 3px solid var(--c-blue); outline-offset: 2px; }
.results { margin-top: 18px; }
.result { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; margin-bottom: 10px; background: var(--bg-soft); }
.result h4 { margin: 0 0 4px; font-family: var(--serif); font-size: 1.1rem; }
.result p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.score { float: right; font-family: var(--hand); font-size: 1.3rem; color: var(--accent); line-height: 1; }
label.field { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 4px; }
input[type="number"], select, input[type="text"] { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); font: inherit; }

/* ================= Calculator ================= */
.calc { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }
.cost-row { display: grid; grid-template-columns: minmax(0,1fr) 150px; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.cost-row label { font-size: .94rem; }
.cost-row .hint { display: block; font-size: .8rem; color: var(--ink-3); }
/* Narrow phones: the cost name gets the full width (it was cut to "Passport (34" at 320px), the amount goes under it */
@media (max-width: 480px) { .cost-row { grid-template-columns: minmax(0, 1fr); gap: 6px; } .cost-row input[type=number] { max-width: 200px; } }
.total-box { position: sticky; top: 130px; }
.total-box .big { font-family: var(--hand); font-size: 3rem; font-weight: 700; color: var(--accent); line-height: 1; }
.bar { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; margin: 8px 0 4px; }
.bar > i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .3s; }

/* ================= Checklist ================= */
.check-group { margin-bottom: 18px; }
.check-item { display: flex; gap: 12px; align-items: flex-start; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 8px; cursor: pointer; }
.check-item input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.check-item.done { opacity: .6; }
.check-item.done .ct { text-decoration: line-through; }
.check-item .cd { display: block; font-size: .85rem; color: var(--ink-3); }
.progress { position: sticky; top: 118px; z-index: 5; background: var(--bg); padding: 12px 0; }
@media (max-width: 900px) { .progress { top: 62px; } .total-box { top: 76px; } }

/* ================= FAQ / glossary ================= */
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; margin-bottom: 10px; }
.faq summary { font-weight: 700; cursor: pointer; font-family: var(--serif); font-size: 1.05rem; }
.faq details[open] summary { margin-bottom: 8px; }
.faq details p:last-child { margin-bottom: 0; }
dl.gloss { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 12px 20px; }
dl.gloss dt { font-weight: 700; }
dl.gloss dd { margin: 0; color: var(--ink-2); }
@media (max-width: 620px) { dl.gloss { grid-template-columns: 1fr; gap: 2px; } dl.gloss dd { margin-bottom: 10px; } }

/* ================= Layout with TOC ================= */
.layout { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 36px; align-items: start; }
.toc { position: sticky; top: 140px; font-size: .9rem; }
.toc a { display: block; padding: 6px 12px; color: var(--ink-2); text-decoration: none; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.toc .t { font-weight: 700; font-size: .9rem; color: var(--ink-2); margin-bottom: 6px; }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0,1fr); } .toc { display: none; } }

/* ================= Timeline (deadline calendar) ================= */
.months { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
@media (max-width: 960px) { .months { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .months { grid-template-columns: 1fr; } }
.month { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.month h4 { font-family: var(--hand); font-size: 1.7rem; margin: 0 0 6px; color: var(--accent); }
.month ul { list-style: none; padding: 0; margin: 0; font-size: .88rem; }
.month li { padding: 5px 0; border-bottom: 1px dashed var(--line); }
.month li:last-child { border-bottom: 0; }

/* ================= Footer ================= */
.site-footer { border-top: 1px solid var(--line); margin-top: 60px; padding: 46px 0 30px; color: var(--ink-2); font-size: .95rem; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 26px; }
.site-footer .wordmark { font-size: 1.6rem; }
.site-footer .tag { font-family: var(--hand); font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; margin: 14px 0 12px; color: var(--ink); font-weight: 700; }
.site-footer .tag span { color: var(--accent); }
.site-footer h2 { font-family: var(--font); font-size: .95rem; font-weight: 700; line-height: 1.18; color: var(--ink); margin-bottom: 12px; }  /* h2, not h4: headings must not skip a level */
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 12px; }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.site-footer .legal { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 18px; font-size: .84rem; color: var(--ink-3); }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } .site-footer .cols > div:first-child { grid-column: 1 / -1; } }

.hr { height: 1px; background: var(--line); margin: 28px 0; border: 0; }
.callout { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.callout h3 { font-family: var(--serif); font-size: 1.3rem; }
.pill-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }
.pill-list li { background: var(--surface-2); border: 1px solid var(--line); padding: 5px 13px; border-radius: 99px; font-size: .86rem; margin: 0; }
.no-results { padding: 30px; text-align: center; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.updated { font-size: .82rem; color: var(--ink-3); }

@media print {
  .site-header, .site-footer, .toolbar, .btn-row, .menu-btn, .search-overlay { display: none !important; }
  body { background: #fff; color: #000; }
  .board { background: #fff !important; color: #000; border: 2px solid #000; box-shadow: none; }
  .board * { color: #000 !important; }
  .card, .entry { box-shadow: none; break-inside: avoid; }
  .g-share, .g-toc, .g-top, .g-related, .crumbs { display: none !important; }
  .g-layout { display: block; }
  .g-sec p, .g-sec li { max-width: none; color: #000; }
  .g-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; word-break: break-all; }
}

/* Scholarships: "Closing soon" (deadline_date within 60 days) */
.closing { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 10px; }
.closing li a { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; transition: box-shadow .15s, border-color .15s; }
.closing li a:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.closing li.urgent a { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.closing .when b { display: block; font-family: var(--serif); font-size: 1.05rem; }
.closing .when small { font-size: .84rem; font-weight: 600; color: var(--ink-3); }
.closing li.urgent .when small { color: var(--bad); }
.closing .what { font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }

/* ---------- Guide pages (public/<section>/<slug>.html, tools/guides.py) ---------- */
.btn-guide { font-weight: 700; }
.apply-row .btn + .btn { margin-left: 8px; }
.crumbs { font-size: .85rem; color: var(--ink-3); padding-top: 18px; }
.crumbs a { color: var(--ink-2); }
.guide .page-head { padding-top: 10px; }
.g-meta { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--chalk-2); }
.g-short { margin: 22px 0 8px; padding: 18px 22px; border: 1px solid color-mix(in srgb, var(--cat) 35%, var(--line)); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--cat) 7%, var(--surface)); }
.g-short-h { font-family: var(--font); font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.g-short .kicker { margin: 0 0 6px; display: block; }
.g-short p { margin: 0; font-size: 1.08rem; line-height: 1.6; color: var(--ink); }
.g-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; margin-top: 22px; }
.g-aside { order: 2; position: sticky; top: 84px; display: grid; gap: 16px; max-height: calc(100vh - 100px); overflow: auto; }
.g-body { order: 1; min-width: 0; }
.g-facts { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 16px 18px; }
.g-facts-h { font-family: var(--font); font-size: 1rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; }
.g-facts dl { margin: 0; }
.kf-row { display: grid; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); }
.kf-row:first-child { border-top: 0; padding-top: 2px; }
.kf-row dt { font-size: .78rem; font-weight: 700; color: var(--ink-3); }
.kf-row dd { margin: 0; font-weight: 500; font-size: .95rem; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.g-toc { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 12px 18px; }
.g-toc summary { cursor: pointer; font-weight: 700; font-size: 1rem; color: var(--ink); }
.g-toc ol { margin: 10px 0 2px; padding-left: 20px; display: grid; gap: 6px; font-size: .93rem; }
.g-toc a { color: var(--ink-2); text-decoration: none; }
.g-toc a:hover { color: var(--link); text-decoration: underline; }
.g-sec { scroll-margin-top: 90px; padding: 6px 0 18px; }
.g-sec h2 { font-family: var(--serif); font-size: clamp(1.45rem, 2.6vw, 1.8rem); margin: 18px 0 10px; line-height: 1.2; }
.g-sec p, .g-sec li { line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; max-width: 70ch; text-wrap: pretty; }
.g-sec h2, .page-head h1 { text-wrap: balance; }
.g-deadline { display: grid; gap: 2px; margin: 14px 0 0; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); }
.g-deadline.soon { border-color: color-mix(in srgb, var(--warn) 55%, transparent); background: var(--warn-soft); }
.g-deadline .when b { font-variant-numeric: tabular-nums; }
.g-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.g-top { margin: 8px 0 0; font-size: .92rem; }
.g-sec ul { padding-left: 22px; }
.g-lead { font-size: 1.06rem; font-weight: 600; color: var(--ink) !important; }
/* Step by step: numbered circles joined by a line (GOV.UK pattern), no box around each step */
.g-steps { list-style: none; counter-reset: step; padding: 0; margin: 18px 0 0; }
.g-steps > li { counter-increment: step; position: relative; padding: 2px 0 18px 52px; }
.g-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface); color: var(--ink); border: 2px solid var(--cat); font-variant-numeric: tabular-nums; }
.g-steps > li::after { content: ""; position: absolute; left: 17px; top: 38px; bottom: 2px; width: 2px; background: var(--line-2); }
.g-steps > li:last-child::after { display: none; }
.g-steps h3 { margin: 5px 0 6px; font-size: 1.08rem; }
.g-faq { display: grid; gap: 10px; }
.g-faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 12px 16px; }
.g-faq summary { cursor: pointer; font-weight: 700; color: var(--ink); line-height: 1.4; }
.g-faq details[open] summary { margin-bottom: 6px; }
.g-links { list-style: none; padding: 0 !important; margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.g-links li { padding: 11px 16px; border-top: 1px solid var(--line); margin: 0; }
.g-links li:first-child { border-top: 0; }
.g-links a { font-weight: 700; }
.g-links .muted { display: block; font-size: .9rem; }
.g-srcs { font-size: .88rem; padding-left: 22px; }
.g-srcs li { line-height: 1.5; margin: 4px 0; }
.g-rels { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.g-rel { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); text-decoration: none; }
.g-rel:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
@media (max-width: 960px) {
  .g-layout { grid-template-columns: 1fr; gap: 18px; }
  .g-aside { order: 0; position: static; max-height: none; overflow: visible; }
}

/* Phase 4 (DESIGN_PLAN.md): home additions */
.feat { padding-top: 4px; }
.feat .meta { color: var(--ink-3); font-size: .9rem; font-weight: 600; }
.feat .stamp-txt { color: var(--bad); }
.board-facts { list-style: none; padding: 0; margin: 4px auto 24px; max-width: 760px; text-align: left; display: grid; gap: 8px; color: var(--chalk-2); }
.board-facts b { font-family: var(--hand); font-size: 1.5rem; color: var(--chalk); margin-right: 6px; }
.board-facts span { color: var(--chalk-2); opacity: .75; font-size: .88rem; }

.site-footer .legal a { text-decoration: underline; text-underline-offset: 2px; }

/* Contact form and Help Desk */
.contact-form { display: grid; gap: 6px; max-width: 640px; }
.contact-form label { font-weight: 700; margin-top: 8px; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; }
.contact-form #cf-error { color: var(--bad); }
.hd-contact { margin: 6px 0 22px; }
.g-help { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }

/* Contact form and Help Desk */
.contact-form { display: grid; gap: 6px; max-width: 640px; }
.contact-form label { font-weight: 700; margin-top: 8px; }
.contact-form input, .contact-form select, .contact-form textarea { font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); width: 100%; }
.contact-form #cf-error { color: var(--bad); }
.hd-contact { margin: 6px 0 22px; }
.g-help { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }

.person { display: flex; gap: 18px; align-items: flex-start; }
.person-photo img { display: block; width: 160px; height: 160px; border-radius: 50%; object-fit: cover; border: 3px solid var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.15), 0 6px 16px rgba(0,0,0,.12); }
.person-sm { align-items: center; }
.person-sm .person-photo img { width: 72px; height: 72px; border-width: 2px; }
.person-sm p { margin: 0; }
@media (max-width: 560px) { .person:not(.person-sm) { flex-direction: column; } }

/* Guide: Check if you can apply */
.elig-check { margin: 14px 0 0; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); }
.elig-check summary { cursor: pointer; font-weight: 700; font-size: 1.02rem; }
.elig-check ol { margin: 10px 0 4px; padding-left: 22px; display: grid; gap: 10px; }
.ec-q { margin: 0 0 4px; }
.ec-a { display: flex; gap: 18px; }
.ec-a label { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; cursor: pointer; padding: 4px 0; }
.ec-a input { width: 18px; height: 18px; }
.ec-why { margin: 4px 0 0; color: var(--bad); font-size: .92rem; }
.ec-result { margin: 8px 0 4px; font-weight: 600; }
.ec-result.ec-yes { color: var(--c-green-ink); }
.ec-result.ec-no { color: var(--bad); }
/* Guide: cost table */
.cost-table { margin: 6px 0 14px; overflow-x: auto; }
.cost-table table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.cost-table caption { text-align: left; font-weight: 700; padding: 0 0 6px; }
.cost-table th, .cost-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.cost-table thead th { background: var(--surface-2); }
.cost-table .ct-group th { background: transparent; color: var(--ink-2); padding-top: 12px; }
.cost-table .ct-num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cost-table tfoot th, .cost-table tfoot td { border-top: 2px solid var(--line-2); border-bottom: 0; }
.ct-opt { display: block; color: var(--ink-3); font-size: .84rem; }
@media print { .elig-check { display: none; } }
@media (max-width: 600px) {
  .cost-table thead { display: none; }
  .cost-table caption { display: block; width: 100%; }
  .cost-table table { min-width: 0; }
  .cost-table table, .cost-table tbody, .cost-table tfoot, .cost-table tr, .cost-table td, .cost-table th { display: block; width: 100%; }
  .cost-table tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  .cost-table td, .cost-table th { border: 0; padding: 2px 0; }
  .cost-table .ct-num { text-align: left; white-space: normal; }
  .cost-table .ct-num::before { content: attr(data-label) ": "; color: var(--ink-3); font-size: .86rem; }
  .cost-table tfoot th, .cost-table .ct-empty { display: none; }
  .cost-table tfoot tr { border-top: 2px solid var(--line-2); border-bottom: 0; }
}
.sort { font: inherit; font-size: 1rem; padding: 9px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); }

/* Guide additions: what changed, Kiswahili, next steps, alerts, document checklist */
.g-new { margin: 10px 0 0; font-size: .95rem; color: var(--chalk-2, var(--ink-2)); }
.board .g-new { color: #e9e4d6; }
.g-sw { margin: 10px 0 0; }
.g-sw summary { cursor: pointer; font-weight: 700; color: var(--link); }
.g-next { margin: 14px 0 0; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); }
.g-next-h { font-family: var(--font); font-size: 1.02rem; font-weight: 700; margin: 0 0 6px; }
.g-next ol { margin: 0 0 6px; padding-left: 22px; }
.g-remind { margin: 18px 0 0; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); }
.g-remind p { margin: 0 0 8px; }
.doc-check { margin: 12px 0; padding: 12px 16px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); }
.doc-check summary { cursor: pointer; font-weight: 700; }
.doc-check ul { list-style: none; padding: 0; margin: 8px 0 10px; display: grid; gap: 6px; }
.doc-check label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.doc-check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
@media print { .g-remind, .g-next a, .g-next-print, .fb, .toc-fab, .toc-sheet, .print-cta, .g-remind-inline, .kf-remind, .g-deadline-remind { display: none !important; } }
}

.home-search { display: flex; gap: 8px; margin: 18px 0 6px; max-width: 560px; }
.home-search input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 12px 16px; border-radius: 12px; border: 2px solid rgba(244,241,232,.45); background: rgba(255,255,255,.95); color: #15171a; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

.al-topics { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 8px 0; display: grid; gap: 6px; }
.al-topics legend { font-weight: 700; padding: 0 4px; }
.al-topics label, .contact-form .al-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.al-form .cf-turnstile { margin: 0; }
.al-topics input, .al-consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.al-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alerts-band { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.alerts-band h2 { margin: 0 0 4px; }
.alerts-band p { margin: 0; max-width: 62ch; color: var(--ink-2); }

/* Kenyan communities abroad (tools/communities.py) */
.cm-tools { display: grid; grid-template-columns: auto 1fr; gap: 8px 12px; align-items: center; max-width: 640px; margin: 16px 0 8px; }
.cm-tools select, .cm-tools input { font: inherit; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); min-width: 0; }
.cm-country { margin: 28px 0 36px; scroll-margin-top: 90px; }
.cm-country h2 small { font-size: .55em; font-weight: 400; margin-left: 6px; }
.cm-mission { margin: 4px 0 10px; }
.cm-voice { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 12px 0; background: var(--bg-soft); }
.cm-voice p { margin: 0 0 6px; }
.cm-src { margin: 0; padding-left: 18px; font-size: .9em; }
.cm-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 14px; margin-top: 12px; }
.cm-group { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); }
.cm-group p { margin: 6px 0; }
.cm-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.cm-top h4 { margin: 0; font-size: 1.05rem; line-height: 1.3; min-width: 0; overflow-wrap: anywhere; }
.cm-meta, .cm-facts { font-size: .88em; color: var(--ink-3); }
.cm-sent { font-size: .92em; }
.cm-why summary { cursor: pointer; font-size: .9em; }
.cm-why ul { margin: 6px 0 0; padding-left: 18px; font-size: .9em; }
.cm-badge { flex: none; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid currentColor; white-space: nowrap; }
.cm-official { color: var(--c-blue); } .cm-high { color: var(--c-green); } .cm-mid { color: var(--c-teal); }
.cm-low { color: var(--ink-3); } .cm-dormant { color: var(--c-amber); } .cm-care { color: var(--c-rose); }
@media (max-width: 560px) { .cm-tools { grid-template-columns: 1fr; } .cm-groups { grid-template-columns: minmax(0, 1fr); } }

/* Header menus (Plan, Help) */
.nav-group { position: relative; display: inline-flex; }
.nav-toggle { font: inherit; font-size: .93rem; font-weight: 500; color: var(--ink-2); background: none; border: 0; border-bottom: 2px solid transparent; padding: 4px 2px; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; }
.nav-toggle:hover, .nav-group.open .nav-toggle { color: var(--ink); }
.nav-toggle.is-current { color: var(--ink); border-bottom-color: var(--accent); }
.nav-toggle .chev { width: 14px; height: 14px; transition: transform .15s; }
.nav-group.open .chev { transform: rotate(180deg); }
.nav-menu { display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px; z-index: 70; text-align: left; }
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-group.open .nav-menu { display: block; }
.hdr-nav .nav-menu a { display: block; padding: 9px 12px; border-bottom: 0; border-radius: 8px; white-space: nowrap; }
.hdr-nav .nav-menu a:hover { background: var(--bg-soft); }
.hdr-nav .nav-menu a[aria-current="page"] { color: var(--accent); }
.nav-menu .nav-head { display: block; padding: 10px 12px 4px; font-size: .8rem; font-weight: 700; color: var(--ink-3); }
.nav-menu .nav-head:first-child { padding-top: 6px; }
.nav-menu .nav-head:not(:first-child) { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
@media (hover: hover) and (min-width: 901px) {
  .nav-group:hover .nav-menu, .nav-group:has(:focus-visible) .nav-menu { display: block; }
  .nav-group.shut .nav-menu { display: none; }
  .nav-group:hover .chev { transform: rotate(180deg); }
}
@media (prefers-reduced-motion: reduce) { .nav-toggle .chev { transition: none; } }
@media (max-width: 900px) {
  .nav-group { display: block; }
  .nav-toggle { width: 100%; justify-content: space-between; padding: 11px 4px; font-size: 1rem; border-bottom: 1px solid var(--line); }
  .nav-toggle.is-current { border-bottom-color: var(--line); color: var(--accent); }
  .nav-menu { position: static; transform: none; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 0 14px; min-width: 0; background: none; }
  .nav-menu::before { display: none; }
  .hdr-nav .nav-menu a { border-bottom: 1px solid var(--line); border-radius: 0; padding: 11px 4px; }
  .nav-menu .nav-head, .nav-menu .nav-head:first-child, .nav-menu .nav-head:not(:first-child) { padding: 14px 4px 4px; margin: 0; border-top: 0; }
}

/* Email alerts form (alerts.html) */
.al-box { max-width: 680px; padding: 22px 22px 18px; }
.al-form { display: grid; gap: 14px; }
.al-field label { display: block; font-weight: 700; margin-bottom: 6px; }
.al-field input { font: inherit; font-size: 1.05rem; width: 100%; padding: 13px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); }
.al-field input[aria-invalid="true"] { border-color: var(--bad); }
.al-topics { border: 0; padding: 0; margin: 0; }
.al-topics legend { font-weight: 700; padding: 0; margin-bottom: 8px; }
.al-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.al-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; background: var(--surface); }
.al-card:hover { border-color: var(--ink-3); }
.al-card:has(input:checked) { border-color: var(--c-green); background: var(--c-green-bg); }
.al-card input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.al-card span { display: grid; gap: 2px; }
.al-card small { color: var(--ink-3); font-size: .86rem; line-height: 1.35; }
.al-item { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--c-blue-bg); border: 1px solid var(--c-blue-bd); }
.contact-form .al-consent, .al-form .al-consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.al-form .al-consent input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.al-err { margin: 6px 0 0; color: var(--bad); font-weight: 600; font-size: .92rem; }
.al-alert { padding: 12px 14px; border-radius: 12px; border: 1px solid; }
.al-alert.al-bad { color: var(--bad); background: color-mix(in srgb, var(--bad) 8%, var(--surface)); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.al-alert.al-info { color: var(--ink); background: var(--c-blue-bg); border-color: var(--c-blue-bd); }
.al-submit { justify-self: start; font-size: 1.05rem; padding: 13px 26px; display: inline-flex; align-items: center; gap: 10px; }
.al-submit:disabled { opacity: .75; cursor: progress; }
.al-spin { display: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: al-spin .8s linear infinite; }
.al-submit.is-busy .al-spin { display: inline-block; }
@keyframes al-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .al-spin { animation-duration: 2.4s; } }
.al-fine { margin: 0; }
.al-done { text-align: center; padding: 10px 4px 4px; }
.al-done-ico { width: 56px; height: 56px; color: var(--c-green); padding: 12px; border-radius: 50%; background: var(--c-green-bg); box-sizing: content-box; }
.al-done h2 { margin: 12px 0 6px; }
.al-done p { font-size: 1.05rem; }
.al-tips { text-align: left; max-width: 520px; margin: 14px auto; padding-left: 20px; color: var(--ink-2); }
.al-done .apply-row { justify-content: center; flex-wrap: wrap; }
@media (max-width: 560px) { .al-cards { grid-template-columns: 1fr; } .al-box { padding: 18px 16px; } .al-submit { justify-self: stretch; justify-content: center; } }
.al-box + h2 { margin-top: 32px; }

/* Blog (tools/blog.py) */
.blog-post .b-body { max-width: 720px; margin: 0 auto; font-size: 1.06rem; }
.b-body h2 { margin-top: 2em; text-wrap: balance; scroll-margin-top: 90px; }
.b-body h3 { margin-top: 1.4em; scroll-margin-top: 90px; }
.b-body p, .b-body li { text-wrap: pretty; }
.b-body > p:first-of-type, .b-body > .b-toc + p { font-size: 1.12rem; }
.b-body blockquote { margin: 1.2em 0; padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.b-byline { color: var(--chalk-2); font-size: .95rem; margin: 8px 0 0; }
.b-byline a { color: inherit; }
.b-table { overflow-x: auto; margin: 1em 0; border: 1px solid var(--line); border-radius: 12px; }
.b-table table { border-collapse: collapse; width: 100%; font-size: .95rem; font-variant-numeric: tabular-nums; }
.b-table th, .b-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.b-table th { background: var(--bg-soft); }
.b-table tr:last-child td { border-bottom: 0; }
.b-draft { max-width: 720px; margin: 0 auto 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--c-amber-bd); background: var(--c-amber-bg); }
.b-toc { margin: 0 0 1em; }
.b-foot { margin-top: 2em; }
.b-index { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; margin-top: 18px; }
.b-list { display: grid; gap: 14px; min-width: 0; }
.b-meta { font-size: .86rem; color: var(--ink-3); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.b-pill { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; }
.b-feat { border: 1px solid var(--line-2); border-radius: var(--radius); padding: 24px 26px; background: var(--surface); box-shadow: var(--shadow); }
.b-feat h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); line-height: 1.2; margin: 10px 0 8px; }
.b-feat h2 a, .b-card h3 a { color: var(--ink); text-decoration: none; }
.b-feat h2 a:hover, .b-card h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.b-desc { color: var(--ink-2); margin: 0 0 14px; }
.b-more-h { font-size: 1.2rem; margin: 18px 0 2px; }
.b-grid, .b-rm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; }
.b-card { border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; background: var(--surface); display: flex; flex-direction: column; min-width: 0; }
.b-card h3 { font-size: 1.12rem; line-height: 1.3; margin: 8px 0 6px; }
.b-card .b-desc { font-size: .94rem; }
.b-more { margin-top: auto; font-weight: 700; font-size: .92rem; }
.b-side { display: grid; gap: 14px; position: sticky; top: 140px; }
.b-side h3 { margin: 0 0 6px; font-size: 1.05rem; }
.b-side p { color: var(--ink-2); font-size: .94rem; }
.b-rss { margin-left: 8px; font-size: .92rem; font-weight: 600; }
.b-readmore { margin: 30px 0 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.b-readmore h2 { font-size: 1.35rem; margin: 0 0 12px; }
.b-rm-all { margin: 12px 0 0; font-weight: 600; }
@media (max-width: 900px) { .b-index { grid-template-columns: minmax(0, 1fr); } .b-side { position: static; } }
@media (max-width: 560px) {
  .b-table { border: 0; }
  .b-table thead { display: none; }
  .b-table table, .b-table tbody, .b-table tr, .b-table td { display: block; width: auto; box-sizing: border-box; }
  .b-table { overflow-x: visible; }
  .b-table table { min-width: 0; }
  .b-table tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 4px 0; }
  .b-table td { border: 0; padding: 6px 12px; }
  .b-table td::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; color: var(--ink-3); }
}

/* "Ask for help" button and panel (app.js buildAskHelp) */
.ask-fab { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); font: inherit; font-weight: 650; font-size: .95rem; cursor: pointer; box-shadow: var(--shadow-lg); }
.ask-fab svg { width: 20px; height: 20px; flex: none; }
.ask-fab:hover { filter: brightness(1.15); }
.ask-fab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.ask-fab.is-open { display: none; }
.ask-panel { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 95; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 110px); overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 16px 18px 14px; }
.ask-panel[hidden] { display: none; }
.ask-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ask-head h2 { font-size: 1.2rem; margin: 0; }
.ask-x { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--ink); cursor: pointer; flex: none; }
.ask-x svg { width: 18px; height: 18px; }
.ask-page { font-size: .92rem; color: var(--ink-2); margin: 8px 0 4px; }
.ask-form { display: grid; gap: 4px; }
.ask-form label { font-weight: 700; font-size: .92rem; margin-top: 8px; }
.ask-form input, .ask-form select, .ask-form textarea { font: inherit; font-size: 1rem; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; }
.ask-form textarea { resize: vertical; min-height: 92px; }
.ask-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.ask-ts:not(:empty) { margin-top: 8px; }
.ask-err { color: var(--bad); font-size: .92rem; margin: 6px 0 0; }
.ask-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ask-btns .btn { flex: 1 1 auto; justify-content: center; }
.ask-btns .btn:disabled { opacity: .65; cursor: progress; }
.ask-done { padding: 6px 0; }
.ask-note { font-size: .84rem; color: var(--ink-3); margin: 12px 0 0; line-height: 1.45; }
body.has-ask .site-footer .legal { padding-bottom: 64px; }
@media (max-width: 600px) {
  .ask-fab { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); padding: 10px 14px; }
  .ask-panel { right: 0; left: 0; bottom: 0; width: 100%; max-height: 88vh; border-radius: var(--radius) var(--radius) 0 0; padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px)); }
}
@media print { .ask-fab, .ask-panel { display: none !important; } }
body:has(.site-header nav.open) .ask-fab { display: none; }

/* ---- Printing: always print in light colours, whatever the screen theme ---- */
.print-only { display: none; }
@page { margin: 14mm 14mm 16mm; }
@media print {
  :root:not([data-theme="zzz"]), :root[data-theme="dark"] {
    --bg: #fff; --bg-soft: #fff; --surface: #fff; --surface-2: #f3f2ee; --ink: #111; --ink-2: #333; --ink-3: #555;
    --line: #d0cdc6; --line-2: #a9a59c; --brand: #111; --brand-ink: #fff; --link: #0b4f4a;
    --c-blue-bg: #e8effc; --c-green-bg: #e3f3eb; --c-purple-bg: #efe9fb; --c-amber-bg: #fcf2da; --c-rose-bg: #fbe6eb; --c-teal-bg: #e1f2f4;
    --c-green-ink: #08704a; --c-rose-ink: #a8173c; --c-amber-ink: #7a4f00;
    --ok: #0f7a4d; --ok-soft: #e2f3ea; --warn: #8a5a00; --warn-soft: #fff3d6; --bad: #b42318; --bad-soft: #fdeceb; --info: #1d4f91; --info-soft: #e7effb; --grey-soft: #efeeea;
    --shadow: none; --shadow-lg: none; color-scheme: light;
  }
  html, body { background: #fff !important; color: #111; }
  .print-only { display: block; }

}

/* ---- UI: plain "Checked" date on cards (warnings stay as pills) ---- */
.checked-txt { display: inline-flex; align-items: center; font-size: .82rem; color: var(--ink-3); font-weight: 600; padding: 3px 2px; }

/* ---- Reminders next to deadlines ---- */
.kf-remind { font-size: .88rem; font-weight: 700; white-space: nowrap; }
.g-deadline-remind { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: .92rem; margin-top: 4px; }
.g-remind-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); }
.g-remind-inline > span { flex: 1 1 260px; }
.i { width: 18px; height: 18px; flex: none; }

/* ---- Printables: buttons and the "Printable" strip ---- */
.btn-print { gap: 7px; }
.print-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 16px 0 6px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); }
.print-cta-ico { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); flex: none; }
.print-cta-ico .i { width: 22px; height: 22px; }
.print-cta-txt { flex: 1 1 280px; min-width: 0; }
.print-cta-t { font-weight: 700; margin: 0; }
.print-cta-d { margin: 2px 0 0; font-size: .93rem; color: var(--ink-2); }
.cost-print { margin-top: 14px; width: 100%; justify-content: center; }
.g-next-print { margin-top: 8px; }

/* ---- Phones: "On this page" button ---- */
.toc-fab { position: fixed; left: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); z-index: 89; display: none; align-items: center; gap: 7px; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: inherit; font-weight: 650; font-size: .92rem; box-shadow: var(--shadow-lg); cursor: pointer; }
.toc-fab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.toc-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 96; max-height: 75vh; overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; box-shadow: var(--shadow-lg); padding: 12px 18px calc(16px + env(safe-area-inset-bottom, 0px)); }
.toc-sheet[hidden], .toc-fab[hidden] { display: none !important; }
.toc-sheet-head { display: flex; justify-content: space-between; align-items: center; }
.toc-sheet-head p { font-weight: 700; margin: 0; font-size: 1.05rem; }
.toc-sheet ol { margin: 8px 0 0; padding-left: 22px; }
.toc-sheet li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.toc-sheet li:last-child { border-bottom: 0; }
.toc-sheet a { color: var(--ink); text-decoration: none; display: block; }
@media (max-width: 900px) { .toc-fab { display: inline-flex; } }

/* ---- "Did this page answer your question?" ---- */
.fb { margin: 28px 0 8px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); }
.fb-h { font-family: var(--font); font-size: 1.08rem; font-weight: 700; margin: 0 0 10px; }
.fb-btns { display: flex; gap: 8px; }
.fb-btns .btn { min-width: 84px; justify-content: center; }
.fb-yes p, .fb-done { margin: 0 0 8px; }
.fb-no { display: grid; gap: 4px; max-width: 560px; }
.fb-no[hidden], .fb-yes[hidden], .fb-done[hidden], .fb-btns[hidden] { display: none; }
.fb-no label { font-weight: 700; font-size: .92rem; margin-top: 6px; }
.fb-no textarea, .fb-no input { font: inherit; font-size: 1rem; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--ink); width: 100%; }
.fb-no .btn { justify-self: start; margin-top: 10px; }
.fb-err { color: var(--bad); font-size: .92rem; margin: 6px 0 0; }

/* ---- Printable sheets (print.js) ---- */
.pz-sheet { display: none; }
@media print {
  body.pz-printing > *:not(#pz-sheet) { display: none !important; }
  body.pz-printing { margin: 0; }
  body.pz-printing .pz-sheet { display: block; color: #111; font-family: var(--font); font-size: 10.5pt; line-height: 1.42; }
  .pz-mark { position: fixed; top: 46%; left: 50%; transform: translate(-50%, -50%) rotate(-28deg); font-family: var(--serif); font-size: 64pt; font-weight: 700; color: rgba(0,0,0,.03); white-space: nowrap; pointer-events: none; z-index: 0; }
  .pz-head, .pz-body, .pz-from { position: relative; z-index: 1; }
  .pz-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; border-bottom: 2px solid #111; padding-bottom: 10px; margin-bottom: 12px; }
  .pz-head-l { flex: 1; min-width: 0; }
  .pz-brand { font-family: var(--serif); font-weight: 700; font-size: 11pt; margin: 0; }
  .pz-brand em { font-style: italic; color: #b8431f; }
  .pz-kind { margin: 6px 0 0; font-size: 9.5pt; font-weight: 700; color: #b8431f; }
  .pz-head h1 { font-family: var(--serif); font-size: 18pt; line-height: 1.18; margin: 2px 0 4px; }
  .pz-intro { margin: 0 0 4px; font-size: 10.5pt; }
  .pz-meta { margin: 0; font-size: 8.5pt; color: #555; }
  .pz-qr { width: 25mm; flex: none; text-align: center; font-size: 7pt; color: #555; }
  .pz-qr svg { width: 25mm; height: 25mm; display: block; margin-bottom: 2px; }
  .pz-body h2 { font-family: var(--serif); font-size: 12.5pt; margin: 14px 0 6px; break-after: avoid; }
  .pz-body h3 { font-size: 10.5pt; margin: 0 0 3px; }
  .pz-box { display: inline-block; width: 13px; height: 13px; border: 1.5px solid #111; border-radius: 3px; flex: none; margin-top: 2px; text-align: center; font-size: 11px; line-height: 12px; font-weight: 800; }
  .pz-ticks, .pz-steps, .pz-plain, .pz-num, .pz-links { margin: 0; padding: 0; }
  .pz-ticks { list-style: none; }
  .pz-ticks li { display: flex; gap: 10px; padding: 5px 0; border-bottom: 1px solid #e3e0d9; break-inside: avoid; }
  .pz-ticks.pz-tight li { padding: 3px 0; font-size: 9.5pt; }
  .pz-hint { color: #555; font-size: 9pt; }
  .pz-steps { list-style: none; counter-reset: s; }
  .pz-steps > li { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid #e3e0d9; break-inside: avoid; counter-increment: s; }
  .pz-step-t { font-weight: 700; margin: 0; }
  .pz-step-t::before { content: counter(s) ". "; }
  .pz-step-d { margin: 2px 0 0; font-size: 9.5pt; color: #333; }
  .pz-done { margin: 4px 0 0; font-size: 8.5pt; color: #555; display: flex; gap: 6px; align-items: flex-end; }
  .pz-done span { display: inline-block; width: 38mm; border-bottom: 1px solid #888; height: 1em; }
  .pz-plain { padding-left: 16px; }
  .pz-plain li, .pz-num li { margin: 0 0 4px; break-inside: avoid; }
  .pz-num { padding-left: 18px; }
  .pz-links { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 9pt; }
  .pz-links span { color: #444; word-break: break-all; }
  .pz-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; margin: 0; }
  .pz-facts div { border-top: 1px solid #ccc; padding-top: 4px; break-inside: avoid; }
  .pz-facts dt { font-size: 8.5pt; color: #555; font-weight: 700; }
  .pz-facts dd { margin: 0; font-weight: 600; }
  .pz-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
  .pz-warn { margin: 12px 0 0; padding: 8px 10px; border: 1.5px solid #111; border-radius: 6px; font-size: 9.5pt; break-inside: avoid; }
  .pz-warn ul { margin: 4px 0 0; }
  .pz-name { display: grid; grid-template-columns: max-content 1fr max-content 36mm; gap: 0 10px; align-items: end; margin: 2px 0 10px; font-size: 10pt; }
  .pz-name span { border-bottom: 1px solid #777; height: 1.3em; }
  .pz-lines div { height: 22px; border-bottom: 1px solid #aaa; }
  .pz-table, .pz-fill { width: 100%; border-collapse: collapse; font-size: 9pt; }
  .pz-table th, .pz-table td { border: 1px solid #ccc; padding: 4px 6px; text-align: left; vertical-align: top; }
  .pz-table thead th { background: #f1efea; }
  .pz-table tr { break-inside: avoid; }
  .pz-num-c { white-space: nowrap; text-align: right !important; }
  .pz-costs .pz-quote { width: 32mm; }
  .pz-costs tfoot th { background: #f1efea; font-size: 10pt; }
  .pz-fill th { background: none !important; color: #111; text-align: left; font-weight: 600; width: 45%; padding: 7px 8px 7px 0; border-bottom: 1px solid #888; vertical-align: bottom; }
  .pz-fill td { border-bottom: 1px solid #888; }
  .pz-small { font-size: 8.5pt; color: #555; margin: 6px 0 0; }
  .pz-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .pz-month { border: 1px solid #bbb; border-radius: 6px; padding: 6px 8px; break-inside: avoid; }
  .pz-month h3 { font-family: var(--serif); font-size: 10.5pt; border-bottom: 1px solid #ddd; padding-bottom: 2px; }
  .pz-month ul { margin: 0; padding-left: 13px; font-size: 7.8pt; line-height: 1.32; }
  .pz-gloss { columns: 2; column-gap: 18px; margin: 0; }
  .pz-gloss div { break-inside: avoid; margin: 0 0 7px; }
  .pz-gloss dt { font-weight: 700; }
  .pz-gloss dd { margin: 0; font-size: 9.5pt; }
  .pz-from { margin-top: 16px; padding: 10px 12px; border: 1px solid #111; border-radius: 6px; font-size: 8.8pt; break-inside: avoid; }
  .pz-from p { margin: 0 0 4px; }
  .pz-from-h { font-family: var(--serif); font-weight: 700; font-size: 10pt; }
  .pz-url { font-weight: 700; margin: 4px 0 0 !important; }
}

/* Printables page */
.pr-card { display: flex; flex-direction: column; }
.pr-card h3 { margin-bottom: 6px; }
.pr-card p { color: var(--ink-2); }
.pr-links { margin: auto 0 0; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }

/* ---- About page ---- */
.ab-hero { display: flex; gap: 28px; align-items: center; }
.ab-photo img { display: block; width: 150px; height: 150px; border-radius: 50%; object-fit: cover; border: 3px solid var(--chalk); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.ab-hero-txt { min-width: 0; }
.ab-hero-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 16px 0 0; }
.board .ab-btn-light, .board .ab-btn-light:visited { background: var(--chalk); color: #15171a !important; border-color: var(--chalk); }
.ab-btn-light:hover { filter: brightness(.95); }
.ab-hero-link { color: var(--chalk); font-weight: 600; }
.ab-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.ab-stats > div { padding: 16px 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.ab-stats > div:first-child { border-left: 0; }
.ab-num { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ab-num:empty::before { content: "\2013"; color: var(--ink-3); }
.ab-lbl { color: var(--ink-2); font-size: .92rem; }
.ab-story { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.ab-story-txt p { font-size: 1.06rem; max-width: 64ch; }
.ab-quote { margin: 0; padding: 22px 24px; background: var(--bg-soft); border-radius: var(--radius); }
.ab-quote p { font-family: var(--serif); font-size: 1.35rem; line-height: 1.35; margin: 0 0 10px; }
.ab-quote footer { color: var(--ink-3); font-weight: 600; font-size: .92rem; }
.ab-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ab-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; min-width: 0; }
.ab-tile h3 { font-size: 1.05rem; margin: 10px 0 6px; }
.ab-tile p { color: var(--ink-2); font-size: .95rem; margin: 0 0 10px; }
.ab-tile a { margin-top: auto; font-weight: 700; font-size: .93rem; }
.ab-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-soft); color: var(--ink); flex: none; }
.ab-ico svg { width: 20px; height: 20px; }
.ab-more { margin-top: 14px; }
.ab-promise { padding: 28px 32px; }
.ab-promise h2 { color: var(--chalk); margin-top: 0; }
.ab-promise ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 1.04rem; color: var(--chalk); max-width: 70ch; }
.ab-sign { font-family: var(--hand); font-size: 2.1rem; color: var(--chalk); margin: 14px 0 0; line-height: 1; }
.ab-money { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ab-support h3 { margin-top: 0; }
.ab-contact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.ab-ct { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; min-width: 0; }
.ab-ct:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.ab-ct strong { display: block; overflow-wrap: anywhere; }
.ab-ct span span { display: block; color: var(--ink-2); font-size: .92rem; margin-top: 2px; }
@media (max-width: 960px) { .ab-grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ab-contact { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .ab-story, .ab-money { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ab-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ab-stats > div:nth-child(3) { border-left: 0; }
  .ab-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .ab-hero { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ab-photo img { width: 112px; height: 112px; }
  .ab-grid4 { grid-template-columns: minmax(0, 1fr); }
  .ab-promise { padding: 22px 20px; }
}

/* M-Pesa till sticker (About support box, Help Desk) */
.mpesa { margin: 14px 0 6px; max-width: 520px; }
.mpesa img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.mpesa figcaption { font-size: .9rem; color: var(--ink-2); margin-top: 8px; }
.mpesa-sm { max-width: 360px; }

/* ---- Contact page ---- */
.ct-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 0; }
.ct-main { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.ct-main .contact-form { max-width: none; gap: 4px; padding: 22px; }
.ct-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
.ct-row > div { display: grid; gap: 4px; min-width: 0; }
.ct-fix { display: grid; gap: 4px; margin-top: 4px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--bg-soft); }
.ct-fix[hidden] { display: none; }
.ct-fix p { margin: 2px 0 0; }
.ct-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ct-btns .btn { flex: 1 1 180px; justify-content: center; }
.ct-btns .btn:disabled { opacity: .65; cursor: progress; }
.cf-ts:not(:empty) { margin-top: 10px; }
.contact-form #cf-note { margin: 10px 0 0; }
.ct-done { padding: 22px; }
.ct-done[hidden] { display: none; }
.ct-side { display: grid; gap: 14px; position: sticky; top: 140px; }
.ct-side h3 { margin: 0 0 8px; font-size: 1.08rem; }
.ct-tips { margin: 0; padding-left: 18px; display: grid; gap: 8px; font-size: .95rem; color: var(--ink-2); }
.ct-tips strong { color: var(--ink); }
.ct-safe { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); }
.ct-safe p { font-size: .95rem; margin: 0 0 8px; }
.ct-safe p:last-child { margin-bottom: 0; }
@media (max-width: 900px) { .ct-main { grid-template-columns: minmax(0, 1fr); } .ct-side { position: static; } .ct-quick { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .ct-row { grid-template-columns: minmax(0, 1fr); } .ct-main .contact-form { padding: 16px; } }

/* ---- Kenyans abroad: stats, country index, headings ---- */
.cm-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.cm-stats > div { padding: 14px 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.cm-stats > div:first-child { border-left: 0; }
.cm-index { margin: 14px 0 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); scroll-margin-top: 140px; }
.cm-index-h { font-weight: 700; margin: 0 0 10px; }
.cm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cm-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer; }
.cm-chip:hover { border-color: var(--ink-3); }
.cm-chip.is-on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.cm-n { font-size: .78rem; font-weight: 700; color: var(--ink-3); background: var(--bg-soft); border-radius: 999px; padding: 0 7px; }
.cm-chip.is-on .cm-n { background: transparent; color: inherit; }
.cm-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 8px; }
.cm-h h2 { margin: 0; }
.cm-back { font-size: .9rem; font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) { .cm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cm-stats > div:nth-child(3) { border-left: 0; } .cm-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* ---- Help while abroad ---- */
.hw-sos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0 8px; }
.hw-sos-card { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); text-decoration: none; min-width: 0; }
a.hw-sos-card:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.hw-sos-card h2 { font-family: var(--font); font-size: 1.05rem; margin: 2px 0 4px; }
.hw-sos-card p { margin: 0; font-size: .94rem; color: var(--ink-2); }
.hw-urgent { background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, var(--line)); }
.hw-urgent .ab-ico { color: var(--bad); background: var(--surface); }
.hw-rights { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hw-rights li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); min-width: 0; }
.hw-banner { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-soft); color: var(--ink); text-decoration: none; }
.hw-banner:hover { box-shadow: var(--shadow); }
.hw-banner > span:nth-child(2) { flex: 1; min-width: 0; }
.hw-banner strong { display: block; font-size: 1.05rem; }
.hw-banner span span { display: block; color: var(--ink-2); font-size: .94rem; margin-top: 2px; }
.hw-go { font-size: 1.4rem; font-weight: 700; }
.hw-faq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
.hw-faq details { margin: 0; }
#wrong, #contacts { scroll-margin-top: 140px; }
.hw-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 12px; }
.hw-filter label { font-weight: 700; }
.hw-filter select { font: inherit; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); width: auto; min-width: 220px; }
.hw-table tr[hidden] { display: none; }
@media (max-width: 900px) { .hw-sos, .hw-rights { grid-template-columns: minmax(0, 1fr); } .hw-faq { grid-template-columns: minmax(0, 1fr); } }
/* Phones: tables become one card per row. .tw-stack tables get their data-label from the header row (app.js stackTables). */
@media (max-width: 640px) {
  .hw-table, .tw-stack { border: 0; background: none; overflow: visible; }
  .hw-table table, .hw-table tbody, .hw-table tr, .hw-table td, .tw-stack table, .tw-stack tbody, .tw-stack tr, .tw-stack td { display: block; width: 100%; min-width: 0; }
  .hw-table td, .tw-stack td { overflow-wrap: anywhere; }
  .hw-table thead, .tw-stack thead { display: none; }
  .hw-table tr, .tw-stack tr { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 10px 14px; margin-bottom: 10px; }
  .hw-table td, .tw-stack td { border: 0; padding: 3px 0; }
  .hw-table td::before, .tw-stack td[data-label]::before { content: attr(data-label); display: block; font-size: .78rem; font-weight: 700; color: var(--ink-3); }
  .tw-stack td:first-child { font-weight: 700; font-size: 1.02rem; padding-bottom: 6px; }
  .tw-stack td:first-child::before { display: none; }
}

/* ---- Email alerts page ---- */
.al-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.al-layout .al-box { max-width: none; }
.al-side { display: grid; gap: 14px; }
.al-side h3 { margin: 0 0 8px; font-size: 1.05rem; }
.al-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); font-size: .95rem; }
.al-steps strong { color: var(--ink); }
.al-sample-h { font-weight: 700; margin: 0 0 8px; }
.al-mail { border: 1px solid var(--line); border-radius: 10px; background: var(--bg); padding: 12px 14px; font-size: .9rem; }
.al-mail p { margin: 0 0 6px; }
.al-mail-from { color: var(--ink-3); font-size: .82rem; }
.al-mail-subj { font-weight: 700; }
.al-mail-foot { color: var(--ink-3); font-size: .8rem; margin: 8px 0 0 !important; border-top: 1px solid var(--line); padding-top: 6px; }
.al-promise ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: .95rem; }
.al-ways .ab-tile { color: var(--ink); text-decoration: none; }
.al-ways .ab-tile h3 { margin-top: 0; }
.al-ways .ab-tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.al-go { margin-top: auto; font-weight: 700; font-size: .93rem; color: var(--link); }
@media (max-width: 900px) { .al-layout { grid-template-columns: minmax(0, 1fr); } }

/* ---- Help Desk ---- */
.hd-svcs .card { display: flex; flex-direction: column; }
.hd-svcs .card > p.small { font-size: .95rem; font-weight: 700; color: var(--ink); background: var(--bg-soft); border-radius: 8px; padding: 6px 10px; margin: 4px 0 10px; }
.hd-svcs .card ul { color: var(--ink-2); font-size: .95rem; }
.hd-svcs .card .btn { margin-top: auto; align-self: flex-start; }
.hd-how { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.hd-steps { list-style: none; counter-reset: hd; margin: 0; padding: 0; display: grid; gap: 10px; }
.hd-steps li { counter-increment: hd; position: relative; padding: 14px 16px 14px 60px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hd-steps li::before { content: counter(hd); position: absolute; left: 16px; top: 13px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; border: 2px solid var(--ink); background: var(--surface); }
.hd-pay { position: sticky; top: 140px; scroll-margin-top: 140px; }
.hd-pay-h { font-weight: 700; margin: 0 0 6px; }
.hd-pay .mpesa { margin-top: 0; }
.hd-more { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hd-more-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hd-more-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 16px 18px; display: flex; flex-direction: column; min-width: 0; }
.hd-more-card h3 { margin: 0 0 6px; font-size: 1.05rem; }
.hd-more-card p { color: var(--ink-2); font-size: .95rem; }
.hd-more-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.hd-chip { flex: none; font-size: .78rem; font-weight: 700; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.hd-chip.soon { background: var(--warn-soft); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 30%, var(--line)); }
.hd-link { margin-top: auto; font-weight: 700; font-size: .93rem; }
.hd-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.hd-two h2 { font-size: 1.3rem; margin-top: 0; }
.hd-two h3 { font-size: 1.02rem; margin: 14px 0 4px; }
.hd-two ul { padding-left: 18px; }
@media (max-width: 900px) { .hd-how, .hd-two, .hd-more, .hd-more-3 { grid-template-columns: minmax(0, 1fr); } .hd-pay { position: static; } }

/* ---- Sources page ---- */
.src-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 12px; }
.src-tools input { font: inherit; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); width: min(100%, 420px); }
.src-group { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 10px; }
.src-group summary { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; cursor: pointer; font-weight: 700; font-family: var(--serif); font-size: 1.08rem; }
.src-c { font-family: var(--font); font-weight: 600; font-size: .88rem; color: var(--ink-3); }
.src-group ul { list-style: none; margin: 0; padding: 0 16px 10px; }
.src-item { padding: 9px 0; border-top: 1px solid var(--line); font-size: .95rem; }
.src-item[hidden], .src-group[hidden] { display: none; }
.src-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.src-links a { font-size: .82rem; padding: 2px 9px; border: 1px solid var(--line-2); border-radius: 999px; text-decoration: none; color: var(--link); background: var(--bg); }
.src-links a:hover { border-color: var(--link); }

/* ---- All guides hub ---- */
.gh-tools { margin: 18px 0 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: grid; gap: 12px; scroll-margin-top: 140px; }
.gh-tools input { font: inherit; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--ink); width: min(100%, 460px); }
.gh-tools #gh-none { margin: 0; }
.gh-sec { scroll-margin-top: 140px; }
.gh-sec[hidden], .g-rel[hidden] { display: none !important; }
.gh-sec .cm-h h2 small { font-size: .55em; font-weight: 400; margin-left: 6px; }

/* ---- Legal pages (Privacy, Disclaimer): In short + On this page ---- */
.lg-wrap { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: start; }
.lg-side { position: sticky; top: 140px; }
.lg-toc p { font-weight: 700; margin: 0 0 8px; }
.lg-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line-2); }
.lg-toc a { display: block; padding: 5px 12px; color: var(--ink-2); text-decoration: none; font-size: .92rem; }
.lg-toc a:hover { color: var(--ink); }
.lg-body { min-width: 0; max-width: 760px; }
.lg-body h2 { scroll-margin-top: 140px; }
.lg-short { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-soft); padding: 16px 20px; margin: 0 0 8px; }
.lg-short-h { font-weight: 700; margin: 0 0 6px; }
.lg-short ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
@media (max-width: 900px) { .lg-wrap { grid-template-columns: minmax(0, 1fr); gap: 12px; } .lg-side { position: static; } .lg-toc ol { columns: 2; } }

/* ---- Departure checklist: stage cards and stage chips ---- */
.ck-nav { margin-top: 10px; }
.ck-nav .cm-chip { text-decoration: none; font-size: .86rem; padding: 4px 10px; }
.ck-actions { margin: 12px 0 4px; }
/* Phones: the pinned block is only the progress line, the bar and ONE swipeable row of stage links (it covered a third
   of the screen with every chip on its own line). Sideways phones (short screens) do not pin it at all. (3 Dec 2026) */
@media (max-width: 900px) {
  .ck-nav { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; scrollbar-width: none; padding-bottom: 2px; }
  .ck-nav::-webkit-scrollbar { display: none; }
  .ck-nav .cm-chip { flex: none; white-space: nowrap; }
}
@media (max-height: 500px) { .progress { position: static; } }
/* The cost total box is taller than a sideways phone screen: pinned, its payback part could never be seen */
@media (max-height: 700px) { .total-box { position: static; } }
.check-group { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); padding: 14px 16px 6px; margin-bottom: 16px; scroll-margin-top: 200px; }
.ck-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.ck-h h2 { font-size: 1.25rem; margin: 0; }
.ck-c { font-size: .88rem; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.ck-done .ck-c { color: var(--ok); }

/* ---- 404 and FAQ search boxes ---- */
.nf-search { display: flex; gap: 8px; max-width: 560px; margin: 4px 0 8px; }
.nf-search input, .faq-tools input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); }
.faq-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 14px; }
.faq-tools input { flex: 0 1 460px; }
.faq details[hidden], dl.gloss [hidden] { display: none; }
.nf-grid .ab-tile { color: var(--ink); text-decoration: none; }
.nf-grid .ab-tile h3 { margin-top: 0; }
.nf-grid .ab-tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); }

/* ---- Landing page (/start): one goal, no menu ---- */
body[data-landing] .hdr-nav, body[data-landing] .search-btn, body[data-landing] .menu-btn { display: none !important; }
body[data-landing] .site-footer .cols { display: none; }
body[data-landing] .site-footer .legal { margin-top: 0; }
.lp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding: 36px 0 18px; }
.lp-hero h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.08; margin: 0 0 14px; letter-spacing: -0.01em; }
.lp-sub { font-size: 1.15rem; color: var(--ink-2); margin: 0 0 22px; max-width: 34em; }
.lp-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.lp-btn { font-size: 1.08rem; padding: 14px 26px; gap: 10px; }
.lp-btn svg { width: 20px; height: 20px; }
.lp-cta2 { font-weight: 600; }
.lp-micro { font-size: .9rem; color: var(--ink-3); margin: 12px 0 0; }
.lp-shot { margin: 0; }
.lp-shot img { display: block; width: 100%; height: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: var(--surface); }
.lp-shot figcaption { font-size: .85rem; color: var(--ink-3); margin-top: 10px; text-align: center; }
.lp-proof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 18px 0 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.lp-proof > div { padding: 14px 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.lp-proof > div:first-child { border-left: 0; }
.lp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lp-col { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: var(--surface); }
.lp-col h3 { margin: 0 0 10px; font-size: 1.08rem; }
.lp-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lp-col li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.lp-col li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.lp-bad li svg { color: var(--bad); }
.lp-good li svg { color: var(--ok); }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lp-steps li { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--surface); }
.lp-steps h3 { margin: 2px 0 6px; font-size: 1.05rem; }
.lp-steps p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.lp-n { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; border: 2px solid var(--ink); }
.lp-inline-cta { margin: 18px 0 0; }
.lp-inline-cta .btn svg { width: 18px; height: 18px; }
.lp-tile { color: var(--ink); text-decoration: none; }
.lp-tile:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.lp-trust { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.lp-trust ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.lp-person { text-align: center; }
.lp-person img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 10px; }
.lp-person p { margin: 0 0 8px; }
.lp-final { text-align: center; margin: 40px 0 10px; padding: 36px 20px; border-radius: var(--radius); background: var(--board); color: var(--chalk); }
.lp-final h2 { color: var(--chalk); margin: 0 0 8px; }
.lp-final p { margin: 0 0 18px; color: var(--chalk-2); }
.board .lp-btn-light, .lp-final .lp-btn-light, .lp-final .lp-btn-light:visited { background: var(--chalk); color: #15171a !important; border-color: var(--chalk); }
@media (max-width: 900px) {
  .lp-hero { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-top: 22px; }
  .lp-two, .lp-steps, .lp-trust { grid-template-columns: minmax(0, 1fr); }
  .lp-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-proof > div:nth-child(3) { border-left: 0; }
  .lp-proof > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) { .lp-btn { width: 100%; justify-content: center; } }

/* ---- Landing page: "Did you know?" cards ---- */
.dyk-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.dyk-head h2 { margin-bottom: 4px; }
.dyk-nav { display: flex; gap: 8px; }
.dyk-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.dyk-btn:hover { border-color: var(--ink-3); }
.dyk-btn svg { width: 20px; height: 20px; }
.dyk-track { list-style: none; margin: 14px 0 0; padding: 4px 2px 10px; display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 3); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.dyk-track::-webkit-scrollbar { display: none; }
.dyk-track:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: var(--radius); }
.dyk-card { scroll-snap-align: start; min-width: 0; }
.dyk-card a { height: 100%; display: flex; flex-direction: column; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; transition: box-shadow .15s, border-color .15s, transform .15s; }
.dyk-card a:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.dyk-top { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-weight: 700; color: var(--ink-2); font-size: .92rem; }
.dyk-flag { font-size: 1.5rem; line-height: 1; }
.dyk-flag:empty { display: none; }
.dyk-q { font-family: var(--hand); font-size: 1.6rem; line-height: 1; color: var(--accent); margin: 0 0 8px; }
.dyk-t { margin: 0 0 14px; font-size: 1rem; line-height: 1.5; }
.dyk-cta { margin-top: auto; font-weight: 700; color: var(--link); font-size: .95rem; }
.dyk-dots { display: flex; justify-content: center; gap: 6px; margin: 4px 0 10px; }
.dyk-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); transition: background .2s, width .2s; }
.dyk-dots i.on { background: var(--ink); width: 22px; border-radius: 4px; }
@media (max-width: 900px) { .dyk-track { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 600px) { .dyk-track { grid-auto-columns: 86%; } }
@media (prefers-reduced-motion: reduce) { .dyk-card a { transition: none; } }
.lp-h1-b { display: block; color: var(--accent); }
.dyk-pause .i-play, .dyk-pause.is-paused .i-pause { display: none; }
.dyk-pause.is-paused .i-play { display: block; }
.dyk-pause[hidden] { display: none; }

/* ---- Home page hero (merged landing page, 28 Nov 2026) ---- */
.hero .board.home-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; }
.home-h1 { font-family: var(--serif); color: var(--chalk); font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.08; margin: 0 0 6px; letter-spacing: -0.01em; }
.home-h1-b { display: block; color: var(--peach); }
.home-hero .chalk-sub { font-size: clamp(1.05rem, 1.8vw, 1.2rem); line-height: 1.55; color: var(--chalk-2); font-weight: 400; }
.home-cta { font-size: 1.12rem; padding: 15px 26px; }
.home-cta svg { width: 20px; height: 20px; }
.home-micro { font-size: .9rem; color: var(--chalk-2); margin: 14px 0 0; }
.home-hero .home-search { display: block; margin: 22px 0 0; max-width: 460px; }
.home-q-label { display: block; font-size: .92rem; color: var(--chalk-2); margin-bottom: 6px; }
.home-q-row { display: flex; gap: 10px; align-items: center; }
.home-q-row input { flex: 1; min-width: 0; font: inherit; font-size: .98rem; padding: 10px 14px; border-radius: 10px; border: 1px solid rgba(244,241,232,.35); background: rgba(255,255,255,.08); color: var(--chalk); }
.home-q-row input::placeholder { color: rgba(244,241,232,.6); }
.home-q-btn { background: none; border: 0; font: inherit; font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; padding: 6px 2px; }
@media (max-width: 900px) { .hero .board.home-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
@media (max-width: 560px) { .home-cta { width: 100%; justify-content: center; transform: none; } }

/* ---- Home hero collage (AI illustrations) ---- */
.home-collage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hc-tile { position: relative; display: block; border-radius: 6px; overflow: hidden; border: 4px solid var(--chalk); box-shadow: 0 10px 22px rgba(0,0,0,.4); transition: transform .2s; }
.hc-tile:nth-child(1) { transform: rotate(-1.6deg); }
.hc-tile:nth-child(2) { transform: rotate(1.2deg); }
.hc-tile:nth-child(3) { transform: rotate(1deg); }
.hc-tile:nth-child(4) { transform: rotate(-1.2deg); }
.hc-tile:hover, .hc-tile:focus-visible { transform: rotate(0) scale(1.02); }
.hc-tile img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hc-label { position: absolute; left: 8px; bottom: 8px; background: rgba(21,23,26,.82); color: #fff; font-size: .82rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.hc-note { font-size: .78rem; color: var(--chalk-2); text-align: right; margin: 10px 2px 0; opacity: .85; }
@media (max-width: 560px) { .home-collage { gap: 10px; } .hc-tile { border-width: 3px; } .hc-label { font-size: .75rem; padding: 3px 8px; } }
@media (prefers-reduced-motion: reduce) { .hc-tile { transition: none; } }
@media (max-width: 1100px) and (min-width: 861px) { .site-footer .cols { grid-template-columns: repeat(3, 1fr); } .site-footer .cols > div:first-child { grid-column: 1 / -1; } }

/* ---- Blog index (option A): chalkboard covers, featured post, cards ---- */
.bcv { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 16px 18px 16px 24px; min-height: 150px; border-radius: 10px; background: var(--board) radial-gradient(120% 90% at 20% 0%, var(--board-2), transparent); color: var(--chalk); overflow: hidden; border: 6px solid #6b4a2f; }
.bcv::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--c-green-bd); }
.bcv-rose::after { background: var(--c-rose-bd); } .bcv-blue::after { background: var(--c-blue-bd); } .bcv-amber::after { background: var(--c-amber-bd); }
.bcv-k { font-size: .82rem; font-weight: 700; color: var(--chalk-2); }
.bcv-t { font-family: var(--hand); font-weight: 700; font-size: 2rem; line-height: 1.05; }
.bcv-big { min-height: 260px; } .bcv-big .bcv-t { font-size: clamp(2.3rem, 4.5vw, 3.4rem); }
.bx-chips { margin: 22px 0 18px; }
.bx-feat { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.bx-feat h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.2; margin: 10px 0 8px; }
.bx-feat .b-desc { color: var(--ink-2); margin: 0 0 16px; }
.bx-h { margin: 40px 0 14px; }
.bx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.bx-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.bx-card h3 { margin: 2px 4px 0; font-size: 1.15rem; line-height: 1.3; }
.bx-card .b-meta, .bx-card .b-desc { margin: 0 4px; } .bx-card .b-desc { font-size: .94rem; color: var(--ink-2); }
.bx-feat:hover h2, .bx-card:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; }
.bx-feat:focus-visible, .bx-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.bx-none { color: var(--ink-3); }
.bx-band { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; margin: 40px 0 18px; padding: 26px 28px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); }
.bx-band h2 { margin: 0 0 4px; font-size: 1.4rem; } .bx-band p { margin: 0; color: var(--ink-2); }
.bx-band-b { display: flex; gap: 16px; align-items: center; }
.bx-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; margin-bottom: 10px; }
.bx-more .card { color: var(--ink); text-decoration: none; } .bx-more .card h3 { margin: 0 0 6px; font-size: 1.05rem; } .bx-more .card p { margin: 0; color: var(--ink-2); font-size: .94rem; }
.bx-more .card:hover h3 { text-decoration: underline; }
@media (max-width: 760px) { .bx-feat { grid-template-columns: minmax(0, 1fr); padding: 12px; gap: 16px; } .bcv-big { min-height: 180px; } }

/* ---- Home: facts strip in the hero; How it works + Never pay for a job on one board ---- */
.hs-strip { grid-column: 1 / -1; list-style: none; margin: 6px 0 0; padding: 22px 0 0; border-top: 1px dashed rgba(244,241,232,.3); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hs-strip li { display: flex; flex-direction: column; gap: 2px; }
.hs-strip b { font-family: var(--hand); font-size: 2.1rem; line-height: 1; color: var(--chalk); }
.hs-t { color: var(--chalk-2); font-size: .9rem; line-height: 1.35; }
.hs-src { color: var(--chalk-2); opacity: .75; font-size: .78rem; }
.hw2 { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 40px; padding: 40px; }
.hw2 .hand-h { font-family: var(--hand); font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1; margin: 0 0 18px; color: var(--chalk); }
.hw2-n { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--chalk); font-family: var(--hand); font-size: 1.4rem; color: var(--chalk); flex: none; }
.hw2-list { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 18px; }
.hw2-list li { display: flex; gap: 14px; align-items: flex-start; }
.hw2-list h3 { color: var(--chalk); font-size: 1.08rem; margin: 4px 0 0; font-family: inherit; }
.hw2-list p { margin: 4px 0 0; color: var(--chalk-2); font-size: .95rem; }
.hw2-safe { border-left: 1px dashed rgba(244,241,232,.35); padding-left: 36px; }
.hw2-kick { color: var(--chalk-2); font-weight: 700; margin: 0 0 4px; }
.hw2-safe .hand-h { font-size: clamp(1.9rem, 3.6vw, 2.5rem); }
.hw2-rules { display: grid; gap: 12px; margin-bottom: 22px; }
.hw2-rules div { border: 1px dashed rgba(244,241,232,.35); border-radius: 10px; padding: 12px 14px; color: var(--chalk-2); font-size: .93rem; }
.hw2-rules b { display: block; color: var(--chalk); font-family: var(--hand); font-size: 1.4rem; }
.hw2-rules a, .hw2 .link-chalk { color: var(--chalk); }
.hw2 .link-chalk { font-weight: 700; }
@media (max-width: 900px) { .hw2 { grid-template-columns: minmax(0, 1fr); } .hw2-safe { border-left: 0; border-top: 1px dashed rgba(244,241,232,.35); padding: 28px 0 0; } .hs-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .hw2 { padding: 28px 20px; } .hs-strip b { font-size: 1.8rem; } }
/* Guide status banner (closed, paused, not open yet) and rough KSh after foreign amounts */
.g-status { margin: 22px 0 0; }
.g-status p { margin: 0 0 8px; }
.g-status-t { font-size: 1.05rem; }
.alert-warn .g-status-t strong { color: var(--warn); }
.alert-danger .g-status-t strong { color: var(--bad); }
.g-status + .g-short { margin-top: 14px; }
.fx { color: var(--ink-3); font-size: .92em; }
.board .fx { color: inherit; opacity: .78; }
.ask-nudge { font-size: .92rem; margin: 8px 0 0; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--bg-soft); }
.ask-fit { font-size: .9rem; margin: 6px 0 0; padding: 8px 10px; border-radius: var(--radius-sm); background: var(--warn-soft, var(--bg-soft)); }
.ask-warn { font-size: .88rem; color: var(--ink-2); margin: 10px 0 0; line-height: 1.45; }
@media (min-width: 961px) { .ab-grid4.al-ways { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.q-sub { margin: 4px 0 8px; font-size: .95rem; color: var(--ink-2); }
.q-sub + .opts { margin-bottom: 10px; }
.quiz-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.home-alert { margin: 12px 0 14px; padding: 10px 14px; }
.home-alert p { margin: 0; }
.home-alert details { margin-top: 6px; font-size: .95rem; }
.home-alert details p { margin: 6px 0 0; }
.home-alert summary { cursor: pointer; font-weight: 600; }
.home-alert + .hero { padding-top: 4px; }
/* Search (Pagefind): bar with a close button, ranked results, group chips, /search page */
.search-bar { display: flex; align-items: center; border-bottom: 1px solid var(--line); }
.search-bar input { border-bottom: 0 !important; flex: 1; min-width: 0; }
.search-x { flex: none; width: 44px; height: 44px; margin-right: 8px; border: 0; background: transparent; color: var(--ink-2); border-radius: 10px; cursor: pointer; display: grid; place-items: center; }
.search-x:hover { background: var(--surface-2); }
.search-x svg { width: 20px; height: 20px; }
.search-foot { border-top: 1px solid var(--line); }
.sr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px 4px; }
.sr-count { font-size: .85rem; color: var(--ink-3); }
.sr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sr-chip { border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .85rem; cursor: pointer; min-height: 34px; }
.sr-chip span { color: var(--ink-3); margin-left: 2px; }
.sr-chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.sr-chip.on span { color: inherit; opacity: .75; }
.sr-popular { padding: 4px 10px 12px; }
.sr-popular .search-hint { padding: 6px 0 8px; }
.sr-item { border-radius: 10px; }
.search-results a.sr { display: block; padding: 11px 14px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.search-results a.sr .t { display: block; font-weight: 700; margin-top: 1px; }
.search-results a.sr .k { font-size: .8rem; font-weight: 700; color: var(--ink-3); }
.search-results a.sr .d { display: block; color: var(--ink-2); font-size: .9rem; line-height: 1.45; margin-top: 2px; }
.search-results mark { background: color-mix(in srgb, var(--warn) 28%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.sr-status { display: inline-block; margin-left: 8px; font-size: .74rem; font-weight: 700; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: 999px; padding: 0 7px; vertical-align: 1px; }
.search-results a.sr-sub { display: inline-block; margin: -6px 0 6px 14px; padding: 2px 0; font-size: .85rem; color: var(--ink-2); }
.search-results a.sr-more { display: block; text-align: center; font-weight: 700; padding: 12px; }
.sr-fix { margin: 8px 12px 0; font-size: .9rem; }
.sr-empty { padding: 12px 14px 4px; font-size: .95rem; }
.sr-empty p { margin: 0 0 8px; }
.search-page form input { width: 100%; font: inherit; font-size: 1.1rem; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.search-page form input:focus-visible { outline: 3px solid var(--c-blue); outline-offset: 1px; }
.search-page .search-results { max-height: none; padding: 8px 0 0; }
body.search-open .ask-fab { display: none; }
.search-bar input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }

/* ---- Help Desk: notice, free vs paid, call booking (2 Dec 2026) ---- */
.hd-notice ul { margin: .3em 0 0; padding-left: 1.2em; }
.hd-notice li { margin: .25em 0; }
.hd-notice-h { margin: 0; }
.hd-fp { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .hd-fp { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hd-fp h3 { display: flex; align-items: center; gap: 8px; }
.hd-fp ul { margin: 0; padding-left: 1.2em; }
.hd-fp li { margin: .3em 0; }
.hd-chip-paid { background: var(--c-amber-bg); border-color: var(--c-amber-bd); color: var(--c-amber-ink); }
.hd-prices { width: 100%; min-width: 0; border-collapse: collapse; font-size: .95em; }
.hd-prices td { padding: 6px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hd-prices td:last-child { text-align: right; padding-left: 12px; font-weight: 600; min-width: 7.5em; }
.hd-prices tr:last-child td { border-bottom: 0; }
.hd-rule { margin: 14px 0 0; padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; }
.hd-call { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .hd-call { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.hd-call-rules ul { margin: 0; padding-left: 1.2em; }
.hd-call-rules li { margin: .35em 0; }
.hd-book label, .rv-form label { display: block; margin: 10px 0 4px; font-weight: 600; }
.hd-book input[type=text], .hd-book input[type=tel], .hd-book select, .hd-book textarea,
.rv-form input[type=text], .rv-form input[type=email], .rv-form select, .rv-form textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--ink); }
.hd-book textarea, .rv-form textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.hd-book input:focus-visible, .hd-book select:focus-visible, .hd-book textarea:focus-visible,
.rv-form input:focus-visible, .rv-form select:focus-visible, .rv-form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ink-3); }
.hd-book ::placeholder, .rv-form ::placeholder { color: var(--ink-3); }
.rv-form .ct-row { margin-top: 4px; }
.hd-book .cb-first, .rv-form .rv-perm { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; }
.hd-book .cb-first input, .rv-form .rv-perm input { margin-top: .35em; flex: none; }
.hd-book .btn, .rv-form .btn { margin-top: 14px; }

/* ---- Reviews ---- */
.rv-sum { margin: 0 0 12px; }
.rv-list { display: grid; gap: 14px; grid-template-columns: 1fr; margin: 0 0 24px; }
@media (min-width: 760px) { .rv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rv-list-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rv-card { display: flex; flex-direction: column; gap: 4px; }
.rv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.rv-who { margin: 0; }
.rv-meta { margin: 0; }
.rv-text p { margin: .4em 0; }
.rv-stars { color: #c98a00; letter-spacing: 1px; white-space: nowrap; }
.rv-stars .rv-off { color: var(--line-2); }
.rv-chips { margin: 4px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.rv-chip { font-size: .8em; padding: 2px 8px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--ink-2); }
.rv-client { background: var(--c-green-bg); border-color: var(--c-green-bd); color: var(--c-green-ink); }
.rv-reply { margin-top: 8px; padding: 8px 12px; background: var(--bg-soft); border-radius: 8px; }
.rv-reply-h { margin: 0; font-weight: 600; font-size: .9em; }
.rv-two { display: grid; gap: 20px; grid-template-columns: 1fr; margin-top: 8px; }
.rv-empty { padding: 18px 20px; margin: 0 0 28px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--bg-soft); }
.rv-empty p { margin: 0 0 4px; }
@media (min-width: 900px) { .rv-two { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; } }
.rv-policy ul { padding-left: 1.2em; margin: 0 0 10px; }
.rv-policy li { margin: .35em 0; }
.rv-rate { border: 0; padding: 0; margin: 0; }
.rv-rate legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
.rv-rate-in { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rv-rate-in input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rv-rate-in label { margin: 0; font-size: 1em; line-height: 1; color: var(--line-2); cursor: pointer; padding: 2px; }
.rv-rate-in label:hover, .rv-rate-in label:hover ~ label, .rv-rate-in input:checked ~ label { color: #c98a00; }
.rv-rate-in input:focus-visible + label { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
.rv-star { width: 1em; height: 1em; vertical-align: -.12em; }
.rv-rate-in .rv-star { width: 1.6em; height: 1.6em; }
.hd-intro { margin: 10px 0 0; }
.al-follow { margin-top: 6px !important; }
.al-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.b-follow { margin: 18px 0 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); }

/* ---- Where to find jobs (rebuilt 3 Dec 2026): a directory in Operate mode. Rows in one bordered list, not a card each;
   one status badge; details folded; filter chips for online work; grouped link lists for industries. ---- */
.fj-page { padding-top: 8px; }
.fj-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.fj-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.fj-nav a:hover { border-color: var(--ink-3); }
.fj-n { font-size: .78rem; font-weight: 700; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] .fj-n { color: inherit; opacity: .8; }
.fj-sec { margin-top: 44px; scroll-margin-top: 140px; }
.fj-sec > h2 { margin: 0 0 6px; }
.fj-sec .section-intro { margin: 0 0 14px; }
.fj-sub { font-family: var(--font); font-size: 1.05rem; font-weight: 700; margin: 26px 0 10px; scroll-margin-top: 140px; }
@media (max-width: 900px) { .fj-sec, .fj-sub { scroll-margin-top: 76px; } }
.fj-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.fj-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: start; padding: 13px 18px; border-top: 1px solid var(--line); }
.fj-row:first-child { border-top: 0; }
.fj-row[hidden] { display: none; }
.fj-name { display: inline; font-family: var(--font); font-size: 1.04rem; font-weight: 700; margin: 0; overflow-wrap: anywhere; }
.fj-name a { color: var(--ink); text-decoration: none; }
.fj-name a:hover { color: var(--link); text-decoration: underline; }
.fj-meta { display: inline; margin: 0 0 0 8px; font-size: .85rem; color: var(--ink-3); }
.fj-meta::before { content: "· "; }
.fj-sum { margin: 4px 0 0; color: var(--ink-2); max-width: 70ch; overflow-wrap: anywhere; text-wrap: pretty; }
.fj-act { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.fj-act .btn { white-space: nowrap; }
@media (max-width: 640px) { .fj-row { grid-template-columns: 1fr; padding: 14px 14px; } .fj-act { justify-content: flex-start; } }
.fj-more { margin-top: 4px; }
.fj-showall { margin-top: 10px; }
.fj-more summary { cursor: pointer; font-size: .9rem; font-weight: 600; color: var(--link); width: fit-content; }
.fj-more summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.fj-dl { display: grid; grid-template-columns: 9em minmax(0, 1fr); gap: 6px 14px; margin: 10px 0 2px; font-size: .92rem; max-width: 75ch; }
.fj-dl dt { color: var(--ink-3); font-weight: 600; }
.fj-dl dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
@media (max-width: 640px) { .fj-dl { grid-template-columns: 1fr; gap: 2px; } .fj-dl dd { margin-bottom: 8px; } }
.fj-searches { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 10px 0 0; font-size: .9rem; }
.fj-searches-l { color: var(--ink-3); font-weight: 600; }
.fj-search { color: var(--link); }
.fj-filter { margin: 4px 0 6px; }
.fj-count { margin: 0 0 10px; }
.fj-inds { columns: 3 300px; column-gap: 14px; }
.fj-ind-g { break-inside: avoid; margin: 0 0 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 14px 16px; min-width: 0; }
.fj-ind-g h3, .fj-ind-g h4 { font-family: var(--font); font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.fj-rank td:first-child { color: var(--ink-3); }
.fj-rank .fj-st { margin-left: 0; white-space: nowrap; }
.fj-rk-links { display: block; margin-top: 2px; font-size: .85rem; }
/* Phones: each ranked row becomes a card (number, industry and status on top, then labelled lines) instead of a 7-column table that needs a sideways swipe */
@media (max-width: 640px) {
  .table-wrap:has(> .fj-rank) { overflow: visible; border: 0; border-radius: 0; background: none; }
  .fj-rank { min-width: 0; display: block; }
  .fj-rank thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .fj-rank tbody { display: grid; gap: 12px; }
  .fj-rank tr { display: grid; grid-template-columns: auto 1fr auto; column-gap: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 14px 16px; }
  .fj-rank td { display: block; padding: 0; border: 0; }
  .fj-rank .fj-rk-n { font-weight: 700; }
  .fj-rank .fj-rk-name strong { display: block; line-height: 1.3; }
  .fj-rank td[data-label] { grid-column: 1 / -1; padding-top: 8px; margin-top: 8px; border-top: 1px solid var(--line); }
  .fj-rank td[data-label]::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 700; color: var(--ink-3); margin-bottom: 1px; }
}
.fj-exp { margin-top: 10px; }
.fj-exp .card h4 { font-family: var(--font); font-size: 1rem; font-weight: 700; margin: 0 0 6px; }
.fj-proof { margin-top: 18px; }
.fj-ind-g ul { list-style: none; margin: 0; padding: 0; }
.fj-ind-g li { padding: 8px 0; border-top: 1px solid var(--line); }
.fj-ind-g li:first-child { border-top: 0; }
.fj-ind-g a { font-weight: 600; color: var(--ink); }
.fj-ind-g a:hover { color: var(--link); }
.fj-ind-t { display: block; font-size: .86rem; color: var(--ink-3); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.fj-st { display: inline-block; vertical-align: 1px; margin-left: 4px; font-size: .75rem; font-weight: 700; padding: 1px 8px; border-radius: 999px; }
.fj-st.ok { background: var(--ok-soft); color: var(--ok); }
.fj-st.warn { background: var(--warn-soft); color: var(--warn); }
.fj-st.bad { background: var(--bad-soft); color: var(--bad); }
.fj-closed { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; background: var(--bg-soft); }
.fj-closed summary { cursor: pointer; font-weight: 600; }
.fj-closed ul { margin: 6px 0 0; padding-left: 1.2em; }
.fj-pitch { display: grid; gap: 20px 32px; grid-template-columns: 1fr; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-soft); }
@media (min-width: 900px) { .fj-pitch { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } }
.fj-pitch h2 { margin: 0 0 10px; }
.fj-pitch p { margin: 0 0 10px; max-width: 62ch; }
.fj-pitch .btn-row { margin-top: 14px; }
.fj-prices { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px; }
.fj-prices-h { font-weight: 700; margin: 0 0 6px; }
.fj-prices dl { margin: 0 0 10px; }
.fj-prices dt { padding-top: 9px; border-top: 1px solid var(--line); color: var(--ink-2); }
.fj-prices dt:first-child { border-top: 0; padding-top: 0; }
.fj-prices dd { margin: 0 0 9px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink); }
.fj-check { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 16px 18px; max-width: 760px; }
.fj-check label { display: block; font-weight: 600; margin-bottom: 6px; }
.fj-check input { width: 100%; box-sizing: border-box; font: inherit; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--ink); }
.fj-check input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.fj-ag { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 6px; }
.fj-ag li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; min-width: 0; }
.fj-ag li strong { overflow-wrap: anywhere; }
.fj-ag li .small { flex-basis: 100%; overflow-wrap: anywhere; }
.fj-scams { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 16px; max-width: 820px; }
.fj-scam { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; }
.fj-wicon { width: 26px; height: 26px; color: var(--warn); margin-top: 1px; }
.fj-scam p { margin: 0 0 4px; color: var(--ink-2); }
.fj-scam .fj-scam-t { font-weight: 700; color: var(--ink); }
.hd-online { margin: 22px 0 6px; }
.hd-online h2 { font-size: 1.15rem; margin: 0 0 6px; }
.hd-online p { margin: 0 0 6px; }
.hd-online ul { margin: 0 0 6px; padding-left: 1.2em; }

/* ---- Help Desk (rebuilt 3 Dec 2026): one price list in rows (no duplicate prices), grouped by need; contact and notice side by side;
   call rules beside the booking form; promises as two plain lists; same directory rows as Where to find jobs. ---- */
.hd-page { padding-top: 8px; }
.hd-top { display: grid; gap: 16px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .hd-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hd-who { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 16px 18px; }
.hd-who .btn-row { margin: 12px 0 8px; }
.hd-who .small { margin: 0; }
.hd-top .hd-notice { margin: 0; }
.hd-free { margin: 0 0 6px; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--ok) 30%, var(--line)); border-radius: var(--radius-sm); background: var(--ok-soft); }
.hd-free-h { margin: 0 0 4px; font-weight: 700; color: var(--ink); }
.hd-free p:last-child { margin: 0; color: var(--ink-2); }
.hd-lead { margin: -2px 0 12px; color: var(--ink-2); max-width: 75ch; }
.hd-row .fj-name { display: block; }
.hd-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; text-align: right; }
.hd-price { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
@media (max-width: 640px) { .hd-side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; text-align: left; } }
.hd-ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--ink-2); font-size: .94rem; max-width: 72ch; }
.hd-ul li { margin: .3em 0; }
.hd-note { margin: 16px 0 0; max-width: 85ch; }
.hd-page .hd-call { display: grid; gap: 20px 28px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .hd-page .hd-call { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.hd-form { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 18px 20px; }
.hd-form .hd-book label:first-child { margin-top: 0; }
.hd-ticks, .hd-cross { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hd-ticks li, .hd-cross li { position: relative; padding-left: 28px; color: var(--ink-2); }
.hd-ticks li::before { content: ""; position: absolute; left: 4px; top: .35em; width: 10px; height: 6px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.hd-cross li::before, .hd-cross li::after { content: ""; position: absolute; left: 3px; top: .72em; width: 13px; height: 2.5px; background: var(--bad); border-radius: 2px; transform: rotate(45deg); }
.hd-cross li::after { transform: rotate(-45deg); }
.hd-ticks strong, .hd-cross strong { color: var(--ink); }
.hd-two2 { display: grid; gap: 8px 32px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .hd-two2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hd-two2 .fj-sub { margin-top: 10px; }
.hd-steps2 { --cat: var(--ok); margin-top: 6px; }
.hd-steps2 li { color: var(--ink-2); }
.hd-steps2 strong { color: var(--ink); }
.hd-page #questions .faq { max-width: 860px; }

/* ---- Contact, About, Alerts (3 Dec 2026): contact and follow options as directory rows, not icon tiles ---- */
.ct-top { padding-top: 8px; padding-bottom: 0; }
.ct-formbox { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.ct-side-box { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 16px 18px; }
.ct-side .hd-ticks { gap: 9px; font-size: .95rem; }
.ct-side .alert { margin: 0; }
.ct-side .alert p { font-size: .94rem; margin: 0 0 6px; }
.ct-side .alert p:last-child { margin: 0; }
.ct-foot { margin-top: 12px; }
.al-ways-h { margin-top: 36px; }

/* Home (3 Dec 2026): questions in one readable column */
.lp-faq .hw-faq { grid-template-columns: minmax(0, 1fr); max-width: 860px; }
/* Help while abroad (3 Dec 2026): rights as a two-column checklist, not six icon tiles */
.hw-rights2 { gap: 12px 32px; max-width: 980px; margin-top: 6px; }
@media (min-width: 760px) { .hw-rights2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.hw-rights2 li { font-size: 1rem; }

/* Guides (3 Dec 2026): links in one list, sources folded, related as a list, cost table fits the column */
.g-srcs-d { margin-top: 8px; }
.g-srcs-d summary { cursor: pointer; font-weight: 600; color: var(--link); width: fit-content; }
.g-srcs-d summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.g-rel-list { list-style: none; margin: 0; padding: 0 !important; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.g-rel-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 14px; padding: 11px 16px; border-top: 1px solid var(--line); margin: 0; }
.g-rel-list li:first-child { border-top: 0; }
.g-rel-list a { font-weight: 600; color: var(--ink); }
.g-rel-list a:hover { color: var(--link); }
.g-rel-k { font-size: .84rem; color: var(--ink-3); white-space: nowrap; }
.g-rel-all { margin: 10px 0 0; font-weight: 600; }
.g-body .cost-table table { min-width: 0; }
.g-body .cost-table td, .g-body .cost-table th { overflow-wrap: anywhere; }
/* Blog posts (3 Dec 2026): warning and next-step lists, read-more as a list */
.b-body .b-list { margin: 10px 0 16px; padding-left: 0; }
.b-body .b-list li { margin: 0; }
.b-rm-list { margin-top: 6px; }

/* Long words and web addresses in text wrap instead of making the page scroll sideways (only breaks when a word does not fit) */
main { overflow-wrap: break-word; }

/* ---------- Phones: thumb-sized targets and no iPhone zoom on input boxes (phone audit, 3 Dec 2026) ---------- */
@media (max-width: 900px) {
  /* iOS Safari zooms the whole page when a box with text under 16px gets focus */
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea { font-size: max(16px, 1em); }
  /* breadcrumb and footer links were 19px tall; 24px+ is the minimum comfortable tap height */
  .crumbs a { display: inline-block; padding: 6px 0; }
  .site-footer li a, .site-footer .legal a { display: inline-block; padding: 4px 0; }
  .fj-search { display: inline-block; padding: 3px 0; }
  .rv-perm input[type=checkbox] { width: 20px; height: 20px; flex: none; }
}
.quiz .q.q-missing { outline: 2px solid var(--warn); outline-offset: 6px; border-radius: 8px; scroll-margin-top: 80px; }
/* "Show more" on long lists (phones; app.js pager). Print always shows the whole list. */
@media screen { .pg-more { display: none !important; } }
.pg-btn { display: block; margin: 16px auto 4px; min-height: 44px; padding-inline: 18px; }
@media print { .pg-btn { display: none !important; } }
