/* ==========================================================================
   AI INFRA TRACKER — Editorial Intelligence Design
   The Economist meets a modern data dashboard.
   Warm paper, serif headlines, teal accents. Data density over decoration.
   ========================================================================== */

:root {
  /* Palette */
  --paper: #f5f3ef;
  --paper-warm: #efebe3;
  --paper-dark: #e8e3d8;
  --ink: #1a1a1a;
  --ink-soft: #3d3d3d;
  --ink-mute: #6b6b6b;
  --ink-faint: #9a9a9a;
  --rule: #d8d3c8;
  --rule-soft: #e2ddd2;

  --teal: #0d7377;
  --teal-dark: #095258;
  --teal-light: #14929a;
  --teal-bg: #e6f0f0;
  --sienna: #e07a5f;
  --sienna-bg: #fbe8e1;
  --forest: #2d6a4f;
  --forest-bg: #e3ede6;
  --amber: #b8860b;
  --amber-bg: #f5ecd6;
  --purple: #6a4c93;
  --purple-bg: #ece8f0;

  /* Typography */
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Fira Code", Consolas, "Courier New", monospace;

  /* Layout */
  --max: 1180px;
  --gutter: 24px;
  --radius: 3px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.15s;
}
a:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: 2px; }

::selection { background: var(--teal); color: var(--paper); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ==========================================================================
   Navigation — editorial masthead
   ========================================================================== */
.nav {
  background: var(--paper);
  border-bottom: 2px solid var(--ink);
  position: sticky; top: 0; z-index: 100;
}
.nav-container {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; gap: 16px;
}
.nav-logo {
  font-family: var(--serif);
  font-weight: 700; font-size: 19px;
  color: var(--ink); letter-spacing: -0.01em;
  white-space: nowrap;
}
.nav-logo .accent { color: var(--teal); }
.nav-search {
  position: relative; flex: 0 1 200px;
}
.nav-search-input {
  width: 100%; padding: 6px 10px 6px 28px;
  background: var(--paper-warm); border: 1px solid var(--rule);
  border-radius: var(--radius); color: var(--ink); font-size: 13px;
  font-family: var(--sans);
  transition: border-color 0.15s;
}
.nav-search-input:focus {
  outline: none; border-color: var(--teal);
}
.nav-search-input::placeholder { color: var(--ink-faint); }
.nav-search::before {
  content: "⌕"; position: absolute; left: 8px; top: 50%;
  transform: translateY(-50%); color: var(--ink-mute); font-size: 14px;
}
.nav-search-results {
  display: none; position: absolute; top: 120%; left: 0; right: 0;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  max-height: 320px; overflow-y: auto; z-index: 200;
}
.nav-search-results.show { display: block; }
.nav-search-results a {
  display: block; padding: 8px 12px; font-size: 13px; color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
}
.nav-search-results a:last-child { border-bottom: none; }
.nav-search-results a:hover { background: var(--paper-warm); color: var(--ink); text-decoration: none; }
.nav-search-results .sr-empty { padding: 10px 12px; color: var(--ink-mute); font-size: 13px; }
.nav-links {
  display: flex; gap: 2px; align-items: center; flex-wrap: wrap;
}
.nav-links a {
  color: var(--ink-soft); font-size: 12.5px; font-weight: 500;
  padding: 4px 8px; border-radius: var(--radius);
  transition: all 0.15s; white-space: nowrap;
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--teal); text-decoration: none;
}

/* ==========================================================================
   Market Briefing — the editorial intro (NOT a hero)
   ========================================================================== */
.briefing-bar {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
}
.briefing-bar .container {
  display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap;
}
.briefing-date {
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap;
}
.briefing-text {
  font-family: var(--serif); font-size: 15px; color: var(--ink-soft);
  line-height: 1.5; font-style: italic;
}
.briefing-text strong { color: var(--teal); font-style: normal; font-weight: 700; }

