/* Kenya Debt Clock home page in the Crisis Intel style: navy panels, Inter and IBM Plex Mono, light-blue glass rims
   and glass pill buttons, with Kenya's red as the main accent and Kenyan green for "safe". */
:root {
  --night: #07111d; --navy: #0b1a2c; --surface: #13263d; --surface-2: #182f4a; --line: #33465c; --line-soft: #243950;
  --ink: #f2f5f9; --text: #d4dde8; --quiet: #a9b8cb;
  --red: #ef3e4a; --red-deep: #c8102e; --green: #2fb36b; --green-deep: #0f6b3c; --amber: #f2a900; --sky: #7cc4ff;
  --glass-rim: rgba(150, 205, 255, 0.55); --glass-halo: rgba(110, 180, 255, 0.28); --glass-sheen: rgba(255, 255, 255, 0.55);
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif; --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  --pad: clamp(16px, 3.4vw, 56px);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--navy); color: var(--text); }
body.wow { font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
p { margin: 0; }
.w-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.dig, .sep { display: inline; }
.unit-suffix { margin-left: 0.08em; }

/* Kenya's flag as a thin strip on top */
.w-flag { display: grid; grid-template-rows: 4px 1px 4px 1px 4px; background: #fff; }
.w-flag i:nth-child(1) { background: #000; grid-row: 1; }
.w-flag i:nth-child(2) { background: var(--red-deep); grid-row: 3; }
.w-flag i:nth-child(3) { background: var(--green-deep); grid-row: 5; }

/* Header, like Crisis Intel's */
.w-head { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 26px; padding: 16px var(--pad); background: rgba(11, 26, 44, 0.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line-soft); }
.w-mark { font-weight: 800; font-size: 24px; letter-spacing: -0.035em; text-decoration: none; color: var(--ink); white-space: nowrap; }
.w-mark b { color: var(--red); font-weight: 800; }
.w-nav { display: flex; gap: 22px; margin-left: auto; }
.w-nav a { font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--text); padding: 6px 0; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.2s; }
.w-nav a:hover { color: #fff; border-bottom-color: var(--red); }
.w-live { display: flex; align-items: center; gap: 9px; font-family: var(--mono); font-size: 12px; color: var(--quiet); white-space: nowrap; padding: 8px 14px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03) 50%, rgba(0,0,0,.18));
  box-shadow: inset 0 0 0 1px var(--glass-rim), inset 0 3px 7px rgba(0,0,0,.45), 0 0 18px -6px var(--glass-halo); }
.w-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 62, 74, 0.7); } 70% { box-shadow: 0 0 0 9px rgba(239, 62, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 62, 74, 0); } }
.hamburger { display: none; padding: 10px 11px; cursor: pointer; border: 0; border-radius: 999px; background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(0,0,0,.18)); box-shadow: inset 0 0 0 1px var(--glass-rim); }
.hamburger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3px 0; }

/* Drawer */
.mobile-drawer-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.55); opacity: 0; pointer-events: none; transition: opacity 0.25s; z-index: 90; }
.mobile-drawer-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(86vw, 360px); background: var(--navy); z-index: 100; transform: translateX(100%); transition: transform 0.3s ease; padding: 18px 22px; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.mobile-drawer.open { transform: none; }
.drawer-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.drawer-close { background: none; border: 0; color: var(--ink); font-size: 30px; cursor: pointer; }
.mobile-drawer a { font-size: 19px; font-weight: 700; text-decoration: none; color: var(--text); padding: 11px 0; border-bottom: 1px solid var(--line-soft); }
.mobile-drawer a.active { color: var(--red); }

/* Shared */
section { padding: clamp(32px, 4.6vw, 72px) var(--pad); }
.w-kicker { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--quiet); }
.w-kicker::before { content: ""; width: 18px; height: 3px; background: var(--red); flex: none; }
.w-kicker.dark { color: var(--quiet); }
.w-src::before { display: none; }

/* Glass buttons: red glass for the main action, smoked glass for the other (Crisis Intel's buttons, in red). */
.w-btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 10px; padding: 13px 22px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 15px; color: #fff;
  background: linear-gradient(180deg, #ff7a82 0%, #ef3e4a 45%, #c8102e 100%);
  box-shadow: inset 0 0 0 1px var(--glass-rim), inset 0 3px 6px rgba(90, 0, 10, 0.35), inset 0 -3px 6px rgba(255, 210, 215, 0.4), 0 6px 18px -6px rgba(239, 62, 74, 0.7), 0 0 22px -6px var(--glass-halo);
  transition: transform 0.18s ease, filter 0.25s ease; }
.w-btn::before { content: ""; position: absolute; inset: 1px 1px 50% 1px; border-radius: 999px 999px 40% 40% / 999px 999px 18px 18px; background: linear-gradient(180deg, rgba(255,255,255,.3), rgba(255,255,255,.04)); z-index: -1; }
.w-btn::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 45%; background: linear-gradient(105deg, transparent, var(--glass-sheen), transparent); transform: translateX(-120%) skewX(-18deg); transition: transform 0.75s ease; }
.w-btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.w-btn:hover::after { transform: translateX(420%) skewX(-18deg); }
.w-btn span { font-size: 17px; }
.w-btn.ghost { color: var(--sky); background: linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.03) 50%, rgba(0,0,0,.18) 100%);
  box-shadow: inset 0 0 0 1px var(--glass-rim), inset 0 3px 7px rgba(0,0,0,.45), inset 0 -2px 4px rgba(170,215,255,.18), 0 0 18px -6px var(--glass-halo); }

/* 1. Hero: the counter in a framed panel */
.w-hero { margin: clamp(18px, 2.4vw, 32px) var(--pad) 0; padding: clamp(24px, 3.4vw, 48px); background: linear-gradient(180deg, var(--surface-2), var(--surface)); border-radius: 18px;
  box-shadow: inset 0 0 0 1px var(--glass-rim), 0 24px 50px -30px rgba(0,0,0,.9), 0 0 30px -10px var(--glass-halo); border-top: 4px solid var(--red); }
