/* GTAX by SQX — designed stylesheet (replaces the builder default wholesale).
   Visual language from logo.svg: the square module (9 units, 2.5-unit gap),
   the one-two-three staircase that reads a code tier by tier, the single teal
   square that is the full code an issuer carries, and the two stroke weights
   (heavy letter bars, light monoline). Rationale: design.md. */

:root {
  --site-header-bg: var(--indigo);
  --ink: #1C1F36;        /* text: indigo-black ink */
  --indigo: #272B63;     /* the mark's letterforms, header, data marks */
  --teal: #0F9488;       /* the logo's own accent: the resolved code only (non-text) */
  --teal-deep: #0B6B63;  /* teal that carries text: links, buttons */
  --paper: #F4F6F5;      /* cool index-card paper */
  --slate: #585D78;      /* secondary text */
  --rule: #D5D8E3;       /* light-stroke rules */
  --tint: #E8EAF1;       /* indigo wash behind code tiles and panels */
  /* builder palette names, kept so inline chart styles resolve */
  --primary: var(--indigo);
  --accent: var(--teal-deep);
  --m: 12px;             /* one square module */
  --g: 3.3px;            /* the gap between modules (2.5 / 9 of a module) */
  --display: "League Spartan", "Futura", "Avenir Next", "Century Gothic", sans-serif;
  --body: "Literata", "Iowan Old Style", "Georgia", serif;
  --wide: 1120px;
  /* the page's side margin: 16px on a phone to 24px from 1090px, scaled between,
     so no breakpoint moves the left edge */
  --gutter-x: clamp(16px, 2.2vw, 24px);
  --measure: 66ch;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.68;
  background: var(--paper);
  color: var(--ink);
  font-optical-sizing: auto;
}
a { color: var(--teal-deep); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--indigo); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 1px; }
::selection { background: color-mix(in srgb, var(--teal) 28%, var(--paper)); }

