/* EFW2 Converter — site styles.
 *
 * One file, no preprocessor, no framework. The visual direction is the one
 * chosen in the site design spec §2: utilitarian, dense, proof first. Anything
 * that is data is set in a monospace face at a fixed width, because that is what
 * the reader will be looking at in the actual file.
 *
 * Colour distinguishes record types but never carries information on its own:
 * every colour-coded element also carries a text label.
 */

:root {
  /* Light only, because the converter is. The product has no dark mode at all
     (zero prefers-color-scheme rules in any build), so a site that went dark on
     a phone set to dark was the one place the two diverged, and it set an
     expectation the download does not meet. */
  color-scheme: light;

  --bg: #ffffff;
  --bg-sunk: #f8f9fa;
  --bg-raised: #ffffff;
  --ink: #16181d;
  --ink-soft: #495057;
  --ink-faint: #5a6268;
  --rule: #dee2e6;
  --rule-strong: #cbd5e1;
  --accent: #1a5f7a;          /* the converter's heading, active tab and rules */
  --accent-ink: #ffffff;
  --ok: #155724;
  --warn: #856404;            /* pairs with the converter's #fff3cd panels */
  --bad: #c22a37;             /* the converter's #dc3545, darkened to clear AA on white */
  --code-bg: #f8f9fa;
  --shell-bg: #1b1e24;
  --shell-ink: #e6e8ec;

  /* Record-type accents. These always sit on the dark record shell, in both
     colour schemes, so they are fixed rather than redefined for dark mode.
     Every one of them is also paired with its two-letter label, so colour never
     carries the distinction on its own. */
  --rec-ra: #c9a8ea;
  --rec-re: #8ec5e8;
  --rec-rw: #7fcfa0;
  --rec-rs: #e6bd77;
  --rec-rt: #eaa6d2;
  --rec-rf: #c3c9d3;

  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", "Consolas", "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --measure: 34rem;
  --page: 68rem;
  --gutter: 1rem;
}


* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 1rem/1.6 var(--sans);
  overflow-wrap: break-word;
}

/* ---------- skip link ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- header and nav ---------- */

.site-header {
  border-bottom: 1px solid var(--rule);
  background: var(--bg-sunk);
}

.site-header nav {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.25rem;
}

.wordmark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-header ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.1rem;
  margin: 0;
  padding: 0;
  font-size: 0.9375rem;
}

.site-header a { color: var(--ink-soft); text-decoration: none; }
.site-header a:hover { color: var(--ink); text-decoration: underline; }
.site-header a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- main ---------- */

main {
  max-width: var(--page);
  margin: 0 auto;
  padding: 2rem var(--gutter) 3rem;
}

h1, h2, h3, h4 {
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 2.25rem 0 0.75rem;
  text-wrap: balance;
}
h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem); margin-top: 0.5rem; }
h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.6rem); padding-top: 0.5rem; border-top: 1px solid var(--rule); }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

p, ul, ol, blockquote, table { max-width: var(--measure); }
.page-landing p, .page-landing ul, .page-landing ol { max-width: var(--measure); }

p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.4rem; }
li { margin: 0 0 0.4rem; }

a { color: var(--accent); text-underline-offset: 2px; }

.lede {
  font-size: 1.125rem;
  color: var(--ink-soft);
  max-width: 40rem;
}

blockquote {
  margin: 1.25rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  border-left: 3px solid var(--rule-strong);
  color: var(--ink-soft);
}

hr { border: 0; border-top: 1px solid var(--rule); margin: 2rem 0; }

code {
  font-family: var(--mono);
  color: var(--ink);
  font-size: 0.9em;
  background: var(--code-bg);
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 0.05em 0.3em;
}

pre {
  background: var(--shell-bg);
  color: var(--shell-ink);
  padding: 0.9rem 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.5;
  max-width: 100%;
}
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }

/* ---------- tables ---------- */

