/* Resource Use Explorer: the brief's starting points, the scenario bar, the tabs' questions and answers, the Wall, the rulers, the dumbbells, Fine-tune, and the
   Explorer's half of its Sources page. Loads after site.css, which sets the type, the brief, the tabs, the plate's zones (claim, bar, plot, window, Table,
   collar), the ladder, the evidence, and the modal drawer. Radius 0, no shadows, luminance only; the focus ring is inherited. Marks are grey until selected,
   and orange means the selected row and its needle and nothing else (DIRECTION-R2 2.2).
   The Wall's layers are two grey steps, and two orange steps on the selected row: a pair on each side of the wall, always 2px apart. Each pair passes validate_palette.js --ordinal on its ground, stands at least 15 L* apart, and clears 3:1:
   #5B6472, #8A94A6 on #010B13 (19.0 L*; 3.32, 6.49). #8D5532, #FF914C on #010B13 (29.1 L*; 3.29, 8.89). #808A9C, #525C6E on #F4F7FB (18.4 L*; 3.24, 6.27). #E85500, #A53C00 on #F4F7FB (15.8 L*; 3.41, 6.02); on white, 3.66 and 6.47.
   The light ground leaves no room above #E85500, so its second step goes darker, as the light greys do. */
/* The selected row: its main parts filled orange, its lighter parts a hollow 2px orange outline (DIRECTION-R2 2.2: a third part is a hollow outline), in both
   themes, so the selection is one color and never a brown second step (explorer-32). The key keeps the grey steps and is never repainted (explorer-26). */