/* ==========================================================================
   Key Metrics Dashboard — the "screener" header
   ========================================================================== */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 24px 0;
  background: var(--paper);
}
.metric-cell {
  padding: 18px 20px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.metric-cell:last-child { border-right: none; }
.metric-value {
  font-family: var(--serif);
  font-size: 28px; font-weight: 700; color: var(--ink);
  line-height: 1.1; margin-bottom: 4px;
  letter-spacing: -0.02em;
}
.metric-value.teal { color: var(--teal); }
.metric-value.forest { color: var(--forest); }
.metric-value.sienna { color: var(--sienna); }
.metric-label {
  font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600;
}

/* Capacity bar — operational vs construction vs announced */
.capacity-bar-wrap {
  margin: 24px 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 20px 24px;
  background: var(--paper);
}
.capacity-bar-title {
  font-family: var(--serif); font-size: 16px; font-weight: 700;
  color: var(--ink); margin-bottom: 14px;
}
.capacity-bar {
  display: flex; height: 28px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--rule);
  margin-bottom: 12px;
}
.capacity-seg {
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: var(--paper);
  transition: flex 0.3s;
}
.capacity-seg.operational { background: var(--forest); }
.capacity-seg.construction { background: var(--amber); }
.capacity-seg.announced { background: var(--purple); }
.capacity-legend {
  display: flex; gap: 20px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-mute);
}
.capacity-legend span { display: flex; align-items: center; gap: 6px; }
.capacity-legend .dot {
  width: 10px; height: 10px; border-radius: 2px;
}
.capacity-legend .dot.op { background: var(--forest); }
.capacity-legend .dot.con { background: var(--amber); }
.capacity-legend .dot.ann { background: var(--purple); }

/* ==========================================================================
   Section headers — editorial style
   ========================================================================== */
.section { padding: 32px 0; }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 8px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 10px;
}
.section-header h2 {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.01em;
}
.section-header .section-link {
  font-size: 13px; font-weight: 600; color: var(--teal);
  text-decoration: none;
}
.section-header .section-link:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Data Table — financial screener style
   ========================================================================== */
.data-table {
  width: 100%; border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 13.5px;
}
.data-table thead { position: sticky; top: 56px; z-index: 10; }
.data-table th {
  background: var(--paper-warm); padding: 10px 14px;
  font-size: 11px; font-weight: 700; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.05em;
  text-align: left; border-bottom: 2px solid var(--ink);
  white-space: nowrap;
}
.data-table td {
  padding: 11px 14px; color: var(--ink);
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
}
.data-table tbody tr:nth-child(even) td { background: var(--paper-warm); }
.data-table tbody tr:hover td { background: var(--teal-bg); }
.data-table a { font-weight: 600; }
.data-table .mono { font-family: var(--mono); font-size: 12px; color: var(--ink-mute); }
.data-table .num { font-family: var(--serif); font-weight: 700; font-size: 15px; }

/* ==========================================================================
   Status badges — flat, editorial
   ========================================================================== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; padding: 3px 8px;
  border-radius: 2px; text-transform: uppercase; letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; }
.status-operational {
  background: var(--forest-bg); color: var(--forest);
  border-color: var(--forest);
}
.status-operational::before { background: var(--forest); }
.status-construction {
  background: var(--amber-bg); color: var(--amber);
  border-color: var(--amber);
}
.status-construction::before { background: var(--amber); }
.status-announced {
  background: var(--purple-bg); color: var(--purple);
  border-color: var(--purple);
}
.status-announced::before { background: var(--purple); }
.status-pending {
  background: var(--sienna-bg); color: var(--sienna);
  border-color: var(--sienna);
}
.status-pending::before { background: var(--sienna); }

/* Tags */
.tag {
  display: inline-block; font-size: 10.5px; font-weight: 500;
  padding: 2px 7px; border-radius: 2px;
  background: var(--paper-warm); color: var(--ink-mute);
  border: 1px solid var(--rule);
  margin-right: 3px; margin-bottom: 3px;
  transition: all 0.15s;
}
.tag:hover { color: var(--teal); border-color: var(--teal); }

