/* Kenya Debt Clock: the navy look on every page (the same as the home page). Loaded last on each page, after the
   page's own styles, so it takes over colours, fonts, the header and the footer. site-chrome.js adds the LIVE ticker
   and fixes any colours a page sets in its own scripts. */
:root {
  --navy: #0b1a2c; --night: #07111d; --surface: #13263d; --surface-2: #182f4a; --line: #33465c; --line-soft: #243950;
  --text: #d4dde8; --quiet: #a9b8cb; --sky: #7cc4ff; --rim: rgba(150, 205, 255, 0.35); --frame: 12px;
  /* the site's own colour tokens (theme.css), switched to the navy palette */
  --bg: #0b1a2c; --ink: #f2f5f9; --red: #ef3e4a; --red-bright: #ff6b74; --red-live: #ef3e4a; --flag-red: #ef3e4a;
  --flag-green: #2fb36b; --orange: #f2a900; --link: #7cc4ff;
  /* site-fonts.css forces this font on everything: make it Inter */
  --site-font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
}
html { background: var(--navy) !important; }
html body { background: var(--navy) !important; color: var(--text) !important; padding: var(--frame) !important; -webkit-font-smoothing: antialiased; }
html body a { color: var(--sky); }
html body ::selection { background: rgba(124, 196, 255, 0.3); }

/* Kenya's flag as the border of the whole site, fixed on all four edges (replaces the old stripe at the top). */
html body .kenya-stripe { display: none !important; }

/* The LIVE ticker (added by site-chrome.js), pinned just inside the top of the frame. */
.w-band { position: sticky; top: var(--frame); z-index: 102; height: 38px; display: flex; align-items: center; overflow: hidden; padding-left: 92px;
  background: var(--night); border-bottom: 1px solid var(--line); }
