/* ========== GLOBAL (ZAMBIA THEME) ========== */
:root {
  --nav-h: 92px;

  /* Zambia flag palette */
  --zm-green:  #198754;  /* rich green (primary) */
  --zm-red:    #d7262d;  /* strong red (accent) */
  --zm-black:  #111111;  /* near-black */
  --zm-orange: #f28c28;  /* orange accent */
  --zm-copper: #b87333;  /* optional "copper" accent */

  /* Tints/Shades for UI */
  --bg: #f6f7f9;
  --card: #ffffff;
  --muted: #667085;
  --border: #e6e6e6;

  /* ÃƒÆ’Ã‚Â¢Ãƒâ€¦Ã¢â‚¬Å“ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ Aliases for admin UI (so your admin-form CSS works) */
  --bg-elev: var(--card);
  --border-mid: var(--border);
  --brand-800: var(--primary);

  --green-50:  #eaf6f0;
  --green-100: #d7f0e3;
  --green-200: #bfe6d2;
  --green-600: #157347;  /* hover shade */
  --green-700: #0f5f3a;

  --red-50:  #fff1f2;
  --red-100: #ffe4e6;
  --red-600: #b91c1c;

  --orange-50:  #fff7ed;
  --orange-100: #ffedd5;
  --orange-600: #ea580c;

  --shadow-1: 0 2px 6px rgba(0,0,0,.08);
  --shadow-2: 0 4px 12px rgba(0,0,0,.10);
  --shadow-3: 0 6px 18px rgba(0,0,0,.12);

  /* Typography */
  --font: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

  /* Primary accents */
  --primary: var(--zm-green);
  --primary-ink: #ffffff;
  --primary-hover: var(--green-600);

  /* Secondary accents */
  --accent: var(--zm-red);
  --accent-ink: #ffffff;
  --accent-hover: var(--red-600);

  /* Optional highlight (for badges/tags/warnings) */
  --highlight: var(--zm-orange);
  --highlight-hover: var(--orange-600);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: var(--nav-h) 0 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--zm-black);
}

/* ========== NAVBAR (responsive) ========== */
.navbar {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(240px, auto) auto auto;
  align-items: center;
  gap: 14px;
  background: var(--primary);          /* Zambia green */
  padding: 14px 18px;
  color: var(--primary-ink);
  min-height: var(--nav-h);
  box-shadow: 0 12px 28px rgba(7, 20, 14, 0.18);
}

/* Subtle Zambia flag stripe under the navbar */
.navbar::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 6px;
  background: linear-gradient(
    to right,
    var(--zm-green) 0%,
    var(--zm-green) 55%,
    var(--zm-red) 55%,
    var(--zm-red) 72%,
    var(--zm-black) 72%,
    var(--zm-black) 88%,
    var(--zm-orange) 88%,
    var(--zm-orange) 100%
  );
}

/* Brand link (logo + text) */
.nav-left .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--primary-ink);
  min-width: 0;
}

.navbar .brand-text {
  color: var(--primary-ink);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-size: clamp(.95rem, 1.7vw, 1.3rem);
  line-height: 1.1;
  white-space: normal;
  max-width: 340px;
}

/* Optional: subtle hover/focus without changing color */
.nav-left .brand:hover .brand-text,
.nav-left .brand:focus .brand-text {
  color: var(--primary-ink);
  text-decoration: none;
}

/* Accessible focus outline */
.nav-left .brand:focus-visible {
  outline: 2px solid rgba(255,255,255,.75);
  outline-offset: 3px;
}

/* Logo (inside brand link) */
.nav-left .brand .logo,
.logo {
  height: clamp(36px, 7vw, 60px);
  width: clamp(36px, 7vw, 60px);
  border-radius: 50%;
  object-fit: cover;

  /* Zambia-style ring */
  outline: 2px solid rgba(255,255,255,.9);
  outline-offset: 2px;
}

/* mobile toggle */
.nav-toggle {
  display: none;
  background: transparent;
  color: var(--primary-ink);
  border: 2px solid var(--highlight); /* Zambia orange accent */
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1.1rem;
  cursor: pointer;
}

.nav-toggle:hover {
  border-color: var(--accent);        /* red on hover */
}

/* menu */
.nav-right {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin-left: auto;
  align-items: center;
  min-width: 0;
}

.nav-link,
.nav-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-weight: 600;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 11px;
  cursor: pointer;
  transition: color .2s ease, opacity .2s ease, background .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  font-size: 0.89rem;
  white-space: nowrap;
}

.nav-link-compact {
  flex-direction: column;
  gap: 1px;
  line-height: 1.02;
  min-width: 84px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.nav-link-compact span {
  display: block;
}

.nav-link:hover,
.nav-logout:hover {
  color: #ffffff;
  opacity: 1;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.14);
  transform: translateY(-1px);
}

.nav-link.is-active {
  background: #ffffff;
  color: var(--primary);
  border-color: rgba(255,255,255,.92);
  box-shadow: 0 10px 20px rgba(8, 22, 16, 0.16);
}

.nav-link.is-active:hover {
  color: var(--primary);
  background: #ffffff;
}

.nav-link:focus-visible,
.nav-logout:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid rgba(255,255,255,.85);
  outline-offset: 2px;
}

.nav-form {
  display: inline-flex;
  margin: 0;
}

.nav-logout {
  color: rgba(255,255,255,.94);
  min-width: 74px;
}

/* navbar ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ÃƒÂ¢Ã¢â€šÂ¬Ã¢â€žÂ¢ mobile behavior */
@media (max-width: 1220px) {
  .navbar { grid-template-columns: 1fr auto; }
  .nav-toggle { display: inline-block; }

  .nav-right {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;

    background: var(--zm-green);
    padding: 14px 16px 18px;
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 20px 32px rgba(7, 20, 14, 0.18);

    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform .25s ease, opacity .25s ease;
  }

  .nav-right.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link,
  .nav-logout {
    padding: 10px 8px;
    border-radius: 10px;
    background: rgba(0,0,0,0.12);   /* subtle contrast on green */
    text-align: center;
    width: 100%;
  }

  .nav-link-compact {
    min-width: 0;
    flex-direction: row;
    gap: 6px;
  }

  .nav-link.is-active {
    background: #ffffff;
    color: var(--primary);
  }
}

@media (max-width: 760px) {
  :root {
    --nav-h: 86px;
  }

  .navbar {
    padding: 12px 14px;
  }

  .navbar .brand-text {
    max-width: 210px;
    font-size: .9rem;
  }

  .nav-right {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1221px) {
  .nav-toggle {
    display: none;
  }
}

/* ========== HERO ÃƒÆ’Ã‚Â¢ÃƒÂ¢Ã¢â‚¬Å¡Ã‚Â¬ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â ZAMBIA THEME ========== */
.hero {
  scroll-margin-top: calc(var(--nav-h) + 12px);
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  margin: 0 0 25px;
  background: var(--zm-green);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/static/images/national-assembly.jpg");
  background-size: cover;
  background-position: center;
  filter: brightness(0.55) saturate(1.08) contrast(1.08);
  transform: scale(1.02);
}

/* Zambia ribbon overlay */
.hero::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  top: 12%;
  height: 14px;
  transform: rotate(-2deg);
  background: linear-gradient(
    to right,
    var(--zm-green) 0%,
    var(--zm-green) 58%,
    var(--zm-red) 58%,
    var(--zm-red) 74%,
    var(--zm-black) 74%,
    var(--zm-black) 90%,
    var(--zm-orange) 90%,
    var(--zm-orange) 100%
  );
  opacity: 0.9;
  mix-blend-mode: overlay;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(75% 60% at 50% 50%,
      rgba(0,0,0,0.06) 0%,
      rgba(0,0,0,0.52) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1100px, 92vw);
  padding: 48px 20px;
  color: var(--primary-ink);
  text-align: center;
}

.hero-title {
  margin: 0 0 8px;
  font-size: clamp(28px, 6vw, 56px);
  font-weight: 900;
  letter-spacing: .4px;
  line-height: 1.08;
  text-shadow: 0 1px 0 rgba(0,0,0,.25), 0 6px 22px rgba(0,0,0,.42);
}

.hero-title-text {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid rgba(255,255,255,.85);
  animation: typewrite 5s steps(30, end) .5s infinite alternate, blink .8s step-end infinite;
}

.hero-subtitle {
  color: rgba(255,255,255,.88);
}

@keyframes typewrite { from { width: 0; } to { width: 27ch; } }
@keyframes typewriteShort { from { width: 0; } to { width: 22ch; } }
@keyframes blink { 50% { border-color: transparent; } }

@media (max-width: 620px) {
  .hero { min-height: 62vh; }
}

@media (max-width: 480px) {
  .hero-title-text {
    white-space: nowrap;
    border-right: 2px solid rgba(255,255,255,.85);
    animation: typewriteShort 5s steps(24, end) .5s infinite alternate, blink .8s step-end infinite;
  }
  .hero-subtitle { font-size: .95rem; }
}

.hero-cta .btn,
.hero-cta .btn-primary {
  padding: 12px 14px;
  border-radius: 10px;
}