/* ==========================================================================
   Directory header
   ========================================================================== */
.directory-header {
  padding: 28px 0 16px; border-bottom: 2px solid var(--ink);
  margin-bottom: 20px;
}
.directory-header h1 {
  font-family: var(--serif);
  font-size: 32px; font-weight: 700; color: var(--ink);
  margin-bottom: 6px; letter-spacing: -0.02em;
}
.directory-header p { font-size: 15px; color: var(--ink-soft); max-width: 700px; }
.directory-count {
  display: inline-block; margin-top: 10px;
  font-size: 13px; color: var(--teal); font-weight: 600;
  font-family: var(--mono);
}

/* ==========================================================================
   Filter chips — flat editorial style
   ========================================================================== */
.filter-bar {
  display: flex; gap: 6px; margin: 16px 0;
  flex-wrap: wrap; align-items: center;
}
.filter-chip {
  font-size: 12px; padding: 5px 12px; border-radius: 2px;
  background: var(--paper); border: 1px solid var(--rule);
  color: var(--ink-soft); cursor: pointer; transition: all 0.15s;
  font-weight: 600; user-select: none;
  font-family: var(--sans);
}
.filter-chip:hover {
  border-color: var(--teal); color: var(--teal);
}
.filter-chip.active {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}
.filter-label {
  font-size: 11px; color: var(--ink-mute); text-transform: uppercase;
  letter-spacing: 0.06em; font-weight: 700; margin-right: 4px;
}

/* Search box */
.search-box {
  width: 100%; padding: 10px 14px;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); color: var(--ink);
  font-size: 14px; margin-bottom: 14px; transition: border-color 0.15s;
  font-family: var(--sans);
}
.search-box:focus {
  outline: none; border-color: var(--teal);
}
.search-box::placeholder { color: var(--ink-faint); }

/* ==========================================================================
   Vital signs — stock ticker style for datacenters
   ========================================================================== */
.vital-signs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 12px 0;
  background: var(--paper-warm);
}
.vital-cell {
  padding: 10px 14px;
  border-right: 1px solid var(--rule-soft);
}
.vital-cell:last-child { border-right: none; }
.vital-label {
  font-size: 10px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700;
  margin-bottom: 3px;
}
.vital-value {
  font-family: var(--serif); font-size: 16px; font-weight: 700;
  color: var(--ink); line-height: 1;
}
.vital-value.mono { font-family: var(--mono); font-size: 14px; }

/* ==========================================================================
   Detail page — editorial spec sheet
   ========================================================================== */
.detail-header {
  padding: 28px 0 20px; border-bottom: 2px solid var(--ink);
  margin-bottom: 28px;
}
.detail-header h1 {
  font-family: var(--serif);
  font-size: 30px; font-weight: 700; color: var(--ink);
  margin-bottom: 6px; letter-spacing: -0.02em; line-height: 1.15;
}
.detail-header .subtitle { font-size: 15px; color: var(--ink-soft); }
.detail-header .badges-row { margin-top: 12px; display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }

.detail-grid {
  display: grid; grid-template-columns: 1fr 300px; gap: 32px;
}

