/* ===================================================================
   TreeCare Alliance — Review Velocity
   Component styles. Every colour is a semantic role; no rule reads a
   brand primitive directly and no rule carries a hex literal.
   =================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--tca-surface);
  color: var(--tca-ink);
  font-family: var(--tca-font-body);
  font-size: var(--tca-text-body);
  line-height: var(--tca-lead-body);
  -webkit-font-smoothing: antialiased;
  /* Digits line up in the report's table, the bars and the stat tile.
     Version 1.0.0 got this from a monospaced family; the official kit has
     none, and this is what a proportional face uses instead. */
  font-variant-numeric: tabular-nums;
}

/* --- Skip link ------------------------------------------------------ */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: var(--tca-space-3) var(--tca-space-5);
  background: var(--tca-surface-panel);
  color: var(--tca-ink);
  border-radius: var(--tca-radius-default);
  font-family: var(--tca-font-display);
  font-weight: var(--tca-weight-btn);
  text-decoration: none;
}
.skip:focus {
  left: var(--tca-space-2);
  top: var(--tca-space-2);
}

/* --- Layout --------------------------------------------------------- */

.wrap {
  max-width: var(--tca-layout-container);
  margin: 0 auto;
  padding: 0 var(--tca-layout-gutter);
}

.sect {
  padding: var(--tca-layout-section-y) 0;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: var(--tca-layout-hero-grid);
  gap: var(--tca-layout-hero-gap);
}
/* The spec list follows the lede directly. It was briefly pushed to the foot
   of the column with `margin-top: auto`, to fill the space left by a form
   taller than the copy beside it. That traded a gap at the bottom for a 586px
   hole in the middle and separated the three facts from the sentence they
   qualify, which is worse on both counts. A short column beside a long form is
   ordinary; a heading with its supporting detail 600px away is not. */
.hero-copy {
  display: flex;
  flex-direction: column;
  align-self: start;
}

.centered {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}
.centered p,
.centered .lede {
  margin-inline: auto;
}
/* Definition pairs stop reading as pairs when centred. */
.centered .specs {
  text-align: left;
}

/* --- Masthead ------------------------------------------------------- */

.masthead {
  border-bottom: 1px solid var(--tca-rule);
  background: var(--tca-surface);
}
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tca-space-5);
  padding-block: var(--tca-space-5);
}
/* The brand artwork is embedded, not linked, and takes its colour from the
   page. See design/extract-brand-assets.py — a linked image answers the
   operating system while the page can answer an explicit override, and when
   those disagree the masthead renders blank. */
.masthead .logo {
  display: block;
  color: var(--tca-brand-ink);
}
.masthead .logo svg {
  display: block;
  height: var(--tca-layout-masthead-logo);
  width: auto;
}
.masthead-end {
  display: flex;
  align-items: center;
  gap: var(--tca-space-6);
}

/* --- Colour theme control ------------------------------------------- *
 * A real control, not a preference tucked in a menu: switching ground is
 * an accessibility need for photophobia, low vision and migraine, and it
 * belongs where it can be found. It stays visible at 375 where the meta
 * line does not.                                                         */

.theme {
  display: flex;
  gap: 0;
  border: 1px solid var(--tca-rule);
  border-radius: var(--tca-radius-pill);
  padding: 2px;
}
.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--tca-space-2);
  /* 2.5.8 target size: 24px minimum, and these clear it with the padding. */
  min-height: 24px;
  padding: var(--tca-space-2) var(--tca-space-4);
  border: none;
  border-radius: var(--tca-radius-pill);
  background: transparent;
  color: var(--tca-ink-dim);
  font-family: var(--tca-font-display);
  font-size: var(--tca-text-badge);
  font-weight: var(--tca-weight-badge);
  letter-spacing: var(--tca-track-badge);
  text-transform: uppercase;
  cursor: pointer;
}
.theme-btn:hover {
  color: var(--tca-ink);
}
/* The chosen one. State is carried by the fill AND the swatch AND
   aria-pressed — never by colour alone. */
.theme-btn[aria-pressed="true"] {
  background: var(--tca-accent);
  color: var(--tca-accent-ink);
}
/* The buttons carried a small colour swatch each, previewing the theme they
   select. Dropped: a Forest Green dot on a Forest Green ground is invisible,
   and an Off White dot on Off White likewise, so in each scheme one swatch
   read as an unchecked radio button beside a checked one. The words are
   unambiguous and the orange pill already carries the state. */

