:root {
  --paper: #f1ede4;
  --paper-2: #faf7f0;
  --paper-3: #e9e3d7;
  --ink: #191a1c;
  --ink-2: #3b3a36;
  --muted: #6f695d;
  --muted-2: #928b7d;
  --line: #d5cdbf;
  --line-strong: #b9b0a0;
  --accent: #c3472e;
  --accent-deep: #9e3220;
  --jade: #1f6f63;
  --gold: #a67c2e;
  --blue: #2f5f86;
  --purple: #71517e;
  --brown: #6e5a3a;
  --c-policy: #71517e;
  --c-compliance: #b0442f;
  --c-financial: #1f6f63;
  --c-it: #2f5f86;
  --c-recruit: #a67c2e;
  --c-tender: #6e5a3a;
  --c-case: #3c6b4f;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "Inter", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", "Menlo", "Consolas", monospace;
  --max: 1420px;
  --pad: clamp(20px, 3.2vw, 52px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.no-scroll { overflow: hidden; }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

.page-grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(25, 26, 28, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 26, 28, .028) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
  padding: 0 var(--pad);
  background: rgba(241, 237, 228, .9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--paper-2);
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1;
}

.brand-mark.small { width: 26px; height: 26px; font-size: 15px; }

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .04em;
}

.brand-text em {
  font-style: normal;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .16em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 18px;
}

.nav-btn {
  position: relative;
  padding: 20px 14px;
  border: 0;
  background: transparent;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--muted);
}

.nav-btn::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  height: 1px;
  background: transparent;
}

.nav-btn:hover { color: var(--ink); }
.nav-btn.is-active { color: var(--ink); }
.nav-btn.is-active::after { background: var(--accent); }

.header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--muted);
}

.header-meta b { font-weight: 600; color: var(--ink-2); }

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--jade);
  box-shadow: 0 0 0 3px rgba(31, 111, 99, .12);
}

.ghost-btn {
  padding: 7px 12px;
  background: transparent;
  border: 1px solid var(--line-strong);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--ink-2);
  transition: border-color .2s, background .2s;
}

.ghost-btn:hover { border-color: var(--ink); background: var(--paper-2); }

main {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.view { display: none; }
.view.is-active { display: block; animation: viewIn .4s ease both; }

@keyframes viewIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: end;
  padding: clamp(52px, 7vw, 96px) 0 clamp(38px, 4vw, 60px);
  border-bottom: 1px solid var(--line);
}

.eyebrow,
.kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow { margin-bottom: 20px; }

.hero h1 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(42px, 5.5vw, 82px);
  line-height: 1.04;
  letter-spacing: -.025em;
}

.hero h1 em,
.view-head h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-sub {
  max-width: 620px;
  margin: 0 0 30px;
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.solid-btn {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper-2);
  font-size: 12.5px;
  letter-spacing: .08em;
  transition: background .2s, border-color .2s;
}

.solid-btn span { font-size: 15px; }
.solid-btn:hover { background: var(--accent); border-color: var(--accent); }

.text-btn {
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--ink-2);
}

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

.hero-facts {
  display: flex;
  gap: clamp(26px, 4vw, 52px);
  margin: 42px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.hero-facts dt {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted-2);
  text-transform: uppercase;
}

.hero-facts dd {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 20px;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}

.hero-brief {
  position: relative;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.brief-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.brief-date {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.brief-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.brief-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: padding .2s;
}

.brief-list li:hover { padding-left: 4px; }

.brief-list time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  padding-top: 2px;
}

.brief-list b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

.brief-list span {
  display: block;
  margin-top: 4px;
  font-size: 11.5px;
  color: var(--muted);
}

.brief-more {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-top: 12px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--ink-2);
}

.brief-more:hover { color: var(--accent); }

/* ---------- KPI ---------- */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--line);
}

.kpi {
  padding: 24px 20px 22px;
  border-right: 1px solid var(--line);
  min-width: 0;
}

.kpi:first-child { padding-left: 0; }
.kpi:last-child { border-right: 0; }

.kpi-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  letter-spacing: .1em;
  color: var(--muted);
}

.kpi-value {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: clamp(22px, 2.2vw, 31px);
  font-weight: 500;
  letter-spacing: -.05em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.kpi-value small {
  font-size: 12px;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 3px;
}

.kpi-note {
  margin-top: 5px;
  font-size: 10.5px;
  color: var(--muted-2);
}

.kpi.is-accent .kpi-value { color: var(--accent); }

/* ---------- Sections ---------- */
.panel-block {
  padding: clamp(52px, 6vw, 86px) 0 0;
}

.panel-block.flush { padding-top: 48px; }

.section-head {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: .1em;
  padding-bottom: 6px;
}

.section-title h2,
.view-head h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: -.02em;
}

