/* ERFT site styles. Tokens and type rules follow the brand guide (brand-site/index.html).
   Marigold appears only on the R of the mark, which comes from the brand SVGs. It is never set as text. */

:root {
  --midnight: #1F1357;
  --deep: #11073A;
  --violet: #5F55C6;
  --marigold: #F9B012; /* the R only; kept here for reference, not used in this file */
  --ochre: #915B02;
  --mist: #ECEAFD;
  --paper: #FCFAF6;
  --white: #FFFFFF;
  --line: rgba(31, 19, 87, .14);
  --muted: #4A4570;
  --paper-80: rgba(252, 250, 246, .84);

  --f-body: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  --f-ext: "Trade Gothic Extended", "Trade Gothic Bold Extended", "Helvetica Neue", Arial, sans-serif;
  --f-cond: "Trade Gothic Condensed", "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;

  --gutter: 16px;
  --radius: 14px;
  --focus: 3px solid var(--violet);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--midnight);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
main:focus { outline: none; }

h1, h2, h3, .h3 {
  font-family: var(--f-ext);
  font-weight: 700;
  letter-spacing: .01em;
  line-height: 1.12;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(1.9rem, 6.4vw, 3.4rem); }
h2 { font-size: clamp(1.45rem, 4vw, 2.1rem); }
h3, .h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; max-width: 68ch; }
a { color: var(--violet); text-underline-offset: .15em; }
a:hover { color: var(--midnight); }
:focus-visible { outline: var(--focus); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.kicker {
  font-family: var(--f-cond);
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--violet);
  font-weight: 700;
  margin: 0 0 12px;
}
.lede { font-size: 1.18rem; max-width: 60ch; }
.muted { color: var(--muted); }

/* Skip link */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--midnight); color: var(--paper);
  padding: 10px 16px; border-radius: 8px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 8px; color: var(--paper); outline: 3px solid var(--mist); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 10px 18px;
  border-radius: 999px; border: 2px solid transparent;
  font-family: var(--f-cond); font-weight: 700; font-size: 1rem;
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; line-height: 1.1; text-align: center;
}
.btn-primary { background: var(--midnight); color: var(--paper); }
.btn-primary:hover { background: var(--deep); color: var(--paper); }
.btn-ghost { border-color: var(--midnight); color: var(--midnight); background: transparent; }
.btn-ghost:hover { background: var(--midnight); color: var(--paper); }
.btn-light { background: var(--paper); color: var(--midnight); }
.btn-light:hover { background: var(--mist); color: var(--midnight); }
.btn-outline-light { border-color: var(--paper); color: var(--paper); }
.btn-outline-light:hover { background: var(--paper); color: var(--midnight); }
.hero :focus-visible, .next-step :focus-visible, .site-footer :focus-visible { outline-color: var(--mist); }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.doors { background: var(--mist); }
.doors-list {
  list-style: none; margin: 0; padding: 6px 0;
  display: flex; flex-wrap: wrap; gap: 2px 18px;
  font-family: var(--f-cond); font-size: .92rem; letter-spacing: .03em;
}
.doors-list a { color: var(--midnight); text-decoration: none; display: inline-block; padding: 4px 0; }
.doors-list a:hover, .doors-list a[aria-current] { text-decoration: underline; }

.header-main {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  padding-top: 12px; padding-bottom: 12px;
}
/* Header lockup. The mark is 240 x 190 units with 40 units of clear space on every side (brand guide, section 04),
   so the padding is 40/190 of the mark height. 40 px high on phones keeps the width above the 48 px screen minimum. */
.brand { --mark-h: 40px; display: inline-block; padding: calc(var(--mark-h) * 40 / 190); margin: calc(var(--mark-h) * -40 / 190) auto calc(var(--mark-h) * -40 / 190) calc(var(--mark-h) * -40 / 190); line-height: 0; border-radius: 6px; }
.brand img { height: var(--mark-h); width: auto; display: block; }
@media (min-width: 1000px) { .brand { --mark-h: 44px; } }
.header-cta { padding: 8px 14px; font-size: .92rem; white-space: nowrap; flex: none; }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 12px;
  border: 2px solid var(--midnight); border-radius: 999px; background: transparent; color: var(--midnight);
  font-family: var(--f-cond); font-weight: 700; font-size: .92rem; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 16px; height: 2px; background: currentColor; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

