/* Energy and Water Use (R2, Council Agenda): the brief and the agenda come from site.css, with four faces: three plates and the disclosure list. Below them,
   six chapters under the 14rem rail, each a heading, a plate where it has one, a line of text, and closed disclosures a reader opens. This file sets the
   chapters' text beside their figures, the disclosure face, the page's static figures, and the rail's two links out. Orange is the reading only: the plates'
   selection, never a disclosure marker or a hovered row (DIRECTION-R2 2.2). Everything here is CSS: no script draws a mark. */

/* Rail: the chapters, then the two ways out (Sources and Top), then the marks used on the page. */
.toc-out { display: none; }
.ru-key { display: none; }
@media (min-width: 1100px) {
  .page-body > .toc .toc-out { display: block; margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--rule); }
  .ru-key { display: block; margin-top: 16px; padding: 12px 0 0 14px; border-top: 1px solid var(--rule); }
  .ru-key p { display: flex; gap: 8px; margin: 0 0 8px; font-family: var(--body); font-size: 0.875rem; line-height: 1.3; color: var(--atni-text-secondary); }
  .ru-key .plate-square { margin-top: 0.2em; }
  .ru-key .ru-key-title { display: block; font-family: var(--display); font-weight: 500; font-size: 0.875rem; color: var(--atni-text-muted); }
}
.ru-key-dash { flex: none; width: 8px; height: 0; margin-top: 0.55em; border-top: 2px dashed var(--series-context); }
.ru-key-on { flex: none; width: 8px; height: 8px; margin-top: 0.2em; background: var(--energy-mark); }

/* The disclosure face: what five company reports hold, beside the first question of each set and the way to the meeting sheet. */
.ru-ask { display: grid; gap: 20px; align-content: start; }
.ru-ask > * { min-width: 0; }
.ru-ask .ru-fig { margin: 0; }
.ru-ask .ru-grid td, .ru-ask .ru-grid th { padding-block: 6px; }
.ask-firsts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; }
.ask-firsts li { display: grid; grid-template-rows: 1fr auto; gap: 6px; margin: 0; padding: 10px 0 12px; border-top: 1px solid var(--rule); }
.ask-firsts p { margin: 0; font-size: 0.875rem; line-height: 1.4; }
.ask-set-name { display: block; font-family: var(--display); font-weight: 600; font-size: 0.9375rem; color: var(--atni-text-heading); }
.ask-firsts .button { justify-self: start; min-height: 32px; padding: 4px 10px; font-size: 0.875rem; }
.ru-ask-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; max-width: none; margin: 16px 0 0; font-family: var(--display); font-weight: 500; font-size: 0.9375rem; }

/* Chapters: a compact heading, the chapter's plate at the column's width, then text beside figures. */
.content > .ru-section + .ru-section { margin-top: clamp(24px, 2vw, 40px); padding-top: clamp(20px, 1.5vw, 28px); border-top: 1px solid var(--grid); } /* tight, by the owner's ruling: the page's target is ten screens at 1440 */
.ru-section > h2 { margin-bottom: 12px; }
.ru-split { display: grid; gap: 24px; align-items: start; }
.ru-split > * { min-width: 0; }
.ru-text > p, .ru-section > p { max-width: var(--measure-wide); }
.ru-intro { max-width: var(--measure-wide); }
.ru-subhead { margin: 24px 0 8px; }
.ru-side > .ru-subhead { margin-top: 32px; }
@media (min-width: 1100px) {
  .ru-split { grid-template-columns: minmax(0, 11fr) minmax(0, 9fr); column-gap: clamp(24px, 2.5vw, 48px); }
}

/* Disclosures: each summary is a plain sentence a reader can skim, and every one starts closed, so the rule is the same everywhere (resource-use-09). A heading
   in a summary stays visible, so its deep link lands. The marker is ink: orange is the reading's. */
.ru-details { margin-top: 12px; }
.ru-detail { border-top: 1px solid var(--rule); }
.ru-detail:last-child { border-bottom: 1px solid var(--rule); }
.ru-detail > summary { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); padding-block: 10px; list-style: none; cursor: pointer; }
.ru-detail > summary::-webkit-details-marker { display: none; }
.ru-detail > summary::before { content: "+"; grid-row: 1 / span 2; font-family: var(--display); font-weight: 600; font-size: 1.125rem; line-height: 1.25; color: var(--atni-text-heading); }
.ru-detail[open] > summary::before { content: "\2212"; }
.ru-detail > summary:hover .ru-gist, .ru-detail > summary:hover h3 { text-decoration: underline 1px var(--control-edge); text-underline-offset: 0.2em; }
.ru-detail h3 { grid-column: 2; margin: 0 0 2px; font-size: 1.125rem; scroll-margin-top: 16px; }
.ru-gist { grid-column: 2; font-family: var(--display); font-weight: 500; font-size: 1.0625rem; line-height: 1.3; color: var(--atni-text-heading); }
.ru-detail h3 + .ru-gist { font-family: var(--body); font-weight: var(--atni-type-body-weight); font-size: 0.9375rem; line-height: 1.4; color: var(--atni-text-body); }
.ru-detail > :not(summary) { max-width: var(--measure-wide); margin: 0 0 12px 1.25rem; }
.ru-detail > .ru-pulls { max-width: none; }
.ru-section > .ru-notice, .ru-text > .ru-notice { max-width: var(--measure-wide); margin-top: 16px; }

