/* The Energy pages (DIRECTION-R2 section 4, P-energy): the overview's agenda, Funding's catalog as list and detail, and Potential's Tribe-by-type grid. Plates,
   the brief, the agenda, the countdown and the window are the kit's (site.css); this holds what these pages say differently. Orange is the reading only: the
   selected row, cell, program or deadline and the countdown's "today". Every other state is ink. Nothing here moves on hover or after a key press. */

/* Energy types by stage. The bar is each type's total; with scripts its stages lie over it in the same box (energy-potential.js), so nothing reflows when they
   come. Each stage is separated by a 2px gap in the plot's ground and carries its count where the segment is wide enough to hold it (energy-07); the
   Reading and the Table give every count. The selected row takes a 2px orange ring, never a line across the plot (energy-06). */
[data-plate^="energy-types"] { --row-min: 1.75rem; }
[data-plate^="energy-types"] .ladder-label { font-size: 1rem; }
[data-plate^="energy-types"] :is(.ladder-row.is-zero, .ladder-row[style="--x:0.0"]) .ladder-label { color: var(--atni-text-muted); }
.is-live[data-plate^="energy-types"] .ladder-bar { visibility: hidden; }
.stack-bar { position: absolute; z-index: 2; top: 50%; left: 0; display: flex; width: calc(var(--x) * 100%); height: min(1.375rem, 86%); transform: translateY(-50%); }
.stack-bar > i { container-type: inline-size; position: relative; display: flex; align-items: center; justify-content: center; flex: var(--n) 0 0; min-width: 0; background: var(--stage); }
.stack-bar > i + i { border-left: 2px solid var(--plot-ground); }
.stack-bar > i > b { font-family: var(--display); font-weight: 600; font-size: 0.8125rem; line-height: 1; font-variant-numeric: tabular-nums; color: var(--on-stage); }
@container (width < 1.5rem) { .stack-bar > i > b { display: none; } }
/* A count's ink on its segment: 4.5:1 or more on each step of each theme's ramp (dark steps 2 to 4 are light, light steps 2 to 4 dark). */
.stage-4 { --stage: var(--stage-4); }
.stage-3 { --stage: var(--stage-3); }
.stage-2 { --stage: var(--stage-2); }
.stage-1 { --stage: var(--stage-1); }
:is(.stage-4, .stage-3, .stage-2) { --on-stage: #010B13; }
.stage-1 { --on-stage: #FFFFFF; }
[data-theme="light"] :is(.stage-4, .stage-3, .stage-2) { --on-stage: #FFFFFF; }
[data-theme="light"] .stage-1 { --on-stage: #010B13; }
@media print { :is(.stage-4, .stage-3, .stage-2) { --on-stage: #FFFFFF; } .stage-1 { --on-stage: #010B13; } }
.ladder-row.is-on .stack-bar { outline: 2px solid var(--energy-mark); outline-offset: 2px; }
[data-plate^="energy-types"] .plate-square:is(.is-stage-4, .is-stage-3, .is-stage-2, .is-stage-1) { width: 12px; height: 12px; }
.plate-square.is-stage-4 { background: var(--stage-4); }
.plate-square.is-stage-3 { background: var(--stage-3); }
.plate-square.is-stage-2 { background: var(--stage-2); }
.plate-square.is-stage-1 { background: var(--stage-1); }
:is(.stack-bar > i, .plate-square[class*="is-stage-"]) { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--atni-text-heading) 18%, transparent); }
/* On the overview's face the stage key sits in the head beside the caption, where the face has no settings, so the first screen holds the plot, its key and
   the readout (energy critic 8). Built under the plot (.plate-under) or, in an older build, in the claim zone: either way it lands in the same place, the
   window column's first row, with Chart and Table at its foot, since the window rises to the row under it (R3 1). */
@media screen and (min-width: 1100px) {
  .agenda-faces [data-plate="energy-types-by-stage"] > .plate-claim:has(> .plate-legend) { display: grid; grid-template-columns: minmax(0, 64fr) minmax(19rem, 36fr); column-gap: var(--plate-gap); align-items: start; }
  .agenda-faces [data-plate="energy-types-by-stage"] > .plate-claim > * { grid-column: 1; }
  .agenda-faces [data-plate="energy-types-by-stage"] > .plate-claim > .plate-legend { grid-column: 2; grid-row: 1 / span 6; }
  .agenda-faces [data-plate="energy-types-by-stage"] > .plate-under { grid-area: bar; justify-self: start; padding: 4px 0 12px 20px; }
  .agenda-faces [data-plate="energy-types-by-stage"] > .plate-bar { position: relative; z-index: 1; align-self: end; justify-self: end; } /* Chart and Table stay pressable beside the key */
  .agenda-faces [data-plate="energy-types-by-stage"] :is(.plate-under, .plate-claim) > .plate-legend { display: grid; gap: 6px; margin: 0; }
}
.plate[data-plate^="energy-"] .plate-table td:last-child { white-space: nowrap; } /* a claim id stays whole */
[data-plate^="energy-deadlines"] .plate-table td { text-align: left; } /* words and dates, not figures to compare */
/* In a face the plot has two thirds of the width, so the gutter and the names give the ruler more of it, and the months keep apart. */
[data-plate^="energy-deadlines"] .countdown { --cd-when: 6rem; --cd-name: clamp(9rem, 28%, 15rem); }
/* The kit stacks a row's name over its track below 34rem; these names wrap to three lines in a face at 1280 and 1440, so they stack up to 46rem. */
@container (max-width: 46rem) {
  [data-plate^="energy-deadlines"] :is(.countdown-ruler, .countdown-row, .countdown-lane) { grid-template-columns: var(--cd-when) minmax(0, 1fr); }
  [data-plate^="energy-deadlines"] .countdown-scale { grid-column: 2; }
  [data-plate^="energy-deadlines"] .countdown-row { grid-template-rows: auto 1.5rem; }
  [data-plate^="energy-deadlines"] .countdown-row > .countdown-when { grid-row: 1 / span 2; }
  [data-plate^="energy-deadlines"] .countdown-row > .countdown-name { grid-column: 2; padding-top: 6px; }
  [data-plate^="energy-deadlines"] .countdown-row > .countdown-track { grid-column: 2; grid-row: 2; }
}

/* The overview's third face: what the task force is, in five ruled rows. */
.energy-status { display: grid; align-content: start; gap: 12px; }
.status-title, .face-title { margin: 0; font-size: 1.375rem; line-height: 1.2; }
.status-rows { display: grid; margin: 0; max-width: 60rem; border-top: 1px solid var(--rule); }
.status-rows > div { display: grid; grid-template-columns: 11rem minmax(0, 1fr); column-gap: 24px; padding-block: 12px; border-bottom: 1px solid var(--rule); }
.status-rows dt { font-family: var(--display); font-weight: 500; font-size: 0.875rem; color: var(--atni-text-secondary); }
.status-rows dd { margin: 0; max-width: var(--measure-wide); line-height: 1.5; }

/* Why the task force exists: one band, the resolution's words at the left as its anchor, the purpose and its folds at the right (energy-17). */
.energy-why { display: grid; gap: 24px 48px; border-top: 1px solid var(--rule); }
.energy-quote { margin: 0; }
.energy-quote blockquote { margin: 0; }
.energy-quote blockquote p { max-width: 30ch; margin: 0; font-family: var(--display); font-weight: 500; font-size: clamp(1.375rem, 1.1rem + 0.5vw, 1.75rem); line-height: 1.3; text-wrap: pretty; color: var(--atni-text-heading); }
.energy-quote figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--atni-text-secondary); }
.energy-why-text > h2 { margin-top: 0; }
.energy-why-text > p { max-width: var(--measure); }
.energy-folds { margin-top: 16px; }
@media (min-width: 1100px) { .energy-why { grid-template-columns: minmax(0, 36rem) minmax(0, 44rem); } .energy-quote { position: sticky; top: 24px; align-self: start; } }

/* The folds under Why and Focus Areas: a ruled row each, opened by a plus and closed by a minus, the sign What's New uses, never the plot's squares, which
   mean a stage, "No date" or a status here (energy critic 10). */
:is(.energy-why, .energy-focus) .rail-details > .disclosure > summary { grid-template-columns: 1rem minmax(0, 1fr); }
:is(.energy-why, .energy-focus) .rail-details > .disclosure > summary::before { content: "+"; width: auto; height: auto; margin: 0; border: 0; font-family: var(--display); font-weight: 500;
  font-size: 1.25rem; line-height: 1; color: var(--atni-text-secondary); }
:is(.energy-why, .energy-focus) .rail-details > .disclosure[open] > summary::before { content: "\2212"; background: none; color: var(--atni-text-heading); }

/* Focus areas and Programs and Tools: ruled items in two columns, four across where four fit, so no item sits alone on a row (energy-17, -20; critic 13). */
.energy-focus, .energy-tools, .energy-watch { border-top: 1px solid var(--rule); }
.energy-fold-grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { :is(.energy-fold-grid, .energy-tools .tool-list) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1800px) { :is(.energy-fold-grid, .energy-tools .tool-list) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.energy-fold-grid > .disclosure[open] { grid-column: auto; }
.tool-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr)); gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.tool-list > li { margin: 0; padding-block: 16px 20px; border-top: 1px solid var(--rule); }
.tool-list h3 { margin: 0 0 6px; font-size: 1.125rem; line-height: 1.3; }
.tool-list h3 a { color: var(--atni-text-heading); }
.tool-list p { margin: 0; }
.tool-list > .climate-voice { align-self: start; padding-left: 16px; } /* the one Climate mark on the page (energy-18); its rule no longer runs past its words */
.tool-list .climate-lockup { height: 32px; }

/* Policy Watch on the overview: the followed items with the newest records, a ruled line each (energy critic 4); the saved searches and the whole follow
   list are on the Sources page, side by side, each a column of short records. All built by build_energy_pages.py. */
.watch-latest { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 36rem), 1fr)); gap: 0 48px; margin: 0; padding: 0; list-style: none; }
.watch-latest > li { margin: 0; padding-block: 10px 12px; border-top: 1px solid var(--rule); }
.watch-latest a { font-family: var(--display); font-weight: 500; font-size: 1.0625rem; line-height: 1.3; color: var(--atni-text-heading); }
.watch-when { display: block; margin-top: 2px; font-size: 0.875rem; color: var(--atni-text-secondary); }
.sources-page .content > #policy-watch { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--grid); }
#policy-watch > .caption { max-width: var(--measure-wide); margin-bottom: 16px; }
@media (min-width: 1100px) { .watch-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; align-items: start; } }
.watch-columns > h3 { grid-row: 1; margin: 0 0 8px; font-size: 1.125rem; }
.watch-columns > [data-policy-searches], .watch-columns > [data-policy-follow] { grid-row: 2; }
.watch-list { margin: 0; padding: 0; list-style: none; }
.watch-list > .watch-item { margin: 0; padding-block: 12px 16px; border-top: 1px solid var(--rule); }
.watch-list .watch-item h4 { margin: 0 0 4px; font-size: 1rem; line-height: 1.3; }
.watch-list .watch-item > p { margin: 0 0 4px; font-size: 0.9375rem; }
.watch-list .watch-item > .record-meta, .watch-list .watch-item > .record-note { font-size: 0.875rem; }
.watch-list .query { font-family: var(--body); color: var(--atni-text-body); }

