/* Malaysia DC/AI Desk v3 — Headway industry shell */

:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #fafbfc;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --text: #111827;
  --muted: #6b7280;
  --muted-2: #9ca3af;
  --accent: #1d4ed8;
  --accent-soft: #eff6ff;
  --accent-border: #bfdbfe;
  --op: #047857;
  --op-bg: #ecfdf5;
  --uc: #b45309;
  --uc-bg: #fffbeb;
  --pl: #1d4ed8;
  --pl-bg: #eff6ff;
  --deal: #6d28d9;
  --deal-bg: #f5f3ff;
  --warn: #b91c1c;
  --warn-bg: #fef2f2;
  --nav-w: 180px;
  --rail-w: 268px;
  --top-h: 52px;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 3px rgba(15, 23, 42, 0.06);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { height: 100%; }
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; color: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--top-h);
  padding: 0 14px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-shrink: 0;
  min-width: var(--nav-w);
}
.brand-mark { font-weight: 700; font-size: 13px; letter-spacing: -0.02em; }
.brand-sub { font-size: 11px; color: var(--muted); }
.search-wrap { flex: 1; max-width: 320px; position: relative; }
.search-wrap input {
  width: 100%;
  height: 32px;
  padding: 0 10px 0 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-2);
  outline: none;
}
.search-wrap input:focus {
  border-color: var(--accent-border);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.search-wrap::before {
  content: "⌕";
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-2);
  pointer-events: none;
}
.filters {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.filter-group { display: flex; align-items: center; gap: 4px; }
.filter-group label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}
.filter-group select {
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}
.filter-group select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.seed-meta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.shell {
  display: grid;
  grid-template-columns: var(--nav-w) minmax(0, 1fr) var(--rail-w);
  min-height: calc(100vh - var(--top-h));
  max-width: 1480px;
  margin: 0 auto;
}

.sidenav {
  position: sticky;
  top: var(--top-h);
  align-self: start;
  height: calc(100vh - var(--top-h));
  padding: 14px 10px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  overflow-y: auto;
}
.sidenav-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
  padding: 4px 8px 8px;
}
.nav-item {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  padding: 7px 10px;
  margin-bottom: 2px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.nav-item:hover { background: var(--bg); color: var(--text); }
.nav-item.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.nav-item .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.35;
  flex-shrink: 0;
}
.nav-item.active .dot { opacity: 1; }
.sidenav-foot {
  margin-top: 20px;
  padding: 10px 8px;
  font-size: 11px;
  color: var(--muted-2);
  line-height: 1.4;
  border-top: 1px solid var(--line);
}

.centre { padding: 14px 16px 40px; min-width: 0; }