/* How to read: four labels and the units, in rows that use the width. */
.ru-labels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 12px 24px; padding: 0; list-style: none; font-size: 0.9375rem; line-height: 1.45; }
.ru-labels li { margin: 0; padding-top: 8px; border-top: 1px solid var(--rule); }
.ru-labels strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.0625rem; color: var(--atni-text-heading); }
.ru-units { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: 12px 16px; font-size: 0.875rem; line-height: 1.35; color: var(--atni-text-secondary); }
.ru-units dt { font-family: var(--display); font-weight: 600; font-size: 1.0625rem; line-height: 1.2; color: var(--atni-text-heading); }
.ru-units dd { margin: 0; }

/* Figures: on the page ground, a claim for a title, and the reader's sentence at the foot. The marks are the plate's, 16 to 26px. */
.ru-fig {
  --mark: clamp(16px, 1vw + 5px, 26px);
  margin: 0 0 24px;
  print-color-adjust: exact;
  -webkit-print-color-adjust: exact;
}
.ru-fig p { max-width: none; }
.ru-fig figcaption { margin-bottom: 12px; }
.ru-fig .eyebrow { margin-bottom: 4px; }
.ru-fig .plate-title { margin: 0 0 4px; }
.ru-fig .caption { margin: 0; }
.ru-fig .plate-title, .ru-fig .caption { max-width: 60ch; } /* words keep a measure; the bars under them keep the column */
.ru-fig .ru-source { margin-top: 8px; font-size: 0.875rem; }
.ru-sub { margin: 16px 0 4px; font-family: var(--display); font-weight: 500; font-size: 0.875rem; line-height: 1.3; color: var(--atni-text-secondary); }
.ru-fig .plate-square, .ru-grid .plate-square { display: inline-block; vertical-align: 0.05em; margin-right: 4px; }

/* The boundary ruler's sixteen rows are one- or two-line labels with short values, so they set their own least row height (the kit allows it). Rows on the two
   rulers whose labels carry a second line keep half a line apart, so a row's status word never reads as the next row's label (P-ru critic 7). */
[data-plate="ru-boundary"] { --row-min: 2.75rem; --l: clamp(7rem, 36%, 17rem); } /* a wider label column keeps each name to one line, so sixteen rows stay short */
[data-plate="ru-forecasts"] { --v: clamp(9.5rem, 22%, 14rem); } /* "380 to 790 TWh" keeps its unit on its line */
#ru-electricity { --plot-h: clamp(14rem, 26vh, 22rem); } /* three bars need no more than this; the repeater height left them 90px apart */
:is([data-plate="ru-boundary"], [data-plate="ru-forecasts"]) .ladder-rows { row-gap: 0.375rem; }

/* The hour's key. The kit keys parts by their place in the first row, so the UK follow-up's remainder, which its study does not split, wore the Network ink.
   The plate's own key names a fourth part: half filled like the network, half hollow like the home, because it holds both (P-ru critic 3). */
[data-plate="ru-hour"] .plate-legend .plate-square { width: 14px; height: 10px; margin-top: 0.3em; box-sizing: border-box; background: var(--part-2); }
[data-plate="ru-hour"] .plate-legend .plate-square.is-p1 { background: var(--part-1); }
[data-plate="ru-hour"] .plate-legend .plate-square.is-p3 { background: none; border: 2px solid var(--part-2); }
[data-plate="ru-hour"] .plate-legend .plate-square.is-p4,
[data-plate="ru-hour"] [data-row="desnz-whole"] .meter-part.is-p2:not(.is-ghost) { background: linear-gradient(var(--part-2) 50%, var(--plot-ground) 50%); border: 2px solid var(--part-2); }
[data-plate="ru-hour"] .plate-legend .plate-square.is-ghost { background: none; border: 1.5px dashed var(--part-2); }
[data-plate="ru-hour"] .plate-legend .plate-square.is-spread { height: 2px; margin-top: 0.6em; background: var(--atni-text-secondary); }