.detail-section-title {
  font-family: var(--serif);
  font-size: 18px; font-weight: 700; color: var(--ink);
  margin: 24px 0 12px; padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.detail-section-title:first-child { margin-top: 0; }

.info-table {
  width: 100%; border-collapse: collapse;
}
.info-table th, .info-table td {
  padding: 10px 14px; text-align: left;
  border-bottom: 1px solid var(--rule-soft);
}
.info-table th {
  font-size: 11px; color: var(--ink-mute); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  white-space: nowrap; width: 35%; background: var(--paper-warm);
}
.info-table td {
  font-size: 14px; color: var(--ink);
}
.info-table td.mono { font-family: var(--mono); font-size: 13px; }

/* Big number display — the money IS the story */
.big-number {
  font-family: var(--serif);
  font-size: 48px; font-weight: 700; color: var(--teal);
  line-height: 1; letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.big-number.forest { color: var(--forest); }
.big-number.sienna { color: var(--sienna); }
.big-number-label {
  font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
}

/* Sidebar */
.sidebar-card {
  background: var(--paper-warm); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 18px; margin-bottom: 14px;
}
.sidebar-card h3 {
  font-family: var(--serif);
  font-size: 14px; font-weight: 700; color: var(--ink);
  margin-bottom: 12px; padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.sidebar-card .sidebar-list { list-style: none; margin: 0; padding: 0; }
.sidebar-card .sidebar-list li {
  padding: 7px 0; border-bottom: 1px solid var(--rule-soft);
  font-size: 13px;
}
.sidebar-card .sidebar-list li:last-child { border-bottom: none; }
.sidebar-card .sidebar-fact {
  font-size: 13px; color: var(--ink); line-height: 1.7;
}
.sidebar-card .sidebar-fact strong { color: var(--ink); }

/* ==========================================================================
   Cards grid (used sparingly — prefer tables)
   ========================================================================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 18px;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column;
}
.card:hover {
  border-color: var(--teal);
  box-shadow: 0 2px 8px rgba(13,115,119,0.08);
}
.card-title {
  font-family: var(--serif);
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin-bottom: 6px; line-height: 1.25;
}
.card-subtitle {
  font-size: 13px; color: var(--ink-mute); margin-bottom: 12px;
}
.card-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: auto; padding-top: 12px;
  border-top: 1px solid var(--rule-soft);
}
.card-meta-item { font-size: 12px; color: var(--ink-mute); }
.card-meta-item strong { color: var(--ink); font-weight: 700; }

/* ==========================================================================
   Funding / Energy list — sorted, big numbers
   ========================================================================== */
.list-item {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 20px; align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule-soft);
  transition: background 0.15s;
}
.list-item:hover { background: var(--paper-warm); }
.list-item .li-amount {
  font-family: var(--serif);
  font-size: 24px; font-weight: 700; color: var(--teal);
  line-height: 1; letter-spacing: -0.02em;
}
.list-item .li-amount.forest { color: var(--forest); }
.list-item .li-body { min-width: 0; }
.list-item .li-name {
  font-family: var(--serif);
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin-bottom: 2px; line-height: 1.2;
}
.list-item .li-sub { font-size: 12.5px; color: var(--ink-mute); }
.list-item .li-meta { text-align: right; font-size: 12px; color: var(--ink-mute); white-space: nowrap; }
.list-item .li-meta .mono { font-family: var(--mono); }

/* ==========================================================================
   Mega projects — editorial cards with big numbers
   ========================================================================== */
.mega-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}
.mega-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color 0.15s, box-shadow 0.15s;
  display: flex; flex-direction: column;
}
.mega-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.mega-card .mc-rank {
  font-family: var(--mono); font-size: 11px; color: var(--ink-faint);
  margin-bottom: 6px;
}
.mega-card .mc-name {
  font-family: var(--serif);
  font-size: 17px; font-weight: 700; color: var(--ink);
  margin-bottom: 4px; line-height: 1.2;
}
.mega-card .mc-operator { font-size: 12.5px; color: var(--ink-mute); margin-bottom: 14px; }
.mega-card .mc-investment {
  font-family: var(--serif);
  font-size: 28px; font-weight: 700; color: var(--teal);
  line-height: 1; letter-spacing: -0.02em; margin-bottom: 12px;
}
.mega-card .mc-meta {
  display: flex; flex-wrap: wrap; gap: 12px;
  padding-top: 12px; border-top: 1px solid var(--rule-soft);
  font-size: 12px; color: var(--ink-mute);
}
.mega-card .mc-meta strong { color: var(--ink); font-weight: 700; }
.mega-card .mc-meta .mono { font-family: var(--mono); }

