/**
 * Global Energy Flow — Design System
 * Single shared stylesheet for all pages
 * Last updated: May 2, 2026
 */

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --bg:           #08090A;
  --surface:      #0F1011;
  --surface-2:    #141516;
  --surface-3:    #1a1b22;
  --border:       rgba(255,255,255,0.05);
  --border-s:     rgba(255,255,255,0.08);
  --text:         #F7F8F8;
  --text-2:       #8A8F98;
  --text-3:       #62666D;
  --accent:       #5E6AD2;
  --teal:         #00d4aa;
  --crit:         #F87171;
  --crit-dim:     rgba(248,113,113,0.12);
  --crit-b:       rgba(248,113,113,0.35);
  --watch:        #F59E0B;
  --watch-dim:    rgba(245,158,11,0.12);
  --watch-b:      rgba(245,158,11,0.35);
  --ok:           #34D399;
  --ok-dim:       rgba(52,211,153,0.12);
  --ok-b:         rgba(52,211,153,0.35);

  /* ── Design-system tokens v2 (May 2026 redesign) ─────────────────────────────
   * Linear-inspired status palette. Used by the .dot family (severity dots)
   * and card / table surfaces. Old --ok / --watch / --crit tokens above are
   * preserved for backwards compatibility; migrate selectors to these new
   * tokens one surface at a time, then retire the old ones.
   *
   * Color rules:
   *   *-fg   = solid foreground fill (saturated brand color, used for dots)
   *   *-bg   = tinted background wash (low-alpha — used by fill-bar-inner etc.)
   *   *-text = label color            (slightly lighter than -fg for legibility on dark bg)
   *
   * Locked values (user-confirmed via candidate-picker, May 11 2026):
   *   ok    G4  → #22B45A — deeper green, no neon
   *   watch A1' → #D69020 — toned amber, less saturation than Tailwind amber-500
   *   crit  R   → #EF4444 — Tailwind red-500, no pink
   * ──────────────────────────────────────────────────────────────────────────── */
  --ok-fg:        #22B45A;
  --ok-bg:        rgba(34,180,90,0.13);
  --ok-text:      #45D080;

  --watch-fg:     #D69020;
  --watch-bg:     rgba(214,144,32,0.12);
  --watch-text:   #E5A93C;

  --crit-fg:      #EF4444;
  --crit-bg:      rgba(239,68,68,0.13);
  --crit-text:    #F87171;

  /* Text-tier scale — used by new surfaces for body/label/meta gradation.
   * Old --text / --text-2 / --text-3 remain valid; --t-1 .. --t-4 are
   * a parallel scale aligned with the redesign preview tokens. */
  --t-1: #F4F5F7;
  --t-2: #B4B8C0;
  --t-3: #82868E;
  --t-4: #50535A;

  /* Background-tier scale — slightly different lightness from --surface
   * and --surface-2, calibrated to the v2 preview. Old tokens remain. */
  --bg-1: #0E0E10;
  --bg-2: #131316;
  --bg-3: #1A1A1F;
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }

/* ── Typography helpers ─────────────────────────────────────────────────────── */
.mono { font-family: 'JetBrains Mono', 'SF Mono', Monaco, monospace; }
.text-mute { color: var(--text-3); }
.text-dim { color: var(--text-2); }
.text-crit { color: var(--crit); }
.text-watch { color: var(--watch); }
.text-ok { color: var(--ok); }
.text-accent { color: var(--accent); }
.uppercase { text-transform: uppercase; letter-spacing: 0.06em; }

/* ── Header / nav / mobile-nav / hamburger ──────────────────────────────────
   Old `.gef-header`, `.gef-nav`, `.gef-logo`, `.gef-header-right`,
   `.gef-hamburger`, `.gef-mobile-nav*` rules removed May 13, 2026 — all
   migrated to `header.gef-header-v2` (see assets/css/gef-header.css).
   ───────────────────────────────────────────────────────────────────────── */

/* ── Main content offset ─────────────────────────────────────────────────────── */
.gef-main { padding-top: 56px; min-height: 100vh; }

/* ── Page title / tabs ──────────────────────────────────────────────────────
   Old `.gef-title-bar`, `.gef-title-row`, `.gef-subtitle`, `.gef-tabs`,
   `.gef-tab*` rules removed May 13, 2026 — all migrated to `.title-v2`
   (see assets/css/gef-title.css).
   ───────────────────────────────────────────────────────────────────────── */