/* overview panel on hero */
.hero-overview {
  margin: 0 auto;
  max-width: 900px;
  background: rgba(0,0,0,.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  padding: 16px 18px;
  text-align: left;
}

.hero-intro-card {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 12px;
  max-width: 720px;
}

.hero-intro-card h3 { margin: 0 0 6px 0; }

.hero-overview h3 {
  margin: 0 0 8px;
  color: rgba(255,255,255,.95);
}

.hero-overview p {
  margin: 0;
  color: rgba(255,255,255,.88);
  line-height: 1.5;
  font-size: .98rem;
}

/* ========== LAYOUT CONTAINERS & SECTIONS ========== */
.page-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.section {
  background: #fff;
  border-radius: 12px;
  padding: clamp(18px, 2.5vw, 25px);
  margin: clamp(12px, 2.5vw, 25px) 0;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.section h2, .section h3 { color: #1b4332; }
.section ul { list-style: none; padding: 0; }
.section ul li {
  margin: 12px 0; padding: 12px;
  border-left: 4px solid #2d6a4f;
  background: #f9fafa; border-radius: 6px;
}
@media (max-width: 480px) {
  .page-container { padding: 0 12px; }
  .section { padding: 16px; }
}

/* ========== HEADER / GRID / KPI ========== */
.about-header {
  display: flex; justify-content: space-between; align-items: start;
  gap: 16px; margin-bottom: 12px;
}
.badge {
  background: #e8f5e9; color: #1b4332;
  border: 1px solid #95d5b2;
  padding: 6px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.subtle { color: #2b2b2b; }

.grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin-top: 16px;
}
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .grid-2 { gap: 12px; } }

.card-lite {
  background: #fff; border: 1px solid #e6e6e6;
  border-radius: 10px; padding: 16px;
}

.kpi-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 12px; margin: 18px 0 6px;
}
@media (max-width: 800px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .kpi-row { grid-template-columns: 1fr; } }
.kpi {
  background: #fff; border: 1px solid #e6e6e6;
  border-radius: 12px; padding: 14px; text-align: center;
}
.kpi-value { font-size: 1.6em; font-weight: 800; color: #1b4332; line-height: 1.1; }
.kpi-label { color: #555; font-size: .9em; margin-top: 4px; }

/* ========== BUTTONS / CTAs ========== */
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 8px; }
.btn {
  display: inline-block;
  background: #fff; color: #1b4332;
  border: 2px solid #2d6a4f;
  padding: 10px 14px; border-radius: 10px;
  text-decoration: none; font-weight: 700;
  transition: all .2s ease;
}
.btn:hover { background: #e8f5e9; border-color: #40916c; }
.btn-primary {
  background: #2d6a4f; color: #fff; border-color: #2d6a4f;
}
.btn-primary:hover { background: #40916c; border-color: #40916c; }
@media (max-width: 560px) {
  .cta-row { flex-direction: column; }
  .btn, .btn-primary { width: 100%; text-align: center; }
}

/* ========== TOP HEADER (optional banner) ========== */
.top-header {
  text-align: center; background: #2d6a4f; color: #fff;
  padding: 40px 20px; border-bottom: 4px solid #40916c;
}
.top-header h2 { margin: 0; font-size: 1.8em; }
.top-header p { margin-top: 10px; font-size: 1.1em; color: #d8f3dc; }

/* ========== FORMS ========== */
form { display: flex; flex-direction: column; gap: 12px; }
input[type="file"], input[type="text"], input[type="password"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: 12px; border: 2px solid #2d6a4f; border-radius: 8px; font-size: 1rem; background: #fff; color: #000;
}


button {
  background: #2d6a4f; color: #fff; border: none;
  padding: 12px 18px; border-radius: 10px;
  font-weight: 600; font-size: 1rem; cursor: pointer;
  transition: background .2s ease-in-out;
}
button:hover { background: #40916c; }
pre {
  background: #f1f3f5; border-radius: 8px; padding: 15px;
  font-size: .9em; overflow-x: auto; border: 1px solid #ccc;
}

/* ========== NEWS ========== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px; margin-top: 20px;
}
.news-card {
  background: #fff; border: 1px solid #ddd; border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  padding: 15px; text-align: left; transition: transform .2s, box-shadow .2s;
}
.news-card:hover { transform: translateY(-5px); box-shadow: 0 6px 12px rgba(0,0,0,.12); }
.news-card img {
  width: 100%; height: 160px; object-fit: cover;
  border-radius: 8px; margin-bottom: 10px;
}
.news-card h3 { margin: 10px 0; font-size: 1.1em; color: #1b4332; }
.news-card small { display: block; color: #666; margin-bottom: 8px; }
.news-card p { font-size: .9em; color: #333; margin-bottom: 12px; }
.news-card a { text-decoration: none; color: #2d6a4f; font-weight: bold; }
.news-card a:hover { text-decoration: underline; }

/* ========== CAROUSEL ========== */
.carousel-container { position: relative; display: flex; align-items: center; }
.carousel {
  display: flex; overflow-x: auto; scroll-behavior: smooth;
  gap: 20px; padding: 10px; scrollbar-width: none;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel-card {
  flex: 0 0 280px; background: #fff; border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,.1); text-align: center;
  padding: 15px; text-decoration: none; color: #333;
  transition: transform .3s, box-shadow .3s;
}
.carousel-card:hover { transform: translateY(-5px); box-shadow: 0 6px 14px rgba(0,0,0,.15); }
.carousel-card img {
  width: 100%; height: 160px; object-fit: contain;
  border-radius: 8px; margin-bottom: 12px; background: #f8f9fa;
}
.carousel-card h3 { color: #1b4332; margin: 10px 0; }
.carousel-card p { font-size: .9em; color: #444; }
.carousel-btn {
  background: #2d6a4f; color: #fff; border: 0;
  padding: 10px 14px; border-radius: 50%; cursor: pointer; font-size: 1.2em;
  margin: 0 5px; transition: background .3s;
}
.carousel-btn:hover { background: #40916c; }
@media (max-width: 600px) {
  .carousel-card { flex-basis: 82vw; }
  .carousel-btn { padding: 8px 10px; font-size: 1rem; }
}

/* ========== LINKS / BUTTONS (GIS M&E) ========== */
/* Use this class on your <a> links: class="btn-link" */
.btn-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(27, 67, 50, 0.22);
  background: #1b4332;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  letter-spacing: .2px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
  box-shadow: 0 6px 18px rgba(27, 67, 50, 0.16);
  cursor: pointer;
  user-select: none;
}

.btn-link:hover{
  background: #163828;
  border-color: rgba(27, 67, 50, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(27, 67, 50, 0.20);
}

.btn-link:active{
  transform: translateY(0);
  box-shadow: 0 5px 14px rgba(27, 67, 50, 0.14);
}

.btn-link:focus-visible{
  outline: 3px solid rgba(27, 67, 50, 0.28);
  outline-offset: 2px;
}

/* Admin setup link variant (smaller, more subtle) */
.btn-link--subtle{
  padding: 8px 12px;
  font-size: 12px;
  background: #f6fbf8;
  color: #1b4332;
  border: 1px solid rgba(27, 67, 50, 0.25);
  box-shadow: none;
}

.btn-link--subtle:hover{
  background: #eaf6ef;
  color: #163828;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.06);
}

/* Optional: icon sizing if you later add SVG icons inside buttons */
.btn-link svg{
  width: 16px;
  height: 16px;
}

/* ========== PROJECT CARD ACTION ROW ========== */
.project-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

/* ========== OPTIONAL: make project details spacing cleaner ========== */
.project-details p{
  margin: 6px 0;
  color: #2f3b35;
}

.project-details small{
  display: inline-block;
  margin-top: 6px;
  opacity: 0.9;
}

/* ========== MOBILE TUNING ========== */
@media (max-width: 560px){
  .btn-link{
    width: 100%;
    justify-content: center;
    padding: 11px 14px;
  }
  .btn-link--subtle{
    width: 100%;
  }
}

/* ========== PROJECTS ========== */
.projects-container {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px; margin-top: 20px;
}
.project-card {
  background: #fff; border: 1px solid #ddd; border-radius: 12px;
  overflow: hidden; box-shadow: 0 4px 10px rgba(0,0,0,.1);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.project-img {
  width: 100%; height: 200px; object-fit: contain; background: #f8f9fa;
}
.project-details { padding: 15px; font-size: 14px; flex: 1; }
.project-details h3 { margin: 10px 0; color: #1b4332; }
.project-map { height: 250px; width: 100%; border-top: 1px solid #eee; }
.project-map--empty{
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f8f9fa;
  color:#6c757d;
  font-size:12px;
}

@media (max-width: 560px) {
  .project-img { height: 160px; }
  .project-map { height: 200px; }
}

/* ========== GIS SHOWCASE ========== */
.gis-showcase {
  display: grid;
  gap: 22px;
}

.gis-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .9fr);
  gap: 18px;
  align-items: stretch;
}

.gis-hero-copy,
.gis-hero-panel,
.gis-source-note,
.gis-dossier-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  border: 1px solid rgba(27, 67, 50, 0.10);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(12, 31, 23, 0.08);
}

.gis-hero-copy {
  padding: 28px;
}

.gis-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef8f1;
  color: #1b4332;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gis-hero-copy h2 {
  margin: 0 0 10px;
  color: #102a1f;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.08;
}

.gis-intro {
  margin: 0;
  color: #415149;
  max-width: 66ch;
  font-size: 1rem;
}

.gis-hero-panel {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gis-stat {
  padding: 18px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: #fff;
}

.gis-stat-card {
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.gis-stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(12, 31, 23, 0.22);
  filter: saturate(1.05);
}

.gis-stat-card:focus-visible {
  outline: 3px solid rgba(255,255,255,.45);
  outline-offset: 2px;
}

.gis-stat-value {
  display: block;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 8px;
}

.gis-stat-label {
  display: block;
  color: rgba(255,255,255,.88);
  font-size: 13px;
}

.gis-stat-hint {
  display: inline-block;
  margin-top: 10px;
  color: rgba(255,255,255,.82);
  font-size: 12px;
  font-weight: 700;
}

.gis-source-note {
  padding: 16px 18px;
  color: #31413a;
  font-size: .96rem;
}

.gis-province-explorer {
  display: grid;
  gap: 16px;
}

.gis-query-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(27, 67, 50, 0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(247,251,248,0.98));
}

.gis-query-field {
  display: grid;
  gap: 8px;
}

.gis-query-field span {
  font-size: 0.84rem;
  font-weight: 700;
  color: #173326;
}

.gis-query-field input,
.gis-query-field select {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(27, 67, 50, 0.14);
  background: #fff;
  color: #173326;
  font: inherit;
}

.gis-query-field input:focus,
.gis-query-field select:focus {
  outline: none;
  border-color: rgba(45, 106, 79, 0.5);
  box-shadow: 0 0 0 4px rgba(116, 198, 157, 0.18);
}

.gis-query-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
}

.gis-query-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}

.gis-query-reset {
  border: 1px solid rgba(27, 67, 50, 0.14);
  background: #fff;
  color: #173326;
}

.gis-province-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gis-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(27, 67, 50, 0.12);
  background: #ffffff;
  color: #173326;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.gis-filter-chip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eef6f0;
  color: #2d6a4f;
  font-size: 12px;
}

.gis-filter-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(12, 31, 23, 0.08);
}

.gis-filter-chip.is-active {
  background: linear-gradient(135deg, #1b4332 0%, #2d6a4f 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 28px rgba(12, 31, 23, 0.18);
}

.gis-filter-chip.is-active span {
  background: rgba(255,255,255,.18);
  color: #fff;
}

.gis-zambia-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .85fr);
  gap: 18px;
}

.gis-zambia-panel {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  border: 1px solid rgba(27, 67, 50, 0.10);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(12, 31, 23, 0.08);
}

.gis-zambia-panel-wide {
  display: grid;
  gap: 14px;
}

.gis-heatmap-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.gis-heatmap-header > div:first-child {
  min-width: 0;
}

.gis-heatmap-control {
  display: grid;
  gap: 8px;
  min-width: min(260px, 100%);
}

.gis-heatmap-control span {
  font-size: .82rem;
  color: #334155;
  font-weight: 800;
}

.gis-heatmap-control select {
  min-height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(27, 67, 50, 0.16);
  background: #fff;
  color: #173326;
  padding: 10px 12px;
  font: inherit;
  font-weight: 700;
}

.gis-heatmap-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 18px;
  margin-top: 4px;
}

.gis-heatmap-stage {
  position: relative;
  min-width: 0;
}

.gis-zambia-map--heat {
  min-height: 390px;
  margin-top: 0;
}

.gis-heatmap-legend {
  position: absolute;
  left: 16px;
  bottom: 16px;
  width: min(260px, calc(100% - 32px));
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16);
  color: #173326;
}

.gis-heatmap-legend strong {
  display: block;
  margin-bottom: 8px;
}

.gis-heatmap-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  overflow: hidden;
  border-radius: 999px;
  height: 12px;
}

.gis-heatmap-scale span {
  display: block;
}

.gis-heatmap-scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: .78rem;
  color: #52645a;
}

.gis-heatmap-sidebar {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 0;
}

.gis-filter-summary--heat {
  margin-top: 0;
  background: linear-gradient(180deg, #fff9db 0%, #f7fbf8 100%);
}

.gis-heatmap-ranking {
  display: grid;
  gap: 10px;
  max-height: 330px;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(27, 67, 50, 0.35) rgba(27, 67, 50, 0.06);
}

.gis-heatmap-ranking::-webkit-scrollbar {
  width: 8px;
}

.gis-heatmap-ranking::-webkit-scrollbar-track {
  background: rgba(27, 67, 50, 0.06);
  border-radius: 999px;
}

.gis-heatmap-ranking::-webkit-scrollbar-thumb {
  background: rgba(27, 67, 50, 0.35);
  border-radius: 999px;
}

.gis-heatmap-rank-card {
  border: 1px solid rgba(27, 67, 50, 0.10);
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.gis-heatmap-rank-card:hover,
.gis-heatmap-rank-card.is-active {
  transform: translateY(-1px);
  border-color: rgba(25, 135, 84, 0.38);
  box-shadow: 0 12px 24px rgba(12, 31, 23, 0.10);
}

.gis-heatmap-rank-card.is-active {
  background: #f0fdf4;
}

.gis-heatmap-rank-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.gis-heatmap-rank-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #10311f;
  color: #fff;
  font-size: .78rem;
  font-weight: 900;
}

.gis-heatmap-rank-card strong {
  color: #173326;
}

.gis-heatmap-rank-card p,
.gis-heatmap-rank-card small {
  display: block;
  margin: 8px 0 0;
  color: #52645a;
}

.gis-info-window--heat {
  max-width: 320px;
}

.gis-heatmap-popup-list {
  display: grid;
  gap: 10px;
  padding-left: 18px;
  margin: 12px 0 0;
}

.gis-heatmap-popup-list li {
  color: #405148;
}

.gis-heatmap-popup-list span {
  display: block;
  margin-top: 2px;
  color: #5b7066;
}

.gis-zambia-map {
  min-height: 390px;
  margin-top: 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(27, 67, 50, 0.10);
}

.gis-filter-summary {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #f7fbf8;
  border: 1px solid rgba(27, 67, 50, 0.08);
}

.gis-filter-summary strong {
  display: block;
  color: #173326;
}

.gis-filter-summary p {
  margin: 4px 0 0;
  color: #5b7066;
}

.gis-visuals {
  display: grid;
  gap: 16px;
}

.gis-visuals-header h3 {
  margin: 6px 0 8px;
  color: #102a1f;
  font-size: clamp(24px, 3vw, 32px);
}

.gis-visuals-header p {
  margin: 0;
  color: #45554d;
  max-width: 70ch;
}

.gis-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.gis-chart-card {
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  border: 1px solid rgba(27, 67, 50, 0.10);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(12, 31, 23, 0.08);
}

.gis-chart-copy h4 {
  margin: 0 0 8px;
  color: #163728;
  font-size: 1.05rem;
}

.gis-chart-copy p {
  margin: 0;
  color: #5b7066;
  font-size: .93rem;
}

.gis-chart-surface {
  min-height: 320px;
  margin-top: 14px;
}

.gis-project-grid {
  display: grid;
  gap: 24px;
}

.gis-empty-state {
  display: grid;
  gap: 10px;
  justify-items: start;
  padding: 24px;
  border-radius: 18px;
  border: 1px dashed rgba(27, 67, 50, 0.22);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,251,248,0.98));
}

.gis-empty-state strong {
  color: #173326;
  font-size: 1.05rem;
}

.gis-empty-state p {
  margin: 0;
  color: #5b7066;
  max-width: 60ch;
}

.gis-dossier-card {
  display: grid;
  grid-template-columns: minmax(240px, 320px) minmax(0, 1.2fr) minmax(280px, .9fr);
  overflow: hidden;
}

.gis-dossier-card--spotlight {
  box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.18), 0 22px 44px rgba(12, 31, 23, 0.16);
  transform: translateY(-2px);
  transition: box-shadow .22s ease, transform .22s ease;
}

.gis-dossier-media {
  position: relative;
  min-height: 100%;
  background: linear-gradient(180deg, #eef4ef 0%, #e4ede7 100%);
}

.gis-dossier-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: contain;
  object-position: center;
  padding: 16px;
  display: block;
}

.gis-dossier-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gis-image-credit {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #163728;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(12, 31, 23, 0.12);
}

.gis-image-credit:hover {
  text-decoration: underline;
}

.gis-status,
.gis-theme,
.gis-period,
.gis-coordinates {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.gis-status {
  background: rgba(255,255,255,.92);
  color: #173d2e;
}

.gis-status--on-going {
  color: #166534;
}

.gis-status--closed {
  color: #92400e;
}

.gis-theme {
  background: rgba(18, 45, 33, 0.82);
  color: #fff;
}

.gis-dossier-body {
  padding: 22px 22px 24px;
  display: grid;
  gap: 18px;
}

.gis-dossier-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.gis-sector {
  margin: 0 0 6px;
  color: #2d6a4f;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.gis-dossier-header h3 {
  margin: 0;
  color: #112c20;
  font-size: 1.38rem;
  line-height: 1.22;
}

.gis-period {
  background: #eef6f0;
  color: #234535;
  white-space: nowrap;
}

.gis-dossier-summary {
  margin: 0;
  color: #45554d;
}

.gis-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gis-meta-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: #f7fbf8;
  border: 1px solid rgba(27, 67, 50, 0.08);
}

.gis-meta-label {
  display: block;
  margin-bottom: 5px;
  color: #678076;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.gis-meta-value {
  color: #173326;
  font-size: .96rem;
  line-height: 1.45;
}

.gis-progress-block {
  display: grid;
  gap: 8px;
}

.gis-progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #183729;
  font-size: .95rem;
}

.gis-progress-track {
  height: 10px;
  border-radius: 999px;
  background: #e3eee7;
  overflow: hidden;
}

.gis-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2d6a4f 0%, #74c69d 100%);
}

.gis-list-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gis-list-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: #fcfdfc;
  border: 1px solid rgba(27, 67, 50, 0.08);
}

.gis-list-card h4 {
  margin: 0 0 10px;
  color: #163728;
  font-size: 1rem;
}

.gis-list-card ul {
  margin: 0;
  padding-left: 18px;
  color: #45554d;
}

.gis-list-card li + li {
  margin-top: 8px;
}

.gis-map-shell {
  padding: 18px;
  background: linear-gradient(180deg, #eff6f1 0%, #fbfdfc 100%);
  border-left: 1px solid rgba(27, 67, 50, 0.08);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.gis-map-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.gis-map-header p {
  margin: 4px 0 0;
  color: #5b7066;
  font-size: .92rem;
}

.gis-coordinates {
  background: #fff;
  color: #234535;
  border: 1px solid rgba(27, 67, 50, 0.12);
  white-space: nowrap;
}

.gis-map-shell .project-map {
  min-height: 280px;
  border-radius: 16px;
  border: 1px solid rgba(27, 67, 50, 0.10);
  overflow: hidden;
}

.gis-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.gis-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(27, 67, 50, 0.12);
  background: #ffffff;
  color: #1b4332;
  text-decoration: none;
  font-weight: 700;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}

.gis-page-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(12, 31, 23, 0.10);
}

.gis-page-btn.is-active {
  background: #1b4332;
  color: #ffffff;
  box-shadow: 0 14px 24px rgba(12, 31, 23, 0.14);
}

.gis-page-btn.is-disabled {
  pointer-events: none;
  opacity: .45;
}

.gis-info-window {
  max-width: 290px;
  display: grid;
  gap: 10px;
  padding: 4px 2px 2px;
}

.gis-info-window strong {
  color: #123222;
  font-size: 1rem;
  line-height: 1.3;
}

.gis-info-window p {
  margin: 0;
  color: #55655b;
  line-height: 1.55;
  font-size: .92rem;
}

.gis-info-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gis-info-meta span,
.gis-info-location {
  color: #5d6b62;
  font-size: .82rem;
}

.gis-info-meta span {
  padding: 5px 8px;
  border-radius: 999px;
  background: #f2f7f3;
}

.gis-info-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gis-info-btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 0;
  background: #1b4332;
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
  cursor: pointer;
}

.gis-info-btn--quiet {
  background: #edf5ef;
  color: #1b4332;
  border: 1px solid rgba(27, 67, 50, 0.12);
}

@media (max-width: 1180px) {
  .gis-dossier-card {
    grid-template-columns: 1fr;
  }

  .gis-dossier-image {
    height: 260px;
    min-height: 260px;
  }

  .gis-map-shell {
    border-left: 0;
    border-top: 1px solid rgba(27, 67, 50, 0.08);
  }
}

@media (max-width: 900px) {
  .gis-hero {
    grid-template-columns: 1fr;
  }

  .gis-query-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gis-zambia-grid,
  .gis-chart-grid,
  .gis-meta-grid,
  .gis-list-grid,
  .gis-heatmap-layout {
    grid-template-columns: 1fr;
  }

  .gis-heatmap-header {
    display: grid;
  }

  .gis-heatmap-header > div:first-child {
    min-width: 0;
  }

  .gis-heatmap-control {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .gis-query-filters {
    grid-template-columns: 1fr;
  }

  .gis-query-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .gis-hero-copy,
  .gis-hero-panel,
  .gis-source-note,
  .gis-dossier-body,
  .gis-map-shell {
    padding: 16px;
  }

  .gis-hero-panel {
    grid-template-columns: 1fr 1fr;
  }

  .gis-dossier-header,
  .gis-map-header {
    flex-direction: column;
  }

  .gis-stat {
    padding: 14px;
  }

  .gis-filter-chip {
    width: 100%;
    justify-content: space-between;
  }

  .gis-zambia-map--heat {
    min-height: 360px;
  }

  .gis-heatmap-legend {
    position: static;
    width: 100%;
    margin-top: 12px;
  }

  .gis-heatmap-ranking {
    max-height: 300px;
  }
}

/* ========== ADMIN FORMS (Professional) ========== */
.admin-form{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow-2);
  display: grid;
  gap: 12px;
  margin: 14px 0;
}

