/* Page-specific tables and economic profile; reading controls use the shared article styles. */
.economy-lead .infobox { width: 310px; }
.article .infobox-note { font-size: 11px; line-height: 1.5; margin: 10px 8px 6px; }
.infobox dt { font-weight: 600; }
.infobox dl { grid-template-columns: 108px 1fr; gap: 7px 9px; }
.infobox-image img { display: block; aspect-ratio: 3 / 2; object-fit: cover; }
.economic-table-wrap { margin: 20px 0 24px; overflow-x: auto; }
.economic-table-wrap .wikitable { margin: 0; }
.ownership-table tbody th { width: 80%; }
.ownership-table td { text-align: right; white-space: nowrap; }
.ownership-table .table-total th, .ownership-table .table-total td { font-weight: 600; }
.article .table-note { margin: 9px 0 0; font-size: 12px; line-height: 1.5; color: var(--muted); }
.regional-table th, .regional-table td { vertical-align: top; }
.regional-table tbody th { font-weight: 600; width: 27%; }
.regional-table td { width: 36.5%; }
.energy-accounts { margin: 24px 0; padding: 16px 18px 12px; border: 1px solid var(--line); background: var(--panel); }
.energy-accounts figcaption { font-size: 13px; line-height: 1.6; margin-bottom: 10px; }
.energy-accounts figcaption strong { font-size: 15px; }
.energy-accounts table { width: 100%; border-collapse: collapse; font-size: 14px; }
.energy-accounts th, .energy-accounts td { border-bottom: 1px solid var(--subtle-line); padding: 10px 0; text-align: left; }
.energy-accounts thead th { font-size: 12px; color: var(--muted); font-weight: 600; }
.energy-accounts tbody th { font-weight: 400; width: 62%; padding-right: 14px; }
.energy-accounts td { position: relative; font-variant-numeric: tabular-nums; text-align: right; }
.energy-accounts td span:last-child { position: relative; display: inline-block; padding-left: 9px; background: var(--panel); }
.energy-bar { position: absolute; width: var(--share); left: 0; top: 35%; height: 30%; background: var(--teal); }
.article .energy-accounts p { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 12px 0 0; }
@media (min-width: 621px) {
  .article .economy-lead { display: block; }
  .article #history h2 { overflow: hidden; }
  .article #ownership { clear: both; }
}
@media (max-width: 620px) {
  .economy-lead .infobox { width: min(100%, 390px); }
  .regional-table { font-size: 12px; }
  .regional-table th, .regional-table td { padding: 8px; overflow-wrap: anywhere; }
  .ownership-table { font-size: 12px; }
  .ownership-table th, .ownership-table td { padding: 8px; overflow-wrap: anywhere; }
  .energy-accounts { padding: 13px 12px; margin-inline: 0; }
  .energy-accounts table { font-size: 12px; }
  .energy-accounts tbody th { width: 67%; }
}
@media print {
  .energy-accounts { break-inside: avoid; }
  .energy-bar { print-color-adjust: exact; }
}

.energy-accounts .regional-energy { table-layout: fixed; }
.energy-accounts .regional-energy th:first-child { width: 46%; }
.energy-accounts .regional-energy th:not(:first-child), .energy-accounts .regional-energy td { width: 18%; text-align: right; padding-left: 8px; }
.energy-accounts .regional-energy thead th { vertical-align: bottom; }

@media (max-width: 620px) { .energy-accounts .regional-energy thead th:not(:first-child) { font-size: 11px; padding-left: 2px; } }

@media (max-width: 950px) {
  .contents a[href="#ownership"] + .toc-sub { display: block; columns: 1; }
}

