/* ============================================================
   City of Koronadal Transparency Portal
   ============================================================ */

:root {
  --green-950: #062012;
  --green-900: #0a3d22;
  --green-800: #0d4d2b;
  --green-700: #12643a;
  --green-600: #177a45;
  --green-500: #1e8f53;
  --green-100: #e4f2e9;
  --green-50:  #f1f8f3;
  --gold:      #e0ae3c;
  --gold-500:  #e0ae3c;
  --gold-600:  #c99a2c;
  --ink:       #15261d;
  --ink-soft:  #42574a;
  --text:      #15261d;
  --muted:     #6d7c74;
  --line:      #e2e9e3;
  --bg:        #f6f8f5;
  --card:      #ffffff;
  --danger:    #c0392b;
  --info:      #2d6fb8;
  --warn:      #b0771a;
  --radius:    14px;
  --shadow:    0 1px 2px rgba(20, 40, 28, .06), 0 8px 24px rgba(20, 40, 28, .05);
  --shadow-lg: 0 12px 40px rgba(10, 50, 30, .14);
  --font: 'Figtree', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--green-600); text-decoration: none; }
a:hover { color: var(--green-800); }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--ink); margin: 0 0 .5rem; }
p { margin: 0 0 .9rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
.hidden { display: none !important; }

/* ---------------- Topbar (utility strip) ---------------- */
.topbar {
  background: var(--green-950);
  color: rgba(255,255,255,.7);
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .6px;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 28px;
}
.topbar .tb-bullet { color: var(--gold); margin-right: 6px; }
.topbar-links { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.topbar-links a { color: rgba(255,255,255,.82); }
.topbar-links a:hover { color: var(--gold); text-decoration: none; }
.topbar .tb-sep { opacity: .3; }

/* ---------------- Site header ---------------- */
.site-header {
  background: linear-gradient(135deg, var(--green-900) 0%, var(--green-800) 55%, var(--green-700) 100%);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 3px 18px rgba(6, 32, 18, .32);
  border-bottom: 2px solid var(--gold);
}
.nav-wrap { position: relative; }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  flex-shrink: 0;
}
.brand-seal {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 210deg, var(--gold), #fff 40%, var(--gold) 75%, #fff);
  display: grid;
  place-items: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.35);
}
.brand-seal img { width: 46px; height: 46px; border-radius: 50%; background: #fff; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.18; }
.brand .brand-text .bt-1 { font-size: 1.12rem; font-weight: 800; letter-spacing: .1px; }
.brand .brand-text .bt-2 { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1.7px; color: var(--gold); }
.brand .brand-text .bt-3 { font-size: .67rem; font-weight: 400; opacity: .72; margin-top: 2px; }
.main-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  overflow: visible;
}
.main-nav .nav-icon { margin-right: 6px; opacity: .9; font-size: .85em; }
.nav-link, .dropdown-toggle {
  color: rgba(255,255,255,.9);
  font-size: .95rem;
  font-weight: 600;
  padding: 9px 13px;
  border-radius: 10px;
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.nav-link:hover, .dropdown-toggle:hover { background: rgba(255,255,255,.12); color: #fff; transform: translateY(-1px); }
.nav-link.active, .nav-dropdown.active .dropdown-toggle {
  background: rgba(255,255,255,.16);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.2), inset 0 -2px 0 var(--gold);
}
.dropdown-toggle .caret {
  margin-left: 7px;
  font-size: .7em;
  opacity: .8;
  transition: transform .22s ease;
}
.nav-dropdown:hover .dropdown-toggle .caret,
.nav-dropdown.open .dropdown-toggle .caret { transform: rotate(180deg); }

/* Dropdown menu */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 60;
  transform: translateX(-50%) translateY(8px) scale(.98);
  transform-origin: top center;
  background: #fff;
  color: var(--ink);
  border-radius: 16px;
  min-width: 320px;
  padding: 10px;
  box-shadow: 0 24px 60px rgba(6, 32, 18, .28);
  border: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown.open .dropdown-menu,
.dropdown-menu:focus-within {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0) scale(1);
}
.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 11px;
  color: var(--ink);
  transition: background .14s ease;
}
.dropdown-item:hover { background: var(--green-50); }
.dropdown-item.active { background: var(--green-50); box-shadow: inset 0 0 0 1px var(--green-500); }
.dropdown-item:hover .di-icon { transform: scale(1.06); }
.dropdown-item .di-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: #fff;
  box-shadow: 0 3px 8px rgba(18,100,58,.3);
  transition: transform .14s ease;
}
.dropdown-item .di-text { display: flex; flex-direction: column; gap: 2px; }
.dropdown-item .di-title { font-weight: 650; font-size: .94rem; }
.dropdown-item .di-desc { font-size: .8rem; color: var(--muted); line-height: 1.4; }

