/* =====================================================================
   SED BALOCHISTAN — "The Public Record" design system
   Tokens per project brief §2. Quiet, precise, provenanced.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@500;600;700&family=Public+Sans:wght@400;500;600;700&family=Noto+Nastaliq+Urdu:wght@400;600&display=swap');

:root {
  --ink:    #0F2A3F;
  --ink-70: #3D5468;
  --ink-45: #6E8093;
  --paper:  #FBFAF7;
  --card:   #FFFFFF;
  --ochre:  #C2802B;
  --signal: #1F7A5C;
  --line:   #DCD8CF;
  --alert:  #B4402E;
  --font-display: "Archivo", "Segoe UI", sans-serif;
  --font-body: "Public Sans", "Segoe UI", sans-serif;
  --font-urdu: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", serif;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(15,42,63,.06), 0 8px 24px rgba(15,42,63,.07);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}
body.lang-ur { font-family: var(--font-urdu); line-height: 2.1; }
body.lang-ur h1, body.lang-ur h2, body.lang-ur h3, body.lang-ur h4 { font-family: var(--font-urdu); line-height: 2; }

.wrap { max-width: 1680px; margin: 0 auto; padding: 0 clamp(20px, 2.6vw, 48px); }
img { max-width: 100%; }
a { color: var(--ink); }
a:hover { color: var(--ochre); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.25; letter-spacing: -.01em; }

:focus-visible { outline: 3px solid var(--ochre); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 10px 18px; z-index: 200; }
.skip-link:focus { left: 12px; top: 12px; color: #fff; }

/* ---------- top bar ---------- */
.topbar { background: var(--ink); color: #cfd9e2; font-size: 13px; }
.topbar a { color: #cfd9e2; text-decoration: none; }
.topbar a:hover { color: #fff; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 34px; flex-wrap: wrap; gap: 6px; }
.topbar-contact { display: flex; gap: 18px; }
.topbar-links { display: flex; gap: 16px; align-items: center; }
.topbar-admin { border: 1px solid rgba(255,255,255,.35); border-radius: 3px; padding: 1px 10px; }
.lang-btn { background: var(--ochre); color: #fff; border: 0; border-radius: 3px; padding: 3px 12px; font-size: 13px; cursor: pointer; font-family: inherit; }

/* ---------- header ---------- */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 100; }
.header-in { display: flex; align-items: center; gap: 22px; padding: 12px 20px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand-seal { color: var(--ink); flex-shrink: 0; display: flex; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-family: var(--font-display); font-size: 17px; }
.brand-text small { color: var(--ink-45); font-size: 12.5px; }
.header-search { margin-left: auto; display: flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
[dir="rtl"] .header-search { margin-left: 0; margin-right: auto; }
.header-search input { border: 0; background: transparent; padding: 8px 12px; width: 250px; font-family: inherit; font-size: 14px; color: var(--ink); }
.header-search input:focus { outline: none; }
.header-search button { border: 0; background: transparent; padding: 0 12px; font-size: 18px; color: var(--ink-45); cursor: pointer; }
.nav-toggle { display: none; border: 1px solid var(--line); background: none; font-size: 20px; padding: 4px 12px; border-radius: var(--radius); cursor: pointer; color: var(--ink); }

.site-nav { border-top: 1px solid var(--line); background: var(--card); }
.site-nav > .wrap > ul { display: flex; list-style: none; flex-wrap: wrap; }
.site-nav a { display: block; padding: 10px 12px; text-decoration: none; font-size: 13.5px; font-weight: 500; color: var(--ink-70); border-bottom: 3px solid transparent; white-space: nowrap; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.active { color: var(--ink); border-bottom-color: var(--ochre); }
.site-nav .caret { font-size: 10px; color: var(--ink-45); }

/* dropdown submenus */
.site-nav li.has-sub { position: relative; }
.site-nav .submenu { display: none; position: absolute; top: 100%; inset-inline-start: 0; min-width: 250px; max-height: 68vh; overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--ochre); border-radius: 0 0 6px 6px; box-shadow: 0 12px 30px rgba(15,42,63,.14); list-style: none; z-index: 120; padding: 6px 0; }
.site-nav li.has-sub:hover > .submenu,
.site-nav li.has-sub:focus-within > .submenu { display: block; }
.site-nav .submenu a { padding: 8px 16px; border-bottom: 0; font-size: 13.5px; white-space: normal; }
.site-nav .submenu a:hover { background: #F3EEE2; color: var(--ink); }

.brand-logo { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; }

/* ---------- announcement ---------- */
.announce { background: #F3EEE2; border-bottom: 1px solid var(--line); font-size: 13px; padding: 5px 0; }
.announce .wrap { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.announce-close { margin-inline-start: auto; background: none; border: 0; font-size: 18px; line-height: 1; color: var(--ink-45); cursor: pointer; padding: 2px 6px; }
.announce-close:hover { color: var(--alert); }
.announce-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); flex-shrink: 0; }
.announce a { color: var(--signal); font-weight: 600; }

/* ---------- hero (with background slideshow) ---------- */
.hero { position: relative; overflow: hidden; background: #0F2A3F; border-bottom: 4px solid var(--ochre); padding: 64px 0 70px; color: #fff; }
.hero-inner { max-width: 860px; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide { position: absolute; inset: 0; background-size: cover; background-position: center 35%; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.on { opacity: 1; }
.hero-slides::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13,36,54,.94) 0%, rgba(13,36,54,.78) 55%, rgba(13,36,54,.45) 100%); }
.hero > .wrap { position: relative; z-index: 1; }
.hero-dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; gap: 9px; }
.hero-dots button { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.8); background: transparent; cursor: pointer; padding: 0; }
.hero-dots button.on { background: var(--ochre); border-color: var(--ochre); }
@media (prefers-reduced-motion: reduce) { .hero-slide { transition: none; } }
.hero h1 { color: #fff; }
.hero p.lede { color: #C9D6E0; }
.hero .eyebrow { color: #E9B45C; }
.hero .btn.ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.hero .btn.ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero .stat-band { border: 0; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.hero .district-panel { box-shadow: 0 16px 44px rgba(0,0,0,.3); border: 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: start; }
.eyebrow { display: inline-block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ochre); font-weight: 700; margin-bottom: 12px; font-family: var(--font-display); }
.hero h1 { font-size: clamp(24px, 2.9vw, 36px); margin-bottom: 10px; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.hero p.lede { font-size: 15px; color: var(--ink-70); max-width: 54ch; margin-bottom: 16px; }
.hero .eyebrow { margin-bottom: 8px; }
.hero .btn { padding: 9px 18px; font-size: 14px; }
.hero .stat-band { margin: 18px 0 0; }
.hero .stat-cell { padding: 11px 14px; }
.hero .stat-num { font-size: 22px; }
.hero .stat-label { font-size: 12.5px; }
.hero .stat-src { font-size: 10px; margin-top: 4px; padding-top: 4px; }
.hero .district-panel-head { padding: 10px 14px; }
.hero .district-panel-head input { padding: 6px 10px; }
.hero .district-grid { max-height: 172px; }
.hero .district-tile { padding: 8px 12px; }
.hero .district-detail { padding: 12px 16px; }
.hero .district-detail .dd-stat b { font-size: 17px; }
.hero .district-detail .dd-stats { margin: 8px 0; gap: 20px; }
.hero-dots { bottom: 8px; }
.btn { display: inline-block; background: var(--ink); color: #fff; text-decoration: none; padding: 11px 22px; border-radius: var(--radius); font-weight: 600; font-size: 15px; border: 1px solid var(--ink); cursor: pointer; font-family: inherit; }
.btn:hover { background: #16374f; color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.signal { background: var(--signal); border-color: var(--signal); }
.btn.signal:hover { background: #186349; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- quick action band ---------- */
.quick-band { background: linear-gradient(90deg, #0C2233, #163A56 55%, #0C2233); padding: 12px 0; border-top: 1px solid rgba(255,255,255,.08); }
.quick-band .wrap { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.quick-btn { display: inline-flex; gap: 8px; align-items: center; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.22); color: #fff; border-radius: 30px; padding: 9px 18px; font-size: 13.5px; font-weight: 600; text-decoration: none; }
.quick-btn:hover { background: var(--ochre); border-color: var(--ochre); color: #fff; }
.quick-btn svg { flex-shrink: 0; }
.hero-quick { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

/* ---------- shared bar chart rows ---------- */
.bar-row { display: grid; grid-template-columns: 110px 1fr 76px; gap: 10px; align-items: center; padding: 5px 0; font-size: 13px; }
.bar-row .track { background: #EFEDE6; border-radius: 4px; height: 18px; overflow: hidden; }
.bar-row .fill { height: 100%; border-radius: 4px; min-width: 2px; }
.bar-row .valn { text-align: end; font-variant-numeric: tabular-nums; font-weight: 600; }

/* ---------- stat band ---------- */
.stat-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 26px 0; }
.stat-cell { background: var(--card); padding: 18px 20px; display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat-label { font-size: 14px; font-weight: 600; color: var(--ink-70); }
.stat-src { font-size: 11.5px; color: var(--signal); margin-top: 6px; border-top: 1px dashed var(--line); padding-top: 6px; }

/* ---------- sections ---------- */
.section { padding: 52px 0; }
.section.alt { background: #F5F3EC; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(22px, 3vw, 30px); position: relative; padding-bottom: 10px; }
.section-head h2::after { content: ""; position: absolute; bottom: 0; inset-inline-start: 0; width: 44px; height: 3px; background: var(--ochre); border-radius: 2px; }
.section-head .more { font-size: 14px; font-weight: 600; color: var(--ochre); text-decoration: none; white-space: nowrap; }

/* ---------- cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 17px; }
.card p { font-size: 14px; color: var(--ink-70); flex: 1; }
.card .card-link { font-size: 14px; font-weight: 600; color: var(--signal); text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }
.card-icon { width: 40px; height: 40px; border-radius: 8px; background: #EDF2EF; color: var(--signal); display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 6px; }
.ico { vertical-align: -2px; }
.topbar-contact .ico { vertical-align: -2.5px; }
a.card { text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--ochre); transform: translateY(-2px); }

/* ---------- district explorer ---------- */
.district-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.district-panel-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.district-panel-head input { flex: 1; min-width: 180px; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font-family: inherit; font-size: 14px; background: var(--paper); }
.district-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1px; background: var(--line); max-height: 430px; overflow: auto; }
.district-tile { background: var(--card); border: 0; padding: 12px 14px; text-align: start; cursor: pointer; font-family: inherit; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.district-tile:hover, .district-tile.sel { background: #F3EEE2; }
.district-tile .dt-name { font-weight: 600; font-size: 14px; }
.district-tile .dt-schools { font-size: 12px; color: var(--ink-45); font-variant-numeric: tabular-nums; }
.district-detail { padding: 20px; border-top: 1px solid var(--line); background: #FCFBF8; }
.district-detail h3 { margin-bottom: 4px; }
.district-detail .dd-stats { display: flex; gap: 28px; flex-wrap: wrap; margin: 12px 0; }
.district-detail .dd-stat b { display: block; font-size: 22px; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.district-detail .dd-stat span { font-size: 13px; color: var(--ink-70); }
.provenance { font-size: 12px; color: var(--signal); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
table.data th { text-align: start; background: #F5F3EC; border-bottom: 1px solid var(--line); padding: 10px 14px; font-family: var(--font-display); font-size: 12.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-70); white-space: nowrap; }
table.data td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr:nth-child(even) td { background: #FBFAF6; }
table.data tr:hover td { background: #F6F1E4; }
td.num, th.num { text-align: end; font-variant-numeric: tabular-nums; }

/* ---------- badges & pills ---------- */
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 9px; border-radius: 20px; text-transform: uppercase; }
.badge.press { background: #E8EFF6; color: #23557E; }
.badge.announcement { background: #F3EEE2; color: var(--ochre); }
.badge.progress { background: #E8F2ED; color: var(--signal); }
.badge.notification { background: #EFEAF6; color: #5B4A86; }
.badge.open { background: #E8F2ED; color: var(--signal); }
.badge.closed { background: #F6E9E6; color: var(--alert); }
.badge.functional { background: #E8F2ED; color: var(--signal); }
.badge.nonfunctional { background: #F6E9E6; color: var(--alert); }
.badge.pending { background: #F3EEE2; color: var(--ochre); }

/* ---------- news list ---------- */
.news-list { display: flex; flex-direction: column; }
.news-item { display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
.news-date { font-size: 13px; color: var(--ink-45); font-variant-numeric: tabular-nums; padding-top: 3px; }
.news-item h3 { font-size: 17px; margin: 4px 0 6px; }
.news-item h3 a { text-decoration: none; }
.news-item h3 a:hover { color: var(--ochre); }
.news-item p { font-size: 14px; color: var(--ink-70); }

/* ---------- documents ---------- */
.doc-item { display: flex; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.doc-icon { width: 42px; height: 50px; border: 1px solid var(--line); border-radius: 4px; background: var(--card); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--alert); flex-shrink: 0; }
.doc-meta { font-size: 12.5px; color: var(--ink-45); display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.doc-item h3 { font-size: 16px; }
.doc-item p { font-size: 14px; color: var(--ink-70); margin-top: 2px; }

/* ---------- forms ---------- */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); max-width: 720px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.form-row .hint { font-weight: 400; color: var(--ink-45); font-size: 12.5px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px;
  font-family: inherit; font-size: 15px; background: var(--paper); color: var(--ink);
}
.form-row textarea { min-height: 110px; resize: vertical; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.notice-box { border: 1px solid var(--line); border-inline-start: 4px solid var(--signal); background: #F2F7F4; border-radius: var(--radius); padding: 16px 18px; font-size: 14px; margin: 18px 0; }
.notice-box.warn { border-inline-start-color: var(--ochre); background: #F9F4E8; }
.notice-box.err { border-inline-start-color: var(--alert); background: #F9EFEC; }
.ref-box { font-family: var(--font-display); font-size: 26px; letter-spacing: .06em; background: var(--ink); color: #fff; padding: 14px 22px; border-radius: var(--radius); display: inline-block; margin: 10px 0; }

/* ---------- page header ---------- */
.page-head { background: var(--card); border-bottom: 1px solid var(--line); padding: 38px 0 30px; }
.page-head h1 { font-size: clamp(26px, 3.6vw, 38px); margin-top: 6px; }
.page-head p.sub { color: var(--ink-70); max-width: 70ch; margin-top: 10px; font-size: 16px; }
.breadcrumb { font-size: 13px; color: var(--ink-45); }
.breadcrumb a { color: var(--ink-45); text-decoration: none; }
.breadcrumb a:hover { color: var(--ochre); }

/* ---------- mandate / numbered list ---------- */
.mandate-list { counter-reset: m; list-style: none; max-width: 820px; }
.mandate-list li { counter-increment: m; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.mandate-list li::before { content: counter(m, decimal-leading-zero); font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--ochre); }

/* ---------- leadership ---------- */
.leader-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.leader-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.leader-card .avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.leader-photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; object-position: top; border: 2px solid var(--line); margin-bottom: 12px; }
.partner-logo-chip { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 10px 16px; display: flex; align-items: center; gap: 10px; }
.partner-logo-chip img { height: 34px; max-width: 110px; object-fit: contain; }
.partner-logo-chip span { font-size: 12.5px; font-weight: 600; color: var(--ink-70); }
.news-thumb { width: 100%; max-width: 780px; border-radius: var(--radius); border: 1px solid var(--line); margin-bottom: 18px; }
.news-item-thumb { width: 110px; height: 74px; object-fit: cover; border-radius: 4px; border: 1px solid var(--line); }
.card-img { width: calc(100% + 44px); margin: -22px -22px 10px; border-radius: var(--radius) var(--radius) 0 0; height: 150px; object-fit: cover; }
.leader-card h3 { font-size: 16px; }
.leader-card .role { font-size: 13px; color: var(--ochre); font-weight: 600; margin-bottom: 8px; }
.leader-card blockquote { font-size: 14px; color: var(--ink-70); border-inline-start: 3px solid var(--line); padding-inline-start: 12px; }

/* ---------- organogram ---------- */
.org-tree ul { list-style: none; padding-inline-start: 26px; border-inline-start: 1px solid var(--line); }
.org-tree > ul { border-inline-start: 0; padding-inline-start: 0; }
.org-node { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 16px; margin: 8px 0; display: inline-block; min-width: 260px; }
.org-node b { display: block; font-size: 14px; }
.org-node span { font-size: 13px; color: var(--ink-70); }
.org-node small { font-size: 12px; color: var(--ink-45); display: block; }

/* ---------- SDG goal tiles (shared) ---------- */
.goal-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.goal-tile { border-radius: 8px; color: #fff; padding: 14px; text-decoration: none; display: flex; flex-direction: column; gap: 4px; min-height: 92px; }
.goal-tile b { font-family: var(--font-display); font-size: 20px; }
.goal-tile span { font-size: 12px; line-height: 1.35; font-weight: 600; }
.goal-tile:hover { filter: brightness(1.1); color: #fff; }
.goal-tile.current { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- partners ---------- */
.partner-row { display: flex; flex-wrap: wrap; gap: 10px; }
.partner-chip { border: 1px solid var(--line); background: var(--card); border-radius: 30px; padding: 7px 18px; font-size: 13.5px; font-weight: 600; color: var(--ink-70); }

/* ---------- facilities checklist ---------- */
.fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.fac { display: flex; align-items: center; gap: 8px; font-size: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; }
.fac .yes { color: var(--signal); font-weight: 700; }
.fac .no { color: var(--alert); font-weight: 700; }

/* ---------- filter bar ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-bar input, .filter-bar select { border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 12px; font-family: inherit; font-size: 14px; background: var(--card); color: var(--ink); }
.filter-bar input[type="search"] { flex: 1; min-width: 200px; }
.count-note { font-size: 13px; color: var(--ink-45); margin-bottom: 12px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #B9C6D2; margin-top: 60px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 34px; padding: 44px 20px 34px; }
.site-footer h3 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.site-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #B9C6D2; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-about p { margin-bottom: 6px; }
.footer-bodies { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.footer-bodies li { margin: 0; }
.footer-base { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0; font-size: 12.5px; }
.footer-base-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- misc ---------- */
.two-col { display: grid; grid-template-columns: 1fr 380px; gap: clamp(28px, 3vw, 56px); align-items: start; }
.aside-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.aside-card h3 { font-size: 15px; margin-bottom: 10px; }
.aside-card ul { list-style: none; }
.aside-card li { padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.aside-card li:last-child { border-bottom: 0; }
.aside-card a { text-decoration: none; }

/* ---------- chart cards (shared across analytics pages) ---------- */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 22px; align-items: stretch; }
.chart-grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.chart-card > h3 { font-size: 16px; margin-bottom: 3px; }
.chart-card .csub { font-size: 12.5px; color: var(--ink-45); margin-bottom: 14px; line-height: 1.45; }
/* let the chart fill the card so the "explore" pill sits at the bottom, aligned across cards */
.chart-card > .sedc-inline { flex: 1 1 auto; display: flex; flex-direction: column; }
.chart-card > .sedc-inline .sedc-expand { margin-top: auto; }
.chart-note { font-size: 12px; color: var(--ink-45); margin-top: 10px; }
.prose p { margin-bottom: 14px; max-width: 74ch; }
.prose h2 { margin: 26px 0 12px; font-size: 22px; }
.prose ul, .prose ol { padding-inline-start: 24px; margin-bottom: 14px; }
.center { text-align: center; }
.muted { color: var(--ink-45); }
.mt { margin-top: 18px; } .mb { margin-bottom: 18px; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .two-col, .footer-grid { grid-template-columns: 1fr; }
  .header-search { display: none; }
  .nav-toggle { display: block; margin-inline-start: auto; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .site-nav > .wrap > ul { flex-direction: column; }
  .site-nav a { border-bottom: 1px solid var(--line); white-space: normal; }
  /* on mobile, submenus render inline under their parent */
  .site-nav .submenu { display: block; position: static; border: 0; border-inline-start: 3px solid var(--line); box-shadow: none; padding: 0; margin-inline-start: 16px; }
  .news-item { grid-template-columns: 1fr; gap: 2px; }
  .form-2col { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .topbar-contact a:last-child { display: none; }
  .stat-num { font-size: 24px; }
}

/* print: registry documents should print cleanly */
@media print {
  .topbar, .site-nav, .announce, .header-search, .nav-toggle, .site-footer, .btn { display: none !important; }
  body { background: #fff; }
}