.masthead .meta {
  font-family: var(--tca-font-display);
  font-size: var(--tca-text-meta);
  font-weight: var(--tca-weight-meta);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--tca-ink-dim);
}

/* --- The arc -------------------------------------------------------- *
 * The signature device, and the only one used full-bleed. It is the
 * logo's own gesture — the sweep that cradles the mark — so the page is
 * tied to the emblem without repeating it. Once per page, under the
 * masthead. Decorative: aria-hidden, and it carries no information.     */

.arc {
  display: block;
  width: 100%;
  height: var(--tca-device-arc-height);
  /* Alliance Orange. A stroke is a graphic, so the 3:1 floor applies and it
     clears at 3.16 dark / 3.23 light. Drawn once per page, under the
     masthead — this is the whole of the page's brand gesture. */
  color: var(--tca-accent);
}
.arc svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* --- The chevron ---------------------------------------------------- *
 * The triangle from the base of the logo. It marks a callout, replacing
 * the 3px left rule that 1.0.0 used there.                              */

.chevron {
  width: var(--tca-device-chevron-width);
  height: var(--tca-device-chevron-height);
  background: var(--tca-accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  flex: none;
}

/* --- Typography ----------------------------------------------------- */

h1 {
  margin: 0 0 var(--tca-space-5);
  font-family: var(--tca-font-display);
  font-size: var(--tca-text-h1);
  font-weight: var(--tca-weight-h1);
  line-height: var(--tca-lead-h1);
  letter-spacing: var(--tca-track-h1);
  text-wrap: balance;
}
/* One word of the headline in the accent. Large text, so the 3:1 floor
   applies and Alliance Orange clears it at 3.16 dark / 3.23 light. This
   is the only place orange is ever a letterform. */
h1 .hl {
  color: var(--tca-accent);
}

h2 {
  margin: 0 0 var(--tca-space-4);
  font-family: var(--tca-font-display);
  font-size: var(--tca-text-h2);
  font-weight: var(--tca-weight-h2);
  line-height: var(--tca-lead-h2);
  letter-spacing: var(--tca-track-h2);
  max-width: var(--tca-measure-h2);
  text-wrap: balance;
}

p {
  margin: 0 0 var(--tca-space-5);
  max-width: var(--tca-measure-body);
}

.lede {
  font-size: var(--tca-text-lede);
  line-height: var(--tca-lead-lede);
  color: var(--tca-ink-dim);
  max-width: var(--tca-measure-lede);
}

.eyebrow {
  margin: 0 0 var(--tca-space-3);
  font-family: var(--tca-font-display);
  font-size: var(--tca-text-eyebrow);
  font-weight: var(--tca-weight-eyebrow);
  letter-spacing: var(--tca-track-eyebrow);
  text-transform: uppercase;
  color: var(--tca-ink-label);
}

.quiet {
  font-size: var(--tca-text-quiet);
  line-height: var(--tca-lead-quiet);
  color: var(--tca-ink-dim);
}

.fine {
  font-size: var(--tca-text-fine);
  line-height: var(--tca-lead-fine);
  color: var(--tca-ink-dim);
}

.centre-text {
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* --- Links ---------------------------------------------------------- */

main a,
main a:visited,
footer.site a,
footer.site a:visited {
  color: var(--tca-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
main a:hover,
main a:focus-visible,
footer.site a:hover,
footer.site a:focus-visible {
  color: var(--tca-link-hover);
  text-decoration-thickness: 2px;
  text-decoration-color: var(--tca-accent);
}

/* --- Focus ---------------------------------------------------------- *
 * Ink, not the accent. A focused field's border IS the accent, so an
 * orange ring drawn around it would be orange-on-orange with no edge.
 * See design/tokens-tca.json, role.focus.                               */

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--tca-focus);
  outline-offset: 2px;
  border-radius: var(--tca-radius-sharp);
}

/* --- Button --------------------------------------------------------- *
 * The kit's pill with its circular badge. The fill is Alliance Orange
 * because the kit's own usage note assigns CTAs to it; its artwork draws
 * the pill in Forest Green, which on this app's dark world would be a
 * green pill on a green page. Eerie Black is the label: at 4.81 it is
 * the only colour in the palette that clears 4.5 on orange.            */

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--tca-space-3);
  padding: var(--tca-space-3) var(--tca-space-7) var(--tca-space-3) var(--tca-space-3);
  border: none;
  border-radius: var(--tca-radius-pill);
  background: var(--tca-accent);
  color: var(--tca-accent-ink);
  font-family: var(--tca-font-display);
  font-size: var(--tca-text-btn);
  font-weight: var(--tca-weight-btn);
  letter-spacing: var(--tca-track-btn);
  text-decoration: none;
  cursor: pointer;
  transition: filter var(--tca-motion-color-duration) var(--tca-motion-press-easing);
}
.btn:hover {
  filter: brightness(1.08);
}
.btn:active {
  filter: brightness(0.94);
}
.btn .badge {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--tca-device-badge-size);
  height: var(--tca-device-badge-size);
  border-radius: var(--tca-radius-pill);
  background: var(--tca-surface);
  color: var(--tca-ink);
  font-size: var(--tca-text-badge);
}
.btn--block {
  width: 100%;
  justify-content: center;
}