/* ── (Status badges removed May 14, 2026 — see .dot family above) ──────────── */

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.gef-card {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.gef-card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.gef-card-title {
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-transform: none;
  color: var(--t-1);
}
.gef-card-action {
  font-size: 12px;
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
}
.gef-card-action:hover { text-decoration: underline; }
.gef-card-body {
  padding: 16px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--t-2);
  line-height: 1.65;
}
.gef-card-body strong { color: var(--t-1); font-weight: 600; }

/* ── Incident rows ──────────────────────────────────────────────────────────
   Dashboard-pattern layout (May 13, 2026 sidebar redesign):
   - Tiny 8px dot at left (severity colour), no SVG glyph
   - Grid: dot · content · optional time-on-right
   - Title 13px / weight 500, detail 12px / --t-2
   - Top-border between rows instead of bottom-border (cleaner first-row)
   - Mirrors `.alert-item` in assets/css/dashboard-main.css
   ────────────────────────────────────────────────────────────────────── */
.gef-incident {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  transition: background 120ms ease;
}
.gef-incident:first-child { border-top: none; padding-top: 14px; }
.gef-incident:hover { background: rgba(255,255,255,0.015); }

/* Severity dot — shared with dashboard pattern */
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-crit  { background: var(--crit); }
.dot-watch { background: var(--watch); }
.dot-ok    { background: var(--ok); }

.gef-incident .dot { margin-top: 5px; }   /* align with title baseline */

.gef-incident-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--t-1);
  text-transform: none;
  letter-spacing: -0.005em;
  line-height: 1.35;
}
.gef-incident-detail {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--t-2);
  margin-top: 3px;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.55;
}

/* ── Card rows (v2 — May 14, 2026 sidebar-card redesign) ─────────────────
   Replaces the previous justify-between row layout where labels sat on the
   left and long monospace colored values on the right. New pattern:
   - Label sits ABOVE value (own line)
   - Tiny severity dot beside label
   - Body text in --t-2, not color-coded by severity
   - Body uses Inter (sans), not JetBrains Mono — monospace prose in a
     250px sidebar column reads like a code dump.
   Used by oil-data-render.js, gas-data-render.js, storage-data-render.js.
   The legacy row pattern remains in those files only inside historic
   commits; current code emits this markup. */
.gef-row-v2 {
  padding: 10px 0;
  border-top: 1px solid var(--border);
}
.gef-row-v2:first-child {
  border-top: none;
  padding-top: 4px;
}
.gef-row-v2 .row-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--t-3);
  margin-bottom: 4px;
}
.gef-row-v2 .row-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.gef-row-v2 .row-value {
  font-size: 13px;
  color: var(--t-2);
  line-height: 1.55;
  font-family: 'Inter', sans-serif;
}

