:root {
  color-scheme: light;
  --fax-ink: #17364a;
  --fax-muted: #526979;
  --fax-teal: #087b83;
  --fax-line: #d5e2e7;
  --fax-surface: #ffffff;
  --fax-soft: #f4f8f9;
  --fax-focus: #e2913b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: #f4f7f8;
  color: var(--fax-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}
a { color: #087b83; text-underline-offset: 0.15em; }
a:hover { color: #075e66; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--fax-focus);
  outline-offset: 2px;
}
.fax-header {
  min-height: 68px;
  padding: 12px max(20px, calc((100vw - 1120px) / 2));
  display: flex;
  align-items: center;
  background: #0e6470;
}
.fax-wordmark {
  color: #fff;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-decoration: none;
}
.fax-wordmark img { display: block; width: 72px; height: 72px; object-fit: contain; }
.fax-main { max-width: 1120px; margin: 0 auto; padding: 22px 22px 64px; }
.fax-breadcrumb { margin: 0 0 18px; font-size: 0.9rem; color: var(--fax-muted); }
.fax-breadcrumb ol { display: flex; gap: 0.55rem; list-style: none; margin: 0; padding: 0; }
.fax-breadcrumb li + li::before { content: "›"; margin-right: 0.55rem; color: #7d8e98; }
h1, h2, h3 { color: #15384c; line-height: 1.2; }
h1 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -0.035em; }
h2 { margin: 34px 0 12px; font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
h3 { margin: 21px 0 10px; font-size: 1.13rem; }
p { margin: 0.65rem 0; }
.fax-intro { max-width: 900px; margin-bottom: 22px; }
.fax-byline { color: var(--fax-muted); font-size: 0.92rem; }
.fax-search, .fax-steps, .fax-results, .fax-submission, .fax-faq, .fax-sources {
  margin: 18px 0;
  padding: 22px;
  border: 1px solid var(--fax-line);
  border-radius: 16px;
  background: var(--fax-surface);
  box-shadow: 0 5px 18px rgb(20 51 68 / 5%);
}
.fax-search__title { margin: 0 0 12px; font-size: 1.15rem; font-weight: 700; }
.fax-search__examples { margin: 8px 0 0; color: var(--fax-muted); font-size: 0.92rem; }
.fax-form label { display: block; margin-bottom: 6px; font-weight: 700; }
.fax-search__row { display: flex; gap: 10px; }
.fax-search__row input { flex: 1; min-width: 0; }
input, select, textarea {
  min-height: 46px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #a9bdc7;
  border-radius: 9px;
  background: #fff;
  color: var(--fax-ink);
  font: inherit;
}
textarea { min-height: 105px; resize: vertical; }
button, .fax-button {
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--fax-teal);
  border-radius: 9px;
  background: var(--fax-teal);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
button:hover { background: #075e66; border-color: #075e66; }
.fax-search__row button { flex: 0 0 auto; }
.fax-other-link, .fax-add-cta { display: inline-block; margin-top: 12px; }
.fax-add-cta a, .fax-other-link { font-weight: 650; }
.fax-suggestions {
  max-height: 310px;
  overflow-y: auto;
  margin: 8px 0 0;
  padding: 5px;
  border: 1px solid var(--fax-line);
  border-radius: 10px;
  list-style: none;
  background: #fff;
}
.fax-suggestions[hidden] { display: none; }
.fax-suggestions li { margin: 0; padding: 0; }
.fax-suggestions a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 7px;
  color: var(--fax-ink);
  text-decoration: none;
}
.fax-suggestions a:hover, .fax-suggestions a:focus-visible { background: #e8f4f4; }
.fax-suggestions__empty { padding: 10px 12px !important; color: var(--fax-muted); }
.fax-suggestions__message { margin: 0; padding: 9px 12px; color: var(--fax-muted); font-size: 0.92rem; }
.fax-selected-brand { margin: 0 0 16px; font-size: 1.08rem; }
.fax-form--step { display: grid; grid-template-columns: minmax(140px, 0.7fr) minmax(200px, 2fr) auto; align-items: end; gap: 10px; margin: 12px 0; }
.fax-form--step label { grid-column: 1 / -1; margin-bottom: -6px; }
.fax-form--step select { min-width: 0; }
.fax-zip-filter { grid-column: 1 / -1; }
.fax-form--step:has(.fax-zip-filter) { grid-template-columns: minmax(180px, 0.7fr) minmax(240px, 2fr) auto; }
.fax-form--step:has(.fax-zip-filter) label { grid-column: 1 / -1; }
.fax-error { display: block; margin-top: 4px; color: #a32323; font-size: 0.91rem; }
.fax-results__lead { font-weight: 650; }
.fax-results__count { color: var(--fax-muted); }
.fax-results__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.fax-card { padding: 17px; border: 1px solid var(--fax-line); border-radius: 12px; background: #fff; }
.fax-card p { margin: 5px 0; }
.fax-card__brand { margin: 0; font-size: 1.12rem; }
.fax-card__legal { margin: 0; color: var(--fax-muted); font-size: 0.92rem; }
.fax-number { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0; padding: 12px; border-radius: 9px; background: #edf7f7; }
.fax-number span { display: block; color: var(--fax-muted); font-size: 0.83rem; }
.fax-number strong { font-size: 1.45rem; letter-spacing: 0.01em; }
.fax-number button { min-height: 40px; padding: 6px 12px; }
.fax-source { color: var(--fax-muted); font-size: 0.88rem; }
.fax-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.fax-update-link { display: inline-block; min-height: 44px; padding-top: 10px; font-size: 0.92rem; }
.fax-show-more { display: inline-flex; min-height: 44px; align-items: center; margin-top: 16px; padding: 8px 14px; border: 1px solid var(--fax-teal); border-radius: 8px; font-weight: 700; text-decoration: none; }
.fax-results__add { margin-top: 18px; }
.fax-content { max-width: 900px; }
.fax-content > h2 { margin-top: 40px; }
.fax-table-wrap { overflow-x: auto; margin: 12px 0 22px; border: 1px solid var(--fax-line); border-radius: 10px; background: #fff; }
table { width: 100%; border-collapse: collapse; min-width: 460px; text-align: left; }
caption { padding: 10px 13px; color: var(--fax-ink); font-weight: 700; text-align: left; }
th, td { padding: 10px 13px; border-bottom: 1px solid #e1e9ec; }
thead th { background: #eaf3f4; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
.fax-submission { margin-top: 40px; }
.fax-submission h2, .fax-faq h2, .fax-sources h2 { margin-top: 0; }
.fax-form--submission { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.fax-form__field { min-width: 0; }
.fax-form__field textarea, .fax-form__field input, .fax-form__field select { display: block; }
.fax-form__field--check { grid-column: 1 / -1; }
.fax-form__field--check label { display: flex; align-items: flex-start; gap: 10px; }
.fax-form__field--check input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; }
.fax-form--submission > button { justify-self: start; }
.fax-honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.fax-privacy-note { margin-top: 14px; color: var(--fax-muted); font-size: 0.92rem; }
.fax-success { padding: 12px 14px; border: 1px solid #9bcbb6; border-radius: 8px; background: #effaf4; color: #18593a; }
.fax-faq__item { padding: 12px 0; border-bottom: 1px solid var(--fax-line); }
.fax-faq__item:last-child { border: 0; }
.fax-faq__item h3 { margin-top: 5px; }
.fax-page-footer { padding: 28px max(20px, calc((100vw - 1120px) / 2)); background: #123b4d; color: #eaf3f5; }
.fax-admin-card { margin: 16px 0; padding: 18px; border: 1px solid var(--fax-line); border-radius: 12px; background: #fff; }
.fax-admin-card h2 { margin-top: 0; }
.fax-admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fax-admin-registry { margin: 12px 0; padding: 12px; background: var(--fax-soft); border-radius: 8px; }
.fax-admin-card textarea { margin: 10px 0; }
.fax-admin-actions { display: flex; gap: 10px; }
.fax-admin-actions .fax-reject { background: #fff; color: #a32323; border-color: #a32323; }
.fax-admin-actions .fax-reject:hover { background: #fff4f4; }
.fax-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 700px) {
  .fax-main { padding: 18px 14px 44px; }
  .fax-search, .fax-steps, .fax-results, .fax-submission, .fax-faq, .fax-sources { padding: 16px; border-radius: 12px; }
  .fax-results__grid { grid-template-columns: 1fr; }
  .fax-form--step, .fax-form--step:has(.fax-zip-filter) { grid-template-columns: 1fr; }
  .fax-form--step label, .fax-form--step:has(.fax-zip-filter) label { grid-column: auto; }
  .fax-form--submission, .fax-admin-grid { grid-template-columns: 1fr; }
  .fax-search__row { flex-direction: column; }
  .fax-search__row button { width: 100%; }
  .fax-number { align-items: flex-start; flex-direction: column; }
}