/* Funding, the first face: open and forecasted programs grouped by how they pay. */
.energy-pays { display: grid; align-content: start; gap: 12px; }
.pays-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.pays { margin: 0; padding-block: 12px 16px; border-top: 1px solid var(--rule); }
.pays-name { margin: 0 0 8px; font-size: 1rem; line-height: 1.3; }
.pays-list { margin: 0; padding: 0; list-style: none; }
.pays-list > li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0 0 6px; }
.pays-list a { color: var(--atni-text-heading); }
.pays-list .catalog-date { font-size: 0.875rem; color: var(--atni-text-secondary); }

/* Funding, the third face: one Tribe's plans against the catalog, with a one-line status a screen reader hears and a list it does not re-read (energy-12). */
.energy-fit { display: grid; align-content: start; gap: 12px; }
.energy-fit .filters { grid-template-columns: minmax(0, 44rem); } /* the longest Tribe's name shows whole (energy critic 14) */
.energy-fit .data-status { margin: 0; }
.fit-results { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 0 32px; }
.fit-group { margin: 0; padding-block: 10px 12px; border-top: 1px solid var(--rule); }
.fit-group h3 { margin: 0 0 6px; font-size: 1rem; }
.fit-group ul { margin: 0; padding: 0; list-style: none; }
.fit-group li { margin: 0 0 6px; }
.fit-group a { color: var(--atni-text-heading); }
.fit-types { display: block; font-size: 0.875rem; color: var(--atni-text-secondary); }

