/* Charts: the frame every chart shares (sentence, controls, plot, table twin, foot)
   and the marks of the Spread, Ladder, history chart, tally bar, strips and scatter.
   Money has no hue: bands warm gray, marks ink. Color only for a verdict and focus.
   Text never wears a data color. Load after components.css. */

/* Text set inside a verdict fill: white or near-black by the fill's luminance,
   the same two values in both modes. */
/* The fills behind that text are a step deeper than --gain and --loss in light mode
   (white on them is 4.65:1 and 4.63:1, where the glyph colors give 4.31 and 4.41);
   dark mode uses the glyph colors, which give near-black text 5.8 and 5.3. */
:root { --on-gain: #fff; --on-loss: #fff; --on-neutral: #161614; --gain-fill: #008378; --loss-fill: #c4511a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --on-gain: #161614; --on-loss: #161614; --on-neutral: #fff; --gain-fill: var(--gain); --loss-fill: var(--loss); }
}
:root[data-theme="dark"] { --on-gain: #161614; --on-loss: #161614; --on-neutral: #fff; --gain-fill: var(--gain); --loss-fill: var(--loss); }

/* ------------------------------------------------------------ frame */

.chart { --ring: var(--surface); position: relative; min-width: 0; }
.chart__head { max-width: 70ch; }
.chart__sentence {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 25px;
  font-weight: 420;
  color: var(--ink);
  text-wrap: pretty;
}
@media (min-width: 768px) { .chart__sentence { font-size: 19px; line-height: 28px; } }
.chart__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: var(--s3);
}
.chart__controls:empty { display: none; }
.chart__view { margin-left: auto; }
.chart__seg { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.chart__seg-label {
  font-size: var(--t-micro);
  line-height: var(--lh-micro);
  letter-spacing: var(--track-micro);
  text-transform: uppercase;
  font-weight: 650;
  color: var(--ink-3);
  white-space: nowrap;
}
.seg--chart { padding: 2px; }
.seg--chart .seg__btn { min-height: 32px; padding: 0 12px; font-size: 13px; }
@media (pointer: coarse) { .seg--chart .seg__btn { min-height: 40px; } }
.chart__body { margin-top: var(--s4); }
.chart__plot { position: relative; min-width: 0; touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
.chart__plot:focus { outline: none; }
.chart__plot:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: 4px; }
.chart__plot > svg { display: block; position: absolute; left: 0; top: 0; overflow: visible; max-width: none; }
.chart__twin { margin-top: var(--s4); }
.chart__foot { display: grid; gap: 6px; margin-top: var(--s3); }
.chart__foot:empty { display: none; }
.chart__foot > .legend { margin-top: 0; margin-bottom: 4px; }
.chart__foot > .tray { margin-top: var(--s2); }
.chart-table .table { min-width: 520px; }
.chart-table__caption { text-align: left; padding-bottom: 8px; font-size: var(--t-small); color: var(--ink-2); caption-side: top; }

.chart--compact .chart__sentence { font-size: 16px; line-height: 23px; }
.chart--compact .tally__legend, .chart--compact .tally__beside { font-size: var(--t-micro); line-height: var(--lh-micro); gap: 4px 14px; }

/* Legend rows keep the key beside its words when the words wrap. */
.chart-legend > li { flex-wrap: nowrap; align-items: flex-start; }
.chart-legend > li > .key, .chart-legend > li > svg { margin-top: 2px; }

/* Keys added to the shared legend. */
.key--dot::before { content: ""; position: absolute; left: 3px; top: 1px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.key--ring::before { content: ""; position: absolute; left: 3px; top: 1px; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid var(--ink); }
.key--median::before { content: ""; position: absolute; left: 6px; top: -2px; width: 2px; height: 14px; border-radius: 1px; background: var(--ink); box-shadow: 0 0 0 1.5px var(--surface); }
.key--gmed::before { content: ""; position: absolute; left: 6.5px; top: -2px; width: 1px; height: 14px; background: var(--ink-2); }
.key--line::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; border-radius: 1px; background: var(--ink); }
.key--linedot { width: 22px; }
.key--linedot::before { content: ""; position: absolute; left: 0; right: 0; top: 4px; height: 2px; border-radius: 1px; background: var(--ink); }
.key--linedot::after { content: ""; position: absolute; left: 7px; top: 1px; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 1.5px var(--surface); }
.key--base::before { content: ""; position: absolute; left: 1px; top: -1px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ink); background: var(--surface); }
.key--rule::before { content: ""; position: absolute; left: 6.5px; top: -3px; width: 1px; height: 16px; background: var(--ink); }
.key--fray::before { content: ""; position: absolute; left: 0; right: 0; top: 2px; height: 6px; border-radius: 2px 0 0 2px; background: linear-gradient(to right, var(--range) 30%, transparent); }
.key--then::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 4px; border-radius: 2px; border: 1px solid var(--range-edge); }
.key--then-off::before { border-left: 0; border-radius: 0 2px 2px 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 70%); mask-image: linear-gradient(to right, transparent, #000 70%); }

/* Shared SVG marks. */
.sbar__halo { fill: var(--surface); }
.sbar__band { fill: var(--range); stroke: var(--range-edge); stroke-width: 1; }
.sbar__cap { fill: var(--range-edge); }
.sbar__chev { fill: none; stroke: var(--range-edge); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sbar__mid { fill: var(--ink); }
.sbar__midhalo { fill: var(--surface); }
.sbar__mid--hollow { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; }
.sbar__pub { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }

/* The axis drawn by chart code: the shared .axis, placed in px. */
.chart-axis { position: absolute; }

/* A floating label for the mark under the pointer or keyboard. It repeats what
   the table holds and never gates a value. */
.chart-tip, .spread__tip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 0;
  padding: 5px 9px 6px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-chip);
  background: var(--surface);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: 0 0 0 2px var(--surface);
}
.chart-tip__value, .spread__tipval { font-size: var(--t-small); line-height: var(--lh-small); font-weight: 620; color: var(--ink); font-variant-numeric: tabular-nums; }
.chart-tip__name, .spread__tipname { font-family: var(--serif); font-size: 15px; line-height: 20px; font-weight: 560; color: var(--ink); }
.chart-tip__meta { font-size: var(--t-micro); line-height: var(--lh-micro); color: var(--ink-2); }