/* The static fuel example stays readable when interactive controls cannot load. */
.fuel-budget [hidden] { display: none !important; }
.article .fuel-budget .fuel-intro { font-size: 14px; color: var(--text); margin: 12px 0 18px; }
.fuel-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0; }
.fuel-controls label { display: grid; align-content: start; gap: 6px; font-size: 13px; }
.fuel-budget input, .fuel-budget select, .fuel-budget button { font: inherit; color: var(--text); background: var(--background); border: 1px solid var(--line); border-radius: 2px; }
.fuel-budget input, .fuel-budget select { min-width: 0; width: 100%; padding: 7px; box-sizing: border-box; }
.fuel-budget input:focus-visible, .fuel-budget select:focus-visible, .fuel-budget button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fuel-budget [aria-invalid="true"] { border-color: var(--accent); outline: 1px dashed var(--accent); }
.fuel-result-heading { font-size: 13px; font-weight: 600; margin-top: 16px; }
.fuel-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 10px 0 16px; }
.fuel-totals > div { border-left: 3px solid var(--teal); padding-left: 10px; min-width: 0; }
.fuel-totals dt { color: var(--muted); font-size: 12px; }
.fuel-totals dd { margin: 4px 0 0; font-size: 19px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fuel-budget table { table-layout: fixed; }
.fuel-budget tbody th { width: auto; padding-right: 12px; }
.fuel-budget th:first-child { width: 48%; }
.fuel-budget th:nth-child(2) { width: 21%; text-align: right; padding-right: 12px; }
.fuel-budget th:nth-child(3) { width: 31%; text-align: right; }
.fuel-budget .fuel-share { padding-right: 12px; }
.fuel-share-control input { max-width: 6.5em; text-align: right; }
.fuel-budget .fuel-energy output { position: relative; background: var(--panel); padding-left: 5px; overflow-wrap: anywhere; }
.fuel-reset { margin-top: 14px; }
.fuel-reset button { padding: 7px 10px; font-size: 12px; cursor: pointer; }
.article .fuel-budget .fuel-status { font-weight: 600; color: var(--text); }
.fuel-status:empty { display: none; }
.article .fuel-budget .fuel-summary { color: var(--text); font-size: 13px; }
@media (max-width: 620px) {
  .fuel-controls { grid-template-columns: 1fr; }
  .fuel-budget th:first-child { width: 44%; }
  .fuel-budget th:nth-child(2) { width: 25%; padding-right: 8px; }
  .fuel-budget .fuel-share { padding-right: 8px; }
  .fuel-share-control input { padding: 7px 3px; }
}
@media print { .fuel-controls, .fuel-reset { display: none; } }

.article #output { clear: both; }
.matter-price-table { width: 100%; }
.matter-price-table th, .matter-price-table td { padding: 9px 11px; }
.matter-price-table td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gup-history { margin: 24px 0; padding: 16px 18px; border: 1px solid var(--line); background: var(--panel); }
.gup-history figcaption { font-size: 13px; line-height: 1.6; margin-bottom: 8px; }
.gup-history figcaption strong { font-size: 16px; }
.article .gup-scroll-hint { display: none; font-size: 12px; color: var(--muted); }
.gup-chart-scroll { overflow-x: auto; max-width: 100%; }
.gup-chart-scroll svg { display: block; width: 100%; height: auto; min-width: 720px; }
.gup-chart-scroll:focus-visible, .economic-table-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.gup-data { margin-top: 14px; font-size: 13px; }
.gup-data summary { cursor: pointer; }
.gup-data .economic-table-wrap { margin-bottom: 0; }
.gup-milestones { width: 100%; font-size: 12px; }
.gup-milestones td:last-child { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.article .gup-downloads { font-size: 12px; margin: 13px 0 0; }
@media (max-width: 620px) {
  .gup-history { margin-inline: 0; padding: 13px 12px; }
  .article .gup-scroll-hint { display: block; }
  .matter-price-table { font-size: 12px; }
  .matter-price-table th, .matter-price-table td { padding: 8px; }
}
@media print {
  .gup-history { break-inside: avoid; }
  .gup-chart-scroll svg { min-width: 0; }
  .gup-downloads, .article .gup-scroll-hint { display: none; }
}

/* Native radio selection also works without JavaScript. */
.gup-views { display: none; border: 0; padding: 0; margin: 14px 0; gap: 8px 20px; flex-wrap: wrap; }
.gup-views legend { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.gup-views label { display: inline-flex; gap: 5px; align-items: center; font-size: 13px; cursor: pointer; }
.gup-views input { accent-color: var(--teal); }
.gup-views input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.article .gup-view-note, .gup-assumptions { font-size: 13px; line-height: 1.65; }
.gup-assumptions { margin-top: 14px; }
.gup-assumptions summary { cursor: pointer; }
.gup-view { display: none; }
.gup-view-nominal { display: block; }
@supports selector(:has(*)) {
  .gup-views { display: flex; }
  .gup-history:has([value="real"]:checked) .gup-view-nominal,
  .gup-history:has([value="matter"]:checked) .gup-view-nominal,
  .gup-history:has([value="prices"]:checked) .gup-view-nominal { display: none; }
  .gup-history:has([value="real"]:checked) .gup-view-real,
  .gup-history:has([value="matter"]:checked) .gup-view-matter,
  .gup-history:has([value="prices"]:checked) .gup-view-prices { display: block; }
}
