/* =====================================================================
   Corporation search proposals: the shared structure.
   The three options use the same pages and this same stylesheet. Each
   option file (option-a.css, option-b.css, option-c.css) sets the tokens:
   colours (light and dark), typefaces, rules, radii. Nothing in this file
   names a colour; it only reads tokens.
   Breakpoints: compact under 600 px (checked at 390), medium 600 to
   1023 px (checked at 768), wide 1024 px and up (checked at 1280).
   ===================================================================== */

/* ---- Tokens every option shares: space, size, type scale ---- */
:root {
  --s0: 2px; --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --hair: 1px;
  --gutter: 32px;
  --wrap: 1180px;
  --measure: 68ch;
  --aside-w: 330px;
  --label-w: 230px;
  --choice-w: 220px;
  --tap: 44px;
  --radio: 20px;
  --btn-h: 40px;
  --btn-sm-h: 32px;
  --btn-pad: 16px;
  --search-h: 48px;
  --search-max: 860px;
  --hero-search-h: 68px;
  --hero-search-max: 640px;
  --hero-btn-room: 128px;
  --suggest-max: 560px;
  --copy: 32px;
  --row-side-w: 112px;
  --letter: 40px;
  --table-narrow: 520px;
  --head-h: 64px; /* as deep as canadacompanyregistry.ca's header (owner, Oct 26, 2026); 56 on a phone */
  --head-btn: 36px;
  --icon: 18px;
  --icon-lg: 22px;
  --mark: 8px;
  --decade-w: 72px;
  --tile-w: 96px;
  --step-w: 40px;
  --year-w: 150px;
  --t-xs: 12px; --t-sm: 14px; --t-md: 16px; --t-lg: 18px; --t-xl: 22px; --t-2xl: 30px; --t-3xl: 36px; --t-figure: 40px; --t-hero: 58px; --t-hero-lede: 21px;
  --t-btn: 15px;
  --lh-body: 1.55; --lh-tight: 1.2;
}
@media (max-width: 1023px) { :root { --gutter: 24px; --t-hero: 44px; --t-hero-lede: 19px; } }
@media (max-width: 599px) {
  :root {
    --gutter: 16px;
    --btn-h: var(--tap);
    --btn-sm-h: var(--tap);
    --copy: var(--tap);
    --letter: var(--tap);
    --head-h: 56px;
    --head-btn: var(--tap);
    --brand-size: 15px;  /* the name a little smaller in the shorter header; the leaf follows it (tokens.css) */
    --t-2xl: 26px; --t-3xl: 28px; --t-xl: 20px; --t-figure: 30px; --t-hero: 34px; --t-hero-lede: 18px;
    --hero-search-h: var(--search-h);
  }
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: var(--t-md);
  line-height: var(--lh-body);
  font-variant-numeric: tabular-nums;
}
a { color: var(--action-text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
svg { flex: none; }
h1, h2, h3 { margin: 0; font-family: var(--f-head); font-weight: var(--w-head); line-height: var(--lh-tight); color: var(--ink); }
h1 { font-size: var(--t-2xl); }
h2 { font-size: var(--t-xl); }
h3 { font-size: var(--t-lg); }
p { margin: 0 0 var(--s4); }
p:last-child { margin-bottom: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--s4); top: var(--s4); z-index: 20; background: var(--surface); color: var(--action-text); padding: var(--s2) var(--s4); }
.num { font-family: var(--f-num); font-size: var(--num-size); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.small { font-size: var(--t-sm); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: var(--btn-h); padding: 0 var(--btn-pad);
  font: inherit; font-size: var(--t-btn); font-weight: var(--w-btn); line-height: 1.2;
  border: var(--hair) solid transparent; border-radius: var(--r-md);
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--action); color: var(--on-action); }
.btn-primary:hover { background: var(--action-hover); }
.btn-secondary { background: var(--surface); color: var(--action-text); border-color: var(--rule-strong); }
.btn-secondary:hover { background: var(--action-soft); }
.btn-sm { min-height: var(--btn-sm-h); padding: 0 var(--s3); font-size: var(--t-sm); }
.btn svg { width: var(--icon); height: var(--icon); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--head-btn); height: var(--head-btn); padding: 0;
  background: transparent; color: var(--head-ink);
  border: var(--hair) solid var(--head-line); border-radius: var(--r-pill); cursor: pointer;
}
.icon-btn:hover { background: var(--head-current); }
.icon-btn svg { width: var(--icon); height: var(--icon); }

/* ---- Site header: slim, light and see-through (idea E), staying at the top as the page scrolls ---- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: var(--head-bg); color: var(--head-ink); border-bottom: var(--hair) solid var(--head-line);
  border-top: var(--accent-w) solid var(--accent); /* the red, as a line */
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
}
html { scroll-padding-top: calc(var(--head-h) + var(--s4)); } /* a link to a section is not hidden under the header */
.head-row { display: flex; align-items: center; gap: var(--s5); min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: var(--s3); min-height: var(--tap); color: var(--head-ink); text-decoration: none; line-height: var(--lh-tight); padding-block: var(--s1); }
.brand:hover { text-decoration: none; }
.brand-mark { flex: none; width: var(--mark-size); height: var(--mark-size); }
.brand-mark rect { fill: var(--accent); }
.brand-mark path { fill: var(--on-dark); }
/* The name on two lines beside the leaf, as on the share card. */
.brand-name { display: flex; flex-direction: column; font-family: var(--f-brand); font-weight: var(--w-brand); font-size: var(--brand-size); line-height: var(--brand-lh); letter-spacing: var(--brand-track); }
.brand-name > span { display: block; white-space: nowrap; }
.site-nav { display: flex; align-items: center; justify-content: center; gap: var(--s1); flex: 1; } /* centred between the logo and the theme button */
.site-nav a {
  display: flex; align-items: center; min-height: var(--head-btn); padding: 0 var(--s3);
  color: var(--head-ink-2); text-decoration: none; border-radius: var(--r-pill); font-size: var(--t-sm);
}
.site-nav a:hover { color: var(--head-ink); background: var(--head-current); }
.site-nav a[aria-current="page"] { color: var(--head-ink); background: var(--head-current); font-weight: var(--w-strong); }
/* Seven links on one line (Oct 25, 2026, with Quebec and Charities): labels never wrap. */
.site-nav a { white-space: nowrap; }
.head-tools { display: flex; align-items: center; gap: var(--s2); }
.menu-btn { display: none; gap: var(--s2); width: auto; padding: 0 var(--s3); font: inherit; font-size: var(--t-sm); }