/* ------------------------------------------------------------ the Spread */

.spread__labels { position: absolute; inset: 0; pointer-events: none; }
.spread__zone { fill: var(--range); opacity: 0.16; }
.spread__gridline { fill: var(--hairline); }
.spread__gridline--zero { fill: var(--axis); }
.spread__sep { fill: var(--hairline); }
.spread__ref { fill: var(--ink-3); }
.spread__gmed { fill: var(--ink-2); }
.spread__dot { fill: var(--ink); stroke: var(--surface); stroke-width: 1; transition: opacity var(--motion) var(--ease), fill var(--motion) var(--ease); }
.spread__dot.is-hollow { fill: var(--surface); stroke: var(--ink); stroke-width: 1.2; }
.spread__dots.has-highlight .spread__dot:not(.is-hi) { fill: color-mix(in srgb, var(--range-edge) 62%, var(--surface)); }
.spread__dots.has-highlight .spread__dot.is-hollow:not(.is-hi) { fill: var(--surface); stroke: color-mix(in srgb, var(--range-edge) 62%, var(--surface)); }
/* In a squeezed stack the dots merge into a solid column: no ring between them. */
.spread__dot.is-squeezed { stroke: none; }
.spread__dot.is-squeezed.is-hollow { fill: var(--ink); }
.spread__dot.is-hi { stroke: var(--surface); stroke-width: 2; }
.spread__dot.is-hi.is-hollow { stroke: var(--ink); stroke-width: 1.5; }
.chart__plot.has-active .spread__dot:not(.is-active) { opacity: 0.28; }
.chart__plot.has-active .spread__medians { opacity: 0.5; }
.spread__med { fill: var(--ink); }
.spread__medhalo { fill: var(--surface); }
.spread__leader { stroke: var(--ink-3); stroke-width: 1; }