.admin-form.inline-form{
  padding: 12px;
  border-radius: 12px;
  box-shadow: none;
  background: #fff;
}

.form-grid{
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.small{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px){
  .form-grid.small{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px){
  .form-grid, .form-grid.small{ grid-template-columns: 1fr; }
}

/* Make sure admin inputs override the generic form styles */
.admin-form input,
.admin-form textarea,
.admin-form select{
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--zm-black);
  outline: none;
  font-size: 14px;
}

.admin-form textarea{
  min-height: 90px;
  resize: vertical;
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus{
  border-color: #95d5b2;
  box-shadow: 0 0 0 3px rgba(45,106,79,.12);
}

.btn-row{
  display: flex;
  gap: 10px;
  align-items: center;
}

/* ÃƒÆ’Ã‚Â¢Ãƒâ€¦Ã¢â‚¬Å“ÃƒÂ¢Ã¢â€šÂ¬Ã‚Â¦ Button will ALWAYS be visible */
.admin-form button:not(.password-toggle){
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: var(--primary-ink);
  cursor: pointer;
  font-weight: 800;
}

.admin-form button:not(.password-toggle):hover{
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.admin-projects-page {
  display: grid;
  gap: 24px;
}

.admin-users-page {
  display: grid;
  gap: 24px;
}

.admin-projects-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fcf9 0%, #edf6f0 100%);
  border: 1px solid rgba(27, 67, 50, 0.10);
}

.admin-users-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fcf9 0%, #edf6f0 100%);
  border: 1px solid rgba(27, 67, 50, 0.10);
  box-shadow: 0 14px 26px rgba(12, 31, 23, 0.06);
}

.admin-projects-badge {
  min-width: 180px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #1b4332;
  color: #fff;
  text-align: center;
}

.admin-projects-badge strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.admin-projects-badge span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,.82);
  font-size: .92rem;
}

.admin-project-composer,
.admin-project-records {
  display: grid;
  gap: 16px;
}

.admin-user-composer,
.admin-user-records {
  display: grid;
  gap: 16px;
}

.admin-project-form textarea {
  min-height: 110px;
}

.admin-project-records-head p {
  margin: 0;
}

.admin-project-toolbar {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(27, 67, 50, 0.08);
  background: #f8fbf9;
}

.admin-project-filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-project-filter-field {
  display: grid;
  gap: 6px;
  color: #31413a;
  font-size: 0.94rem;
  font-weight: 700;
}

.admin-project-filter-field span {
  color: #385045;
}

.admin-project-filter-field input,
.admin-project-filter-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(27, 67, 50, 0.16);
  border-radius: 12px;
  background: #fff;
  color: #1f2f28;
  box-shadow: inset 0 1px 2px rgba(16, 42, 31, 0.04);
  transition: border-color .18s ease, box-shadow .18s ease;
}

.admin-project-filter-field input:focus,
.admin-project-filter-field select:focus {
  outline: none;
  border-color: rgba(27, 67, 50, 0.42);
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12);
}

.admin-project-filter-status {
  margin: 0;
}

.admin-project-list {
  display: grid;
  gap: 20px;
}

.admin-project-empty-state {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px dashed rgba(27, 67, 50, 0.2);
  background: #fbfdfb;
  text-align: center;
}

.admin-user-list {
  display: grid;
  gap: 20px;
}

.admin-project-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  border: 1px solid rgba(27, 67, 50, 0.10);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(12, 31, 23, 0.08);
  padding: 18px;
  display: grid;
  gap: 16px;
}

.admin-project-card.is-filter-hidden {
  display: none !important;
}

.admin-user-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  border: 1px solid rgba(27, 67, 50, 0.10);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(12, 31, 23, 0.08);
  padding: 18px;
  display: grid;
  gap: 16px;
}

.admin-user-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fbf9;
  border: 1px solid rgba(27, 67, 50, 0.08);
  color: #31413a;
}

.admin-user-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #31413a;
  font-weight: 700;
}

.admin-user-checkbox input {
  width: auto;
}

.admin-project-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.admin-project-card-title h4 {
  margin: 0 0 6px;
  color: #102a1f;
  font-size: 1.2rem;
}

.admin-project-card-title p {
  margin: 0;
  color: #5b7066;
}

.admin-project-region-note {
  display: inline-block;
  margin-top: 8px;
  color: #5b7066;
  font-size: 0.84rem;
  font-weight: 700;
}

.admin-project-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-project-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: #edf6f0;
  color: #1b4332;
  font-size: 12px;
  font-weight: 800;
}

.admin-delete-btn {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #9b2226;
  background: #fff5f5;
  color: #9b2226;
  cursor: pointer;
  font-weight: 800;
}

.admin-delete-btn:hover {
  background: #ffe3e3;
}

.admin-project-preview {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 16px;
  align-items: stretch;
}

.admin-project-preview img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: linear-gradient(180deg, #eef4ef 0%, #e4ede7 100%);
  border: 1px solid rgba(27, 67, 50, 0.08);
  border-radius: 16px;
  padding: 12px;
}

.admin-project-preview-meta {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fbf9;
  border: 1px solid rgba(27, 67, 50, 0.08);
  color: #31413a;
}

@media (max-width: 900px) {
  .admin-projects-hero,
  .admin-users-hero,
  .admin-project-card-head,
  .admin-project-preview {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .admin-project-filter-grid {
    grid-template-columns: 1fr;
  }

  .admin-user-meta-grid {
    grid-template-columns: 1fr;
  }
}



/* ========== CHATBOT WIDGET ========== */
#chatbot-widget {
  position: fixed; bottom: 20px; right: 20px; z-index: 9999;
}
#chatbot-toggle {
  background: #007b5e; color: #fff; border: none;
  border-radius: 50%; width: 55px; height: 55px;
  font-size: 22px; cursor: pointer;
  box-shadow: 0 4px 6px rgba(0,0,0,.2);
}
.chatbot-box {
  position: fixed; bottom: 80px; right: 20px;
  width: min(360px, 92vw); height: min(520px, 70vh);
  background: #f9f9f9; border: 1px solid #007b5e; border-radius: 12px;
  display: flex; flex-direction: column; box-shadow: 0 6px 12px rgba(0,0,0,.2);
}
.chatbot-box.hidden { display: none; }
@media (max-width: 560px) { .chatbot-box { bottom: 72px; right: 12px; height: 64vh; } }
#chatbot-header {
  background: #007b5e; color: #fff; padding: 10px; font-weight: bold;
  display: flex; justify-content: space-between; align-items: center;
  border-top-left-radius: 12px; border-top-right-radius: 12px;
}
#chatbot-messages {
  flex: 1; overflow-y: auto; padding: 8px; font-size: 14px; background: #fff;
  border-top: 1px solid #ddd; border-bottom: 1px solid #ddd;
}
.chatbot-input { display: flex; gap: 6px; padding: 8px; }
.chatbot-input input { flex: 1; border: 1px solid #ccc; border-radius: 6px; padding: 10px; }
.chatbot-input button { padding: 10px 12px; border-radius: 6px; }
.message.user { text-align: right; color: #007b5e; margin: 4px 0; }
.message.bot { text-align: left; color: #333; margin: 4px 0; }
.message.bot:first-child {
  opacity: 0.95;
}


#chatbot-messages{
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  font-size: 14px;
  background: #fff;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;

  display: flex;
  flex-direction: column;
  gap: 8px;
}

.message{
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  line-height: 1.35;
  word-wrap: break-word;
  white-space: pre-wrap;
  box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

.message.user{
  align-self: flex-end;
  background: #e8f5e9;
  border: 1px solid #95d5b2;
  color: #1b4332;
}

.message.bot{
  align-self: flex-start;
  background: #f4f6f8;
  border: 1px solid #e3e7ee;
  color: #1f2937;
}


/* ========== SURVEY ========== */
.survey-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 15px 30px; margin-bottom: 20px;
}
.survey-field { display: flex; flex-direction: column; gap: 5px; }
.survey-input {
  padding: 5px; font-size: .9em; width: 60px; min-width: 50px; max-width: 200px;
  transition: width .2s ease;
}
.survey-input:focus { outline: 2px solid #40916c; }
.survey-input:not(:placeholder-shown) { width: auto; }
.survey-btn {
  grid-column: span 2; padding: 10px 15px; background: #1b4332; color: #fff;
  border: none; border-radius: 5px; cursor: pointer;
}
.survey-btn:hover { background: #2d6a4f; }

/* ========== SLIDESHOW (home content) ========== */
#slideshow { position: relative; max-width: 700px; margin: auto; }
.slide { display: none; text-align: center; }
.slide.active { display: block; }
.slide img {
  width: 100%; height: 350px; object-fit: cover; border-radius: 10px; margin-bottom: 10px;
}
.slideshow-controls { text-align: center; margin-top: 10px; }
.slideshow-controls button { margin: 5px; }

/* ========== FOOTER ========== */
.footer {
  background: #1b4332; color: #fff;
  padding: 30px 20px;
  padding-bottom: calc(30px + env(safe-area-inset-bottom, 0));
  text-align: center; font-size: .9em;
}
.footer a { color: #95d5b2; text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* ========== FLASH MESSAGES ========== */
.flash { padding: 10px; margin: 10px 0; border-radius: 6px; font-weight: bold; }
.flash.success { background: #d4edda; color: #155724; }
.flash.error { background: #f8d7da; color: #721c24; }

/* ========== DOCS GRID & TABLES ========== */
.docs-grid {
  display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-top: 20px;
}
.doc-card {
  background: #f8f9fa; border: 2px solid #ddd; border-radius: 12px;
  padding: 20px; width: 250px; text-align: center; text-decoration: none; color: #333;
  transition: all .3s ease; box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.doc-card:hover {
  border-color: #2e7d32; background: #e8f5e9; transform: translateY(-5px); color: #2e7d32;
}
.doc-card .icon { font-size: 40px; margin-bottom: 10px; }
.doc-card h3 { margin: 10px 0; font-size: 18px; font-weight: bold; }

.table-wrap {
  width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch;
  border-radius: 10px; border: 1px solid #e6e6e6; background: #fff;
}
.doc-table {
  width: 100%; border-collapse: collapse; margin: 0;
  background: #fff;
}
.table-wrap .doc-table { min-width: 640px; }
.doc-table th, .doc-table td {
  padding: 12px 14px; border-bottom: 1px solid #eee; vertical-align: top;
}
.doc-table thead th {
  background: #f4f7f5; color: #1b4332; text-align: left; font-weight: 700;
}
.doc-table tbody tr:hover { background: #f9fafa; }
.doc-table a { color: #1b4332; text-decoration: none; font-weight: 600; }
.doc-table a:hover { text-decoration: underline; }

/* ========== ATLAS CARDS ========== */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px;
}
.atlas-card {
  display: grid; grid-template-columns: 1fr; background: #fff;
  border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,.06); overflow: hidden;
}
.atlas-thumb { width: 100%; height: 180px; object-fit: cover; display: block; }
.atlas-content { padding: 14px 16px 16px; }
.atlas-title { margin: 4px 0 8px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tag { font-size: 12px; padding: 4px 8px; border-radius: 999px; background: #eef3ff; border: 1px solid #dbe5ff; }
.credit { color: #666; display: block; margin-bottom: 8px; }
.atlas-points { margin: 8px 0 14px; padding-left: 18px; }
.atlas-points li { margin: 4px 0; }
.atlas-cta-row { display: flex; gap: 12px; align-items: center; }
.text-link { text-decoration: underline; font-size: .95rem; }

/* ========== AUTH (Login / Signup / OTP) ========== */
.auth-split {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(0,0,0,.08);
}

/* Left column (form) */
.auth-left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(22px, 3.5vw, 44px);
  background: #fff;
}
.auth-card {
  width: min(520px, 100%);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.auth-brand img {
  width: 150px;
  height: 150px;
  object-fit: contain;
}
.auth-title {
  margin: 0 0 6px 0;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.1;
  color: #0b2b1f;
  font-weight: 800;
}
.auth-subtitle {
  margin: 0 0 18px 0;
  color: #4a4a4a;
}

/* Form fields in auth */
.auth-card form {
  display: grid;
  gap: 12px;
}
.auth-card label {
  font-weight: 700;
  font-size: .95rem;
  color: #173d2e;
}
.auth-card input[type="text"],
.auth-card input[type="password"],
.auth-card input[type="email"],
.auth-card input[type="tel"],
.auth-card select {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid #2d6a4f;
  border-radius: 10px;
  font-size: 1rem;
  background: #fff;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 94px;
}
.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #2d6a4f;
  width: 44px;
  height: 44px;
  padding: 6px;
  border-radius: 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background .18s ease, color .18s ease;
}
.password-toggle-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
}
.password-toggle-icon svg {
  width: 100%;
  height: 100%;
}
.password-toggle-slash {
  opacity: 0;
  transition: opacity .18s ease;
}
.password-toggle.is-visible .password-toggle-slash {
  opacity: 1;
}
.password-toggle:hover {
  background: rgba(45,106,79,.08);
}
.password-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(45,106,79,.18);
}
.auth-card input:focus,
.auth-card select:focus {
  outline: none;
  border-color: #2d6a4f;
  box-shadow: 0 0 0 3px rgba(45,106,79,.15);
}
.auth-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 6px;
}
.form-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
  color: #2b2b2b;
  font-size: .95rem;
}
.auth-btn {
  width: 100%;
  background: #2d6a4f;
  color: #fff;
  border: 0;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s ease-in-out;
}
.auth-btn:hover { background: #40916c; }

.auth-alt {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 16px 0 6px;
  color: #666;
}
.auth-alt::before,
.auth-alt::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e5e5;
}

/* Right column (photo) */
.auth-right {
  position: relative;
  min-height: 520px;
  background-image: url("/static/images/Parliament.jpg"); /* <- your image */
  background-size: cover;
  background-position: center;
}
.auth-right::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 70% 50%, rgba(0,0,0,.05) 0%, rgba(0,0,0,.45) 100%);
}
.auth-caption {
  position: absolute;
  right: clamp(12px, 3vw, 24px);
  bottom: clamp(12px, 3vw, 24px);
  left: clamp(12px, 3vw, 24px);
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
  color: #fff;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 14px;
  padding: clamp(10px, 2vw, 16px);
  font-size: clamp(16px, 2.3vw, 22px);
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}

/* Smaller screens: stack */
@media (max-width: 980px) {
  .auth-split {
    grid-template-columns: 1fr;
  }
  .auth-right { order: -1; height: 38vh; min-height: 320px; }
}

/* Links inside auth */
.auth-link { color: #2d6a4f; font-weight: 700; text-decoration: none; }
.auth-link:hover { text-decoration: underline; }
.auth-helper { color: #666; margin-top: 8px; font-size: .95rem; }

/* ========== CALENDAR (FullCalendar + Zambia UI) ========== */
.calendar-page .calendar-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
}

.calendar-page .calendar-title{
  margin:0;
  color:#1b4332;
  font-weight:900;
  letter-spacing:.2px;
}

.calendar-page .calendar-subtitle{
  margin:6px 0 0;
  color:var(--muted);
  max-width: 70ch;
}

.calendar-page .calendar{
  margin-top:14px;
}

/* FullCalendar theming */
.fc{
  font-family: var(--font);
}

.fc .fc-toolbar-title{
  color:#1b4332;
  font-weight:900;
  letter-spacing:.3px;
}

.fc .fc-button{
  border-radius:10px !important;
  border: 1px solid var(--border) !important;
  background: #fff !important;
  color: #1b4332 !important;
  font-weight: 800 !important;
  padding: 8px 10px !important;
  box-shadow: var(--shadow-1);
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}

.fc .fc-button:hover{
  background: var(--green-50) !important;
  border-color: #95d5b2 !important;
  transform: translateY(-1px);
}

.fc .fc-button-primary:not(:disabled).fc-button-active,
.fc .fc-button-primary:not(:disabled):active{
  background: var(--primary) !important;
  color: var(--primary-ink) !important;
  border-color: var(--primary) !important;
}

.fc .fc-daygrid-day-frame{
  border-radius: 10px;
}

.fc .fc-daygrid-day.fc-day-today{
  background: var(--green-50) !important;
}

.fc .fc-event{
  border-radius: 10px !important;
  border: none !important;
  padding: 2px 6px !important;
  box-shadow: var(--shadow-1);
  font-weight: 700;
}

.fc .fc-event .fc-event-title{
  font-weight: 800;
}

.fc .fc-daygrid-event-dot{
  display:none;
}

/* ========== MODALS (Calendar Add/Edit + Details) ========== */
.modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 9999;
}

.modal-backdrop.show{
  display: flex;
}

.modal{
  width: min(720px, 100%);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 50px rgba(0,0,0,0.2);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.06);
}

.modal-header{
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  background: #f9fafb;
}

.modal-title{
  margin:0;
  font-size: 16px;
  font-weight: 900;
  color:#111827;
}

.modal-body{
  padding: 16px;
}

.modal-footer{
  padding: 14px 16px;
  border-top: 1px solid #eee;
  display:flex;
  justify-content:flex-end;
  gap:10px;
  background:#fafafa;
}

/* ========== FORM UI (Calendar Modals) ========== */
.grid{
  display:grid;
  gap:12px;
}

.grid-2{
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 760px){
  .grid-2{ grid-template-columns: 1fr; }
}

.field{
  display:flex;
  flex-direction:column;
  gap:6px;
}

.field label{
  font-size: 12px;
  color:#374151;
  font-weight: 800;
}

.label-inline{
  margin:0;
  font-size: 14px;
  font-weight: 800;
  color:#111827;
}

.row{
  display:flex;
  gap:10px;
  align-items:center;
}

.muted{
  color:#6b7280;
  font-size: 12px;
}

.prewrap{
  white-space: pre-wrap;
}

/* Inputs in calendar modal: match your form style but softer borders */
.modal input,
.modal select,
.modal textarea{
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 10px;
  font-size: 14px;
  outline:none;
  background:#fff;
  color:#111;
}

.modal textarea{
  min-height: 90px;
  resize: vertical;
}

.modal input:focus,
.modal select:focus,
.modal textarea:focus{
  border-color: #95d5b2;
  box-shadow: 0 0 0 3px rgba(45,106,79,.12);
}

/* ========== BUTTONS (Calendar Modals) ========== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  cursor: pointer;
  background: #fff;
  color: #111827;
  font-weight: 800;
  transition: transform .12s ease, background .12s ease, border-color .12s ease, opacity .12s ease;
}

.btn:hover{
  background: #f9fafb;
  border-color:#cfd4dc;
  transform: translateY(-1px);
}

.btn-primary{
  background: var(--primary);
  color: var(--primary-ink);
  border-color: var(--primary);
}

.btn-primary:hover{
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-danger{
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}

.btn-danger:hover{
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-ghost{
  background: #fff;
  color:#111827;
}

/* ========== DETAILS UI ========== */
.chips{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.pill{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  background:#f9fafb;
  font-size:12px;
  color:#111827;
  font-weight: 800;
}

.details-title{
  margin:12px 0 8px;
  font-size:18px;
  font-weight: 900;
  color:#111827;
}

/* ========== ACCESSIBILITY / PREFERENCES ========== */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ========== HOME LANDING PAGE REFRESH ========== */
.landing-home {
  display: grid;
  gap: 22px;
  padding: 18px 0 8px;
}

.landing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .9fr);
  gap: 20px;
  align-items: stretch;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 28px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(242, 140, 40, 0.20), transparent 32%),
    radial-gradient(circle at bottom right, rgba(215, 38, 45, 0.18), transparent 28%),
    linear-gradient(135deg, #0f3f28 0%, #156443 48%, #0d2819 100%);
  box-shadow: 0 28px 60px rgba(8, 32, 18, 0.24);
}

.landing-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(9, 33, 19, 0.82), rgba(15, 64, 40, 0.58)),
    url("/static/images/national-assembly.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.02);
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.08), transparent 32%),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 18px);
  pointer-events: none;
}