/* A table that is the chart: every row is label, marks on a ruler, and the printed value with its source. */
.ru-chart-wrap { margin-block: 0; }
.ru-chart { table-layout: fixed; min-width: 28rem; }
.ru-chart thead th { font-size: 0.875rem; }
.ru-chart th:first-child { width: 34%; }
.ru-chart .ru-col-track { width: 28%; }
.ru-chart.is-wide-value th:first-child { width: 24%; }
.ru-chart.is-wide-value .ru-col-track { width: 28%; }
.ru-chart tbody th { line-height: 1.3; font-family: var(--display); font-weight: 500; font-size: 1.0625rem; }
.ru-chart td { font-size: 1rem; line-height: 1.35; text-align: left; }
.ru-chart tbody td:last-child { padding-left: 16px; font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--atni-text-heading); } /* a mark at the ruler's end reaches 13px past it */
.ru-chart.is-wide-value tbody td:last-child { font-family: var(--body); font-weight: 400; font-size: 1rem; line-height: 1.35; letter-spacing: 0; color: var(--atni-text-body); }
.ru-note { display: block; margin-top: 2px; font-family: var(--body); font-size: 0.875rem; line-height: 1.3; font-weight: 400; letter-spacing: 0; color: var(--atni-text-secondary); }
.data-table.ru-chart td.ru-track { position: relative; padding: 0; background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px); background-size: calc(100% / var(--n)) 100%; border-right: 1px solid var(--grid); }
.data-table.ru-chart .ru-group-head th { padding-top: 16px; font-family: var(--display); font-weight: 500; font-size: 0.875rem; color: var(--atni-text-secondary); border-bottom-color: var(--control); }
.data-table.ru-chart .ru-group-head td { padding: 0 0 4px; vertical-align: bottom; border-bottom-color: var(--control); }
.ru-ticks { position: relative; display: block; height: 1.25em; }
.ru-ticks i { position: absolute; left: calc(var(--x) * 100%); transform: translateX(-50%); font-style: normal; font-size: 0.875rem; line-height: 1.2; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--atni-text-secondary); }
/* Hover outlines a row in 1px muted and changes nothing else (DIRECTION-R2 2.5): no wash, no orange. */
.ru-chart tbody tr:not(.ru-group-head):is(:hover, :focus-within), .ru-grid tbody tr:is(:hover, :focus-within) { outline: 1px solid var(--atni-text-muted); outline-offset: -1px; }

/* Grids of words: who holds what. Squares are the evidence; "is-gap" is a cell with nothing to report. */
.ru-grid { font-size: 0.9375rem; }
.ru-grid td { text-align: left; font-size: 0.9375rem; line-height: 1.35; }
.ru-grid tbody th { line-height: 1.3; }
.ru-grid .is-gap { color: var(--atni-text-secondary); }

/* Bench rows: another page's plate, its default figure and Reading, and the whole row is the way there. The kit's ruler under the figure had no scale, so it
   read as a slider that did nothing; on this page it goes (resource-use-11). */
.ru-bench { margin-bottom: 16px; }
.ru-bench .ru-sub { margin-top: 0; }
.ru-bench .bench-row { position: relative; }
.ru-bench .bench-row:hover { outline: 1px solid var(--atni-text-muted); outline-offset: 2px; }
.ru-bench .bench-ruler { display: none; }
.ru-bench .bench-figure { padding-bottom: 0; }
.ru-bench .bench-value { font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.ru-bench .bench-unit { font-size: 1rem; }
.ru-bench .bench-link { font-size: 0.9375rem; }
.ru-bench .bench-link a::after { content: ""; position: absolute; inset: 0; }

/* Pull figures, inside the materials disclosure: small, so a figure never outshouts its sentence. */
.ru-pulls { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 12px 24px; margin-block: 4px 12px; }
.ru-pulls .pull { margin: 0; }
.ru-pulls .pull-value { font-size: 1.5rem; }
.ru-pull-source { font-size: 0.875rem; color: var(--atni-text-secondary); }

/* What companies report: the chart takes the chapter's width, so a row is one or two lines, not six (resource-use K). */
.ru-companies { max-width: 72rem; margin-top: 24px; }
.ru-companies > .ru-subhead { margin-top: 0; }

/* The questions: one form, its sets packed into three columns from 1100px, so a short set never waits beside a tall one (a grid row left 300 to 500px holes,
   P-ru critic 8); the sheet's button after them. */
.ru-section > .asks { margin-top: 16px; }
@media (min-width: 1100px) {
  .ru-section > .asks { display: block; columns: 3 19rem; column-gap: 32px; }
  .ru-section > .asks > .ask-set { display: block; break-inside: avoid; margin-bottom: 24px; }
}
.ru-section > .ru-next { margin-top: 16px; }

/* What is not known: its one disclosure keeps the chapter's measure, not the full width (P-ru critic 16). */
#what-is-not-known ~ .ru-details { max-width: var(--measure-wide); }

/* The resource ledger: what the record holds for each resource at three scales, beside the chapter's list; each row opens its section (P-ru critic 15). */
.ru-ledger .ru-grid { font-size: 0.875rem; }
.ru-ledger .ru-grid td, .ru-ledger .ru-grid th { padding: 6px 10px 6px 0; vertical-align: top; font-size: 0.875rem; line-height: 1.3; }
.ru-ledger .ru-grid tbody th { width: 24%; }
.ru-ledger .ru-note { font-size: 0.8125rem; }
.ru-ledger .ru-grid tbody th a { font-family: var(--display); font-weight: 600; font-size: 1rem; }

/* Print: every part open. */
@media print {
  .ru-split, .ru-ask { display: block; }
  .ru-detail > summary::before { content: none; }
  .ru-detail > summary { display: block; }
  .ru-fig { break-inside: avoid; min-height: 0 !important; }
  .ru-chart tbody td:last-child { font-size: 12pt; }
}
