/* ==========================================================================
   AGIS — Abuja Geographic Information Systems
   Design system: "Cadastral" — survey lines, coordinates, plot boundaries
   ========================================================================== */
.hed{
margin-top:10px;
text-align:center;
margin-bottom:-10px;
}
.btn-group {
  display: flex;
  gap: 10px; /* adjust spacing as needed */
}
td .btn-group {
  display: flex;
  gap: 8px; /* controls spacing between buttons */
}

.mandates {
  display: grid;
  grid-template-columns: 1fr 1fr; /* two equal columns */
  gap: 8px 24px; /* row gap and column gap */
  list-style-type: disc;
  padding-left: 20px;
}
.colmn {
display: grid;
  grid-template-columns:1fr; /*column */
  gap: 2px 5px; /* row gap and column gap */
  list-style-type: disc;
  padding-left: 50px;
margin-bottom:8px;
}
:root {
  --ink: #16211b;
  --ink-soft: #3d4a43;
  --paper: #fbfbf8;
  --panel: #f1f3ec;
  --moss: #e7efe8;
  --line: #d6ddd4;
  --forest: #0b5d3b;
  --forest-deep: #0d7248;
  --gold: #c2922e;
  --gold-soft: #f3e8cf;
  --survey: #1f6f66;
  --clay: #b4502a;
  --clay-soft: #f6e6dd;
  --white: #ffffff;

  --font-display: "Plus Jakarta Sans", "Arial", sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --radius: 10px;
  --shadow: 0 10px 30px rgba(22, 33, 27, 0.08);
  --maxw: 1300px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 120px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--forest); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.gov-strip .container,
.header-brand .container,
.header-nav-bar .container,
.page-banner .container { padding-left: 48px; padding-right: 48px; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}
h1 { font-size: clamp(2.1rem, 4.8vw, 3.5rem); letter-spacing: -0.03em; line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); letter-spacing: -0.025em; line-height: 1.1; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.012em; line-height: 1.3; }
h4 { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.005em; line-height: 1.4; }
.lede { font-size: 1.1rem; color: var(--ink-soft); max-width: 62ch; line-height: 1.72; }

/* Coordinate eyebrow — the signature label device */
.coord {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--survey);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.coord::before {
  content: "";
  width: 14px; height: 14px;
  border: 1.5px solid var(--survey);
  border-radius: 50%;
  background:
    linear-gradient(var(--survey), var(--survey)) center/8px 1.5px no-repeat,
    linear-gradient(var(--survey), var(--survey)) center/1.5px 8px no-repeat;
  flex: none;
}
.mono { font-family: var(--font-mono); }

/* --------------------------------------------------------------------------
   Government strip + header
   -------------------------------------------------------------------------- */
.gov-strip {
  background: var(--forest-deep);
  color: #cfe3d6;
  font-size: 0.78rem;
  padding: 7px 0;
}
.gov-strip .container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.gov-strip a { color: var(--gold-soft); }
.gov-strip .mono { letter-spacing: 0.08em; }

.site-header {
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
.header-brand {
  border-bottom: 1px solid var(--line);
}
.header-brand .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px; gap: 20px;
}
.header-nav-bar {
  background: var(--forest-deep);
  border-bottom: 2px solid #053a1e;
}
.header-nav-bar .container {
  padding-top: 0; padding-bottom: 0;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none !important; }
.brand-mark {
  width: 50px; height: 50px; flex: none;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  display: grid; place-items: center;
  border: 1px solid var(--line);
}
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { line-height: 1.15; }
.brand-text strong {
  font-family: var(--font-display); font-weight: 800; font-size: 1.32rem;
  color: var(--ink); display: block; letter-spacing: -0.01em;
}
.brand-split{
  display:flex;
  justify-content:space-between;
  align-items:center;
  width:100%;
  gap:20px;
}
.brand-govt .brand-text{
  text-align:left;
}


