:root {
  --ink: #1a2330;
  --muted: #5a6573;
  --line: #d5d0c6;
  --paper: #f6f2ea;
  --card: #fffdf8;
  --navy: #143047;
  --navy-2: #1c4460;
  --gold: #b0892d;
  --gold-soft: #f3e6c4;
  --teal: #1f6b63;
  --teal-soft: #e4f1ee;
  --alert: #8b1e1e;
  --alert-bg: #f8e8e6;
  --warn: #7a4b12;
  --warn-bg: #f7edd8;
  --ok: #1f6b63;
  --shadow: 0 1px 0 rgba(20, 48, 71, 0.06);
  --radius: 10px;
  --max: 72rem;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
}
a { color: var(--navy-2); }
a:hover { color: var(--teal); }
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1rem;
  z-index: 20;
}
.skip:focus { left: 0.5rem; top: 0.5rem; }

.top {
  background: var(--navy);
  color: #eef3f6;
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 3px solid var(--gold);
}
.muted { color: var(--muted); font-size: 0.8rem; }
.top-inner, .wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.1rem;
}
.top-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 3.75rem;
  flex-wrap: wrap;
  padding-top: 0.55rem;
  padding-bottom: 0.55rem;
}
.brand {
  color: inherit;
  text-decoration: none;
  min-width: 11rem;
}
.brand strong { display: block; font: 600 1.05rem/1.2 var(--serif); letter-spacing: 0.01em; }
.brand span { display: block; font-size: 0.72rem; color: #c5d3de; }
nav {
  display: flex;
  gap: 0.15rem;
  flex-wrap: wrap;
}
nav a {
  color: #d7e2ea;
  text-decoration: none;
  padding: 0.55rem 0.7rem;
  border-radius: 6px;
  font-size: 0.9rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
nav a[aria-current="page"], nav a:hover { background: var(--navy-2); color: #fff; }

.search-wrap { flex: 1; min-width: 14rem; }
.search-wrap label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.search-wrap input {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0.55rem 0.85rem;
  font: inherit;
  background: #0f2436;
  color: #fff;
  outline: 2px solid transparent;
}
.search-wrap input::placeholder { color: #9bb0c0; }
.search-wrap input:focus { outline-color: var(--gold); background: #0b1c2b; }
.results {
  position: absolute;
  top: 100%;
  right: 1.1rem;
  left: 1.1rem;
  max-width: calc(var(--max) - 2.2rem);
  margin: 0 auto;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(20, 48, 71, 0.18);
  display: none;
  max-height: min(70vh, 28rem);
  overflow: auto;
  z-index: 11;
}
.results.open { display: block; }
.results a {
  display: block;
  padding: 0.75rem 0.9rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  min-height: 48px;
}
.results a:hover, .results a:focus { background: var(--teal-soft); }
.results .k {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.results .empty { padding: 0.9rem; color: var(--muted); }

main { padding: 1.4rem 0 3rem; }
.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin: 0 0 0.35rem;
}
h1 {
  font: 700 2rem/1.2 var(--serif);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.lede { color: var(--muted); margin: 0 0 1.25rem; max-width: 46rem; }

.hero-search {
  display: flex;
  gap: 0.5rem;
  margin: 1rem 0 1.5rem;
}
.hero-search input {
  flex: 1;
  min-height: 52px;
  font: 1.1rem/1.3 var(--sans);
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}
.hero-search input:focus { outline: 2px solid var(--teal); border-color: var(--teal); }

.strip, .grid, .cards { display: grid; gap: 0.75rem; }
.strip { grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); }
.grid { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card, .callout, .step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.95rem 1rem;
  box-shadow: var(--shadow);
}
.step { min-height: 7.5rem; }
.step .n {
  display: inline-flex;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.step.preferred { border-color: var(--teal); background: var(--teal-soft); }
.step h3, .card h3 { margin: 0 0 0.3rem; font-size: 1rem; }
.step p, .card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.callout { border-left: 4px solid var(--gold); }
.callout.alert { border-left-color: var(--alert); background: var(--alert-bg); }
.callout.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.callout.ok { border-left-color: var(--teal); background: var(--teal-soft); }
.callout h2, .callout h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.callout p, .callout ul { margin: 0; }
.callout + .callout, section + section { margin-top: 1.25rem; }
section h2 {
  font: 700 1.35rem/1.25 var(--serif);
  margin: 0 0 0.7rem;
}

.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 0.95em; }
.badge {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  background: var(--gold-soft);
  color: #6b4e12;
  margin-left: 0.35rem;
  vertical-align: middle;
}
.badge.stub { background: #eceae4; color: var(--muted); }

.tel {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  background: var(--navy);
  color: #fff !important;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.tel:hover { background: var(--teal); }
.tel.ghost {
  background: var(--card);
  color: var(--navy) !important;
  border: 1px solid var(--line);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td {
  text-align: left;
  padding: 0.8rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th { background: var(--navy); color: #fff; font-weight: 600; font-size: 0.85rem; }
tr:last-child td { border-bottom: 0; }
td.num { white-space: nowrap; }

.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.cat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}
.cat .w { color: var(--muted); font-size: 0.88rem; }
.cat h3 { margin: 0 0 0.35rem; }

.crumb { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.6rem; }
.crumb a { color: inherit; }
.sources { font-size: 0.92rem; }
.sources li { margin: 0.25rem 0; }
ul.plain { padding-left: 1.15rem; }
ul.plain li { margin: 0.25rem 0; }

.specialty-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 8.5rem;
  text-decoration: none;
  color: inherit;
}
.specialty-card.compact { min-height: 7.2rem; }
.specialty-card .k {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.specialty-card:hover { border-color: var(--teal); }
.specialty-card .go { margin-top: auto; color: var(--teal); font-weight: 650; font-size: 0.88rem; }
.specialty-card .door { font-size: 0.88rem; color: var(--alert); margin: 0; }
.sites { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.2rem 0 0; }
.pill {
  display: inline-block;
  font-size: 0.72rem;
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--navy);
}
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.9rem; }
.chip {
  min-height: 40px;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font: inherit;
  cursor: pointer;
}
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.grid.catalog { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.cond-head { font: 700 1.05rem var(--serif); margin: 1rem 0 0.4rem; }

.two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 0.75rem;
}

footer {
  background: var(--navy);
  color: #c5d3de;
  padding: 1.4rem 0 2rem;
  font-size: 0.9rem;
}
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
footer strong { color: #fff; }
footer a { color: #e7eef3; }

.empty-state { color: var(--muted); padding: 1rem 0; }

@media (max-width: 800px) {
  h1 { font-size: 1.65rem; }
  .cat-grid, .two { grid-template-columns: 1fr; }
  .top-inner { align-items: stretch; }
  nav { width: 100%; }
  .search-wrap { width: 100%; flex-basis: 100%; }
  table.stack thead { display: none; }
  table.stack tr { display: block; border-bottom: 1px solid var(--line); padding: 0.4rem 0; }
  table.stack td {
    display: block;
    border: 0;
    padding: 0.25rem 0.85rem;
  }
  table.stack td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
  }
  td.num { white-space: normal; }
}

@media print {
  .top, .search-wrap, .hero-search, footer nav { display: none !important; }
  body { background: #fff; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.8em; color: #444; }
}