.section-title h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; }
.section-title .kicker { margin-bottom: 6px; }

.section-desc {
  max-width: 420px;
  margin: 0 0 4px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: right;
}

.metric-switch {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
}

.metric-switch button {
  padding: 7px 11px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--muted);
}

.metric-switch button:last-child { border-right: 0; }
.metric-switch button:hover { color: var(--ink); }
.metric-switch button.is-active { background: var(--ink); color: var(--paper-2); }

/* ---------- Map ---------- */
.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(300px, .78fr);
  gap: 24px;
}

.map-card {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 8px 8px 0;
}

.chart { width: 100%; }
.chart-map { height: 510px; }
.chart-tall { height: 390px; }
.chart-short { height: 236px; }
.chart-donut { height: 300px; }

.map-legend-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 10px 11px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: .05em;
  color: var(--muted);
}

.map-aside {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--paper-2);
  min-height: 0;
}

.aside-head {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line);
}

.mini-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .06em;
  color: var(--muted-2);
}

.region-rank { padding: 4px 16px 0; }

.rank-row {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.rank-row:last-child { border-bottom: 0; }
.rank-row:hover .rank-name { color: var(--accent); }

.rank-idx { font-family: var(--mono); font-size: 9px; color: var(--muted-2); }

.rank-name { font-size: 12.5px; transition: color .15s; }

.rank-val {
  font-family: var(--mono);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.rank-bar {
  grid-column: 2 / 4;
  height: 2px;
  background: var(--paper-3);
  margin-top: 1px;
}

.rank-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  opacity: .55;
}

.province-focus {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 16px;
  min-height: 168px;
}

.focus-empty { font-size: 11.5px; line-height: 1.6; color: var(--muted); }

.focus-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.focus-top h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.focus-top span { font-size: 10px; color: var(--muted); }

.focus-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
}

.focus-grid div { min-width: 0; }

.focus-grid dt { font-size: 9.5px; letter-spacing: .08em; color: var(--muted-2); }
.focus-grid dd {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.focus-link {
  display: inline-block;
  margin-top: 12px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent);
  font-size: 10.5px;
  letter-spacing: .06em;
  color: var(--accent);
}

/* ---------- Charts / cards ---------- */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: 24px;
}

.chart-card {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 16px;
  min-width: 0;
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 2px 4px 8px;
}

.card-head h3 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 9px 6px 2px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
  font-size: 9.5px;
  color: var(--muted);
}

.chart-legend span { display: inline-flex; align-items: center; gap: 5px; }
.chart-legend i { display: inline-block; width: 7px; height: 7px; }

/* ---------- Tables ---------- */
.table-card {
  border: 1px solid var(--line);
  background: var(--paper-2);
}

.table-scroll { overflow-x: auto; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 12px;
  background: var(--paper-3);
  border-bottom: 1px solid var(--line-strong);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .08em;
  text-align: left;
  color: var(--muted);
  white-space: nowrap;
}

.data-table th.num,
.data-table td.num { text-align: right; }

.data-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .12s; }
.data-table tbody tr:hover { background: rgba(195, 71, 46, .045); }
.data-table tbody tr.clickable { cursor: pointer; }

.data-table .col-rank { width: 34px; color: var(--muted-2); font-family: var(--mono); font-size: 10px; }

.bank-name-cell { font-weight: 600; }
.bank-name-cell small {
  display: block;
  margin-top: 1px;
  font-weight: 400;
  font-size: 10px;
  color: var(--muted-2);
}

.data-table .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.data-table .muted { color: var(--muted-2); }
.data-table td.hot { color: var(--accent); }

.intel-item.is-target {
  background: rgba(195, 71, 46, .06);
  box-shadow: inset 2px 0 0 var(--accent);
}

.sortable { cursor: pointer; user-select: none; }
.sortable:hover { color: var(--ink); }
.sortable.is-sorted { color: var(--accent); }
.sortable.is-sorted::after { content: " ↓"; font-size: 9px; }
.sortable.is-sorted.asc::after { content: " ↑"; }

.pill {
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--line-strong);
  font-size: 9.5px;
  letter-spacing: .04em;
  color: var(--muted);
  vertical-align: 1px;
}

.pill.hot { border-color: rgba(195, 71, 46, .45); color: var(--accent); }

/* ---------- Progress ---------- */
.progress-layout { align-items: stretch; }