/* The catalog: the list at the left, open first and closed last in muted ink with its tag, and the chosen program's detail beside it (energy-13, -16).
   Without scripts every program's detail follows the list, whole; with them only the chosen one shows, held from the first paint by the js class. */
.catalog-filters { margin-bottom: 8px; }
@media (min-width: 1024px) { .catalog-filters { grid-template-columns: repeat(3, minmax(0, 18rem)) auto; justify-content: start; } } /* the button keeps its own width */
/* A section's heading sits level with the first line of its intro, not its last (energy critic 16). */
.section-head { align-items: first baseline; }
.catalog { display: grid; gap: 24px 48px; align-items: start; }
@media (min-width: 1100px) { .catalog { grid-template-columns: minmax(28rem, 5fr) minmax(0, 7fr); } }
.catalog-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.catalog-item { margin: 0; border-bottom: 1px solid var(--rule); }
.catalog-pick { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name tag" "pays date"; gap: 2px 16px; padding: 10px 12px 10px 16px; color: var(--atni-text-body); text-decoration: none; cursor: pointer; }
.catalog-name { grid-area: name; font-family: var(--display); font-weight: 500; font-size: 1.0625rem; line-height: 1.25; color: var(--atni-text-heading); }
.catalog-pays { grid-area: pays; font-size: 0.875rem; color: var(--atni-text-secondary); }
.catalog-pick .catalog-date { grid-area: date; justify-self: end; font-size: 0.875rem; font-variant-numeric: tabular-nums; color: var(--atni-text-secondary); }
.catalog-pick .tag { grid-area: tag; justify-self: end; }
.catalog-item.is-closed .catalog-name { color: var(--atni-text-secondary); }
.catalog-pick:hover { outline: 1px solid var(--atni-text-muted); outline-offset: -1px; }
.catalog-pick:focus-visible { outline: 2px solid var(--atni-text-heading); outline-offset: -2px; }
.catalog-item.is-on .catalog-name { color: var(--atni-text-heading); }
.catalog-item.is-on .catalog-pick::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--energy-mark); }
/* A program a mark misses is still an option: muted ink, 4.6:1 or better, never faded below what can be read (energy critic 7). */
.catalog-item.is-dim :is(.catalog-name, .catalog-pays, .catalog-date) { color: var(--atni-text-muted); }
.catalog-item.is-dim .tag { color: var(--atni-text-secondary); } /* muted on the tag's own ground is 4.4:1 in light */
.catalog-item.is-dim .tag::before { border-color: currentColor; }
.catalog-item.is-dim .tag:not(.is-hollow, .is-plain)::before { background: currentColor; }
.catalog-list:focus-visible { outline: 2px solid var(--atni-text-heading); outline-offset: 2px; }
.catalog-details > .program { padding: 20px 24px 24px; background: var(--window); box-shadow: var(--window-ring); }
.catalog-details > .program + .program { margin-top: 24px; }
html.js .catalog-details > .program { display: none; }
html.js .catalog-details > .program.is-on, html.js .catalog-details:not(:has(> .is-on)) > .program:first-child { display: block; }
@media screen and (min-width: 1100px) {
  html.js .catalog-details { position: sticky; top: 16px; max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain; }
  /* While the pane holds more than it shows, its foot says so (energy-funding.js sets has-more; energy critic 18). The line keeps its room when hidden. */
  html.js .catalog-details::after { content: "More below"; position: sticky; bottom: 0; display: block; padding: 8px 24px; font-family: var(--display); font-weight: 500; font-size: 0.875rem;
    color: var(--atni-text-secondary); background: var(--window); box-shadow: inset 0 1px 0 var(--rule); visibility: hidden; }
  html.js .catalog-details.has-more::after { visibility: visible; }
}
.program h3 { margin: 0 0 4px; font-size: 1.375rem; line-height: 1.2; }
.program h3 a { color: var(--atni-text-heading); }
.program h4 { margin: 20px 0 6px; font-size: 1rem; }
.program > p, .program > ul { max-width: var(--measure-wide); }
.program .status-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 0.875rem; color: var(--atni-text-secondary); }
.program-due { padding-left: 12px; border-left: 3px solid var(--atni-text-heading); }
.program-due.is-passed strong { color: var(--atni-text-secondary); }
.program .facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 0 24px; margin: 16px 0 0; }
.program .facts > div { padding-block: 8px; border-top: 1px solid var(--rule); }
.program .facts dt { font-family: var(--display); font-weight: 500; font-size: 0.875rem; color: var(--atni-text-secondary); }
.program .facts dd { margin: 2px 0 0; font-size: 0.9375rem; }
.catalog-moved { margin: 0 0 12px; }
.notice-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: 0 32px; margin: 0; padding: 0; }
.notice-list > .record { margin: 0; padding-block: 12px 16px; border-top: 1px solid var(--rule); }
.notice-list .facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; margin: 8px 0 0; font-size: 0.875rem; }
.notice-list .facts > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); }
.notice-list .facts dt { color: var(--atni-text-secondary); }
.notice-list .facts dd { margin: 0; }