@media (max-width: 1023px) {
  .head-row { flex-wrap: wrap; column-gap: var(--s3); row-gap: 0; }
  .head-tools { margin-left: auto; }
  .menu-btn { display: inline-flex; }
  .site-nav { order: 3; flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: var(--s3); }
  .site-nav a { min-height: var(--tap); padding: 0 var(--s2); }
  .js .site-nav { display: none; }
  .js .site-head[data-open] .site-nav { display: flex; }
}
@media (max-width: 1023px) { .head-row { padding-block: var(--s1); } }
@media (max-width: 599px) {
  .brand { gap: var(--s2); }
  /* The name is long: on a phone the menu button is its icon alone, the word kept for screen readers. */
  .menu-btn { width: var(--tap); padding: 0; justify-content: center; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---- Page frame ---- */
main { display: block; }
.page { padding-block: var(--s7) var(--s8); }
.lede { font-size: var(--t-lg); color: var(--ink-2); max-width: var(--measure); }
.section { margin-top: var(--s8); }
.section:first-child { margin-top: 0; }
.section-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2) var(--s4);
  margin-bottom: var(--s4); padding-bottom: var(--section-pad); border-bottom: var(--section-border);
}
.section-head p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); }
.section-head > a { display: inline-flex; align-items: center; min-height: var(--btn-sm-h); }
.sheet { background: var(--sheet-bg); border: var(--sheet-border); box-shadow: var(--sheet-shadow); padding: var(--sheet-pad); border-radius: var(--r-md); }
.prose { max-width: var(--measure); }
.prose ul, .prose ol { margin: 0 0 var(--s4); padding-left: var(--s5); }
.prose h2 { margin-bottom: var(--s3); }
code { font-family: var(--f-code); font-size: 0.9em; }
.prose li + li { margin-top: var(--s1); }
@media (max-width: 599px) {
  .page { padding-block: var(--s6) var(--s7); }
  .section { margin-top: var(--s7); }
  .sheet { padding: var(--sheet-pad-sm); }
}

/* ---- The opening of the home page (idea E): the site's headline small on top (the page's h1),
   one large line, one sentence, the big search box and two links, on the page's own colour ---- */
.hero { background: var(--page); }
.hero-inner { padding-block: calc(var(--s8) + var(--s6)) calc(var(--s8) + var(--s7)); text-align: center; }
.hero-name { font-size: var(--t-lg); font-weight: var(--w-strong); color: var(--accent-text); }
.hero-line { margin: var(--s3) auto 0; font-size: var(--t-hero); line-height: 1.08; font-weight: var(--w-hero); letter-spacing: var(--hero-track); color: var(--ink); }
.hero-lede { margin: var(--s5) auto 0; max-width: 36ch; font-size: var(--t-hero-lede); line-height: 1.45; color: var(--ink-2); text-wrap: balance; }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--s6); margin: var(--s5) 0 0; font-size: var(--t-md); }
.hero-links a { display: inline-flex; align-items: center; min-height: var(--tap); text-decoration: none; }
.hero-links a:hover { text-decoration: underline; }
@media (max-width: 1023px) { .hero-inner { padding-block: var(--s8) calc(var(--s8) + var(--s5)); } }
@media (max-width: 599px) { .hero-inner { padding-block: var(--s7); } .hero-links { flex-direction: column; align-items: center; } }

/* ---- The band every other page opens on (pageHead): the way back up, the headline, a line, the search box ---- */
.page-head { background: var(--hero-bg); color: var(--hero-ink); }
.page-head .wrap { padding-block: var(--s7) var(--s8); }
.page-head h1 { font-size: var(--t-3xl); color: var(--hero-ink); max-width: 34ch; overflow-wrap: anywhere; }
.page-lede { margin: var(--s3) 0 0; max-width: var(--measure); font-size: var(--t-lg); color: var(--hero-ink-2); }
.page-head .crumbs ol, .page-head .crumbs li + li::before { color: var(--hero-ink-2); }
.page-head .crumbs a { color: var(--hero-link); }
.page-head .search { margin-top: var(--s5); }
.page-head-search .wrap { padding-block: var(--s5); }
.page-head-search .search { margin-top: 0; }
.page-head .search input { border-color: var(--hero-field-line); }
/* Buttons on the band: the main one light, the other an outline, so both read against the navy. */
.page-head .page-actions .btn-primary { background: var(--band-btn); color: var(--band-btn-ink); }
.page-head .page-actions .btn-primary:hover { background: var(--band-btn-hover); }
.page-head .page-actions .btn-secondary { background: transparent; color: var(--hero-ink); border-color: var(--hero-field-line); }
.page-head .page-actions .btn-secondary:hover { background: var(--band-2); }
@media (max-width: 599px) { .page-head .wrap { padding-block: var(--s5) var(--s6); } .page-head-search .wrap { padding-block: var(--s4); } }