:root, [data-theme="dark"] { --w-dc: var(--series-context); --w-net: #5B6472; --w-rou: var(--series-context); --w-dev: #5B6472; --w-on: var(--energy-mark); }
[data-theme="light"] { --w-dc: #525C6E; --w-net: #808A9C; --w-rou: #525C6E; --w-dev: #808A9C; --w-on: var(--energy-mark); }
@media print { :root, [data-theme] { --w-dc: #525C6E; --w-net: #808A9C; --w-rou: #525C6E; --w-dev: #808A9C; --w-on: #E85500; } }

/* The scenario bar, under the tabs and not sticky: the starting points at its left end (a scenario choice), one measure for every tab, the settings in a few
   plain words, and Fine-tune at its right; one row of controls from 1100px. */
.x-bar { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 8px 28px; align-items: center; padding-block: 12px; border-bottom: 1px solid var(--rule); }
.x-presets { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; }
.x-presets > span { font-family: var(--display); font-weight: 500; font-size: 0.875rem; color: var(--atni-text-secondary); white-space: nowrap; }
.x-presets .button { min-height: 40px; padding: 8px 14px; white-space: nowrap; }
.x-presets .button[aria-pressed="true"] { color: var(--atni-text-heading); background: var(--control-on); border-color: var(--atni-text-heading); }
.x-measure { flex-wrap: nowrap; gap: 0; }
.x-measure legend { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.x-measure label + label { margin-left: -1px; }
.x-measure span { min-width: 4.75rem; justify-content: center; font-size: 1rem; }
.x-summary p { max-width: none; margin: 0; }
.x-summary-line { font-size: 0.9375rem; line-height: 1.4; color: var(--atni-text-body); text-wrap: pretty; }
.x-summary-line b { font-family: var(--display); font-weight: 600; color: var(--atni-text-heading); }
.x-fine-open { min-height: 40px; padding: 8px 20px; }
.x-bar > .x-settings-now, .x-bar > .x-check-top { grid-column: 1 / -1; }
html:not(.js) .x-bar { grid-template-columns: minmax(0, 1fr); }
/* Under a 1360px container the settings line takes a row of its own under the controls, so it never wraps to four lines beside them. */
@media (min-width: 1100px) and (max-width: 1399px) { .x-bar { grid-template-columns: auto auto minmax(0, 1fr) auto; } .x-summary { grid-column: 1 / -1; grid-row: 2; } .x-fine-open { grid-column: 4; } }
@media (max-width: 1099px) { .x-bar { grid-template-columns: minmax(0, 1fr); } .x-presets { flex-wrap: wrap; } }
.x-check-top { max-width: none; margin: 0; }

/* Each tab opens with its question and an answer at the settings shown. */
.x-question { margin: 24px 0 6px; font-size: 1.625rem; line-height: 1.15; }
.x-answer { max-width: 52rem; margin: 0 0 20px; font-family: var(--body); font-weight: 500; font-size: 1.125rem; line-height: 1.4; color: var(--atni-text-heading); text-wrap: pretty; }
.x-answer > a { font-size: 1rem; white-space: nowrap; }
[data-theme="light"] .x-answer { font-weight: 400; }

/* The three repeaters with settings (catalog, Architectures, Crossovers): the settings head the window column and the window starts under them, so the plot
   starts right under the title and no band stands empty beside the claim (explorer-12). A departure from the kit's repeater, whose claim zone spans the plate,
   because these settings stand taller than their titles. The Table, when pressed, still spans plot and window, under the settings. */
@media screen and (min-width: 1100px) {
  .x-plate:is(#catalog, #architectures, #crossovers) { grid-template-columns: minmax(0, 70fr) minmax(18rem, 30fr); grid-template-areas: "claim controls" "claim window" "bar window" "plot window" "under window" ". window" "table table" "collar collar"; grid-template-rows: auto auto auto auto auto 1fr auto auto; }
  .x-plate:is(#catalog, #architectures, #crossovers) > .plate-claim { display: block; }
  .x-plate > .plate-controls { grid-area: controls; padding-bottom: 16px; }
}
/* A lead plate keeps its claim column, plot and window side by side from a 1180px container, not the kit's 1360px, so at 1280 the plot (about 590px, over
   resource-use-01's 500px floor) and the readout start on the first screen as they do at 1440 (explorer-14). The same grid as site.css's wide lead. */
@container (min-width: 1180px) {
  @media screen and (min-width: 1100px) {
    .x-plate:is([data-variant="lead"], :not([data-variant]):not(.plate:not([data-variant]) ~ *)) { grid-template-columns: minmax(17rem, 20fr) minmax(0, 52fr) minmax(19rem, 28fr); grid-template-areas: "claim bar bar" "claim plot window" "claim under window" "claim . window" "table table table" "collar collar collar"; grid-template-rows: auto auto auto 1fr auto auto; }
    .x-plate:is([data-variant="lead"], :not([data-variant]):not(.plate:not([data-variant]) ~ *)) > .plate-claim { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 0 16px; }
    .x-plate:is([data-variant="lead"], :not([data-variant]):not(.plate:not([data-variant]) ~ *)) > .plate-claim > .plate-controls { grid-column: 1; grid-row: auto; }
  }
}

/* The window names the measure it shows, and links to the bar. */
.x-measure-now { margin: 0 0 -4px; font-size: 0.875rem; color: var(--atni-text-secondary); }
.x-measure-now b { font-family: var(--display); font-weight: 600; color: var(--atni-text-heading); }
.x-measure-now a { margin-left: 8px; }
.plate-setting { display: none; } /* the bar says the settings; paper and the page without scripts print them under each plate */
html:not(.js) .plate-setting { display: block; }
.x-banner { font-family: var(--display); font-weight: 500; color: var(--atni-text-heading); }
/* The readout: the figure and its unit on one line, what it counts under them. */
.x-unit { font-family: var(--body); font-weight: 500; font-size: 1.25rem; line-height: 1.35; letter-spacing: 0; color: var(--atni-text-body); }
.x-unit:empty { display: none; }
.x-plate .readout-unit { flex-basis: 100%; font-weight: 400; font-size: 1rem; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--atni-text-secondary); }
/* The disclosures under a plate: heading ink, so the plot's selection is the only orange. */
main .disclosure-grid { gap: 12px 32px; margin: -8px 0 32px; }
main .disclosure-grid > .disclosure { margin: 0; }
main .disclosure > summary { color: var(--atni-text-heading); }
main .disclosure > summary::marker { color: var(--atni-text-muted); }
.plate-more > summary::marker { color: var(--atni-text-muted); }
.plate-more[open] > summary { margin-bottom: 8px; }

/* Fields: four on the first screen, two by two, with their boxes lined up whatever a label wraps to. */
.x-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; align-items: start; }
.x-more-inputs .x-fields { margin-bottom: 8px; }
.x-field { display: grid; gap: 2px; align-content: start; }
.x-fields > .x-field { grid-template-rows: subgrid; grid-row: span 3; }
.x-field label { align-self: end; font-family: var(--display); font-weight: 500; font-size: 0.875rem; line-height: 1.2; color: var(--atni-text-secondary); }
.x-field input, .x-field select { width: 100%; min-height: 44px; padding: 8px; font-family: var(--body); font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--atni-text-heading); background: var(--atni-ground-overlay); border: 1px solid var(--control-edge); border-radius: 0; }
.x-field input[aria-invalid="true"] { border-color: var(--atni-text-heading); border-width: 2px; }
.x-field .caption { font-size: 0.875rem; line-height: 1.25; color: var(--atni-text-secondary); }
.x-defaults, .x-start { margin: 0; }
.x-why { margin: 0; color: var(--atni-text-body); }
.x-why:empty { display: none; }

/* The Wall: one track per row, a 2px rule at --wall, the reader's side left of it, beyond it right. Rows share the zone's height, so the rule runs unbroken from the head to the axis, and the
   selected row's needle runs the same height: it stands in its row and the rows' box cuts it at the plot's top and foot. */
/* The track stops at 48rem, so at 1920 and 2560 a short bar's figure stays near it rather than across an empty half of the plot (explorer-15). */
.wall { --row: var(--row-min); --bar: 24px; --track: 48rem; container-type: inline-size; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
/* Nine one-line rows, the figure and its spread on one line: 40px a row (2.5rem), so the whole week fits the plot at 1920 (explorer first screen). */
[data-board="use"] { --row: 2.5rem; --l: clamp(9rem, 30%, 17rem); --v: clamp(10rem, 26%, 14rem); }
[data-board="use"] .wall-row { box-sizing: border-box; padding-block: 2px; } /* a label that wraps keeps its rows apart, inside the row's 40px */
[data-board="use"] .ladder-value { font-size: 1.25rem; }
[data-board="use"] .ladder-value > .ladder-tag { order: 0; flex-basis: auto; margin-top: 0; font-size: 0.9375rem; }
.wall-head { display: grid; grid-template-columns: var(--l) minmax(0, var(--track)) var(--v); column-gap: 12px; max-width: none; margin: 0; font-family: var(--display); font-weight: 500; font-size: 0.875rem; line-height: 1.2; color: var(--atni-text-secondary); }
.wall-sides { position: relative; display: block; min-height: 3.2em; }
.wall-sides::before { content: ""; position: absolute; left: calc(var(--wall) * 100% - 1px); top: 1.6em; bottom: 0; width: 2px; background: var(--baseline); }
.wall.is-plain .wall-sides::before { width: 1px; }
/* The two words hang off the rule on one line, each with the way its side runs (explorer-16); a narrow left side runs over the head's empty label cell rather than wrapping. */
.wall-sides > span:not(.wall-needle-label) { position: absolute; bottom: 4px; white-space: nowrap; }
.wall-sides > span:nth-last-child(2) { right: calc((1 - var(--wall)) * 100% + 8px); text-align: right; }
.wall-sides > span:last-child { left: calc(var(--wall) * 100% + 8px); }
.wall:not(.is-plain) .wall-sides > span:nth-last-child(2)::before { content: "\2190\00a0"; }
.wall:not(.is-plain) .wall-sides > span:last-child::after { content: "\00a0\2192"; }
/* The needle's name: the selected row's figure, over the plot where the needle stands, in the needle's color; near the right end it reads leftward. */
.wall-needle-label { position: absolute; top: 0; left: calc(var(--x) * 100%); padding-left: 4px; font-family: var(--display); font-weight: 600; font-size: 0.875rem; line-height: 1.4; white-space: nowrap; color: var(--energy-text); border-left: 2px solid var(--energy-mark); }
.wall-needle-label.is-flip { padding: 0 4px 0 0; border-left: 0; border-right: 2px solid var(--energy-mark); transform: translateX(-100%); }
.wall-needle-label[hidden] { display: none; }
.wall.is-plain .wall-sides { min-height: 3.6em; }
.wall.is-plain .wall-sides > span:not(.wall-needle-label) { max-width: calc(100% - 8px); white-space: normal; }
.wall-rows { position: relative; flex: 1 1 auto; display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; overflow: hidden; overflow: clip; }
.wall-row { display: grid; grid-template-columns: var(--l) minmax(0, var(--track)) var(--v); column-gap: 12px; align-items: center; flex: 1 0 var(--row); margin: 0; cursor: pointer; }
[data-board="arch.D"] .wall-row { padding-block: 4px; } /* a value and its range take two lines, so a row never touches the next (explorer-13) */
[data-board^="arch."] { --v: clamp(9rem, 24%, 15rem); }
/* A Catalog row's price basis is the tag under its label, so the label takes the room and the value cell keeps the figure and its spread. A price names its own basis in the value cell, so the tag steps aside there. */
[data-board^="catalog."] { --l: clamp(9rem, 37%, 18rem); --v: clamp(8.5rem, 20%, 13rem); --row: 3rem; }
[data-board^="catalog."] .wall-row { padding-block: 4px; }
[data-board^="catalog."][data-measure="ml"] { --v: clamp(10rem, 30%, 18rem); } /* two basins print as two figures, on one line */
.x-plot .ladder-label > .ladder-tag { font-size: 0.9375rem; line-height: 1.3; }
.x-plot [data-measure="usd"] .ladder-label > .ladder-tag { display: none; }
.wall-track { position: relative; align-self: stretch; min-height: var(--row); }
.wall-track::before { content: ""; position: absolute; left: calc(var(--wall) * 100% - 1px); top: 0; bottom: 0; width: 2px; background: var(--baseline); }
.wall.is-plain .wall-track::before { width: 1px; }
.w { position: absolute; top: calc(50% - (var(--bar) + 10px) / 2); height: var(--bar); min-width: 3px; background-clip: padding-box; border-inline: 1px solid transparent; transition: left 120ms var(--ease), width 120ms var(--ease); }
.w-dev, .w-key-dev { background-color: var(--w-dev); }
.w-rou, .w-key-rou { background-color: var(--w-rou); }
.w-net, .w-key-net { background-color: var(--w-net); }
.w-dc, .w-key-dc { background-color: var(--w-dc); }
.wall-row.is-on .w-dc, .wall-row.is-on .w-rou { background-color: var(--w-on); }
.wall-row.is-on .w-net, .wall-row.is-on .w-dev { background-color: transparent; box-shadow: inset 0 0 0 2px var(--w-on); } /* inside the 1px gap, so the two parts stay apart */
.plate-square.w-key-dev, .plate-square.w-key-rou, .plate-square.w-key-net, .plate-square.w-key-dc, .wall-key .plate-square { box-sizing: border-box; width: 12px; height: 12px; }
.plate-square.is-hollow { background: none; border: 1.5px solid var(--series-context); }
.is-beside .w { background: none; border: 1.5px solid var(--w-dc); }
.wall-row.is-on.is-beside .w { background: none; border-color: var(--energy-mark); }
/* The spread: an 8px band under the bar, under 3:1 on purpose, because the row prints it in words beside it. It never wears the selection's orange (explorer-26):
   on the selected row it darkens to secondary ink. An end that runs off the ruler fades out. */
.wall-range { position: absolute; top: calc(50% + (var(--bar) + 10px) / 2 - 8px); height: 8px; background: var(--series-context); opacity: 0.4; transition: left 120ms var(--ease), width 120ms var(--ease); }
.wall-row.is-on .wall-range { opacity: 0.85; background: var(--atni-text-secondary); }
.wall-range.is-off { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
.wall-range.is-off-left { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 24px), transparent); }
.wall-needle { display: none; position: absolute; z-index: 3; top: -100vh; bottom: -100vh; width: 2px; margin-left: -1px; background: var(--energy-mark); pointer-events: none; transition: left 120ms var(--ease); }
.wall-row.is-on .wall-needle { display: block; }
/* Price has no bars to draw, so the bases get the room, and a 2px tick stands where the band and needle would. */
.wall[data-measure="usd"], .x-ruler[data-measure="usd"] { --v: min(60%, 28rem); }
.wall[data-measure="usd"] .wall-row { padding-left: 10px; }
.wall[data-measure="usd"] .wall-row.is-on { box-shadow: inset 2px 0 0 var(--energy-mark); }
.wall[data-measure="usd"] .wall-needle { display: none; }
.wall[data-measure="usd"] .wall-track::before, .wall[data-measure="usd"] .wall-sides::before { opacity: 0.25; }
.wall[data-measure="usd"] .wall-sides > span { visibility: hidden; } /* a price has no side of the wall */
.wall[data-measure="usd"] :is(.wall-axis, .wall-off, .wall-words, .wall-key > li:not(.wall-key-spread), .wall-key-range) { display: none; } /* a price draws no layer, so the key names none; how to read a range still holds */
.wall-row.is-beside .ladder-value > .ladder-tag { color: var(--atni-text-body); }
.wall-group { flex: none; grid-column: 1 / -1; align-self: end; margin: 8px 0 0; padding: 4px 0; font-family: var(--display); font-weight: 500; font-size: 0.875rem; color: var(--atni-text-secondary); border-bottom: 1px solid var(--rule); list-style: none; }
.wall-rows > .wall-group { align-self: stretch; }
.wall-axis { position: relative; flex: none; height: 24px; margin-inline: calc(var(--l) + 12px) calc(var(--v) + 12px); font-size: 0.875rem; line-height: 1.2; font-variant-numeric: tabular-nums; color: var(--atni-text-secondary); }
.wall-axis::before { content: ""; position: absolute; left: calc(var(--wall) * 100% - 1px); top: 0; height: 8px; width: 2px; background: var(--baseline); } /* the wall is the zero; the same scale runs out both ways */
.wall.is-plain .wall-axis::before { width: 1px; }
.wall-axis span { position: absolute; left: calc(var(--x) * 100%); top: 4px; transform: translateX(-50%); white-space: nowrap; }
.wall-axis .wall-zero { top: 8px; font-family: var(--display); font-weight: 600; color: var(--atni-text-heading); }
/* The left ticks stand in a box as wide as the left side. Under 120px the ticks go, and the box's words hang off the wall as the head's do, so the side still reads on the right's ruler. */
.wall-axis-left { position: absolute; left: 0; top: 0; bottom: 0; width: calc(var(--wall) * 100%); container-type: inline-size; }
.wall-axis-left span { left: calc(var(--x) / var(--wall) * 100%); }
.wall-axis-left i { position: absolute; right: 8px; top: 4px; font-style: normal; white-space: nowrap; }
.wall-axis-left span ~ i { display: none; }
@container (max-width: 120px) { .wall-axis-left span { display: none; } .wall-axis-left span ~ i { display: block; } }
@container (max-width: 34rem) { .wall-axis > span:not(:last-child, .wall-zero) { display: none; } } /* a narrow ruler keeps its zero and its far tick: ticks would run together */
.wall-off { flex: none; max-width: none; margin: 4px 0 0; font-size: 0.875rem; }
.wall-gridnote { margin: 6px 0 0; max-width: none; color: var(--atni-text-body); }
/* How to read the Wall, once, under the head's two sides and over the first row, in the track's column (explorer-34). Then, under the axis, the key: by side,
   each part's grey swatch beside its own word, never repainted by the selection (explorer-26, -27), then the spread and how to read it. */
.wall-words { flex: none; max-width: none; margin: 0 0 4px calc(var(--l) + 12px); font-size: 0.875rem; line-height: 1.3; color: var(--atni-text-body); }
.wall-key { display: flex; flex-wrap: wrap; gap: 4px 24px; margin: 6px 0 0; padding: 0; list-style: none; font-size: 0.875rem; line-height: 1.3; color: var(--atni-text-secondary); }
.wall-key li { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin: 0; }
.wall-key li:is(.wall-key-side, .wall-key-spread) { flex-basis: 100%; } /* two lines by side, then the spread */
.wall-key li.wall-key-spread { flex-wrap: nowrap; align-items: baseline; }
.wall-key-spread > .wall-key-range { flex: none; }
.wall-key-range { width: 16px; height: 8px; background: var(--series-context); opacity: 0.4; }
.x-key-line { width: 2px; height: 14px; background: var(--baseline); }
.x-plot > [data-group] { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.x-plot .ladder-group-label { margin: 0 0 4px; }
html:not(.js) .x-plot > [data-group="scale:unit"] { margin-top: 24px; } /* one view at a time with scripts, the two stacked without */
.x-ruler { flex: 1 1 auto; }
.x-ruler .ladder-axis span { white-space: nowrap; }
@media (max-width: 1799px) { [data-board^="cross."] .ladder-axis span:nth-child(even) { display: none; } } /* nine-digit ticks would run together, so every second one names itself; the grid keeps every decade */
.x-ruler[data-measure="usd"] .ladder-axis, .x-ruler[data-measure="usd"] .ladder-grid { display: none; }
.x-ruler .wall-group { position: relative; z-index: 1; align-self: end; background: var(--plot-ground); } /* the group's words sit over the grid lines, under the needle */
.x-lever-note { flex: none; max-width: none; margin: 8px 0 0; }
/* A ruler's needle stands at the selected row's mark. Levers have none: the before line at 100 percent stands for every row. */
.x-ruler:not([data-board="lever"]) .ladder-rows { position: relative; overflow: hidden; overflow: clip; }
.x-ruler:not([data-board="lever"], [data-measure="usd"]) .ladder-row.is-on:has(.ladder-mark:not([hidden])) .ladder-track::after { content: ""; position: absolute; z-index: 1; top: -100vh; bottom: -100vh; left: calc(var(--x) * 100%); width: 2px; margin-left: -1px; background: var(--energy-mark); pointer-events: none; }
[data-board="lever"] { --l: clamp(10rem, 30%, 17rem); --v: clamp(11rem, 28%, 16rem); }
[data-board^="cross."] { --l: clamp(10rem, 28%, 17rem); --v: clamp(11rem, 26%, 16rem); container-type: inline-size; }
[data-board^="cross."] .ladder-row { min-height: 4.25rem; } /* the count and its range each hold a line, and rows never touch (explorer-12) */
[data-board^="cross."] .ladder-value { font-size: 1.25rem; }
/* Levers on one scale (explorer-18): 0 to 125 percent of before, the before line at 100 percent through every row (the kit's zero line), and each lever a bar
   from that line to after. A saving runs left; more than before is an outlined bar past the line; past 125 percent the bar fades at the scale's end and the
   row prints its figure. The answer ranks the levers, so the plot lets a reader rank them by eye. */
.x-lever .ladder-bar { height: min(20px, 50%); }
.x-lever.is-off .ladder-bar { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent); }
.x-ruler[data-board="lever"] .ladder-grid i.is-zero { width: 2px; margin-left: -1px; }
/* A crossover that may never come: the high end stays open, the band fades, and the words stand where it would end, unless the ruler is too narrow for them. */
.x-ruler .ladder-row.is-or-never .ladder-range { -webkit-mask-image: linear-gradient(to right, #000 60%, transparent); mask-image: linear-gradient(to right, #000 60%, transparent); }
.x-or-never { position: absolute; z-index: 2; left: min(calc(var(--hi, var(--x)) * 100% + 6px), calc(100% - 3.5rem)); top: 50%; transform: translateY(-50%); font-style: normal; font-size: 0.875rem; line-height: 1.2; white-space: nowrap; color: var(--atni-text-body); }
@container (max-width: 44rem) { .x-or-never { display: none; } } /* the value column says "or never" in words */

/* A reader's own reading: the model's label on every row it moved, in heading ink so it is read with the figure, and its one sentence at the window's foot. */
.x-measured-tag { display: block; margin-top: 2px; font-family: var(--body); font-weight: 500; font-size: 0.875rem; line-height: 1.25; color: var(--atni-text-heading); }
.x-plot [data-row]:has(.x-measured-tag) { padding-block: 4px; }
.x-measured-line { max-width: none; margin: 0; font-size: 0.9375rem; line-height: 1.4; color: var(--atni-text-heading); }
/* Comparison E: two kinds of row under two heads, which sit over the rule and the needle. A price row names its basis on a second line, so it keeps the height. */
[data-board="arch.E"][data-measure="usd"] { --row: 52px; }
.wall-row.is-one-line { --row: 40px; } /* a move's price: its basis is in the group head, so the figure and its spread hold one line */
.wall-row.is-one-line .ladder-value > .ladder-tag { order: 0; flex-basis: auto; margin-top: 0; }
.wall[data-measure="usd"] .wall-head { display: none; } /* a price has no side of the wall, so the head's words go, and their room with them */
.wall-group[data-phase] { position: relative; z-index: 4; background: var(--plot-ground); }
.x-exit-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.x-payback-line { max-width: none; margin: 0; font-size: 0.9375rem; line-height: 1.4; color: var(--atni-text-body); font-variant-numeric: tabular-nums; }
.x-paybacks { display: grid; gap: 4px; margin-bottom: 12px; }
.x-paybacks .label { margin: 0; color: var(--atni-text-heading); }
.x-paybacks .x-readings { gap: 2px; margin: 0; font-size: 0.9375rem; }
.x-paybacks strong { font-family: var(--display); font-weight: 600; color: var(--atni-text-heading); font-variant-numeric: tabular-nums; }
/* The custody setting stands in the plate's bar, over the plot it filters; its fixed line is in the claim zone. What a rule leaves out stands under the plate. */
.x-custody-setting { display: grid; gap: 4px; flex: 1 1 auto; min-width: 0; }
.x-custody-setting .segmented { display: flex; flex-wrap: wrap; gap: 0; }
.x-custody-setting legend { margin: 0 0 4px; }
.x-custody-setting .caption { max-width: none; margin: 0; }
.x-custody-line { font-size: 0.9375rem; line-height: 1.4; color: var(--atni-text-secondary); }
.x-custody-now { color: var(--atni-text-heading); }
.x-custody-now:empty { display: none; }
.x-has-custody > .plate-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 24px; }
/* A row the custody rule removes keeps its place, as the kit's ghost row does: its label at 40 percent, no mark, and its reason in secondary ink over the track. */
.wall-row.is-ghost { cursor: default; }
.wall-row.is-ghost .ladder-label { opacity: 0.4; }
.wall-row.is-ghost .ladder-value { font-family: var(--body); font-weight: 400; font-size: 0.875rem; line-height: 1.3; letter-spacing: 0; color: var(--atni-text-secondary); }
@media (min-width: 720px) { .wall-row.is-ghost .ladder-value { grid-column: 2 / -1; grid-row: 1; justify-self: start; position: relative; z-index: 2; padding-inline: 8px; background: var(--plot-ground); } }
tr.is-ghost > th { opacity: 0.4; }
tr.is-ghost > td { font-size: 0.875rem; color: var(--atni-text-secondary); }
.x-custody { margin: 0 0 24px; }
.x-custody-block > :first-child { margin-top: 0; }
.x-custody-title { margin: 0 0 4px; font-size: 1.125rem; }
.x-custody-grid { display: grid; gap: 12px 32px; align-items: start; margin-top: 8px; }
.x-custody-grid > div { display: grid; gap: 8px; min-width: 0; }
.x-custody-grid .x-named { margin: 0; }
.x-custody-grid .label { margin: 0; }
.x-custody-cost { width: 100%; font-size: 0.9375rem; }
.x-custody-cost td { text-align: left; }
.x-custody-cost th[scope="row"] { font-weight: 400; color: var(--atni-text-body); }
@media (min-width: 1100px) { .x-custody-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* What wins, what loses, and what reverses it: open under the Architectures plate for the comparison shown (explorer-37), in two prose columns. */
.x-verdict { margin: -8px 0 24px; padding-top: 16px; border-top: 1px solid var(--rule); }
.x-verdict > h3 { margin: 0 0 8px; font-size: 1.25rem; }
/* Two prose columns of at most 36rem (DIRECTION-R2 2.4's prose band), not one 150-character line (explorer-31). */
.x-verdict .x-arch-words { display: block; max-width: calc(72rem + 48px); columns: 2 22rem; column-gap: 48px; }
.x-verdict .x-arch-words > * { margin-block: 0 8px; break-inside: avoid; }
.x-verdict .x-arch-words > .label { break-after: avoid; }
.x-verdict .caption { max-width: none; font-size: 0.9375rem; line-height: 1.45; color: var(--atni-text-body); }
/* The illustrative damage: its own line under the figures, never beside the price. The DOM keeps the model's words exact; only the first letter is raised. */
.x-damage { display: grid; gap: 2px; padding-top: 8px; border-top: 1px solid var(--rule); }
.x-damage-head { font-family: var(--display); font-weight: 500; font-size: 0.875rem; line-height: 1.25; color: var(--atni-text-secondary); }
.x-damage-head::first-letter { text-transform: uppercase; }
.x-damage-figures { font-size: 1rem; line-height: 1.3; font-variant-numeric: tabular-nums; color: var(--atni-text-heading); }
.x-outputs .x-damage-row { cursor: default; }

/* The window: the energy large, then three figures in one row, each with its basis in few words, then the sentence. */
.x-measures { display: grid; grid-template-columns: repeat(auto-fit, minmax(5.5rem, 1fr)); gap: 8px 16px; align-items: start; }
.x-water { display: contents; }
.x-measures > [hidden] { display: none; } /* the measure the readout shows */
.x-figure { display: grid; gap: 2px; align-content: start; }
.x-figure .caption { font-size: 0.875rem; line-height: 1.3; }
.x-big { 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); overflow-wrap: anywhere; }
.x-big > span { white-space: nowrap; }
.x-big-unit { font-family: var(--body); font-weight: 500; font-size: 0.875rem; letter-spacing: 0; color: var(--atni-text-body); }
.x-modeled > :not(summary) + :not(summary) { margin-top: 8px; }
.x-layers li { grid-template-columns: 14px minmax(4.5rem, max-content) minmax(0, 1fr); }
.x-tokens { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--rule); }
.x-lines { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; font-size: 1rem; font-variant-numeric: tabular-nums; }
.x-lines li { margin: 0; }
.x-week { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--rule); }
.x-week-title { margin: 0 0 4px; font-size: 1rem; }
.x-week-line { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; max-width: none; }
.x-week-line strong { flex: none; font-family: var(--display); font-weight: 600; font-size: 1rem; color: var(--atni-text-heading); font-variant-numeric: tabular-nums; }
.x-check { color: var(--atni-text-secondary); }
.x-check.is-warn { padding: 8px; font-weight: 700; color: var(--atni-ground-base); background: var(--atni-text-heading); }
.x-note-slot, .x-note { display: grid; gap: 6px; font-size: 0.875rem; line-height: 1.45; color: var(--atni-text-secondary); }
.x-note-slot p, .x-note p { margin: 0; max-width: none; }
.x-note-title { font-family: var(--display); font-weight: 500; font-size: 0.9375rem; color: var(--atni-text-heading); }
.x-notes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 26rem), 1fr)); gap: 16px 24px; max-width: none; }
.x-notes > .x-note { padding-top: 8px; border-top: 1px solid var(--rule); }
a.receipt { text-decoration: none; }
a.x-c { white-space: nowrap; }
.x-arch-words { display: grid; gap: 6px; }
.x-arch-words .label { margin: 4px 0 0; color: var(--atni-text-heading); }
.x-pairs, .x-readings { display: grid; gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; font-size: 0.875rem; line-height: 1.4; }
.x-pairs li, .x-readings li { margin: 0; }
.x-reversals { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); }
.x-reversals .x-pairs { margin-top: 4px; }
@media screen { .x-reversals:not(:has(li:not([hidden]))) { display: none; } } /* a measure with no printed pair says nothing */
.x-admin-note { display: grid; gap: 8px; }
.x-admin-note strong { font-weight: 700; color: var(--atni-text-heading); }
.x-admin-row { display: flex; gap: 12px; align-items: flex-end; }
.x-admin-row > .x-field { flex: 0 0 6.5rem; }
.x-chip { display: inline-block; padding: 1px 6px; font-size: 0.875rem; color: var(--atni-text-heading); background: var(--tag-bg); }
.x-named { display: grid; gap: 6px; margin: 8px 0; padding-left: 1rem; font-size: 0.9375rem; line-height: 1.4; }
.x-named li { margin: 0; }
.x-named li::marker { color: var(--atni-text-muted); }
/* A Table row's claims: each id with its status square and word, so the figure's claim and status are one press away, on paper too. */
.x-claim { white-space: nowrap; }
.x-claim .st { margin-right: 4px; color: var(--atni-text-heading); }
.plate-table td[data-c="claims"] { min-width: 12rem; font-size: 0.875rem; line-height: 1.5; white-space: normal; }
.x-text-table td { text-align: left; }
.plate-table td { text-align: left; }
.x-disclaimer strong { color: var(--atni-text-heading); }