.table-scroll {
  overflow-x: auto;
  margin: 0 0 1.25rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  max-width: 100%;
}
.table-scroll table { max-width: none; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}
th, td {
  text-align: left;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
thead th {
  background: var(--bg-sunk);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: 0; }

/* Position tables read as data. */
td code { white-space: nowrap; }

/* The template column table on /how-it-works: one row per column of the sample
   template, generated from the shipped build. The position number and the header
   string are both things the reader copies into a spreadsheet, so both are set in
   the monospace face rather than in running text. */
.column-table { min-width: 32rem; }
.column-table caption {
  text-align: left;
  padding: 0.5rem 0.75rem;
  color: var(--ink-soft);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--rule);
}
.column-table .col-num {
  font-family: var(--mono);
  color: var(--ink-faint);
  text-align: right;
  width: 2.5rem;
  white-space: nowrap;
}
.column-table tbody th { font-weight: 400; white-space: nowrap; }

/* ---------- hero ---------- */

.hero { margin: 0 0 2.5rem; }
.hero h1 { max-width: 22ch; }
.hero .lede { max-width: 44rem; }

.transform {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: stretch;
  margin: 1.75rem 0 0.75rem;
}

@media (min-width: 62rem) {
  .transform { grid-template-columns: 1fr auto 1.15fr; gap: 1rem; align-items: stretch; }
}

.transform-side {
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-raised);
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.transform-side > .grid-scroll,
.transform-side > .records { flex: 1; }

.transform-side > h2 {
  margin: 0;
  border: 0;
  padding: 0.55rem 0.75rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-soft);
  background: var(--bg-sunk);
  border-bottom: 1px solid var(--rule);
  border-radius: 4px 4px 0 0;
}

.transform-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 1.5rem;
  color: var(--ink-faint);
  padding: 0.25rem;
}

.grid-scroll { overflow-x: auto; }
.grid-scroll:focus-visible, .records:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

table.sheet {
  font-family: var(--mono);
  font-size: 0.75rem;
  width: 100%;
  min-width: 26rem;
  border-collapse: collapse;
}
table.sheet th, table.sheet td {
  border: 1px solid var(--rule);
  padding: 0.25rem 0.4rem;
  white-space: nowrap;
}
table.sheet thead th {
  background: var(--bg-sunk);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--ink-soft);
}
table.sheet tbody th {
  background: var(--bg-sunk);
  color: var(--ink-faint);
  font-weight: 400;
  text-align: right;
  font-size: 0.6875rem;
}
table.sheet td.num { text-align: right; }
tr.traced td, tr.traced th { background: color-mix(in srgb, var(--accent) 10%, transparent); }

.records {
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1.7;
  padding: 0.6rem 0.5rem;
  overflow-x: auto;
  background: var(--shell-bg);
  color: var(--shell-ink);
  border-radius: 0 0 4px 4px;
}
.records .ruler {
  color: #8b919c;
  white-space: pre;
  display: block;
  border-bottom: 1px solid #333;
  padding-bottom: 0.2rem;
  margin-bottom: 0.3rem;
}
.records .rec { white-space: pre; display: block; }
.records .tag {
  display: inline-block;
  width: 2.5em;
  font-weight: 700;
}
.records .tag-ra { color: var(--rec-ra); }
.records .tag-re { color: var(--rec-re); }
.records .tag-rw { color: var(--rec-rw); }
.records .tag-rs { color: var(--rec-rs); }
.records .tag-rt { color: var(--rec-rt); }
.records .tag-rf { color: var(--rec-rf); }
.records .rec.traced { background: rgba(138, 180, 248, 0.14); }
.records mark {
  background: rgba(138, 180, 248, 0.3);
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
}

.caption {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  max-width: 44rem;
  margin: 0.5rem 0 0;
}

/* ---------- key/legend ---------- */

.record-key {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 0;
  margin: 0.75rem 0 1rem;
  font-size: 0.8125rem;
  max-width: none;
}
.record-key li { margin: 0; }
.record-key b { font-family: var(--mono); }

/* ---------- screenshot figures ---------- */

figure {
  margin: 1.5rem 0;
  max-width: 100%;
}
figure video,
figure img {
  max-width: 100%;
  height: auto;
  display: block;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-raised);
}
figcaption {
  font-size: 0.8125rem;
  color: var(--ink-faint);
  margin-top: 0.5rem;
  max-width: 44rem;
}

/* ---------- numbered question blocks ---------- */

.questions { counter-reset: q; margin: 1rem 0 0; }
.question {
  border-top: 1px solid var(--rule);
  padding: 1.25rem 0 0.5rem;
}
.question > h3 {
  counter-increment: q;
  margin: 0 0 0.5rem;
  font-size: 1.1875rem;
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
}
.question > h3::before {
  content: counter(q);
  font-family: var(--mono);
  color: var(--ink-faint);
  font-size: 0.9rem;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  padding: 0 0.4em;
  flex: none;
}