/* ---------- Header ---------- */
.site-header {
  background: var(--site-header-bg);
  color: var(--paper);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px max(var(--gutter-x), calc((100% - var(--wide)) / 2 + var(--gutter-x)));
}
.site-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; }
.site-logo:hover { color: var(--paper); }
.site-logo svg { display: block; height: 34px; width: auto; }
.site-logo-name { font-family: var(--display); font-size: 1.3rem; font-weight: 700; }
.site-logo-name .logo-strong { font-weight: 700; }
.site-logo-name .logo-light { font-weight: 500; opacity: 0.8; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 2px; }
.site-nav a {
  font-family: var(--display);
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--paper);
  text-decoration: none;
  padding: 9px 12px 7px;
  border-bottom: 2px solid transparent;
}
.site-nav a:hover { color: var(--paper); border-bottom-color: color-mix(in srgb, var(--paper) 55%, transparent); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--teal); }
.site-nav .nav-cta {
  margin-left: 10px;
  background: var(--paper);
  color: var(--indigo);
  font-weight: 600;
  border-bottom: 0;
  padding: 9px 16px 8px;
}
.site-nav .nav-cta:hover { background: #fff; color: var(--indigo); }
.site-nav .nav-group { position: relative; display: inline-flex; align-items: center; }
.site-nav .nav-group-label, .site-nav .nav-group-toggle {
  font: 500 0.98rem var(--display); background: none; border: 0; cursor: pointer;
  color: var(--paper); padding: 9px 12px 7px;
}
.site-nav button.nav-group-label::after, .site-nav .nav-group-toggle::after { content: " \25BE"; font-size: 0.8em; }
.site-nav .nav-group-toggle { padding-left: 0; margin-left: -6px; }
.site-nav .nav-sub {
  position: absolute; top: 100%; left: 0; z-index: 60; min-width: 220px; padding: 6px;
  background: var(--indigo); display: flex; flex-direction: column;
  clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none;
}
.site-nav .nav-group:hover .nav-sub, .site-nav .nav-group:has(:focus-visible) .nav-sub {
  clip-path: none; opacity: 1; pointer-events: auto;
}
.site-nav .nav-sub a { display: block; white-space: nowrap; }
.site-header :focus-visible { outline-color: var(--paper); }

/* ---------- Hero: the code staircase (signature) ----------
   The mark's staircase at hero scale, each square holding its letter of
   THS: T (sector), T H (industry), T H S (subindustry), the last square in
   the logo's teal. It builds tier by tier once on load. */
.hero {
  max-width: var(--wide);
  margin: 0 auto;
  /* the band above the headline scales with the window (36px at 700px, 72px from 1000px) */
  padding: clamp(36px, 12vw - 48px, 72px) var(--gutter-x) clamp(24px, 5.33vw - 13.3px, 40px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 72px;
  align-items: end;
}
.hero > * { grid-column: 1; }
.hero::after {
  content: "";
  grid-column: 2;
  grid-row: 1 / span 3;
  align-self: center;
  width: 252px;
  aspect-ratio: 1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 142 142'%3E%3Cg transform='translate(0 0)'%3E%3Crect width='40' height='40' fill='%23272B63'/%3E%3Cg fill='%23F4F6F5'%3E%3Cpath d='M9 9h22v5H9zM17.5 9h5v22h-5z'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(0 51)'%3E%3Crect width='40' height='40' fill='%23272B63'/%3E%3Cg fill='%23F4F6F5'%3E%3Cpath d='M9 9h22v5H9zM17.5 9h5v22h-5z'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(51 51)'%3E%3Crect width='40' height='40' fill='%23272B63'/%3E%3Cg fill='%23F4F6F5'%3E%3Cpath d='M10 9h5v22h-5zM25 9h5v22h-5zM10 17.5h20v5H10z'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(0 102)'%3E%3Crect width='40' height='40' fill='%23272B63'/%3E%3Cg fill='%23F4F6F5'%3E%3Cpath d='M9 9h22v5H9zM17.5 9h5v22h-5z'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(51 102)'%3E%3Crect width='40' height='40' fill='%23272B63'/%3E%3Cg fill='%23F4F6F5'%3E%3Cpath d='M10 9h5v22h-5zM25 9h5v22h-5zM10 17.5h20v5H10z'/%3E%3C/g%3E%3C/g%3E%3Cg transform='translate(102 102)'%3E%3Crect width='40' height='40' fill='%230F9488'/%3E%3Cg fill='%23F4F6F5'%3E%3Cpath fill='none' stroke='%23F4F6F5' stroke-width='5' d='M26.01 13.99A8.5 8.5 0 1 0 26.01 26.01'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  animation: gtax-tiers 1.05s steps(3, jump-start) 0.15s both;
}
/* With the code reels (brand.json hero.app, apps/code-reels/) the reels take the
   staircase's cell and the code's readout runs the hero's full width under it. */
.hero-with-app::after { content: none; }
.hero-with-app > .app-embed { display: contents; }
.hero-with-app .cr-stage { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
.hero-with-app .cr-readout { grid-column: 1 / -1; margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--rule); }
@keyframes gtax-tiers {
  from { clip-path: inset(0 0 100% 0); }
  to { clip-path: inset(0 0 0 0); }
}
.hero h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  color: var(--indigo);
  max-width: 15ch;
  margin-bottom: 26px;
  text-wrap: balance;
}
.hero p { font-size: 1.2rem; line-height: 1.6; max-width: 54ch; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.action-btn {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--indigo);
  border: 1.5px solid var(--indigo);
  padding: 11px 18px 9px;
  background: transparent;
  white-space: nowrap;
}
.action-btn:hover { background: var(--tint); color: var(--indigo); }
.action-primary { background: var(--teal-deep); border-color: var(--teal-deep); color: #fff; font-weight: 600; }
.action-primary:hover { background: var(--indigo); border-color: var(--indigo); color: #fff; }

/* ---------- Main column ---------- */
main { max-width: var(--wide); margin: 0 auto; padding: clamp(32px, 5.33vw - 5.3px, 48px) var(--gutter-x) clamp(24px, 2.67vw + 5.3px, 32px); }
main > p, main > ul, main > ol, main > h1, main > h2, main > h3,
.split-copy > p, .quote-strip > h2 { max-width: var(--measure); }
main h1 {
  font-family: var(--display); font-weight: 700; color: var(--indigo);
  font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.05; margin: 8px 0 24px;
  text-wrap: balance;
}
main h2 {
  font-family: var(--display); font-weight: 600; color: var(--indigo);
  font-size: 1.85rem; line-height: 1.15; margin: 64px 0 16px;
}
main h3 {
  font-family: var(--display); font-weight: 600; color: var(--indigo);
  font-size: 1.6rem; line-height: 1.18; margin: 68px 0 14px;
  text-wrap: balance;
}
main h4 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin: 30px 0 8px; }
main p { margin: 0 0 18px; }
main ul, main ol { margin: 0 0 20px 1.3em; }
main li { margin-bottom: 8px; }
main li::marker { color: var(--indigo); }
main strong { font-weight: 600; color: var(--ink); }
main hr { border: 0; border-top: 1px solid var(--rule); margin: 40px 0; }
main > h1 + p { font-size: 1.16rem; }

/* Wide screens: section headings hang in a left rail, the way a
   classification schedule sets its headings beside its entries; prose and
   marks fill the column to the right; wide reference tables and the stat
   strip take the full width. */
@media (min-width: 1000px) {
  main {
    display: grid;
    grid-template-columns: minmax(0, 236px) minmax(0, 1fr);
    column-gap: 60px;
    align-items: start;
  }
  main > * { grid-column: 2; min-width: 0; }
  main > p, main > ul, main > ol, main > h1 + p, .site-callout, .step-flow { max-width: none; }
  main > h1, main > .stat-strip, main > .chart-panel.chart-table { grid-column: 1 / -1; }
  /* the code tree (apps/code-tree/) needs the page's width for its 213 leaves */
  main > .app-embed[data-app="code-tree"] { grid-column: 1 / -1; }
  main > h2, main > h3 {
    grid-column: 1;
    font-size: 1.42rem;
    line-height: 1.2;
    padding-top: 14px;
    border-top: 3px solid var(--indigo);
  }
  /* the heading and the first block beside it start on one line */
  main > :is(h2, h3) + * { margin-top: 68px; padding-top: 14px; }
  main > :is(h2, h3) + :is(.card-grid, .stat-strip) { padding-top: 0; margin-top: 68px !important; }
  main > :is(h2, h3) + .card-grid > li { padding-top: 14px; }
  main > :is(h2, h3) + .table-scroll { margin-top: 68px; padding-top: 0; }
  main > :is(h2, h3) + .chart-panel.chart-table { grid-column: 2; }
  .site-pullquote { margin-left: 0; }
  /* the dictionary and the contact form keep one full-width column */
  main:has(> .dict-section), .page-contact main, .page-confirmed main { display: block; }
  main:has(> .dict-section) > h2, main:has(> .dict-section) > h3,
  .page-contact main > h2, .page-contact main > h3 { border-top: 0; padding-top: 0; font-size: 1.85rem; }
  .page-contact main > p { max-width: var(--measure); }
}

/* A GTAX code: one tile from the mark's square module. */
main code {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.92em;
  letter-spacing: 0.08em;
  color: var(--indigo);
  background: var(--tint);
  padding: 0.16em 0.32em 0.04em 0.4em;
  white-space: nowrap;
}

/* Lone links set as buttons */
.site-btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.02rem;
  text-decoration: none;
  color: #fff;
  background: var(--teal-deep);
  padding: 13px 24px 11px;
  margin-top: 6px;
}
.site-btn:hover { background: var(--indigo); color: #fff; }
.site-btn-primary { background: var(--teal-deep); }

/* ---------- Tables ---------- */
.table-scroll { overflow-x: auto; margin: 22px 0 28px; -webkit-overflow-scrolling: touch; }
.site-table { border-collapse: collapse; width: 100%; font-size: 0.95rem; line-height: 1.5; }
.site-table th, .site-table td { text-align: left; vertical-align: top; padding: 10px 18px 10px 0; border-bottom: 1px solid var(--rule); }
.site-table thead th {
  font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--indigo);
  border-bottom: 3px solid var(--indigo); padding-bottom: 8px; vertical-align: bottom;
}
.site-table .num, .site-table th.num { text-align: right; font-variant-numeric: tabular-nums lining-nums; }
.site-table th:last-child, .site-table td:last-child { padding-right: 0; }
.site-table tbody tr:hover { background: color-mix(in srgb, var(--tint) 55%, transparent); }
/* the Code column of the sector tables reads as a code tile */
.site-table td[data-label="Code"] {
  font-family: var(--display); font-weight: 700; letter-spacing: 0.08em; color: var(--indigo); white-space: nowrap;
}

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

/* Stat strip: each figure carries as many squares as the code letters that
   name its tier (sector 1, industry 2, subindustry 3); classified issuers
   carry the whole code, so their third square is the logo's teal. */
.stat-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 8px 0 24px !important;
  padding: 0;
  border-top: 3px solid var(--indigo);
  max-width: none !important;
}
.stat-strip li { margin: 0; padding: 22px 20px 4px 0; position: relative; }
.stat-strip li + li { padding-left: 22px; border-left: 1px solid var(--rule); }
.stat-strip li::before {
  content: "";
  display: block;
  height: var(--m);
  width: var(--m);
  margin-bottom: 16px;
  background: repeating-linear-gradient(90deg, var(--indigo) 0 var(--m), transparent var(--m) calc(var(--m) + var(--g)));
}
.stat-strip li:nth-child(2)::before { width: calc(2 * var(--m) + var(--g)); }
.stat-strip li:nth-child(n+3)::before { width: calc(3 * var(--m) + 2 * var(--g)); }
.stat-strip li:nth-child(4)::before {
  background:
    linear-gradient(var(--teal), var(--teal)) right / var(--m) 100% no-repeat,
    repeating-linear-gradient(90deg, var(--indigo) 0 var(--m), transparent var(--m) calc(var(--m) + var(--g)));
}
.stat-strip strong {
  display: block; font-family: var(--display); font-weight: 700; color: var(--indigo);
  font-size: clamp(2.2rem, 4vw, 3.1rem); line-height: 1; letter-spacing: -0.01em;
  font-variant-numeric: lining-nums;
}
.stat-strip span { display: block; margin-top: 6px; font-size: 1rem; color: var(--slate); }