.main-nav { flex-basis: 100%; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.main-nav a {
  display: block; padding: 12px 0; border-top: 1px solid var(--line);
  font-family: var(--f-cond); font-weight: 700; font-size: 1rem;
  letter-spacing: .06em; text-transform: uppercase; color: var(--midnight); text-decoration: none;
}
.main-nav a:hover, .main-nav a[aria-current] { color: var(--violet); }
.main-nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .35em; }
.js .main-nav { display: none; }
.js .main-nav.is-open { display: block; }

@media (min-width: 1000px) {
  .header-main { flex-wrap: nowrap; gap: 24px; }
  .brand { margin-right: 0; }
  .nav-toggle { display: none; }
  .main-nav, .js .main-nav { display: block; flex-basis: auto; margin-right: auto; }
  .main-nav ul { flex-direction: row; gap: 4px 18px; flex-wrap: nowrap; }
  .main-nav a { border: 0; padding: 8px 0; font-size: .9rem; letter-spacing: .04em; white-space: nowrap; }
}

/* Hero (home) */
.hero { background: var(--midnight); color: var(--paper); padding: 48px 0 56px; }
.hero h1 { font-size: clamp(1.9rem, 6.4vw, 3.6rem); margin: 0 0 20px; max-width: 22ch; }
.hero .kicker { color: var(--mist); }
.hero-intro p { color: var(--paper-80); font-size: 1.08rem; }
.hero-inner { display: grid; gap: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.hero-facts {
  margin: 0; padding: 20px; border: 1px solid rgba(252, 250, 246, .22); border-radius: var(--radius);
  display: grid; gap: 12px; align-self: start;
}
.hero-facts div { display: grid; gap: 2px; border-bottom: 1px solid rgba(252, 250, 246, .16); padding-bottom: 10px; }
.hero-facts div:last-child { border: 0; padding: 0; }
.hero-facts dt {
  font-family: var(--f-cond); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mist);
}
.hero-facts dd { margin: 0; font-family: var(--f-ext); font-weight: 700; font-size: 1.02rem; }
@media (min-width: 900px) {
  .hero { padding: 80px 0 88px; }
  .hero-inner { grid-template-columns: 1.6fr 1fr; gap: 56px; align-items: center; }
}

/* Page hero (inner pages) */
.page-hero { padding: 40px 0 28px; border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 24ch; }
.proof {
  display: inline-flex; flex-wrap: wrap; gap: 6px 10px; align-items: baseline;
  margin: 8px 0 0; padding: 8px 14px; border-radius: 10px; background: var(--mist);
  font-family: var(--f-cond); font-size: 1rem; letter-spacing: .02em;
}
.proof-label {
  font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .85rem; color: var(--ochre);
}
@media (min-width: 900px) { .page-hero { padding: 64px 0 40px; } }

/* Content */
.content { padding-top: 32px; padding-bottom: 56px; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1em; }
.prose li { margin: .35em 0; max-width: 66ch; }