.facts {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
  display: grid;
  gap: 0.5rem;
  max-width: 44rem;
}
.facts li {
  margin: 0;
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-soft);
}
.facts li::before {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: 0.65em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--accent);
  border-radius: 1px;
}

/* ---------- price band ---------- */

.prices {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin: 1.25rem 0;
  max-width: none;
}
@media (min-width: 46rem) {
  .prices { grid-template-columns: repeat(3, 1fr); }
}
.price {
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 1rem;
  background: var(--bg-raised);
}
.price h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.price .amount {
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 700;
  display: block;
  margin: 0 0 0.5rem;
}
.price p { font-size: 0.9375rem; color: var(--ink-soft); margin: 0 0 0.5rem; max-width: none; }
.price ul { font-size: 0.9375rem; color: var(--ink-soft); max-width: none; margin-bottom: 0; }

/* ---------- call to action ---------- */

.cta {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.6rem 1.1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
}
.cta:hover { text-decoration: underline; }
.cta-note { font-size: 0.875rem; color: var(--ink-faint); margin-top: 0.5rem; }

/* A primary and a secondary action side by side, wrapping on a phone. */
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.9rem; max-width: none; margin: 1.5rem 0 0.25rem; }
.cta-quiet {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: calc(0.6rem - 1px) calc(1.1rem - 1px);
}

/* ---------- header download button ----------
 * In the nav row on a wide screen, pushed to the right edge. On a phone it sits
 * on the wordmark's line and the links wrap underneath, so the button is in the
 * first screen whatever the page. */
.site-header ul { order: 2; }
.site-header a.nav-cta {
  order: 3;
  margin-left: auto;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}
.site-header a.nav-cta:hover { color: var(--accent-ink); }
@media (max-width: 760px) {
  .site-header nav { align-items: center; }
  .site-header a.nav-cta { order: 1; }
  .site-header ul { order: 3; flex-basis: 100%; }
}

/* ---------- agency picker ----------
 * Three doors, one per build. Each card is a single link to that agency's page,
 * and each carries one checkable detail so it reads as a fact, not a slogan. */
.agencies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 0.75rem;
  margin: 1.5rem 0 0;
  max-width: 52rem;
}
.agency {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: var(--bg-sunk);
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.agency:hover { border-color: var(--accent); }
.agency:hover .agency-name { text-decoration: underline; }
.agency-name { font-family: var(--mono); font-weight: 700; font-size: 1.25rem; color: var(--accent); }
.agency-what { font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.45; }
.agency-detail { font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-faint); margin-top: auto; padding-top: 0.35rem; }

/* ---------- state picker ----------
 * Every state with a filing page, as a plain link grid. Auto-fill columns so
 * it reads as a list on a phone and a compact grid on a wide screen. */