/* The search box: one field (an icon inside it) and the button, on one line; on a phone the button goes under. */
.search { max-width: var(--search-max); margin-top: var(--s5); }
.search-bar { display: flex; gap: var(--s2); align-items: stretch; }
.search-input { position: relative; flex: 1; min-width: 0; }
.search-icon { position: absolute; left: var(--s3); top: 50%; transform: translateY(-50%); display: flex; color: var(--ink-2); pointer-events: none; }
.search-icon svg { width: var(--icon); height: var(--icon); }
.search input {
  width: 100%; min-width: 0; height: var(--search-h); padding: 0 var(--s4) 0 calc(var(--s3) + var(--icon) + var(--s3));
  font: inherit; color: var(--ink); background-color: var(--surface);
  border: var(--hair) solid var(--rule-strong); border-radius: var(--r-md);
}
.search input::placeholder { color: var(--ink-2); opacity: 1; }
.search .btn { min-height: var(--search-h); padding: 0 var(--s5); }
.search-compact { margin-top: 0; }
@media (max-width: 599px) {
  .search-bar { flex-direction: column; }
  .search .btn { width: 100%; }
}
/* The home page's box: large and rounded, with the button inside it on the right; on a phone the button goes under. */
.search-hero { max-width: var(--hero-search-max); margin: var(--s7) auto 0; text-align: left; }
.search-hero .search-bar { position: relative; display: block; }
.search-hero input {
  height: var(--hero-search-h); padding: 0 var(--hero-btn-room) 0 calc(var(--s5) + var(--icon-lg) + var(--s3));
  font-size: var(--t-xl); border-color: var(--rule); border-radius: var(--r-hero); box-shadow: var(--lift);
}
.search-hero .search-icon { left: var(--s5); }
.search-hero .search-icon svg { width: var(--icon-lg); height: var(--icon-lg); }
.search-hero .btn {
  position: absolute; right: var(--s2); top: var(--s2); min-height: 0; height: calc(var(--hero-search-h) - 2 * var(--s2));
  padding: 0 var(--s5); font-size: var(--t-lg); font-weight: var(--w-strong); border-radius: var(--r-hero-btn);
}
.search-hero .suggest { top: calc(100% + var(--s2)); border-color: var(--rule); border-radius: var(--r-hero); }
@media (max-width: 599px) {
  .search-hero input { height: var(--search-h); padding-right: var(--s4); font-size: var(--t-md); border-radius: var(--r-hero-btn); }
  .search-hero .btn { position: static; width: 100%; height: var(--search-h); margin-top: var(--s2); }
}

/* Suggestions under the field as a name or number is typed. */
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + var(--s1)); z-index: 30;
  margin: 0; padding: var(--s1) 0; list-style: none; max-height: var(--suggest-max); overflow-y: auto;
  background: var(--surface); border: var(--hair) solid var(--rule-strong); border-radius: var(--r-md); box-shadow: var(--lift);
  text-align: left;
}
.suggest[hidden] { display: none; }
.suggest-item a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  min-height: var(--tap); padding: var(--s2) var(--s4); color: var(--ink); text-decoration: none;
}
.suggest-item a:hover, .suggest-item[aria-selected="true"] a { background: var(--action-soft); }
.suggest-text { display: grid; min-width: 0; }
.suggest-name { font-weight: var(--w-strong); overflow-wrap: anywhere; }
.suggest-meta { font-size: var(--t-sm); color: var(--ink-2); }
.suggest-people, .suggest-all { border-top: var(--hair) solid var(--rule); }
.suggest-people .suggest-name, .suggest-all .suggest-name { color: var(--action-text); }

/* ---- Today's count (home): large figures on a dark band under the search; no rules under the numbers ---- */
.stats-band { background: var(--stats-bg); color: var(--stats-ink); }
.stats-band .wrap { padding-block: var(--s7) var(--s8); }
.stats-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); margin-bottom: var(--s6); }
.stats-head h2 { font-size: var(--t-lg); color: var(--stats-ink); }
/* The date the figures describe, as a stamp beside the heading. */
.stamp {
  display: inline-flex; align-items: center; margin: 0; padding: var(--s0) var(--s3);
  font-size: var(--t-sm); font-weight: var(--w-strong); color: var(--stats-ink);
  border: var(--hair) solid var(--stats-stamp-line); border-radius: var(--r-pill);
}
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); margin: 0; }
.figure { display: grid; align-content: start; gap: var(--s1); min-width: 0; }
.figure dt { font-size: var(--t-sm); font-weight: var(--w-strong); color: var(--stats-ink-2); }
.figure dd { margin: 0; display: grid; gap: var(--s1); }
.figure-num { font-size: var(--t-figure); font-weight: var(--w-head); line-height: 1.1; color: var(--stats-ink); font-variant-numeric: tabular-nums; }
.figure-later { font-size: var(--t-xl); line-height: var(--lh-tight); }
.figure-note { font-size: var(--t-sm); color: var(--stats-ink-2); }
.figure-note a { color: var(--stats-link); display: inline-flex; align-items: center; min-height: var(--btn-sm-h); }
@media (max-width: 1023px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s5) var(--s6); } }
@media (max-width: 599px) { .figures { gap: var(--s5) var(--s4); } .figure-note a { min-height: var(--tap); } }

/* ---- Tables (one density) ---- */
.table-box { background: var(--table-bg); border: var(--table-frame); border-radius: var(--r-md); box-shadow: var(--sheet-shadow); overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: var(--t-md); border-top: var(--table-top); border-bottom: var(--table-bottom); }
.data caption { text-align: left; }
.data th {
  text-align: left; vertical-align: bottom; white-space: nowrap;
  padding: var(--s3) var(--s4);
  font-family: var(--f-label); font-size: var(--label-size); font-weight: var(--w-label);
  text-transform: var(--label-case); letter-spacing: var(--label-track); font-stretch: var(--label-stretch);
  color: var(--th-ink); background: var(--th-bg); border-bottom: var(--th-border);
}
.data td { padding: var(--s3) var(--s4); border-bottom: var(--hair) solid var(--rule); vertical-align: top; }
.data tbody tr:last-child td { border-bottom: 0; }
.data tbody tr:hover { background: var(--row-hover); }
.data .name a { font-weight: var(--w-strong); text-decoration: none; overflow-wrap: anywhere; }
.data .name a:hover { text-decoration: underline; }
.data .alt { display: block; color: var(--ink-2); font-size: var(--t-sm); overflow-wrap: anywhere; }
.data .nowrap { white-space: nowrap; }
.data th.n, .data td.n { text-align: left; }