.band { padding: 48px 0; border-top: 1px solid var(--line); }
.band-mist { background: var(--mist); border-top: 0; }
@media (min-width: 900px) { .band { padding: 80px 0; } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card-mist { background: var(--mist); border-color: transparent; }

/* Four things you can check */
.checks { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.checks h3 { margin-bottom: .35em; }
.checks p { margin: 0; }
.check-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.check-n { display: block; font-family: var(--f-ext); font-weight: 700; font-size: 2rem; color: var(--violet); line-height: 1; }
@media (min-width: 640px) { .checks { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .checks { grid-template-columns: repeat(4, 1fr); } }

/* Qualification path */
.q-path { list-style: none; margin: 24px 0; padding: 0; display: grid; gap: 0; counter-reset: q; }
.q-step { position: relative; padding: 0 0 24px 56px; }
.q-step::before {
  content: ""; position: absolute; left: 19px; top: 40px; bottom: 0; width: 2px; background: var(--violet);
}
.q-step:last-child::before { display: none; }
.q-n {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--midnight); color: var(--paper);
  font-family: var(--f-ext); font-weight: 700;
}
.q-label { margin: 8px 0 .3em; display: flex; align-items: center; gap: 8px; }
.q-icon { width: 28px; height: 28px; }
.q-step p { margin: 0; }
@media (min-width: 900px) {
  .q-path { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .q-step { padding: 56px 0 0; }
  .q-step::before { left: 48px; right: -16px; top: 19px; bottom: auto; width: auto; height: 2px; }
}

/* Principals */
.split { display: grid; gap: 24px; }
@media (min-width: 900px) { .split { grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: start; } }
.principals { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.p-name { display: block; font-family: var(--f-ext); font-weight: 700; }
.p-role { display: block; font-family: var(--f-cond); color: var(--muted); letter-spacing: .03em; }
.principals-stack li { padding: 10px 0; border-bottom: 1px solid var(--line); }

/* Specification */
.spec { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0 0 1.5em; }
.spec-head { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; align-items: flex-start; border-bottom: 2px solid var(--midnight); padding-bottom: 14px; margin-bottom: 8px; }
.spec-head .kicker { margin-bottom: 6px; }
.spec-title { margin: 0; }
.spec-head { justify-content: flex-start; align-items: center; flex-wrap: nowrap; gap: 14px; }
.spec-note { font-family: var(--f-cond); font-size: 1.02rem; color: var(--muted); margin: 12px 0 0; }
.spec-actions { margin: 16px 0 0; }
.spec-cert { margin: 12px 0 0; }
.spec .dt { margin-top: 16px; }

/* Chain diagram */
.chain { margin: 8px 0 20px; }
.prose .chain { width: min(1088px, calc(100vw - 2 * var(--gutter))); }
.chain-svg { display: block; width: 100%; height: auto; }
.chain-wide { display: none; }
.chain-tall { max-width: 420px; }
@media (min-width: 760px) { .chain-wide { display: block; } .chain-tall { display: none; } }
.ch-box { fill: var(--white); stroke: var(--midnight); stroke-width: 2; }
.ch-num-bg { fill: var(--midnight); }
.ch-num { fill: var(--paper); font-family: var(--f-ext); font-weight: 700; font-size: 15px; }
.ch-label { fill: var(--midnight); font-family: var(--f-ext); font-weight: 700; font-size: 19px; }
.chain-tall .ch-label { font-size: 17px; }
.ch-place { fill: var(--muted); font-family: var(--f-cond); font-size: 17px; letter-spacing: .02em; }
.ch-link { fill: none; stroke: var(--violet); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.legend { list-style: none; padding: 0; margin: 0; counter-reset: l; }
.legend li { counter-increment: l; display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.legend li:last-child { border: 0; }
.legend li::before {
  content: counter(l); flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--midnight); color: var(--paper); display: grid; place-items: center;
  font-family: var(--f-ext); font-size: .8rem; font-weight: 700;
}

/* Audience doors */
.door-grid { display: grid; gap: 16px; margin-bottom: 40px; }
@media (min-width: 800px) { .door-grid { grid-template-columns: 1.4fr 1fr; } }
.tick-list { margin: 0; padding-left: 1.2em; }
.tick-list li { margin: .4em 0; }
.tick-list li::marker { color: var(--violet); }

/* Documents */
.doc-grid { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 16px; }
@media (min-width: 700px) { .doc-grid { grid-template-columns: repeat(2, 1fr); } }
.doc-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; align-items: flex-start; }
.doc-card .kicker { margin-bottom: 6px; }
.doc-title { font-size: 1.2rem; margin-bottom: .4em; }
.doc-card .btn { margin-top: auto; }
.doc-status { margin: auto 0 0; font-family: var(--f-cond); color: var(--muted); }

/* FAQ */
.faq-index ul { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.faq-index a {
  display: inline-block; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  font-family: var(--f-cond); font-weight: 700; text-decoration: none; color: var(--midnight); letter-spacing: .03em;
}
.faq-index a:hover { border-color: var(--violet); }
.faq-group { margin-bottom: 40px; max-width: 820px; }
.faq-group h2 { display: flex; gap: 12px; align-items: center; }
.faq-stage {
  flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--midnight); color: var(--paper);
  display: grid; place-items: center; font-size: 1rem;
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 16px 40px 16px 0; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; right: 8px; top: 12px; font-family: var(--f-ext); font-size: 1.5rem; color: var(--violet);
}
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary h3 { display: inline; font-size: 1.05rem; margin: 0; }
.faq-answer { padding: 0 0 12px; }
.faq-anchor { display: block; }

/* Contact */
.contact-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1.6fr 1fr; gap: 56px; } }
.enquiry { display: grid; gap: 18px; }
@media (min-width: 640px) { .enquiry { grid-template-columns: 1fr 1fr; } .field-wide, .form-intro, .form-privacy, .enquiry .btn { grid-column: 1 / -1; } }
.enquiry .btn { justify-self: start; }
.form-intro, .form-privacy { margin: 0; font-size: .95rem; color: var(--muted); }
.field { display: grid; gap: 6px; align-content: start; }
.field label { font-family: var(--f-cond); font-weight: 700; letter-spacing: .04em; font-size: 1.02rem; }
.hint { margin: 0; font-size: .9rem; color: var(--muted); }
.field input, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: inherit; color: var(--midnight);
  background: var(--white); border: 1.5px solid #8A85A8; border-radius: 10px;
}
.field input:focus-visible, .field textarea:focus-visible { outline: var(--focus); outline-offset: 1px; border-color: var(--violet); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 14px 16px; border-radius: 10px; margin-bottom: 20px; font-weight: 700; }
.form-status.is-ok { background: #d9f2e0; color: #14532d; }
.form-status.is-error { background: #fde4e1; color: #8a1c12; }
.contact-aside .prose { margin-top: 20px; }

/* Next step */
.next-step { background: var(--midnight); color: var(--paper); padding: 40px 0; }
.next-step .kicker { color: var(--mist); }
.next-step h2 { margin-bottom: .3em; }
.next-step p { color: var(--paper-80); }
.next-inner { display: grid; gap: 16px; }
.next-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
@media (min-width: 900px) {
  .next-step { padding: 56px 0; }
  .next-inner { grid-template-columns: 1.5fr 1fr; align-items: center; }
  .next-actions { justify-content: flex-end; }
}

/* Footer */
.site-footer { background: var(--deep); color: var(--paper-80); padding: 48px 0 32px; font-size: .98rem; }
.site-footer a { color: var(--paper); }
.site-footer a:hover { color: var(--mist); }
.footer-top { display: grid; gap: 32px; }
@media (min-width: 700px) { .footer-top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand img { width: 72px; height: auto; display: block; margin-bottom: 16px; }
.tagline { font-family: var(--f-ext); font-weight: 700; color: var(--paper); letter-spacing: .03em; }
.footer-h { font-family: var(--f-cond); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mist); margin: 0 0 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0; }
.footer-col a { display: inline-block; padding: 6px 0; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.legal-line {
  margin: 36px 0 0; padding-top: 20px; border-top: 1px solid rgba(252, 250, 246, .16);
  font-family: var(--f-cond); letter-spacing: .03em; max-width: none;
}

/* Icons: one sprite, 24 px grid, 1.5 px stroke. Midnight primary, Violet secondary. */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 24px; height: 24px; flex: none; color: var(--midnight); --icon-2: var(--violet); vertical-align: middle; }
.icon-lg { width: 36px; height: 36px; }
.ch-icon { color: var(--midnight); --icon-2: var(--violet); }
.hero .icon, .next-step .icon, .site-footer .icon { color: var(--paper); --icon-2: var(--mist); }
.kicker-icon { display: flex; align-items: center; gap: 10px; }
.kicker-icon .icon { color: var(--midnight); }
.doc-card > .icon { margin-bottom: 12px; }
.faq-group h2 .faq-stage { width: 48px; height: 48px; border-radius: 12px; background: var(--mist); }
.faq-group h2 .faq-stage .icon { width: 30px; height: 30px; }

/* Formats */
.formats { list-style: none; margin: 0 0 1em; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.prose .formats li { margin: 0; }
.formats li { display: grid; gap: 4px; justify-items: start; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.fmt-name { font-family: var(--f-ext); font-weight: 700; }
.fmt-text { font-size: .92rem; color: var(--muted); }

/* Shared table component (components.js: dataTable). Used for every table on the site. */
.dt { margin: 0 0 1.5em; max-width: 100%; }
.dt-caption {
  margin: 0 0 8px; font-family: var(--f-ext); font-weight: 700; font-size: 1.02rem; max-width: none;
}
.dt-scroll {
  border: 1px solid rgba(31, 19, 87, .15); border-radius: 10px; overflow: hidden; overflow-x: auto;
  background: var(--paper);
}
.dt-table { width: 100%; border-collapse: collapse; font-size: 1rem; line-height: 1.45; }
.dt-table th, .dt-table td {
  padding: 12px 16px; text-align: left; vertical-align: top;
  border-bottom: 1px solid rgba(31, 19, 87, .09); border-right: 1px solid rgba(31, 19, 87, .09);
}
.dt-table tr > :last-child { border-right: 0; }
.dt-table tbody tr:last-child > * { border-bottom: 0; }
.dt-table thead th {
  background: var(--midnight); color: var(--paper);
  font-family: var(--f-cond); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase;
  border-bottom: 3px solid var(--violet); border-right-color: rgba(252, 250, 246, .18); white-space: nowrap;
}
.dt-unit { text-transform: none; letter-spacing: .02em; }
.dt-table tbody tr { background: var(--paper); }
.dt-table tbody tr:nth-child(even) { background: rgba(236, 234, 253, .55); }
.dt-table tbody tr:hover { background: rgba(95, 85, 198, .12); }
.dt-table tbody th { font-weight: 700; }
.dt-table th[scope="row"] { min-width: 9em; }
.dt-table th[scope="row"] > span:not(.dt-icon) { vertical-align: middle; }
.dt-icon { display: inline-block; margin-right: 10px; vertical-align: middle; }
.dt-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 639.98px) {
  /* Each row becomes a labelled card. */
  .dt-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .dt-table, .dt-table tbody, .dt-table tr, .dt-table th, .dt-table td { display: block; width: 100%; }
  .dt-table tbody tr { padding: 12px 14px; border-bottom: 1px solid rgba(31, 19, 87, .09); }
  .dt-table tbody tr:last-child { border-bottom: 0; }
  .dt-table th, .dt-table td { padding: 4px 0; border: 0; min-width: 0; }
  .dt-table th[scope="row"] { min-width: 0; font-family: var(--f-ext); font-size: 1.02rem; padding-bottom: 6px; }
  .dt-table td::before {
    content: attr(data-label); display: block;
    font-family: var(--f-cond); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  }
  .dt-table .num { text-align: left; white-space: normal; }
}

/* Contact tiers */
.tiers { margin-bottom: 40px; }
.tiers .dt-table th[scope="row"] { white-space: nowrap; }
@media (max-width: 639.98px) { .tiers .dt-table th[scope="row"] { white-space: normal; } }

/* Radio pills */
.pills-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.pills-field legend {
  padding: 0; margin-bottom: 8px; font-family: var(--f-cond); font-weight: 700; letter-spacing: .04em; font-size: 1.02rem;
}
.pills-field .hint { margin-bottom: 8px; }
.pills { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-input { position: absolute; left: 0; top: 0; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
  border: 1.5px solid #8A85A8; border-radius: 999px; background: var(--white); color: var(--midnight);
  font-weight: 700; font-size: .98rem; line-height: 1.2; cursor: pointer; user-select: none;
}
.pill:hover { border-color: var(--violet); background: var(--mist); }
.pill-input:checked + .pill { background: var(--midnight); border-color: var(--midnight); color: var(--paper); }
.pill-input:focus-visible + .pill { outline: var(--focus); outline-offset: 3px; }
.has-error .pill, .field input[aria-invalid], .field textarea[aria-invalid] { border-color: #a3271a; }
.field-error { margin: 6px 0 0; color: #8a1c12; font-weight: 700; font-size: .95rem; }

@media print {
  .site-header, .next-step, .site-footer .footer-top { display: none; }
  .hero { background: none; color: var(--midnight); }
}