.progress-card {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 24px;
}

.progress-row { margin-bottom: 20px; }
.progress-row:last-child { margin-bottom: 0; }

.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 7px;
}

.progress-top b { font-size: 12.5px; font-weight: 600; }
.progress-top span { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

.progress-track {
  height: 6px;
  background: var(--paper-3);
  overflow: hidden;
}

.progress-track i {
  display: block;
  height: 100%;
  background: var(--ink);
  transform-origin: left;
  animation: barIn .9s cubic-bezier(.2, .7, .2, 1) both;
}

.progress-row:nth-child(2n) .progress-track i { background: var(--accent); }
.progress-row:nth-child(3n) .progress-track i { background: var(--jade); }

@keyframes barIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.progress-note {
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- View heads ---------- */
.view-head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: end;
  padding: clamp(48px, 6vw, 86px) 0 34px;
  border-bottom: 1px solid var(--line);
}

.view-head > div:first-child > p:last-child {
  max-width: 640px;
  margin: 18px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.view-head h1 {
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.08;
}

.view-head .eyebrow { margin-bottom: 16px; }

/* ---------- Region cards ---------- */
.region-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  padding: 28px 0 26px;
}

.region-card {
  position: relative;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--paper-2);
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}

.region-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.region-card.is-active { border-color: var(--accent); }

.region-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 26px;
  height: 2px;
  background: var(--accent);
}

.region-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.region-card .region-sub {
  margin-top: 2px;
  font-size: 10px;
  letter-spacing: .08em;
  color: var(--muted);
}

.region-card .region-asset {
  margin: 18px 0 2px;
  font-family: var(--mono);
  font-size: 23px;
  letter-spacing: -.04em;
}

.region-card .region-asset small { font-size: 10px; color: var(--muted); letter-spacing: 0; }

.region-card .region-meta {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}

.region-card .region-meta b { font-family: var(--mono); color: var(--ink-2); font-weight: 500; }

.region-card .region-top {
  margin-top: 10px;
  font-size: 10.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inline-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: var(--muted);
}

select, input[type="search"] {
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  padding: 8px 10px;
  font-size: 11.5px;
  outline: none;
}

select:focus, input[type="search"]:focus { border-color: var(--ink); }

/* ---------- Bank toolbar ---------- */
.bank-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 22px 0 14px;
}

.search-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 280px;
  flex: 1 1 280px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
}

.search-wrap span { font-size: 15px; color: var(--muted-2); }

.search-wrap input {
  width: 100%;
  padding: 9px 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 12px;
}

.search-wrap.small { min-width: 200px; flex-basis: 200px; }

.result-count {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

.bank-table-card .data-table td { padding-top: 10px; padding-bottom: 10px; }
.bank-table-card .table-scroll { max-height: 72vh; }

/* ---------- Intel ---------- */
.intel-head { grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); }

.intel-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--ink);
}

.intel-summary div {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.intel-summary div:nth-child(odd) { padding-right: 14px; }
.intel-summary div:nth-child(even) { padding-left: 14px; border-left: 1px solid var(--line); }

.intel-summary dt { font-size: 9.5px; letter-spacing: .1em; color: var(--muted); }
.intel-summary dd { margin: 4px 0 0; font-family: var(--mono); font-size: 22px; letter-spacing: -.04em; }
.intel-summary dd small { font-size: 10px; color: var(--muted); letter-spacing: 0; }

.intel-charts {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 24px;
  padding: 26px 0;
}

.active-banks { padding: 2px 4px 0; }

.active-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.active-row:last-child { border-bottom: 0; }
.active-row:hover .active-name { color: var(--accent); }

.active-name { font-size: 11.5px; }
.active-name small { color: var(--muted-2); font-size: 9.5px; margin-left: 5px; }
.active-count { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

.intel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 64px;
  z-index: 20;
  background: rgba(241, 237, 228, .94);
  backdrop-filter: blur(10px);
}

.cat-chips { display: flex; gap: 5px; flex-wrap: wrap; }

.cat-chip {
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--muted);
}

.cat-chip b { font-family: var(--mono); font-weight: 400; margin-left: 4px; color: var(--muted-2); }
.cat-chip:hover { border-color: var(--ink); color: var(--ink); }
.cat-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper-2); }
.cat-chip.is-active b { color: rgba(250, 247, 240, .6); }

.intel-filters { display: flex; gap: 8px; flex-wrap: wrap; }

.intel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .65fr);
  gap: 36px;
  padding: 10px 0 60px;
}

.intel-feed { min-width: 0; }