.spread__reflabel {
  position: absolute;
  top: 0;
  font-size: var(--t-micro);
  line-height: var(--lh-micro);
  color: var(--ink-2);
  white-space: nowrap;
}
.spread__reflabel--gmed { color: var(--ink-2); }
.spread__rowlabel {
  position: absolute;
  left: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding-right: 8px;
}
.spread__rowname {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 17px;
  line-height: 22px;
  font-weight: 560;
  color: var(--ink);
}
.spread__rowcount, .spread__rowmed {
  font-size: var(--t-micro);
  line-height: var(--lh-micro);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.spread__rowlabel .spread__rowmed { color: var(--ink-2); font-weight: 560; }
/* The median and the count each stay whole. When both do not fit on one line the
   count goes under the median. */
.spread__rowmeta { display: flex; flex-wrap: wrap; gap: 0 8px; align-items: baseline; }
.spread__rowmeta > * { white-space: nowrap; }
.spread__rowmeta .spread__rowcount::after { content: " people"; }
.spread__rowhead {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.spread__rowleft { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.spread__rowhead .spread__rowname { font-size: 15px; line-height: 20px; }
.spread__rowhead .spread__rowmed { color: var(--ink-2); font-weight: 560; white-space: nowrap; }
/* What a row's median rests on, when the label says (the governors). */
.spread__rownote { font-size: var(--t-micro); line-height: var(--lh-micro); color: var(--ink-3); }
.spread__rowhead:has(.spread__rownote) { flex-wrap: wrap; row-gap: 2px; }
.spread__rowhead .spread__rownote { flex-basis: 100%; }
.spread__hilabel {
  position: absolute;
  font-family: var(--serif);
  font-size: 14px;
  line-height: 16px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  padding: 0 3px;
  background: var(--surface);
  border-radius: 2px;
}
.spread__ring { fill: none; }
.spread__ring--hi { stroke: var(--ink); stroke-width: 1.5; pointer-events: none; }
.spread__dot.is-active { opacity: 1; }

/* ------------------------------------------------------------ the Ladder */

.ladder__note { margin-bottom: var(--s2); }
.ladder__axis { position: sticky; top: 0; z-index: 2; background: var(--ring); padding: 6px 0 0; }
.ladder__list > li { position: relative; }
.ladder__list > li + li { border-top: 1px solid var(--hairline); }
.ladder__list .pl { padding-block: 10px; }

/* A Ladder in a wide box (an office page, the explorer of one office) is one dense
   row per person: name and office on the left, the bar beside them, the value at
   the right. The sticky axis lines up with the bars (ladder.js measures them). */
.chart--ladder .chart__plot, .ladder-host { container: ladder / inline-size; }
/* The value column is wide enough for the longest lead and amount on one line
   ("open both ways · $180M" is 163px), so a value never runs past the card. */
:root { --pl-value-w: 11rem; }
@container ladder (min-width: 880px) {
  .ladder__list .pl--ranked.pl--bar {
    grid-template-columns: var(--pl-rank) 32px minmax(0, 15rem) minmax(0, 1fr) var(--pl-value-w);
    grid-template-areas:
      "rank pic name bar value"
      ". pic office bar asof";
    padding-block: 8px;
  }
  .ladder__list .pl--ranked.pl--bar > .pl__bar { align-self: center; margin-top: 0; }
  /* If a lead and an amount ever outgrow the column, the amount drops to its own
     line rather than running past the card edge. */
  .ladder__list .pl__value { white-space: normal; }
  .ladder__list .pl__value .value__pre { white-space: nowrap; }
}
.ladder__median .pl__name { font-family: var(--sans); font-size: var(--t-small); line-height: 22px; font-weight: 650; letter-spacing: 0; }
.ladder__median { background: color-mix(in srgb, var(--range) 14%, transparent); }
.ladder__median .pl { padding-inline: 0; }
.ladder__list > li.ladder__median, .ladder__list > li.ladder__median + li { border-top: 1px solid var(--ink-3); }
.ladder__gap { height: 14px; border-top: 1px solid var(--hairline); background: repeating-linear-gradient(90deg, var(--axis) 0 1px, transparent 1px 6px) center / 100% 1px no-repeat; }
.ladder__verdict { display: flex; width: fit-content; margin-top: 2px; font-size: var(--t-small); }
/* The comparison heading under a change row's verdict, as the export gives it
   ("Since joining the Senate in 2021"). */
.ladder__since { display: block; margin-top: 1px; font-size: var(--t-micro); line-height: var(--lh-micro); color: var(--ink-3); }
/* "Now $0 · nothing listed" under the heading, when a figure comes from a report
   that lists nothing (DESIGN 13.3). */
.ladder__nothing { display: block; margin-top: 1px; font-size: var(--t-micro); line-height: var(--lh-micro); color: var(--ink-2); }
.ladder__then { position: absolute; display: block; height: 4px; border: 1px solid var(--range-edge); border-radius: 2px; top: calc(var(--cy) - var(--band) / 2 - 9px); }
.ladder__then--open { border-right: 0; border-radius: 2px 0 0 2px; -webkit-mask-image: linear-gradient(to left, transparent, #000 24px); mask-image: linear-gradient(to left, transparent, #000 24px); }
/* A starting figure with no floor, or one that runs past the low edge of the
   scale: the low end is drawn open and fades out, never capped at the edge. */
.ladder__then--open-lo { border-left: 0; border-radius: 0 2px 2px 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 70%); mask-image: linear-gradient(to right, transparent, #000 70%); }
.ladder__then--open.ladder__then--open-lo { border-radius: 0; -webkit-mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to right, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ladder__list .pl__bar .rb--has-then { --cy: calc(var(--h) / 2 + 8px); height: calc(var(--h) + 8px); }
.ladder__shown { margin-top: var(--s2); }

/* ------------------------------------------------------------ history */

.hist__readout {
  min-height: 48px;
  margin-top: var(--s3);
  padding: 8px 0 0;
  border-top: 1px solid var(--hairline);
  font-size: var(--t-small);
  line-height: var(--lh-small);
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}
.hist__readout b { color: var(--ink); font-weight: 650; margin-right: 6px; }
.hist__readout .hist__readout-sent { color: var(--ink); }
.hist__readout .hist__readout-meta { color: var(--ink-3); }
.hist__band { fill: var(--range); }
.hist__edge { fill: none; stroke: var(--range-edge); stroke-width: 1; }
.hist__line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.hist__dot { fill: var(--ink); stroke: var(--surface); stroke-width: 2; }
.hist__dot.is-hollow { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; }
.hist__dot.is-active { stroke-width: 3; }
.hist__base { fill: none; stroke: var(--ink); stroke-width: 2; }
.hist__basehalo { fill: none; stroke: var(--surface); stroke-width: 2; }
.hist__rule { fill: var(--ink); }
.hist__grid { fill: var(--hairline); }
.hist__grid--zero { fill: var(--axis); }
.hist__zone { fill: var(--range); opacity: 0.16; }
.hist__ref { fill: var(--ink-3); }
.hist__cross { fill: var(--ink); }
.hist__pub { fill: var(--surface); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.hist__publine { fill: none; stroke: var(--ink-3); stroke-width: 1; }
.hist__chev { fill: none; stroke: var(--range-edge); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hist__gapmark { fill: var(--hairline); }
.hist__labels { position: absolute; inset: 0; pointer-events: none; }
.hist__ytick, .hist__xtick, .hist__gap, .hist__rulelabel, .hist__publabel, .hist__more, .hist__reflabel {
  position: absolute;
  font-size: var(--t-micro);
  line-height: var(--lh-micro);
  white-space: nowrap;
}
.hist__ytick { color: var(--ink-3); font-variant-numeric: tabular-nums; text-align: right; }
.hist__xtick { color: var(--ink-3); font-variant-numeric: tabular-nums; transform: translateX(-50%); }
.hist__xtick.is-active { color: var(--ink); font-weight: 650; }
.hist__gap { color: var(--ink-3); font-style: italic; background: var(--surface); padding: 0 3px; }
.hist__rulelabel { color: var(--ink); font-weight: 560; }
.hist__publabel { color: var(--ink-2); background: color-mix(in srgb, var(--surface) 82%, transparent); padding: 0 3px; border-radius: 2px; }
.hist__more { color: var(--ink-3); background: color-mix(in srgb, var(--surface) 80%, transparent); padding: 0 3px; border-radius: 2px; }
.hist__reflabel { color: var(--ink-3); }

/* ------------------------------------------------------------ tally */

.tally__bar { position: relative; display: flex; gap: 2px; height: 28px; }
.tally__seg {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 2px;
  height: 100%;
  padding-left: 8px;
  border-radius: 4px;
  /* Large bold text (19px, 700), on fills that also clear 4.5:1. */
  font-size: 19px;
  line-height: 1;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow: visible;
  outline-offset: 2px;
}
.tally__seg--up { background: var(--gain-fill); color: var(--on-gain); }
.tally__seg--unclear { background: var(--neutral); color: var(--on-neutral); }
.tally__seg--down { background: var(--loss-fill); color: var(--on-loss); }
.tally__seg.is-dim { opacity: 0.45; }
.tally__legend { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: var(--s3); font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-2); }
.tally__legend li { display: inline-flex; align-items: flex-start; gap: 7px; }
.tally__legend li > svg, .tally__beside li > svg { margin-top: 4px; }
.chart--compact .tally__legend li > svg, .chart--compact .tally__beside li > svg { margin-top: 2px; }
.tally__legend .tally__n { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.tally__beside { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--hairline); font-size: var(--t-small); line-height: var(--lh-small); color: var(--ink-3); }
.tally__beside li { display: inline-flex; align-items: flex-start; gap: 7px; }
.tally__beside .tally__n { color: var(--ink-2); font-weight: 650; font-variant-numeric: tabular-nums; }
.tally__readout { min-height: 20px; margin-top: 6px; font-size: var(--t-micro); line-height: var(--lh-micro); color: var(--ink-2); font-variant-numeric: tabular-nums; }
@media (forced-colors: active) {
  .tally__seg { forced-color-adjust: none; background: Canvas; color: CanvasText; border: 1px solid CanvasText; }
  .tally__seg--up { background: repeating-linear-gradient(45deg, CanvasText 0 1px, Canvas 1px 5px); }
  .tally__seg--down { background: repeating-linear-gradient(135deg, CanvasText 0 1px, Canvas 1px 5px); }
}

/* ------------------------------------------------------------ strips */

.strips__labels { position: absolute; inset: 0; pointer-events: none; }
.strips__grid { fill: var(--hairline); }
.strips__same { fill: var(--ink); }
.strips__sep { fill: var(--hairline); }
.strips__mark--up { fill: var(--gain); stroke: var(--surface); stroke-width: 1.5; stroke-linejoin: round; }
.strips__mark--down { fill: var(--loss); stroke: var(--surface); stroke-width: 1.5; stroke-linejoin: round; }
.strips__mark--unclear { fill: var(--surface); stroke: var(--neutral); stroke-width: 1.6; }
.strips__mark--earliest.strips__mark--up { fill: var(--surface); stroke: var(--gain); stroke-width: 1.6; }
.strips__mark--earliest.strips__mark--down { fill: var(--surface); stroke: var(--loss); stroke-width: 1.6; }
.chart__plot.has-active .strips__mark:not(.is-active) { opacity: 0.3; }
.strips__mark.is-active { stroke: var(--ink); stroke-width: 1.5; }
.strips__lanebg { fill: color-mix(in srgb, var(--range) 14%, transparent); }
.strips__xtick {
  position: absolute;
  padding-top: 6px;
  font-size: var(--t-micro);
  line-height: var(--lh-micro);
  color: var(--ink-3);
  white-space: nowrap;
  transform: translateX(-50%);
}
.strips__xtick.is-same { color: var(--ink); font-weight: 600; }
.strips__xtick::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 4px; background: var(--axis); }
.strips__axisline { position: absolute; height: 1px; background: var(--axis); }
.strips__lanelabel {
  position: absolute;
  font-size: var(--t-micro);
  line-height: var(--lh-micro);
  color: var(--ink-2);
  white-space: nowrap;
}
.strips__lanelabel b { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.strips__unplaced { position: absolute; font-size: var(--t-micro); line-height: var(--lh-micro); color: var(--ink-3); }

/* ------------------------------------------------------------ scatter */

.scatter__grid { fill: var(--hairline); }
.scatter__grid--zero { fill: var(--axis); }
.scatter__zone { fill: var(--range); opacity: 0.16; }
.scatter__diag { stroke: var(--ink-3); stroke-width: 1; }
.scatter__rect { fill: var(--range); fill-opacity: 0.45; stroke: var(--range-edge); stroke-width: 1; }
.scatter__labels { position: absolute; inset: 0; pointer-events: none; }
.scatter__xtick, .scatter__ytick, .scatter__title, .scatter__diaglabel {
  position: absolute;
  font-size: var(--t-micro);
  line-height: var(--lh-micro);
  color: var(--ink-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.scatter__xtick { transform: translateX(-50%); }
.scatter__ytick { text-align: right; transform: translateY(-50%); }
.scatter__title { color: var(--ink-2); font-weight: 600; }
.scatter__diaglabel { color: var(--ink-2); font-style: italic; }
.chart__plot.has-active .strips__mark:not(.is-active) { opacity: 0.3; }

@media (forced-colors: active) {
  .spread__dot, .hist__dot, .hist__line { forced-color-adjust: none; }
  .spread__dot { fill: CanvasText; stroke: Canvas; }
  .hist__line { stroke: CanvasText; }
  .strips__mark--up, .strips__mark--down { fill: CanvasText; }
}
@media print {
  .chart__controls { display: none; }
}
.ladder__list .pl__bar { margin-top: 4px; }

/* Caveats folded under one line on a short chart (the home Spread on a phone). */
.chart-notes { margin-top: var(--s2); font-size: var(--t-micro); line-height: var(--lh-micro); color: var(--ink-3); }
.chart-notes__summary { cursor: pointer; min-height: 24px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 2px; }
.chart-notes > .note { margin-top: var(--s1); }

/* A server-drawn list axis in a wide Ladder: the bars sit in the middle column. */
@container ladder (min-width: 880px) {
  .list-axis--ranked { padding-left: calc(var(--pl-rank) + 32px + 15rem + 3 * var(--pl-gap)); padding-right: calc(var(--pl-value-w) + var(--pl-gap)); }
}