/* Search button + slide-down panel */
.nav-search-btn {
  width: 40px;
  height: 40px;
  margin-left: 8px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.3);
  background: rgba(255,255,255,.1);
  color: #fff;
  font-size: .95rem;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}
.nav-search-btn:hover { background: rgba(255,255,255,.22); border-color: var(--gold); transform: translateY(-1px); }
.search-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--green-800);
  border-top: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 40px rgba(6,32,18,.4);
  padding: 14px 0;
  z-index: 40;
}
.search-panel-inner { display: flex; gap: 10px; align-items: center; }
.search-panel input[type="text"] {
  flex: 1;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: #fff;
  font-family: inherit;
  font-size: .95rem;
}
.search-panel input[type="text"]::placeholder { color: rgba(255,255,255,.6); }
.search-panel input[type="text"]:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.18); }
.search-panel button[type="submit"] {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  background: var(--gold);
  color: var(--green-950);
  font-weight: 700;
  font-family: inherit;
  font-size: .9rem;
  cursor: pointer;
}
.search-panel button[type="submit"]:hover { filter: brightness(1.06); }
.search-panel-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.8);
  font-size: 1rem;
  cursor: pointer;
  padding: 10px;
}
.search-panel-close:hover { color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,.35);
  color: #fff;
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 1.1rem;
  cursor: pointer;
  margin-left: auto;
}