/* Potential: the Tribe-by-type grid. One row per Tribe, A to Z; one column per type, in the bars' order. A cell's mark fills from its foot by stage, a quarter
   for a goal up to whole for installed or operating, in the stage ramp, so height and ink both say the stage and print and forced colors keep it. The
   selected cell takes a 2px orange ring, focus a 2px ink ring; marks are highlights, so nothing a filter misses disappears (energy-09). */
.tt-filters { margin-bottom: 8px; }
@media (min-width: 1024px) { .tt-filters { grid-template-columns: auto minmax(0, 20rem) repeat(4, minmax(0, 12rem)) auto; justify-content: start; } }
.tt-filters select { min-width: 0; }
.tt-filters .segmented legend { margin-bottom: 4px; }
.tt-layout { display: grid; gap: 24px 48px; align-items: start; }
@media (min-width: 1100px) { .tt-layout { grid-template-columns: minmax(0, 1fr) clamp(22rem, 28vw, 34rem); } }
.tt-grid-box { min-width: 0; container-type: inline-size; }
.tt-key { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 12px; padding: 0; list-style: none; font-size: 0.875rem; color: var(--atni-text-secondary); }
.tt-key > li { display: flex; align-items: center; gap: 8px; margin: 0; }
.tt-grid { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.875rem; }
.tt-grid > caption { margin-bottom: 8px; text-align: left; font-size: 0.875rem; color: var(--atni-text-secondary); caption-side: top; }
.tt-grid .tt-corner { width: 19rem; } /* a fixed table takes its column widths from the first row: the names' column, then the types share the rest */
.tt-grid thead th { height: 8.5rem; padding: 0 0 8px; vertical-align: bottom; font-family: var(--display); font-weight: 500; font-size: 0.875rem; color: var(--atni-text-secondary); }
.tt-grid thead th > span { display: inline-block; writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap; text-align: left; }
.tt-grid thead th.is-mark > span { color: var(--atni-text-heading); text-decoration: underline 2px; text-underline-offset: 0.3em; }
/* Where a column is wide enough for a word (60px, from about 1680), the heads read across, a long name broken at its soft hyphen (energy critic 9). At 1280
   and 1440 the columns are 41 to 49px, narrower than "Efficiency", so the heads stay turned. */