.brand-text span { font-size: 0.7rem; color: var(--ink-soft); letter-spacing: 0.05em; text-transform: uppercase; }
.brand-dual { display: flex; align-items: center; gap: 20px; }
.brand-govt { display: flex; align-items: center; gap: 12px;text-align:right;}
.coat-of-arms { width: 65px; height: 50px; flex: none; }
.coat-of-arms img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-sep { width: 1px; height: 44px; background: var(--line); flex: none; }
@media (max-width: 860px) {
  .brand-sep { display: none !important; }
  .brand-split { justify-content: space-between; gap: 10px; }
  .brand-govt { display: flex !important; gap: 8px; }
  .coat-of-arms { width: 44px; height: 36px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-text span { font-size: 0.62rem; }
}
/* On small phones hide both brand subtitles, keep logo marks and names only */
@media (max-width: 480px) {
  .brand-text span { display: none; }
  .coat-of-arms { width: 40px; height: 32px; }
}

.main-nav { display: flex; align-items: center; gap: 2px; padding: 4px 0; }
.main-nav a {
  font-size: 0.92rem; font-weight: 600; color: #b8d0c0;
  padding: 9px 13px; border-radius: 7px;
}
.main-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; text-decoration: none; }
.main-nav a.active { color: #fff; background: rgba(255,255,255,0.16); }
.main-nav a.nav-cta {
  background: var(--gold); color: var(--ink); margin-left: auto;
}
.main-nav a.nav-cta:hover { background: #d4a440; color: var(--ink); }

.nav-toggle {
  display: none; background: none; border: 1.5px solid var(--line);
  border-radius: 8px; padding: 9px 12px; font-family: var(--font-mono);
  font-size: 0.8rem; cursor: pointer; color: var(--ink);
}

@media (max-width: 1060px) {
  .nav-toggle { display: block; }
  .header-nav-bar {
    position: absolute; top: 100%; left: 0; right: 0; z-index: 49;
    box-shadow: var(--shadow);
  }
  .main-nav {
    display: none;
    flex-direction: column; align-items: stretch;
    padding: 8px 24px 16px; gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; color: #b8d0c0; }
  .main-nav a.active { color: #fff; background: rgba(255,255,255,0.16); }
  .main-nav a.nav-cta { margin-left: 0; text-align: center; }
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: #1a6e47;
  color: #eef5ef;
  overflow: hidden;
}
.hero .contours {
  position: absolute; inset: 0; opacity: 0.5; pointer-events: none;
}
.hero .container {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px;
  padding-top: 40px; padding-bottom: 40px; align-items: center;
}
.hero h1 { color: #fff; }
.hero .coord { color: var(--gold); }
.hero .coord::before { border-color: var(--gold); background:
  linear-gradient(var(--gold), var(--gold)) center/8px 1.5px no-repeat,
  linear-gradient(var(--gold), var(--gold)) center/1.5px 8px no-repeat; }
.hero p.lede { color: #c8d8cc; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.hero-map-card {
  background: rgba(255,255,255,0.18);
  border: none;
  padding: 12px;
  border-radius: 10px;
  backdrop-filter: blur(4px);
}
.hero-map-card img {
  mix-blend-mode: multiply;
  border-radius: 8px;
  opacity: 0.85;
  border: 2px solid rgba(255,255,255,0.55);
  box-shadow: 0 4px 18px rgba(0,0,0,0.45), 0 1px 0 rgba(255,255,255,0.15) inset;
}
.hero-map-card .caption {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em;
  color: #a8c4b0; margin-top: 12px; display: flex; justify-content: space-between; 
}
@media (max-width: 880px) {
  .hero .container { grid-template-columns: 1fr; padding-top: 52px; padding-bottom: 52px; }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 9px; border: none; cursor: pointer;
  text-decoration: none !important; transition: transform 0.12s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary:hover { background: #d4a440; }
.btn-forest { background: var(--forest); color: #fff; }
.btn-forest:hover { background: var(--forest-deep); }
.btn-ghost { background: transparent; color: #eef5ef; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost:hover { border-color: #fff; }
.btn-outline { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn-outline:hover { background: var(--moss); }
.btn-sm { padding: 9px 16px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* --------------------------------------------------------------------------
   Sections + plot cards (dashed plot-boundary device)
   -------------------------------------------------------------------------- */
.section { padding: 76px 0; }
.page-banner + .section { padding-top: 40px; }
.mgmt-tab-bar + .section { padding-top: 32px; }
.section.tint { background: var(--panel); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head > p { }

.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.plot-card {
  position: relative;
  background: var(--white);
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.plot-card:hover { border-color: var(--survey); box-shadow: var(--shadow); }
/* survey beacons in corners */
.plot-card::before, .plot-card::after {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: var(--survey);
}
.plot-card::before { top: -4px; left: -4px; }
.plot-card::after { bottom: -4px; right: -4px; }
.plot-card .coord { margin-bottom: 10px; }
.plot-card h3 { margin-bottom: 10px; }
.plot-card p { color: var(--ink-soft); font-size: 0.95rem; }
.plot-card .card-link { display: inline-block; margin-top: 14px; font-weight: 700; font-size: 0.9rem; }

.icon-chip {
  width: 44px; height: 44px; border-radius: 9px; background: var(--moss);
  display: grid; place-items: center; margin-bottom: 16px; color: var(--forest);
}

/* Stats band */
.stats-band { background: var(--forest); color: #fff; padding: 40px 0; }
.stats-band .grid-4 { gap: 12px; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; letter-spacing: -0.03em; color: var(--gold-soft); }
.stat .lbl { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #bcd6c4; }

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: 0.86rem; margin-bottom: 7px; }
.field .hint { font-size: 0.78rem; color: var(--ink-soft); margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], select, textarea {
  width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: 0.95rem;
  border: 1.5px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink);
}
input:focus, select:focus, textarea:focus { border-color: var(--survey); }
textarea { resize: vertical; min-height: 120px; }
.field input.mono-input { font-family: var(--font-mono); letter-spacing: 0.05em; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

.notice {
  border-radius: 9px; padding: 14px 16px; font-size: 0.9rem; margin: 16px 0;
  border: 1px solid;
}
.notice-info { background: var(--moss); border-color: #c4d8c9; color: var(--forest-deep); }
.notice-warn { background: var(--gold-soft); border-color: #e3cd9a; color: #6d5117; }
.notice-error { background: var(--clay-soft); border-color: #e4bda7; color: var(--clay); }
.notice-success { background: var(--moss); border-color: var(--forest); color: var(--forest-deep); }

/* --------------------------------------------------------------------------
   Tables (document centre, payment history)
   -------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 640px; }
table.data th {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  text-align: left; color: var(--ink-soft); background: var(--panel);
  padding: 12px 16px; border-bottom: 1.5px solid var(--line);
}
table.data td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data tr:hover td { background: #f7f9f5; }
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.08em; text-transform: uppercase; padding: 3px 9px;
  border-radius: 99px; border: 1px solid;
}
.tag-green { color: var(--forest); border-color: var(--forest); background: var(--moss); }
.tag-gold { color: #8a661a; border-color: var(--gold); background: var(--gold-soft); }
.tag-clay { color: var(--clay); border-color: var(--clay); background: var(--clay-soft); }

/* --------------------------------------------------------------------------
   Portal
   -------------------------------------------------------------------------- */
.portal-shell { display: grid; grid-template-columns: 230px 1fr; gap: 30px; align-items: start; }
@media (max-width: 880px) { .portal-shell { grid-template-columns: 1fr; } }
.portal-side {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; position: sticky; top: 128px;
}
.portal-side button {
  display: block; width: 100%; text-align: left; background: none; border: none;
  font-family: var(--font-body); font-weight: 600; font-size: 0.92rem; color: var(--ink-soft);
  padding: 11px 13px; border-radius: 7px; cursor: pointer;
}
.portal-side button:hover { background: var(--moss); }
.portal-side button.active { background: var(--forest); color: #fff; }
.portal-pane { display: none; }
.portal-pane.active { display: block; }

.dash-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
@media (max-width: 760px) { .dash-cards { grid-template-columns: 1fr; } }
.dash-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.dash-card .lbl { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-soft); }
.dash-card .val { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; letter-spacing: -0.025em; margin-top: 6px; }
.dash-card .val.overdue { color: var(--clay); }
.dash-card .val.ok { color: var(--forest); }

.receipt {
  background: #fff; border: 1.5px solid var(--ink); border-radius: 4px;
  padding: 28px; font-family: var(--font-mono); font-size: 0.85rem; max-width: 560px;
}
.receipt h3 { font-family: var(--font-display); margin-bottom: 4px; }
.receipt .row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.receipt .row:last-of-type { border-bottom: none; }
.receipt .total { font-weight: 700; font-size: 1rem; border-top: 1.5px solid var(--ink); margin-top: 8px; padding-top: 10px; }

.auth-box {
  max-width: 440px; margin: 0 auto; background: #fff; border: 1.5px dashed var(--line);
  border-radius: 12px; padding: 34px 30px; position: relative;
}
.auth-box::before, .auth-box::after {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--survey);
}
.auth-box::before { top: -4px; left: -4px; }
.auth-box::after { bottom: -4px; right: -4px; }
.auth-tabs { display: flex; gap: 6px; margin-bottom: 22px; background: var(--panel); padding: 5px; border-radius: 9px; }
.auth-tabs button {
  flex: 1; border: none; background: none; padding: 9px; border-radius: 7px;
  font-weight: 700; font-size: 0.88rem; cursor: pointer; color: var(--ink-soft);
}
.auth-tabs button.active { background: #fff; color: var(--forest-deep); box-shadow: 0 1px 4px rgba(0,0,0,0.08); }

/* --------------------------------------------------------------------------
   News gallery
   -------------------------------------------------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .news-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .news-grid { grid-template-columns: 1fr; } }
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-card .thumb { aspect-ratio: 16/10; background: var(--moss); object-fit: cover; width: 100%; }
.news-card .body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.news-card .date { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; color: var(--survey); text-transform: uppercase; }
.news-card h3 { font-size: 1.02rem; line-height: 1.35; }
.news-card h3 a { color: var(--ink); }
.news-card .excerpt { font-size: 0.88rem; color: var(--ink-soft); flex: 1; }
.news-skeleton { height: 300px; border-radius: var(--radius); background: linear-gradient(100deg, var(--panel) 40%, #fff 50%, var(--panel) 60%); background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* --------------------------------------------------------------------------
   Contact centre
   -------------------------------------------------------------------------- */
.contact-line {
  display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px dashed var(--line);
}
.contact-line:last-child { border-bottom: none; }
.contact-line .icon-chip { margin-bottom: 0; flex: none; }
.contact-line strong { display: block; }
.contact-line .mono { font-size: 0.92rem; color: var(--forest-deep); }

details.faq {
  background: #fff; border: 1px solid var(--line); border-radius: 9px; margin-bottom: 10px;
}
details.faq summary {
  cursor: pointer; font-weight: 700; padding: 16px 18px; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
details.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--survey); font-size: 1.1rem; }
details.faq[open] summary::after { content: "–"; }
details.faq .ans { padding: 0 18px 18px; color: var(--ink-soft); font-size: 0.93rem; }

/* --------------------------------------------------------------------------
   Timeline (about page)
   -------------------------------------------------------------------------- */
.timeline { border-left: 1.5px dashed var(--survey); margin-left: 8px; padding-left: 28px; }
.timeline .tl-item { position: relative; padding-bottom: 30px; }
.timeline .tl-item::before {
  content: ""; position: absolute; left: -34px; top: 5px; width: 11px; height: 11px;
  border-radius: 50%; background: var(--gold); border: 2px solid var(--paper);
  box-shadow: 0 0 0 1.5px var(--survey);
}
.timeline .yr { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--survey); }
.timeline h3 { margin: 4px 0 6px; }
.timeline p { color: var(--ink-soft); font-size: 0.94rem; max-width: 60ch; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #aebbb2; padding: 18px 0 10px; margin-top: 0; }
.site-footer h4 { color: #fff; font-family: var(--font-display); font-size: 0.88rem; margin-bottom: 6px; }
.site-footer a { color: #aebbb2; font-size: 0.82rem; }
.site-footer a:hover { color: var(--gold); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 16px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 4px; }
.footer-base {
  border-top: 1px solid #2c3a31; margin-top: 14px; padding-top: 10px;
  display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-size: 0.75rem;
}
.footer-base .mono { letter-spacing: 0.08em; }

/* --------------------------------------------------------------------------
   Minister's Service Charter
   -------------------------------------------------------------------------- */
.minister-charter {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 52px;
  align-items: start;
}
@media (max-width: 820px) { .minister-charter { grid-template-columns: 1fr; gap: 32px; } }

.minister-portrait { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.minister-img-wrap {
  width: 200px; height: 240px; flex: none;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--moss);
}
.minister-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.minister-img-wrap svg { width: 100%; height: 100%; display: block; }
.minister-id { text-align: center; }
.minister-id strong { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1rem; color: var(--ink); margin: 6px 0 4px; white-space: nowrap; }
.minister-id span { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.4; display: block; }

.charter-list { list-style: none; margin: 22px 0 0; display: flex; flex-direction: column; gap: 16px; }
.charter-list li { display: flex; gap: 16px; align-items: flex-start; }
.charter-num {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700;
  color: var(--gold); flex: none; margin-top: 2px; letter-spacing: 0.05em;
}
.charter-list strong { color: var(--ink); }
.charter-list div { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.6; }

/* --------------------------------------------------------------------------
   Management page
   -------------------------------------------------------------------------- */
/* Directors — featured row above the main grid: larger, centered cards */
.mgmt-grid-directors { display: grid; grid-template-columns: repeat(auto-fit, 300px); justify-content: center; gap: 16px; margin-bottom: 16px; }
@media (max-width: 700px) { .mgmt-grid-directors { grid-template-columns: minmax(0, 340px); } }
.mgmt-grid-directors .mgmt-portrait { height: 250px; }
.mgmt-grid-directors .mgmt-person { font-size: 1.08rem; }
.mgmt-grid-directors .mgmt-name { font-size: 0.92rem; }
.mgmt-grid-directors .mgmt-title { font-size: 0.68rem; }
.mgmt-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1100px) { .mgmt-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 960px) { .mgmt-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .mgmt-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .mgmt-grid { grid-template-columns: 1fr; } }
.mgmt-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 0;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 8px rgba(22,33,27,0.04);
  overflow: hidden;
}
.mgmt-card > div:not(.mgmt-portrait) { padding: 14px 16px; }
.mgmt-portrait { width: 100%; height: 170px; border-radius: 0; overflow: hidden;  background: var(--moss); border: none; border-bottom: 1px solid var(--line); }
.mgmt-portrait img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mgmt-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--forest); color: #fff; flex: none;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 800; letter-spacing: 0;
}
.mgmt-avatar.gold { background: var(--gold); color: var(--ink); }
.mgmt-person { text-align: center; font-size: 0.95rem; font-weight: 800; color: var(--forest); line-height: 1.3; margin-bottom: 2px; }
.mgmt-name { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; color: var(--ink); line-height: 1.3; }
.mgmt-title { text-align: center; font-size: 0.6rem; color: var(--forest); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; display: block; }
.mgmt-bio { text-align: center; font-size: 0.67rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.55; }
.orgchart-wrap { border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; background: var(--white); overflow-x: auto; margin-bottom: 40px; }
.orgchart-wrap svg { width: 100%; height: auto; display: block; margin: 0 auto; }
.orgchart-lg svg { width: 900px; height: auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Page banner for inner pages */
.page-banner {
  background: #1e7a50; color: #fff; padding: 10px 0; position: relative; overflow: hidden;
}
.page-banner .coord { color: var(--gold); }
.page-banner .coord::before { border-color: var(--gold); background:
  linear-gradient(var(--gold), var(--gold)) center/8px 1.5px no-repeat,
  linear-gradient(var(--gold), var(--gold)) center/1.5px 8px no-repeat; }
.page-banner h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-banner p { color: #c8d8cc; max-width: 80ch; margin-top: 10px; }
.page-banner .contours { position: absolute; inset: 0; opacity: 0.4; pointer-events: none; }
.page-banner .container { position: relative; }

/* --------------------------------------------------------------------------
   City Showcase + Quick Links
   -------------------------------------------------------------------------- */
.city-showcase {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 920px) { .city-showcase { grid-template-columns: 1fr; } }

.city-slider-wrap { position: relative; }
.city-slider {
  display: grid;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  width: 100%;
  box-shadow: 0 12px 36px rgba(22, 33, 27, 0.14);
}


.city-slide {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
  z-index: 0;
}
.city-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }
.city-slide svg { width: 100%; height: 100%; display: block; }

.city-slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 16px;
}
.city-arrow {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.95rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.city-arrow:hover { background: var(--moss); border-color: var(--survey); }
.city-arrow:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.city-dots { display: flex; gap: 8px; align-items: center; }
.city-dot {
  width: 9px; height: 9px;
  border-radius: 50%; padding: 0;
  background: var(--line);
  border: none;
  cursor: pointer;
  transition: background 2s ease, transform 2s ease;
}
.city-dot.active { background: var(--forest); transform: scale(1.35); }
.city-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Quick Links sidebar */
.quick-links-bar {
  background: var(--forest);
  border-radius: var(--radius);
  padding: 26px 22px;
  position: sticky;
  top: 120px;
}
.quick-links-bar .coord { color: var(--gold); }
.quick-links-bar h3 { color: #fff; margin: 8px 0 18px; font-size: 1.1rem; }
.ql-list { display: flex; flex-direction: column; gap: 10px; }
.ql-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 9px;
  padding: 14px 16px;
  color: #fff;
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.ql-item:hover { background: rgba(255, 255, 255, 0.17); border-color: rgba(255,255,255,0.28); color: #fff; }
.ql-icon {
  width: 40px; height: 40px; flex: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  display: grid; place-items: center;
}
.ql-item > div { flex: 1; }
.ql-item strong { display: block; font-size: 0.88rem; color: #fff; }
.ql-item span { font-size: 0.76rem; color: #a8c4b0; margin-top: 2px; display: block; }
.ql-arrow { flex: none; opacity: 0.55; transition: opacity 0.15s ease; }
.ql-item:hover .ql-arrow { opacity: 1; }

/* --------------------------------------------------------------------------
   Publications
   -------------------------------------------------------------------------- */
.upload-zone {
  border: 2px dashed var(--line);
  border-radius: var(--radius);
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  background: #fff;
  transition: border-color 0.15s ease, background 0.15s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--survey);
  background: var(--moss);
}
.upload-zone.has-file { border-color: var(--forest); background: #f4faf5; }

.pub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 960px) { .pub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pub-grid { grid-template-columns: 1fr; } }

.pub-card { display: flex; flex-direction: column; }
.pub-icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--moss); display: grid; place-items: center;
  margin-bottom: 16px; color: var(--forest); flex: none;
}
.pub-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.pub-date { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--ink-soft); text-transform: uppercase; }
.pub-title { margin-bottom: 8px; }
.pub-desc {
  font-size: 0.88rem; color: var(--ink-soft); flex: 1;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pub-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 16px; gap: 10px; flex-wrap: wrap; }
.pub-size { font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.06em; }
.pub-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.pub-del { color: var(--clay) !important; border-color: var(--clay) !important; }
.pub-del:hover { background: var(--clay-soft) !important; }

.pdf-viewer {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: 36px;
}
.pdf-viewer-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  background: var(--panel); gap: 16px;
}
.pdf-viewer-footer { padding: 10px 18px; border-top: 1px solid var(--line); background: var(--panel); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
#pdfFrame {
  width: 100%; height: 72vh; min-height: 520px;
  border: none; display: block;
}

/* --------------------------------------------------------------------------
   Hero Slider
   -------------------------------------------------------------------------- */
.hero-slider {
  display: grid;
  position: relative;
  overflow: hidden;
}
.hero-slide {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.65s ease;
  z-index: 0;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.slider-arrow:hover { background: rgba(0, 0, 0, 0.5); }
.slider-arrow:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-controls {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  align-items: center;
  z-index: 20;
}
.slider-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  border: none;
  cursor: pointer;
  transition: background .9 ease, transform .9 ease;
}
.slider-dot.active { background: var(--gold); transform: scale(1.35); }
.slider-dot:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 640px) { .slider-arrow { display: none; } }

/* --------------------------------------------------------------------------
   Mobile overrides
   -------------------------------------------------------------------------- */

/* Tighter vertical rhythm on small screens */
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 28px; }
  .page-banner { padding: 12px 0; }
  .container { padding: 0 16px; }
}

/* Hero: hide decorative right-panel cards on phones — text & CTAs are enough */
@media (max-width: 760px) {
  .hero-map-card { display: none; }
  .hero .container { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 52px; }
}
@media (max-width: 480px) {
  .hero .container { padding-top: 36px; padding-bottom: 40px; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* Stats band: stay 2-col on mobile instead of collapsing to 1 */
@media (max-width: 640px) {
  .stats-band .grid-4 { grid-template-columns: 1fr 1fr; gap: 16px; }
}

/* Auth box: reduce padding on narrow screens */
@media (max-width: 480px) {
  .auth-box { padding: 22px 16px; }
}

/* Upload zone: less padding on mobile */
@media (max-width: 640px) {
  .upload-zone { padding: 32px 16px; min-height: 160px; }
}

/* PDF viewer: shorter on mobile */
@media (max-width: 640px) {
  #pdfFrame { height: 55vh; min-height: 300px; }
}

/* Receipt: tighter type and padding on mobile */
@media (max-width: 560px) {
  .receipt { font-size: 0.78rem; padding: 18px 14px; overflow-x: auto; }
}

/* Portal dash cards: 2-col at medium, 1-col at phone */
@media (max-width: 640px) {
  .dash-cards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .dash-cards { grid-template-columns: 1fr; }
}


/* Services 2-col grid inside hero slide — collapses on mobile */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; gap: 12px; } }

/* Reduce header/banner padding on mobile */
@media (max-width: 640px) {
  .gov-strip .container,
  .header-brand .container,
  .header-nav-bar .container,
  .page-banner .container { padding-left: 16px; padding-right: 16px; }
}

/* Tighter grid gaps on phones */
@media (max-width: 640px) {
  .grid { gap: 14px; }
}

/* mandates: 2-col → 1-col on narrow screens */
@media (max-width: 560px) {
  .mandates { grid-template-columns: 1fr; }
}

/* Contact lines: stack icon above text on very small screens */
@media (max-width: 420px) {
  .contact-line { flex-direction: column; gap: 8px; }
}

/* Minister portrait: side-by-side on mobile, smaller images */
@media (max-width: 600px) {
  .minister-portrait { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .minister-img-wrap { width: 130px; height: 160px; }
}

/* Receipt rows: wrap label/value on very narrow screens */
@media (max-width: 380px) {
  .receipt { padding: 14px 10px; font-size: 0.75rem; }
  .receipt .row { flex-wrap: wrap; gap: 4px; }
}

/* Section gaps: tighter at medium breakpoint too */
@media (max-width: 880px) {
  .section { padding: 56px 0; }
}

/* Orgchart: less internal padding on mobile */
@media (max-width: 640px) {
  .orgchart-wrap { padding: 14px 8px; }
}

/* Quick-links bar: un-stick on small screens where sidebar stacks below hero */
@media (max-width: 920px) {
  .quick-links-bar { position: static; }
}

/* Portal sidebar: un-stick when it stacks vertically on narrow screens */
@media (max-width: 880px) {
  .portal-side { position: static; }
}

@media print {
  .gov-strip, .site-header, .site-footer, .portal-side, .no-print { display: none !important; }
  .receipt { border: 1.5px solid #000; }
  #pdfViewer { display: none !important; }
}

/* ── HTML Organogram ──────────────────────────────────────────────────────── */
.oc { display: inline-flex; flex-direction: column; align-items: center;
      font-family: var(--font-body); white-space: nowrap; padding: 0 20px; }
.oc-row { display: flex; justify-content: center; align-items: flex-start; }
.oc-item {
  position: relative;
  padding: 20px 5px 0;
  display: flex; flex-direction: column; align-items: center;
}
/* Horizontal bar spanning siblings */
.oc-item::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  border-top: 2px solid #bbb;
}
.oc-item:first-child::before { left: 50%; }
.oc-item:last-child::before  { right: 50%; }
.oc-item:only-child::before  { display: none; }
/* Vertical stub from horizontal bar to node */
.oc-item::after {
  content: ''; position: absolute; top: 0; left: calc(50% - 1px);
  width: 2px; height: 20px; background: #bbb;
}
.oc-item:only-child::after { display: none; }
/* Plain vertical connector between rows */
.oc-down { width: 2px; height: 20px; background: #bbb; }
/* Node box */
.oc-n {
  display: flex; align-items: center; justify-content: center;
  text-align: center; text-transform: uppercase; white-space: normal;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1.3;
  padding: 7px 9px; border-radius: 2px;
}
/* Node colours */
.oc-green  { background: #1e7a50; color: #fff; }
.oc-gold   { background: #b8860b; color: #fff; }
.oc-blue   { background: #1d4e7a; color: #fff; }
.oc-orange { background: #b83c26; color: #fff; }
.oc-leaf   { background: #2a6e46; color: #fff; }
.oc-dark   { background: #152f4a; color: #fff; }
.oc-slate  { background: #3a5269; color: #fff; }
/* Utility flex column (dept header + children) */
.oc-dc { display: flex; flex-direction: column; align-items: center; }
/* Vertical children list */
.oc-vcol { display: flex; flex-direction: column; gap: 4px; }
/* Unit badge (Lands) */
.oc-unit { display: flex; align-items: center; gap: 5px; }
.oc-unit-badge {
  font-size: 0.52rem; font-weight: 800; letter-spacing: 0.08em;
  background: #1d4e7a; color: #fff; padding: 2px 4px; border-radius: 2px;
  white-space: nowrap; flex: none;
}
