:root {
  color-scheme: light;
  --ink: #172126;
  --muted: #5d6b72;
  --line: #d9e3e6;
  --paper: #f7faf9;
  --white: #ffffff;
  --teal: #0b7a75;
  --teal-dark: #075854;
  --mint: #dff4ec;
  --amber: #c77920;
  --red: #b74235;
  --blue: #246b96;
  --shadow: 0 24px 70px rgba(18, 41, 51, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.lookup-shell {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #dce9e8;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 250, 249, 0.96) 0%, rgba(247, 250, 249, 0.78) 38%, rgba(247, 250, 249, 0.15) 100%),
    linear-gradient(0deg, rgba(247, 250, 249, 0.96) 0%, rgba(247, 250, 249, 0) 28%);
}

.lookup-content {
  position: relative;
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 92px 24px 84px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  font-size: clamp(4rem, 10vw, 8.5rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.75rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.lede {
  max-width: 660px;
  margin: 24px 0 32px;
  color: #324147;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
}

.zip-form {
  width: min(100%, 680px);
}

.zip-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 800;
}

.zip-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 8px;
  border: 1px solid rgba(7, 88, 84, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.zip-control input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ink);
  background: transparent;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0;
  outline: none;
}

.zip-control input:focus {
  border-color: var(--teal);
  background: #f7fffc;
}

.zip-control button {
  border: 0;
  border-radius: 6px;
  font-weight: 850;
}

.zip-control button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  padding: 0 24px;
  color: var(--white);
  background: var(--teal);
  white-space: nowrap;
}

.zip-control button:hover,
.zip-control button:focus-visible {
  background: var(--teal-dark);
}

.zip-control button:disabled {
  cursor: wait;
  opacity: 0.74;
}

.form-status {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.form-status.error {
  color: var(--red);
}

.results-band,
.context-band {
  padding: 58px 24px;
}

.results-band {
  background: var(--white);
}

.context-band {
  background: #eaf1ef;
}

.section-inner {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.results-header,
.context-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
}

.subtle {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 0.8fr);
  gap: 18px;
  margin-top: 34px;
  align-items: start;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 12px 32px rgba(20, 52, 59, 0.06);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.panel,
.panel-heading {
  padding: 18px;
}

.panel .panel-heading {
  padding: 0;
  margin-bottom: 16px;
}

.count-pill {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--mint);
  font-size: 0.84rem;
  font-weight: 850;
}

.table-scroll {
  max-height: 520px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table-scroll table {
  margin: 0;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  color: var(--muted);
  background: var(--white);
  font-size: 0.8rem;
  text-transform: uppercase;
}

td {
  line-height: 1.38;
}

td small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.health-concerns {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.health-concerns li {
  color: #35474e;
}

.risk {
  display: inline-flex;
  align-items: center;
  min-width: 76px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e9f1f7;
  color: var(--blue);
  font-weight: 850;
  justify-content: center;
}

.risk.high {
  background: #f8e5e1;
  color: var(--red);
}

.risk.medium {
  background: #fbecd8;
  color: var(--amber);
}

.side-stack {
  display: grid;
  gap: 18px;
}

.list-stack {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.list-item {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}

.list-item strong {
  display: block;
  margin-bottom: 4px;
}

.list-item span,
.empty-state p {
  color: var(--muted);
  line-height: 1.45;
}

.empty-state {
  padding: 18px;
  border: 1px dashed #b8c8cc;
  border-radius: var(--radius);
  background: var(--paper);
}

.source-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.source-note p {
  margin: 0 0 8px;
}

.source-note p:last-child {
  margin-bottom: 0;
}

.source-note a {
  color: var(--teal-dark);
  font-weight: 800;
}

.recommended-filters {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.recommended-tab {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(7, 88, 84, 0.22);
  border-bottom-color: var(--white);
  border-radius: 8px 8px 0 0;
  color: var(--teal-dark);
  background: var(--white);
  font-size: 0.86rem;
  font-weight: 850;
}

.recommended-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 0 16px;
}

.affiliate-note,
.filter-disclaimer {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.affiliate-note {
  max-width: 330px;
  text-align: right;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.filter-recommendation {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 18px;
  min-height: 210px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfefe;
}

.filter-recommendation h4 {
  margin: 10px 0 8px;
  font-size: 1.1rem;
  line-height: 1.22;
}

.filter-recommendation p {
  margin: 0;
  color: #35474e;
  line-height: 1.45;
}

.filter-standard {
  display: inline-flex;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.filter-recommendation a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--white);
  background: var(--teal);
  font-weight: 850;
  text-decoration: none;
}

.filter-recommendation a:hover,
.filter-recommendation a:focus-visible {
  background: var(--teal-dark);
}

.filter-disclaimer {
  margin-top: 12px;
}

.context-grid {
  align-items: start;
}

.context-grid p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

@media (max-width: 860px) {
  .lookup-shell {
    min-height: 92vh;
  }

  .hero-scrim {
    background:
      linear-gradient(0deg, rgba(247, 250, 249, 0.98) 0%, rgba(247, 250, 249, 0.82) 58%, rgba(247, 250, 249, 0.32) 100%),
      linear-gradient(90deg, rgba(247, 250, 249, 0.92), rgba(247, 250, 249, 0.35));
  }

  .lookup-content {
    padding-top: 56px;
    padding-bottom: 54px;
  }

  .table-scroll {
    max-height: 430px;
  }

  .zip-control,
  .results-header,
  .content-grid,
  .context-grid,
  .filter-grid {
    grid-template-columns: 1fr;
  }

  .recommended-heading {
    display: grid;
  }

  .affiliate-note {
    max-width: none;
    text-align: left;
  }

  .zip-control button {
    justify-content: center;
    width: 100%;
  }

}

@media (max-width: 520px) {
  h1 {
    font-size: 3.7rem;
  }

  .results-band,
  .context-band {
    padding: 42px 18px;
  }
}