/* ── Filter panel ─────────────────────────────────────────────────────────── */
.gef-filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gef-filter-title {
  font-size: 9px;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.gef-filter-section { display: flex; flex-direction: column; gap: 8px; }
.gef-filter-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.gef-search-wrap { position: relative; }
.gef-search-wrap input {
  width: 100%;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-s);
  border-radius: 3px;
  padding: 7px 32px 7px 10px;
  font-size: 12px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
  font-family: 'Inter', sans-serif;
}
.gef-search-wrap input:focus { border-color: var(--accent); }
.gef-search-wrap input::placeholder { color: var(--text-3); }
.gef-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-2);
}
.gef-check-item input[type="checkbox"] {
  width: 14px; height: 14px;
  border-radius: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.gef-status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.gef-status-dot.crit { background: var(--crit); }
.gef-status-dot.watch { background: var(--watch); }
.gef-status-dot.ok { background: var(--ok); }
.gef-filter-count { margin-left: auto; font-size: 10px; color: var(--text-3); font-family: 'JetBrains Mono', monospace; }
.gef-type-btns { display: flex; gap: 6px; }
.gef-type-btn {
  flex: 1;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid var(--border-s);
  border-radius: 2px;
  cursor: pointer;
  color: var(--text-3);
  background: transparent;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}
.gef-type-btn.active { border-color: var(--accent); color: var(--accent); background: rgba(94,106,210,0.1); }
.gef-type-btn:hover:not(.active) { color: var(--text-2); }

/* ── Map panel ─────────────────────────────────────────────────────────────── */
.gef-map-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.gef-map-legend {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 400;
  background: rgba(8,9,10,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-s);
  border-radius: 3px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gef-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 9.5px;
  color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.gef-legend-line { width: 20px; height: 2px; border-radius: 1px; }

/* ── Tailwind colour class mappings (dashboard KPI cards) ────────────────────── */
.bg-surface-dark { background: var(--surface); }
.bg-error-container { background: var(--crit-dim); }
.bg-tertiary-container { background: var(--watch-dim); }
.bg-secondary-container { background: var(--ok-dim); }
.text-error { color: var(--crit); }
.text-tertiary { color: var(--watch); }
.text-secondary { color: var(--ok); }
.text-text-primary { color: var(--text); }
.text-text-muted { color: var(--text-3); }
.bg-on-error { background: var(--crit); }
.bg-error { background: var(--crit); }
.bg-tertiary { background: var(--watch); }
.bg-secondary { background: var(--ok); }
.border-white\/5 { border-color: var(--border); }
.bg-white\/5 { background: rgba(255,255,255,0.05); }
.p-lg { padding: 16px; }
.px-margin-desktop { padding-left: 24px; padding-right: 24px; }
.py-xl { padding-top: 16px; padding-bottom: 16px; }
.gap-xs { gap: 1px; }
.gap-gutter { gap: 16px; }
.text-display-2 { font-size: 48px; font-weight: 700; line-height: 1; }
.font-display-2 { font-weight: 700; }
.gef-kpi-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}
.gef-kpi-card {
  background: var(--surface);
  padding: 14px 16px 12px;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
.gef-dash-zone3 {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  padding: 16px 24px 48px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .gef-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .gef-kpi-card { padding: 12px; }
  .gef-dash-zone3 { grid-template-columns: 1fr; padding: 12px 16px 80px; }
}
@media (max-width: 600px) {
  .gef-kpi-strip { grid-template-columns: 1fr; gap: 0; }
  .gef-kpi-card { padding: 16px 18px; }
}
.gef-grid {
  display: grid;
  grid-template-columns: 1fr 280px;
  height: 600px;
  gap: 16px;
  padding: 16px 24px;
}
.gef-filter-panel { position: sticky; top: 72px; }
.gef-sidebar {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gef-sidebar::-webkit-scrollbar { width: 4px; }
.gef-sidebar::-webkit-scrollbar-track { background: transparent; }
.gef-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 2px; }
.gef-sidebar::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.35); }
.gef-card { flex-shrink: 0; }

/* ── Pipeline detail panel ─────────────────────────────────────────────────── */
.gef-pipe-name { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.gef-pipe-route { font-size: 11px; color: var(--text-3); margin-bottom: 10px; }
.gef-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.gef-detail-item .dl { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin-bottom: 3px; }
.gef-detail-item .dv { font-size: 12px; font-family: 'JetBrains Mono', monospace; color: var(--text-2); }
.gef-detail-item .dv.crit { color: var(--crit); }
.gef-detail-item .dv.watch { color: var(--watch); }
.gef-detail-note {
  font-size: 10px;
  color: var(--text-3);
  padding: 8px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
  line-height: 1.5;
}
.gef-sparkline-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-3);
  margin-bottom: 6px;
  font-family: 'JetBrains Mono', monospace;
}

/* ── Leaflet overrides ─────────────────────────────────────────────────────── */
.leaflet-container { background: #08090A; }
.leaflet-popup-content-wrapper {
  background: var(--surface-2);
  border: 1px solid var(--border-s);
  border-top: 2px solid var(--teal);
  border-radius: 4px;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
  font-family: 'Inter', sans-serif;
  max-height: 60vh;
  overflow-y: auto;
  overflow-x: hidden;
}
/* Slim scrollbar for popups (WebKit) */
.leaflet-popup-content-wrapper::-webkit-scrollbar { width: 6px; }
.leaflet-popup-content-wrapper::-webkit-scrollbar-track { background: transparent; }
.leaflet-popup-content-wrapper::-webkit-scrollbar-thumb {
  background: var(--border-s);
  border-radius: 3px;
}
.leaflet-popup-content-wrapper::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.18); }
.leaflet-popup-tip { background: var(--surface-2); }
.leaflet-popup-content { margin: 10px 12px; font-size: 12px; }
.leaflet-popup-close-button { color: var(--text-3) !important; }
.leaflet-popup-close-button:hover { color: var(--text) !important; }
.leaflet-control-zoom {
  border: 1px solid var(--border-s) !important;
  border-radius: 3px !important;
  overflow: hidden;
}
.leaflet-control-zoom a {
  background: rgba(8,9,10,0.85) !important;
  color: var(--text-2) !important;
  border-color: var(--border-s) !important;
}
.leaflet-control-zoom a:hover {
  background: rgba(255,255,255,0.06) !important;
  color: var(--text) !important;
}
.leaflet-control-attribution {
  background: rgba(8,9,10,0.6) !important;
  color: var(--text-3) !important;
  font-size: 9px !important;
}
.leaflet-control-attribution a { color: var(--text-3) !important; }