/* ==========================================================================
   Timeline (regulations) — editorial timeline
   ========================================================================== */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px;
  width: 2px; background: var(--rule);
}
.timeline-item {
  display: flex; gap: 16px; padding: 12px 0 12px 20px;
  border-bottom: 1px solid var(--rule-soft); position: relative;
}
.timeline-item::before {
  content: ""; position: absolute; left: 0; top: 18px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--teal); border: 2px solid var(--paper);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-date {
  font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--teal);
  white-space: nowrap; min-width: 90px;
}
.timeline-content { font-size: 13.5px; color: var(--ink); line-height: 1.5; }
.timeline-content .badge { margin-top: 4px; }

/* Countdown badge — regulation deadlines */
.countdown {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 2px;
  background: var(--sienna-bg); color: var(--sienna);
  border: 1px solid var(--sienna);
}
.countdown.past { background: var(--forest-bg); color: var(--forest); border-color: var(--forest); }
.countdown .cd-num { font-size: 14px; font-weight: 800; }

/* Regulation timeline page layout */
.reg-timeline {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.reg-entry {
  display: grid;
  grid-template-columns: 200px 1fr auto;
  gap: 16px; align-items: start;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule-soft);
  transition: background 0.15s;
}
.reg-entry:last-child { border-bottom: none; }
.reg-entry:hover { background: var(--paper-warm); }
.reg-entry .re-juris {
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.04em; font-weight: 700;
}
.reg-entry .re-body { min-width: 0; }
.reg-entry .re-name {
  font-family: var(--serif);
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin-bottom: 3px; line-height: 1.2;
}
.reg-entry .re-status { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 6px; }
.reg-entry .re-dates { font-size: 12px; color: var(--ink-mute); font-family: var(--mono); }
.reg-entry .re-countdown { text-align: right; }

/* ==========================================================================
   World Map — warm theme
   ========================================================================== */
.map-section { padding: 28px 0; }
.map-header { margin-bottom: 20px; }
.map-header h1 {
  font-family: var(--serif);
  font-size: 28px; font-weight: 700; color: var(--ink);
  margin-bottom: 6px; letter-spacing: -0.02em;
}
.map-header p { font-size: 14px; color: var(--ink-soft); max-width: 600px; }
.map-controls {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 16px; align-items: center;
}
.map-container {
  background: var(--paper-warm); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 16px; margin-bottom: 16px;
  position: relative; overflow: hidden;
}
.map-svg {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  background: var(--paper);
}
.map-svg .map-land {
  fill: var(--paper-dark);
  stroke: var(--rule);
  stroke-width: 0.5;
}
.map-svg .map-grid {
  stroke: var(--rule-soft);
  stroke-width: 0.5; fill: none;
}
.map-dot {
  cursor: pointer;
  transition: r 0.15s, filter 0.15s;
}
.map-dot:hover { filter: drop-shadow(0 0 4px currentColor); }
.map-dot.operational { fill: var(--forest); }
.map-dot.construction { fill: var(--amber); }
.map-dot.announced { fill: var(--purple); }
.map-dot.hidden { display: none; }
.map-tooltip {
  position: absolute; display: none;
  background: var(--ink); border: 1px solid var(--ink);
  border-radius: var(--radius); padding: 8px 12px;
  font-size: 12px; color: var(--paper); pointer-events: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); z-index: 50;
  max-width: 260px; transform: translate(-50%, -130%);
}
.map-tooltip.show { display: block; }
.map-tooltip .mt-name { font-weight: 700; margin-bottom: 2px; font-family: var(--serif); font-size: 13px; }
.map-tooltip .mt-meta { font-size: 11px; color: var(--ink-faint); }
.map-legend {
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
  padding: 12px; background: var(--paper-warm);
  border: 1px solid var(--rule); border-radius: var(--radius);
  font-size: 12.5px; color: var(--ink-soft);
}
.legend-item { display: flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; }
.legend-dot.green { background: var(--forest); }
.legend-dot.yellow { background: var(--amber); }
.legend-dot.purple { background: var(--purple); }
.map-count {
  text-align: center; font-size: 13px; color: var(--ink-mute);
  margin-top: 10px; font-family: var(--mono);
}
.map-count strong { color: var(--teal); }
.map-preview {
  background: var(--paper-warm); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 16px; margin-bottom: 8px;
}
.map-preview .map-svg { max-height: 320px; }
.map-cta { text-align: center; margin-top: 12px; }