.w-hero-top { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: clamp(18px, 2.6vw, 34px); }
.w-src { color: var(--text); }
.w-counter { display: flex; align-items: stretch; gap: clamp(8px, 1.2vw, 18px); }
.w-kes { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 800; color: var(--red); font-size: clamp(20px, 2.8vw, 46px); letter-spacing: 0.06em; text-align: center; }
.w-odo { --fs: min(9.4vw, 140px); flex: 1; display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: var(--fs); line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; min-width: 0; }
/* Each digit sits in a glass drum with the light-blue rim */
.w-odo .wheel { position: relative; height: 1.14em; width: 0.66em; overflow: hidden; border-radius: 0.1em;
  background: linear-gradient(180deg, #050d17 0%, #0d1e33 22%, #13263d 50%, #0d1e33 78%, #050d17 100%);
  box-shadow: inset 0 0 0 1px rgba(150, 205, 255, 0.35), inset 0 0.06em 0.12em rgba(0,0,0,.7), 0 0 14px -6px var(--glass-halo); }
.w-odo .wheel::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,13,23,.85) 0%, rgba(5,13,23,0) 28%, rgba(5,13,23,0) 72%, rgba(5,13,23,.85) 100%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 40%); }
.w-odo .strip { position: absolute; left: 0; right: 0; top: 0.07em; will-change: transform; }
.w-odo .strip span { display: block; height: 1em; text-align: center; color: var(--ink); }
.w-odo .wheel.hot .strip span { color: var(--red); }
.w-odo .wheel.blur .strip { filter: blur(0.02em); }
.w-odo .comma { width: 0.18em; align-self: flex-end; color: var(--quiet); font-size: 0.7em; text-align: center; }
.w-hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; flex-wrap: wrap; margin-top: clamp(16px, 2.2vw, 28px); }
.w-usd { font-family: var(--mono); font-size: clamp(13px, 1.2vw, 17px); color: var(--quiet); }
.w-story { font-size: clamp(19px, 2vw, 30px); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; color: var(--ink); max-width: 720px; text-align: right; }
.w-story strong { color: var(--red); font-weight: 800; white-space: nowrap; }
.w-story em { display: block; font-family: var(--mono); font-style: normal; font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--quiet); margin-top: 6px; }
.w-pulse { display: block; width: 100%; height: 80px; margin-top: 18px; }
.w-hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; }
.w-note { font-family: var(--mono); font-size: 11.5px; color: var(--quiet); margin-left: auto; max-width: 440px; text-align: right; }

/* 2. Live band, like Crisis Intel's ticker */
.w-band { position: relative; margin-top: clamp(18px, 2.4vw, 30px); background: var(--night); border-block: 1px solid var(--line); overflow: hidden; padding-left: 92px; }
.w-band::before { content: "LIVE"; position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; padding: 0 20px 0 30px; background: var(--red-deep); color: #fff; font-weight: 800; font-size: 14px; letter-spacing: 0.08em; }
.w-band::after { content: ""; position: absolute; left: 18px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: #fff; transform: translateY(-50%); z-index: 3; }
.w-band-track { display: flex; width: max-content; animation: band 45s linear infinite; }
.w-band-track span { font-weight: 600; font-size: 14.5px; letter-spacing: 0.02em; text-transform: uppercase; color: #fff; padding: 13px 0; white-space: nowrap; display: flex; align-items: center; }
.w-band-track span::after { content: "\25c6"; color: var(--red); font-size: 0.6em; margin: 0 1.6em; }
@keyframes band { to { transform: translateX(-50%); } }

/* 3. Tiles: framed navy cards with a coloured top edge */
.w-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.w-tile { border-radius: 16px; padding: 22px 22px 20px; min-height: 196px; display: flex; flex-direction: column; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-soft), 0 18px 34px -26px rgba(0,0,0,.9); border-top: 3px solid var(--edge, var(--red)); transition: transform .2s, box-shadow .25s; }
.w-tile:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--glass-rim), 0 0 24px -8px var(--glass-halo); }
.w-tl { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--quiet); }
.w-tv { font-weight: 800; font-size: clamp(30px, 3vw, 46px); line-height: 1.02; letter-spacing: -0.035em; margin-top: auto; color: var(--ink); }
.w-tf { font-size: 13.5px; line-height: 1.45; margin-top: 10px; color: var(--quiet); }
.t-red { --edge: var(--red); } .t-red .w-tv { color: var(--red); }
.t-paper { --edge: var(--sky); }
.t-green { --edge: var(--green); }
.t-ink { --edge: var(--amber); } .t-ink .w-tv { color: var(--amber); }

/* 4. Born owing */
.w-born { padding-top: clamp(10px, 2vw, 30px); }
.w-big-sent { font-size: clamp(28px, 3.8vw, 58px); font-weight: 700; line-height: 1.12; letter-spacing: -0.035em; color: var(--ink); max-width: 1200px; }
.w-big-sent b { font-weight: 800; }
.w-big-sent .v { color: var(--red); }