@container (min-width: 1100px) {
  .tt-grid thead th { height: auto; padding: 0 4px 8px; text-align: center; }
  .tt-grid thead th > span { writing-mode: horizontal-tb; transform: none; white-space: normal; text-align: center; line-height: 1.15; }
}
.tt-grid tbody th { padding: 4px 12px 4px 0; text-align: left; font-family: var(--body); font-weight: 500; line-height: 1.25; }
.tt-grid tbody th a { color: var(--atni-text-heading); text-decoration: none; }
.tt-grid tbody th a:hover { text-decoration: underline 1px var(--control-edge); }
.tt-state { margin-left: 4px; font-size: 0.8125rem; font-weight: 400; color: var(--atni-text-muted); }
.tt-grid tbody tr { border-top: 1px solid var(--rule); }
.tt-grid tbody tr.is-group > th { padding-top: 16px; font-family: var(--display); font-weight: 600; color: var(--atni-text-secondary); }
.tt-grid td { position: relative; height: 2.25rem; padding: 0; text-align: center; vertical-align: middle; cursor: pointer; }
.tt-grid td:focus-visible { outline: 2px solid var(--atni-text-heading); outline-offset: -2px; }
/* 22px marks, so a quarter step of the fill is 5px and each stage also wears its own step of the ramp (energy critic 9). */
.tt-mark { display: inline-block; vertical-align: middle; box-sizing: border-box; width: 1.375rem; height: 1.375rem; border: 1px solid var(--control-edge);
  background: linear-gradient(to top, var(--st, transparent) calc(var(--lvl, 0) * 25%), transparent 0); }