/* AI Is Not the Building: the waffle with its words beside it, then one row of five places under them. The share is the selection, so it wears the orange. */
.x-building { --waffle: clamp(11rem, 26vh, 19rem); }
.x-pictures { display: grid; gap: 16px; align-content: start; }
.x-picture h4 { margin: 0 0 8px; }
.x-picture > .caption { max-width: none; }
.x-waffle figure { display: grid; gap: 12px; margin: 0; }
.x-waffle-art svg { display: block; width: var(--waffle); max-width: 100%; height: auto; }
.x-w-ai { fill: var(--series-context); }
.x-d-ai, .x-d-rest, .x-d-range { fill: none; stroke-width: 12; stroke-dasharray: 12 2; }
.x-d-ai { stroke: var(--energy-mark); }
.x-d-rest { stroke: var(--w-dev); }
.x-d-range { stroke: var(--energy-mark); stroke-opacity: 0.4; }
.x-waffle figcaption { display: grid; gap: 8px; align-content: start; font-size: 1rem; line-height: 1.4; color: var(--atni-text-body); }
.x-waffle figcaption strong { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.2; color: var(--atni-text-heading); }
.x-waffle-rest { color: var(--atni-text-secondary); }
.x-places { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: 12px 16px; margin: 12px 0; padding: 0; list-style: none; }
.x-place { display: grid; gap: 6px; align-content: start; margin: 0; }
.x-place strong { min-height: 2.4em; font-family: var(--display); font-weight: 500; font-size: 1.125rem; line-height: 1.2; color: var(--atni-text-heading); }
.x-place-art { display: flex; align-items: flex-start; min-height: 40px; }
.x-place-art svg { max-width: 100%; height: auto; }
.x-place-wh { font-family: var(--display); font-weight: 600; font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--atni-text-heading); }
.x-place.is-device .x-w-ai { fill: var(--w-dev); }
.x-building .plate-detail > [data-group] { display: grid; gap: 12px; }
/* This plate has one figure and no Table, so its receipts are one line: the status opens About this figure, and the id goes to its source. */
.x-this-figure { margin: 0; font-size: 0.9375rem; line-height: 1.4; color: var(--atni-text-heading); }
.x-this-figure a { display: inline-block; padding-block: 6px; color: var(--atni-text-heading); text-decoration-color: var(--control-edge); }
@media (min-width: 900px) {
  .x-waffle figure { grid-template-columns: var(--waffle) minmax(0, 1fr); gap: 24px; }
}