/* ==========================================================================
   Dashboard — analytics with warm palette
   ========================================================================== */
.dashboard-header {
  padding: 28px 0 16px; border-bottom: 2px solid var(--ink);
  margin-bottom: 20px;
}
.dashboard-header h1 {
  font-family: var(--serif);
  font-size: 30px; font-weight: 700; color: var(--ink);
  margin-bottom: 6px; letter-spacing: -0.02em;
}
.dashboard-header p { font-size: 14px; color: var(--ink-soft); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 32px;
  background: var(--paper);
}
.stat-card {
  padding: 16px 18px;
  border-right: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.stat-card .sc-value {
  font-family: var(--serif);
  font-size: 24px; font-weight: 700; color: var(--ink);
  line-height: 1.1; margin-bottom: 4px; letter-spacing: -0.02em;
}
.stat-card .sc-value.teal { color: var(--teal); }
.stat-card .sc-label {
  font-size: 10.5px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700;
}

.chart-section {
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 22px; margin-bottom: 16px;
}
.chart-section h3 {
  font-family: var(--serif);
  font-size: 16px; font-weight: 700; color: var(--ink);
  margin-bottom: 18px; padding-bottom: 6px;
  border-bottom: 1px solid var(--rule);
}
.chart-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* Horizontal bar charts */
.bar-chart { display: flex; flex-direction: column; gap: 8px; }
.bar-row {
  display: grid; grid-template-columns: 160px 1fr 80px;
  align-items: center; gap: 10px;
}
.bar-label {
  font-size: 12.5px; color: var(--ink); text-align: right;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.bar-track {
  background: var(--paper-warm); border-radius: 2px;
  height: 18px; overflow: hidden; border: 1px solid var(--rule-soft);
}
.bar-fill {
  height: 100%; border-radius: 2px;
  background: var(--teal);
  width: 0; transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-fill.fill-energy { background: var(--forest); }
.bar-fill.fill-funding { background: var(--teal); }
.bar-fill.fill-warm { background: var(--amber); }
.bar-fill.fill-success { background: var(--forest); }
.bar-value {
  font-size: 11.5px; color: var(--ink-mute); font-weight: 700;
  text-align: left; white-space: nowrap; font-family: var(--mono);
}

/* Donut chart */
.donut-chart {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  justify-content: center;
}
.donut {
  width: 150px; height: 150px; border-radius: 50%;
  position: relative;
}
.donut::after {
  content: ""; position: absolute; inset: 26px;
  border-radius: 50%; background: var(--paper);
}
.donut-center {
  position: absolute; inset: 0; display: flex;
  flex-direction: column; align-items: center; justify-content: center;
  z-index: 1;
}
.donut-center .dc-value {
  font-family: var(--serif); font-size: 24px; font-weight: 700; color: var(--ink);
}
.donut-center .dc-label {
  font-size: 10px; color: var(--ink-mute); text-transform: uppercase;
  letter-spacing: 0.05em; font-weight: 700;
}
.donut-legend { display: flex; flex-direction: column; gap: 8px; }
.donut-legend-item {
  display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink);
}
.donut-legend-item .dl-dot { width: 10px; height: 10px; border-radius: 2px; }
.donut-legend-item .dl-val {
  color: var(--ink-mute); margin-left: auto; font-weight: 700;
  font-family: var(--mono); font-size: 11.5px;
}

/* ==========================================================================
   Briefing article — editorial style
   ========================================================================== */
.briefing {
  max-width: 720px; margin: 0 auto; padding: 28px 0;
}
.briefing h1 {
  font-family: var(--serif);
  font-size: 32px; font-weight: 700; color: var(--ink);
  margin-bottom: 10px; letter-spacing: -0.02em; line-height: 1.15;
}
.briefing .meta {
  font-family: var(--mono); font-size: 12px; color: var(--ink-mute);
  margin-bottom: 24px; padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.briefing .lead {
  font-family: var(--serif); font-size: 18px; color: var(--ink-soft);
  line-height: 1.6; margin-bottom: 28px; font-style: italic;
}
.briefing h2 {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700; color: var(--ink);
  margin: 28px 0 12px; line-height: 1.25;
}
.briefing p { margin-bottom: 14px; line-height: 1.75; font-size: 15px; color: var(--ink); }
.briefing ul, .briefing ol { margin: 0 0 14px 22px; }
.briefing li { margin-bottom: 6px; line-height: 1.7; font-size: 15px; }
.briefing blockquote {
  border-left: 3px solid var(--teal);
  padding: 12px 20px; margin: 16px 0;
  background: var(--paper-warm); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--ink-soft); font-style: italic;
}
.briefing code {
  background: var(--paper-warm); padding: 2px 6px;
  border-radius: 2px; font-family: var(--mono);
  font-size: 13px; color: var(--teal-dark);
}

/* ==========================================================================
   Providers directory
   ========================================================================== */
.provider-card {
  background: var(--paper); border: 1px solid var(--rule);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius); padding: 20px;
  transition: box-shadow 0.15s;
}
.provider-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.provider-card .pc-name {
  font-family: var(--serif);
  font-size: 18px; font-weight: 700; color: var(--ink);
  margin-bottom: 12px; line-height: 1.2;
}
.provider-stats {
  display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 14px;
}
.provider-stat .ps-value {
  font-family: var(--serif);
  font-size: 22px; font-weight: 700; color: var(--teal);
  line-height: 1; letter-spacing: -0.02em;
}
.provider-stat .ps-label {
  font-size: 10px; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700;
}
.provider-dcs {
  display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px;
}
.provider-dc-chip {
  font-size: 11.5px; padding: 3px 9px; border-radius: 2px;
  background: var(--paper-warm); border: 1px solid var(--rule);
  color: var(--ink-soft); transition: all 0.15s;
}
.provider-dc-chip:hover {
  color: var(--teal); border-color: var(--teal); text-decoration: none;
}

/* ==========================================================================
   GPU spec bars — visual comparison
   ========================================================================== */
.spec-bars {
  display: flex; flex-direction: column; gap: 8px;
  margin: 14px 0;
}
.spec-bar-row {
  display: grid; grid-template-columns: 80px 1fr 60px;
  align-items: center; gap: 10px;
}
.spec-bar-label {
  font-size: 11px; color: var(--ink-mute); font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.spec-bar-track {
  background: var(--paper-warm); border-radius: 2px;
  height: 14px; overflow: hidden; border: 1px solid var(--rule-soft);
}
.spec-bar-fill {
  height: 100%; border-radius: 2px;
  background: var(--teal); transition: width 0.5s ease;
}
.spec-bar-value {
  font-size: 11px; color: var(--ink); font-weight: 700;
  font-family: var(--mono); text-align: right;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  background: var(--paper-warm);
  border-top: 2px solid var(--ink);
  padding: 40px 0 20px; margin-top: 48px;
}
.footer-container {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 32px;
}
.footer-section h4 {
  font-family: var(--serif);
  font-size: 14px; font-weight: 700; color: var(--ink);
  margin-bottom: 12px;
}
.footer-section p { font-size: 13px; color: var(--ink-soft); line-height: 1.6; }
.footer-section ul { list-style: none; }
.footer-section ul li { margin-bottom: 6px; }
.footer-section ul a { font-size: 13px; color: var(--ink-soft); }
.footer-section ul a:hover { color: var(--teal); }
.footer-bottom {
  max-width: var(--max); margin: 28px auto 0; padding: 16px var(--gutter);
  border-top: 1px solid var(--rule);
}
.footer-bottom p { font-size: 12px; color: var(--ink-mute); text-align: center; }

/* Newsletter form */
.newsletter-form {
  display: flex; gap: 6px; margin-top: 10px;
}
.newsletter-input {
  flex: 1; padding: 8px 12px;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius); color: var(--ink); font-size: 13px;
  font-family: var(--sans); transition: border-color 0.15s;
}
.newsletter-input:focus { outline: none; border-color: var(--teal); }
.newsletter-button {
  padding: 8px 16px;
  background: var(--ink); color: var(--paper);
  border: none; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; cursor: pointer;
  font-family: var(--sans); transition: background 0.15s;
  white-space: nowrap;
}
.newsletter-button:hover { background: var(--teal); }
.newsletter-note { font-size: 11px; color: var(--ink-mute); margin-top: 6px; }

/* ==========================================================================
   CTA box — simple, editorial
   ========================================================================== */
.cta-box {
  background: var(--paper-warm); border: 1px solid var(--rule);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius); padding: 28px;
  margin: 36px 0;
}
.cta-box h3 {
  font-family: var(--serif);
  font-size: 20px; font-weight: 700; color: var(--ink);
  margin-bottom: 8px;
}
.cta-box p { color: var(--ink-soft); margin-bottom: 14px; font-size: 14px; }
.cta-button {
  display: inline-block; padding: 9px 22px;
  background: var(--ink); color: var(--paper);
  border-radius: var(--radius); font-weight: 600;
  font-size: 13px; transition: background 0.15s;
  text-decoration: none;
}
.cta-button:hover {
  background: var(--teal); color: var(--paper); text-decoration: none;
}