.landing-hero-copy,
.landing-hero-panel,
.landing-section,
.landing-nav-card,
.landing-programme-card,
.landing-doc-card,
.landing-summary-card,
.landing-chart-card,
.landing-copy-card {
  position: relative;
  z-index: 1;
}

.landing-hero-copy,
.landing-hero-panel {
  min-width: 0;
}

.landing-eyebrow {
  display: inline-flex;
  align-items: center;
  max-width: min(100%, 640px);
  padding: 8px 0;
  border-radius: 999px;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  overflow: hidden;
}

.landing-eyebrow-animated {
  padding-inline: 14px;
}

.landing-eyebrow-track {
  display: inline-flex;
  align-items: center;
  gap: 48px;
  min-width: max-content;
  white-space: nowrap;
  will-change: transform;
  animation: landingMarquee 18s linear infinite;
}

.landing-eyebrow-track span {
  display: inline-flex;
  align-items: center;
}

@keyframes landingMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - 24px)); }
}

.landing-hero-copy h1 {
  margin: 0;
  max-width: 13ch;
  font-size: clamp(1.85rem, 3.6vw, 3.35rem);
  font-weight: 760;
  line-height: 1.02;
  letter-spacing: -.025em;
  text-wrap: balance;
}

.landing-lead {
  max-width: 640px;
  margin: 18px 0 0;
  color: rgba(255,255,255,0.86);
  font-size: 1.02rem;
  line-height: 1.72;
}

.landing-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.landing-cta-row .btn,
.landing-cta-row .btn-primary {
  min-width: 180px;
  text-align: center;
  box-shadow: 0 14px 28px rgba(9, 30, 17, 0.18);
}

.landing-cta-row .btn {
  background: rgba(255,255,255,0.96);
  border-color: rgba(255,255,255,0.9);
  color: #123222;
}

.landing-cta-row .btn-primary {
  background: #f7b955;
  border-color: #f7b955;
  color: #123222;
}

.landing-cta-row .btn-primary:hover {
  background: #f3a62b;
  border-color: #f3a62b;
  color: #123222;
}

.landing-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.landing-trust-row span {
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: .89rem;
}

.landing-hero-panel {
  display: grid;
  gap: 18px;
  padding: 22px;
  border-radius: 22px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(12px);
  min-width: 0;
}

.landing-panel-header {
  display: grid;
  gap: 4px;
}

.landing-panel-kicker {
  color: rgba(255,255,255,0.7);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.landing-panel-header strong {
  font-size: 1.2rem;
}

.landing-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.landing-stat-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.14);
}

.landing-stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
}

.landing-stat-label {
  color: rgba(255,255,255,0.76);
  font-size: .9rem;
}

.landing-ndc-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(6, 20, 13, 0.26);
  border: 1px solid rgba(255,255,255,0.10);
}

.landing-ndc-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.landing-ndc-heading h3 {
  margin: 0;
  color: #fff;
}

.landing-ndc-heading span,
.landing-ndc-card p {
  color: rgba(255,255,255,0.72);
  margin: 0;
}

.landing-target-item {
  display: grid;
  gap: 7px;
}

.landing-target-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,0.9);
  font-size: .94rem;
}

.landing-meter {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255,255,255,0.12);
}

.landing-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #f2c94c 0%, #f28c28 100%);
}

.landing-meter-accent span {
  background: linear-gradient(90deg, #d7262d 0%, #f28c28 100%);
}

.landing-section {
  padding: clamp(22px, 3vw, 30px);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 37, 24, 0.08);
}

.landing-section-soft {
  background:
    linear-gradient(180deg, rgba(244, 248, 245, 0.98) 0%, rgba(255,255,255,0.98) 100%);
}

.landing-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.landing-section-heading h2 {
  margin: 8px 0 0;
  font-size: clamp(1.45rem, 2.6vw, 2.2rem);
  color: #123222;
}

.landing-section-heading p {
  max-width: 520px;
  margin: 0;
  color: #5b6b61;
  line-height: 1.6;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(25, 135, 84, 0.10);
  color: #14673f;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.landing-nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.landing-nav-card {
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 20px;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbf9 100%);
  border: 1px solid rgba(25, 135, 84, 0.10);
  box-shadow: 0 14px 28px rgba(15, 37, 24, 0.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.landing-nav-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 36px rgba(15, 37, 24, 0.10);
  border-color: rgba(25, 135, 84, 0.20);
}

.landing-nav-card.is-current {
  background: linear-gradient(180deg, #1a7f4b 0%, #115a36 100%);
  color: #fff;
}

.landing-nav-card.is-current p,
.landing-nav-card.is-current .landing-nav-icon {
  color: rgba(255,255,255,0.84);
}

.landing-nav-card h3 {
  margin: 0;
  font-size: 1.08rem;
}

.landing-nav-card p {
  margin: 0;
  color: #56665c;
  line-height: 1.6;
}

.landing-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(25, 135, 84, 0.10);
  color: #14673f;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.landing-insight-grid,
.landing-analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 18px;
}

.landing-copy-card,
.landing-chart-card,
.landing-summary-card,
.landing-doc-card,
.landing-programme-card,
.landing-empty-state {
  border: 1px solid rgba(16, 49, 31, 0.08);
  border-radius: 22px;
  background: #fff;
}

.landing-copy-card,
.landing-summary-card,
.landing-empty-state {
  padding: 22px;
}

.landing-copy-card h3,
.landing-chart-header h3,
.landing-summary-card h3 {
  margin: 0;
  color: #133321;
}

.landing-copy-card p,
.landing-chart-header p,
.landing-empty-state p {
  color: #56665c;
  line-height: 1.68;
}

.landing-bullet-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.landing-bullet-list li {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f6faf7;
  border-left: 4px solid #198754;
}

.landing-chart-card {
  padding: 18px 18px 10px;
}

.landing-chart-header {
  display: grid;
  gap: 6px;
  margin-bottom: 4px;
}

.landing-chart {
  min-height: 300px;
}

.landing-programme-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.landing-programme-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(180deg, #fff 0%, #f7faf8 100%);
}

.landing-programme-index {
  color: #198754;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.landing-summary-card {
  display: grid;
  gap: 16px;
  align-content: start;
  background: linear-gradient(180deg, #fff 0%, #f8faf8 100%);
}

.landing-summary-list {
  display: grid;
  gap: 12px;
}

.landing-summary-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f5f8f6;
}

.landing-summary-list span {
  color: #56665c;
}

.landing-summary-list strong {
  color: #123222;
  text-align: right;
}

.landing-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 380px));
  gap: 16px;
  margin-bottom: 18px;
  justify-content: start;
}

.landing-doc-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, #fff 0%, #f8faf8 100%);
  border: 1px solid rgba(16, 49, 31, 0.08);
  border-radius: 20px;
  transition: transform .18s ease, box-shadow .18s ease;
}

.landing-doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(15, 37, 24, 0.08);
}

.landing-doc-card strong {
  display: block;
  color: #133321;
  font-size: 1.02rem;
  line-height: 1.35;
}

.landing-doc-card p {
  margin: 0;
  color: #56665c;
  line-height: 1.6;
  font-size: .93rem;
}

.landing-doc-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.landing-doc-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #6a7a70;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.landing-doc-media {
  overflow: hidden;
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  background: #edf3ee;
  align-self: stretch;
}

.landing-doc-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform .22s ease;
}

.landing-doc-card:hover .landing-doc-media img {
  transform: scale(1.01);
}

.landing-news-grid {
  margin-top: 0;
}

.landing-empty-state {
  text-align: center;
}

.landing-empty-state h3 {
  margin-top: 0;
  color: #133321;
}

/* ========== ADMIN CONTENT HUB (NEWS + DOCUMENTS) ========== */
.admin-content-page {
  display: grid;
  gap: 22px;
  padding: 12px 0 18px;
}

.admin-content-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 24px;
  border-radius: 24px;
  color: #fff;
  background: linear-gradient(135deg, #0f432a 0%, #156443 52%, #0d2819 100%);
  box-shadow: 0 20px 36px rgba(10, 34, 20, 0.18);
}

.admin-content-hero h2 {
  margin: 0 0 8px;
  color: #fff;
}

.admin-content-hero p {
  margin: 0;
  color: rgba(255,255,255,0.82);
  max-width: 760px;
  line-height: 1.6;
}

.admin-content-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.admin-content-badge {
  min-width: 140px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
}

.admin-content-badge strong {
  display: block;
  font-size: 1.5rem;
  line-height: 1;
}

.admin-content-badge span {
  display: block;
  margin-top: 6px;
  color: rgba(255,255,255,0.78);
  font-size: .9rem;
}

.admin-content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.admin-content-panel {
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 32px rgba(15, 37, 24, 0.08);
}

.admin-content-panel-head {
  margin-bottom: 16px;
}

.admin-content-panel-head h3 {
  margin: 0 0 6px;
  color: #123222;
}

.admin-content-panel-head p {
  margin: 0;
  color: #5d6b62;
  line-height: 1.6;
}

.admin-content-form {
  gap: 14px;
}

.admin-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.admin-content-form label {
  display: grid;
  gap: 7px;
}

.admin-content-form label span {
  color: #355240;
  font-weight: 700;
  font-size: .92rem;
}

.admin-content-list {
  display: grid;
  gap: 14px;
}

.admin-content-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 140px auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(16, 49, 31, 0.08);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f8faf8 100%);
}

.admin-content-card-main {
  min-width: 0;
}

.admin-content-card-main h4 {
  margin: 6px 0 8px;
}

.admin-content-card-main h4 a {
  color: #123222;
  text-decoration: none;
}

.admin-content-card-main h4 a:hover {
  text-decoration: underline;
}

.admin-content-card-main p {
  margin: 0 0 8px;
  color: #55655b;
  line-height: 1.55;
}

.admin-content-card-main small {
  color: #6b7b72;
}

.admin-content-meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  color: #6b7b72;
  font-size: .84rem;
}

.admin-content-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(25, 135, 84, 0.10);
  color: #14673f;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.admin-content-thumb {
  width: 140px;
  height: 100px;
  overflow: hidden;
  border-radius: 14px;
  background: #eef3ef;
}

.admin-content-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-content-empty {
  padding: 26px 20px;
  border: 1px dashed rgba(16, 49, 31, 0.18);
  border-radius: 18px;
  text-align: center;
  color: #5d6b62;
}

.admin-content-empty h4 {
  margin: 0 0 8px;
  color: #123222;
}

@media (max-width: 1100px) {
  .landing-hero,
  .landing-insight-grid,
  .landing-analytics-grid,
  .admin-content-grid,
  .admin-field-grid {
    grid-template-columns: 1fr;
  }

  .landing-hero-copy h1 {
    max-width: none;
  }

  .admin-content-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-content-card {
    grid-template-columns: 1fr;
  }

  .admin-content-thumb {
    width: 100%;
    height: 180px;
  }

  .landing-hero-panel {
    max-width: 100%;
  }

  .landing-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .landing-section-heading p {
    max-width: none;
  }
}