/* A proposal */
.x-project-plot { justify-content: start; gap: 12px; }
.x-project-plot p { max-width: var(--measure-wide); margin: 0; }
.x-project-hint { color: var(--atni-text-body); }
.x-formula { font-size: 0.9375rem; line-height: 1.45; color: var(--atni-text-secondary); }
.x-project-form { gap: 10px; }
.x-project-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.x-project-actions [data-example] { color: var(--atni-text-heading); background: transparent; border-color: var(--control-edge); text-wrap: balance; }
.x-project-actions [data-example]:hover { border-color: var(--atni-text-heading); }
.x-project-actions .plate-status { flex-basis: 100%; }
.x-plate[data-plate-x="project"] .plate-detail { display: grid; gap: 12px; align-content: start; }
.x-plate[data-plate-x="project"] .plate-detail .reading { min-height: 0; } /* no actions under it to hold still, so no empty band (explorer-20) */
.brief.x-brief { padding-bottom: 10px; } /* the starting points moved to the bar; the brief keeps under 200px at 1440 (DIRECTION-R2 3.1) */
.x-outputs { flex: none; grid-auto-rows: minmax(64px, auto); margin: 0; }
.x-outputs .instrument-row { grid-template-columns: minmax(10rem, 1fr) minmax(0, 2fr); cursor: default; }
.x-outputs .instrument-row.is-fixed .ladder-value { font-family: var(--display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 0.8vw, 2.25rem); line-height: 1.1; color: var(--atni-text-heading); }
.x-outputs .instrument-row.is-fixed .ladder-value.is-ask { font-family: var(--body); font-weight: 400; font-size: 1rem; color: var(--atni-text-secondary); } /* a prompt reads as words, not as a figure (explorer-20) */
.slider-presets-button { min-height: 32px; margin: 4px 4px 0 0; padding: 4px 8px; font-family: var(--body); font-size: 0.875rem; color: var(--atni-text-heading); background: transparent; border: 1px solid var(--control-edge); border-radius: 0; cursor: pointer; }
.slider-presets-button:hover { border-color: var(--atni-text-heading); }
.x-all-sources { margin-block: 8px 32px; }
.x-settings-now { display: none; columns: 2; margin: 0; font-size: 0.875rem; }
/* With scripts, the first paint lays out one tab and no Table, as the page will stand once the kit's tabs and the plates are live, not the whole page twice
   (explorer-19, and no jump). Without scripts every panel and Table shows; with them, the kit's hidden governs once a panel has its role, and setView once a
   plate is live. */