/* --- Panel and form ------------------------------------------------- */

.panel {
  padding: var(--tca-space-8);
  background: var(--tca-surface-panel);
  border: 1px solid var(--tca-rule);
  border-radius: var(--tca-radius-card);
  box-shadow: var(--tca-shadow-panel);
}
.panel-title {
  margin: 0 0 var(--tca-space-6);
  font-family: var(--tca-font-display);
  font-size: var(--tca-text-h3-panel);
  font-weight: var(--tca-weight-h3-panel);
  line-height: var(--tca-lead-h3-panel);
  letter-spacing: var(--tca-track-h3-panel);
}

.field {
  margin-bottom: var(--tca-space-6);
}
.field label {
  display: block;
  margin-bottom: var(--tca-space-2);
  font-family: var(--tca-font-display);
  font-size: var(--tca-text-spec-kicker);
  font-weight: var(--tca-weight-spec-kicker);
  letter-spacing: var(--tca-track-spec-kicker);
  text-transform: uppercase;
  color: var(--tca-ink-label);
}
.field input {
  width: 100%;
  padding: var(--tca-space-4) var(--tca-space-5);
  background: var(--tca-surface);
  border: 1px solid var(--tca-rule);
  border-radius: var(--tca-radius-default);
  color: var(--tca-ink);
  font-family: var(--tca-font-body);
  font-size: var(--tca-text-body-panel);
}
.field input::placeholder {
  color: var(--tca-ink-dim);
}
.field input:focus {
  border-color: var(--tca-accent);
}
.field .hint {
  margin: var(--tca-space-2) 0 0;
  font-size: var(--tca-text-fine);
  color: var(--tca-ink-dim);
}
.field.is-error input {
  border-width: 2px;
  border-color: var(--tca-accent);
}
.field .err,
.consent .err {
  margin: var(--tca-space-2) 0 0;
  font-size: var(--tca-text-fine);
  font-weight: 600;
  color: var(--tca-ink);
}

.alert {
  margin-bottom: var(--tca-space-6);
  padding: var(--tca-space-5);
  background: var(--tca-surface);
  border: 2px solid var(--tca-accent);
  border-radius: var(--tca-radius-default);
}
.alert .k {
  display: block;
  margin-bottom: var(--tca-space-2);
  font-family: var(--tca-font-display);
  font-size: var(--tca-text-spec-kicker);
  font-weight: var(--tca-weight-spec-kicker);
  letter-spacing: var(--tca-track-spec-kicker);
  text-transform: uppercase;
}
.alert p {
  margin: 0;
  font-size: var(--tca-text-body-sm);
}

/* A grid, not a flex row. As a flex row the error message became a third
   item and sat BESIDE the label instead of under it, squeezing both. */
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 var(--tca-space-3);
  margin-bottom: var(--tca-space-5);
  padding: var(--tca-space-4);
  background: var(--tca-surface);
  border: 1px solid var(--tca-rule);
  border-radius: var(--tca-radius-default);
}
.consent.is-error {
  border-width: 2px;
  border-color: var(--tca-accent);
}
.consent input {
  flex: none;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--tca-accent);
}
.consent span {
  font-size: var(--tca-text-body-sm);
}
.consent .err {
  grid-column: 2;
}

/* --- Spec list ------------------------------------------------------ */

