/* The AI page: what the kit leaves to a page on these plates, and the page's own static figures. Loads after site.css and says only what the kit does not.
   Radius 0, no shadows or gradients, and only the detail panel rises. Orange stays the selection inside a plate. Square counts and static figures use text tokens and
   greys, so both themes and print follow by themselves. */

/* Panels */
.panel .slot { margin: 0 0 12px; }
.panel .slot p { max-width: none; }
.ai-subhead { margin: 24px 0 4px; }
.ai-subnote { max-width: var(--measure-wide); margin: 0 0 8px; color: var(--atni-text-secondary); }

/* The claim zone reads title, controls, key, then the rest, so every main control is on the first screen at 1440 by 900. */
.plate-claim > p:not(.eyebrow, .caption) { font-size: 0.9375rem; line-height: 1.5; color: var(--atni-text-secondary); }
.plate-controls { gap: 8px; }
.plate-controls [data-param$="intensity"] { column-gap: 12px; } /* its three stops fit the 288px claim column on one line */
.plate .segmented legend { margin-bottom: 0; }
@media (pointer: fine) {
  .plate .slider-presets button { min-height: 28px; padding-block: 2px; }
  .plate .slider input[type="range"], .plate .slider input[type="number"] { height: 32px; min-height: 32px; padding-block: 2px; }
  .plate .slider input[type="range"]::-webkit-slider-thumb { height: 28px; margin-top: -13px; }
  .plate .slider input[type="range"]::-moz-range-thumb { height: 28px; }
}
@media (min-width: 1100px) {
  .plate-claim > .plate-controls { order: 1; }
  .plate-claim > .plate-legend { order: 2; }
  .plate-claim > .caption:not(.plate-foot) { order: 3; }
  .plate-claim > p:not(.eyebrow, .caption) { order: 4; }
  .plate-claim > .plate-foot { order: 5; }
}