/* On a phone a table row becomes a short block: name first, the rest labelled. */
@media (max-width: 599px) {
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .stack, .stack tbody, .stack tr, .stack td { display: block; }
  .stack tr { padding: var(--s3) var(--s4); border-bottom: var(--hair) solid var(--rule); }
  .stack tbody tr:last-child { border-bottom: 0; }
  .stack td { border: 0; padding: 0; }
  .stack td + td { margin-top: var(--s1); font-size: var(--t-sm); }
  .stack td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-2); }
  .stack .name a { display: flex; align-items: center; min-height: var(--tap); }
  /* A link alone in a later cell (a source's licence): a full-height target too. */
  .stack a.cell-link { display: inline-flex; align-items: center; min-height: var(--tap); }
}

/* ---- Status: always a word, never colour alone ---- */
.status {
  display: inline-flex; align-items: center; gap: var(--s2);
  padding: var(--tag-pad); border-radius: var(--r-tag);
  background: var(--tone-soft); color: var(--tone); border: var(--tag-border);
  font-family: var(--f-label); font-size: var(--t-xs); font-weight: var(--w-strong); line-height: 1.3;
  text-transform: var(--tag-case); letter-spacing: var(--tag-track); font-stretch: var(--label-stretch);
  white-space: nowrap;
}
.status::before { content: var(--tag-mark); width: var(--mark); height: var(--mark); background: var(--tone); flex: none; }
.status[data-tone="ok"] { --tone: var(--ok); --tone-soft: var(--ok-soft); }
.status[data-tone="warn"] { --tone: var(--warn); --tone-soft: var(--warn-soft); }
.status[data-tone="bad"] { --tone: var(--bad); --tone-soft: var(--bad-soft); }
.status[data-tone="muted"] { --tone: var(--muted); --tone-soft: var(--muted-soft); }
.status-note { display: block; margin-top: var(--s1); font-size: var(--t-sm); color: var(--ink-2); }

/* ---- Results ---- */
.results-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s4); margin: var(--s6) 0 var(--s4); }
.results-head h1 { font-size: var(--t-2xl); overflow-wrap: anywhere; }
.results-head p { margin: var(--s2) 0 0; color: var(--ink-2); }
.results-sub { margin-top: 0; }
.refine { font-size: var(--t-sm); }
.people-count { margin: 0 0 var(--s4); color: var(--ink-2); max-width: var(--measure); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: flex-end; }
.field { display: grid; gap: var(--s1); font-size: var(--t-sm); }
.field span { font-weight: var(--w-strong); color: var(--ink); }
.field select {
  min-height: var(--btn-h); padding: 0 var(--s6) 0 var(--s3);
  font: inherit; font-size: var(--t-btn); color: var(--ink); background-color: var(--surface);
  border: var(--hair) solid var(--rule-strong); border-radius: var(--r-md);
}
.field input {
  min-height: var(--btn-h); padding: 0 var(--s3); width: var(--choice-w);
  font: inherit; font-size: var(--t-btn); color: var(--ink); background-color: var(--surface);
  border: var(--hair) solid var(--rule-strong); border-radius: var(--r-md);
}
@media (max-width: 599px) {
  .filters, .field { width: 100%; }
  .field select, .field input { width: 100%; }
}
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1); margin-top: var(--s5); }
.pager a, .pager span {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: var(--btn-h); min-height: var(--btn-h); padding: 0 var(--s3);
  border: var(--hair) solid var(--rule); border-radius: var(--r-md);
  background: var(--surface); text-decoration: none; font-size: var(--t-btn);
}
.pager [aria-current="page"] { background: var(--chosen-bg); color: var(--chosen-ink); border-color: var(--chosen-bg); font-weight: var(--w-strong); }
.pager .gap { border-color: transparent; background: transparent; color: var(--ink-2); }
.after-results { margin-top: var(--s6); padding-top: var(--s5); border-top: var(--hair) solid var(--rule); max-width: var(--measure); }
.after-results h2 { font-size: var(--t-lg); margin-bottom: var(--s2); }

/* ---- Company page ---- */
.crumbs { margin-bottom: var(--s5); font-size: var(--t-sm); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s2); color: var(--ink-2); }
.crumbs li { display: flex; align-items: center; gap: var(--s2); }
.crumbs li + li::before { content: "/"; color: var(--ink-2); }
@media (max-width: 599px) {
  /* On a phone only the way back up is shown; the full trail stays in the page data. */
  .crumbs li { display: none; }
  .crumbs li:nth-last-child(2) { display: flex; }
  .crumbs li:nth-last-child(2)::before { content: "\2190"; }
  .crumbs a { display: inline-flex; align-items: center; min-height: var(--tap); min-width: var(--tap); }
}
/* A company's name, other form and key line sit in the band (pageHead). */
.page-head .other-name { margin: var(--s2) 0 0; color: var(--hero-ink-2); font-size: var(--t-lg); overflow-wrap: anywhere; }
.key-line { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); margin-top: var(--s4); color: var(--hero-ink-2); font-size: var(--t-sm); }
.key-line .sep { color: var(--hero-ink-2); }
@media (max-width: 599px) { .key-line .sep { display: none; } .key-line { gap: var(--s2) var(--s3); } }

.company-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--aside-w); gap: var(--s7); align-items: start; }
@media (max-width: 1023px) { .company-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s6); } }
.block + .block { margin-top: var(--s7); }
.block > h2 { margin-bottom: var(--s4); padding-bottom: var(--section-pad); border-bottom: var(--section-border); }