/* Update-available banner */
.update-banner {
  background: linear-gradient(90deg, var(--gold-500), #f0c154);
  color: var(--green-950);
  font-size: .88rem;
  border-bottom: 1px solid rgba(6,32,18,.15);
}
.update-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 9px;
  padding-bottom: 9px;
}
.update-banner-actions { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.ub-btn {
  background: var(--green-900);
  color: #fff;
  font-weight: 700;
  font-size: .8rem;
  padding: 6px 14px;
  border-radius: 999px;
}
.ub-btn:hover { background: var(--green-800); color: #fff; }
.ub-link { color: var(--green-900); font-weight: 600; text-decoration: underline; }


/* ---------------- Hero ---------------- */
.hero {
  background:
    radial-gradient(1000px 420px at 80% -10%, rgba(224,174,60,.22), transparent 60%),
    linear-gradient(135deg, var(--green-900), var(--green-700) 60%, var(--green-600));
  color: #fff;
  padding: 58px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: #ffe7a8;
  border: 1px solid rgba(255,231,168,.4);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 800;
  max-width: 800px;
  letter-spacing: -.5px;
}
.hero h1 .accent { color: var(--gold-500); }
.hero p.lead {
  color: rgba(255,255,255,.88);
  font-size: 1.06rem;
  max-width: 640px;
  margin: 10px 0 26px;
}
.search-box {
  display: flex;
  gap: 8px;
  background: #fff;
  border-radius: 12px;
  padding: 7px;
  box-shadow: var(--shadow-lg);
  max-width: 680px;
}
.search-box input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  padding: 10px 12px;
  color: var(--ink);
  background: transparent;
  min-width: 0;
}
.search-box button {
  border: none;
  background: var(--gold-500);
  color: var(--green-900);
  font-weight: 700;
  font-size: .95rem;
  padding: 0 22px;
  border-radius: 9px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s;
}
.search-box button:hover { background: #f0c154; }

/* ---------------- Stats ---------------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin-top: -58px;
  position: relative;
  z-index: 3;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  border-top: 4px solid var(--green-500);
}
.stat-card .label { font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 600; }
.stat-card .value { font-size: 1.55rem; font-weight: 800; color: var(--green-800); margin-top: 4px; letter-spacing: -.4px; }
.stat-card .sub { font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* ---------------- Section ---------------- */
.section { padding: 46px 0; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: 1.5rem; font-weight: 800; }
.section-head .lead { color: var(--muted); max-width: 640px; }

/* ---------------- Cards ---------------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card-pad { padding: 22px; }

.entity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.entity-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  display: block;
  transition: transform .12s, box-shadow .12s;
}
.entity-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); text-decoration: none; }
.entity-card h3 { font-size: 1.02rem; margin-bottom: 8px; color: var(--green-700); }
.entity-card h3 a { color: inherit; }
.entity-card .meta { color: var(--muted); font-size: .86rem; }
.entity-card .figures {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.entity-card .figures .f .v { font-weight: 800; color: var(--ink); font-size: .98rem; }
.entity-card .figures .f .k { font-size: .74rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }

/* ---------------- Tables ---------------- */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
table.data thead th {
  text-align: left;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--muted);
  font-weight: 700;
  padding: 12px 14px;
  border-bottom: 2px solid var(--line);
  background: #fbfdfb;
  white-space: nowrap;
}
table.data tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data tbody tr:hover td { background: var(--green-50); }
table.data tbody tr:last-child td { border-bottom: none; }
.amt { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.amt.pos { color: var(--green-700); }
.td-title { font-weight: 600; color: var(--ink); }
.td-title a { color: inherit; }
.td-title a:hover { color: var(--green-600); }

/* ---------------- Badges ---------------- */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .3px;
  white-space: nowrap;
}
.badge-active, .badge-completed, .badge-success { background: #dcf3e4; color: #116b38; }
.badge-info, .badge-on-going, .badge-ongoing { background: #e0ecf9; color: #1f5ea8; }
.badge-warn, .badge-for-procurement { background: #fdf0d4; color: #97660f; }
.badge-danger, .badge-terminated { background: #fbe3e0; color: #a52b1f; }
.badge-muted, .badge-unknown, .badge-not-yet-started { background: #eceff0; color: #5b6662; }

/* ---------------- Filters ---------------- */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.filters-bar select, .filters-bar input, .filters-bar .btn {
  font-family: inherit;
  font-size: .88rem;
}
select, input[type="text"], input[type="number"], input[type="search"], input[type="date"] {
  font-family: inherit;
  font-size: .92rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px 12px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
select:focus, input:focus { border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(30,143,83,.14); }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--green-600);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 9px 16px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  font-size: .9rem;
  text-decoration: none;
  transition: background .15s;
}
.btn:hover { background: var(--green-700); color: #fff; }
.btn-gold { background: var(--gold-500); color: var(--green-900); }
.btn-gold:hover { background: #f0c154; color: var(--green-900); }
.btn-outline { background: #fff; color: var(--green-700); border: 1px solid var(--line); }
.btn-outline:hover { background: var(--green-50); color: var(--green-800); }
.btn-sm { padding: 6px 11px; font-size: .82rem; border-radius: 8px; }
.btn-danger { background: var(--danger); }

/* ---------------- Result meta ---------------- */
.result-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: .9rem;
  color: var(--muted);
  margin-bottom: 14px;
}
.result-meta strong { color: var(--ink); }

/* ---------------- Pagination ---------------- */
.pagination { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 26px 0; flex-wrap: wrap; }
.page-link {
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: .88rem;
  font-weight: 600;
}
.page-link.active { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.page-link.disabled { opacity: .45; pointer-events: none; }
.page-link:not(.disabled):not(.active):hover { background: var(--green-50); border-color: var(--green-500); }
.page-gap { color: var(--muted); padding: 8px 4px; }

/* ---------------- Detail page ---------------- */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 22px;
}
@media (max-width: 920px) { .detail-grid { grid-template-columns: 1fr; } }
.kv-list { display: grid; gap: 0; }
.kv-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .92rem;
}
.kv-row .k { color: var(--muted); font-weight: 600; }
.kv-row .v { color: var(--ink); word-break: break-word; }
@media (max-width: 600px) { .kv-row { grid-template-columns: 1fr; gap: 2px; } }

/* ---------------- Charts (pure CSS) ---------------- */
.bar-chart { display: flex; flex-direction: column; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 110px; gap: 12px; align-items: center; font-size: .86rem; }
.bar-row .lbl { color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { background: #edf2ee; border-radius: 6px; height: 18px; overflow: hidden; }
.bar-fill {
  background: linear-gradient(90deg, var(--green-600), var(--green-500));
  height: 100%;
  border-radius: 6px;
  min-width: 2px;
  transition: width .5s ease;
}
.bar-row .val { text-align: right; color: var(--ink); font-weight: 700; white-space: nowrap; }

/* ---------------- Footer ---------------- */
.site-footer {
  background: var(--green-900);
  color: rgba(255,255,255,.78);
  padding: 46px 0 26px;
  margin-top: 40px;
}
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: 1px; }
.site-footer a { color: rgba(255,255,255,.78); }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 26px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 18px;
  font-size: .82rem;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.footer-source-logos { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.footer-source-logos span {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: .76rem;
  font-weight: 600;
  letter-spacing: .4px;
}

/* ---------------- Misc ---------------- */
.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.source-chip:hover { border-color: var(--green-500); color: var(--green-700); }
.chip-dot { width: 9px; height: 9px; border-radius: 50%; }
.alert {
  border-radius: 12px;
  padding: 14px 18px;
  font-size: .92rem;
  margin-bottom: 16px;
}
.alert-info { background: #e8f1fb; border: 1px solid #c9dcf2; color: #1f4e86; }
.alert-warn { background: #fdf6e3; border: 1px solid #f0e0b2; color: #7a5c12; }
.alert-danger { background: #fdeeea; border: 1px solid #f3cfc6; color: #8e2c1e; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); }
.empty-state .big { font-size: 2.4rem; margin-bottom: 8px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3 { grid-template-columns: 1fr; } }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.3rem; margin-top: 26px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.stat-pill {
  display: flex;
  gap: 8px;
  align-items: baseline;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 14px 18px;
}
.stat-pill .n { font-size: 1.2rem; font-weight: 800; color: var(--green-700); }
.stat-pill .l { color: var(--muted); font-size: .85rem; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-600); }
.breadcrumb .sep { margin: 0 7px; opacity: .5; }

/* Mobile nav */
@media (max-width: 980px) {
  .topbar-inner { justify-content: center; height: 28px; }
  .topbar-links { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--green-900);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 18px;
    border-top: 1px solid rgba(255,255,255,.14);
    box-shadow: 0 20px 40px rgba(6,32,18,.4);
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    margin-left: 0;
  }
  .main-nav.open { display: flex; }
  .nav-link, .dropdown-toggle {
    padding: 13px 14px;
    border-radius: 8px;
    width: 100%;
    justify-content: space-between;
    font-size: .95rem;
  }
  .nav-dropdown { width: 100%; }
  .dropdown-toggle .caret { transition: transform .2s ease; }
  .nav-dropdown.open .dropdown-toggle .caret { transform: rotate(180deg); }
  .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    display: none;
    margin: 6px 0 6px 10px;
    min-width: 0;
    background: rgba(255,255,255,.06);
    border: none;
    box-shadow: none;
  }
  .nav-dropdown.open .dropdown-menu { display: block; }
  .dropdown-item { color: rgba(255,255,255,.92); padding: 9px 12px; }
  .dropdown-item:hover, .dropdown-item.active { background: rgba(255,255,255,.1); box-shadow: none; }
  .dropdown-item .di-icon { width: 30px; height: 30px; font-size: .9rem; }
  .dropdown-item .di-title { font-size: .9rem; }
  .dropdown-item .di-desc { font-size: .76rem; color: rgba(255,255,255,.6); }
  .nav-search-btn { margin: 10px 14px 0; width: 100%; height: 44px; font-size: .95rem; border-radius: 8px; }
  .search-panel-inner { flex-wrap: wrap; }
  .search-panel input[type="text"] { flex: 1 1 100%; }
  .search-panel button[type="submit"] { flex: 1; }
  .search-box { flex-direction: column; }
  .search-box button { padding: 12px; }
}

/* Print */
@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
}