html.js section.panel:not([role="tabpanel"]):not(:first-of-type), html.js .x-plate:not(.is-live) > .plate-view[data-view="table"] { display: none; }
html:not(.js) .x-settings-now { display: block; } /* keyed on theme.js's class in the head, so the first paint has the bar's final height (explorer CLS) */

/* Fine-tune: the kit's left drawer (site.css dialog.drawer-left), its settings in headed groups, each setting's reason shown while its group has focus. */
.x-fine .drawer-body { display: grid; gap: 14px; align-content: start; }
.x-fine .drawer-body > .caption { margin: 0; }
.x-fine-group { display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid var(--rule); }
.x-fine-group h3, .x-fine h3 { margin: 0; font-size: 1.0625rem; }
.x-fine .segmented { gap: 4px; }
.x-fine .segmented legend { color: var(--atni-text-heading); }
.x-fine .drawer-foot .plate-status { margin: 0; }
.x-why-line { flex-basis: 100%; margin: 2px 0 6px; }
.x-live .x-fine fieldset:not(:focus-within) .x-why-line { display: none; }
/* In Fine-tune: the files, then a reader's own readings, each field beside the model's figure it stands in for. */
.x-scenario { display: grid; gap: 8px; }
.x-scenario-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.x-scenario-actions .button { min-height: 44px; padding: 8px 12px; }
.x-file { position: relative; cursor: pointer; }
.x-file input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.x-file:focus-within { outline: 2px solid var(--atni-text-heading); outline-offset: 2px; }
.x-scenario-warn { display: grid; gap: 8px; padding-top: 8px; border-top: 1px solid var(--rule); }
.x-scenario-warn p { margin: 0; font-size: 0.9375rem; line-height: 1.4; color: var(--atni-text-body); }
.x-scenario-warn strong { color: var(--atni-text-heading); }
.x-scenario-status:empty, .x-reading-status:empty { display: none; }
.x-scenario-status p, .x-reading-status p { margin: 0; }
.x-scenario-status .x-named { margin: 4px 0 0; }
.x-reading-status { color: var(--atni-text-heading); }
.x-readings-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.x-reading { display: grid; grid-template-columns: 6rem minmax(0, 1fr); gap: 2px 10px; align-items: center; margin: 0; }
.x-reading label { grid-column: 1 / -1; font-family: var(--display); font-weight: 500; font-size: 0.875rem; line-height: 1.25; color: var(--atni-text-heading); }
.x-reading input { width: 100%; min-height: 44px; padding: 8px; font-family: var(--body); font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--atni-text-heading); background: var(--atni-ground-overlay); border: 1px solid var(--control-edge); border-radius: 0; }
.x-reading input[aria-invalid="true"] { border-color: var(--atni-text-heading); border-width: 2px; }
.x-reading .caption { font-size: 0.875rem; line-height: 1.25; overflow-wrap: anywhere; }
#readings:focus { outline: 2px solid var(--atni-text-heading); outline-offset: 2px; }