.facts { margin: 0; border-top: var(--facts-top); counter-reset: fact; }
.fact {
  display: grid; grid-template-columns: var(--fact-cols); gap: var(--s4);
  padding: var(--s3) 0; border-bottom: var(--hair) solid var(--rule); counter-increment: fact;
}
.fact::before { content: var(--fact-mark); font-family: var(--f-num); font-size: var(--t-sm); color: var(--ink-2); padding-top: var(--s0); }
.fact dt { color: var(--fact-label-ink); font-weight: var(--w-label); font-size: var(--t-sm); padding-top: var(--s0); }
.fact dd { margin: 0; overflow-wrap: anywhere; }
.fact dd a svg { width: var(--icon); height: var(--icon); margin-left: var(--s1); vertical-align: -0.15em; } /* a link that opens elsewhere, inside a fact */
@media (max-width: 599px) { .fact dd > a { display: inline-flex; align-items: center; min-height: var(--tap); } } /* a fact's own link (a website, a monitor) is a finger's size */
.fact .help { display: block; margin-top: var(--s1); font-size: var(--t-sm); color: var(--ink-2); }
.fact .with-copy { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); }
@media (max-width: 599px) {
  .fact { grid-template-columns: var(--fact-cols-sm); gap: var(--s1) var(--s3); }
  .fact dd { grid-column: var(--fact-dd-col-sm); }
}

.names { margin-top: 0; }

.panel { background: var(--panel-bg); border: var(--panel-border); border-top: var(--panel-top); border-radius: var(--r-md); box-shadow: var(--sheet-shadow); }
.panel + .panel { margin-top: var(--s4); }
.panel-head { padding: var(--s4) var(--s5); background: var(--panel-head-bg); border-bottom: var(--hair) solid var(--rule); border-radius: var(--r-md) var(--r-md) 0 0; }
.panel-head h2 { font-size: var(--t-lg); }
.panel-body { padding: var(--s4) var(--s5) var(--s5); }
.panel-body p { font-size: var(--t-sm); color: var(--ink-2); }
.panel-actions { display: grid; gap: var(--s2); margin-top: var(--s4); }
.panel-actions .btn { justify-content: space-between; width: 100%; }
.panel-body .panel-after { margin-top: var(--s4); }
.panel-after a { display: inline-flex; align-items: center; gap: var(--s1); min-height: var(--tap); }
.panel-after a svg { width: var(--icon); height: var(--icon); } /* the opens-elsewhere mark, text-sized */
.panel-plain { background: transparent; border: 0; border-top: var(--hair) solid var(--rule); box-shadow: none; border-radius: 0; }
.panel-plain .panel-body { padding: var(--s4) 0 0; }

.nearby { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: var(--s6); }
.nearby li { break-inside: avoid; padding: var(--s1) 0; }
.nearby a { display: inline-flex; align-items: center; min-height: var(--btn-sm-h); overflow-wrap: anywhere; text-decoration: none; }
.nearby a:hover { text-decoration: underline; }
@media (max-width: 599px) { .nearby { columns: 1; } .nearby a { min-height: var(--tap); } }

.record-note { margin-top: var(--s7); padding-top: var(--s5); border-top: var(--hair) solid var(--rule); font-size: var(--t-sm); color: var(--ink-2); }
.record-note p { max-width: var(--measure); }
.record-note h2 { font-size: var(--t-md); color: var(--ink); margin-bottom: var(--s2); font-family: var(--f-body); font-weight: var(--w-strong); }

/* ---- Two plain columns of text (home) ---- */
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7); }
@media (max-width: 767px) { .columns { grid-template-columns: minmax(0, 1fr); gap: var(--s6); } }
.columns h2 { margin-bottom: var(--s3); }
.link-list { list-style: none; margin: 0; padding: 0; border-top: var(--list-top); }
.link-list li { border-bottom: var(--hair) solid var(--rule); }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: var(--btn-h); padding: var(--s2) 0; text-decoration: none; }
.link-list a:hover { text-decoration: underline; }
.link-list .muted { font-size: var(--t-sm); }
@media (max-width: 599px) { .link-list a { min-height: var(--tap); } }

.provinces { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--s6); border-top: var(--list-top); }
.provinces li { border-bottom: var(--hair) solid var(--rule); }
.provinces a { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: var(--btn-h); padding: var(--s2) 0; text-decoration: none; }
.provinces a:hover { text-decoration: underline; }
.provinces .num { color: var(--ink-2); font-size: var(--t-sm); }
@media (max-width: 1023px) { .provinces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .provinces { grid-template-columns: minmax(0, 1fr); } .provinces a { min-height: var(--tap); } }

/* ---- No match: where is it registered? ---- */
.choices { list-style: none; margin: var(--s5) 0 0; padding: 0; border-top: var(--list-top); max-width: 900px; }
.choices > li { border-bottom: var(--hair) solid var(--rule); }
.choice {
  display: grid; grid-template-columns: var(--choice-w) minmax(0, 1fr) auto; gap: var(--s2) var(--s5); align-items: center;
  padding: var(--s4) var(--s3); color: var(--ink); text-decoration: none;
}
.choice:hover { background: var(--row-hover); text-decoration: none; }
.choice:hover .choice-go { text-decoration: underline; }
.choice-where { font-weight: var(--w-strong); font-size: var(--t-lg); font-family: var(--f-head); }
.choice-what { color: var(--ink-2); font-size: var(--t-sm); }
.choice-go { display: inline-flex; align-items: center; gap: var(--s1); color: var(--action-text); font-weight: var(--w-strong); font-size: var(--t-sm); white-space: nowrap; }
.choice-go svg { width: var(--icon); height: var(--icon); }
details.choice-more > summary { list-style: none; cursor: pointer; }
details.choice-more > summary::-webkit-details-marker { display: none; }
.more-list { list-style: none; margin: 0; padding: 0 var(--s3) var(--s4); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s6); }
.more-list a { display: flex; align-items: center; min-height: var(--btn-h); }
@media (max-width: 767px) {
  .choice { grid-template-columns: minmax(0, 1fr); }
  .more-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 599px) { .more-list a { min-height: var(--tap); } }