.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: #c8102e; color: #fff; font: 800 14px/1 'Inter', sans-serif; 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: siteband 45s linear infinite; }
.w-band-track span { font: 600 13px/1 'Inter', sans-serif; letter-spacing: 0.02em; text-transform: uppercase; color: #fff; white-space: nowrap; display: flex; align-items: center; }
.w-band-track span::after { content: "\25c6"; color: #ef3e4a; font-size: 0.6em; margin: 0 1.6em; }
@keyframes siteband { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .w-band-track { animation: none; } }

/* Header, as on the home page: name, menu with the current page underlined in red, a live pill. */
html body header { top: calc(var(--frame) + 38px) !important; background: rgba(11, 26, 44, 0.96) !important; color: var(--text) !important;
  border-bottom: 1px solid var(--line-soft) !important; box-shadow: none !important; backdrop-filter: blur(10px); height: auto !important; min-height: 0 !important; padding: 10px 24px !important; }
html body header h1 { color: var(--ink) !important; font-weight: 800 !important; font-size: 20px !important; letter-spacing: -0.035em !important; text-transform: none !important; }
html body header h1 span, .drawer-header h2 span { color: #ef3e4a !important; }
html body header .nav-links a { color: var(--text) !important; font-size: 13.5px !important; font-weight: 600 !important; padding: 6px 0 !important; border-bottom: 2px solid transparent !important; text-decoration: none !important; background: none !important; }
html body header .nav-links a:hover { color: #fff !important; border-bottom-color: #ef3e4a !important; }
html body header .nav-links a.active { color: #fff !important; border-bottom-color: #ef3e4a !important; }
html body .header-meta { color: var(--quiet) !important; font: 500 11.5px/1.3 'IBM Plex Mono', monospace !important; padding: 6px 12px !important; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--rim); background: rgba(255, 255, 255, 0.04) !important; justify-self: end; }
html body .header-meta br, html body .header-meta strong { display: none; }
html body .header-meta { font-size: 0 !important; }               /* hide the old loose text ("LIVE |", "July 1 - June 30")... */
html body .header-meta #liveDateTime, html body .header-meta .live-dot { font-size: 11.5px !important; }   /* ...keep the live time */
html body .live-dot { background: #ef3e4a !important; }
html body .hamburger span { background: var(--ink) !important; }
html body .mobile-drawer { background: var(--navy) !important; border-left: 1px solid var(--line); }
html body .mobile-drawer a { color: var(--text) !important; border-bottom: 1px solid var(--line-soft) !important; background: none !important; }
html body .mobile-drawer a.active { color: #ef3e4a !important; }
html body .drawer-header h2 { color: var(--ink) !important; text-transform: none !important; letter-spacing: -0.02em !important; }
html body .drawer-close { color: var(--ink) !important; }

/* Footer: the pinned bar at the bottom, as on the home page. */
html body footer { position: sticky !important; bottom: var(--frame); z-index: 55; background: rgba(7, 17, 29, 0.96) !important; color: var(--quiet) !important;
  border-top: 1px solid var(--line) !important; font: 500 12px/1.6 'IBM Plex Mono', monospace !important; padding: 9px 24px !important; backdrop-filter: blur(8px); }
html body footer a { color: var(--text) !important; }

/* Page content: navy, light text, one quiet card style, red kept for the debt. */
html body main, html body .page-main { background: transparent !important; color: var(--text) !important; }
html body main :is(h1, h2, h3, h4, h5, strong, b, dt, th, summary) { color: var(--ink); }
html body main :is(p, li, td, dd, label, small, figcaption, caption) { color: var(--text); }
html body main a { color: var(--sky) !important; }
html body :is(.card, .stat-card, .default-card, .project-card, .chart-wrap, .fc-chart-wrap, .fc-era-panel, .fc-insight, .fc-vs, .context-note, .note,
  .formula-box, .gdp-hero, .provenance, .summary, .explorer, .daily-banner, .daily-main, .daily-side-item, .method-toc, .stat-strip, .boundary,
  .source-table, .salary-table, .fc-norm-table table, .hero, .hero .impact-cards > div, #load-error, .project-card > div:last-child) {
  background: var(--surface) !important; color: var(--text) !important; border-color: var(--line-soft) !important; box-shadow: none !important; }
html body .stat-strip-item:hover { background: var(--surface-2) !important; }
html body main table { background: transparent !important; border-color: var(--line-soft) !important; }
html body main th { background: var(--surface-2) !important; color: var(--ink) !important; border-color: var(--line-soft) !important; }
html body main td { border-color: var(--line-soft) !important; }
html body main :is(tr:nth-child(even), tr:nth-child(odd)) td { background: transparent !important; }
html body main tr:nth-child(even) td { background: rgba(255, 255, 255, 0.025) !important; }
html body main tr:hover td { background: rgba(124, 196, 255, 0.06) !important; }
html body main :is(tr.highlight-top, tr.highlight-bottom, tr.row-highlight, tr.row-count, .avg-row) td { background: rgba(124, 196, 255, 0.08) !important; }
html body main :is(input, select, textarea) { background: var(--night) !important; color: var(--ink) !important; border: 1px solid var(--rim) !important; border-radius: 8px; }
html body main button, html body .tab-btn { background: rgba(255, 255, 255, 0.05) !important; color: var(--text) !important; border: 1px solid var(--rim) !important; border-radius: 999px !important; }
html body main button:hover:not(:disabled), html body .tab-btn:hover { background: rgba(124, 196, 255, 0.12) !important; color: #fff !important; }
html body :is(.tab-btn.active, main button.active, main button[aria-selected="true"]) { background: rgba(239, 62, 74, 0.18) !important; border-color: rgba(239, 62, 74, 0.6) !important; color: #fff !important; }
html body :is(.progress-bar-bg, .fy-bar-wrap) { background: var(--line-soft) !important; }
html body :is(.badge-intl, .badge-news, .badge-official, .badge-ongoing, .badge-resolved, .project-status) { background: transparent !important; box-shadow: inset 0 0 0 1px currentColor; }
html body :is(hr) { border-color: var(--line-soft) !important; }
html body .skip-link { background: var(--surface) !important; color: var(--ink) !important; }

/* 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; }

/* Old header hidden in the new look: every page uses the shared header in chrome.css instead. */
html body header:not(.w-head), html body .kenya-stripe { display: none !important; }

/* The page's own footer is hidden in the new look; the shared bottom bar (chrome.css) replaces it. */
html body footer:not(.w-foot) { display: none !important; }