.state-picker ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.35rem 1rem;
  max-width: 52rem;
}
.state-picker a { display: block; padding: 0.3rem 0; }
.state-picker .sp-tag { display: block; margin-top: 0.1rem; }
.sp-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.05rem 0.4rem;
  border-radius: 0.25rem;
  border: 1px solid currentColor;
  text-decoration: none;
  width: fit-content;
}
.sp-tag.sp-ready { color: #1e6b34; background: #e8f4ec; }
.sp-tag.sp-federal { color: #1f4e79; background: #e8f0f8; }
.sp-tag.sp-progress { color: #555d66; background: transparent; font-weight: 400; }
.state-legend { list-style: none; padding: 0; margin: 0.75rem 0 0; font-size: 0.9rem; }
.state-legend li { margin: 0.25rem 0; }
h2 .sp-tag { vertical-align: middle; margin-left: 0.4rem; }

/* ---------- answers index ---------- */

.answer-list { list-style: none; padding: 0; max-width: 44rem; }
.answer-list li { margin: 0 0 0.9rem; }
.answer-list a { font-weight: 600; }
.answer-desc { display: block; color: var(--ink-soft); font-size: 0.9375rem; }

/* ---------- the answers section at the foot of the landing page ----------
 *
 * Three columns of the three groups the answers index already uses, so the whole
 * content programme is visible at the bottom of the page rather than behind one
 * nav link. Each entry keeps its description: a column of bare titles at this size
 * is a link farm, and the reader it is for has just decided not to buy yet and
 * wants to understand RITA.
 *
 * The grid is auto-fit rather than a fixed three, so it becomes two columns and
 * then one as the width goes, without a breakpoint per layout. */
.answers-digest {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 0 2.5rem;
  margin: 1.5rem 0 2rem;
  max-width: none;
}
.digest-group { min-width: 0; border-top: 1px solid var(--rule); }
.digest-group summary {
  cursor: pointer;
  padding: 0.85rem 0.25rem;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
/* The default marker is inconsistent across browsers and disappears entirely
 * when summary is a flex container, which leaves a heading that happens to be
 * clickable and gives no sign of it. Draw our own. */
.digest-group summary::-webkit-details-marker { display: none; }
.digest-group summary { list-style: none; }
.digest-group summary::before {
  content: "";
  flex: none;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid var(--ink-soft);
  border-bottom: 2px solid var(--ink-soft);
  transform: rotate(-45deg) translate(-0.1rem, -0.1rem);
  transition: transform 120ms ease;
}
.digest-group[open] summary::before {
  transform: rotate(45deg) translate(-0.05rem, -0.05rem);
}
.digest-group summary .digest-title { flex: 1 1 auto; }
.digest-group summary:hover .digest-title { text-decoration: underline; }
.digest-group summary:focus-visible { outline: 2px solid var(--focus, currentColor); outline-offset: 2px; }
.digest-count {
  font-family: var(--mono, ui-monospace, monospace);
  font-size: 0.8125rem;
  color: var(--ink-soft);
}
.digest-list { max-width: none; margin: 0 0 1rem 0; padding-left: 1.1rem; }
.digest-list li { margin-bottom: 0.4rem; }
.digest-list a { font-size: 0.9375rem; }

.dateline { font-size: 0.8125rem; color: var(--ink-faint); margin-top: 2.5rem; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--rule);
  background: var(--bg-sunk);
  padding: 1.5rem var(--gutter) 2.5rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
footer > * { max-width: var(--page); margin-left: auto; margin-right: auto; }
.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  padding: 0;
  margin: 0 auto 1rem;
}
.footer-links li { margin: 0; }
.legal-entity, .build-note { max-width: 46rem; margin: 0 auto 0.6rem; }
.build-note { color: var(--ink-faint); font-size: 0.8125rem; }

/* ---------- print ---------- */

@media print {
  .site-header, .skip-link { display: none; }
  body { color: #000; background: #fff; }
}

/* Visually hidden, still announced. Used for table row headers whose visible
   content is a spreadsheet row number. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}


/* Hero visual, chosen by width.
 *
 * The recording is 1280x720 of dense validation text. At 390px that is a 3.3x
 * downscale and the messages are unreadable, so below the breakpoint the drawn
 * transformation takes over: it is HTML, it reflows, and it stays legible.
 * One breakpoint, two assets, each used where it actually works. */
[data-narrow-only] { display: none; }

@media (max-width: 760px) {
  [data-wide-only]   { display: none; }
  [data-narrow-only] { display: block; }
}


/* The converter's own chrome: a teal masthead over a hairline rule, and the
 * wordmark in the same teal. Taken from src/converters/*.html, where #1a5f7a is
 * the heading, the active tab and the rule under the title. Matching it is the
 * point: the page and the download should look like one product. */
h1 { color: var(--accent); }
h1 { border-bottom: 2px solid var(--accent); padding-bottom: 0.4rem; }
.page-landing h1 { border-bottom: none; padding-bottom: 0; }
.brand, a.brand { color: var(--accent); }

/* A single endorsement. Set as a quotation, not a testimonial card: no stars,
 * no photograph, no pull-quote marks. The audience is accountants and the claim
 * is specific, so it carries itself. */
.endorsement {
  margin: 2.5rem 0;
  padding: 1.5rem 1.75rem;
  background: var(--bg-sunk);
  border-left: 3px solid var(--accent);
}
.endorsement blockquote { margin: 0; }
.endorsement blockquote p {
  margin: 0;
  max-width: var(--measure);
  font-size: 1.0625rem;
  line-height: 1.65;
}
.endorsement figcaption { margin-top: 0.9rem; }
.endorsement-by { display: block; font-weight: 600; font-size: 0.9375rem; }
.endorsement-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--ink-soft);
}

/* ---------- /buy checkout form ---------- */

.buy { max-width: 34rem; margin: 1.5rem 0; }
.buy fieldset { border: 1px solid var(--rule); border-radius: 4px; padding: 0.75rem 1rem; margin: 0 0 1rem; }
.buy legend { font-weight: 600; padding: 0 0.25rem; }
.buy fieldset label { display: block; margin: 0.35rem 0; }
.buy label[for] { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.buy input[type="text"] {
  font-family: var(--mono);
  font-size: 1.125rem;
  padding: 0.45rem 0.6rem;
  width: 100%;
  max-width: 14rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-raised);
  color: inherit;
}
#buy-billing input, #buy-billing select {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.45rem 0.6rem;
  width: 100%;
  max-width: 28rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-raised);
  color: inherit;
  margin-bottom: 0.75rem;
}
#buy-billing label[for] { margin-top: 0.25rem; }
#buy-billing #buy-zip { max-width: 10rem; }
.buy-optional { font-weight: 400; color: var(--ink-soft); }
.buy-help { font-size: 0.875rem; color: var(--ink-soft); margin: 0.35rem 0 1rem; }
.buy-terms { display: block; margin: 0 0 1rem; }
.buy-error { color: #b42318; font-weight: 600; min-height: 1.25rem; margin: 0 0 0.75rem; }
.buy button.cta { border: 0; cursor: pointer; font: inherit; font-weight: 600; }
.buy button.cta:disabled { opacity: 0.5; cursor: not-allowed; }
.buy-closed { border-left: 4px solid var(--accent); padding: 0.5rem 0.9rem; background: var(--bg-raised); }
.buy-done { border: 1px solid var(--rule); border-radius: 4px; padding: 0.5rem 1rem; margin: 1.5rem 0; }

/* Release-notice signup (site/lib/notify-form.mjs) */
.notify-form { max-width: 34rem; margin: 1rem 0 1.5rem; }
.notify-form label[for] { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.notify-form input[type="email"] {
  font-size: 1rem;
  padding: 0.45rem 0.6rem;
  width: 100%;
  max-width: 22rem;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-raised);
  color: inherit;
}
.notify-consent { display: block; font-size: 0.875rem; color: var(--ink-soft); margin: 0.6rem 0 0.8rem; }
.notify-form button { font: inherit; font-weight: 600; padding: 0.45rem 1rem; border: 0; border-radius: 4px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.notify-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Support request form (site/lib/support-form.mjs) */
.support-form { max-width: 34rem; margin: 1rem 0 1.5rem; }
.support-form label[for] { display: block; font-weight: 600; margin: 0.9rem 0 0.25rem; }
.support-form input[type="text"], .support-form input[type="email"], .support-form select, .support-form textarea {
  font: inherit;
  padding: 0.45rem 0.6rem;
  width: 100%;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: var(--bg-raised);
  color: inherit;
}
.support-req, .support-hint, .support-note { color: var(--ink-soft); font-size: 0.875rem; font-weight: normal; }
.support-hint { margin: 0.25rem 0 0; }
.support-confirm { display: block; font-size: 0.9rem; margin: 1rem 0 0.8rem; }
.support-form button { font: inherit; font-weight: 600; padding: 0.45rem 1rem; border: 0; border-radius: 4px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
.support-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Ohio rates page (site/lib/ohio-rates.mjs) */
table.rates { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
table.rates th, table.rates td { text-align: left; padding: 0.3rem 0.5rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
table.rates .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.rates thead th { position: sticky; top: 0; background: var(--bg-raised); }
.rates-filter-row label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.rates-filter-row input { font-size: 1rem; padding: 0.45rem 0.6rem; width: 100%; max-width: 24rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg-raised); color: inherit; }
.rates-flag { color: var(--ink-soft); }

/* ---------- local tax report pages ---------- */
.report-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0.75rem 1.25rem; }
.report-controls .rates-filter-row { margin: 0; flex: 1 1 18rem; }
.report-status { color: var(--ink-soft); font-size: 0.875rem; min-height: 1.2em; margin: 0.25rem 0 0; }
.print-button, .sort-button { font: inherit; cursor: pointer; }
.print-button { padding: 0.45rem 0.9rem; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg-raised); color: inherit; }
.sort-button { border: 0; padding: 0; background: none; color: inherit; font-weight: 600; text-align: inherit; }
.sort-button::after { content: " \2195"; color: var(--ink-faint); font-weight: 400; }
th[aria-sort="ascending"] .sort-button::after { content: " \2191"; color: inherit; }
th[aria-sort="descending"] .sort-button::after { content: " \2193"; color: inherit; }
.address-lookup { border: 1px solid var(--rule); border-radius: 6px; padding: 0.9rem 1.1rem; margin: 1.25rem 0; background: var(--bg-raised); }
.address-lookup h2 { margin-top: 0; }
.lookup-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.6rem 0.9rem; align-items: end; }
.lookup-form label { display: block; font-weight: 600; margin-bottom: 0.2rem; }
.lookup-form input { font-size: 1rem; padding: 0.45rem 0.6rem; width: 100%; border: 1px solid var(--rule); border-radius: 4px; background: var(--bg); color: inherit; box-sizing: border-box; }
.lookup-form .lookup-street { grid-column: 1 / -1; }
.lookup-form .lookup-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lookup-form button { font: inherit; padding: 0.5rem 1rem; cursor: pointer; }
.report-meta { color: var(--ink-soft); font-size: 0.875rem; }
.local-agencies .agency { border-top: 1px solid var(--rule); padding-top: 0.75rem; margin-top: 1.25rem; }
.local-agencies .agency h3 { margin-top: 0; }
.agency-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1rem; margin: 0.75rem 0; }
.agency-facts dt { font-weight: 600; }
.agency-facts dd { margin: 0; overflow-wrap: anywhere; }
.agency-converter { font-weight: 600; }
@media (max-width: 34rem) {
  .agency-facts { grid-template-columns: 1fr; }
  .agency-facts dd { margin-bottom: 0.4rem; }
}