.copy-note { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3); margin-top: var(--s5); font-size: var(--t-sm); color: var(--ink-2); }
.copy-done { font-weight: var(--w-strong); color: var(--ok); }
.tips { margin-top: var(--s7); max-width: var(--measure); }
.tips h2 { font-size: var(--t-lg); margin-bottom: var(--s2); }

/* ---- Footer ---- */
.site-foot { margin-top: var(--s8); background: var(--foot-bg); color: var(--foot-ink); border-top: var(--foot-border); font-size: var(--t-sm); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--s6); padding-block: var(--s7) var(--s6); }
@media (max-width: 1023px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.site-foot h2 { font-family: var(--f-body); font-size: var(--t-sm); font-weight: var(--w-strong); color: var(--foot-ink); margin-bottom: var(--s3); }
.site-foot p { color: var(--foot-ink-2); }
/* The footer opens with the header's leaf and name, a step smaller. */
.site-foot .foot-brand { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.foot-brand .brand-mark { width: var(--foot-mark-size); height: var(--foot-mark-size); }
.foot-brand .brand-name { font-size: var(--foot-brand-size); }
.site-foot a { color: var(--foot-link); }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s1); }
.foot-links a { display: inline-flex; align-items: center; min-height: var(--btn-sm-h); }
.foot-base { border-top: var(--hair) solid var(--foot-rule); padding-block: var(--s4) var(--s5); color: var(--foot-ink-2); }
.foot-base p { margin: 0; }
@media (max-width: 767px) { .foot-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s5); } }
@media (max-width: 599px) { .foot-links a { min-height: var(--tap); min-width: var(--tap); } }

/* ---- Copy: an icon beside a number; the page script shows a tick once copied ---- */
.copy-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: var(--copy); height: var(--copy); padding: 0;
  color: var(--action-text); background: transparent;
  border: var(--hair) solid transparent; border-radius: var(--r-md); cursor: pointer;
}
.copy-btn:hover { background: var(--action-soft); border-color: var(--rule); }
.copy-btn svg { width: var(--icon); height: var(--icon); }
.copy-btn[data-done] { color: var(--ok); }
.fact .with-copy { gap: var(--s1); }

/* ---- Company page additions ---- */
.page-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s5); }
.page-actions .btn svg { width: var(--icon); height: var(--icon); }
@media (max-width: 599px) { .page-actions .btn { flex: 1 1 100%; } }
.notice { margin: 0 0 var(--s6); padding: var(--s4) var(--s5); background: var(--warn-soft); border: var(--hair) solid var(--warn-line); border-radius: var(--r-md); }
.notice h2 { font-size: var(--t-md); margin-bottom: var(--s1); color: var(--ink); }
.notice p { margin: 0; color: var(--ink); }
.summary { font-size: var(--t-lg); color: var(--ink); max-width: var(--measure); margin-bottom: var(--s7); }
/* The one line under a block's heading that gives its total (federal grants). */
.block-lede { margin: 0 0 var(--s4); max-width: var(--measure); color: var(--ink-2); }
/* A block's second heading, and words quoted from a record (a lobbying registration's own). */
.block-sub { margin: var(--s5) 0 var(--s2); font-size: var(--t-md); }
.block-sub a { display: inline-flex; align-items: center; min-height: var(--tap); }
.row-mark { font-weight: var(--w-strong); color: var(--ink); }
.quotes { display: grid; gap: var(--s3); max-width: var(--measure); margin: 0 0 var(--s4); padding: 0; list-style: none; }
.quotes li { padding-left: var(--s4); border-left: var(--accent-w) solid var(--rule-strong); color: var(--ink); }
.status-text { color: var(--ink-2); font-size: var(--t-sm); margin-left: var(--s2); }
.facts + .table-box { margin-top: var(--s5); }
.table-narrow { max-width: var(--table-narrow); }
.table-note { margin-top: var(--s2); font-size: var(--t-sm); color: var(--ink-2); }
.record-foot { margin-top: var(--s7); padding-top: var(--s4); border-top: var(--hair) solid var(--rule); font-size: var(--t-sm); color: var(--ink-2); }
.company-side { display: grid; gap: var(--s4); align-content: start; }
.company-side .panel + .panel { margin-top: 0; }
@media (min-width: 600px) and (max-width: 1023px) {
  .company-side { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---- Lists of corporations as compact rows (home page and side panels) ---- */
.rows { list-style: none; margin: 0; padding: 0; border-top: var(--list-top); }
.row-item { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); padding: var(--s2) 0; border-bottom: var(--hair) solid var(--rule); }
.row-main { display: grid; gap: var(--s0); min-width: 0; }
.row-main a { font-weight: var(--w-strong); text-decoration: none; overflow-wrap: anywhere; display: inline-flex; align-items: center; min-height: var(--btn-sm-h); }
.row-main a:hover { text-decoration: underline; }
.row-meta { font-size: var(--t-sm); color: var(--ink-2); }
.row-side { flex: none; font-size: var(--t-sm); color: var(--ink-2); padding-top: var(--s1); white-space: nowrap; }
.side-list .panel-body { padding-top: var(--s2); }
.side-list .rows { border-top: 0; }
.side-list .row-item:last-child { border-bottom: 0; }
.side-list .row-main a { font-size: var(--t-sm); }
.side-list h2 { font-size: var(--t-md); }
.more-link { display: inline-flex; align-items: center; min-height: var(--btn-sm-h); margin-top: var(--s2); font-size: var(--t-sm); }

/* ---- A to Z ---- */
.letters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s1); }
.letters a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: var(--letter); height: var(--letter); padding: 0 var(--s2);
  border: var(--hair) solid var(--rule); border-radius: var(--r-md); background: var(--surface);
  text-decoration: none; font-weight: var(--w-strong);
}
.letters a:hover { background: var(--action-soft); }