/* The detail panel: the range beside the figure when it fits, and a tighter stack, so a Reading of three sentences, its parts, Copy, Reset, and the receipts line fit 1440 by 900. */
.plate-detail .readout-range { flex-basis: auto; }
.plate-view { gap: 8px; }
.plate .reading { line-height: 1.45; }
@media (pointer: fine) { .plate-actions .button { min-height: 36px; padding-block: 4px; } }
@media (min-width: 1100px) { .plate-detail { padding-top: 16px; } } /* the view switch on the eyebrow's line, and the receipts line, now two lines, on the first screen */
.plate-values li { grid-template-columns: 14px minmax(0, max-content) minmax(6.5rem, 1fr); } /* "131.82 billion dollars" keeps one line beside its name */
.ladder-group-label { max-width: none; }
.plate:not(#ai-same-hour) .ladder-row { padding-block: 4px; } /* a row of three lines still reads apart from the next; the comparison plate shares out its own height */

/* The hour face's link to its assumptions reads at the window's foot (ai.js moves it there); hidden in the claim zone from the first paint, so nothing jumps. */
.js #ai-hour > .plate-claim > .plate-foot { display: none; }
#ai-hour > .plate-detail > .plate-foot { margin: 8px 0 0; }

/* Each ruler's columns, from what its rows print at 1440. */
#ai-same-hour { --l: clamp(9.5rem, 24%, 14rem); --v: clamp(7rem, 17%, 11rem); } /* 9.5rem holds "Television, one hour" on one line at 1280 */
#ai-hour { --l: clamp(9.25rem, 22%, 11rem); --v: clamp(5.5rem, 13%, 7.5rem); } /* four short names and "15 Wh (9.3 to 24)": the fixed scale keeps the width */
/* The band's name runs beside it on two lines, clear of the needle, which stands inside the band, and of the plot's end. */
#ai-same-hour .ladder-shared-label { left: calc(100% + 4px); width: max-content; max-width: 7.5rem; padding-inline: 4px; white-space: normal; background: var(--plot-ground); }
#ai-same-hour .ladder-shared.is-flip > .ladder-shared-label { left: auto; right: calc(100% + 4px); }
/* On a phone the ruler runs under the row's words across the full width, so the words stand over the band, and the Reading says what its name says. */
@media (max-width: 719px) {
  #ai-same-hour :is(.ladder-label, .ladder-value) { position: relative; z-index: 2; }
  #ai-same-hour .ladder-shared-label { display: none; }
  #ai-same-hour :is(.ladder-tick span, .needle-label) { width: max-content; }
  #ai-same-hour .ladder-tick.is-right span { left: 6px; right: auto; } /* to its left it would run off the page */
  .plate-switch .segmented { column-gap: 8px; }
}
#ai-scale { --l: clamp(9rem, 28%, 16rem); }
#ai-occupations, #ai-jobs-sector { --l: clamp(11.6rem, 40%, 23.2rem); --v: clamp(8.5rem, 19%, 10rem); } /* label columns 5.6 percent wider than R2's, as the label (R3 6), so each wraps as it did */
#ai-displacement { --l: clamp(12.7rem, 40%, 27.4rem); --v: clamp(7.5rem, 17%, 11rem); }
#ai-holdings { --l: clamp(10rem, 32%, 20rem); }
#ai-guidance-2026 { --v: clamp(9.5rem, 22%, 12rem); }
#ai-capex-cash { --l: clamp(6rem, 14%, 10rem); --v: clamp(12rem, 28%, 15rem); }

/* Heavy AI: the Wh is the answer, and under it the same energy in streaming time, on the yardstick set, is a tag. */
#ai-heavy-ai { --l: clamp(11rem, 34%, 19rem); --v: clamp(8rem, 18%, 10rem); }
#ai-heavy-ai .plate-claim > .caption + .caption { display: none; } /* the ruler's own label says it */
#ai-heavy-ai .ladder-eq { font-size: 0.9375rem; line-height: 1.2; white-space: nowrap; }
@media (min-width: 1100px) and (max-width: 1319px) { #ai-heavy-ai .plate-switch .segmented { grid-auto-columns: auto; column-gap: 12px; } } /* the long first stop keeps clear of the next */
/* On a phone the value column keeps its width, or three lines of it squeeze the row's words, and the switch over the plot names the yardstick. */
@media (max-width: 719px) {
  #ai-heavy-ai .ladder-row { grid-template-columns: minmax(0, 1fr) var(--v); }
  #ai-heavy-ai .ladder-tick span { display: none; }
}

/* A long ruler reads its axis at its head: at 56px rows, the foot of twelve or thirteen rows is under the fold at 1440 by 900. */
:is(#ai-heavy-ai, #ai-occupations) .ladder-axis { z-index: 2; top: 0; bottom: auto; }
:is(#ai-heavy-ai, #ai-occupations) .ladder-axis span { padding-inline: 4px; background: var(--plot-ground); }
:is(#ai-heavy-ai, #ai-occupations) .ladder-rows { margin-bottom: 0; }
:is(#ai-heavy-ai, #ai-occupations) .ladder-grid { bottom: 0; }
#ai-heavy-ai .needle-label { display: none; } /* twelve rows: the row's own label names the selection, so the ruler and the yardstick's name are the only lines over them */
#ai-heavy-ai .ladder-tick[data-mark="y-pub"] span { left: auto; right: 6px; z-index: 1; } /* the published hour stands far along the ruler, so its long name reads back into the plot, over the needle */
#ai-occupations .ladder.has-ticks:has(.ladder-tick:not([hidden])) { padding-top: 52px; }
#ai-occupations .ladder-tick span { top: 24px; }
/* Its key stands under the ruler, on the line of the tick's name, where the first screen reads it: the foot of thirteen rows is under the fold. It shares the plot's grid cell, over the head the rows leave empty.
   Read as a table is no part of the key: its box gives way (display: contents, a plain div), so the button stays under the plot, after it in reading order, at every width. */
/* B1 (R2 kit): its key stands under the plot in the kit's under area again; P-ai places it anew. */

/* A projected bar is a dashed outline, and its key the same outline on a square. Selected, the dashes turn orange around a 40 percent wash, as the Jobs instrument fills. */
:is(#ai-occupations, #ai-jobs-sector) .ladder-bar.is-proj { border: 2px dashed var(--series-context); }
:is(#ai-occupations, #ai-jobs-sector) .ladder-bar.is-proj::after { content: none; }
:is(#ai-occupations, #ai-jobs-sector) .ladder-row.is-on .ladder-bar.is-proj { background: color-mix(in srgb, var(--energy-mark) 40%, transparent); border-color: var(--energy-mark); }
.plate-square.is-proj { width: 16px; height: 16px; background: color-mix(in srgb, var(--series-context) 18%, transparent); border: 2px dashed var(--series-context); }

/* Displacement: a stem from zero shows the sign and the disagreement at a glance; two greys, as with the kit's bars. Rows of words have no --x, so no stem. */
#ai-displacement .ladder-track::before {
  content: "";
  position: absolute;
  left: calc(min(var(--x), var(--z, 0)) * 100%);
  width: calc((max(var(--x), var(--z, 0)) - min(var(--x), var(--z, 0))) * 100%);
  top: calc(50% - 1px);
  height: 2px;
  background: var(--series-context);
}
#ai-displacement .is-neg .ladder-track::before { background: var(--atni-text-secondary); }
#ai-displacement .ladder-row.is-on .ladder-track::before { background: var(--energy-mark); }

/* Plates with few rows stay in proportion: a shorter plate. */
@media (min-width: 1100px) {
  #ai-per-day, #ai-capex-cash, #ai-guidance-2026, #ai-jobs-sector { --plate-h: max(32rem, 60vh); }
}

/* Count: squares the kit sizes to fill the plot, in rows of 25. One ink per part: heading for the data center, context for the network, 40 percent for the
   router and device, which recede on every row. Fill and outline keep their meaning of measured and modeled. */
#ai-same-hour .m-count { fill: var(--series-context); stroke: none; }
#ai-same-hour .m-count.seg-band { fill-opacity: 0.4; stroke-opacity: 0.4; }
#ai-same-hour .m-count.is-hollow { fill: none; stroke: var(--series-context); stroke-width: 1.5; }
#ai-same-hour .m-count.seg-dc { fill: var(--atni-text-heading); }
#ai-same-hour .m-count.seg-dc.is-hollow { fill: none; stroke: var(--atni-text-heading); }
#ai-same-hour .is-on .m-count:not(.is-hollow, .seg-band) { fill: var(--energy-mark); }
#ai-same-hour .is-on .m-count.is-hollow:not(.seg-band) { fill: none; stroke: var(--energy-mark); }
#ai-same-hour p.count-key { display: none; } /* the page's own key over the squares says what one is, with its parts and its Wh, so the kit's shorter line would say it twice (ai-35) */
.count-key { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 0.875rem; color: var(--atni-text-secondary); }
.count-key li { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.count-key-unit { font-weight: 700; color: var(--atni-text-heading); }
.count-sample { flex: none; width: 10px; height: 10px; background: var(--series-context); }
.count-sample.seg-dc { background: var(--atni-text-heading); }
.count-sample.seg-band { opacity: 0.4; }
.count-sample.is-hollow { background: none; border: 1.5px solid var(--series-context); }

/* Small multiples: the kit prints the year once, at the first needle, and each cell's own figure at its needle's head (Company Footprint). Paying for It draws its own
   panels, which carry no figure, so its later needles keep the line alone. On Paying for it, a name at a line's end picks that company. */
#ai-company-money .plate-svg > g ~ g .m-needle-label { display: none; }
#ai-company-money .m-label { cursor: pointer; }
#ai-company-footprint .m-end { display: none; } /* only the selected company is named; the rest are Others in the legend and the Table */

/* Details under the plates: ruled rows of plain sentences, each a full statement a reader can skim. The marker is muted: orange is the reading's alone. */
.panel .disclosure-grid { gap: 0 24px; margin-top: 8px; }
.panel .disclosure-grid > .disclosure { margin: 0; padding-block: 10px; border-top: 1px solid var(--rule); }
.panel .disclosure > summary { width: auto; font-size: 1rem; line-height: 1.35; color: var(--atni-text-heading); }
.panel .disclosure > summary::marker { color: var(--atni-text-muted); }
.panel .disclosure > summary:hover { color: var(--atni-text-heading); text-decoration: underline 1px var(--control-edge); text-underline-offset: 0.2em; }
.panel .disclosure :is(p, li) { font-size: 0.9375rem; line-height: 1.55; }
.panel .disclosure .quote blockquote p { font-size: 1.0625rem; }

/* The held slot is the panel's one Coming line: its label and its sentence on one ruled line. */
.panel .slot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 24px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); }
.panel .slot p { max-width: var(--measure-wide); margin: 0; }
.panel .slot .slot-label { flex: none; }

/* Tabs with no plate: prose bands, two columns of at most 40rem from 1100px, left-aligned (DIRECTION-R2 2.4), so no line runs past its measure at 2560. */
.ai-band { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 48px; align-items: start; margin-bottom: 24px; }
@media (min-width: 1100px) { .ai-band { grid-template-columns: repeat(2, minmax(0, 40rem)); } }
.ai-band > * { min-width: 0; }
.ai-band h3 { margin: 16px 0 4px; font-size: 1.1875rem; line-height: 1.25; }
.ai-band .disclosure-grid { grid-template-columns: minmax(0, 1fr); }
.ai-lede { display: grid; gap: 12px; align-content: start; min-width: 0; }
.ai-lede > * { margin-block: 0; }
.ai-lede > p { max-width: var(--measure-wide); }
.ai-lede .panel-title, .watch-side .panel-title { margin-block: 16px 0; }
.ai-lede li::marker { color: var(--atni-text-muted); }
.ai-lede .quote blockquote { font-size: 1.25rem; line-height: 1.35; }
.ai-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }


.two-ways { display: grid; gap: 12px; }
.two-ways h3 { margin: 0 0 4px; font-size: 1.125rem; line-height: 1.25; }
.two-ways ul { margin: 0; padding-left: 1.1rem; font-size: 0.9375rem; line-height: 1.45; }
.two-ways li { margin: 0 0 4px; }

/* The tier stair, the third agenda face, is the kit's fieldset.stair (site.css). The page adds only the rule under it and its legend's link ink. */
#face-tiers fieldset.stair { margin-bottom: 0; }
#face-tiers fieldset.stair > legend a { color: inherit; }
.tier-rule { max-width: 48rem; margin: 16px 0 0; font-size: 0.9375rem; line-height: 1.45; color: var(--atni-text-secondary); }
.tier-rule strong { font-family: var(--display); font-weight: 500; color: var(--atni-text-heading); }
.tier-rule a { margin-left: 8px; }

/* Youth: the evidence by strength, each finding under its rating, on the right; the resolution's words, then what it asks and the steps for schools, colleges,
   and families, on the left, so neither column leaves the other an empty ground. */
@media (min-width: 1100px) {
  .youth-band { grid-template-rows: auto 1fr; }
  .youth-band > .youth-evidence { grid-column: 2; grid-row: 1 / span 2; }
  .youth-band > .youth-do { grid-column: 1; grid-row: 2; }
}
.youth-do { display: grid; gap: 8px; align-content: start; min-width: 0; }
.youth-evidence > .caption { max-width: none; margin: 0 0 8px; }
.youth-evidence > h3:first-child { margin-top: 16px; }
.youth-evidence > .disclosure { margin: 0; padding-block: 10px; border-top: 1px solid var(--rule); }
.evidence-rows { display: grid; margin: 0; padding: 0; list-style: none; }
.evidence-row { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 4px 16px; align-items: start; margin: 0; padding-block: 12px; border-top: 1px solid var(--rule); }
/* A rating is rising bars, three for Strong, so it never borrows the filled and hollow squares that mean verified, measured, and modeled elsewhere. A position
   (Advocacy, Record) is a flat line: it is not on the same scale. */
.evidence-meter { display: flex; align-items: flex-end; gap: 3px; height: 18px; margin-top: 4px; }
.evidence-meter i { display: block; width: 6px; height: 8px; background: var(--atni-text-heading); print-color-adjust: exact; }
.evidence-meter i:nth-child(2) { height: 13px; }
.evidence-meter i:nth-child(3) { height: 18px; }
.is-moderate .evidence-meter i:nth-child(3), .is-early .evidence-meter i:nth-child(n + 2) { background: var(--grid); }
.is-other .evidence-meter i { width: 24px; height: 2px; margin-bottom: 8px; background: var(--atni-text-secondary); }
.evidence-name { font-size: 0.9375rem; line-height: 1.4; color: var(--atni-text-secondary); }
.evidence-name strong { display: block; font-family: var(--display); font-weight: 600; font-size: 1.1875rem; line-height: 1.2; color: var(--atni-text-heading); }
.evidence-finds { grid-column: 2; display: grid; }
.evidence-finds > .disclosure { margin: 0; padding-block: 6px; }
.panel .evidence-finds > .disclosure > summary { font-size: 1rem; }
.youth-do > div > h3:first-child { margin-top: 16px; }

/* Working with AI: the questions to ask before adopting a tool, each with the principle and evidence behind it, in columns that keep a row together. */
.ai-asks { display: block; margin-top: 8px; }
.ai-asks .ask-set > legend { font-size: 1.375rem; }
.ai-asks .ask-set > .ai-subnote { margin: 0 0 4px; }
.ai-asks .ask-set > .ai-subnote + .ai-subnote { margin-bottom: 12px; }
.ai-asks ol { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(26rem, 100%), 1fr)); column-gap: 48px; align-items: start; }
.ai-asks .ask-q { font-family: var(--display); font-weight: 500; font-size: 1.0625rem; line-height: 1.3; color: var(--atni-text-heading); }
.ai-asks .ask-why { margin: 0 0 12px 2.25rem; }
.panel .ai-asks .ask-why > summary { font-size: 0.9375rem; color: var(--atni-text-secondary); }

.ai-side { display: grid; gap: 12px; min-width: 0; }
.ai-side .ai-subhead { margin: 16px 0 0; }
.named-risks { display: grid; gap: 0 24px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .named-risks { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.named-risks li { margin: 0; padding-block: 12px; font-family: var(--display); font-weight: 500; font-size: 1.125rem; line-height: 1.25; color: var(--atni-text-heading); border-top: 1px solid var(--rule); }

/* Policy Watch: how to use it in the claim zone, the searches and the follow list using the width beside it. */
.watch-spread { display: grid; gap: 24px 48px; }
@media (min-width: 1100px) { .watch-spread { grid-template-columns: minmax(24rem, 32fr) minmax(0, 68fr); align-items: start; } } /* the side column holds a 44-character line at 1280 (ai-16) */
.watch-side > p { max-width: var(--measure); }
.watch-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
.watch-main { padding-top: 16px; }
.watch-main > h3:first-child { margin-top: 0; }
.watch-side .climate-voice > p:last-of-type { margin-bottom: 0; }
.watch-side > h3 { margin-block: 12px 0; }
.watch-side > ol { margin-block: 0; }
.watch-side .notice { max-width: none; }
.watch-side :is(p, li) { font-size: 0.9375rem; line-height: 1.5; }

/* High Contrast drops a background, so a filled square would read as an empty one. */
@media (forced-colors: active) {
  .evidence-meter i, .count-sample { forced-color-adjust: none; }
}

@media print {
  .count-key { display: none; }
  .ai-band, .watch-spread { display: block; }
  #ai-company-money .plate-plot { min-height: 42rem; }
  #ai-company-footprint .plate-plot { min-height: 28rem; }
}