/* ── Popup content styles ─────────────────────────────────────────────────── */
.gef-popup-name { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.gef-popup-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border-radius: 2px; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; font-family: 'JetBrains Mono', monospace; }
.gef-popup-row { display: flex; justify-content: space-between; gap: 12px; font-size: 10px; line-height: 1.8; color: var(--text-2); font-family: 'JetBrains Mono', monospace; }
.gef-popup-row span { color: var(--text); }
.gef-popup-note { margin-top: 6px; font-size: 10px; color: var(--text-3); font-style: italic; line-height: 1.5; }
.gef-popup-source { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--border); font-size: 9px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; font-family: 'JetBrains Mono', monospace; }


/* ── Footer ─────────────────────────────────────────────────────────────────── */
.gef-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
  margin-top: 24px;
}
.gef-footer p {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--t-3);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
}

/* Footer row layout — used on home page (replaces former Tailwind utilities).
   On mobile: stacks vertically. On md (≥768px): single row. */
.gef-footer-row {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.gef-footer-source {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--t-3);
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.5;
}
.gef-footer-links {
  display: flex;
  gap: 24px;
}
.gef-footer-links a {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--t-3);
  text-decoration: none;
  transition: color 150ms ease;
}
.gef-footer-links a:hover {
  color: var(--t-1);
}
@media (min-width: 768px) {
  .gef-footer-row { flex-direction: row; }
}

/* Selection styling — global (replaces Tailwind selection: utilities) */
::selection {
  background: var(--accent);
  color: #FFFFFF;
}

/* ── Hamburger / mobile-nav ──────────────────────────────────────────────────
   Removed May 13, 2026 — see assets/css/gef-header.css for the v2 versions
   (`.nav-hamburger`, `.nav-mobile-v2`, `.nav-mobile-close`).
   ───────────────────────────────────────────────────────────────────────── */

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .gef-grid { grid-template-columns: 1fr 260px; gap: 12px; padding: 12px 16px; }
}

@media (max-width: 900px) {
  .gef-grid {
    grid-template-columns: 1fr;
    height: auto;
    padding: 12px 16px;
  }
  .gef-sidebar {
    overflow-y: visible;
    height: auto;
    min-height: unset;
    max-height: none;
  }
  .gef-map-panel { height: 400px !important; }
  .gef-filter-panel, .gef-sidebar { position: static; }
  .gef-main { padding-bottom: 24px; }
}

@media (max-width: 600px) {
  .gef-grid { padding: 10px 12px; gap: 10px; }
  .gef-footer { padding: 16px; }
}

.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}

/* ── Dashboard Terminal-style KPI Cards (v2 redesign May 2026) ───────────────
 * 6-card grid at top of /. Class names preserved so renderer (dashboard-render.js
 * renderKpis) keeps finding cards via fixed element IDs. Visual treatment
 * retokenized to match site-wide v2 design — Inter labels, Mono values,
 * rounded pill badges, hover lift. Severity left-border replaced with a
 * background-tint on the badge.  */
.gef-kpi-terminal {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  padding: 16px 24px 0;
  align-items: start;
}
.gef-kpi-t {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  position: relative;
  overflow: hidden;
  transition: border-color 150ms ease, background 150ms ease;
}
.gef-kpi-t:hover {
  border-color: var(--border-2);
  background: var(--bg-2);
}
/* Severity coloring now lives on the badge + value, not as a left border.
 * Old border-left rules kept as zero-width no-ops for backwards compat. */
.gef-kpi-t.crit, .gef-kpi-t.watch, .gef-kpi-t.ok { border-left: 1px solid var(--border); }

.gef-kpi-t-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--t-3);
  margin-bottom: 0;
}
.gef-kpi-t-badge {
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: none;
  letter-spacing: 0;
}
.gef-kpi-t-badge.crit  { background: var(--crit-bg);  color: var(--crit-text);  border: none; }
.gef-kpi-t-badge.watch { background: var(--watch-bg); color: var(--watch-text); border: none; }
.gef-kpi-t-badge.ok    { background: var(--ok-bg);    color: var(--ok-text);    border: none; }