/* ---- Browse companies ---- */
.letter-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--tile-w), 1fr)); gap: var(--s2); }
.letter-tiles a {
  display: grid; gap: var(--s0); min-height: var(--tap); padding: var(--s3);
  background: var(--surface); border: var(--hair) solid var(--rule); border-radius: var(--r-md); text-decoration: none;
}
.letter-tiles a:hover { background: var(--action-soft); border-color: var(--rule-strong); }
.tile-key { font-size: var(--t-xl); font-weight: var(--w-head); line-height: var(--lh-tight); color: var(--action-text); }
.letter-tiles .num { font-size: var(--t-sm); color: var(--ink-2); }
.decades { border-top: var(--list-top); }
.decade { display: grid; grid-template-columns: var(--decade-w) minmax(0, 1fr); gap: var(--s4); align-items: start; padding: var(--s2) 0; border-bottom: var(--hair) solid var(--rule); }
.decade h3 { font-size: var(--t-md); padding-top: var(--s2); }
.year-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--year-w), 1fr)); gap: 0 var(--s5); }
.year-list a { display: flex; align-items: baseline; gap: var(--s3); min-height: var(--btn-h); padding-top: var(--s2); text-decoration: none; }
.year-list a:hover { text-decoration: underline; }
.year-list .num { font-size: var(--t-sm); color: var(--ink-2); }
details.older > summary {
  display: flex; align-items: center; gap: var(--s3); min-height: var(--tap); padding: var(--s2) 0;
  border-bottom: var(--hair) solid var(--rule); cursor: pointer; list-style: none;
  font-weight: var(--w-strong); color: var(--action-text);
}
details.older > summary::-webkit-details-marker { display: none; }
details.older > summary::before { content: "+"; display: inline-block; width: var(--s4); color: var(--action-text); }
details.older[open] > summary::before { content: "\2212"; }
details.older > summary .muted { font-weight: var(--w-regular); font-size: var(--t-sm); }
.columns .provinces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 599px) {
  .decade { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .year-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s4); }
  .year-list a { min-height: var(--tap); }
  .columns .provinces { grid-template-columns: minmax(0, 1fr); }
}

/* ---- On this page: the sections below, as plain links ---- */
.on-page { margin: 0 0 var(--s2); }
.on-page-label { margin: 0 0 var(--s1); font-size: var(--t-sm); font-weight: var(--w-strong); color: var(--ink-2); }
.on-page ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
.on-page a { display: inline-flex; align-items: center; min-height: var(--btn-sm-h); }
@media (max-width: 599px) { .on-page ul { display: grid; } .on-page a { min-height: var(--tap); min-width: var(--tap); } .on-page-many ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); } }

/* ---- Resources: links to other sites, each with what it is for ---- */
.resource-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--s6); border-top: var(--list-top); }
.resource-list li { padding: var(--s3) 0; border-bottom: var(--hair) solid var(--rule); }
.resource-list a { display: inline-flex; align-items: center; gap: var(--s1); min-height: var(--btn-sm-h); font-weight: var(--w-strong); }
.resource-list a svg { width: var(--icon); height: var(--icon); }
.resource-list p { margin: var(--s1) 0 0; font-size: var(--t-sm); color: var(--ink-2); }
.section-intro { max-width: var(--measure); margin: 0 0 var(--s4); color: var(--ink-2); }
@media (max-width: 767px) { .resource-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 599px) { .resource-list a { min-height: var(--tap); } }

/* ---- Cards (guides) ---- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.card { display: flex; flex-direction: column; gap: var(--s2); padding: var(--s5); background: var(--surface); border: var(--hair) solid var(--rule); border-radius: var(--r-md); }
.card h3 { font-size: var(--t-lg); }
.card h3 a { text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card p { flex: 1; margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.card .status { align-self: flex-start; }
.card .card-figure { flex: none; font-size: var(--t-2xl); font-weight: var(--w-head); line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; } /* a register's count, leading its tile */
@media (max-width: 1023px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .cards { grid-template-columns: minmax(0, 1fr); } .card { padding: var(--s4); } }

/* A second group of results under the first (close director matches). */
.block-gap { margin-top: var(--s7); }
.block-gap .table-note { margin: 0 0 var(--s4); max-width: var(--measure); }

/* On a phone each side list shows its first three; its "All ..." link leads to the rest. */
@media (max-width: 599px) {
  .side-list .row-item:nth-child(n + 4) { display: none; }
  .side-list .row-item:nth-child(3) { border-bottom: 0; }
}

/* ---- Questions ---- */
.faq { max-width: var(--measure); border-top: var(--list-top); }
.faq-item { border-bottom: var(--hair) solid var(--rule); }
.faq-item summary { display: flex; align-items: center; min-height: var(--tap); padding: var(--s2) 0; cursor: pointer; font-weight: var(--w-strong); list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "+"; display: inline-block; width: var(--s5); flex: none; color: var(--action-text); font-weight: var(--w-strong); }
.faq-item[open] summary::before { content: "\2212"; }
.faq-item p { padding: 0 0 var(--s4) var(--s5); color: var(--ink-2); }