/* The Explorer's Sources page: each plate's claims as a list, its notes folded, and the method as prose with its tables. */
.x-claim-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); gap: 2px 24px; margin: 8px 0 12px; padding: 0; list-style: none; font-size: 0.875rem; line-height: 1.5; }
.x-claim-list li { margin: 0; }
.x-claim-list .st { margin-right: 4px; color: var(--atni-text-heading); }
.sources-page:has(input[value="partly"]:checked) .x-claim-list li[data-status="verified"] { display: none; }
.x-method > :is(p, ul) { max-width: 44rem; }
.x-method > h3 { margin: 24px 0 8px; }
.x-backtest { margin: 16px 0; }
.x-backtest figcaption { margin-bottom: 8px; font-family: var(--display); font-weight: 600; font-size: 1.125rem; color: var(--atni-text-heading); }

@media (forced-colors: active) { .w, .wall-range, .wall-needle, .plate-square, .x-chip, .wall-track::before, .wall-sides::before, .wall-axis::before, .wall-key-range, .x-ruler .ladder-range, .x-ruler .ladder-mark, .x-ruler .ladder-track::after { forced-color-adjust: none; } .x-plot [data-row].is-on { outline: 2px solid Highlight; outline-offset: -2px; } }
@media (max-width: 719px) {
  .x-plot .ladder-row { grid-template-columns: minmax(0, 1fr) fit-content(55%); } /* an auto column takes the whole row for a long value, and the label breaks letter by letter */
  .wall-row { grid-template-columns: minmax(0, 1fr) fit-content(55%); grid-template-areas: "label value" "track track"; }
  .wall-row .ladder-label { grid-area: label; }
  .wall-row .ladder-value { grid-area: value; }
  .wall-track { grid-area: track; min-height: 44px; }
  .wall-needle, .x-ruler:not([data-board="lever"], [data-measure="usd"]) .ladder-row.is-on:has(.ladder-mark:not([hidden])) .ladder-track::after { top: 0; bottom: 0; } /* rows stack here, so a full-height needle would cross the labels */
  .wall-head, .wall-axis { display: none; }
  .x-outputs .instrument-row { grid-template-columns: minmax(0, 1fr); }
  .x-measure span { min-width: 0; }
}