.specs {
  margin: var(--tca-space-7) 0 0;
  border-top: 1px solid var(--tca-rule);
}
.specs > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--tca-space-5);
  padding: var(--tca-space-5) 0;
  border-bottom: 1px solid var(--tca-rule);
}
.specs dt {
  margin: 0;
  font-family: var(--tca-font-display);
  font-size: var(--tca-text-spec-kicker);
  font-weight: var(--tca-weight-spec-kicker);
  letter-spacing: var(--tca-track-spec-kicker);
  text-transform: uppercase;
  color: var(--tca-ink-label);
}
.specs dd {
  margin: 0;
  font-size: var(--tca-text-body-sm);
}

/* --- Report: banner and headings ------------------------------------ */

.banner {
  display: flex;
  align-items: flex-start;
  gap: var(--tca-space-4);
  margin-bottom: var(--tca-space-9);
  padding: var(--tca-space-5);
  background: var(--tca-surface-panel);
  border: 2px solid var(--tca-accent);
  border-radius: var(--tca-radius-default);
}
.banner .k {
  font-family: var(--tca-font-display);
  font-size: var(--tca-text-spec-kicker);
  font-weight: var(--tca-weight-spec-kicker);
  letter-spacing: var(--tca-track-spec-kicker);
  text-transform: uppercase;
  flex: none;
}
.banner p {
  margin: 0;
  font-size: var(--tca-text-body-sm);
}

.report-title {
  font-size: var(--tca-text-h2);
}
.section-h {
  margin: var(--tca-space-12) 0 var(--tca-space-5);
  padding-bottom: var(--tca-space-3);
  border-bottom: 1px solid var(--tca-rule);
  font-size: var(--tca-text-h3-panel);
  max-width: none;
}

/* --- Report: the stat tile ------------------------------------------ */

.stat {
  padding: var(--tca-space-9);
  background: var(--tca-surface-panel);
  border: 1px solid var(--tca-rule);
  border-radius: var(--tca-radius-card);
}
.stat-label {
  margin: 0 0 var(--tca-space-3);
  font-family: var(--tca-font-display);
  font-size: var(--tca-text-spec-kicker);
  font-weight: var(--tca-weight-spec-kicker);
  letter-spacing: var(--tca-track-spec-kicker);
  text-transform: uppercase;
  color: var(--tca-ink-label);
}
.stat-figure {
  display: inline-block;
  padding-bottom: var(--tca-space-2);
  border-bottom: 4px solid var(--tca-accent);
  font-family: var(--tca-font-display);
  font-size: var(--tca-text-display-amount);
  font-weight: var(--tca-weight-display-amount);
  line-height: var(--tca-lead-display-amount);
  letter-spacing: var(--tca-track-display-amount);
}
.stat-qualifier,
.stat-unit {
  font-family: var(--tca-font-body);
  font-size: var(--tca-text-body);
  font-weight: 400;
  letter-spacing: 0;
  color: var(--tca-ink-dim);
}
.stat-unit {
  margin-left: var(--tca-space-3);
}
.stat-note {
  margin: var(--tca-space-5) 0 0;
  font-size: var(--tca-text-body-sm);
  color: var(--tca-ink-dim);
}

/* --- Report: bars --------------------------------------------------- */

.bars {
  margin: 0;
  padding: 0;
  list-style: none;
}
.bar-row {
  display: grid;
  grid-template-columns: minmax(0, 15rem) 1fr auto;
  gap: var(--tca-space-5);
  align-items: center;
  padding: var(--tca-space-4) 0;
  border-bottom: 1px solid var(--tca-rule);
}
.bar-name {
  font-size: var(--tca-text-body-sm);
}
.bar-row.is-leader .bar-name {
  font-weight: 600;
}
.bar-flag {
  display: inline-block;
  white-space: nowrap;
  margin-left: var(--tca-space-2);
  padding: 2px var(--tca-space-3);
  border-radius: var(--tca-radius-pill);
  background: var(--tca-accent);
  color: var(--tca-accent-ink);
  font-family: var(--tca-font-display);
  font-size: var(--tca-text-badge);
  font-weight: var(--tca-weight-badge);
  letter-spacing: var(--tca-track-badge);
  text-transform: uppercase;
}
.bar-track {
  width: 100%;
  height: 14px;
}
.bar-bg {
  fill: var(--tca-surface-panel);
}
.bar-fill {
  fill: var(--tca-accent);
}
.bar-value {
  font-size: var(--tca-text-body-sm);
  font-weight: 600;
}
/* The "+" beside a 90-day count that is a floor rather than a measurement: the
   fetch ran out inside the window, so the business collected AT LEAST this
   many. Real content, and the stylesheet dropped it — a rebrand deleting a
   device is intentional, deleting a data qualifier is not. Found by red-teaming
   the plan, by diffing the classes the templates emit against the rules that
   exist. The accent carries it because it is a mark, not a word; the word is in
   the visually-hidden text beside it and in the caveat below the chart. */
