:root {
  --ink: #1c1914;
  --muted: #5a534a;
  --paper: #f3efe6;
  --paper-2: #e7e1d4;
  --card: #fffdf8;
  --line: #d8d0c2;
  --pine: #1b3c34;
  --pine-deep: #102822;
  --cream: #f6f1e6;
  --copper: #9a3f1c;
  --copper-deep: #7c3116;
  --focus: #1d4ed8;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --shadow: 0 16px 40px rgba(28, 25, 20, 0.08);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 10% -10%, rgba(196, 98, 45, 0.08), transparent 55%),
    var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
}
body.dock-pad { padding-bottom: 5.4rem; }
img { max-width: 100%; height: auto; }
a { color: #1a5346; text-underline-offset: 0.16em; }
a:hover { color: var(--copper); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.skip {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: #fff;
  color: var(--ink);
  padding: 0.5rem 0.8rem;
  z-index: 20;
}
.skip:focus { top: 0.75rem; }

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.trust {
  background: var(--pine-deep);
  color: #eadfcb;
  font-size: 0.82rem;
  letter-spacing: 0.01em;
}
.trust p { margin: 0 auto; max-width: var(--max); padding: 0.45rem 1.25rem; }
.trust a { color: #f3d7b0; }

.top {
  background: var(--pine);
  color: var(--cream);
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
}
.top-bar {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--cream);
  text-decoration: none;
  margin-right: auto;
}
.brand:hover { color: #fff; }
.mark {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 0.7rem;
  background: var(--copper);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.brand-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  line-height: 1;
}
.brand-sub {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d9cbb4;
  margin-top: 0.2rem;
}
.nav-toggle {
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(246, 241, 230, 0.35);
  border-radius: 999px;
  min-height: 2.75rem;
  padding: 0 0.95rem;
  font: inherit;
  font-weight: 650;
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.35rem;
  flex-wrap: wrap;
}
.nav a {
  color: var(--cream);
  text-decoration: none;
  padding: 0.4rem 0.55rem;
  border-radius: 999px;
  font-size: 0.95rem;
}
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); }
.nav-drop { display: flex; align-items: center; }
.nav-drop > a { padding-right: 0.15rem; }
.nav-drop summary {
  list-style: none;
  cursor: pointer;
  color: var(--cream);
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
}
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary::after {
  content: "";
  border: solid #eadfcb;
  border-width: 0 2px 2px 0;
  width: 0.4rem;
  height: 0.4rem;
  transform: rotate(45deg) translateY(-2px);
}
.nav-drop details[open] summary { background: rgba(255, 255, 255, 0.1); }
.nav-drop details { position: relative; }
.panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  background: var(--card);
  color: var(--ink);
  min-width: 16rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
  padding: 0.4rem;
  display: grid;
  z-index: 40;
}
.panel a {
  color: var(--ink);
  text-decoration: none;
  border-radius: 0.55rem;
  padding: 0.45rem 0.65rem;
}
.panel a:hover { background: var(--paper-2); color: var(--ink); }