/* Cards: ledger entries under a heavy rule, not floating tiles. */
.card-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px 34px;
  margin: 26px 0 30px !important;
  padding: 0;
  max-width: none !important;
}
.card-grid li { margin: 0; padding-top: 16px; border-top: 3px solid var(--indigo); font-size: 1rem; line-height: 1.6; }
.card-grid li strong {
  display: block; margin-bottom: 6px;
  font-family: var(--display); font-weight: 600; font-size: 1.18rem; line-height: 1.25; color: var(--indigo);
}
.card-grid.cards-2, .card-grid.cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid.cards-3, .card-grid.cards-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* five: a row of three over a row of two, both rows full width */
.card-grid.cards-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.card-grid.cards-5 li { grid-column: span 2; }
.card-grid.cards-5 li:nth-child(n+4) { grid-column: span 3; }

/* Callout (the exclusion codes): an open square, the module left unfilled. */
.site-callout {
  position: relative;
  max-width: 76ch;
  margin: 36px 0;
  padding: 22px 26px 22px 64px;
  background: var(--tint);
}
.site-callout::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 27px;
  width: 18px;
  height: 18px;
  border: 3px solid var(--indigo);
}
.site-callout p { max-width: none; }
.site-callout p:last-child { margin-bottom: 0; }

/* Pull-quote: set against the slanted bar of the mark's A. */
.site-pullquote {
  position: relative;
  margin: 56px 0;
  padding: 4px 0 4px 64px;
  max-width: 36ch;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.45rem, 2.6vw, 1.95rem);
  line-height: 1.22;
  color: var(--indigo);
}
.site-pullquote::before {
  content: "";
  position: absolute;
  left: 22px;
  top: 2px;
  width: 8px;
  height: 64px;
  background: var(--indigo);
  transform: skewX(-25deg);
  transform-origin: 0 100%;
}
.site-pullquote p { margin: 0; max-width: none; }

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin: 40px 0;
}
.section-split .site-figure { margin: 0; }
.section-split.flip .site-figure { order: 2; }
.split-copy p:last-child { margin-bottom: 0; }
.section-split.wrap { display: block; }
.section-split.wrap .site-figure { float: left; width: 42%; margin: 4px 28px 12px 0; }
.section-split.wrap.flip .site-figure { float: right; margin: 4px 0 12px 28px; }
.section-split.wrap::after { content: ""; display: table; clear: both; }
.section-split.badge .site-figure { width: 160px; }

.site-figure { margin: 30px 0; }
.site-figure img { display: block; width: 100%; height: auto; }
.site-figure figcaption { margin-top: 8px; font-size: 0.9rem; color: var(--slate); }

/* Step flow: numbered square modules joined by the light stroke. */
.step-flow { margin: 28px 0 32px; max-width: 72ch; }
.step-flow ol { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step-flow li { counter-increment: step; position: relative; padding: 4px 0 24px 58px; margin: 0; }
.step-flow li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding-top: 3px;
  background: var(--indigo);
  color: var(--paper);
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  z-index: 1;
}
.step-flow li::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 30px;
  bottom: 0;
  width: 2px;
  background: var(--rule);
}
.step-flow li:last-child { padding-bottom: 0; }
.step-flow li:last-child::after { display: none; }
.step-flow li strong { font-family: var(--display); font-weight: 600; font-size: 1.12rem; color: var(--indigo); }

/* People, logos, team */
.people-grid { list-style: none; margin: 26px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 32px; }
.person-card { display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: start; }
.person-card:not(:has(.person-photo)) { grid-template-columns: 1fr; }
.person-photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.person-text > :first-child { margin-top: 0; }
.logo-wall { list-style: none; margin: 26px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.logo-cell { display: flex; align-items: center; justify-content: center; height: 96px; padding: 14px 18px; border: 1px solid var(--rule); }
.logo-cell a { display: contents; }
.logo-cell img { max-width: 100%; max-height: 100%; object-fit: contain; }
.team-grid { list-style: none; padding: 0; margin: 26px 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 30px; }
.team-card { border-top: 3px solid var(--indigo); padding-top: 16px; }
.team-card h2 { font-size: 1.25rem; margin: 0 0 2px; }
.team-title { margin: 0 0 10px; font-size: 0.95rem; color: var(--slate); }
.team-link { font-family: var(--display); font-weight: 500; font-size: 0.95rem; }

/* Quotes */
.quote-strip { margin: 64px 0 40px; }
.quote-strip h2 { margin-top: 0; }
.quote { margin: 26px 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--indigo); max-width: 64ch; }
.quote blockquote { font-size: 1.2rem; line-height: 1.5; font-style: italic; }
.quote-attr { margin-top: 10px; font-size: 0.93rem; color: var(--slate); }