.bar-floor {
  margin-left: 1px;
  /* INK, not accent. The "+" is real text at body size, and Alliance Orange
     clears 4.5:1 against nothing in its own palette — 3.23:1 on the light
     surface, 3.17:1 on the dark one. The kit's rule is exactly this: orange is
     a fill, a rule or a large word, never small text. Weight carries the
     emphasis instead. Found by the GBP-F9.2 ux-review; axe missed it. */
  color: var(--tca-ink);
  font-weight: 700;
}

/* --- Report: callout ------------------------------------------------ *
 * Marked with the logo's chevron. 1.0.0 used a 3px left rule here, which
 * is the generic accent-bar-on-a-card that the design hook flags.       */

.callout {
  display: flex;
  gap: var(--tca-space-5);
  margin: var(--tca-space-8) 0;
  padding: var(--tca-space-7);
  background: var(--tca-surface-panel);
  border-radius: var(--tca-radius-card);
}
.callout p {
  margin: 0 0 var(--tca-space-4);
  font-size: var(--tca-text-body-sm);
}
.callout p:last-child {
  margin-bottom: 0;
}

/* --- Report: the table ---------------------------------------------- */

.table-frame {
  position: relative;
  border: 1px solid var(--tca-rule);
  border-radius: var(--tca-radius-card);
  overflow: hidden;
}
/* A non-scrolling overlay, above the sticky columns, cueing that there is
   more to the right. Two background declarations so a browser without
   color-mix degrades to the plain gradient rather than painting nothing. */
.table-frame::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 2.5rem;
  height: 100%;
  pointer-events: none;
  z-index: 3;
  /* Plain fade first, then the color-mix version, so a browser without
     color-mix degrades to something rather than painting nothing.
     A border-left was tried here and rejected: sitting 2.5rem in from the
     edge it read as a stray column rule straight through a header label,
     which is worse than a cue nobody notices. The third stop instead tints
     the outer edge toward the ink, so the cue reads as the page's own edge
     shadow at any panel colour. */
  background: linear-gradient(to right, transparent, var(--tca-surface-panel));
  background: linear-gradient(
    to right,
    color-mix(in srgb, var(--tca-surface-panel) 0%, transparent),
    var(--tca-surface-panel) 62%,
    color-mix(in srgb, var(--tca-ink) 10%, var(--tca-surface-panel))
  );
}
.table-scroll {
  overflow-x: auto;
}
.table-scroll:focus-visible {
  outline: 3px solid var(--tca-focus);
  outline-offset: -3px;
}

table.report {
  --rank-column: 4.5rem;
  width: 100%;
  min-width: 1100px;
  border-collapse: collapse;
  font-size: var(--tca-text-table);
}
/* 🔴 Not a <caption>. A caption is laid out by its table, so inside a
   horizontally scrolling region it inherits the table's min-width and is
   clipped at every width narrower than the table — which is exactly where a
   reader most needs the sentence that says the table scrolls. Both the region
   and the table take their accessible name from this element instead. */
.table-caption {
  margin: 0 0 var(--tca-space-4);
  font-size: var(--tca-text-body-sm);
  color: var(--tca-ink-dim);
  max-width: var(--tca-measure-body);
}
table.report th,
table.report td {
  padding: var(--tca-space-4) var(--tca-space-5);
  text-align: left;
  white-space: nowrap;
  background: var(--tca-surface-panel);
}
table.report thead th {
  font-family: var(--tca-font-display);
  font-size: var(--tca-text-table-head);
  font-weight: var(--tca-weight-table-head);
  letter-spacing: var(--tca-track-table-head);
  text-transform: uppercase;
  color: var(--tca-ink-label);
  border-bottom: 1px solid var(--tca-rule);
}
table.report tbody tr:nth-child(even) th,
table.report tbody tr:nth-child(even) td {
  background: var(--tca-surface-stripe);
}
/* The two sticky columns. Both offsets come from one custom property so
   the second can never drift on top of the first. */
table.report th:first-child,
table.report td:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  width: var(--rank-column);
}
table.report th:nth-child(2),
table.report td:nth-child(2) {
  position: sticky;
  left: var(--rank-column);
  z-index: 1;
  border-right: 1px solid var(--tca-rule);
}