.intel-item {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.intel-item:first-child { padding-top: 20px; }

.intel-date {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .02em;
  color: var(--muted);
  padding-top: 3px;
}

.intel-date b {
  display: block;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -.05em;
  color: var(--ink-2);
  line-height: 1.1;
}

.intel-body { min-width: 0; }

.intel-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.cat-badge {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid currentColor;
  font-size: 9.5px;
  letter-spacing: .08em;
}

.cat-badge[data-cat="policy"] { color: var(--c-policy); }
.cat-badge[data-cat="compliance"] { color: var(--c-compliance); }
.cat-badge[data-cat="financial"] { color: var(--c-financial); }
.cat-badge[data-cat="it"] { color: var(--c-it); }
.cat-badge[data-cat="recruit"] { color: var(--c-recruit); }
.cat-badge[data-cat="tender"] { color: var(--c-tender); }
.cat-badge[data-cat="case"] { color: var(--c-case); }

.intel-bank {
  font-size: 10.5px;
  color: var(--muted);
  cursor: pointer;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
}

.intel-bank:hover { color: var(--accent); border-color: var(--accent); }

.intel-body h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
}

.intel-body h3 a:hover { color: var(--accent); }

.intel-body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.72;
  color: var(--muted);
}

.intel-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.intel-tags span {
  font-size: 9.5px;
  color: var(--muted-2);
  background: var(--paper-3);
  padding: 2px 6px;
}

.intel-source {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
  font-size: 9.5px;
  letter-spacing: .04em;
  color: var(--muted-2);
}

.intel-source:hover { color: var(--accent); }

.intel-side {
  position: sticky;
  top: 122px;
  align-self: start;
}

.side-card {
  border: 1px solid var(--line);
  background: var(--paper-2);
  padding: 18px;
  margin-bottom: 14px;
}

.side-card h3 {
  margin: 4px 0 12px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
}

.watch-list {
  margin: 0;
  padding: 0 0 0 16px;
  font-size: 11.5px;
  line-height: 1.65;
  color: var(--muted);
}

.watch-list li { margin-bottom: 12px; }
.watch-list li:last-child { margin-bottom: 0; }
.watch-list b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }

.coverage-mini { margin-top: 4px; }

.cov-row {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--muted);
}

.cov-row:last-child { border-bottom: 0; }
.cov-row b { font-family: var(--mono); font-weight: 400; color: var(--ink-2); }

.side-note {
  margin: 12px 0 0;
  font-size: 10px;
  line-height: 1.6;
  color: var(--muted-2);
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: flex-start;
  max-width: var(--max);
  margin: 70px auto 0;
  padding: 26px var(--pad) 44px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  line-height: 1.7;
  color: var(--muted);
}

.site-footer > div { display: flex; align-items: flex-start; gap: 12px; }
.site-footer p { margin: 0; }
.site-footer > p { text-align: right; }

/* ---------- Drawer ---------- */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(25, 26, 28, .32);
  opacity: 0;
  transition: opacity .28s;
}

.scrim.is-open { opacity: 1; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  width: min(560px, 94vw);
  height: 100vh;
  background: var(--paper-2);
  border-left: 1px solid var(--line-strong);
  transform: translateX(102%);
  transition: transform .34s cubic-bezier(.2, .7, .2, 1);
  box-shadow: -20px 0 60px rgba(25, 26, 28, .12);
}

.drawer.is-open { transform: translateX(0); }

.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: transparent;
  font-size: 11px;
  color: var(--muted);
}

.icon-btn:hover { border-color: var(--ink); color: var(--ink); }

.drawer-body {
  overflow-y: auto;
  padding: 22px;
}

.drawer-title h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
}

.drawer-sub {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
}

.drawer-tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 12px; }

.drawer-tags span {
  font-size: 9.5px;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 2px 7px;
}