/* ==========================================================================
   Expandable rows (datacenter list)
   ========================================================================== */
.expandable-row { cursor: pointer; }
.expandable-row .expand-arrow {
  display: inline-block; transition: transform 0.2s;
  font-size: 10px; color: var(--ink-mute); margin-left: 4px;
}
.expandable-row.open .expand-arrow { transform: rotate(90deg); }
.expand-detail {
  display: none; padding: 14px 20px;
  background: var(--paper-warm);
  border-bottom: 1px solid var(--rule-soft);
}
.expand-detail.show { display: block; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .chart-grid { grid-template-columns: 1fr; }
  .footer-container { grid-template-columns: 1fr 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .vital-signs { grid-template-columns: repeat(2, 1fr); }
  .vital-cell:nth-child(2) { border-right: none; }
  .list-item { grid-template-columns: 100px 1fr; }
  .list-item .li-meta { display: none; }
}
@media (max-width: 768px) {
  .nav-container { flex-wrap: wrap; height: auto; padding: 10px var(--gutter); gap: 10px; }
  .nav-links { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 4px; }
  .nav-search { flex: 1 1 100%; order: 3; }
  .cards-grid, .mega-grid { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 110px 1fr 60px; }
  .bar-label { font-size: 11px; }
  .directory-header h1, .detail-header h1, .dashboard-header h1 { font-size: 24px; }
  .section { padding: 24px 0; }
  .reg-entry { grid-template-columns: 1fr; }
  .reg-entry .re-countdown { text-align: left; }
  .metric-cell { padding: 14px 16px; }
  .metric-value { font-size: 22px; }
  .big-number { font-size: 36px; }
}
@media (max-width: 480px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .vital-signs { grid-template-columns: 1fr; }
  .vital-cell { border-right: none; border-bottom: 1px solid var(--rule-soft); }
  .vital-cell:last-child { border-bottom: none; }
}