/* --- Status chips --------------------------------------------------- *
 * Icon and word, never colour alone.                                    */

.flag {
  display: inline-flex;
  align-items: center;
  gap: var(--tca-space-2);
  color: var(--tca-ink-dim);
}
.flag.is-set {
  color: var(--tca-ink);
  font-weight: 600;
}
.flag.is-set [aria-hidden] {
  color: var(--tca-accent);
}

.progress {
  margin: var(--tca-space-7) 0;
  padding: var(--tca-space-5);
  background: var(--tca-surface-panel);
  border: 1px solid var(--tca-rule);
  border-radius: var(--tca-radius-default);
  font-size: var(--tca-text-body-sm);
}

/* --- Footer --------------------------------------------------------- */

footer.site {
  margin-top: var(--tca-layout-close-y);
  border-top: 1px solid var(--tca-rule);
  background: var(--tca-surface-panel);
}
footer.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--tca-space-5);
  padding-block: var(--tca-space-7);
  font-size: var(--tca-text-footer);
  color: var(--tca-ink-dim);
}
footer.site .marks {
  display: flex;
  align-items: center;
  gap: var(--tca-space-3);
}
footer.site .emblem {
  display: block;
  color: var(--tca-brand-ink);
  opacity: 0.75;
}
footer.site .emblem svg {
  display: block;
  height: 24px;
  width: auto;
}

/* --- Responsive ----------------------------------------------------- */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--tca-layout-hero-gap-sm);
  }
}

@media (max-width: 560px) {
  .wrap {
    padding: 0 var(--tca-layout-gutter-sm);
  }
  .sect {
    padding: var(--tca-layout-section-y-sm) 0;
  }
  .masthead .meta {
    display: none;
  }
  /* The theme control is NOT hidden here. The meta line is decoration; this
     is the accessibility control, and a narrow screen is where a visitor is
     most likely to be somewhere bright and need it. */
  .masthead .logo svg {
    height: var(--tca-layout-masthead-logo-sm);
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
  .specs > div {
    grid-template-columns: 1fr;
    gap: var(--tca-space-2);
  }
  .bar-row {
    grid-template-columns: 1fr auto;
    gap: var(--tca-space-3) var(--tca-space-4);
  }
  .bar-name {
    grid-column: 1 / -1;
  }
  footer.site .wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* --- Small spacing utilities ---------------------------------------- *
 * Named for what they hold, not for their value. The app's CSP forbids
 * inline style attributes outright, so every offset needs a class.      */

.actions {
  margin: var(--tca-space-7) 0 var(--tca-space-5);
}
.btn-sub {
  margin-top: var(--tca-space-4);
}
.stat-line {
  margin: 0;
}
.report-foot {
  margin-top: var(--tca-space-5);
}

/* --- Privacy notice (GBP-F9.5) --------------------------------------- */
/* Long-form reading: a measure, spaced headings, and a two-column list of
   periods that stacks on a phone rather than scrolling sideways. */

.notice {
  max-width: var(--tca-measure-lede);
}
.notice .section-h {
  margin-top: var(--tca-space-9);
}
.notice ul {
  display: grid;
  gap: var(--tca-space-3);
  padding-left: 1.2em;
}
.retention {
  margin: var(--tca-space-5) 0;
  border-top: 1px solid var(--tca-rule);
}
.retention > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 14rem);
  gap: var(--tca-space-5);
  padding: var(--tca-space-4) 0;
  border-bottom: 1px solid var(--tca-rule);
}
.retention dt {
  margin: 0;
}
.retention dd {
  margin: 0;
  color: var(--tca-ink-dim);
}
@media (max-width: 560px) {
  .retention > div {
    grid-template-columns: 1fr;
    gap: var(--tca-space-2);
  }
}

/* --- Privacy request form (GBP-F9.13) -------------------------------- */
/* Radios as a fieldset, each option in the consent box style, so a keyboard
   and a screen reader meet one labelled group. */

.request-form {
  margin: var(--tca-space-7) 0;
}
.choice {
  margin: 0 0 var(--tca-space-5);
  padding: 0;
  border: 0;
}
.choice legend {
  margin-bottom: var(--tca-space-3);
  padding: 0;
  font-weight: 600;
  color: var(--tca-ink);
}
.choice .err {
  display: block;
  margin-top: var(--tca-space-2);
  font-size: var(--tca-text-fine);
  font-weight: 600;
  color: var(--tca-ink);
}