/* 5. Risk */
.w-risk { margin: 0 var(--pad); padding: clamp(24px, 3vw, 44px); background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-soft); }
.w-risk-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.w-pill { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 13px; border-radius: 999px; color: #fff !important;
  background: linear-gradient(180deg, #ff7a82, #c8102e); box-shadow: inset 0 0 0 1px var(--glass-rim), 0 0 16px -4px rgba(239,62,74,.6); }
.w-risk-num { font-weight: 800; font-size: clamp(96px, 16vw, 250px); line-height: 0.9; letter-spacing: -0.06em; margin-top: 10px; color: var(--ink); }
.w-risk-cap { font-size: clamp(18px, 1.8vw, 26px); font-weight: 600; color: var(--text); margin-top: 8px; }
.w-gauge { position: relative; margin-top: 30px; }
.w-gauge-bar { display: grid; grid-template-columns: 50fr 10fr 40fr; height: 18px; border-radius: 999px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--glass-rim), 0 0 18px -6px var(--glass-halo); }
.z-safe { background: linear-gradient(180deg, #45d084, var(--green-deep)); } .z-warn { background: linear-gradient(180deg, #ffd66b, #dc9600); } .z-risk { background: linear-gradient(180deg, #ff7a82, var(--red-deep)); }
.w-needle { position: absolute; top: -10px; width: 6px; height: 38px; background: #fff; border-radius: 3px; transform: translateX(-50%); transition: left 0.6s; box-shadow: 0 0 0 3px var(--surface), 0 0 14px rgba(255,255,255,.5); }
.w-gauge-scale { position: relative; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; margin-top: 12px; color: var(--quiet); }
.w-gauge-scale .m50 { position: absolute; left: 50%; transform: translateX(-50%); }
.w-gauge-scale .m60 { position: absolute; left: 60%; transform: translateX(-10%); }

/* 6. Split */
.w-split .w-kicker { margin-bottom: 18px; }
.w-split-bar { display: flex; gap: 14px; min-height: 190px; }
.w-split-bar > div { border-radius: 16px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; transition: flex-grow 1s; }
.s-dom { background: var(--surface); flex: 56 1 0; box-shadow: inset 0 0 0 1px var(--glass-rim), 0 0 22px -8px var(--glass-halo); border-top: 3px solid var(--sky); }
.s-ext { background: linear-gradient(180deg, rgba(47,179,107,.18), rgba(15,107,60,.12)), var(--surface); flex: 44 1 0; box-shadow: inset 0 0 0 1px rgba(47,179,107,.55); border-top: 3px solid var(--green); }
.w-split-bar b { font-weight: 800; font-size: clamp(52px, 6vw, 96px); line-height: 0.9; letter-spacing: -0.05em; color: var(--ink); }
.w-split-bar span { font-size: clamp(17px, 1.6vw, 22px); font-weight: 600; color: var(--text); margin-top: 6px; }
.w-split-bar em { font-family: var(--mono); font-style: normal; font-size: 12.5px; margin-top: 6px; color: var(--quiet); }
.w-link { display: inline-flex; gap: 8px; margin-top: 18px; font-weight: 700; text-decoration: none; color: var(--sky); }
.w-link:hover { color: #fff; }

/* 7. History */
.w-history { padding-top: 10px; }
.w-history-head { display: grid; gap: 12px; }
.w-history-title { font-size: clamp(26px, 3.2vw, 48px); font-weight: 700; line-height: 1.12; letter-spacing: -0.035em; color: var(--ink); max-width: 940px; }
.w-history-title b { font-weight: 800; }
.w-history-title .v { color: var(--red); }
.w-bars { display: flex; align-items: flex-end; gap: clamp(3px, 0.5vw, 8px); height: clamp(190px, 26vw, 380px); margin-top: 32px; border-bottom: 1px solid var(--line); }
.w-bars .bar { flex: 1; position: relative; min-width: 0; border-radius: 6px 6px 0 0; transform-origin: bottom; animation: grow 1.2s cubic-bezier(.2,.8,.2,1) both;
  background: linear-gradient(180deg, #2a4a70, var(--surface)); box-shadow: inset 0 0 0 1px rgba(150,205,255,.3); }
.w-bars .bar.mark { background: linear-gradient(180deg, #3b628f, var(--surface-2)); }
.w-bars .bar.now { background: linear-gradient(180deg, #ff7a82, var(--red-deep)); box-shadow: inset 0 0 0 1px var(--glass-rim), 0 0 22px -4px rgba(239,62,74,.6); }
.w-bars .bar i { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); font-family: var(--mono); font-style: normal; font-size: 10.5px; color: var(--quiet); white-space: nowrap; }
.w-bars .bar.now i { color: var(--red); font-weight: 600; font-size: 12px; }
.w-bars .bar u { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); font-family: var(--mono); text-decoration: none; font-size: 10.5px; color: var(--quiet); }
@keyframes grow { from { transform: scaleY(0); } }

/* 8. Household */
.w-house { margin: 0 var(--pad); padding: clamp(26px, 3.4vw, 50px); border-radius: 18px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); box-shadow: inset 0 0 0 1px var(--glass-rim), 0 0 30px -10px var(--glass-halo); }
.w-house .w-big-sent { font-size: clamp(24px, 2.8vw, 42px); }
.w-count { display: inline-block; min-width: 1.4em; text-align: center; color: #fff; font-weight: 800; padding: 0 0.25em; border-radius: 0.3em; background: linear-gradient(180deg, #ff7a82, #c8102e); box-shadow: inset 0 0 0 1px var(--glass-rim); }
.w-people { color: var(--text); }
.w-house-num { font-weight: 800; font-size: clamp(54px, 9vw, 150px); line-height: 1; letter-spacing: -0.05em; margin-top: 10px; color: var(--ink); font-variant-numeric: tabular-nums; }
.w-range { -webkit-appearance: none; appearance: none; width: 100%; height: 10px; border-radius: 999px; margin-top: 28px; outline: none; background: linear-gradient(180deg, rgba(0,0,0,.4), rgba(255,255,255,.05)); box-shadow: inset 0 0 0 1px var(--glass-rim); }
.w-range::-webkit-slider-thumb { -webkit-appearance: none; width: 34px; height: 34px; border-radius: 50%; cursor: grab; background: linear-gradient(180deg, #ff7a82, #c8102e); box-shadow: inset 0 0 0 1px var(--glass-rim), 0 0 18px -2px rgba(239,62,74,.7); }
.w-range::-moz-range-thumb { width: 30px; height: 30px; border-radius: 50%; border: 0; background: #ef3e4a; }
.w-range-cap { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; margin-top: 12px; color: var(--quiet); }

/* 9. Index of the other pages */
.w-list { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line-soft); }
.w-list a { display: grid; grid-template-columns: 60px 1fr minmax(0, 380px) 30px; align-items: center; gap: 18px; text-decoration: none; border-bottom: 1px solid var(--line-soft); padding: 14px 0; position: relative; }
.w-list a::after { content: "\2192"; color: var(--red); font-weight: 700; font-size: 20px; transition: transform .25s; }
.w-list .n { font-family: var(--mono); font-size: 13px; color: var(--quiet); }
.w-list .w { font-weight: 800; font-size: clamp(28px, 3.6vw, 56px); letter-spacing: -0.04em; line-height: 1; color: var(--text); transition: color .2s; }
.w-list .d { font-size: 15px; line-height: 1.4; color: var(--quiet); }
.w-list a:hover .w { color: #fff; }
.w-list a:hover::after { transform: translateX(6px); }
.w-list a:hover .n { color: var(--red); }

/* Fine print and footer */
.w-fine { padding-top: 0; color: var(--quiet); font-size: 13.5px; line-height: 1.6; display: grid; gap: 8px; max-width: 1000px; }
.w-fine a { color: var(--sky); }
.w-fresh { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; }
.w-foot { background: var(--night); border-top: 1px solid var(--line); padding: 24px var(--pad) 0; overflow: hidden; }
.w-sources { font-family: var(--mono); font-size: 12.5px; color: var(--quiet); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.w-sources a { color: var(--text); text-decoration: none; }
.w-sources a:hover { color: #fff; }
.w-giant { font-weight: 800; font-size: 17vw; line-height: 0.76; letter-spacing: -0.06em; color: #10223a; margin: 22px 0 -2.4vw; white-space: nowrap; }
.w-giant b { color: rgba(239, 62, 74, 0.55); font-weight: 800; }

/* Phones and tablets */
@media (max-width: 1100px) { .w-nav { display: none; } .hamburger { display: block; } .w-live { margin-left: auto; } .w-tiles { grid-template-columns: 1fr 1fr; } .w-list a { grid-template-columns: 44px 1fr 24px; } .w-list .d { display: none; } }
@media (max-width: 600px) {
  .w-head { gap: 10px; padding: 12px 16px; }
  .w-mark { font-size: 20px; }
  .w-live #liveDateTime { display: none; }
  .w-hero { padding: 20px 16px; }
  .w-counter { flex-direction: column; gap: 8px; }
  .w-kes { writing-mode: horizontal-tb; transform: none; font-size: 18px; text-align: left; }
  .w-odo { --fs: 8.6vw; }
  .w-story, .w-note { text-align: left; margin-left: 0; }
  .w-tiles { grid-template-columns: 1fr; }
  .w-tile { min-height: 150px; }
  .w-split-bar { flex-direction: column; }
  .w-split-bar > div { min-height: 140px; }
  .w-bars .bar i, .w-bars .bar u { display: none; }
  .w-bars .bar.now i { display: block; }
  .w-gauge-scale .m50 { transform: translateX(-100%); }
  .w-gauge-scale .m60 { transform: none; }
  .w-band { padding-left: 78px; }
  .w-band::before { padding: 0 14px 0 26px; font-size: 12px; }
  .w-band::after { left: 13px; }
}
@media (prefers-reduced-motion: reduce) { .w-band-track, .w-dot, .w-bars .bar { animation: none; } }

/* Compact: smaller type and tighter spacing everywhere (it read too big). */
section { padding: clamp(18px, 2.4vw, 36px) var(--pad); }
.w-head { padding: 10px var(--pad); gap: 22px; }
.w-mark { font-size: 20px; }
.w-nav { gap: 18px; }
.w-nav a { font-size: 13.5px; }
.w-live { padding: 6px 12px; font-size: 11.5px; }
.w-hero { margin-top: 14px; padding: clamp(16px, 2vw, 28px); border-radius: 14px; }
.w-hero-top { margin-bottom: 14px; }
.w-kicker { font-size: 11px; }
.w-odo { --fs: min(6.2vw, 92px); }
.w-kes { font-size: clamp(16px, 1.9vw, 30px); }
.w-hero-foot { margin-top: 14px; gap: 16px; }
.w-usd { font-size: 13px; }
.w-story { font-size: clamp(15px, 1.4vw, 21px); }
.w-pulse { height: 52px; margin-top: 10px; }
.w-hero-actions { margin-top: 10px; }
.w-btn { padding: 10px 18px; font-size: 14px; }
.w-band { margin-top: 14px; }
.w-band-track span { font-size: 13px; padding: 9px 0; }
.w-tiles { gap: 12px; }
.w-tile { min-height: 132px; padding: 16px 16px 14px; border-radius: 12px; }
.w-tl { font-size: 10.5px; }
.w-tv { font-size: clamp(22px, 2.1vw, 32px); }
.w-tf { font-size: 12.5px; margin-top: 6px; }
.w-big-sent { font-size: clamp(20px, 2.3vw, 34px); }
.w-risk { padding: clamp(18px, 2.2vw, 30px); border-radius: 14px; display: grid; grid-template-columns: auto 1fr; column-gap: 32px; align-items: end; }
.w-risk-head { grid-column: 1 / -1; }
.w-risk-num { font-size: clamp(60px, 8vw, 124px); margin-top: 6px; }
.w-risk-cap { font-size: clamp(15px, 1.3vw, 19px); margin: 0 0 14px; }
.w-gauge { grid-column: 1 / -1; margin-top: 18px; }
.w-gauge-bar { height: 14px; }
.w-needle { height: 32px; top: -9px; }
.w-split-bar { min-height: 120px; gap: 12px; }
.w-split-bar > div { padding: 16px; border-radius: 12px; }
.w-split-bar b { font-size: clamp(36px, 3.8vw, 58px); }
.w-split-bar span { font-size: 15px; }
.w-history-title { font-size: clamp(20px, 2.2vw, 32px); }
.w-bars { height: clamp(130px, 14vw, 210px); margin-top: 26px; }
.w-house { padding: clamp(18px, 2.2vw, 30px); border-radius: 14px; }
.w-house .w-big-sent { font-size: clamp(18px, 1.8vw, 26px); }
.w-house-num { font-size: clamp(36px, 5vw, 76px); margin-top: 4px; }
.w-range { margin-top: 18px; }
.w-list a { padding: 8px 0; gap: 14px; }
.w-list .w { font-size: clamp(19px, 2vw, 28px); }
.w-list .d { font-size: 14px; }
.w-giant { font-size: 10vw; margin-top: 14px; }
@media (max-width: 600px) {
  .w-odo { --fs: 8.6vw; }
  .w-risk { grid-template-columns: 1fr; }
  .w-risk-cap { margin-bottom: 0; }
}

/* The ticker now sits at the very top, above the header, so it needs no gap above it. */
.w-band { margin-top: 0; border-top: 0; }

/* Restored from the live site: the fiscal-year line in the live pill, and the active Home link. */
.w-fy { color: var(--quiet); border-left: 1px solid var(--line); padding-left: 9px; margin-left: 2px; }
.w-nav a.active { color: #fff; border-bottom-color: var(--red); }
@media (max-width: 1300px) { .w-fy { display: none; } }

/* The LIVE banner stays at the top while scrolling, with the header pinned just under it; menu names stay on one line. */
.w-band { position: sticky; top: 0; z-index: 60; height: 38px; display: flex; align-items: center; }
.w-band-track span { padding: 0; }
.w-head { top: 38px; }
.w-nav a { white-space: nowrap; }
.w-nav { gap: 16px; }

/* Fuel prices section: three quiet cards like the stat cards, the other towns on one line, the source under it. */
.w-fuel { padding-top: clamp(14px, 2vw, 28px); }
.w-fuel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.w-fuel-period { font-family: var(--mono); font-size: 12px; color: var(--quiet); }
.w-fuel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.w-fuel-card { border-radius: 12px; padding: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); border-top: 1px solid rgba(150, 205, 255, 0.35); }
.w-fuel-card .w-tv { margin-top: 10px; }
.w-fuel-towns { font-family: var(--mono); font-size: 12.5px; color: var(--text); margin-top: 12px; line-height: 1.7; }
.w-fuel-src { font-size: 12.5px; color: var(--quiet); margin-top: 6px; }
.w-fuel-src a { color: var(--sky); }
@media (max-width: 600px) { .w-fuel-grid { grid-template-columns: 1fr; } }

/* Kenya's flag as the border of the whole site: black, red and green bands with the white lines between them, fixed on
   all four edges, so the flag is also the sticky top edge. The page sits inside it. */
:root { --frame: 12px; }
.w-flag { position: fixed; inset: 0; z-index: 300; pointer-events: none; display: block; background: none;
  box-shadow: inset 0 0 0 3px #000, inset 0 0 0 4px #fff, inset 0 0 0 7px #c8102e, inset 0 0 0 8px #fff, inset 0 0 0 11px #0f6b3c, inset 0 0 0 12px rgba(150, 205, 255, 0.35); }
.w-flag i { display: none; }
body.wow { padding: var(--frame); }
.w-band { top: var(--frame); }
.w-head { top: calc(var(--frame) + 38px); }

/* Calmer colour: Kenya red is the one accent, used for the debt itself; every card shares one quiet light-blue edge;
   no amber or green figures; muted tones on the gauge and the home/abroad panels. */
.t-red, .t-paper, .t-green, .t-ink { --edge: rgba(150, 205, 255, 0.35); }
.w-tile { border-top-width: 1px; }
.t-ink .w-tv { color: var(--ink); }
.s-dom, .s-ext { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); border-top: 1px solid rgba(150, 205, 255, 0.35); }
.z-safe { background: linear-gradient(180deg, #3f7f68, #2b5a4a); }
.z-warn { background: linear-gradient(180deg, #9a8a55, #6f6238); }
.z-risk { background: linear-gradient(180deg, #b0505a, #7f2d38); }
.w-pill { background: rgba(239, 62, 74, 0.14); color: #ff9aa1 !important; box-shadow: inset 0 0 0 1px rgba(239, 62, 74, 0.55); }
.w-giant b { color: rgba(239, 62, 74, 0.35); }

/* The flag frame takes some width, so the fiscal-year line only shows on wide screens where it fits. */
@media (max-width: 1560px) { .w-fy { display: none; } }

/* Normal website scale: the big sentences, the 76.3%, the coupons, the chart and the household figure come down to
   regular heading sizes so the page reads like a normal site, not a poster. */
section { padding: clamp(12px, 1.6vw, 24px) var(--pad); }
.w-hero { padding: clamp(14px, 1.6vw, 22px); }
.w-odo { --fs: min(4.6vw, 66px); }
.w-story { font-size: clamp(14px, 1.15vw, 17px); }
.w-pulse { height: 44px; }
.w-tile, .w-fuel-card { min-height: 0; padding: 14px; }
.w-tv { font-size: clamp(19px, 1.6vw, 25px); margin-top: 8px; }
.w-big-sent, .w-house .w-big-sent { font-size: clamp(17px, 1.5vw, 22px); letter-spacing: -0.02em; }
.w-risk { padding: clamp(14px, 1.6vw, 22px); column-gap: 20px; }
.w-risk-num { font-size: clamp(36px, 3.6vw, 52px); letter-spacing: -0.04em; }
.w-risk-cap { font-size: 15px; margin-bottom: 8px; }
.w-gauge { margin-top: 12px; }
.w-split-bar { min-height: 0; }
.w-split-bar > div { padding: 14px; }
.w-split-bar b { font-size: clamp(26px, 2.4vw, 36px); }
.w-split-bar span { font-size: 14px; }
.w-history-title { font-size: clamp(17px, 1.5vw, 22px); }
.w-bars { height: clamp(100px, 9vw, 150px); margin-top: 22px; }
.w-house { padding: clamp(14px, 1.6vw, 22px); }
.w-house-num { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -0.03em; }
.w-range { margin-top: 12px; }
.w-giant { display: none; }

/* "Explore the numbers": each section is now a card that clearly opens a page (an "Open" button, a lift on hover). */
.w-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; border-top: 0; margin-top: 12px; }
.w-list li { display: flex; }
.w-list a { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 14px; border: 0; border-radius: 12px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); transition: transform 0.2s, box-shadow 0.25s; }
.w-list a:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--glass-rim), 0 0 22px -8px var(--glass-halo); }
.w-list .n { font-size: 11px; }
.w-list .w { font-size: 17px; letter-spacing: -0.02em; color: var(--ink); }
.w-list .d { display: block !important; font-size: 13px; line-height: 1.45; flex: 1; }
.w-list a::after { content: "Open \2192"; margin-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--sky); padding: 6px 13px; border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--glass-rim); transition: background 0.2s, color 0.2s; transform: none; }
.w-list a:hover::after { transform: none; background: rgba(124, 196, 255, 0.14); color: #fff; }
@media (max-width: 1100px) { .w-list { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .w-list { grid-template-columns: 1fr; } }

/* The Sources bar stays pinned to the bottom of the screen, inside the flag frame. */
.w-foot { position: sticky; bottom: var(--frame); z-index: 55; padding: 10px var(--pad); background: rgba(7, 17, 29, 0.96); backdrop-filter: blur(8px); }

/* With the explore list gone, the fine print follows the household panel directly, so it gets its own space. */
.w-fine { padding-top: 18px; }


/* ===== One screen, no page scroll (laptops and desktops) =====
   The page is the height of the window: flag frame, LIVE ticker, header, then the dashboard, then the Sources bar.
   The dashboard has three rows: the counter, four debt figures, and three panels (fuel; risk and who Kenya owes;
   history and your household). Sizes follow the window height so everything stays legible without scrolling. */
@media (min-width: 1024px) and (min-height: 620px) {
  html, body.wow { height: 100%; overflow: hidden; }
  body.wow { display: flex; flex-direction: column; }
  .w-band, .w-head, .w-foot { position: relative; top: auto; bottom: auto; flex: none; }
  main.dash { flex: 1; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 1.2vh; padding: 1.2vh var(--pad); }
  main.dash > section, .dash-row > section { padding: 0; margin: 0; }

  .w-hero { margin: 0; padding: 1.3vh 18px; border-radius: 12px; }
  .w-hero-top { margin-bottom: 0.8vh; }
  .w-odo { --fs: min(4.2vw, 7.2vh); }
  .w-kes { font-size: min(1.8vw, 3vh); }
  .w-hero-foot { margin-top: 0.8vh; }
  .w-story { font-size: min(1.15vw, 2vh); }
  .w-story em { display: inline; margin: 0 0 0 8px; font-size: 11px; }
  .w-pulse { height: 3.6vh; margin-top: 0.4vh; }
  .w-hero-actions { margin-top: 0.6vh; }
  .w-btn { padding: 7px 14px; font-size: 13px; }

  .w-tiles { gap: 10px; }
  .w-tile { padding: 1.1vh 14px; }
  .w-tv { font-size: min(1.6vw, 2.9vh); margin-top: 0.4vh; }
  .w-tf { font-size: 12px; margin-top: 0.3vh; }

  .dash-row { min-height: 0; display: grid; grid-template-columns: 1fr 1.15fr 1.35fr; gap: 10px; }
  .panel { min-height: 0; display: flex; flex-direction: column; padding: 1.4vh 16px !important; border-radius: 12px; background: var(--surface);
    box-shadow: inset 0 0 0 1px var(--line-soft); border-top: 1px solid rgba(150, 205, 255, 0.35); overflow: hidden; }
  .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 1vh; }

  .fuel-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.8vh; }
  .fuel-list li { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 10px; padding-bottom: 0.8vh; border-bottom: 1px solid var(--line-soft); }
  .fuel-list .fl { font-size: 13px; color: var(--text); }
  .fuel-list b { font-size: min(1.5vw, 2.7vh); font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
  .fuel-list em { grid-column: 1 / -1; font-style: normal; font-size: 11.5px; color: var(--quiet); }
  .w-fuel-towns { font-size: 11px; line-height: 1.6; margin-top: auto; padding-top: 0.8vh; }
  .w-fuel-src { font-size: 11px; margin-top: 0.4vh; }

  .w-risk { display: flex !important; }
  .risk-line { display: flex; align-items: baseline; gap: 12px; }
  .w-risk-num { font-size: min(3vw, 5.4vh); margin: 0; }
  .w-risk-cap { font-size: 12.5px; margin: 0; line-height: 1.35; }
  .w-gauge { margin-top: 1vh; }
  .w-gauge-bar { height: 10px; }
  .w-needle { height: 24px; top: -7px; width: 5px; }
  .w-gauge-scale { font-size: 10.5px; margin-top: 0.6vh; }
  .w-kicker.owes { margin-top: auto; padding-top: 1vh; margin-bottom: 0.8vh; }
  .w-split-bar { gap: 8px; }
  .w-split-bar > div { padding: 1vh 12px; }
  .w-split-bar b { font-size: min(1.9vw, 3.4vh); }
  .w-split-bar span { font-size: 12px; margin-top: 2px; }
  .w-split-bar em { font-size: 11px; margin-top: 2px; }
  .w-link { margin-top: 0.8vh; font-size: 12.5px; }

  .w-history-title { font-size: min(1.25vw, 2.2vh); }
  .w-bars { flex: 1; height: auto; min-height: 40px; margin-top: 2.6vh; margin-bottom: 2vh; }
  .w-bars .bar i { font-size: 9.5px; }
  .w-bars .bar u { font-size: 9.5px; top: calc(100% + 4px); }
  .house { border-top: 1px solid var(--line-soft); padding-top: 1vh; }
  .house-line { font-size: 13.5px; font-weight: 600; color: var(--ink); }
  .house-line b { font-size: min(1.5vw, 2.6vh); font-weight: 800; letter-spacing: -0.02em; margin-left: 4px; }
  .house .w-range { margin-top: 0.8vh; height: 8px; }
  .house .w-range::-webkit-slider-thumb { width: 22px; height: 22px; }

  .w-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px var(--pad); }
  .w-foot-note { font-size: 11.5px; color: var(--quiet); text-align: right; }
}

/* Smaller screens (phones, small tablets, short windows): the same panels stacked, and the page scrolls. */
@media (max-width: 1023px), (max-height: 619px) {
  .dash-row { display: grid; gap: 12px; padding: 0 var(--pad); }
  main.dash > section { margin-left: var(--pad); margin-right: var(--pad); }
  main.dash > .w-tiles { padding: 12px 0; }
  .panel { padding: 16px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-soft); }
  .panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
  .fuel-list { list-style: none; margin: 0; padding: 0; }
  .fuel-list li { display: grid; grid-template-columns: 1fr auto; padding: 8px 0; border-bottom: 1px solid var(--line-soft); }
  .fuel-list b { font-size: 20px; color: var(--ink); }
  .fuel-list em { grid-column: 1 / -1; font-style: normal; font-size: 12px; color: var(--quiet); }
  .risk-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
  .w-kicker.owes { margin: 14px 0 8px; }
  .house { margin-top: 26px; }
  .house-line b { display: block; font-size: 26px; color: var(--ink); }
  .w-foot { position: relative; bottom: auto; }
  .w-foot-note { font-size: 12px; color: var(--quiet); margin-top: 6px; }
  .dash-row { padding-bottom: 16px; }
}

/* One-screen fixes: the counter panel keeps its inner padding, the risk panel's contents span its width (an older
   rule right-aligned them and squashed the gauge), and the fuel towns line is shorter. */
@media (min-width: 1024px) and (min-height: 620px) {
  main.dash > .w-hero { padding: 1.3vh 18px; }
  .w-risk { align-items: stretch !important; }
  .w-gauge-scale .m50 { transform: translateX(-50%); }
  .w-gauge-scale .m60 { transform: translateX(-10%); }
}
/* Short laptop screens (about 720px tall): tighter fuel rows so the fuel panel still fits. */
@media (min-width: 1024px) and (min-height: 620px) and (max-height: 760px) {
  .fuel-list { gap: 0.4vh; }
  .fuel-list li { padding-bottom: 0.4vh; }
  .fuel-list em { font-size: 11px; }
}
/* Panel contents keep their own height (only the history chart stretches), so nothing overlaps on short screens.
   On short screens the risk panel drops its register link (the "Who Kenya owes" button above goes to the same page). */
@media (min-width: 1024px) and (min-height: 620px) {
  .panel > * { flex-shrink: 0; }
  .panel > .w-bars { flex-shrink: 1; }
}
@media (min-width: 1024px) and (min-height: 620px) and (max-height: 800px) {
  .w-risk .w-link { display: none; }
  .w-risk .w-pill { white-space: nowrap; font-size: 10.5px; padding: 4px 10px; }
  .w-risk-num { font-size: min(2.6vw, 4.6vh); }
  .w-split-bar > div { padding: 0.8vh 10px; }
}

/* ===== Calmer, less busy (same content) =====
   Fewer boxes and lines, red only for the debt and what is rising, quieter small print. */
/* Headings: plain quiet labels, no red dash. */
.w-kicker::before { display: none; }
.w-kicker { color: #8fa1b7; letter-spacing: 0.08em; }
/* The four debt figures: one clean strip with thin dividers instead of four boxed cards. */
.w-tiles { gap: 0; background: var(--surface); border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-soft); }
.w-tile, .w-tile:hover { background: transparent; box-shadow: none; border: 0; border-radius: 0; transform: none; }
.w-tile + .w-tile { border-left: 1px solid var(--line-soft); }
.w-tf { color: #8fa1b7; }
#interestFormula { display: none; }   /* the formula moves into the label's hover tip */
/* Bottom panels: a plain background, no outline or coloured top edge, no boxes inside. */
.panel { box-shadow: none !important; border-top: 0 !important; background: rgba(19, 38, 61, 0.65) !important; }
.w-split-bar > div, .s-dom, .s-ext { background: transparent !important; box-shadow: none !important; border: 0 !important; padding-left: 0 !important; }
.s-ext { border-left: 1px solid var(--line-soft) !important; padding-left: 14px !important; }
.fuel-list li { border-bottom-color: rgba(51, 70, 92, 0.5); }
.w-risk .w-pill { box-shadow: none; background: rgba(239, 62, 74, 0.12); }
/* Counter panel: no glow, a fainter heartbeat line, softer buttons. */
.w-hero { box-shadow: inset 0 0 0 1px var(--line-soft) !important; border-top: 2px solid rgba(239, 62, 74, 0.7); background: var(--surface); }
.w-odo .wheel { box-shadow: inset 0 0 0 1px rgba(150, 205, 255, 0.18), inset 0 0.06em 0.12em rgba(0, 0, 0, 0.6); }
.w-pulse { opacity: 0.45; }
.w-btn { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25), 0 4px 12px -6px rgba(239, 62, 74, 0.6); }
.w-btn.ghost { box-shadow: inset 0 0 0 1px rgba(150, 205, 255, 0.35); }
.w-note, .w-usd { color: #7f91a8; }
/* History chart: one quiet bar colour; only "now" is red. */
.w-bars .bar, .w-bars .bar.mark { background: rgba(124, 160, 205, 0.32); box-shadow: none; }
.w-bars .bar.now { box-shadow: none; }

/* History bar hover tip (wow.js barTips): the year's debt, GDP, debt to GDP, population and debt per person. */
.w-bars .bar { cursor: pointer; }
.w-bars .bar.on:not(.now) { background: rgba(150, 195, 245, 0.6); }
.bar-tip { position: fixed; z-index: 400; pointer-events: none; display: grid; gap: 3px; min-width: 190px; padding: 10px 12px; border-radius: 10px;
  background: rgba(7, 17, 29, 0.97); box-shadow: inset 0 0 0 1px var(--glass-rim), 0 10px 30px -10px rgba(0, 0, 0, 0.9); font-size: 12.5px; color: var(--text); }
.bar-tip b { font-size: 13.5px; color: #fff; margin-bottom: 2px; }
.bar-tip span { display: flex; justify-content: space-between; gap: 16px; }
.bar-tip em { font-style: normal; font-weight: 700; color: var(--ink); }
.bar-tip[hidden] { display: none; }

/* LIVE ticker items are links to the official source of each figure (site-chrome.js); the scroll pauses on hover so
   an item can be clicked, and each shows its source in small type. */
.w-band-track a { color: #fff; text-decoration: none; display: flex; align-items: center; }
.w-band-track a:hover span { color: #7cc4ff; text-decoration: underline; text-underline-offset: 3px; }
.w-band-track small { font: 600 10px/1 'IBM Plex Mono', monospace; letter-spacing: 0.04em; text-transform: none; color: #8fa1b7; margin-left: 8px; padding: 3px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px rgba(150, 205, 255, 0.3); }
.w-band:hover .w-band-track { animation-play-state: paused; }

/* "Projected increase since you opened this page": the figure and the seconds sit in fixed-width slots with equal-width
   digits, so the line never slides as the numbers grow. */
.w-story { font-variant-numeric: tabular-nums; }
.w-story strong { display: inline-block; min-width: 12ch; text-align: right; }   /* fits KES 999.99K and KES 9.999M */
.w-story em { display: inline-block; min-width: 15ch; text-align: left; }   /* fits "59m 59s on page" */

/* Gauge: two zones split at Kenya's 55% debt anchor (replaces the old 50% / 60% bands). */
html body .w-gauge-bar { grid-template-columns: 55fr 45fr; }
html body .w-gauge-scale .m50 { left: 55%; transform: translateX(-50%); }
/* First and last bar labels sit inside the chart instead of centred, so the edges don't cut them off. */
html body .w-bars .bar:first-child i, html body .w-bars .bar:first-child u { left: 0; transform: none; }
html body .w-bars .bar:last-child i, html body .w-bars .bar:last-child u { left: auto; right: 0; transform: none; }

/* Phones: tighter layout so the home page doesn't run long. The four figures sit two by two, the two buttons side by
   side, the home/abroad split side by side without its tall empty boxes, and the gauge scale on one line. */
@media (max-width: 600px) {
  .w-tiles { grid-template-columns: 1fr 1fr; }
  .w-tile { min-height: 0; padding: 12px 14px; }
  .w-tile + .w-tile { border-left: 0; }
  .w-tile:nth-child(even) { border-left: 1px solid var(--line-soft); }
  .w-tile:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .w-tile .w-tv { font-size: 21px; }
  .w-tile .w-tf { font-size: 12px; line-height: 1.35; }
  .w-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
  .w-hero-actions .w-btn { padding: 10px 14px; font-size: 13.5px; gap: 6px; }
  .w-hero-actions .w-note { flex-basis: 100%; }
  .w-split-bar { flex-direction: row; }
  .w-split-bar > div { min-height: 0; flex: 1; }
  .w-gauge-scale { font-size: 10px; white-space: nowrap; }
  .w-gauge-scale .m50 { transform: translateX(-50%); }
  .w-gauge { margin-bottom: 18px; }
}
/* Phones, second pass: both buttons fit on one row (smaller, arrow dropped), the two split boxes start at the top so
   57% and 43% line up, and the "Who Kenya owes" heading runs as one line of text. */
@media (max-width: 600px) {
  .w-hero-actions .w-btn { padding: 9px 13px; font-size: 13px; }
  .w-hero-actions .w-btn span { display: none; }
  .w-split-bar { min-height: 0; align-items: stretch; }
  .w-split-bar > div { justify-content: flex-start !important; }
  .w-kicker.owes { display: block; }
}
/* Phones, third pass: the two buttons share one row, and the Debt risk panel is as wide as the panels around it
   (its old side margin, var(--pad), was meant for the desktop layout). */
@media (max-width: 600px) {
  .w-hero-actions .w-btn { flex: 1 1 auto; justify-content: center; white-space: nowrap; padding: 9px 10px; font-size: 12.5px; }
  .w-risk { margin-left: 0; margin-right: 0; }
}
/* Phones: the same 12px gap between every panel (the hero, the figures strip and the fuel panel were touching). */
@media (max-width: 600px) {
  main.dash > .w-tiles, main.dash > .dash-row { margin-top: 12px; }
}
/* Phones: the "since you opened this page" figure sits right after the label. On desktop it is right-aligned in a
   fixed-width box so the line never shifts; on a phone the line wraps, and that box left a gap. Left-aligned it still
   doesn't shift, since nothing follows it on its line. */
@media (max-width: 600px) {
  .w-story strong { text-align: left; }
}
/* "Since you opened this page" label: the full sentence on wider screens, a shorter one on phones so the line fits
   on one row. */
.w-story-short { display: none; }
@media (max-width: 600px) {
  .w-story-long { display: none; }
  .w-story-short { display: inline; }
  .w-story strong { min-width: 0; }
}
/* Phones: the figure and the seconds share the second line; the figure keeps a fixed width so "N seconds" doesn't
   slide as the number grows. */
@media (max-width: 600px) {
  .w-story strong { min-width: 11ch; }
}