@media (max-width: 700px) {
  .landing-home {
    gap: 16px;
    padding-top: 10px;
  }

  .landing-hero {
    padding: 20px;
    border-radius: 22px;
    gap: 16px;
  }

  .landing-hero-copy h1 {
    font-size: clamp(1.7rem, 9vw, 2.45rem);
  }

  .landing-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .landing-hero-panel,
  .landing-stat-card,
  .landing-ndc-card {
    padding-left: 16px;
    padding-right: 16px;
  }

  .landing-cta-row {
    flex-direction: column;
  }

  .landing-cta-row .btn,
  .landing-cta-row .btn-primary {
    width: 100%;
    min-width: 0;
  }

  .landing-nav-card {
    min-height: 0;
  }
}

@media (max-width: 520px) {
  .landing-stat-grid,
  .landing-programme-strip,
  .landing-docs-grid {
    grid-template-columns: 1fr;
  }

  .admin-content-page,
  .admin-content-grid {
    gap: 16px;
  }

  .admin-content-hero,
  .admin-content-panel {
    padding: 18px;
  }

  .landing-trust-row span {
    width: 100%;
    text-align: center;
  }

  .landing-chart {
    min-height: 250px;
  }

  .landing-hero {
    padding: 16px;
  }

  .landing-hero-panel {
    padding: 16px;
  }

  .landing-doc-card {
    grid-template-columns: 1fr;
  }

  .landing-doc-media {
    max-height: 190px;
  }

  .landing-eyebrow {
    max-width: 100%;
    font-size: .72rem;
  }

  .landing-eyebrow-track {
    gap: 32px;
    animation-duration: 16s;
  }
}

/* ========== NDC DASHBOARD ========== */
.ndc-dashboard-page {
  display: grid;
  gap: 22px;
  padding: 12px 0 20px;
}

.ndc-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .95fr);
  gap: 18px;
  padding: 28px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(242, 140, 40, 0.18), transparent 28%),
    linear-gradient(135deg, #123a28 0%, #166140 52%, #0d2819 100%);
  box-shadow: 0 22px 44px rgba(10, 34, 20, 0.18);
}

.ndc-hero-copy,
.ndc-hero-panel,
.ndc-section,
.ndc-chart-card,
.ndc-sector-card,
.ndc-panel-card,
.ndc-doc-card {
  min-width: 0;
}

.ndc-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ndc-hero h2 {
  margin: 14px 0 12px;
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.03;
}

.ndc-lead {
  margin: 0;
  max-width: 62ch;
  color: rgba(255,255,255,0.86);
  line-height: 1.7;
}

.ndc-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.ndc-hero-tags span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.9);
  font-size: .88rem;
}

.ndc-hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ndc-kpi-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
}

.ndc-kpi-card strong {
  font-size: 1.6rem;
  line-height: 1;
}

.ndc-kpi-card span {
  color: rgba(255,255,255,0.9);
  font-weight: 700;
}

.ndc-kpi-card small {
  color: rgba(255,255,255,0.72);
}

.ndc-section {
  padding: 24px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 37, 24, 0.08);
}

.ndc-section-soft {
  background: linear-gradient(180deg, rgba(244,248,245,.98) 0%, rgba(255,255,255,.98) 100%);
}

.ndc-section-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.ndc-section-head h3 {
  margin: 8px 0 0;
  color: #123222;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.ndc-section-head p {
  max-width: 560px;
  margin: 0;
  color: #5d6b62;
  line-height: 1.65;
}

.ndc-snapshot-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.ndc-snapshot-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(16, 49, 31, 0.08);
}

.ndc-snapshot-card strong {
  color: #123222;
  font-size: 1.35rem;
}

.ndc-snapshot-card span {
  color: #5d6b62;
  font-size: .92rem;
}

.ndc-highlight-grid,
.ndc-priority-grid,
.ndc-sector-grid,
.ndc-doc-grid {
  display: grid;
  gap: 16px;
}

.ndc-highlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.ndc-highlight-card,
.ndc-priority-card,
.ndc-sector-card,
.ndc-panel-card,
.ndc-doc-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(16, 49, 31, 0.08);
  background: #fff;
}

.ndc-highlight-card h4,
.ndc-priority-card h4,
.ndc-chart-copy h4,
.ndc-sector-top strong,
.ndc-panel-card h4 {
  margin: 0 0 8px;
  color: #133321;
}

.ndc-highlight-card p,
.ndc-priority-card li,
.ndc-chart-copy p,
.ndc-sector-card p,
.ndc-governance-item p,
.ndc-timeline-item p,
.ndc-doc-card p {
  color: #56665c;
  line-height: 1.65;
}

.ndc-chart-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.ndc-chart-card {
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
  border: 1px solid rgba(27, 67, 50, 0.10);
  box-shadow: 0 14px 34px rgba(12, 31, 23, 0.08);
}

.ndc-chart-card-wide {
  grid-column: span 3;
}

.ndc-chart-surface {
  min-height: 320px;
  margin-top: 14px;
}

.ndc-priority-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ndc-priority-card ul,
.ndc-sector-actions {
  margin: 0;
  padding-left: 18px;
}

.ndc-sector-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ndc-sector-card {
  display: grid;
  gap: 14px;
}

.ndc-sector-top {
  display: grid;
  gap: 8px;
}

.ndc-sector-cluster {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(25,135,84,.10);
  color: #14673f;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.ndc-sector-card p {
  margin: 0;
}

.ndc-sector-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.ndc-sector-metrics div {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 14px;
  background: #f7fbf8;
  border: 1px solid rgba(16,49,31,.08);
}

.ndc-sector-metrics span {
  color: #678076;
  font-size: .82rem;
}

.ndc-sector-metrics strong {
  color: #123222;
}

.ndc-double-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.ndc-governance-list,
.ndc-timeline {
  display: grid;
  gap: 14px;
}

.ndc-governance-item,
.ndc-timeline-item {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f7fbf8;
  border: 1px solid rgba(16,49,31,.08);
}

.ndc-governance-item strong,
.ndc-timeline-item strong {
  color: #133321;
}

.ndc-timeline-item {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
}

.ndc-timeline-year {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: #1b4332;
  color: #fff;
  font-weight: 800;
}

.ndc-doc-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ndc-doc-card {
  display: grid;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}

.ndc-doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgba(12, 31, 23, 0.08);
}

.ndc-doc-card span {
  color: #6b7b72;
  font-size: .84rem;
  word-break: break-word;
}

@media (max-width: 1200px) {
  .ndc-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .ndc-section-head p {
    max-width: none;
  }
}

@media (max-width: 980px) {
  .ndc-hero,
  .ndc-chart-grid,
  .ndc-priority-grid,
  .ndc-double-grid,
  .ndc-doc-grid {
    grid-template-columns: 1fr;
  }

  .ndc-chart-card-wide {
    grid-column: auto;
  }

  .ndc-snapshot-grid,
  .ndc-highlight-grid,
  .ndc-sector-grid,
  .ndc-sector-metrics {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .ndc-dashboard-page {
    gap: 16px;
  }

  .ndc-hero,
  .ndc-section {
    padding: 18px;
  }

  .ndc-hero-panel,
  .ndc-snapshot-grid,
  .ndc-highlight-grid,
  .ndc-sector-grid,
  .ndc-sector-metrics {
    grid-template-columns: 1fr;
  }

  .ndc-timeline-item {
    grid-template-columns: 1fr;
  }
}

/* ========== ZAMBIA VISUAL SYSTEM REVAMP ========== */
:root {
  --zm-flag-green: #0f6f3f;
  --zm-flag-green-dark: #083f27;
  --zm-flag-green-soft: #e8f3ec;
  --zm-flag-red: #c8232c;
  --zm-flag-red-soft: #fde8ea;
  --zm-flag-black: #101312;
  --zm-flag-orange: #ef8a22;
  --zm-flag-orange-soft: #fff1df;
  --zm-cream: #f8f7f0;
  --zm-panel: #ffffff;
  --zm-ink: #17211c;
  --zm-text: #334139;
  --zm-muted: #66756d;
  --zm-line: #dfe7e1;
  --zm-line-strong: #bfd1c5;
  --zm-shadow: 0 10px 26px rgba(11, 39, 25, 0.08);
  --zm-shadow-strong: 0 18px 42px rgba(11, 39, 25, 0.14);

  --bg: var(--zm-cream);
  --card: var(--zm-panel);
  --muted: var(--zm-muted);
  --border: var(--zm-line);
  --bg-elev: var(--zm-panel);
  --border-mid: var(--zm-line-strong);
  --primary: var(--zm-flag-green);
  --primary-hover: #0b5c35;
  --accent: var(--zm-flag-red);
  --accent-hover: #a91f25;
  --highlight: var(--zm-flag-orange);
  --brand-800: var(--zm-flag-green-dark);
}

html {
  scroll-padding-top: calc(var(--nav-h) + 20px);
}

body {
  background:
    linear-gradient(180deg, rgba(15,111,63,0.08) 0%, rgba(248,247,240,0) 320px),
    var(--zm-cream);
  color: var(--zm-text);
}

a {
  color: var(--zm-flag-green);
}

a:hover {
  color: var(--zm-flag-red);
}

.navbar {
  background:
    linear-gradient(90deg, var(--zm-flag-green-dark) 0%, var(--zm-flag-green) 58%, #0c4f30 100%);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 14px 34px rgba(8, 38, 22, 0.24);
}

.navbar::after {
  bottom: 0;
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--zm-flag-green) 0 62%,
    var(--zm-flag-red) 62% 74%,
    var(--zm-flag-black) 74% 86%,
    var(--zm-flag-orange) 86% 100%
  );
}

.navbar .brand-text {
  letter-spacing: .04em;
  text-shadow: 0 1px 0 rgba(0,0,0,0.16);
}

.nav-left .brand .logo,
.logo {
  background: #fff;
  border: 2px solid rgba(239,138,34,0.78);
  outline: 2px solid rgba(255,255,255,0.92);
  box-shadow: 0 8px 18px rgba(0,0,0,0.16);
}

.nav-link,
.nav-logout {
  border-radius: 8px;
}

.nav-link:hover,
.nav-logout:hover {
  background: rgba(255,255,255,0.13);
  border-color: rgba(239,138,34,0.45);
}

.nav-link.is-active {
  color: var(--zm-flag-green-dark);
  background: #fff;
  border-color: rgba(239,138,34,0.72);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.nav-toggle {
  border-color: var(--zm-flag-orange);
  border-radius: 8px;
}

.page-container {
  width: min(1440px, calc(100% - 32px));
  margin-inline: auto;
}

.section,
.admin-user-composer,
.admin-user-records,
.admin-project-card,
.admin-project-form,
.admin-news-form,
.calendar-page,
.budget-shell,
.gis-showcase,
.gis-dossier-card,
.ndc-section,
.ndc-chart-card,
.ndc-doc-card,
.landing-section,
.landing-copy-card,
.landing-chart-card,
.landing-summary-card,
.landing-nav-card,
.news-card,
.project-card,
.auth-card,
.doc-table-wrap {
  border-radius: 8px !important;
  border: 1px solid var(--zm-line) !important;
  background: var(--zm-panel) !important;
  box-shadow: var(--zm-shadow) !important;
}

.section {
  border-top: 4px solid rgba(15,111,63,0.86) !important;
}

.section h1,
.section h2,
.section h3,
.landing-section-heading h2,
.landing-copy-card h3,
.landing-chart-header h3,
.admin-users-hero h2,
.admin-projects-hero h2,
.calendar-title,
.ndc-section-head h2,
.ndc-hero-copy h1 {
  color: var(--zm-flag-green-dark) !important;
}

.section-tag,
.landing-eyebrow,
.landing-nav-icon,
.admin-project-pill,
.ndc-sector-cluster,
.gis-project-pill,
.tag,
.pill {
  border-radius: 999px !important;
  background: var(--zm-flag-orange-soft) !important;
  color: #7a3f08 !important;
  border: 1px solid rgba(239,138,34,0.24) !important;
  font-weight: 800 !important;
}

.subtle,
.landing-section-heading p,
.landing-lead,
.calendar-subtitle,
.ndc-section-head p,
.gis-dossier-card p,
.project-details p,
.news-card p,
.auth-subtitle,
.auth-helper {
  color: var(--zm-muted) !important;
}

.btn,
button,
.auth-btn,
.survey-btn,
.carousel-btn,
.button,
.fc .fc-button {
  border-radius: 8px !important;
  font-weight: 800;
}

.btn-primary,
.auth-btn,
.survey-btn,
.button-primary,
.fc .fc-button-primary,
button[type="submit"] {
  background: var(--zm-flag-green) !important;
  border-color: var(--zm-flag-green) !important;
  color: #fff !important;
}

.btn-primary:hover,
.auth-btn:hover,
.survey-btn:hover,
.button-primary:hover,
.fc .fc-button-primary:hover,
button[type="submit"]:hover {
  background: var(--zm-flag-green-dark) !important;
  border-color: var(--zm-flag-green-dark) !important;
}

.btn:not(.btn-primary),
.button-secondary,
.fc .fc-button-primary:not(:disabled).fc-button-active {
  background: #fff !important;
  color: var(--zm-flag-green-dark) !important;
  border-color: var(--zm-line-strong) !important;
}

.btn:not(.btn-primary):hover,
.button-secondary:hover {
  background: var(--zm-flag-green-soft) !important;
  border-color: rgba(15,111,63,0.32) !important;
}

.admin-delete-btn,
.btn-danger,
.button-danger,
.flash.error {
  background: var(--zm-flag-red-soft) !important;
  color: #8e171d !important;
  border-color: rgba(200,35,44,0.28) !important;
}

input,
select,
textarea,
.survey-input,
.chatbot-input input {
  border-radius: 8px !important;
  border-color: var(--zm-line-strong) !important;
  color: var(--zm-ink) !important;
  background: #fff !important;
}

input:focus,
select:focus,
textarea:focus,
.survey-input:focus {
  border-color: var(--zm-flag-green) !important;
  box-shadow: 0 0 0 3px rgba(15,111,63,0.16) !important;
  outline: none !important;
}

.landing-home {
  color: var(--zm-text);
}

.landing-hero,
.ndc-hero,
.auth-right {
  border-radius: 8px !important;
  background:
    linear-gradient(120deg, rgba(7,35,20,0.88), rgba(15,111,63,0.62)),
    url("/static/images/national-assembly.jpg") center/cover !important;
  box-shadow: var(--zm-shadow-strong) !important;
}

.landing-hero h1,
.landing-hero p,
.landing-trust-row span,
.ndc-hero-copy h1,
.ndc-hero-copy p,
.auth-caption {
  color: #fff !important;
}

.landing-hero-panel,
.ndc-hero-panel {
  border-radius: 8px !important;
  background: rgba(255,255,255,0.12) !important;
  border: 1px solid rgba(255,255,255,0.18) !important;
  backdrop-filter: blur(8px);
}

.landing-stat-card,
.landing-ndc-card,
.ndc-snapshot-card {
  border-radius: 8px !important;
  background: rgba(255,255,255,0.96) !important;
  border: 1px solid rgba(255,255,255,0.68) !important;
  color: var(--zm-ink) !important;
}

.landing-stat-value,
.kpi-value,
.ndc-snapshot-card strong,
.landing-summary-list strong {
  color: var(--zm-flag-green) !important;
}

.landing-stat-label,
.landing-ndc-heading h3,
.landing-ndc-heading span,
.landing-target-top span,
.landing-target-top strong,
.landing-ndc-card p {
  color: var(--zm-ink) !important;
  text-shadow: none !important;
}

.landing-stat-label,
.landing-ndc-heading span,
.landing-target-top span,
.landing-ndc-card p {
  color: var(--zm-muted) !important;
}

.landing-target-top strong {
  color: var(--zm-flag-green-dark) !important;
}

.landing-meter span,
.progress-fill {
  background: linear-gradient(90deg, var(--zm-flag-green), var(--zm-flag-orange)) !important;
}

.landing-meter-accent span {
  background: linear-gradient(90deg, var(--zm-flag-red), var(--zm-flag-orange)) !important;
}

.landing-nav-card:hover,
.news-card:hover,
.project-card:hover,
.ndc-doc-card:hover,
.admin-user-card:hover,
.gis-project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(15,111,63,0.30) !important;
  box-shadow: var(--zm-shadow-strong) !important;
}