.drawer-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.drawer-metrics div {
  padding: 12px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.drawer-metrics dt { font-size: 9px; letter-spacing: .08em; color: var(--muted); }
.drawer-metrics dd {
  margin: 4px 0 0;
  font-family: var(--mono);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.drawer-section { margin-top: 26px; }

.drawer-section h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
}

.drawer-section h3 span { font-family: var(--mono); font-size: 9.5px; color: var(--muted); font-weight: 400; }

.drawer-note {
  margin: 0 0 12px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

.drawer-list { list-style: none; margin: 0; padding: 0; }

.drawer-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11.5px;
  line-height: 1.55;
}

.drawer-list li:last-child { border-bottom: 0; }
.drawer-list time { display: block; font-family: var(--mono); font-size: 9px; color: var(--muted-2); margin-bottom: 2px; }
.drawer-list a { color: var(--ink-2); }
.drawer-list a:hover { color: var(--accent); }

.mini-intel {
  display: block;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.mini-intel:last-child { border-bottom: 0; }
.mini-intel b { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.5; }
.mini-intel span { display: block; margin-top: 3px; font-size: 9.5px; color: var(--muted-2); }

.drawer-link {
  display: inline-block;
  margin-top: 10px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--accent);
  color: var(--accent);
  font-size: 10.5px;
  letter-spacing: .05em;
}

.drawer-empty { font-size: 11px; color: var(--muted-2); padding: 6px 0; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(25, 26, 28, .36);
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s;
}

.modal.is-open { opacity: 1; pointer-events: auto; }

.modal-card {
  width: min(660px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--paper-2);
  border: 1px solid var(--line-strong);
  transform: translateY(10px);
  transition: transform .24s;
}

.modal.is-open .modal-card { transform: translateY(0); }

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}

.modal-head h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
}

.modal-body { padding: 20px 24px 28px; }

.modal-body h3 {
  margin: 18px 0 6px;
  font-size: 12px;
  letter-spacing: .06em;
  color: var(--accent);
}

.modal-body h3:first-child { margin-top: 0; }

.modal-body p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--muted);
}

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: minmax(0, 1.3fr) minmax(280px, .8fr); gap: 40px; }
  .kpi-strip { grid-template-columns: repeat(3, 1fr); }
  .kpi:nth-child(3) { border-right: 0; }
  .kpi:nth-child(n+4) { border-top: 1px solid var(--line); }
  .kpi:nth-child(4) { padding-left: 0; }
  .map-layout { grid-template-columns: minmax(0, 1.3fr) minmax(280px, .7fr); }
  .region-cards { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .site-header { gap: 10px; }
  .brand-text em { display: none; }
  .header-meta span:nth-child(2) { font-size: 10px; }
  .hero { grid-template-columns: 1fr; align-items: start; gap: 36px; }
  .hero-brief { max-width: 620px; }
  .map-layout { grid-template-columns: 1fr; }
  .map-aside { min-height: auto; }
  .region-rank { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .province-focus { margin-top: 8px; }
  .two-col, .intel-charts, .intel-layout, .view-head, .intel-head { grid-template-columns: 1fr; }
  .intel-side { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .side-card { margin-bottom: 0; }
  .intel-summary { max-width: 520px; }
  .section-head { grid-template-columns: 40px 1fr; }
  .section-head > .metric-switch,
  .section-head > .section-desc,
  .section-head > .inline-filter { grid-column: 2; justify-self: start; text-align: left; }
  .chart-map { height: 430px; }
}

@media (max-width: 720px) {
  .site-header { height: auto; min-height: 58px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
  .nav { order: 3; width: 100%; margin-left: 0; justify-content: space-between; }
  .nav-btn { padding: 8px 6px; flex: 1; }
  .nav-btn::after { bottom: 2px; left: 6px; right: 6px; }
  .header-meta { margin-left: auto; }
  .header-meta .ghost-btn { display: none; }
  .hero-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .kpi-strip { grid-template-columns: 1fr 1fr; }
  .kpi { padding: 18px 14px; }
  .kpi:nth-child(2n) { border-right: 0; }
  .kpi:nth-child(3) { border-right: 1px solid var(--line); }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }
  .kpi:nth-child(odd) { padding-left: 0; }
  .kpi:nth-child(even) { padding-left: 14px; }
  .region-cards { grid-template-columns: 1fr 1fr; }
  .intel-item { grid-template-columns: 64px 1fr; gap: 12px; }
  .intel-date b { font-size: 20px; }
  .intel-body h3 { font-size: 17px; }
  .intel-side { grid-template-columns: 1fr; }
  .intel-toolbar { position: static; }
  .bank-toolbar { gap: 6px; }
  .search-wrap { min-width: 100%; }
  .result-count { margin-left: 0; }
  .chart-map { height: 360px; }
  .chart-tall { height: 320px; }
  .site-footer { flex-direction: column; }
  .site-footer > p { text-align: left; }
  .drawer-metrics { grid-template-columns: 1fr 1fr; }
  .region-rank { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 38px; }
  .view-head h1 { font-size: 34px; }
  .region-cards { grid-template-columns: 1fr; }
  .data-table { font-size: 11.5px; }
  .intel-summary { grid-template-columns: 1fr; }
  .intel-summary div:nth-child(even) { padding-left: 0; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