@media print {
  .report-controls, .address-lookup form, .print-button, footer, nav, .cta-row, .nav-cta { display: none; }
  .table-scroll { overflow: visible; }
  table.rates { font-size: 8.5pt; }
  table.rates thead th { position: static; }
  table.rates tr { break-inside: avoid; }
  .local-agencies .agency { break-inside: avoid; }
  .agency-index { display: none; }
  .sort-button::after { content: ""; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 7.5pt; word-break: break-all; }
}

/* ---------- download picker (site/lib/download-picker.mjs) ----------
 * Grouped radio choices and one Download button that follows the choice. */
.download-picker { max-width: 52rem; margin: 1.25rem 0 1.5rem; }
.download-picker fieldset { border: 1px solid var(--rule-strong); border-radius: 4px; padding: 0.75rem 1rem 1rem; margin: 0; min-width: 0; }
.download-picker legend { font-weight: 700; padding: 0 0.35rem; }
.picker-group { margin-top: 0.75rem; }
.picker-group-name { margin: 0 0 0.35rem; font-family: var(--mono); font-size: 0.8125rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; }
.picker-option { display: grid; grid-template-columns: auto 1fr; column-gap: 0.6rem; align-items: baseline; padding: 0.45rem 0.6rem; border-radius: 4px; cursor: pointer; }
.picker-option:hover { background: var(--bg-sunk); }
.picker-option input { margin: 0; width: 1.1rem; height: 1.1rem; align-self: center; }
.picker-label { font-weight: 600; }
.picker-what { grid-column: 2; font-size: 0.9375rem; color: var(--ink-soft); line-height: 1.45; }
.picker-option:has(input:checked) { background: var(--bg-sunk); outline: 1px solid var(--accent); }
.picker-go { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 1rem 0 0; }
.picker-size { font-size: 0.875rem; color: var(--ink-faint); }

/* Checklist places: one bullet per agency, city or JEDD (year-end.mjs placeItem). */
ul.places { padding-left: 1.1rem; }
ul.places > li.place { margin: 0.7rem 0; }
.place-name { font-size: 1.02em; }
.place-also { color: #555d66; }
ul.place-detail { margin: 0.25rem 0 0; padding-left: 1.1rem; list-style: none; }
ul.place-detail li { margin: 0.12rem 0; }
.place-k { font-weight: 600; }
@media (prefers-color-scheme: dark) {
  .place-also { color: #a9b1ba; }
}