.landing-nav-card.is-current,
.landing-nav-card:nth-child(4n + 2) {
  border-top: 4px solid var(--zm-flag-green) !important;
}

.landing-nav-card:nth-child(4n + 3),
.admin-project-card:nth-child(4n + 3),
.news-card:nth-child(4n + 3) {
  border-top: 4px solid var(--zm-flag-orange) !important;
}

.landing-nav-card:nth-child(4n + 4),
.admin-project-card:nth-child(4n + 4),
.news-card:nth-child(4n + 4) {
  border-top: 4px solid var(--zm-flag-red) !important;
}

.landing-nav-card:nth-child(4n + 1),
.admin-project-card:nth-child(4n + 1),
.news-card:nth-child(4n + 1) {
  border-top: 4px solid var(--zm-flag-black) !important;
}

.landing-nav-card,
.landing-nav-card.is-current {
  color: var(--zm-ink) !important;
  background: #fff !important;
}

.landing-nav-card h3,
.landing-nav-card.is-current h3 {
  color: var(--zm-flag-green-dark) !important;
}

.landing-nav-card p,
.landing-nav-card.is-current p {
  color: var(--zm-muted) !important;
}

.landing-nav-card .landing-nav-icon,
.landing-nav-card.is-current .landing-nav-icon {
  background: var(--zm-flag-orange-soft) !important;
  color: #7a3f08 !important;
}

.admin-users-hero,
.admin-projects-hero,
.calendar-header,
.gis-dossier-header,
.budget-hero,
.top-header {
  border-radius: 8px !important;
  background:
    linear-gradient(90deg, rgba(15,111,63,0.12), rgba(239,138,34,0.10)),
    #fff !important;
  border: 1px solid var(--zm-line) !important;
  box-shadow: var(--zm-shadow) !important;
}

.budget-policy-brief-section {
  display: grid;
  gap: 18px;
}

.budget-policy-brief-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.budget-policy-btn {
  min-width: 210px;
}

.budget-policy-action-btn {
  border: 1px solid rgba(15,111,63,0.15);
  background: #fff;
  color: var(--zm-flag-green-dark);
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.budget-policy-action-btn:hover,
.budget-policy-action-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(15,111,63,0.12);
  background: rgba(15,111,63,0.06);
}

.budget-policy-action-btn.is-share {
  border-color: rgba(239,138,34,0.2);
}

.budget-policy-summary-panel {
  display: grid;
  gap: 16px;
}

.budget-policy-empty,
.budget-policy-summary-shell,
.budget-policy-signal-card,
.budget-policy-card,
.budget-policy-match-card {
  border-radius: 10px;
  border: 1px solid rgba(15,111,63,0.12);
  background: #fff;
}

.budget-policy-empty,
.budget-policy-signal-card,
.budget-policy-card,
.budget-policy-match-card {
  padding: 16px;
}

.budget-policy-summary-shell {
  padding: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,248,0.98) 100%);
}

.budget-policy-topline {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.budget-policy-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(239,138,34,0.12);
  color: #8a470d;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.budget-policy-topline h3,
.budget-policy-card h4,
.budget-policy-match-card h4 {
  margin: 10px 0 8px;
  color: var(--zm-flag-green-dark);
}

.budget-policy-topline p,
.budget-policy-card p,
.budget-policy-match-card p,
.budget-policy-signal-card p,
.budget-policy-empty p {
  margin: 0;
  color: var(--zm-muted);
  line-height: 1.65;
}

.budget-policy-signal-card {
  background: linear-gradient(135deg, rgba(15,111,63,0.08), rgba(239,138,34,0.08));
}

.budget-policy-signal-card span {
  display: block;
  color: #6b7c72;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.budget-policy-signal-card strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--zm-flag-green-dark);
  font-size: 1.35rem;
}

.budget-policy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.budget-policy-snapshot-grid,
.budget-policy-visual-grid {
  display: grid;
  gap: 14px;
}

.budget-policy-snapshot-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 16px;
}

.budget-policy-snapshot-card,
.budget-policy-visual-card {
  border-radius: 12px;
  border: 1px solid rgba(15,111,63,0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,249,247,0.98));
  padding: 16px;
}

.budget-policy-snapshot-card span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6e7e74;
  font-weight: 700;
}

.budget-policy-snapshot-card strong {
  display: block;
  margin: 10px 0 8px;
  color: var(--zm-flag-green-dark);
  font-size: 1.2rem;
}

.budget-policy-snapshot-card p,
.budget-policy-visual-meta span {
  margin: 0;
  color: var(--zm-muted);
}

.budget-policy-visual-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.budget-policy-visual-head strong {
  color: var(--zm-flag-green-dark);
}

.budget-policy-progress-track {
  position: relative;
  overflow: hidden;
  margin: 12px 0 10px;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(15,111,63,0.08);
}

.budget-policy-progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(239,138,34,0.95), rgba(15,111,63,0.9));
}

.budget-policy-progress-fill.is-ndc {
  background: linear-gradient(90deg, rgba(51,118,210,0.9), rgba(15,111,63,0.95));
}

.budget-policy-visual-meta {
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

.budget-policy-accordion-group {
  display: grid;
  gap: 10px;
}

.budget-policy-accordion {
  border: 1px solid rgba(15,111,63,0.12);
  border-radius: 12px;
  background: rgba(248,250,248,0.85);
}

.budget-policy-accordion summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-weight: 700;
  color: var(--zm-flag-green-dark);
}

.budget-policy-accordion summary::-webkit-details-marker {
  display: none;
}

.budget-policy-disclosure {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(15,111,63,0.08);
  color: var(--zm-flag-green-dark);
  transition: transform 0.16s ease, background 0.16s ease;
}

.budget-policy-disclosure svg {
  width: 16px;
  height: 16px;
}

.budget-policy-accordion[open] .budget-policy-disclosure {
  transform: rotate(180deg);
  background: rgba(239,138,34,0.12);
}

.budget-policy-accordion-body {
  padding: 0 16px 16px;
}

.budget-policy-accordion-body p {
  margin: 0;
}

.budget-policy-accordion-meta {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.budget-policy-accordion-meta span {
  color: #63746a;
  font-size: 0.92rem;
}

.budget-policy-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

.budget-policy-menu {
  position: relative;
}

.budget-policy-menu[open] .budget-policy-menu-trigger {
  box-shadow: 0 8px 18px rgba(15,111,63,0.12);
}

.budget-policy-menu-trigger {
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(15,111,63,0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #f7faf8);
  color: var(--zm-flag-green-dark);
  padding: 11px 18px;
  font-weight: 800;
}

.budget-policy-menu-trigger::-webkit-details-marker {
  display: none;
}

.budget-policy-menu-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(15,111,63,0.12);
  background: #fff;
  box-shadow: 0 18px 34px rgba(15,111,63,0.12);
  z-index: 5;
}

.budget-policy-menu-panel-icons {
  grid-template-columns: repeat(5, minmax(54px, 1fr));
  min-width: 340px;
  align-items: center;
  justify-items: center;
}

.budget-policy-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  border: 1px solid rgba(15,111,63,0.12);
  background: linear-gradient(180deg, #fff, #f7faf8);
  color: var(--zm-flag-green-dark);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.budget-policy-icon-btn svg {
  width: 24px;
  height: 24px;
}

.budget-policy-icon-btn:hover,
.budget-policy-icon-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(15,111,63,0.12);
  background: rgba(15,111,63,0.06);
}

.budget-policy-icon-btn.is-copied,
.budget-policy-icon-btn[data-policy-share="copy"].is-copied {
  background: rgba(15,111,63,0.12);
  border-color: rgba(15,111,63,0.2);
}

.budget-policy-card-wide {
  grid-column: 1 / -1;
}

.budget-policy-card ul {
  margin: 0;
  padding-left: 18px;
  color: #3f5348;
  display: grid;
  gap: 8px;
}

.budget-policy-matches {
  display: grid;
  gap: 12px;
}

@media (max-width: 900px) {
  .budget-policy-topline,
  .budget-policy-grid,
  .budget-policy-snapshot-grid {
    grid-template-columns: 1fr;
  }

  .budget-policy-btn {
    min-width: 0;
    width: 100%;
  }

  .budget-policy-bottom-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .budget-policy-menu {
    width: 100%;
  }

  .budget-policy-menu-panel {
    position: static;
    min-width: 0;
    margin-top: 10px;
  }

  .budget-policy-menu-panel-icons {
    grid-template-columns: repeat(3, minmax(54px, 1fr));
    min-width: 0;
  }
}

.admin-user-card,
.admin-project-card,
.admin-news-card,
.mne-question-card {
  border-radius: 8px !important;
  border: 1px solid var(--zm-line) !important;
  background: linear-gradient(180deg, #fff 0%, #fbfdfb 100%) !important;
}

.admin-user-meta-grid > div,
.admin-project-meta-grid > div,
.kpi,
.ndc-sector-metrics div,
.gis-metric-card,
.landing-programme-card,
.landing-summary-list div {
  border-radius: 8px !important;
  background: var(--zm-flag-green-soft) !important;
  border: 1px solid rgba(15,111,63,0.14) !important;
}

.doc-table th,
table th {
  background: var(--zm-flag-green-dark) !important;
  color: #fff !important;
}

.doc-table tbody tr:hover,
table tbody tr:hover {
  background: var(--zm-flag-green-soft) !important;
}

.calendar-page {
  padding: 20px;
}

.fc .fc-toolbar-title {
  color: var(--zm-flag-green-dark) !important;
  font-weight: 900;
}

.fc .fc-daygrid-day.fc-day-today,
.fc .fc-timegrid-col.fc-day-today {
  background: var(--zm-flag-orange-soft) !important;
}

.fc .fc-event {
  border-radius: 6px !important;
  border: 0 !important;
  background: var(--zm-flag-green) !important;
}

.fc .fc-event:nth-child(3n + 2) {
  background: var(--zm-flag-orange) !important;
}

.fc .fc-event:nth-child(3n + 3) {
  background: var(--zm-flag-red) !important;
}

.auth-split {
  background:
    linear-gradient(90deg, rgba(248,247,240,0.98) 0 50%, rgba(15,111,63,0.10) 50%),
    var(--zm-cream) !important;
}

.auth-card {
  border-top: 5px solid var(--zm-flag-green) !important;
}

.auth-title {
  color: var(--zm-flag-green-dark) !important;
}

#chatbot-toggle,
#chatbot-header {
  background: var(--zm-flag-green-dark) !important;
  color: #fff !important;
}

#chatbot-toggle {
  border: 3px solid var(--zm-flag-orange) !important;
}

.message.user {
  color: var(--zm-flag-green-dark) !important;
}

.footer {
  background:
    linear-gradient(90deg, var(--zm-flag-green-dark), var(--zm-flag-green)) !important;
  color: #fff !important;
  border-top: 5px solid var(--zm-flag-orange) !important;
}

.footer a {
  color: #ffe3b5 !important;
}

.flash.success {
  background: var(--zm-flag-green-soft) !important;
  color: var(--zm-flag-green-dark) !important;
  border: 1px solid rgba(15,111,63,0.22) !important;
}

.flash.info {
  background: var(--zm-flag-orange-soft) !important;
  color: #7a3f08 !important;
  border: 1px solid rgba(239,138,34,0.22) !important;
}