.frame {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1.25rem auto 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 1.5rem;
  align-items: start;
}
.crumbs {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 0.8rem;
}
.crumbs a { color: var(--muted); }
.prose h1, .next h2, .rail h2 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.prose h1 {
  font-size: clamp(2.05rem, 4vw, 3.15rem);
  margin: 0 0 0.7rem;
}
.page-home .prose h1 { max-width: 16ch; font-size: clamp(2.4rem, 5vw, 3.7rem); }
.sf-intro, .prose > h1 + p {
  font-size: 1.15rem;
  line-height: 1.55;
  max-width: 62ch;
}
.prose h2 {
  font-family: var(--serif);
  font-size: 1.65rem;
  line-height: 1.2;
  margin: 2.1rem 0 0.6rem;
  font-weight: 560;
  scroll-margin-top: 5.5rem;
}
.prose h3 { font-size: 1.12rem; margin: 1.3rem 0 0.35rem; }
.prose p, .prose li { max-width: 68ch; }
.prose li { margin: 0.28rem 0; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.aqbz-reviewed {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 0;
}
.aqbz-disclosure, .aqbz-note {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  padding: 0.75rem 0.9rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.8rem; }
.chip {
  background: #efe6d4;
  color: var(--pine);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.tip {
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  background: #fff;
  border-left: 4px solid var(--copper);
  border-radius: 0.6rem;
  box-shadow: 0 1px 0 rgba(28, 25, 20, 0.04);
}
.tip p { margin: 0; }
.table-responsive, .prose table {
  font-variant-numeric: tabular-nums;
}
.table-responsive {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: #fff;
  margin: 0.8rem 0 1rem;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose caption {
  caption-side: bottom;
  text-align: left;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0.55rem 0.75rem 0.7rem;
}
.prose th, .prose td {
  text-align: left;
  padding: 0.62rem 0.75rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.prose th {
  background: var(--pine);
  color: var(--cream);
  font-weight: 650;
  position: sticky;
  top: 0;
}
.prose tbody tr:nth-child(even) { background: #f7f3ea; }
.finder {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  align-items: center;
  margin: 0.4rem 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 650;
}
.finder input {
  font: inherit;
  font-weight: 450;
  min-height: 2.7rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.35rem 0.7rem;
  background: #fff;
  min-width: min(100%, 16rem);
}
.finder-status { font-weight: 450; color: var(--muted); }

.quote-form, .zip-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem 0.65rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: 0.95rem;
  padding: 0.9rem;
  margin: 0.9rem 0;
  box-shadow: 0 8px 24px rgba(28, 25, 20, 0.04);
}
.quote-form label, .zip-form label { grid-column: 1 / -1; font-weight: 700; }
.zip-label { font-weight: 700; }
.quote-form input[type="text"], .zip-form input[type="text"], .quote-form input[type="search"] {
  font: inherit;
  font-size: 1rem;
  min-height: 3rem;
  border: 1px solid #c9bfae;
  border-radius: 0.7rem;
  padding: 0.4rem 0.75rem;
  width: 100%;
  background: #fff;
}
.quote-form button, .zip-form button, .btn {
  font: inherit;
  font-weight: 750;
  min-height: 3rem;
  border: 0;
  border-radius: 0.7rem;
  background: var(--copper);
  color: #fff;
  padding: 0.4rem 1rem;
  cursor: pointer;
}
.quote-form button:hover, .zip-form button:hover, .btn:hover { background: var(--copper-deep); }
.zip-error, .zip-form .hint, .quote-form .hint { grid-column: 1 / -1; margin: 0; }
.zip-error { color: #9f1239; font-size: 0.92rem; }
.zip-form .hint, .quote-form .hint { color: var(--muted); font-size: 0.9rem; font-weight: 450; }
.aqbz-quote > p, .quote-form + p { color: var(--muted); font-size: 0.95rem; }

.aqbz-faq h3 { margin-bottom: 0.2rem; }
.aqbz-faq p { margin-top: 0; }
.aqbz-related a { font-weight: 650; }
.aqbz-sources { font-size: 0.95rem; }

.rail { position: sticky; top: 5.2rem; display: grid; gap: 0.8rem; }
.page-has-form .rail .zip-card { display: none; }
.page-home .crumbs { display: none; }
.rail .zip-form {
  grid-template-columns: 1fr;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  background: transparent;
}
.rail .zip-form button { width: 100%; }
.rail-card, .next {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.95rem 1rem 1rem;
}
.rail h2, .next h2 { font-size: 1.25rem; margin: 0.15rem 0 0.45rem; }
.kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 750;
  color: var(--copper);
}
.toc { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.28rem; }
.toc a { text-decoration: none; font-size: 0.92rem; }
.toc a:hover { text-decoration: underline; }

.next { margin-top: 1.6rem; background: #fffaf3; }
.next p { max-width: 62ch; }

.site-footer {
  background: var(--pine-deep);
  color: #eadfcb;
  padding: 2rem 0 1.2rem;
}
.foot {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr repeat(3, 1fr);
  gap: 1.2rem;
}
.site-footer a { color: #f3e6d2; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer h2 { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 0.45rem; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 0.28rem 0; }
.legal {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1.2rem auto 0;
  border-top: 1px solid rgba(246, 241, 230, 0.15);
  padding-top: 0.8rem;
  font-size: 0.88rem;
  color: #cbbfaa;
}

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 253, 248, 0.96);
  border-top: 1px solid var(--line);
  padding: 0.45rem 0.7rem calc(0.45rem + env(safe-area-inset-bottom));
  z-index: 25;
  display: none;
}
.dock .zip-form {
  margin: 0;
  box-shadow: none;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.45rem;
}
.dock label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.page-404 { max-width: 40rem; margin: 3rem auto; padding: 0 1rem 3rem; }
.page-404 h1 { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); }

.bridge {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
}
.bridge-card {
  width: min(32rem, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--copper);
  border-radius: 1rem;
  padding: 1.2rem 1.2rem 1rem;
  box-shadow: var(--shadow);
}
.bridge-card h1 { font-family: var(--serif); font-size: 1.6rem; margin: 0.2rem 0; }
.spinner {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  border: 2px solid #d9d0c2;
  border-top-color: var(--copper);
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .spinner { animation: none; }
}

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    background: #14332c;
    border-radius: 0.8rem;
    padding: 0.4rem;
  }
  .nav.is-open { display: flex; }
  .nav-drop { flex-direction: column; align-items: stretch; }
  .nav-drop details { position: static; }
  .panel { position: static; box-shadow: none; min-width: 0; }
  .frame { grid-template-columns: 1fr; }
  .rail { position: static; }
  .dock { display: block; }
  .foot { grid-template-columns: 1fr 1fr; }
  .quote-form, .zip-form { grid-template-columns: 1fr; }
  .quote-form button, .zip-form button { width: 100%; }
  .dock .zip-form { grid-template-columns: minmax(0, 1fr) auto; }
  .dock .zip-form button { width: auto; }
  .dock[hidden] { display: none !important; }
}
@media (min-width: 981px) {
  .nav-toggle { display: none; }
}
@media (max-width: 640px) {
  .foot { grid-template-columns: 1fr; }
  .top-bar { padding-inline: 0.85rem; }
}