.breaking {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0 4px;
  margin-bottom: 8px;
}
.breaking-item {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  font-size: 12px;
  max-width: 300px;
}
.breaking-item time {
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.breaking-item span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Compact KPI strip */
.kpi-frame {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  margin: 0 0 8px;
  padding: 6px 10px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.35;
}
.kpi-frame strong {
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}
.kpis-compact-strip .kpi {
  padding: 8px 11px;
}
.kpis-compact-strip .kpi strong {
  font-size: 1.15rem;
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  box-shadow: var(--shadow);
}
.kpi label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 2px;
}
.kpi strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.kpi small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}
.kpi-national {
  border-color: var(--accent-border);
  background: linear-gradient(180deg, #fff, var(--accent-soft));
}
.kpi-national label { color: var(--accent); }

.chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
  align-items: center;
}
.chip-bar .chip-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}
.chip {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 12px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.panel-head h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.panel-head .note { margin: 0; font-size: 11px; color: var(--muted); }
.panel-body { padding: 0; }
.panel-body.padded { padding: 12px 14px; }

.news-feed { display: flex; flex-direction: column; }
.news-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.news-card:last-child { border-bottom: none; }
.news-card:hover { background: #f9fafb; }
.news-card time {
  font-size: 11px;
  font-weight: 650;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.news-card h3 {
  margin: 0 0 3px;
  font-size: 13.5px;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.news-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
  max-width: 72ch;
}
.news-card .tag-row { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 4px; }

/* Deals this week cards */
.deal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
}
.deal-card {
  padding: 12px 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.deal-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}
.deal-card-top time {
  font-size: 10.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.deal-card h3 {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.deal-meta {
  margin: 0 0 4px;
  font-size: 11px;
  color: var(--muted);
}
.deal-scale {
  margin: 0;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--text);
}

.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
table.data th,
table.data td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data th {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface-2);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 1;
}
table.data tbody tr:hover { background: #f9fafb; }
table.data tbody tr.row-highlight {
  background: var(--accent-soft);
  outline: 1px solid var(--accent-border);
}
table.data tbody tr.row-illustrative { opacity: 0.75; }
table.data td.mw {
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-size: 11.5px;
  white-space: nowrap;
}

/* —— IT MW first-class column —— */
th.col-mw,
td.col-mw {
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
  min-width: 7.5rem;
  font-weight: 600;
  color: var(--ink);
}
th.col-mw.sortable {
  cursor: pointer;
  user-select: none;
}
th.col-mw.sortable:hover { background: #eef2ff; }
th.col-mw.sorted { background: #eef2ff; color: var(--accent); }
th.col-mw .sort-ind {
  font-size: 9px;
  margin-left: 2px;
  opacity: 0.85;
}
th .th-hint {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: var(--muted-2);
  text-transform: none;
  letter-spacing: 0;
}
.mw-primary { font-weight: 700; }
.mw-alt { font-weight: 500; font-size: 10px; }
.mw-pending { color: var(--muted-2); font-weight: 500; }
.mw-pending-note {
  font-size: 10px;
  font-weight: 500;
  color: var(--muted-2);
  font-family: var(--sans);
}
.tag-conflict {
  margin-left: 2px;
  vertical-align: middle;
}
.mw-detail .tag-conflict { margin-left: 6px; }
.mw-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
}

/* Keep MW visible on narrow viewports — priority sticky column */
/* Priority: Status + ~IT MW stay visible when table scrolls */
@media (max-width: 1100px) {
  div.sites-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  table#sites-table th.col-status,
  table#sites-table td.col-status {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #fff;
    min-width: 7rem;
  }
  table#sites-table th.col-mw,
  table#sites-table td.col-mw {
    position: sticky;
    left: 7rem;
    z-index: 2;
    background: #fff;
    box-shadow: 2px 0 4px rgba(0,0,0,0.06);
  }
  table#sites-table thead th.col-status,
  table#sites-table thead th.col-mw {
    z-index: 3;
    background: #f9fafb;
  }
  table#sites-table tbody tr:hover td.col-status,
  table#sites-table tbody tr:hover td.col-mw,
  table#sites-table tbody tr.row-highlight td.col-status,
  table#sites-table tbody tr.row-highlight td.col-mw {
    background: var(--accent-soft);
  }
  /* Never hide MW; drop lower-priority cols first */
  table#sites-table .col-water,
  table#sites-table .col-fid,
  table#sites-table .col-cod,
  table#sites-table .col-offtake {
    display: none;
  }
}

/* Desktop: MW column always bold/primary */
table#sites-table td.col-mw {
  background: #fafbff;
}

.geo-hint {
  font-size: 10px;
  color: var(--muted-2);
  margin-top: 2px;
}