@media (max-width: 760px) {
  .page-container {
    width: min(100% - 20px, 1440px);
  }

  .landing-hero,
  .ndc-hero,
  .calendar-page,
  .section {
    border-radius: 8px !important;
  }
}
/* ========== CMAT HOME ========== */
.cmat-home {
  --home-green: #0f6f3f;
  --home-green-dark: #09482b;
  --home-ink: #17352b;
  --home-muted: #5c6f68;
  --home-line: #dbe5e0;
  display: grid;
  gap: 0;
  padding: 18px 0 42px;
  color: var(--home-ink);
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}
.cmat-home a:focus-visible, .cmat-home button:focus-visible {
  outline: 3px solid #ef8a22;
  outline-offset: 3px;
}
.cmat-home svg { width: 19px; height: 19px; stroke-width: 1.8; }
.cmat-home-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .72fr);
  gap: clamp(24px, 4vw, 52px);
  min-height: min(610px, calc(100vh - 110px));
  align-items: center;
  padding: clamp(34px, 5vw, 72px);
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(5, 31, 19, .94) 0%, rgba(8, 59, 35, .86) 52%, rgba(8, 54, 33, .72) 100%),
    url("/static/images/national-assembly.jpg") center/cover;
  color: #fff;
  box-shadow: 0 24px 52px rgba(7, 39, 23, .22);
}
.cmat-home-hero::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 5px;
  background: linear-gradient(90deg, #111 0 25%, #bd3037 25% 50%, #ef8a22 50% 75%, #0f6f3f 75%);
}
.cmat-home-hero-copy, .cmat-home-snapshot { position: relative; z-index: 1; min-width: 0; }
.cmat-home-kicker {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 4px;
  background: #fff;
  color: var(--home-green-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.cmat-home-hero h1 {
  max-width: 780px;
  margin: 20px 0 16px;
  color: #fff;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.02;
  font-weight: 760;
  letter-spacing: 0;
  text-wrap: balance;
}
.cmat-home-hero-copy > p {
  max-width: 670px;
  margin: 0;
  color: rgba(255,255,255,.84);
  font-size: clamp(1rem, 1.4vw, 1.14rem);
  line-height: 1.65;
}
.cmat-home-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.cmat-home-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 15px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.cmat-home-actions .cmat-home-primary { background: #fff; color: var(--home-green-dark); border-color: #fff; }
.cmat-home-actions .cmat-home-secondary { background: rgba(255,255,255,.08); }
.cmat-home-actions a:hover { background: #ef8a22; border-color: #ef8a22; color: #172018; }
.cmat-home-trust { display: flex; flex-wrap: wrap; gap: 17px; margin-top: 26px; }
.cmat-home-trust span { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.74); font-size: 12px; }
.cmat-home-trust svg { width: 15px; height: 15px; }
.cmat-home-snapshot {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 8px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}
.cmat-home-snapshot-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cmat-home-snapshot-head div { display: grid; gap: 2px; }
.cmat-home-snapshot-head div span { color: rgba(255,255,255,.68); font-size: 11px; text-transform: uppercase; }
.cmat-home-snapshot-head div strong { color: #fff; font-size: 16px; }
.cmat-live-indicator { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 12px; }
.cmat-live-indicator i { width: 8px; height: 8px; border-radius: 50%; background: #5ee29c; box-shadow: 0 0 0 4px rgba(94,226,156,.14); }
.cmat-home-stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cmat-home-stat-grid a {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 2px 8px;
  min-height: 92px;
  padding: 13px;
  border-radius: 6px;
  background: rgba(255,255,255,.96);
  color: var(--home-ink);
  text-decoration: none;
}
.cmat-home-stat-grid a:hover { background: #fff7ed; }
.cmat-home-stat-grid svg { grid-row: 1 / span 2; color: var(--home-green); }
.cmat-home-stat-grid strong { color: var(--home-green); font-size: 23px; line-height: 1; }
.cmat-home-stat-grid span { color: var(--home-muted); font-size: 12px; }
.cmat-ndc-snapshot {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 6px;
  background: #fff;
  color: var(--home-ink);
  text-decoration: none;
}
.cmat-ndc-snapshot > div:first-child { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.cmat-ndc-snapshot > div:first-child span { color: var(--home-muted); font-size: 11px; text-align: right; }
.cmat-target-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.cmat-target-meter { height: 6px; overflow: hidden; border-radius: 3px; background: #e6ece8; }
.cmat-target-meter i { display: block; height: 100%; background: #ef8a22; }
.cmat-target-meter.is-conditional i { background: #bd3037; }
.cmat-home-band { padding: clamp(46px, 6vw, 78px) clamp(4px, 1vw, 12px); border-bottom: 1px solid var(--home-line); }
.cmat-home-section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .7fr); gap: 30px; align-items: end; margin-bottom: 28px; }
.cmat-home-label { color: var(--home-green); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.cmat-home-section-head h2 { max-width: 720px; margin: 8px 0 0; color: var(--home-green-dark); font-size: clamp(1.75rem, 3vw, 2.65rem); line-height: 1.12; }
.cmat-home-section-head > p { margin: 0; color: var(--home-muted); line-height: 1.65; }
.cmat-workflow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--home-line); border-radius: 8px; background: #fff; overflow: hidden; }
.cmat-workflow > div { position: relative; display: grid; align-content: start; gap: 9px; min-height: 190px; padding: 22px; border-right: 1px solid var(--home-line); }
.cmat-workflow > div:last-child { border-right: 0; }
.cmat-workflow > div > span { position: absolute; top: 14px; right: 15px; color: #a2b1aa; font-size: 12px; font-weight: 800; }
.cmat-workflow svg { width: 30px; height: 30px; color: var(--home-green); }
.cmat-workflow strong { font-size: 17px; }
.cmat-workflow p { margin: 0; color: var(--home-muted); font-size: 13px; line-height: 1.55; }
.cmat-module-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.cmat-module-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 11px;
  min-height: 245px;
  padding: 18px;
  border: 1px solid var(--home-line);
  border-top: 4px solid var(--module-tone, var(--home-green));
  border-radius: 8px;
  background: #fff;
  color: var(--home-ink);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.cmat-module-card[data-tone="blue"] { --module-tone: #407b9a; }
.cmat-module-card[data-tone="orange"] { --module-tone: #df8c2f; }
.cmat-module-card[data-tone="red"] { --module-tone: #bd3037; }
.cmat-module-card[data-tone="black"] { --module-tone: #222827; }
.cmat-module-card:hover { transform: translateY(-3px); border-color: var(--module-tone); box-shadow: 0 16px 30px rgba(20, 55, 41, .10); }
.cmat-module-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 6px; background: color-mix(in srgb, var(--module-tone) 12%, white); color: var(--module-tone); }
.cmat-access { align-self: center; justify-self: end; padding: 4px 7px; border-radius: 4px; background: #f0f4f2; color: var(--home-muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.cmat-module-card h3 { grid-column: 1 / -1; margin: 3px 0 0; color: var(--home-green-dark); font-size: 18px; }
.cmat-module-card p { grid-column: 1 / -1; margin: 0; color: var(--home-muted); font-size: 13px; line-height: 1.6; }
.cmat-module-open { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; align-self: end; color: var(--module-tone); font-size: 13px; font-weight: 800; }
.cmat-module-open svg { width: 16px; height: 16px; transition: transform .18s ease; }
.cmat-module-card:hover .cmat-module-open svg { transform: translateX(3px); }
.cmat-evidence-band { background: #f5f8f6; margin-inline: 0; padding-inline: clamp(20px, 3vw, 38px); border-radius: 8px; }
.cmat-evidence-grid, .cmat-signals-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr); gap: 18px; }
.cmat-chart-panel, .cmat-framework-summary, .cmat-signal-list { border: 1px solid var(--home-line); border-radius: 8px; background: #fff; }
.cmat-chart-panel { min-width: 0; padding: 20px; }
.cmat-chart-panel h3 { margin: 0; color: var(--home-green-dark); }
.cmat-chart-panel p { margin: 5px 0 0; color: var(--home-muted); font-size: 13px; }
.cmat-home-chart { min-height: 330px; }
.cmat-indicator-bars { display: grid; gap: 12px; margin-top: 25px; }
.cmat-indicator-row { display: grid; grid-template-columns: minmax(110px, 165px) minmax(100px, 1fr) 24px; gap: 12px; align-items: center; }
.cmat-indicator-row > span { color: var(--home-muted); font-size: 12px; }
.cmat-indicator-row > strong { color: var(--home-green); font-size: 12px; text-align: right; }
.cmat-indicator-track { height: 10px; overflow: hidden; border-radius: 5px; background: #e6eeea; }
.cmat-indicator-track i { display: block; height: 100%; border-radius: inherit; background: var(--home-green); }
.cmat-indicator-row:nth-child(3n + 2) .cmat-indicator-track i { background: #df8c2f; }
.cmat-indicator-row:nth-child(3n + 3) .cmat-indicator-track i { background: #407b9a; }
.cmat-framework-summary { display: grid; align-content: start; padding: 10px 20px; }
.cmat-framework-summary > div { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--home-line); }
.cmat-framework-summary > div svg { color: var(--home-green); }
.cmat-framework-summary > div span { display: grid; gap: 4px; }
.cmat-framework-summary small { color: var(--home-muted); line-height: 1.45; }
.cmat-framework-summary > a { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 18px 0 10px; color: var(--home-green); font-weight: 800; text-decoration: none; }
.cmat-programmes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
.cmat-programmes a { position: relative; display: grid; gap: 12px; min-height: 125px; padding: 16px; border: 1px solid #d6e3dc; border-radius: 8px; background: #fff; color: var(--home-ink); text-decoration: none; }
.cmat-programmes span { color: var(--home-green); font-size: 11px; font-weight: 800; }
.cmat-programmes strong { padding-right: 16px; font-size: 13px; line-height: 1.35; }
.cmat-programmes svg { position: absolute; top: 14px; right: 12px; width: 16px; height: 16px; color: #81958b; }
.cmat-programmes a:hover { border-color: var(--home-green); }
.cmat-signal-list { display: grid; align-content: start; padding: 8px 20px; }
.cmat-status-visual { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(180px, 1fr); gap: 30px; align-items: center; min-height: 300px; padding: 18px 12px 4px; }
.cmat-status-donut { display: grid; place-items: center; width: min(230px, 100%); aspect-ratio: 1; margin-inline: auto; border-radius: 50%; background: conic-gradient(#147a4b 0 var(--ongoing), #bd3037 var(--ongoing) var(--closed), #df8c2f var(--closed) 100%); }
.cmat-status-donut.is-empty { background: #dfe8e3; }
.cmat-status-donut::before { content: ""; grid-area: 1 / 1; width: 62%; aspect-ratio: 1; border-radius: 50%; background: #fff; }
.cmat-status-donut > span { z-index: 1; grid-area: 1 / 1; display: grid; gap: 3px; text-align: center; }
.cmat-status-donut strong { color: var(--home-green); font-size: 30px; }
.cmat-status-donut small { color: var(--home-muted); font-size: 11px; }
.cmat-status-legend { display: grid; gap: 14px; }
.cmat-status-legend span { display: grid; grid-template-columns: 10px 1fr auto; gap: 8px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--home-line); color: var(--home-muted); font-size: 12px; }
.cmat-status-legend i { width: 10px; height: 10px; border-radius: 2px; background: #147a4b; }
.cmat-status-legend i.is-closed { background: #bd3037; }
.cmat-status-legend i.is-other { background: #df8c2f; }
.cmat-status-legend strong { color: var(--home-ink); }
.cmat-signal-list > a:not(.cmat-signal-action) { display: flex; justify-content: space-between; gap: 14px; align-items: center; padding: 17px 0; border-bottom: 1px solid var(--home-line); color: var(--home-ink); text-decoration: none; }
.cmat-signal-list > a span { display: inline-flex; align-items: center; gap: 9px; color: var(--home-muted); font-size: 13px; }
.cmat-signal-list > a span svg { color: var(--home-green); }
.cmat-signal-list > a strong { color: var(--home-green); text-align: right; }
.cmat-signal-action { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 16px 0 8px; padding: 12px 14px; border-radius: 6px; background: var(--home-green); color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.cmat-update-label { display: flex; align-items: center; gap: 9px; margin: 0 0 14px; }
.cmat-update-label svg { color: var(--home-green); }
.cmat-update-label h3 { margin: 0; font-size: 17px; }
.cmat-update-label span { margin-left: auto; color: var(--home-muted); font-size: 12px; }
.cmat-news-label { margin-top: 32px; }
.cmat-document-grid, .cmat-news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cmat-document-grid > a { display: grid; align-content: start; gap: 11px; min-height: 235px; padding: 18px; border: 1px solid var(--home-line); border-radius: 8px; color: var(--home-ink); text-decoration: none; }
.cmat-document-grid > a:hover, .cmat-news-grid > a:hover { border-color: var(--home-green); box-shadow: 0 14px 28px rgba(20,55,41,.08); }
.cmat-document-type { display: inline-flex; align-items: center; gap: 7px; color: var(--home-green); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.cmat-document-type svg { width: 16px; height: 16px; }
.cmat-document-grid h3 { margin: 2px 0 0; color: var(--home-green-dark); font-size: 17px; line-height: 1.35; }
.cmat-document-grid p { margin: 0; color: var(--home-muted); font-size: 13px; line-height: 1.55; }
.cmat-document-open { display: flex; align-items: center; justify-content: space-between; gap: 8px; align-self: end; margin-top: auto; color: var(--home-green); font-size: 12px; font-weight: 800; }
.cmat-document-open svg { width: 15px; height: 15px; }
.cmat-news-grid > a { display: grid; grid-template-rows: 165px 1fr; overflow: hidden; border: 1px solid var(--home-line); border-radius: 8px; background: #fff; color: var(--home-ink); text-decoration: none; }
.cmat-news-grid img, .cmat-news-placeholder { width: 100%; height: 165px; object-fit: cover; background: #edf3ef; }
.cmat-news-placeholder { display: grid; place-items: center; color: #879991; }
.cmat-news-placeholder svg { width: 34px; height: 34px; }
.cmat-news-body { display: grid; align-content: start; gap: 8px; padding: 16px; }
.cmat-news-body small { color: var(--home-muted); }
.cmat-news-body strong { color: var(--home-green-dark); font-size: 17px; line-height: 1.35; }
.cmat-news-body p { margin: 0; color: var(--home-muted); font-size: 13px; line-height: 1.5; }
.cmat-news-body b { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; color: var(--home-green); font-size: 12px; }
.cmat-news-body b svg { width: 15px; height: 15px; }
.cmat-home-empty { padding: 38px; border: 1px dashed #bbc9c2; border-radius: 8px; text-align: center; }
.cmat-home-empty svg { width: 34px; height: 34px; color: var(--home-green); }
.cmat-home-empty h3 { margin: 12px 0 5px; }
.cmat-home-empty p { margin: 0; color: var(--home-muted); }
@media (max-width: 1100px) {
  .cmat-home-hero { grid-template-columns: 1fr; min-height: auto; }
  .cmat-home-snapshot { grid-template-columns: 1fr 1fr; }
  .cmat-home-snapshot-head, .cmat-home-stat-grid { grid-column: 1; }
  .cmat-ndc-snapshot { grid-column: 2; grid-row: 1 / span 2; }
  .cmat-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmat-programmes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .cmat-home-hero { padding: 28px 20px; }
  .cmat-home-hero h1 { font-size: 2.45rem; }
  .cmat-home-snapshot { grid-template-columns: 1fr; }
  .cmat-home-snapshot-head, .cmat-home-stat-grid, .cmat-ndc-snapshot { grid-column: 1; grid-row: auto; }
  .cmat-home-section-head, .cmat-evidence-grid, .cmat-signals-grid { grid-template-columns: 1fr; }
  .cmat-workflow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cmat-workflow > div:nth-child(2) { border-right: 0; }
  .cmat-workflow > div:nth-child(-n+2) { border-bottom: 1px solid var(--home-line); }
  .cmat-programmes, .cmat-document-grid, .cmat-news-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .navbar, .nav-left, .nav-left .brand, .cmat-home-hero-copy, .cmat-home-snapshot { min-width: 0; }
  .navbar .brand-text { max-width: 190px; overflow-wrap: anywhere; }
  .cmat-home { padding-top: 8px; }
  .cmat-home-hero h1 { font-size: 2rem; }
  .cmat-home-actions a { width: 100%; }
  .cmat-home-stat-grid, .cmat-module-grid, .cmat-workflow, .cmat-programmes, .cmat-document-grid, .cmat-news-grid { grid-template-columns: 1fr; }
  .cmat-workflow > div { border-right: 0; border-bottom: 1px solid var(--home-line); min-height: 150px; }
  .cmat-workflow > div:last-child { border-bottom: 0; }
  .cmat-module-card { min-height: 220px; }
  .cmat-home-chart { min-height: 300px; }
  .cmat-evidence-band { padding-inline: 16px; }
  .cmat-indicator-row { grid-template-columns: minmax(90px, 125px) minmax(70px, 1fr) 20px; gap: 8px; }
  .cmat-status-visual { grid-template-columns: 1fr; }
}

/* ========== NDC 3.0 DASHBOARD ========== */
.ndc3-page {
  --ndc-green: #0f6f3f;
  --ndc-green-dark: #08462b;
  --ndc-ink: #19372d;
  --ndc-muted: #60736b;
  --ndc-line: #d9e4de;
  display: grid;
  gap: 0;
  min-width: 0;
  max-width: 100%;
  padding: 18px 0 42px;
  overflow-x: clip;
  color: var(--ndc-ink);
}
.ndc3-page svg { width: 19px; height: 19px; stroke-width: 1.8; }
.ndc3-page a:focus-visible, .ndc3-page button:focus-visible, .ndc3-page summary:focus-visible, .ndc3-page input:focus-visible { outline: 3px solid #ef8a22; outline-offset: 3px; }
.ndc3-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(390px, .75fr);
  gap: 34px;
  min-height: 560px;
  align-items: center;
  padding: 58px;
  overflow: hidden;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(5,32,19,.95), rgba(8,67,39,.82)), url("/static/images/national-assembly.jpg") center/cover;
  color: #fff;
  box-shadow: 0 24px 52px rgba(7,39,23,.20);
}
.ndc3-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: linear-gradient(90deg,#111 0 25%,#bd3037 25% 50%,#ef8a22 50% 75%,#0f6f3f 75%); }
.ndc3-hero-copy, .ndc3-hero-data { position: relative; z-index: 1; min-width: 0; }
.ndc3-kicker { display: inline-flex; padding: 7px 10px; border-radius: 4px; background: #fff; color: var(--ndc-green-dark); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.ndc3-hero h1 { max-width: 760px; margin: 20px 0 16px; color: #fff; font-size: 58px; line-height: 1.03; letter-spacing: 0; text-wrap: balance; }
.ndc3-hero-copy > p { max-width: 690px; margin: 0; color: rgba(255,255,255,.84); font-size: 17px; line-height: 1.65; }
.ndc3-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 27px; }
.ndc3-actions a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; border: 1px solid rgba(255,255,255,.62); border-radius: 6px; color: #fff; font-size: 13px; font-weight: 800; text-decoration: none; }
.ndc3-actions a.is-primary { border-color: #fff; background: #fff; color: var(--ndc-green-dark); }
.ndc3-actions a:hover { border-color: #ef8a22; background: #ef8a22; color: #18231c; }
.ndc3-meta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.ndc3-meta span { display: inline-flex; align-items: center; gap: 7px; color: rgba(255,255,255,.72); font-size: 12px; }
.ndc3-meta svg { width: 15px; height: 15px; }
.ndc3-hero-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 16px; border: 1px solid rgba(255,255,255,.24); border-radius: 8px; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.ndc3-hero-data a { display: grid; gap: 5px; min-height: 132px; padding: 17px; border-radius: 6px; background: rgba(255,255,255,.96); color: var(--ndc-ink); text-decoration: none; }
.ndc3-hero-data a:hover { background: #fff5e9; }
.ndc3-hero-data span { color: var(--ndc-muted); font-size: 11px; text-transform: uppercase; }
.ndc3-hero-data strong { color: var(--ndc-green); font-size: 28px; line-height: 1; }
.ndc3-hero-data small { color: var(--ndc-muted); line-height: 1.35; }
.ndc3-band { padding: 72px 12px; border-bottom: 1px solid var(--ndc-line); }
.ndc3-section-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .75fr); gap: 30px; align-items: end; margin-bottom: 28px; }
.ndc3-section-head > div > span { color: var(--ndc-green); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.ndc3-section-head h2 { max-width: 760px; margin: 8px 0 0; color: var(--ndc-green-dark); font-size: 36px; line-height: 1.12; }
.ndc3-section-head > p { margin: 0; color: var(--ndc-muted); line-height: 1.65; }
.ndc3-snapshot { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); border: 1px solid var(--ndc-line); border-radius: 8px; overflow: hidden; }
.ndc3-snapshot a { display: grid; gap: 6px; min-height: 120px; padding: 18px; border-right: 1px solid var(--ndc-line); background: #fff; color: var(--ndc-ink); text-decoration: none; }
.ndc3-snapshot a:last-child { border-right: 0; }
.ndc3-snapshot a:hover { background: #f1f7f3; }
.ndc3-snapshot strong { color: var(--ndc-green); font-size: 25px; }
.ndc3-snapshot span { color: var(--ndc-muted); font-size: 12px; line-height: 1.4; }
.ndc3-highlights { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 16px; }
.ndc3-highlights article { min-height: 180px; padding: 19px; border: 1px solid var(--ndc-line); border-top: 4px solid var(--ndc-green); border-radius: 8px; background: #fff; }
.ndc3-highlights article:nth-child(2) { border-top-color: #df8c2f; }
.ndc3-highlights article:nth-child(3) { border-top-color: #407b9a; }
.ndc3-highlights article > span { color: #91a29a; font-size: 11px; font-weight: 800; }
.ndc3-highlights h3 { margin: 12px 0 6px; color: var(--ndc-green-dark); font-size: 17px; }
.ndc3-highlights p { margin: 0; color: var(--ndc-muted); font-size: 13px; line-height: 1.6; }
.ndc3-explorer { margin-inline: 0; padding-inline: 30px; border-radius: 8px; background: #f4f8f5; }
.ndc3-chart-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.ndc3-chart-panel, .ndc3-performance-panel { min-width: 0; border: 1px solid var(--ndc-line); border-radius: 8px; background: #fff; }
.ndc3-chart-panel { min-height: 385px; padding: 20px; }
.ndc3-panel-head { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; }
.ndc3-panel-head > svg { color: var(--ndc-green); }
.ndc3-panel-head h3 { margin: 0; color: var(--ndc-green-dark); font-size: 17px; }
.ndc3-panel-head p { margin: 5px 0 0; color: var(--ndc-muted); font-size: 12px; line-height: 1.45; }
.ndc3-target-bars, .ndc3-cost-bars, .ndc3-cluster-stack { display: grid; gap: 11px; margin-top: 28px; }
.ndc3-target-bars button, .ndc3-cost-bars button, .ndc3-cluster-stack button, .ndc3-performance-list button { width: 100%; border: 0; background: transparent; color: inherit; cursor: pointer; text-align: left; }
.ndc3-target-bars button { display: grid; grid-template-columns: minmax(90px,1fr) 2fr 38px; gap: 9px; align-items: center; padding: 11px; border: 1px solid transparent; border-radius: 6px; }
.ndc3-target-bars button:hover, .ndc3-target-bars button.is-selected, .ndc3-cost-bars button:hover, .ndc3-cost-bars button.is-selected, .ndc3-cluster-stack button:hover, .ndc3-cluster-stack button.is-selected { border-color: #b9cec2; background: #f2f8f4; }
.ndc3-target-bars button > span, .ndc3-cost-bars button > span { color: var(--ndc-muted); font-size: 12px; }
.ndc3-target-bars button > div, .ndc3-cost-bars button > div, .ndc3-performance-list button > div, .ndc3-sector-progress > div { height: 10px; overflow: hidden; border-radius: 5px; background: #e4ede8; }
.ndc3-target-bars button > div i, .ndc3-cost-bars button > div i, .ndc3-performance-list button > div i, .ndc3-sector-progress > div i { display: block; height: 100%; border-radius: inherit; background: var(--ndc-green); }
.ndc3-target-bars button:nth-child(2) > div i { background: #bd3037; }
.ndc3-target-bars strong, .ndc3-cost-bars strong { color: var(--ndc-green-dark); font-size: 12px; text-align: right; }
.ndc3-cost-bars button { display: grid; grid-template-columns: 110px minmax(70px,1fr) 58px; gap: 8px; align-items: center; padding: 6px 8px; border: 1px solid transparent; border-radius: 6px; }
.ndc3-cost-bars button > div i { background: #407b9a; }
.ndc3-cluster-stack button { display: grid; grid-template-columns: minmax(80px,1fr) minmax(75px,1fr) 24px; gap: 9px; align-items: center; min-height: 46px; padding: 8px; border: 1px solid transparent; border-radius: 6px; }
.ndc3-cluster-stack button > i { display: block; width: var(--cluster-width); min-width: 4px; height: 12px; border-radius: 3px; background: var(--ndc-green); }
.ndc3-cluster-stack button:nth-child(2) > i { background: #74b994; }
.ndc3-cluster-stack button:nth-child(3) > i { background: #df8c2f; }
.ndc3-cluster-stack button:nth-child(4) > i { background: #bd3037; }
.ndc3-cluster-stack span { color: var(--ndc-muted); font-size: 12px; }
.ndc3-cluster-stack strong { text-align: right; font-size: 12px; }
.ndc3-insight { display: grid; grid-template-columns: 32px 1fr; gap: 11px; align-items: center; min-height: 75px; margin: 14px 0; padding: 14px 18px; border-left: 4px solid #ef8a22; border-radius: 6px; background: #fff8ef; }
.ndc3-insight > svg { color: #b66616; }
.ndc3-insight span { display: grid; gap: 3px; }
.ndc3-insight small { color: var(--ndc-muted); line-height: 1.45; }
.ndc3-performance-panel { padding: 20px; }
.ndc3-performance-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 6px 20px; margin-top: 18px; }
.ndc3-performance-list button { display: grid; grid-template-columns: minmax(130px,1fr) minmax(90px,1.4fr) 38px; gap: 9px; align-items: center; padding: 9px; border-radius: 6px; }
.ndc3-performance-list button:hover { background: #f1f7f3; }
.ndc3-performance-list span { overflow: hidden; color: var(--ndc-muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.ndc3-performance-list strong { color: var(--ndc-green); font-size: 12px; text-align: right; }
.ndc3-priority-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.ndc3-priority-grid article { min-height: 260px; padding: 21px; border: 1px solid var(--ndc-line); border-radius: 8px; background: #fff; }
.ndc3-priority-grid article > svg { width: 29px; height: 29px; color: var(--ndc-green); }
.ndc3-priority-grid h3 { margin: 15px 0 10px; color: var(--ndc-green-dark); }
.ndc3-priority-grid ul { margin: 0; padding-left: 18px; color: var(--ndc-muted); }
.ndc3-priority-grid li { margin: 8px 0; line-height: 1.5; }
.ndc3-sector-section { padding-inline: 30px; background: #f6f9f7; border-radius: 8px; }
.ndc3-sector-tools { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.ndc3-sector-tools > label { position: relative; flex: 1 1 360px; max-width: 450px; }
.ndc3-sector-tools > label svg { position: absolute; top: 50%; left: 13px; width: 17px; height: 17px; transform: translateY(-50%); color: #71857b; pointer-events: none; }
.ndc3-sector-tools input { width: 100%; min-height: 44px; padding: 10px 12px 10px 40px; border: 1px solid #bccdc4; border-radius: 6px; background: #fff; color: var(--ndc-ink); }
.ndc3-filter-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.ndc3-filter-row button { min-height: 38px; padding: 8px 11px; border: 1px solid #bfd0c7; border-radius: 6px; background: #fff; color: var(--ndc-muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.ndc3-filter-row button:hover, .ndc3-filter-row button.is-active { border-color: var(--ndc-green); background: var(--ndc-green); color: #fff; }
.ndc3-result-count { margin: 15px 0 10px; color: var(--ndc-muted); font-size: 12px; }
.ndc3-sector-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ndc3-sector-card { border: 1px solid var(--ndc-line); border-radius: 8px; background: #fff; overflow: hidden; }
.ndc3-sector-card[hidden] { display: none; }
.ndc3-sector-card summary { position: relative; display: grid; gap: 10px; min-height: 255px; padding: 20px 54px 20px 20px; list-style: none; cursor: pointer; }
.ndc3-sector-card summary::-webkit-details-marker { display: none; }
.ndc3-sector-card summary:hover { background: #fbfdfc; }
.ndc3-sector-badge { width: fit-content; padding: 5px 7px; border-radius: 4px; background: #e8f3ec; color: var(--ndc-green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.ndc3-sector-card h3 { margin: 0; color: var(--ndc-green-dark); font-size: 18px; }
.ndc3-sector-card summary > p { margin: 0; color: var(--ndc-muted); font-size: 13px; line-height: 1.55; }
.ndc3-sector-progress { display: grid; grid-template-columns: 112px 1fr 36px; gap: 8px; align-items: center; align-self: end; }
.ndc3-sector-progress > span, .ndc3-sector-progress > strong { color: var(--ndc-muted); font-size: 11px; }
.ndc3-sector-progress > strong { color: var(--ndc-green); text-align: right; }
.ndc3-sector-expand { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 4px; background: #f0f5f2; color: var(--ndc-green); }
.ndc3-sector-card[open] .ndc3-sector-expand svg { transform: rotate(180deg); }
.ndc3-sector-detail { padding: 18px 20px 20px; border-top: 1px solid var(--ndc-line); background: #fbfdfc; }
.ndc3-sector-metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.ndc3-sector-metrics > div { display: grid; gap: 5px; padding: 11px; border-radius: 6px; background: #edf5f0; }
.ndc3-sector-metrics span { color: var(--ndc-muted); font-size: 10px; }
.ndc3-sector-metrics strong { color: var(--ndc-green-dark); font-size: 13px; }
.ndc3-sector-detail h4 { margin: 17px 0 7px; color: var(--ndc-green-dark); }
.ndc3-sector-detail ul { margin: 0; padding-left: 18px; color: var(--ndc-muted); }
.ndc3-sector-detail li { margin: 6px 0; line-height: 1.45; }
.ndc3-sector-detail > a { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; color: var(--ndc-green); font-size: 12px; font-weight: 800; text-decoration: none; }
.ndc3-no-results { display: grid; justify-items: center; gap: 7px; padding: 38px; text-align: center; }
.ndc3-no-results svg { width: 30px; height: 30px; color: var(--ndc-green); }
.ndc3-no-results span { color: var(--ndc-muted); }
.ndc3-governance-band { background: #f4f8f5; border-radius: 8px; padding-inline: 30px; }
.ndc3-governance-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
.ndc3-governance-grid .ndc3-section-head { grid-template-columns: 1fr; margin-bottom: 18px; }
.ndc3-governance-list { display: grid; gap: 9px; }
.ndc3-governance-list article { display: grid; grid-template-columns: 30px 1fr; gap: 11px; padding: 16px; border: 1px solid var(--ndc-line); border-radius: 8px; background: #fff; }
.ndc3-governance-list article > svg { color: var(--ndc-green); }
.ndc3-governance-list h3, .ndc3-timeline h3 { margin: 0; color: var(--ndc-green-dark); font-size: 15px; }
.ndc3-governance-list p, .ndc3-timeline p { margin: 5px 0 0; color: var(--ndc-muted); font-size: 12px; line-height: 1.55; }
.ndc3-timeline { position: relative; display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.ndc3-timeline::before { content: ""; position: absolute; top: 20px; bottom: 20px; left: 33px; width: 2px; background: #bdd1c6; }
.ndc3-timeline li { position: relative; display: grid; grid-template-columns: 68px 1fr; gap: 12px; padding: 0 0 17px; }
.ndc3-timeline li > span { z-index: 1; display: grid; place-items: center; width: 68px; height: 42px; border-radius: 6px; background: var(--ndc-green-dark); color: #fff; font-size: 12px; font-weight: 800; }
.ndc3-timeline li > div { padding: 10px 14px; border: 1px solid var(--ndc-line); border-radius: 8px; background: #fff; }
.ndc3-document-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.ndc3-document-grid > a { display: grid; grid-template-columns: 48px 1fr 20px; gap: 14px; align-items: center; min-height: 145px; padding: 18px; border: 1px solid var(--ndc-line); border-radius: 8px; background: #fff; color: var(--ndc-ink); text-decoration: none; }
.ndc3-document-grid > a:hover { border-color: var(--ndc-green); box-shadow: 0 14px 28px rgba(20,55,41,.08); }
.ndc3-doc-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 6px; background: #e8f3ec; color: var(--ndc-green); }
.ndc3-document-grid > a > span:nth-child(2) { display: grid; gap: 5px; }
.ndc3-document-grid small { color: var(--ndc-green); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.ndc3-document-grid strong { color: var(--ndc-green-dark); font-size: 16px; }
.ndc3-document-grid p { margin: 0; color: var(--ndc-muted); font-size: 12px; }
.ndc3-document-grid > a > svg { color: var(--ndc-green); }
@media (max-width: 1100px) {
  .ndc3-hero { grid-template-columns: 1fr; min-height: auto; }
  .ndc3-snapshot { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .ndc3-snapshot a:nth-child(3) { border-right: 0; }
  .ndc3-snapshot a:nth-child(-n+3) { border-bottom: 1px solid var(--ndc-line); }
  .ndc3-chart-grid { grid-template-columns: 1fr 1fr; }
  .ndc3-chart-panel:last-child { grid-column: 1 / -1; min-height: auto; }
}
@media (max-width: 820px) {
  .ndc3-hero { padding: 34px 24px; }
  .ndc3-hero h1 { font-size: 42px; }
  .ndc3-section-head, .ndc3-chart-grid, .ndc3-priority-grid, .ndc3-governance-grid, .ndc3-document-grid { grid-template-columns: 1fr; }
  .ndc3-chart-panel:last-child { grid-column: auto; }
  .ndc3-performance-list, .ndc3-sector-grid { grid-template-columns: 1fr; }
  .ndc3-sector-tools { align-items: stretch; flex-direction: column; }
  .ndc3-sector-tools > label { flex-basis: auto; max-width: none; }
  .ndc3-filter-row { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .ndc3-page { padding-top: 8px; }
  .ndc3-hero h1 { font-size: 34px; }
  .ndc3-hero-copy > p { font-size: 15px; }
  .ndc3-actions a { width: 100%; justify-content: center; }
  .ndc3-hero-data, .ndc3-snapshot, .ndc3-highlights { grid-template-columns: 1fr; }
  .ndc3-snapshot a { border-right: 0; border-bottom: 1px solid var(--ndc-line); }
  .ndc3-snapshot a:last-child { border-bottom: 0; }
  .ndc3-band { padding: 48px 16px; }
  .ndc3-explorer, .ndc3-sector-section, .ndc3-governance-band { padding-inline: 16px; }
  .ndc3-section-head h2 { font-size: 28px; }
  .ndc3-cost-bars button { grid-template-columns: 88px minmax(60px,1fr) 52px; }
  .ndc3-performance-list button { grid-template-columns: minmax(100px,1fr) minmax(70px,1fr) 36px; }
  .ndc3-sector-progress { grid-template-columns: 100px 1fr 32px; }
  .ndc3-sector-metrics { grid-template-columns: 1fr; }
  .ndc3-document-grid > a { grid-template-columns: 42px 1fr; }
  .ndc3-document-grid > a > svg { display: none; }
}
