.home-zip-section,
#zip-directory.rr-section {
  --home-zip-bg: var(--surface, var(--color-surface, #f7f9fc));
  --home-zip-border: var(--border, var(--color-border, #dbe2ea));
  --home-zip-card: var(--card, var(--color-card, #ffffff));
  --home-zip-text: var(--foreground, var(--color-ink, #102033));
  --home-zip-muted: var(--muted-foreground, var(--color-muted, #627386));
  --home-zip-brand: var(--brand, var(--color-brand, #0f466a));
  --home-zip-accent: var(--accent-cta, var(--color-accent, #f7901e));
  --home-zip-card-shadow: var(--shadow-card, 0 8px 24px -14px rgba(15, 35, 55, .26));
  --home-zip-elevated-shadow: var(--shadow-elegant, 0 20px 54px -24px rgba(15, 35, 55, .38));

  border-block: 1px solid var(--home-zip-border);
  background: var(--home-zip-bg);
  color: var(--home-zip-text);
  padding: clamp(4rem, 8vw, 7rem) 1rem;
}

.home-zip-shell,
#zip-directory .rr-shell {
  max-width: 80rem;
  margin-inline: auto;
}

.home-zip-head,
#zip-directory .rr-section__head {
  max-width: 52rem;
  margin-inline: auto;
  text-align: center;
}

.home-zip-eyebrow,
#zip-directory .rr-eyebrow {
  color: var(--home-zip-brand);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-zip-title,
#zip-directory .rr-title {
  margin-top: .75rem;
  color: var(--home-zip-text);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

.home-zip-lede,
#zip-directory .rr-lede {
  margin-top: 1rem;
  color: var(--home-zip-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.home-zip-lede a,
#zip-directory .rr-lede a {
  color: var(--home-zip-brand);
  font-weight: 700;
}

.home-zip-subhead,
#zip-directory h3 {
  margin-top: 2rem;
  color: var(--home-zip-text);
  font-size: 1rem;
  font-weight: 800;
}

.home-zip-featured,
#zip-directory .loc-zip-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: .75rem;
  margin-top: 1rem;
}

.home-zip-link,
#zip-directory .loc-zip-pill {
  display: flex;
  min-height: 3.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--home-zip-border);
  border-radius: .5rem;
  background: var(--home-zip-card);
  color: var(--home-zip-text);
  padding: .8rem 1rem;
  text-decoration: none;
  box-shadow: var(--home-zip-card-shadow);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.home-zip-link:hover,
.home-zip-link:focus-visible,
#zip-directory .loc-zip-pill:hover,
#zip-directory .loc-zip-pill:focus-visible {
  border-color: var(--home-zip-accent);
  box-shadow: var(--home-zip-elevated-shadow);
  transform: translateY(-1px);
  outline: none;
}

.home-zip-link[aria-current="page"],
#zip-directory .loc-zip-pill[aria-current="page"] {
  border-color: var(--home-zip-accent);
}

.home-zip-link strong,
#zip-directory .loc-zip-pill strong {
  white-space: nowrap;
  font-size: .98rem;
}

.home-zip-link span,
#zip-directory .loc-zip-pill span {
  color: var(--home-zip-muted);
  font-size: .875rem;
  font-weight: 500;
  text-align: right;
}

.home-zip-all,
#zip-directory details {
  margin-top: 2rem;
  border-top: 1px solid var(--home-zip-border);
  padding-top: 1.25rem;
}

.home-zip-all summary,
#zip-directory summary {
  cursor: pointer;
  color: var(--home-zip-text) !important;
  font-weight: 800 !important;
}

.home-zip-grid,
#zip-directory .loc-zip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(5.25rem, 1fr));
  gap: .55rem;
  margin-top: 1rem;
}

.home-zip-link--compact,
#zip-directory .loc-zip-grid .loc-zip-pill {
  min-height: 2.65rem;
  justify-content: center;
  padding: .6rem .7rem;
  text-align: center;
  font-weight: 800;
}

.service-area-lead-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr) auto;
  gap: .5rem;
}

.service-area-lead-input,
.service-area-lead-button {
  min-width: 0;
}

.service-area-lead-button {
  min-width: 6.25rem;
}

@media (max-width: 640px) {
  .home-zip-section,
  #zip-directory.rr-section {
    padding-inline: 1rem;
  }

  .home-zip-link,
  #zip-directory .loc-zip-pill {
    align-items: flex-start;
    flex-direction: column;
    gap: .25rem;
  }

  .home-zip-link span,
  #zip-directory .loc-zip-pill span {
    text-align: left;
  }

  .home-zip-link--compact,
  #zip-directory .loc-zip-grid .loc-zip-pill {
    align-items: center;
  }

  .service-area-lead-form {
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .service-area-lead-button {
    width: 100%;
  }
}
