:root {
  --navy: #163252;
  --navy-2: #0f2238;
  --navy-3: #1e4066;
  --ink: #1c232b;
  --muted: #5a6570;
  --line: #d3dbe4;
  --line-2: #c3ced9;
  --cream: #f3eee4;
  --cream-2: #e7dfd0;
  --paper: #f7f4ee;
  --gold: #b48434;
  --gold-2: #d4b36a;
  --ok: #215544;
  --ok-bg: #e7f1eb;
  --warn: #7a2e2e;
  --warn-bg: #f6ecec;
  --white: #fff;
  --shadow: 0 1px 0 rgba(22,50,82,0.04), 0 10px 24px rgba(22,50,82,0.06);
  --measure: 42rem;
  --page: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 80% 40% at 50% -10%, rgba(22,50,82,0.06), transparent 55%),
    linear-gradient(180deg, #fbf9f4 0%, var(--paper) 18%);
  line-height: 1.65;
  font-size: 1.0625rem;
  text-rendering: optimizeLegibility;
}
::selection { background: #ead9b0; color: var(--navy-2); }
a { color: var(--navy-3); text-underline-offset: 0.15em; }
a:hover { color: var(--navy); }
.skip { position: absolute; left: -999px; }

.devbar {
  background: #2b2112;
  color: #ead9b0;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-align: center;
  padding: 0.42rem 1rem;
  border-bottom: 1px solid #4a3a1e;
}
.devbar strong { color: #fff; font-weight: 650; }

header.site {
  background:
    linear-gradient(180deg, rgba(212,179,106,0.12), transparent 42%),
    var(--navy);
  color: var(--white);
  border-bottom: 3px solid var(--gold-2);
  box-shadow: 0 10px 28px rgba(9, 20, 34, 0.22);
  position: sticky;
  top: 0;
  z-index: 8;
}
.navwrap {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0.85rem 1.35rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.brand {
  color: #fff;
  text-decoration: none;
  display: flex;
  gap: 0.75rem;
  align-items: center;
}
.brand:hover { color: #fff; }
.brand::before {
  content: "";
  width: 2.45rem;
  height: 2.45rem;
  flex: 0 0 2.45rem;
  border: 2px solid var(--gold-2);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px #163252, inset 0 0 0 4px var(--gold-2);
  background:
    radial-gradient(circle at 50% 54%, transparent 41%, var(--gold-2) 42% 45%, transparent 46%),
    conic-gradient(from 0deg, var(--gold-2) 0 2deg, transparent 2deg 28deg, var(--gold-2) 28deg 30deg, transparent 30deg);
  background-color: #122844;
}
.brand .kicker {
  display: block;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c5d3e4;
}
.brand .name {
  display: block;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 1.18rem;
  letter-spacing: 0.01em;
}
header.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
}
nav a {
  color: #d7e2ee;
  text-decoration: none;
  margin-left: 0.15rem;
  font-size: 0.92rem;
  padding: 0.38rem 0.7rem;
  border-radius: 3px;
}
nav a:hover {
  color: #fff;
  background: rgba(255,255,255,0.08);
}

.tools {
  background: #0c1a2b;
  color: #b8c6d4;
  font-size: 0.84rem;
  border-bottom: 1px solid #1c334c;
}
.tools .inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0.5rem 1.35rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0;
}
.tools a {
  color: #e4edf6;
  text-decoration: none;
  padding: 0.28rem 0.85rem 0.28rem 0;
  margin-right: 0.55rem;
  border-right: 1px solid #2a425c;
  line-height: 1.2;
}
.tools a:last-child { border-right: 0; }
.tools a:hover { color: #fff; text-decoration: underline; }

.hero {
  position: relative;
  color: #fff;
  padding: 3.4rem 1.35rem 3.6rem;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(212,179,106,0.18), transparent 22%),
    linear-gradient(155deg, var(--navy) 0%, var(--navy-2) 78%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(232,220,190,0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(232,220,190,0.35) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 86%);
}
.hero-inner, .wrap {
  max-width: var(--page);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.22rem 0.62rem;
  border: 1px solid rgba(212,179,106,0.45);
  color: #ead9b0;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(10,20,34,0.28);
}
.hero h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  line-height: 1.22;
  margin: 0 0 0.9rem;
  max-width: 22ch;
}
.hero p {
  max-width: 40rem;
  color: #d5e0eb;
  margin: 0 0 1.15rem;
  font-size: 1.08rem;
}
.hero .banner {
  max-width: 42rem;
  background: rgba(247,244,238,0.96);
}

.banner {
  background: var(--cream);
  border-left: 4px solid var(--gold);
  padding: 0.9rem 1.05rem;
  margin: 1.2rem 0 0;
  color: var(--ink);
  font-size: 0.98rem;
  box-shadow: inset 0 0 0 1px rgba(180,132,52,0.14);
}
.btns { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.35rem; }
.btn {
  display: inline-block;
  padding: 0.72rem 1.12rem;
  border-radius: 2px;
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  border: 1px solid transparent;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, filter 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn-gold {
  background: var(--gold);
  color: #1a1408;
  box-shadow: 0 1px 0 rgba(0,0,0,0.12);
}
.btn-gold:hover { filter: brightness(1.07); color: #1a1408; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(196,214,230,0.45);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }
.btn-navy {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 1px 0 rgba(0,0,0,0.14);
}
.btn-navy:hover { background: var(--navy-3); color: #fff; }
.btn-line {
  background: #fff;
  color: var(--navy);
  border-color: var(--line-2);
}
.btn-line:hover { border-color: var(--navy); color: var(--navy); }
.btn[aria-disabled="true"], .btn.disabled {
  opacity: 0.55;
  pointer-events: none;
}

main.wrap { padding: 2.35rem 1.35rem 4rem; }
main.wrap h1 {
  font-family: "Libre Baskerville", Georgia, serif;
  color: var(--navy);
  font-weight: 400;
  line-height: 1.22;
  max-width: 22ch;
  margin: 0 0 0.7rem;
  font-size: clamp(1.7rem, 3vw, 2.25rem);
}
h2 {
  font-family: "Libre Baskerville", Georgia, serif;
  font-weight: 400;
  color: var(--navy);
  font-size: 1.48rem;
  margin-top: 2.1rem;
  margin-bottom: 0.7rem;
  padding-top: 0.35rem;
  border-top: 1px solid transparent;
}
main.wrap h2 {
  max-width: 36rem;
}
h3 { color: var(--navy); margin-bottom: 0.35rem; font-size: 1.05rem; }
main.wrap > p,
main.wrap > .banner,
main.wrap > .notice,
main.wrap > .okbox { max-width: var(--measure); }
main.wrap ul { max-width: var(--measure); padding-left: 1.2rem; }
main.wrap li { margin: 0.38rem 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold-2);
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; font-family: "Libre Baskerville", Georgia, serif; font-weight: 400; font-size: 1.2rem; }
.muted { color: var(--muted); }

.states {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 0.6rem;
  margin: 1rem 0 2rem;
}
.states a {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  padding: 0.78rem 0.85rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 650;
  box-shadow: var(--shadow);
}
.states a:hover {
  border-color: var(--navy);
  color: var(--navy);
}
.states a span {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.15rem;
}

.notice {
  background: var(--warn-bg);
  border: 1px solid #e3c8c8;
  border-left: 4px solid var(--warn);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}
.okbox {
  background: var(--ok-bg);
  border: 1px solid #c5ddd1;
  border-left: 4px solid var(--ok);
  padding: 1rem 1.15rem;
  margin: 1.25rem 0;
}
.okbox a { font-weight: 600; }

.district {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  padding: 1rem 1.1rem;
  margin: 0.6rem 0;
  box-shadow: var(--shadow);
}
.district small { color: var(--muted); display: block; margin-top: 0.15rem; }

.price {
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: 2.35rem;
  color: var(--navy);
  margin: 0;
}
.price span { font-size: 1rem; color: var(--muted); }

footer.site {
  background: var(--navy-2);
  color: #c5d0dc;
  padding: 1.7rem 1.35rem 0.5rem;
  font-size: 0.88rem;
}
footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  max-width: var(--page);
}
footer.site a { color: #e8eef5; }
.trust {
  max-width: var(--page);
  margin: 0.85rem auto 0;
  padding: 1.15rem 0 1.5rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 0.7rem 1.2rem;
  align-items: flex-start;
  border-top: 1px solid #2a425c;
}
.trust img {
  display: block;
  width: 188px;
  height: auto;
  border-radius: 4px;
}
.trust .note {
  color: #b7c4d1;
  font-size: 0.78rem;
  max-width: 32rem;
  margin: 0;
}

.est {
  display: grid;
  gap: 0.85rem;
  margin: 1.2rem 0;
  max-width: 36rem;
}
.est label {
  display: grid;
  gap: 0.3rem;
  font-weight: 650;
  color: var(--navy);
}
.est label.check {
  font-weight: 400;
  color: var(--ink);
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.5rem;
}
.est input[type="number"] {
  font: inherit;
  padding: 0.58rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  width: 100%;
  max-width: 12rem;
  background: #fff;
}

.layers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  width: 100%;
}
.layers a, .layers span {
  display: inline-block;
  text-decoration: none;
  color: #f4f1ea;
  border: 1px solid #4a5f78;
  background: #1a2d44;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 2px;
}
.layers a:hover { border-color: #f4f1ea; color: #fff; }

.est-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  margin: 1.25rem 0 1.75rem;
}
@media (min-width: 900px) {
  .est-layout { grid-template-columns: 1.15fr 0.85fr; }
  .est-out { position: sticky; top: 5.2rem; }
}
.est-block {
  background: #fff;
  border: 1px solid var(--line);
  padding: 1.05rem 1.15rem 1.2rem;
  margin: 0 0 0.9rem;
  box-shadow: var(--shadow);
}
.est-block h2 { margin: 0 0 0.35rem; font-size: 1.15rem; border: 0; padding: 0; }
.hint { color: var(--muted); font-size: 0.88rem; margin: 0 0 0.7rem; }
.est-row {
  display: grid;
  gap: 0.28rem;
  margin: 0 0 0.7rem;
  font-weight: 650;
  color: var(--navy);
}
.est-row input, .est-row select, .filterbox input {
  font: inherit;
  font-weight: 400;
  color: var(--ink);
  padding: 0.58rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 2px;
  max-width: 16rem;
  width: 100%;
  background: #fff;
}
.est-row input:focus, .est-row select:focus, .filterbox input:focus {
  border-color: var(--navy);
}
.est-form .check {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  margin: 0.45rem 0 0.75rem;
  font-weight: 400;
}
.est-form .check input { margin-top: 0.28rem; accent-color: var(--navy); }
.est-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.4rem 0 0.2rem; }
.est-actions button { cursor: pointer; border: 0; }
.est-out {
  background: var(--cream);
  border: 1px solid var(--cream-2);
  padding: 1.1rem 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}
.est-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.est-table th, .est-table td {
  text-align: left;
  padding: 0.45rem 0.3rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.est-table tr th:nth-child(2),
.est-table tr td:nth-child(2) { text-align: right; white-space: nowrap; }
.est-table td:nth-child(3) { color: var(--muted); font-size: 0.8rem; }
.est-out .price { margin: 0.85rem 0 0.4rem; }
.est-side { font-size: 0.92rem; }

.steps {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
}
.steps li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--line);
  padding: 1rem 1.1rem 1.1rem 3.55rem;
  position: relative;
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0.9rem;
  top: 1.05rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 3px var(--cream);
}
.steps h3 { margin: 0 0 0.25rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 800px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

.crumbs {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0.9rem 1.35rem 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.crumbs a { color: var(--navy); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

.filterbox {
  display: grid;
  gap: 0.3rem;
  max-width: 28rem;
  margin: 0 0 1rem;
  font-weight: 650;
  color: var(--navy);
}
.filterbox input { max-width: none; }

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.85rem 0 1.15rem;
  font-size: 0.88rem;
}
.jump a {
  color: var(--navy);
  text-decoration: none;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0.28rem 0.6rem;
  border-radius: 2px;
}
.jump a:hover { border-color: var(--navy); }

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--gold-2);
  outline-offset: 2px;
}
.skip:focus, .skip:focus-visible {
  left: 0.6rem; top: 0.6rem;
  z-index: 30;
  background: #fff;
  padding: 0.4rem 0.6rem;
}

.card, .district, .states a, .est-block, .est-out, .steps li {
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}
.card:hover, .district:hover, .states a:hover {
  border-color: #9aa8b8;
  box-shadow: 0 12px 26px rgba(22,50,82,0.10);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  nav a { margin-left: 0; font-size: 0.86rem; padding: 0.32rem 0.5rem; }
  .tools a {
    border-right: 0;
    margin-right: 0.15rem;
    padding: 0.28rem 0.55rem 0.28rem 0;
  }
  .district { flex-direction: column; align-items: flex-start; }
  header.site { position: static; }
  .hero { padding: 2.4rem 1.15rem 2.6rem; }
  .brand .name { font-size: 1.05rem; }
}

@media print {
  .devbar, header.site, footer.site, .est-actions, .banner, .btns, .tools { display: none !important; }
  .est-layout { display: block; }
  .est-out { border: 0; background: #fff; box-shadow: none; }
  body { background: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .district, .states a, .est-block, .est-out, .btn, .steps li { transition: none; }
  .card:hover, .district:hover, .states a:hover { transform: none; }
}