/* ---- A guide: the reading column, and beside it the search box and more guides ---- */
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) var(--aside-w); gap: var(--s8); align-items: start; }
@media (max-width: 1023px) { .guide-grid { grid-template-columns: minmax(0, 1fr); gap: var(--s7); } }
.guide { max-width: var(--measure); }
.guide .on-page { margin-top: var(--s6); }
.guide-part { margin-top: var(--s7); }
.guide-part h2 { margin-bottom: var(--s3); }
.guide-part h3 { margin: var(--s5) 0 var(--s2); font-size: var(--t-lg); }
.guide-part > p, .guide-part > ul, .guide-part > ol { margin: 0 0 var(--s4); }
/* Lists in the text; a list with a class of its own (steps, links) keeps its own look. */
.guide-part > ul:not([class]), .guide-part > ol:not([class]) { padding-left: var(--s5); }
.guide-part > ul:not([class]) > li + li, .guide-part > ol:not([class]) > li + li { margin-top: var(--s2); }
.guide-part .table-box { margin-bottom: var(--s4); }
.guide .record-note { margin-top: var(--s8); }
.key-points { padding: var(--s5); background: var(--surface-2); border: var(--hair) solid var(--rule); border-radius: var(--r-md); }
.key-points h2 { margin-bottom: var(--s3); font-size: var(--t-lg); }
.key-points ul { margin: 0; padding-left: var(--s5); }
.key-points li + li { margin-top: var(--s2); }
/* Numbered steps: the number in its own column, the way a working paper numbers its procedures. */
.guide-part .steps { list-style: none; margin: 0 0 var(--s4); padding: 0; border-top: var(--list-top); counter-reset: step; }
.guide-part .step { display: grid; grid-template-columns: var(--step-w) minmax(0, 1fr); padding: var(--s4) 0; border-bottom: var(--hair) solid var(--rule); counter-increment: step; }
.guide-part .step + .step { margin-top: 0; }
.step::before { content: counter(step) "."; grid-row: span 2; font-family: var(--f-num); font-weight: var(--w-strong); color: var(--ink-2); }
.guide-part .step h3 { margin: 0 0 var(--s1); font-size: var(--t-md); }
.guide-part .step p { margin: 0; color: var(--ink-2); }
.guide-side { display: grid; gap: var(--s4); align-content: start; }
.guide-side .panel + .panel { margin-top: 0; }
.guide-side .panel-body > p { margin: 0 0 var(--s3); }
/* A lookup page: what the search box above finds, before the short version. */
.lookup-note { margin: 0 0 var(--s5); max-width: var(--measure); color: var(--ink-2); }

/* ---- Forms (the correction and removal request): one column, big targets, notes in words ---- */
.form { display: grid; gap: var(--s5); margin-top: var(--s4); }
.form-field label { font-weight: var(--w-strong); color: var(--ink); }
.form-field .optional { font-weight: var(--w-regular); color: var(--ink-2); }
.form-field input, .form-field textarea { width: 100%; }
.field textarea {
  min-height: calc(var(--btn-h) * 4); padding: var(--s2) var(--s3); resize: vertical;
  font: inherit; font-size: var(--t-btn); line-height: 1.5; color: var(--ink); background-color: var(--surface);
  border: var(--hair) solid var(--rule-strong); border-radius: var(--r-md);
}
.field-help { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.field-error { margin: 0; font-size: var(--t-sm); font-weight: var(--w-strong); color: var(--bad); }
.form-field [aria-invalid="true"] { border-color: var(--bad); }
.form-alert { margin: 0; padding: var(--s3) var(--s4); color: var(--ink); background: var(--bad-soft); border: var(--hair) solid var(--bad); border-radius: var(--r-md); }
.choices { display: grid; gap: var(--s2); min-width: 0; margin: 0; padding: 0; border: 0; }
.choices legend { margin-bottom: var(--s2); padding: 0; font-size: var(--t-sm); font-weight: var(--w-strong); color: var(--ink); }
/* The whole row is the radio button: the real input covers it, unseen, and the circle is drawn. */
.choice { position: relative; display: block; min-height: var(--tap); padding: var(--s3) var(--s3) var(--s3) calc(var(--s3) * 2 + var(--radio)); background: var(--surface); border: var(--hair) solid var(--rule); border-radius: var(--r-md); cursor: pointer; }
.choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice::before { content: ""; position: absolute; left: var(--s3); top: calc(var(--s3) + var(--s0)); width: var(--radio); height: var(--radio); box-sizing: border-box; border: 2px solid var(--rule-strong); border-radius: 50%; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--action); background: var(--action-soft); }
.choice:has(input:checked)::before { border-color: var(--action); background: var(--action); box-shadow: inset 0 0 0 3px var(--surface); }
.choice:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice-label { display: block; font-weight: var(--w-strong); color: var(--ink); }
.choice-help { display: block; margin-top: var(--s1); font-size: var(--t-sm); color: var(--ink-2); }
.form-actions { display: flex; gap: var(--s3); }
.trap { display: none; } /* a field only a program fills in */
/* A term and what it means, one under the other (what a request can change). */
.defs { margin: 0 0 var(--s4); }
.defs dt { margin-top: var(--s4); font-weight: var(--w-strong); color: var(--ink); }
.defs dt:first-child { margin-top: 0; }
.defs dd { margin: var(--s1) 0 0; color: var(--ink-2); }
.guide-side .search { margin-top: 0; }
.guide-side .search-bar { flex-direction: column; }
.guide-side .link-list a { min-height: var(--tap); line-height: var(--lh-tight); }
@media (min-width: 600px) and (max-width: 1023px) { .guide-side { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---- Print: the company page prints as a clean record; the report has its own sheet ---- */
@media print {
  .review-bar, .site-nav, .head-tools, .company-side, .guide-side, .guide .on-page, .site-foot .foot-grid, .crumbs, .page-actions, .copy-btn, .no-print { display: none !important; }
  body { background: var(--surface); font-size: 11pt; }
  .page { padding: 0; }
  .company-grid, .guide-grid { display: block; }
  .sheet { box-shadow: none; border: 0; padding: 0; }
  a { color: var(--ink); text-decoration: none; }
  /* On paper the band is plain: dark words on white, no search box. */
  .page-head { background: none; }
  .page-head h1, .page-head .page-lede, .page-head .other-name, .key-line, .key-line .sep { color: var(--ink); }
  .page-head .search { display: none; }
}