/* Listings and articles */
.listing { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; }
.listing-item h2 { margin: 2px 0 6px; font-size: 1.35rem; }
.listing-item h2 a { text-decoration: none; color: var(--indigo); }
.listing-item h2 a:hover { text-decoration: underline; }
.listing-date, .article-date { margin: 0; font-size: 0.9rem; color: var(--slate); }
.listing-blurb, .listing-empty { margin: 0; }
.site-article header { margin-bottom: 26px; }
.article-kicker { font-size: 1.2rem; color: var(--slate); margin: 0; }
.article-byline { margin: 12px 0 0; font-size: 0.93rem; color: var(--slate); }
.article-hero { margin: 0 0 26px; }
.article-hero img { display: block; width: 100%; height: auto; }
.article-body { max-width: 70ch; }

/* ---------- Charts: data marks, their scales and their names; nothing else ---------- */
.chart-panel { margin: 30px 0 36px; max-width: 100%; }
.chart-panel.chart-compare { max-width: 860px; }
.chart-caption { font-size: 0.95rem; line-height: 1.5; color: var(--slate); margin: 0 0 16px; max-width: 72ch; }
.chart-caption .fact { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-row {
  display: grid;
  grid-template-columns: minmax(10ch, 16ch) minmax(0, 1fr) 7ch;
  align-items: center;
  gap: 16px;
  padding: 3px 0;
}
.chart-label { font-family: var(--display); font-weight: 500; font-size: 0.98rem; color: var(--ink); line-height: 1.2; }
.chart-mark { display: block; width: 100%; height: 22px; overflow: visible; }
.chart-mark .chart-bar, .chart-mark .chart-ink { fill: var(--indigo); }
.chart-mark .chart-last { fill: var(--indigo); stroke: none; }
.chart-mark .chart-spark { fill: none; stroke: var(--indigo); stroke-width: 1.6; stroke-linejoin: round; }
.chart-value {
  font-family: var(--display); font-weight: 600; font-size: 0.98rem; color: var(--ink);
  text-align: right; font-variant-numeric: tabular-nums lining-nums;
}
.chart-mark .chart-axis-line { stroke: var(--ink); stroke-opacity: 0.7; stroke-width: 1; }
.chart-axis-row { padding-top: 4px; }
.chart-axis-caption { font-size: 0.85rem; font-weight: 600; color: var(--slate); margin-top: 4px; }
.chart-tick { font-size: 0.8rem; color: var(--slate); white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-point-value { font-size: 0.8rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.chart-values-row { padding-bottom: 0; }
.chart-scale { display: block; font-size: 0.78rem; font-weight: 400; color: var(--slate); font-variant-numeric: tabular-nums; }
.chart-legend { font-size: 0.9rem; color: var(--slate); }
.chart-grid-table { font-size: 0.92rem; border-collapse: collapse; }
.chart-grid-table th, .chart-grid-table td { border-bottom: 1px solid var(--rule); }
.chart-grid-head { font-family: var(--display); font-weight: 600; font-size: 0.9rem; color: var(--indigo); }
.chart-cell-value { font-family: var(--display); font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-table .site-table td { font-size: 0.93rem; }

/* overlay and static-scatter SVG */
.chart-overlay { color: var(--ink); }
.chart-overlay-svg { width: 100%; height: auto; font-family: var(--display); }
.chart-overlay-svg .chart-trail { fill: none; stroke: currentColor; stroke-opacity: 0.18; stroke-width: 1; }
.chart-overlay-svg .chart-trail-pt { fill: currentColor; }
.chart-overlay-svg .chart-grid-line { stroke: var(--rule); stroke-opacity: 1; }
.chart-overlay-svg .chart-base-line, .chart-overlay-svg .chart-tick-line { stroke: var(--ink); stroke-opacity: 0.7; }
.chart-overlay-svg .chart-axis-label { fill: var(--slate); font-variant-numeric: tabular-nums; }
.chart-overlay-svg .chart-axis-title { fill: var(--ink); font-weight: 600; }
.chart-overlay-svg .chart-line { fill: none; stroke: var(--c); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-overlay-svg .chart-dot { fill: var(--c); }
.chart-overlay-svg .chart-end { fill: var(--c); font-weight: 600; }
.chart-overlay-svg .chart-leader { stroke: currentColor; stroke-opacity: 0.35; }
.chart-overlay-svg .chart-zero-line { stroke: currentColor; stroke-opacity: 0.55; stroke-dasharray: 4 3; }
.chart-overlay-svg .chart-pt { fill: var(--c, var(--indigo)); fill-opacity: 0.66; }
.chart-overlay-svg .chart-line, .chart-overlay-svg .chart-dot, .chart-overlay-svg .chart-end { transition: opacity 0.12s, stroke-width 0.12s; }
.chart-overlay-svg.is-active .chart-line:not(.is-on), .chart-overlay-svg.is-active .chart-dot:not(.is-on), .chart-overlay-svg.is-active .chart-end:not(.is-on) { opacity: 0.22; }
.chart-overlay-svg .chart-line.is-on { stroke-width: 3.6; }
.chart-overlay-svg .chart-pt:hover, .chart-overlay-svg .chart-pt:focus { fill-opacity: 1; stroke: var(--ink); stroke-width: 1.5; outline: none; }
.chart-overlay-svg .chart-pt-name { fill: var(--ink); font-weight: 500; paint-order: stroke; stroke: var(--paper); stroke-width: 3px; }
.chart-overlay-svg .chart-hover { fill: transparent; }
.chart-overlay-svg .chart-cross { stroke: currentColor; stroke-opacity: 0.45; pointer-events: none; }
.chart-overlay-svg:focus { outline: none; }
.chart-overlay-svg:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.chart-scatter .chart-overlay-svg { --c: var(--indigo); }
/* Resting labels on the industry-economics scatter: one per corner. The
   builder emits them in a fixed order (AT, DF, DW, FD, UG, UM, UR); UM sits on
   UG's point and UR's run overprints it, FD's run overprints DW, so those three
   rest unlabelled and name themselves on hover like every other point. On the
   narrow drawing DW's run would cross the plot edge, so it reads leftward. */
.page-structure .chart-scatter .chart-pt-name:nth-last-of-type(1),
.page-structure .chart-scatter .chart-pt-name:nth-last-of-type(2),
.page-structure .chart-scatter .chart-pt-name:nth-last-of-type(4) { display: none; }
.page-structure .chart-scatter .chart-narrow .chart-pt-name:nth-last-of-type(5) { text-anchor: end; transform: translateX(-14px); }
.chart-s0 { --c: #272B63; }
.chart-s1 { --c: #0B6B63; }
.chart-s2 { --c: #A4532A; }
.chart-s3 { --c: #6E4C9E; }
.chart-s4 { --c: #7A6A12; }
.chart-s5 { --c: #2F6FA8; }
.chart-s6 { --c: #A23B6A; }
.chart-s7 { --c: #4C7A2E; }
.chart-s8 { --c: #5B5F72; }
.chart-s9 { --c: #8C3B2E; }
.chart-tip {
  position: fixed; z-index: 50; min-width: 120px; max-width: 280px; padding: 9px 12px;
  background: #fff; color: var(--ink); border: 1px solid var(--rule); border-top: 3px solid var(--indigo);
  box-shadow: 0 6px 18px rgba(28, 31, 54, 0.14);
  font: 13px/1.4 var(--display); pointer-events: none;
}
.chart-tip-title { margin-bottom: 4px; color: var(--slate); font-size: 12.5px; }
.chart-tip-row { display: flex; align-items: center; gap: 6px; }
.chart-tip-row strong { font-weight: 600; font-variant-numeric: tabular-nums; }
.chart-tip-row span:last-child { color: var(--slate); }
.chart-tip-key { width: 12px; height: 3px; flex: none; }

/* panel forms (network, small scatter) */
.chart-panel-mark { display: block; width: 100%; height: auto; aspect-ratio: 106.40 / 72.40; overflow: visible; }
.chart-panel-mark .chart-point { fill: var(--indigo); fill-opacity: 0.62; }
.chart-panel-mark .chart-node { fill: var(--indigo); }
.chart-panel-mark .chart-edge { stroke: var(--slate); stroke-opacity: 1; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.chart-panel-mark .chart-arrow { fill: var(--slate); fill-opacity: 1; }
.chart-point-label, .chart-node-label { font-size: 2.05px; fill: var(--ink); opacity: 0.8; font-family: var(--display); }
.chart-panel-mark .chart-g0 { fill: var(--indigo); }
.chart-panel-mark .chart-g1 { fill: var(--teal-deep); }
.chart-panel-mark .chart-g2 { fill: var(--slate); fill-opacity: 0.6; }
.chart-network { color: var(--ink); }
.chart-stack { position: relative; }
.chart-frame { padding: 0; }
/* The network sits on paper like every other chart: no panel, no border (the
   builder's inline frame is overridden), and the static drawing stays the
   chart, because only it can be drawn in single 1px slate strokes; every node
   still names itself on hover through its <title>. */
.chart-network .chart-stack { border: 0 !important; border-radius: 0 !important; background: none; }
.chart-network .chart-stack > .chart-live { display: none; }
.chart-network .chart-panel-mark { visibility: visible !important; }
/* nodes grown about their own centres, so degree (area) still reads and each
   is a hover target; more on a phone, where the drawing is narrower */
.chart-network .chart-node { transform: scale(1.35); transform-box: fill-box; transform-origin: center; }
@media (max-width: 700px) { .chart-network .chart-node { transform: scale(1.9); } }
.chart-stack > .chart-live { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; opacity: 0; transition: opacity 180ms ease-in; }
.chart-live > svg, .chart-live canvas { max-width: 100%; height: auto; }
.chart-hydrated .chart-stack > .chart-live { opacity: 1; }
.chart-hydrated .chart-panel-mark { visibility: hidden; }

/* ---------- Data dictionary (ink only; fit ships with the page) ---------- */
.dict-intro { max-width: 70ch; font-size: 1.1rem; }
.dict-relationships { max-width: 70ch; margin: 26px 0; }
.dict-enums { margin: 48px 0 0; }
.dict-download { margin: 20px 0 8px; }
.dict-download-btn {
  display: inline-block; font: 600 1rem var(--display); color: #fff; background: var(--teal-deep);
  border: 0; padding: 12px 22px 10px; cursor: pointer; text-decoration: none;
}
.dict-download-btn:hover { background: var(--indigo); color: #fff; }
.dict-toc { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 34px; padding: 14px 0; border-top: 3px solid var(--indigo); border-bottom: 1px solid var(--rule); font-family: var(--display); font-weight: 500; }
.dict-section { margin: 46px 0; }
.dict-section h2 { margin-top: 0; }
.dict-note { font-size: 0.98rem; color: var(--slate); max-width: 70ch; }
.dict-file-links { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 6px; font-size: 0; }
.dict-file-links > a { font-family: var(--display); font-weight: 500; font-size: 0.95rem; }
.dict-file-links > a + a { margin-left: 16px; padding-left: 16px; border-left: 1px solid var(--rule); }
.dict-table { border-collapse: collapse; font-size: 0.93rem; line-height: 1.5; margin-top: 12px; }
.dict-table th, .dict-table td { text-align: left; vertical-align: top; padding: 9px 14px 9px 0; border-bottom: 1px solid var(--rule); }
.dict-table thead th { font-family: var(--display); font-weight: 600; font-size: 0.92rem; color: var(--indigo); border-bottom: 3px solid var(--indigo); }
.dict-table tbody th { font-weight: 400; }
.dict-table code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.86em;
  color: var(--ink); background: var(--tint); padding: 1px 5px; letter-spacing: 0; white-space: normal;
}
.dict-table tbody th code { color: var(--indigo); font-weight: 600; background: none; padding: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--indigo); color: var(--paper); margin-top: 56px; }
.cta-band .cta-inner {
  max-width: var(--wide); margin: 0 auto; padding: 44px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
}
.cta-band p { margin: 0; max-width: 54ch; font-family: var(--display); font-weight: 500; font-size: 1.35rem; line-height: 1.3; }
.cta-band .cta-btn {
  display: inline-block; white-space: nowrap; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  background: var(--paper); color: var(--indigo); padding: 14px 26px 12px;
}
.cta-band .cta-btn:hover { background: #fff; color: var(--indigo); }
.cta-band :focus-visible { outline-color: var(--paper); }
.form-note { font-size: 0.88rem; color: var(--slate); max-width: 56ch; }

/* ---------- Contact form (and the subsite's coverage check, .ccx-form) ---------- */
.contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 680px; margin-top: 30px; }
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label, .ccx-form label { display: flex; flex-direction: column; gap: 6px; font-family: var(--display); font-weight: 600; font-size: 0.95rem; color: var(--indigo); }
.contact-form input, .contact-form textarea, .ccx-form input[type="email"], .ccx-form textarea {
  font: 400 1rem/1.5 var(--body); color: var(--ink); background: #fff;
  border: 1.5px solid color-mix(in srgb, var(--indigo) 35%, var(--paper)); border-radius: 0; padding: 11px 12px;
}
.contact-form input:focus-visible, .contact-form textarea:focus-visible,
.ccx-form input:focus-visible, .ccx-form textarea:focus-visible { outline: 3px solid var(--teal); outline-offset: 0; border-color: var(--indigo); }
.contact-form button, .ccx-form button[type="submit"] {
  align-self: flex-start; cursor: pointer; border: 0; border-radius: 0;
  font: 600 1.05rem var(--display); color: #fff; background: var(--teal-deep); padding: 14px 28px 12px;
}
.contact-form button:hover, .ccx-form button[type="submit"]:hover { background: var(--indigo); }
.contact-form button:disabled { opacity: 0.6; cursor: wait; }
.form-success { background: var(--tint); border-top: 3px solid var(--indigo); padding: 24px; max-width: 680px; }
.form-success h2 { margin-top: 0; }
.form-error { color: #A4262C; }
.page-contact main > p:first-of-type { font-size: 1.15rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer .footer-inner {
  max-width: var(--wide); margin: 0 auto; padding: 30px 24px 34px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: 0.95rem;
}
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: #fff; }
.site-footer .footer-brand { font-family: var(--display); font-weight: 700; font-size: 1.05rem; }
/* Contacts as separate items divided by the light 1px stroke; the builder's
   joining dots are text nodes, set to zero size here. */
.site-footer .footer-inner > div:first-child { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 8px; font-size: 0; }
.site-footer .footer-inner > div:first-child > a { font-size: 0.95rem; }
.site-footer .footer-inner > div:first-child > * + * {
  margin-left: 18px; padding-left: 18px; border-left: 1px solid color-mix(in srgb, var(--paper) 30%, var(--ink));
}
.site-footer .footer-meta { color: color-mix(in srgb, var(--paper) 72%, var(--ink)); }
.site-footer :focus-visible { outline-color: var(--paper); }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  /* the graphic follows the words, so the headline keeps its place under the header */
  .hero::after { grid-column: 1; grid-row: auto; width: 132px; margin-top: 26px; }
  .hero-with-app .cr-stage { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 30px; }
  .stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-strip li:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat-strip li:nth-child(n+3) { border-top: 1px solid var(--rule); margin-top: 6px; }
  .card-grid.cards-3, .card-grid.cards-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.cards-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.cards-5 li, .card-grid.cards-5 li:nth-child(n+4) { grid-column: auto; }
}
/* Bar rows in one column: the name and its figure on one line, the bar
   under them, so the figure never drifts away from a short bar. */
@media (max-width: 999.98px) {
  .chart-row {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "label value" "mark mark";
    align-items: baseline;
    gap: 4px 10px;
    padding: 5px 0 7px;
  }
  .chart-row > .chart-label { grid-area: label; }
  .chart-row > .chart-value { grid-area: value; text-align: left; }
  .chart-row > .chart-mark-stack, .chart-row > .chart-mark { grid-area: mark; }
  .chart-row .chart-mark { height: 18px; }
  .chart-axis-row { padding-top: 2px; }
  .chart-axis-row .chart-label, .chart-axis-row .chart-value { display: none; }
}
@media (max-width: 700px) {
  body { font-size: 1rem; }
  .site-header { padding: 14px 16px 10px; gap: 10px; }
  .site-logo svg { height: 28px; }
  /* one row that scrolls sideways; Contact stays pinned at its right end */
  .site-nav {
    width: calc(100% + 16px); margin: 0 -16px 0 -8px; gap: 0;
    flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: none; white-space: nowrap; font-size: 0.9rem; padding: 8px 8px 6px; }
  .site-nav .nav-cta {
    position: sticky; right: 16px; margin-left: 8px; padding: 8px 12px 6px;
    box-shadow: -10px 0 0 var(--indigo), 16px 0 0 var(--indigo);
  }
  .site-nav .nav-group { display: block; width: 100%; }
  .site-nav .nav-group-toggle { display: none; }
  .site-nav .nav-sub, .site-nav .nav-group:hover .nav-sub {
    position: static; padding: 0 0 0 14px; clip-path: none; opacity: 1; pointer-events: auto;
  }
  .hero::after { width: 112px; }
  .hero h1 { font-size: 2.35rem; }
  .hero p { font-size: 1.08rem; }
  .action-btn { padding: 11px 14px 9px; }
  main h3 { font-size: 1.4rem; margin-top: 52px; }
  main h2 { font-size: 1.55rem; }
  .stat-strip li { padding-right: 10px; }
  .stat-strip li + li { padding-left: 16px; }
  .stat-strip li:nth-child(3) { padding-left: 0; }
  .card-grid, ul.card-grid[class*="cards-"] { grid-template-columns: 1fr; gap: 22px; }
  .site-callout { padding: 18px 18px 18px 52px; }
  .site-callout::before { left: 18px; top: 23px; width: 16px; height: 16px; }
  .site-pullquote { padding-left: 46px; margin: 40px 0; }
  .site-pullquote::before { left: 16px; width: 6px; height: 48px; }
  .section-split { grid-template-columns: 1fr; gap: 22px; }
  .section-split.flip .site-figure { order: 0; }
  .section-split.wrap .site-figure, .section-split.wrap.flip .site-figure { float: none; width: 100%; margin: 0 0 18px; }
  .section-split.badge .site-figure { float: left; width: 112px; margin: 4px 18px 8px 0; }
  .section-split.badge.flip .site-figure { float: right; margin: 4px 0 8px 18px; }
  .person-card { grid-template-columns: 96px 1fr; gap: 16px; }
  .step-flow li { padding-left: 48px; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  /* wide reference tables keep readable columns and scroll sideways */
  .chart-table .site-table:has(td[data-label="Description"], td[data-label="Key risk factors"]) { min-width: 760px; }
  /* the code column stays in view while the score columns scroll in beside it */
  .chart-table .site-table:has(td[data-label="Code"]) :is(th, td):first-child {
    position: sticky; left: 0; z-index: 1; background: var(--paper); padding-right: 14px;
    box-shadow: inset -1px 0 0 var(--rule);
  }
  /* scroll cue: an edge shade that the table's own end covers once reached */
  .table-scroll {
    background:
      linear-gradient(to left, var(--paper) 30%, transparent) right / 28px 100% no-repeat local,
      linear-gradient(to left, rgba(28, 31, 54, 0.16), transparent) right / 14px 100% no-repeat scroll;
  }
  .cta-band .cta-inner { flex-direction: column; align-items: flex-start; padding: 36px 16px; }
  .cta-band p { font-size: 1.18rem; }
  .site-footer .footer-inner { flex-direction: column; padding: 26px 16px 30px; }
  .site-footer .footer-inner > div:first-child { flex-direction: column; align-items: flex-start; row-gap: 6px; }
  .site-footer .footer-inner > div:first-child > * + * { margin-left: 0; padding-left: 0; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hero::after { animation: none; }
  .chart-stack > .chart-live, .chart-overlay-svg .chart-line, .chart-overlay-svg .chart-dot, .chart-overlay-svg .chart-end { transition: none; }
}

/* subsite overlay (spinup_config/<site>/subsite/site.css) */
/* The gtax subsite's additions to GTAX's sheet (spinup_subsite.py appends this file).
   1. Issuer search, Coverage check, and Contact beside the GTAX navigation.
   2. The coverage check (sqx apps/coverage-check) in one full-width column, like the
      contact page; its fields and button take the contact form's rules in site.css. */
/* The imported app (the coverage check) also reads the main site's tokens
   (spinup_config/sqx/site.css :root); those GTAX's sheet does not set are set here in its
   indigo, ink and League Spartan. */
:root {
  --navy: var(--indigo);
  --font-sans: var(--display);
  --mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --fw-medium: 500;
  --fs-lead: 19px;
  --fs-ui: 15px;
  --fs-small: 14px;
  --sqx-ink: var(--ink);
  --sqx-body: var(--ink);
  --sqx-grey: var(--slate);
  --sqx-line-soft: var(--tint);
}
html:root {
  --head: var(--display);
  --blue: var(--teal-deep);
  --kept: var(--teal-deep);
  --focus: var(--teal);
  --page: var(--paper);
}
.site-header {
  --header-row-h: 72px;
  --control-h: 42px;
  --header-gap: clamp(8px, 1vw, 14px);
  padding: 0 clamp(16px, 2vw, 24px);
}
.site-logo { overflow: hidden; }
.site-logo svg { flex: none; }
.site-nav a { padding-inline: 8px; }
.site-nav .nav-cta { display: none; }
.header-search { position: relative; display: flex; align-items: center; }
.header-search-toggle { display: none; }
.header-search-input {
  font: 400 0.95rem/1.4 var(--display);
  color: var(--paper);
  background: color-mix(in srgb, var(--paper) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--paper) 28%, transparent);
  border-radius: 0;
  padding: 0 38px 0 14px;
}
.header-search-input::placeholder { color: color-mix(in srgb, var(--paper) 62%, transparent); }
.header-search-input:focus {
  outline: none;
  background: color-mix(in srgb, var(--paper) 16%, transparent);
  border-color: var(--teal);
}
.header-search-input::-webkit-search-cancel-button { filter: invert(1); }
.header-search-submit {
  position: absolute;
  right: 5px;
  width: 30px;
  height: 30px;
  border: 0;
  cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4F6F5' stroke-opacity='0.8' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.header-search-submit:hover { background-color: color-mix(in srgb, var(--paper) 14%, transparent); }
/* the suggestions: a paper card under the field */
.header-search-list {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: min(420px, calc(100vw - 32px));
  max-height: 420px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 6px 0;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 30px rgba(28, 31, 54, 0.16);
  z-index: 200;
}
.header-search-list > li { display: flex; flex-direction: column; gap: 1px; padding: 8px 14px; cursor: pointer; }
.header-search-list > li[aria-selected="true"], .header-search-list > li:hover { background: var(--tint); }
.header-search-list .hs-name { font: 600 0.92rem/1.35 var(--display); color: var(--ink); }
.header-search-list .hs-meta { font-size: 0.8rem; color: var(--slate); }
.header-search-list > .hs-all, .header-search-list > .hs-beyond { border-top: 1px solid var(--rule); }
.header-search-list > .hs-all .hs-name, .header-search-list > .hs-beyond .hs-name { color: var(--teal-deep); }
.header-search-list > .hs-all .hs-name::after, .header-search-list > .hs-beyond .hs-name::after { content: " \2192"; }

.header-action {
  font: 500 0.95rem/1.4 var(--display);
  color: var(--paper);
  text-decoration: none;
  padding: 0 10px;
  border: 1px solid color-mix(in srgb, var(--paper) 40%, transparent);
}
.header-action:hover { color: var(--paper); background: color-mix(in srgb, var(--paper) 14%, transparent); }
.header-action-button { background: var(--paper); color: var(--indigo); border-color: var(--paper); font-weight: 600; }
.header-action-button:hover { background: #fff; color: var(--indigo); }

main.ccx { display: block; }
.ccx-form label { margin: 18px 0 6px; }
.ccx-form textarea { width: 100%; max-width: 680px; font-family: var(--mono); font-size: 0.95rem; }
.ccx-form input[type="email"] { width: 100%; max-width: 420px; }
.ccx-form button[type="submit"] { margin-top: 12px; }

@media (max-width: 1359px) {
  .nav-menu-btn { border: 1px solid color-mix(in srgb, var(--paper) 40%, transparent); background: none; color: var(--paper); }
  .nav-open .nav-menu-btn { background: color-mix(in srgb, var(--paper) 14%, transparent); }
  .site-nav { gap: 0; padding: 0 0 14px; }
  .site-nav a { display: flex; align-items: center; padding: 0 4px; border-bottom: 0; border-top: 1px solid color-mix(in srgb, var(--paper) 16%, transparent); }
}
/* Under 901px the logo shows its mark and GTAX (its last quarter, "by SQX", is cut
   away) and shrinks with the window, so the field keeps its room. */
@media (max-width: 900px) {
  .site-logo svg { height: clamp(24px, 1.8vw + 18px, 28px); }
  .site-logo { width: calc(clamp(24px, 1.8vw + 18px, 28px) * 244 / 44 * 0.74); }
  .header-search-input { font-size: 0.875rem; }
  .header-search-list { min-width: 0; }
}
@media (width < 360px) {
  .header-search-input { padding-left: 8px; font-size: 12px; }
}
}

/* the header search field shows its whole placeholder (spinup_site_build.py) */
.header-search { min-width: min-content; }
.header-search-input { min-width: min(calc(var(--placeholder-ch) * 0.85ch + 4em), calc(100vw - 4rem)); }

/* the header row (spinup_site_build.py header_layout_css) */
.site-header { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; column-gap: var(--header-gap, 12px); row-gap: 0; }
.site-header > .site-logo { order: 1; flex: none; display: flex; align-items: center; min-height: var(--header-row-h, 64px); }
.site-header > .header-actions { order: 3; flex: 1 1 auto; display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; }
.site-header > .header-actions > .header-search { flex: 0 1 600px; width: auto; max-width: none; height: var(--control-h, 42px); margin: 0 auto 0 0; }
.site-header > .header-actions .header-search-input { box-sizing: border-box; flex: 1 1 auto; width: 100%; height: var(--control-h, 42px); min-height: 0; margin: 0; }
.site-header > .header-actions > .header-action { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; height: var(--control-h, 42px); min-height: 0; margin: 0; white-space: nowrap; }
.site-header > :not(.nav-menu-btn, .site-logo, .header-actions, .site-nav) { order: 4; flex: none; }
.site-header > .site-nav { order: 2; flex: none; }
.site-header > .header-actions { flex-basis: 0; }
.site-header > .nav-menu-btn { display: none; }
@media (max-width: 1359px) {
  .site-header > .nav-menu-btn { order: 0; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; width: var(--control-h, 42px); height: var(--control-h, 42px); min-height: 0; margin: 0; padding: 0; font-size: 0; cursor: pointer; }
  /* three bars; the button's text stays its accessible name */
  .site-header > .nav-menu-btn::before { content: ""; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px currentColor, 0 6px currentColor; }
  .site-header > .site-nav { order: 5; flex: 1 1 100%; display: none; flex-direction: column; align-items: stretch; height: auto; margin: 0; }
  .site-header.nav-open > .site-nav { display: flex; max-height: calc(100dvh - var(--header-row-h, 64px)); overflow-y: auto; }
  .site-header > .site-nav .nav-row { display: flex; flex-direction: column; align-items: stretch; }
  .site-header > .site-nav :is(a, .nav-group-label, .nav-group-toggle) { min-height: 44px; }
  .site-header > .site-nav .nav-group { display: flex; flex-wrap: wrap; align-items: stretch; }
  .site-header > .site-nav .nav-group > .nav-group-label { flex: 1; }
  .site-header > .site-nav .nav-group:hover > .nav-sub { display: none; }
  .site-header > .site-nav .nav-group:focus-within > .nav-sub { display: block; position: static; flex-basis: 100%; transform: none; box-shadow: none; }
}
@media (max-width: 900px) {
  .site-header > .header-actions .header-search[data-placeholder-narrow] .header-search-input { min-width: min(calc(var(--placeholder-narrow-ch) * 0.85ch + 4em), calc(100vw - 4rem)); }
  .site-header > .header-actions { display: contents; }
  .site-header > .header-actions > .header-search { order: 2; flex: 1 1 0; margin: 0; }
  .site-header > .header-actions > .header-action, .site-header > :not(.nav-menu-btn, .site-logo, .header-actions, .site-nav) { display: none; order: 6; }
  .site-header.nav-open > .header-actions > .header-action { display: inline-flex; flex: 1 1 0; margin-bottom: 16px; }
  .site-header.nav-open > :not(.nav-menu-btn, .site-logo, .header-actions, .site-nav) { display: flex; order: 7; flex: 1 1 100%; margin-bottom: 16px; }
}

/* text only a screen reader reads (spinup_site_build.py) */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* the footer's links to the other SQX sites (spinup_site_build.py) */
:where(.footer-family) { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 18px; padding: 14px 16px 18px; font-size: 13px; }
:where(.footer-family-label) { font-weight: 600; }
:where(.footer-family ul) { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
:where(.footer-family a) { color: inherit; }

.site-header { position: sticky; top: 0; z-index: 100; }
.sqx-bar {
  position: relative; display: flex; justify-content: center; align-items: center;
  min-height: 28px; padding-inline: 2.25rem; text-align: center;
  background: var(--sqx-bar-bg, #abcdea); color: var(--sqx-bar-ink, #101820);
  font: 500 .75rem/1.25 system-ui, sans-serif;
}
.sqx-bar[hidden] { display: none; }
.sqx-bar a { color: inherit; text-decoration: underline; }
.sqx-bar button { position: absolute; right: .375rem; top: 50%; transform: translateY(-50%);
  width: 24px; min-height: 24px; padding: 0;
  background: transparent; border: 0; color: inherit; font: 1.125rem/1 system-ui; cursor: pointer; }
.sqx-bar :focus-visible { outline: 2px solid currentColor; outline-offset: 1px; }
@media print { .sqx-bar { display: none; } }