.gef-kpi-t-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 600;
  color: var(--t-1);
  line-height: 1;
  margin: 12px 0 8px;
  letter-spacing: -0.02em;
}
.gef-kpi-t-sub {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 400;
  margin-bottom: 0;
  color: var(--t-3);
}
.gef-kpi-t-sub.crit  { color: var(--crit-text); }
.gef-kpi-t-sub.watch { color: var(--watch-text); }
.gef-kpi-t-sub.ok    { color: var(--ok-text); }

@media(max-width:1100px){ .gef-kpi-terminal { grid-template-columns: repeat(3, 1fr); } }
@media(max-width:700px){ .gef-kpi-terminal { grid-template-columns: repeat(2, 1fr); } }

/* ── Fuel Price Sub-Cards ─────────────────────────────────────────────────────── */
.gef-fuel-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.gef-fuel-card {
  background: #141516;
  border: 1px solid rgba(255,255,255,0.05);
  padding: 12px 14px;
}
.gef-fuel-card-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 10px;
  font-family: 'JetBrains Mono', monospace;
}
.gef-fuel-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
.gef-fuel-row:last-child { margin-bottom: 0; }
.gef-fuel-type {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-3);
  font-family: 'JetBrains Mono', monospace;
}
.gef-fuel-country {
  font-size: 9px;
  color: var(--text-2);
  font-family: 'JetBrains Mono', monospace;
  margin-left: 4px;
}
.gef-fuel-price {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  font-family: 'JetBrains Mono', monospace;
}
.gef-fuel-price.ok    { color: var(--ok); }
.gef-fuel-price.crit  { color: var(--crit); }

@media (max-width: 900px) {
  .gef-kpi-terminal { grid-template-columns: repeat(3, 1fr); padding: 12px 16px 0; }
}
@media (max-width: 600px) {
  .gef-kpi-terminal { grid-template-columns: 1fr; gap: 6px; }
  .gef-fuel-cards { grid-template-columns: 1fr; }
}

/* ── Stitch colour utilities ─────────────────────────────────────────────────── */
.text-success  { color: #10b981; }
.text-warning  { color: #f59e0b; }
.text-error    { color: #e53935; }
.bg-error      { background: #e53935; }
.bg-warning    { background: #f59e0b; }
.bg-success    { background: #10b981; }
.border-white\/10 { border-color: rgba(255,255,255,0.1) !important; }
.glass-card {
  background: #141516;
  border: 1px solid rgba(255,255,255,0.1);
}
.animate-pulse { animation: gef-pulse 2s cubic-bezier(0.4,0,0.6,1) infinite; }
@keyframes gef-pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* ── KPI card inner layout helpers (Tailwind-free) ──────────────────────────── */
.gef-kpi-t .kpi-row { display:flex; justify-content:space-between; align-items:flex-start; margin-bottom:4px; }
.gef-kpi-t .kpi-row-b { display:flex; justify-content:space-between; align-items:center; margin-top:4px; }
.gef-kpi-spark { width:40px; height:12px; opacity:0.4; }

/* ── Zone 3 responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  section[style*="grid-template-columns:1fr 340px"] {
    grid-template-columns: 1fr !important;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   STATUS INDICATORS
   ═══════════════════════════════════════════════════════════════════════════
   Severity is communicated by a small coloured dot — see `.dot` family
   earlier in this file (line ~200). The previous status-pill components
   (.si / .icon-only / .advisory / .gef-badge) and their labelled rating
   markup were retired May 14, 2026 per editorial direction: dots only,
   no rating words ("Critical" / "Watch" / "OK") on visible surfaces.

   To emit a severity dot:
     <span class="dot dot-crit"></span>
     <span class="dot dot-watch"></span>
     <span class="dot dot-ok"></span>
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Section-nav pills (shortages sub-page tabs) — added May 23, 2026 ── */
.c-sectionnav { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 20px; }
.c-sectionnav a { font-size: 12px; font-weight: 500; color: var(--text-2, #B4B8C0); text-decoration: none; padding: 6px 12px; border: 1px solid var(--border, #1F2128); border-radius: 999px; background: var(--surface, #0F1014); transition: all 0.15s; }
.c-sectionnav a:hover { border-color: var(--accent, #6E7BD9); color: var(--text, #E8EAEC); }
.c-sectionnav a.active { background: rgba(110,123,217,0.15); border-color: var(--accent, #6E7BD9); color: var(--text, #E8EAEC); }