/* Reduced motion: the bars jump to their new length. site.css holds the same rule for the whole site; this keeps the Wall's own transitions honest if that rule moves. */
@media (prefers-reduced-motion: reduce) {
  .w, .wall-range, .wall-needle, .x-plate .ladder-mark { transition: none; }
}

/* Print (DIRECTION-R2 3.7, item 10, explorer-01): the brief, the bar's settings, and the open tab, each plate as its plot, Reading, Table and collar, and the
   comparison or view the reader chose. Nothing scrolls on paper, so nothing keeps a screen's minimum width or height. */
@media print {
  .x-presets, .x-measure, .x-fine-open, .x-fine, .x-why, .x-start, .x-measure-now, .wall-needle-label, .plate-views { display: none !important; }
  .x-bar { display: block; padding-block: 0 8pt; }
  .x-settings-now { display: block; }
  .x-summary, .x-presets { display: none; } /* the list above says every setting */
  .x-question, .x-answer { break-after: avoid; } /* a tab's question and answer stay with its first plate (explorer print) */
  .plate-setting { display: block; }
  .x-plate { break-inside: auto; }
  .x-plate .plate-table, .x-backtest table { min-width: 0; }
  .wall-row { break-inside: avoid; }
  .wall-needle { top: 0; bottom: 0; }
  .x-ruler .ladder-row .ladder-track::after { top: 0; bottom: 0; }
  .x-lever .ladder-bar { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .x-note-slot { display: none; }
  .x-custody[data-rule="any"] { display: none; } /* nothing left out, so nothing to list */
  .x-measured-line { margin-top: 8pt; }
  .x-measured-tag, .x-measured-line { color: inherit; }
  .x-plate[data-plate-x="use"] .x-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .w, .wall-track::before, .wall-range, .x-w-ai, .x-d-ai, .x-d-rest { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}