[data-stage="1"] { --lvl: 1; --st: var(--stage-1); }
[data-stage="2"] { --lvl: 2; --st: var(--stage-2); }
[data-stage="3"] { --lvl: 3; --st: var(--stage-3); }
[data-stage="4"] { --lvl: 4; --st: var(--stage-4); }
td[data-stage] > .tt-mark { --lvl: inherit; --st: inherit; }
.tt-grid td.is-on > .tt-mark, .tt-grid td.is-on:not([data-stage])::after { outline: 2px solid var(--energy-mark); outline-offset: 2px; }
.tt-grid td.is-on:not([data-stage])::after { content: ""; position: absolute; inset: 25%; }
.tt-grid .is-dim > .tt-mark { opacity: 0.22; }
.tt-grid tr.is-dim > th { color: var(--atni-text-muted); }
.tt-grid tr.is-dim > th a { color: var(--atni-text-muted); }
.tt-grid tbody tr:hover > th { text-decoration: underline 1px var(--control-edge); }
.tt-side { padding: 20px 24px 24px; background: var(--window); box-shadow: var(--window-ring); }
@media screen and (min-width: 1100px) { .tt-side { position: sticky; top: 16px; max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain; } }
.tt-side-title { margin: 0 0 4px; font-size: 1.375rem; line-height: 1.2; }
.tt-side-title:focus { outline: none; }
.tt-side-title:focus-visible { outline: 2px solid var(--atni-text-heading); outline-offset: 4px; }
.tt-side-body > p { max-width: none; }
.tt-side .tt-finding h4 { margin: 16px 0 8px; font-size: 1.0625rem; line-height: 1.3; }
.tt-side .tt-others { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 12px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--rule); font-size: 0.875rem; }
.tt-side .tt-others li { margin: 0; }
.tt-side .tt-others button { padding: 0; font: inherit; color: var(--atni-text-heading); text-decoration: underline 1px var(--control-edge); text-underline-offset: 0.2em; background: none; border: 0; cursor: pointer; }
.tt-side .tt-others button[aria-pressed="true"] { text-decoration: underline 2px var(--energy-mark); }
.tt-check { margin-left: 8px; font-family: var(--body); font-weight: 400; font-size: 0.875rem; color: var(--atni-text-secondary); }
/* The passages, Tribe by Tribe: the page without scripts reads them here whole; with scripts they open in the side column, one cell at a time. */
.tt-evidence-box { margin-top: 32px; }
.tt-evidence { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 32rem), 1fr)); gap: 0 48px; }
.tt-tribe { padding-block: 16px 20px; border-top: 1px solid var(--rule); }
.tt-tribe h3 { margin: 0 0 4px; font-size: 1.125rem; }
.tt-tribe h4 { margin: 12px 0 4px; font-size: 1rem; }
html.js .tt-evidence-box { display: none; }

@media print {
  .tt-side, .catalog-filters, .tt-filters { display: none; }
  /* Funding prints the catalog list and the chosen program, not all 22 details (energy critic 6); without scripts every detail prints, as it reads. */
  html.js .catalog-details > .program.is-on { break-inside: avoid; }
  /* The stage plate's six facts run as one paragraph, so the plate keeps to one sheet; the Table under it lists each with its limit. */
  [data-plate^="energy-types"] :is(.plate-facts > p.caption, .plate-also > li) { display: inline; }
  [data-plate^="energy-types"] :is(.plate-facts > p.caption, .plate-also > li)::after { content: " "; }
  [data-plate^="energy-types"] > .plate-collar { break-before: avoid; break-inside: avoid; } /* the Sources address stays with the Table */
  [data-plate^="energy-types"] .plate-table :is(th, td) { padding-block: 3px; }
  .tt-grid thead th { height: 7rem; }
  .energy-quote { position: static; }
}
@media (forced-colors: active) {
  .stack-bar > i, .tt-mark, .plate-square[class*="is-stage-"] { forced-color-adjust: none; outline: 1px solid CanvasText; outline-offset: -1px; }
  .ladder-row.is-on .stack-bar, .tt-grid td.is-on > .tt-mark, .catalog-item.is-on .catalog-pick { outline: 2px solid Highlight; }
}
@media (prefers-reduced-motion: reduce) { .catalog-details, .tt-side { scroll-behavior: auto; } }