.tag {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.4;
}
.tag.op { background: var(--op-bg); color: var(--op); }
.tag.uc { background: var(--uc-bg); color: var(--uc); }
.tag.pl { background: var(--pl-bg); color: var(--pl); }
.tag.deal { background: var(--deal-bg); color: var(--deal); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.muted { background: #f3f4f6; color: var(--muted); }

.pane { display: none; }
.pane.active { display: block; }

.bullet-list { margin: 0; padding: 4px 14px 12px 30px; }
.bullet-list li { margin: 0 0 8px; font-size: 13px; }
.bullet-list .li-date {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-right: 6px;
}

.empty-state {
  padding: 28px 14px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

.rail {
  position: sticky;
  top: var(--top-h);
  align-self: start;
  height: calc(100vh - var(--top-h));
  padding: 14px 12px;
  border-left: 1px solid var(--line);
  background: var(--surface);
  overflow-y: auto;
}
.rail-block { margin-bottom: 18px; }
.rail-block h3 {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.rail-hint {
  margin: 0 0 10px;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.4;
}
.alert-item {
  display: flex;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.alert-item:last-child { border-bottom: none; }
.alert-item .pill {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--warn);
  padding-top: 1px;
}
.alert-item p { margin: 0; color: var(--text); }
.alert-item time {
  display: block;
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
}

.footer-strip {
  padding: 8px 14px 20px;
  font-size: 11px;
  color: var(--muted-2);
  grid-column: 1 / -1;
  text-align: center;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

/* Sites + Leaflet */
.sites-layout-map {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 0;
  align-items: stretch;
}
.map-panel-leaflet {
  padding: 10px 10px 12px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.map-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
}
.map-reset {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}
.map-reset:hover { border-color: var(--accent-border); background: var(--accent-soft); }
.leaflet-map {
  width: 100%;
  height: 320px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #e5e7eb;
  z-index: 0;
}
.cluster-mw-legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cluster-mw-legend li {
  font-size: 10.5px;
  color: var(--muted);
  padding: 4px 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 5px;
}
.cluster-mw-legend .cl {
  display: inline-block;
  min-width: 48px;
  font-weight: 700;
  color: var(--text);
}
.cluster-mw-legend em { font-style: normal; color: var(--muted-2); }
.map-legend-status {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 10.5px;
  color: var(--muted);
}
.map-legend-status .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
  border: 1px solid #fff;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}
.map-legend-status .dot.op { background: var(--op); }
.map-legend-status .dot.uc { background: var(--uc); }
.map-legend-status .dot.pl { background: var(--pl); }
.map-note {
  margin: 0;
  font-size: 10.5px;
  color: var(--muted-2);
  line-height: 1.35;
}
.sites-table-wrap {
  min-width: 0;
  max-height: 560px;
  overflow: auto;
}
.cluster-link {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cluster-link:hover { text-decoration: underline; }

@media (max-width: 1100px) {
  .shell { grid-template-columns: var(--nav-w) minmax(0, 1fr); }
  .rail { display: none; }
  .breaking { display: flex; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .sites-layout-map { grid-template-columns: 1fr; }
  .map-panel-leaflet { border-right: none; border-bottom: 1px solid var(--line); }
  .leaflet-map { height: 260px; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .sidenav {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 8px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
  }
  .sidenav-label, .sidenav-foot { display: none; }
  .nav-item { width: auto; padding: 6px 10px; margin: 0; font-size: 12px; }
  .nav-item .dot { display: none; }
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 12px; gap: 8px; }
  .brand { min-width: 0; width: 100%; }
  .search-wrap { max-width: none; flex: 1 1 100%; }
  .filters { margin-left: 0; width: 100%; }
  .seed-meta { border-left: none; padding-left: 0; width: 100%; white-space: normal; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .news-card { grid-template-columns: 1fr; gap: 4px; }
  .centre { padding: 10px 10px 32px; }
}
@media (max-width: 480px) {
  .kpis { grid-template-columns: 1fr; }
}

/* —— Detail drawer (hash routes) —— */
.detail-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.35);
  z-index: 80;
}
.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(440px, 100vw);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -8px 0 24px rgba(15, 23, 42, 0.12);
  z-index: 90;
  display: flex;
  flex-direction: column;
}
.detail-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.detail-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-2);
}
.detail-drawer-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.detail-sub {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.detail-close {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  flex-shrink: 0;
}
.detail-close:hover { background: var(--bg); color: var(--text); }
.detail-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px 16px 24px;
}
.detail-drawer-foot {
  padding: 10px 16px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted-2);
  background: var(--surface-2);
}
.dl-grid { display: flex; flex-direction: column; gap: 0; }
.dl-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.dl-row dt {
  margin: 0;
  font-size: 10.5px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
  padding-top: 2px;
}
.dl-row dd { margin: 0; color: var(--text); word-break: break-word; }
.dl-row dd a { word-break: break-all; }
.dl-row code {
  font-family: var(--mono);
  font-size: 11px;
  background: #f3f4f6;
  padding: 1px 5px;
  border-radius: 4px;
}
.muted { color: var(--muted); }
.is-clickable { cursor: pointer; }
.is-clickable:focus-visible {
  outline: 2px solid var(--accent-border);
  outline-offset: -2px;
}
.news-card.is-clickable:hover,
.deal-card.is-clickable:hover { background: #f9fafb; }
tr.is-clickable:hover { background: #f3f4f6; }
.breaking-item {
  appearance: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.pin-campus {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--op);
  background: var(--op-bg);
  padding: 1px 5px;
  border-radius: 999px;
  margin-right: 2px;
}
.pin-approx {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #f3f4f6;
  padding: 1px 5px;
  border-radius: 999px;
  margin-right: 2px;
}
body.detail-open { overflow: hidden; }

@media (max-width: 520px) {
  .detail-drawer { width: 100vw; }
  .dl-row { grid-template-columns: 1fr; gap: 2px; }
}

/* Multi-state Overview KPI context */
.kpi-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  margin: 4px 0 6px;
}
.kpi-count strong { color: var(--accent); }
.kpi-wide {
  grid-column: span 2;
}
.kpi-wide .kpi-ops {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  display: block;
}
.cluster-site-list {
  margin: 8px 0 12px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cluster-site-list-head {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted-2);
}
.cluster-site-list ul {
  margin: 0;
  padding-left: 16px;
  font-size: 12.5px;
}
.cluster-site-list li { margin: 0 0 4px; }
.cluster-site-list .linkish {
  appearance: none;
  border: none;
  background: none;
  padding: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}
.cluster-site-list .linkish:hover { text-decoration: underline; }
@media (max-width: 760px) {
  .kpi-wide { grid-column: span 1; }
}

.brand-asof { display:block; font-size: 11px; color: var(--muted); }
.brand-asof.stale { color: #b45309; font-weight: 600; }
