/* Analysis workspace extensions; shared site styling remains in styles.css. */
.energy-page .intro { padding-bottom: 26px; }
.scope-heading { display: flex; justify-content: space-between; gap: 15px; font: 9px/1.6 monospace; color: var(--muted); padding: 0 0 12px; }
.scope-heading p:first-child { color: var(--ink); }
.scope-separator { margin: 0 10px; color: #b0b2a8; }
.energy-page .metrics { margin-bottom: 24px; }
.energy-page .metrics .eyebrow { font-size: 9px; }
.energy-page .metric-caption { font-size: 9px; }
.energy-page .workspace { grid-template-columns: 218px minmax(0, 1fr); min-height: 0; }
.energy-page .sidebar { padding: 22px 16px 18px; min-width: 0; }
.energy-page .sidebar-title { margin-bottom: 18px; }
.energy-page .sidebar-title h2 { font-size: 14px; }
.filters-toggle { display: none; }
.filter-options .region-label { display: block; margin-top: 22px; }
.filter-options > select { width: 100%; padding: 9px 6px; font-size: 11px; }
.filter-presets { border: 0; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.filter-presets legend { padding: 0 0 10px; }
.filter-presets button { font: 9px monospace; padding: 6px 7px; border: 1px solid var(--line); color: var(--muted); }
.filter-presets button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.energy-page .technology-filters { margin-top: 24px; }
.energy-page .filter-row { min-height: 33px; gap: 7px; font-size: 11px; }
.energy-page .tech-symbol { width: 18px; height: 18px; }
.tech-symbol svg { width: 18px; height: 18px; overflow: visible; }
.energy-page .filter-actions { margin: 10px 0 6px; }
.filter-explanation { font: 9px/1.8 monospace; color: var(--muted); padding: 14px 0 0; }
.energy-page .sidebar-bottom { padding-top: 28px; }
.energy-page .sidebar-bottom > p:nth-child(2) { font-size: 10px; }
.energy-page .map-toolbar { min-height: 58px; gap: 12px; padding: 12px 18px; flex-wrap: wrap; }
.energy-page .results-label { font-size: 9px; width: auto; order: 0; }
.toolbar-actions { margin-left: auto; display: flex; gap: 20px; }
.toolbar-actions .plain-link { font-size: 9px; gap: 8px; }
.toolbar-actions button:disabled { opacity: .45; cursor: default; }
.explorer-body { display: grid; grid-template-columns: minmax(0, 1fr) 275px; flex: 1; min-height: 0; }
.map-column { display: flex; flex-direction: column; min-width: 0; }
.map-measures { display: flex; justify-content: space-between; align-items: center; gap: 15px; min-height: 44px; padding: 9px 18px; border-bottom: 1px solid var(--line); background: #fcfcfa; }
.energy-page .size-control { margin-left: 0; font-size: 9px; }
.energy-page .size-control > span { display: inline; }
.energy-page .size-control select { background: transparent; font-size: 10px; }
.labels-toggle { display: flex; align-items: center; gap: 6px; color: var(--muted); font: 9px monospace; cursor: pointer; white-space: nowrap; }
.labels-toggle input { accent-color: var(--ink); width: 12px; height: 12px; margin: 0; }
.energy-page .map-stage { min-height: 620px; }
.energy-page .map-label { top: 18px; left: 18px; font-size: 8px; }
.energy-page .map-controls { top: 45px; right: 15px; }
.north-indicator { position: absolute; left: 18px; top: 51px; color: #828679; font: 8px monospace; display: flex; align-items: center; flex-direction: column; pointer-events: none; gap: 2px; }
.north-indicator span { font: 23px Arial, sans-serif; }
.energy-page .map-legend { background: #fffffff0; border: 1px solid #dddfd5; padding: 11px 13px; bottom: 33px; left: 15px; }
.energy-page .map-legend > div > p:first-child { font-size: 9px; color: var(--ink); }
.energy-page .map-legend > div > p:last-child { font-size: 8px; color: var(--muted); }
.legend-scale { display: flex; align-items: flex-end; gap: 17px; padding: 8px 0; }
.legend-benchmark { display: flex; align-items: center; flex-direction: column; gap: 5px; font: 8px monospace; color: var(--muted); }
.legend-benchmark > span { border: 1px solid #252722; background: #fafaf8; border-radius: 50%; display: block; box-sizing: content-box; }
.energy-page .map-attribution { font-size: 7px; bottom: 5px; }
.analysis-rail { border-left: 1px solid var(--line); min-width: 0; background: white; }
.analysis-heading { padding: 20px 18px 17px; }
.analysis-heading h2 { font-size: 20px; line-height: 1.25; font-weight: 400; letter-spacing: -.04em; margin: 9px 0; }
.analysis-heading > p:last-child { color: var(--muted); font: 9px/1.5 monospace; }
.analysis-tabs { display: flex; border-block: 1px solid var(--line); padding: 0 18px; gap: 19px; }
.analysis-tabs button { font: 10px/1.5 Arial, sans-serif; color: var(--muted); padding: 13px 0; position: relative; white-space: nowrap; }
.analysis-tabs .selected { color: var(--ink); }
.analysis-tabs .selected::after { content: ''; position: absolute; bottom: -1px; left: 0; right: 0; height: 2px; background: var(--ink); }
.analysis-section { padding: 0 18px 18px; }
.supply-split { display: grid; gap: 8px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.supply-split > div { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.supply-split span { font: 10px/1.5 Arial, sans-serif; color: var(--muted); }
.supply-split strong { font: 12px/1.5 monospace; font-weight: 400; }
.analysis-instruction { font: 9px/1.8 monospace; color: var(--muted); padding: 15px 0 10px; }
.mix-row, .nation-row, .leader-row { display: block; width: 100%; text-align: left; border-bottom: 1px solid #eeeeE9; padding: 11px 0; }
.mix-row:hover, .nation-row:hover, .leader-row:hover { background: #f7f7f3; color: var(--ink); }
.mix-row-top { display: flex; align-items: center; gap: 6px; font-size: 10px; }
.mix-row-top .mix-value { margin-left: auto; font: 9px monospace; }
.mix-row-top .tech-symbol { width: 14px; height: 14px; }
.mix-row-top .tech-symbol svg { width: 14px; height: 14px; }
.analysis-bar { display: block; height: 3px; margin: 8px 0 0; background: #eeefe9; }
.analysis-bar > span { display: block; height: 100%; background: #55594f; min-width: 0; }
.mix-row-foot { display: flex; justify-content: space-between; font: 8px/1.5 monospace; color: var(--muted); margin-top: 6px; }
.analysis-reset { margin-top: 16px; font-size: 9px; width: 100%; justify-content: space-between; }
.analysis-reset:disabled { color: #a2a69a; cursor: default; }
.nation-top { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 12px; }
.nation-top strong { font: 11px monospace; }
.nation-row small { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted); font: 8px/1.7 monospace; }
.nation-row:disabled { cursor: default; opacity: .55; }
.analysis-footnote { color: var(--muted); font: 8px/1.8 monospace; padding-top: 17px; }
.rank-control { display: flex; align-items: center; justify-content: space-between; gap: 10px; font: 9px monospace; color: var(--muted); padding: 17px 0 7px; }
.rank-control select { padding: 5px; border: 0; font: 10px monospace; color: var(--ink); }
.leader-row { display: grid; grid-template-columns: 16px 1fr; gap: 8px; }
.leader-index { color: var(--muted); font: 8px monospace; padding-top: 3px; }
.leader-name { font: 11px/1.5 Arial, sans-serif; }
.leader-meta { display: flex; justify-content: space-between; gap: 7px; margin-top: 5px; color: var(--muted); font: 8px/1.6 monospace; }
.leader-meta strong { font-weight: 400; color: var(--ink); }
.analysis-empty { padding: 20px 18px; font: 11px/1.7 Arial, sans-serif; color: var(--muted); }
.energy-page .site-detail { position: static; width: auto; border: 0; padding: 18px; margin: 0; box-shadow: none; max-height: none; }
.energy-page .site-detail h2 { margin-top: 12px; }
.energy-page .detail-top { margin: -3px -5px 20px 0; }
.energy-page .detail-facts > div { font-size: 9px; gap: 8px; }
.energy-page .detail-facts dd { max-width: 127px; }
.energy-page .detail-note { font: 9px/1.8 Arial, sans-serif; }
.energy-page .site-detail > .dark-button { width: 100%; margin: 3px 0 18px; }
.energy-page .map-status { min-height: 40px; gap: 15px; }
.energy-page .map-status > span { margin-left: 0; display: block; font-size: 8px; }
.energy-page #visible-sites { margin-left: auto; }
.energy-page .directory { min-height: 620px; }
.energy-page .directory-heading { padding: 16px; align-items: flex-start; }
.energy-page .directory-heading p { font: 10px/1.6 Arial, sans-serif; color: var(--muted); max-width: 220px; }
.energy-page .directory-scroll { max-height: 560px; }
.directory-actions { display: flex; gap: 6px; align-items: center; }
.directory-actions button { white-space: nowrap; font-size: 9px; padding: 5px 7px; }
.directory-actions button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.directory-actions button:disabled { color: #a3a69a; cursor: default; }
.comparison-section { border: 1px solid var(--line); margin-top: 24px; background: white; padding: 24px; scroll-margin-top: 20px; }
.comparison-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 25px; }
.comparison-heading h2 { font-size: 26px; font-weight: 400; letter-spacing: -.04em; margin: 9px 0; }
.comparison-heading p:last-child { font: 10px/1.6 Arial, sans-serif; color: var(--muted); }
.comparison-heading > div:last-child { display: flex; gap: 25px; padding-top: 8px; }
.comparison-table-scroll { overflow-x: auto; margin-top: 22px; }
.comparison-table { min-width: 500px; }
.comparison-table thead { position: static; background: white; }
.comparison-table thead th { padding: 12px 18px; text-transform: none; letter-spacing: 0; color: var(--ink); font: 13px/1.5 Arial, sans-serif; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 200px; }
.comparison-table thead th:first-child { min-width: 150px; width: 150px; }
.comparison-table tr > :first-child { position: sticky; left: 0; background: white; box-shadow: 1px 0 0 var(--line); z-index: 1; }
.comparison-table thead tr > :first-child { z-index: 2; }
.comparison-table th small { display: block; font: 8px/1.8 monospace; color: var(--muted); margin-top: 5px; }
.comparison-table th button { margin-top: 8px; color: var(--muted); font: 9px monospace; padding: 0; }
.comparison-table tbody th { font: 10px monospace; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--line); }
.comparison-table tbody td { font: 15px monospace; padding: 16px 18px; }
.comparison-table tbody tr:last-child > * { border-bottom: 0; }
.comparison-badge { display: inline-block; font: 8px/1.4 monospace; padding: 4px 5px; border: 1px solid var(--line); margin-top: 8px; color: var(--muted); }
.coverage-note { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-top: 20px; color: var(--muted); font: 9px/1.8 monospace; }
.coverage-note .status-dot { width: 4px; height: 4px; }
.coverage-note button { font-size: 9px; text-decoration: underline; text-underline-offset: 3px; }
.energy-page button:disabled { cursor: default; }

@media (min-width: 1700px) { .energy-page .workspace { grid-template-columns: 235px minmax(0, 1fr); } .explorer-body { grid-template-columns: minmax(0, 1fr) 300px; } .energy-page .map-stage { min-height: 740px; } }
@media (max-width: 1200px) { .explorer-body { grid-template-columns: minmax(0, 1fr) 250px; } .energy-page .workspace { grid-template-columns: 200px minmax(0, 1fr); } .energy-page .sidebar { padding-inline: 13px; } .analysis-heading, .analysis-section { padding-inline: 15px; } .analysis-tabs { padding-inline: 15px; gap: 15px; } .toolbar-actions { gap: 14px; } .energy-page .map-measures { padding-inline: 13px; } .energy-page .size-control { gap: 6px; } .energy-page .size-control > span { font-size: 8px; } .labels-toggle { font-size: 8px; } .energy-page .map-label { font-size: 7px; } }
@media (max-width: 1000px) { .explorer-body { grid-template-columns: minmax(0, 1fr); } .analysis-rail { border-left: 0; border-top: 1px solid var(--line); } .analysis-heading { padding: 18px; } .analysis-heading h2 { font-size: 21px; } .analysis-section { padding-inline: 18px; } #mix-breakdown { display: grid; grid-template-columns: 1fr 1fr; column-gap: 25px; } .supply-split { grid-template-columns: repeat(3, 1fr); gap: 15px; } .supply-split > div { display: block; } .supply-split strong { display: block; margin-top: 5px; } .supply-split span { font-size: 9px; } #region-breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; } #top-sites { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; } .energy-page .site-detail { padding: 20px; } .energy-page .site-detail .detail-facts { max-width: 460px; } .energy-page .site-detail .detail-note { max-width: 500px; } .energy-page .site-detail .dark-button, .energy-page .site-detail .detail-focus { max-width: 460px; } .energy-page .map-stage { min-height: 580px; } .energy-page .map-label { font-size: 8px; } }
@media (max-width: 620px) {
  .energy-page .intro { padding-bottom: 22px; } .scope-heading { font-size: 8px; padding-bottom: 10px; flex-wrap: wrap; gap: 4px; } .scope-heading > p:last-child { width: 100%; font-size: 7px; }
  .energy-page .metric-caption { font-size: 8px; } .energy-page .metrics .eyebrow { font-size: 8px; }
  .energy-page .workspace { display: flex; } .energy-page .sidebar { display: flex; flex-direction: column; padding: 16px 13px; gap: 0; }
  .energy-page .sidebar-title { width: 100%; margin-bottom: 13px; } .energy-page .search-field { padding: 9px; }
  .filters-toggle { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 13px 0 0; margin-top: 13px; font: 10px monospace; }
  .filters-toggle span:first-child { color: var(--muted); margin-left: auto; font-size: 8px; } .filter-options { display: none; }
  .sidebar.is-open .filter-options { display: block; } .filter-options .region-label { margin-top: 18px; } .filter-options > select { font-size: 11px; padding: 9px; }
  .filter-presets { margin-top: 18px; } .energy-page .technology-filters { margin-top: 23px; padding-top: 10px; }
  .energy-page .filter-actions { margin: 0; } .energy-page .filter-row { min-height: 30px; font-size: 9px; padding-inline: 6px; gap: 5px; }
  .energy-page .filter-row .tech-symbol { width: 14px; height: 14px; } .energy-page .filter-row .tech-symbol svg { width: 14px; height: 14px; }
  .filter-explanation { font-size: 8px; padding-top: 10px; } .energy-page .sidebar-bottom { padding-top: 14px; }
  .energy-page .sidebar-bottom > p { display: none; } .energy-page .export-button { font-size: 8px; padding-top: 12px; }
  .energy-page .map-toolbar { min-height: 55px; padding: 11px 12px; gap: 9px; } .energy-page .results-label { font-size: 8px; }
  .energy-page .toolbar-actions { width: 100%; justify-content: space-between; border-top: 1px solid #eeeeE9; padding-top: 9px; } .toolbar-actions .plain-link { font-size: 8px; }
  .energy-page .map-measures { padding: 8px 12px; min-height: 42px; gap: 8px; } .energy-page .size-control { gap: 5px; font-size: 8px; }
  .energy-page .size-control select { max-width: 108px; font-size: 9px; } .labels-toggle { font-size: 8px; gap: 5px; }
  .energy-page .map-stage { min-height: 535px; } .energy-page .map-label { font-size: 7px; top: 17px; left: 13px; }
  .energy-page .map-controls { top: 45px; right: 12px; } .north-indicator { left: 13px; }
  .energy-page .map-legend { left: 12px; bottom: 30px; padding: 9px 11px; } .energy-page .map-attribution { font-size: 6px; }
  .energy-page .map-status { padding: 10px 12px; gap: 7px; flex-wrap: wrap; } .energy-page .map-status p { max-width: none; font-size: 7px; } .energy-page #visible-sites { margin-left: auto; font-size: 7px; } .energy-page #zoom-label { display: none; }
  .analysis-heading { padding: 18px 14px; } .analysis-heading h2 { font-size: 21px; } .analysis-tabs { padding-inline: 14px; gap: 25px; }
  .analysis-tabs button { font-size: 11px; } .analysis-section { padding-inline: 14px; }
  .supply-split { gap: 10px; padding-block: 16px; } .supply-split span { font-size: 8px; } .supply-split strong { font-size: 11px; }
  #mix-breakdown, #region-breakdown, #top-sites { grid-template-columns: 1fr; } .mix-row { padding: 12px 0; }
  .mix-row-top { font-size: 11px; } .mix-row-top .mix-value { font-size: 10px; } .mix-row-foot { font-size: 8px; } .analysis-instruction { font-size: 9px; }
  .energy-page .site-detail { padding: 18px 14px; } .energy-page .site-detail h2 { font-size: 22px; } .energy-page .detail-note { font-size: 10px; }
  .energy-page .directory-heading { padding: 14px; } .energy-page .directory { min-height: 500px; } .energy-page .directory-scroll { max-height: 480px; }
  .comparison-section { padding: 20px 14px; margin-top: 20px; } .comparison-heading { flex-direction: column; gap: 10px; }
  .comparison-heading h2 { font-size: 23px; } .comparison-heading > div:last-child { gap: 28px; } .comparison-heading .plain-link { font-size: 8px; }
  .comparison-table-scroll { margin-top: 18px; } .comparison-table thead th { min-width: 175px; font-size: 12px; padding-inline: 12px; }
  .comparison-table thead th:first-child { min-width: 120px; } .comparison-table tbody td { font-size: 13px; padding: 14px 12px; }
  .coverage-note { font-size: 8px; line-height: 1.8; margin-top: 17px; } .coverage-note button { font-size: 8px; }
}
