/* V22 Steven. Shared editorial treatment for the existing static pages. */
:root {
  --editorial-serif: Georgia, "Times New Roman", serif;
  --editorial-aqua: #edf5f6;
  --editorial-gold: #bd9657;
}

.topic-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(20px, 3.3vw, 52px) max(24px, calc((100% - 1280px) / 2));
  color: var(--white);
  background: var(--navy-900);
  border-bottom: 1px solid var(--editorial-gold);
}
.topic-hero > .container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(14px, 2.6vw, 42px) 0;
  align-self: center;
  min-width: 0;
}
.topic-hero h1 {
  font: 400 clamp(2.15rem, 4.1vw, 4.15rem)/1.04 var(--editorial-serif);
  letter-spacing: -.035em;
  margin: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.topic-hero h1::before {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin: 0 0 20px;
  background: var(--editorial-gold);
}
.topic-hero .crumbs {
  color: #c0dce6;
  font-size: .76rem;
  letter-spacing: .06em;
  margin-bottom: 20px;
}
.topic-hero p {
  font-size: clamp(.98rem, 1.25vw, 1.12rem);
  color: #e0ebf0;
  max-width: 56ch;
  margin: 18px 0 0;
}
.topic-hero .hero-ctas {
  margin: 24px 0 0;
  gap: 10px;
  justify-content: flex-start;
}
.topic-hero .btn {
  padding: 10px 15px;
  font-size: .86rem;
  text-align: center;
  white-space: normal;
}
.topic-hero .btn-navy-outline {
  border-color: #b8d3df;
  color: var(--white);
}
.topic-media {
  position: relative;
  min-width: 0;
  min-height: 300px;
  overflow: hidden;
  border-radius: 6px;
  background: #17354a;
}
.topic-media img {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-intro .hero-content-inner {
  text-align: left;
  display: block;
}
.home-intro .hero-eyebrow { margin-bottom: 17px; }
.home-intro .hero-trust {
  justify-content: flex-start;
  margin-top: 22px;
  gap: 10px 16px;
}
.hero-media-section {
  background: var(--editorial-aqua);
  padding: clamp(24px, 4vw, 56px) 0;
}
.hero-media-section .bubbles { display: none; }
.hero-media-clip {
  aspect-ratio: 8 / 3;
  height: auto;
  box-shadow: none;
  border: 1px solid #d7e4e8;
  border-radius: 6px;
}
.hero-media-clip img { object-fit: contain; }
.hero-media-clip:hover { transform: none; box-shadow: none; }
.hero-media-frame {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.hero-media-frame .hero-media-clip { grid-column: 1 / -1; }
.hero-media-frame .float-card {
  position: static;
  width: 100%;
  max-width: none;
  margin: 0;
  animation: none;
  box-shadow: none;
  border: 1px solid #d7e4e8;
}

main > .section-pad { padding-block: clamp(40px, 5vw, 76px); }
main > .bg-light { background: var(--editorial-aqua); }
main > .section-pad > .container > .section-head {
  margin: 0 0 clamp(22px, 3.4vw, 42px);
  text-align: left;
  max-width: 760px;
}
main h2 {
  font-family: var(--editorial-serif);
  font-weight: 400;
  letter-spacing: -.026em;
  text-wrap: balance;
}
main .section-head .kicker::before { background: var(--editorial-gold); }
main .section-head p { max-width: 66ch; }
main .bg-navy { background: var(--navy-900); background-attachment: scroll; }
main .bubbles-field { display: none; }
main .bg-navy .product-card,
main .bg-navy .form-card { box-shadow: 0 6px 18px #071b2e40; }
main .bg-navy .product-card:hover { box-shadow: 0 10px 24px #071b2e55; }
main .split { gap: clamp(24px, 5vw, 72px); }
main .split-media img { border-radius: 6px; }

@media (max-width: 760px) {
  .topic-hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 22px 20px 28px;
  }
  .topic-hero > .container { padding: 0; }
  .topic-media {
    grid-row: 1;
    min-height: 0;
    aspect-ratio: 16 / 8.5;
  }
  .topic-hero .crumbs { margin-bottom: 12px; }
  .topic-hero h1::before { margin-bottom: 12px; }
  .topic-hero p { margin-top: 12px; }
  .topic-hero .hero-ctas { margin-top: 18px; }
  .hero-media-frame { grid-template-columns: 1fr; }
}
.home-intro .hero-content-inner .hero-lead { margin-inline: 0; }
.topic-hero .badge-row { gap: 8px; }
.topic-hero .badge-pill { padding: 8px 12px; }
.faq-jump-section { background: var(--editorial-aqua); }
.faq-jump-row { justify-content: flex-start; }
.faq-jump-pill { border-radius: 6px; }
@media (max-width: 1040px) {
  .nav-links { overflow-y: auto; }
  .nav-links:not(.is-open) { visibility: hidden; }
}
@media (max-width: 760px) {
  .navbar .container { gap: 10px; padding-inline: 16px; }
  .navbar .nav-logo img { height: clamp(36px, 11vw, 46px); }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 8px 12px; white-space: nowrap; }
  .topbar .topbar-badges { gap: 6px 14px; }
}

/* Keep decorative sparkles within the product photography. */
.bundle-photo { overflow: hidden; }

/* Keep text readable while sections enter the viewport. */
.reveal, .reveal-stagger > * { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { transform: none; transition: none; }
}

/* V23. Full-bleed photography with a light reading surface. */
.topic-hero {
  display: block;
  isolation: isolate;
  min-height: 450px;
  background: #f5f3ec;
  color: var(--navy-900);
}
.topic-hero > .container {
  position: relative;
  max-width: 630px;
}
.topic-hero .topic-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  min-height: 0;
  border-radius: 0;
  background: none;
}
.topic-hero .topic-media img { object-position: center 52%; }
.topic-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #fff 0%, #fffffffa 28%, #ffffffe0 43%, #ffffff59 61%, transparent 77%);
}
.topic-hero h1,
.topic-hero p,
.topic-hero .hero-trust,
.topic-hero .hero-trust .item { color: var(--navy-900); }
.topic-hero h1 .accent { color: #00687e; }
.topic-hero .crumbs { color: #385268; }
.topic-hero .crumbs a:hover { color: #00687e; }
.topic-hero .btn-outline,
.topic-hero .btn-navy-outline {
  background: #fffffff0;
  border-color: #496478;
  color: var(--navy-900);
}
.topic-hero .badge-pill,
.topic-hero .hero-eyebrow {
  color: #1a5060;
  background: #f4fafb;
  border-color: #9fbac2;
}
@media (min-width: 761px) and (max-width: 1199px) {
  .topic-hero > .container { max-width: min(630px, 60%); }
  .topic-hero::before {
    background: linear-gradient(90deg, #fff 0%, #fffffff5 35%, #ffffffd9 52%, transparent 84%);
  }
}
@media (max-width: 760px) {
  .topic-hero {
    min-height: 0;
    padding-top: clamp(150px, 44vw, 245px);
    background: #fff;
  }
  .topic-hero .topic-media {
    inset: 0 0 auto;
    height: clamp(260px, 64vw, 365px);
    aspect-ratio: auto;
  }
  .topic-hero .topic-media img { object-position: center; }
  .topic-hero::before {
    inset: 0 0 auto;
    height: clamp(260px, 64vw, 365px);
    background: linear-gradient(180deg, transparent 12%, #ffffff22 39%, #fffffff5 72%, #fff 100%);
  }
}


/* Photo cards share the homepage signs' full-bleed image and bottom fade. */
.info-grid:has(> .info-card > .icon-tile > img) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
main :is(.info-card:has(> .icon-tile > img), .mean-card, .bundle-card:has(> .bundle-photo > img)) {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: end;
  min-width: 0;
  width: 100%;
  min-height: 240px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  padding: clamp(18px, 2.5vw, 32px);
  text-align: left;
  background: var(--navy-900);
  border: 1px solid #ffffff40;
  border-radius: 12px;
}
main :is(.info-card.info-card:has(> .icon-tile > img), .mean-card.mean-card, .bundle-card.bundle-card, .source-compare-card.source-compare-card):hover {
  transform: none;
  box-shadow: 0 6px 18px #071b2e38;
}
main a:is(.info-card, .source-compare-card):focus-visible,
.bundle-card a:focus-visible {
  outline: 3px solid #47c5df;
  outline-offset: 3px;
}
main :is(.info-card, .mean-card) > .icon-tile:has(> img),
main .bundle-card > .bundle-photo:has(> img) {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: 0;
  background: none;
}
main .bundle-photo > img {
  border: 0;
  border-radius: 0;
}
main :is(.info-card:has(> .icon-tile > img), .mean-card, .bundle-card:has(> .bundle-photo > img))::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #081b2e 0%, #081b2ef2 31%, #081b2e55 58%, transparent 80%);
  pointer-events: none;
}
main .info-card:has(> .icon-tile > img) { gap: 6px; }
main :is(.info-card:has(> .icon-tile > img), .mean-card, .bundle-card:has(> .bundle-photo > img)) h4,
main .source-compare-overlay h3,
main .local-system-grid > .info-card h3 {
  font: 400 clamp(1.3rem, 2.35vw, 1.9rem)/1.1 var(--editorial-serif);
  color: white;
  margin: 0 0 4px;
}
main :is(.info-card:has(> .icon-tile > img), .mean-card, .bundle-card:has(> .bundle-photo > img)) p,
main .source-compare-overlay p { color: #edf5f6; }
main :is(.info-card:has(> .icon-tile > img), .bundle-card:has(> .bundle-photo > img)) :is(.card-link, .card-link-hint) {
  color: #b8effa;
  align-self: flex-start;
}
main .bundle-card:has(> .bundle-photo > img) {
  min-height: 410px;
  padding-top: 144px;
}
main .bundle-card:has(> .bundle-photo > img)::after {
  background: linear-gradient(0deg, #081b2e 0%, #081b2ef5 43%, #081b2e70 66%, transparent 87%);
}
main .bundle-card .bundle-body { padding: 0; flex: none; }
main .bundle-card .tag-list { margin-block: 6px 10px; }
main .source-compare-card { border-radius: 12px; }
main .source-compare-overlay {
  background: linear-gradient(0deg, #081b2e, #081b2eea 38%, transparent);
}
main :is(.product-card, .area-card, .info-card, .review-card, .gallery-card) { border-radius: 12px; }
@media (max-width: 700px) {
  .info-grid:has(> .info-card > .icon-tile > img) { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .systems-lineup { grid-template-columns: minmax(0, 1fr); }
}

/* Scatter the existing bubbles from the heading through the signs grid. */
#signs-of-bad-water { position: relative; isolation: isolate; }
#signs-of-bad-water > .bubbles-field { display: block; }
#signs-of-bad-water > .container { position: relative; }
#signs-of-bad-water > .bubbles-field span {
  animation-name: signs-bubble-drift;
  animation-fill-mode: backwards;
  opacity: .55;
}
@keyframes signs-bubble-drift {
  0%, 100% { transform: translateY(0); opacity: .4; }
  50% { transform: translate(var(--drift1, 10px), -28px); opacity: .75; }
}
@media (prefers-reduced-motion: reduce) {
  #signs-of-bad-water > .bubbles-field span { animation: none; }
}

/* Soft blue hover glow for photo cards on mouse-driven devices. */
@media (hover: hover) and (pointer: fine) {
  main :is(.info-card.info-card:has(> .icon-tile > img), .mean-card.mean-card, .bundle-card.bundle-card, .source-compare-card.source-compare-card):hover {
    transform: translateY(-3px) scale(1.23);
    transition-duration: .18s;
    box-shadow: 0 0 0 1px #a4d7ff99, 0 0 16px 3px #56aefb80, 0 0 34px 8px #3e9ee84d;
    z-index: 2;
  }
}
@media (prefers-reduced-motion: reduce) {
  main :is(.info-card.info-card:has(> .icon-tile > img), .mean-card.mean-card, .bundle-card.bundle-card, .source-compare-card.source-compare-card):hover {
    transform: none;
    transition: none;
  }
}

/* The water-test photo and introduction read as a single banner. */
.water-test-header {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 365px;
  margin-bottom: clamp(24px, 4vw, 42px);
  padding: clamp(22px, 5vw, 64px);
  overflow: hidden;
  border: 1px solid #ffffff30;
  border-radius: 12px;
  background: var(--navy-900);
}
.water-test-header picture,
.water-test-header::after {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.water-test-header img { width: 100%; height: 100%; object-fit: cover; }
.water-test-header::after {
  content: "";
  background: linear-gradient(90deg, #081b2e 0%, #081b2ef5 26%, #081b2eda 48%, #081b2e30 76%, transparent);
}
.water-test-header .section-head {
  max-width: 540px;
  margin: 0;
  text-align: left;
}
@media (max-width: 700px) {
  .water-test-header {
    min-height: 0;
    padding-top: clamp(155px, 40vw, 230px);
  }
  .water-test-header picture { height: clamp(220px, 56vw, 310px); }
  .water-test-header::after {
    background: linear-gradient(180deg, transparent 5%, #081b2e35 25%, #081b2ef2 62%, #081b2e 85%);
  }
}

/* Keep wide headers from magnifying the subject as the viewport grows. */
@media (min-width: 761px) {
  .topic-hero:not(.home-intro) .topic-media {
    left: auto;
    width: min(70%, 1180px);
    mask-image: linear-gradient(90deg, transparent, #000 30%);
  }
  .topic-hero:not(.home-intro) .topic-media img { object-position: center 36%; }
}

/* Center standalone section introductions over the content they introduce. */
main > .section-pad > .container > .section-head {
  margin-inline: auto;
  text-align: center;
}
main > .section-pad > .container > .section-head p { margin-inline: auto; }

.drinking-system-lineup { grid-template-columns: minmax(0, 1fr); }
main .drinking-system-lineup .bundle-card:has(> .bundle-photo > img) {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-items: center;
  min-height: 0;
  aspect-ratio: auto;
  padding: 0;
}
main .drinking-system-lineup .bundle-card::after { content: none; }
main .drinking-system-lineup .bundle-card > .bundle-photo {
  position: relative;
  inset: auto;
  z-index: auto;
  height: auto;
  aspect-ratio: 3 / 2;
}
main .drinking-system-lineup .bundle-photo > img { object-fit: contain; }
main .drinking-system-lineup .bundle-body { padding: clamp(22px, 4vw, 52px); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  main .drinking-system-lineup .bundle-card:hover { transform: translateY(-3px) scale(1.02); }
}
@media (max-width: 700px) {
  main .drinking-system-lineup .bundle-card:has(> .bundle-photo > img) {
    grid-template-columns: minmax(0, 1fr);
  }
}

.installation-process-header .section-head h2 { color: white; }
.installation-process-header .section-head p { color: #e0ebf0; }

.premium-filtration-band {
  padding: clamp(18px, 3vw, 30px) 20px;
  background: var(--navy-900);
  text-align: center;
}
.premium-filtration-band p {
  margin: 0;
  color: white;
  font: 400 clamp(1.45rem, 3vw, 2.1rem)/1.2 var(--editorial-serif);
}

.existing-system-band {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
  min-height: 580px;
  padding: clamp(24px, 4vw, 56px);
  background: var(--navy-900);
}
.existing-system-band .existing-system-photo {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: -2;
  width: 50%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}
.existing-system-band::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #081b2e 0%, #081b2e 35%, #081b2ee0 48%, #081b2e22 70%, transparent 82%);
}
.existing-system-band > div { max-width: 52%; }
@media (max-width: 700px) {
  .existing-system-band { min-height: 0; padding-top: 300px; }
  .existing-system-band .existing-system-photo { width: 100%; height: 430px; object-position: center 47%; }
  .existing-system-band::after {
    background: linear-gradient(180deg, transparent 5%, #081b2e22 25%, #081b2ef2 59%, #081b2e 80%);
  }
  .existing-system-band > div { max-width: 100%; }
}
@media (min-width: 701px) {
  .existing-system-band .existing-system-photo {
    mask-image: linear-gradient(90deg, transparent, #000 22%);
  }
}

.local-water-photo-block {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #cbdfe5;
  border-radius: 12px;
  background: white;
  padding: clamp(24px, 4vw, 52px);
}
.local-water-photo,
.local-water-photo-block::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}
.local-water-photo { object-fit: cover; object-position: center; }
.local-water-photo-block::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, #fffffffA 0%, #fffffff5 35%, #ffffffe8 56%, #ffffff55 85%);
}
.local-water-copy { max-width: 68%; }
.local-water-copy .section-head { text-align: left; margin: 0 0 24px; }
.local-water-copy p + p { margin-top: 16px; }
.local-water-copy a { color: #075674; text-decoration: underline; }
@media (max-width: 700px) {
  .local-water-photo-block { padding-top: 190px; }
  .local-water-photo { height: 330px; object-position: center top; }
  .local-water-photo-block::after {
    background: linear-gradient(180deg, transparent 0%, #ffffffb3 19%, #fffffff7 38%, white 57%);
  }
  .local-water-copy { max-width: 100%; }
}

main > .home-cutaway-section { background: var(--navy-900); }

main > #signs-of-bad-water { background: white; }
#signs-of-bad-water .kyw-subhead h3 { color: var(--navy-900); }
#signs-of-bad-water .kyw-subhead p { color: var(--slate-600); }
#signs-of-bad-water > .bubbles-field span {
  border-color: #3f9eb466;
  background: radial-gradient(circle at 32% 26%, #ffffff 0%, #c8eef780 22%, #1f93b047 48%, #1f93b014 75%, transparent);
}

main > .know-water-intro {
  position: relative;
  isolation: isolate;
  background: var(--navy-900);
}
.know-water-intro > .container { position: relative; }
main > .know-water-intro > .container > .section-head { margin-bottom: 0; }

/* Blue callout panels use the same navy as the site header and footer. */
.cta-band { background: var(--navy-900); }

/* Decorative bubbles float behind page content and stay inside their section. */
.bubble-section {
  position: relative;
  isolation: isolate;
  --bubble-rgb: 30, 146, 183;
}
.bubble-section:is(.bg-navy, .site-footer, .home-cutaway-section, .premium-filtration-band):not(#signs-of-bad-water) {
  --bubble-rgb: 255, 255, 255;
}
.site-bubbles {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.site-bubbles span {
  position: absolute;
  border: 1px solid rgba(var(--bubble-rgb), .48);
  border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, rgba(var(--bubble-rgb), .7), rgba(var(--bubble-rgb), .11) 34%, transparent 64%);
  box-shadow: inset -2px -2px 4px rgba(var(--bubble-rgb), .18);
  opacity: .5;
  animation: site-bubble-rise linear infinite;
}
@keyframes site-bubble-rise {
  0% { opacity: 0; }
  20%, 74% { opacity: .65; }
  100% { transform: translate(var(--bubble-drift), var(--bubble-rise)); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .site-bubbles span { animation: none; }
}

/* Faded geographic maps for service-area cards and town introductions. */
.area-map-card { position: relative; isolation: isolate; overflow: hidden; }
.area-map-art {
  position: absolute;
  inset: 0 0 0 auto;
  width: 54%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  mask-image: linear-gradient(90deg, transparent, #000 46%);
  opacity: .93;
  z-index: -1;
  pointer-events: none;
}
.town-map-section { position: relative; isolation: isolate; }
.town-map-section .town-locator {
  position: absolute;
  inset: 0 0 0 auto;
  width: 64%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  mask-image: linear-gradient(90deg, transparent, transparent 10%, #000 64%);
  z-index: -1;
  pointer-events: none;
}
.town-map-section > .container { position: relative; }
main > .town-map-section > .container > .section-head,
.town-map-section > .container > p,
.town-map-section > .container > .water-test-header {
  max-width: 51%;
  margin-inline: 0;
}
main > .town-map-section > .container > .section-head { text-align: left; }
.town-map-section > .container > p { color: #e0ebf0; }
.town-map-section .concept-inset { margin-inline: 0 auto !important; }
.town-map-section .water-test-header { margin-bottom: 0; }
@media (max-width: 760px) {
  .area-map-art { width: 51%; opacity: .76; }
  .town-map-section .town-locator {
    position: relative;
    display: block;
    margin: 0 auto 22px;
    width: min(100% - 36px, 620px);
    height: auto;
    z-index: auto;
    mask-image: none;
    border-radius: 10px;
  }
  main > .town-map-section > .container > .section-head,
  .town-map-section > .container > p,
  .town-map-section > .container > .water-test-header { max-width: 100%; }
}

.area-map-card > :is(h4, ul) {
  position: relative;
  max-width: 56%;
}
.area-map-card h4, .area-map-card li {
  text-shadow: 0 1px 4px var(--navy-900);
}
.map-credit {
  display: block;
  margin-top: 12px;
  font-size: .75rem;
}
.map-credit a { color: inherit; text-decoration: underline; }
.town-map-section .map-credit { color: #dceaf1; }

/* Align regional home photos with the copy directly above them. */
.concept-inset.regional-home-photo { max-width: 100%; }
.town-map-section .regional-home-photo { max-width: 51%; }
@media (max-width: 760px) {
  .town-map-section .regional-home-photo { max-width: 100%; }
}

main .local-system-grid > .info-card:has(> .icon-tile > img) {
  min-height: 380px;
  padding-top: 166px;
}
main .local-system-grid > .info-card:has(> .icon-tile > img)::after {
  background: linear-gradient(0deg, #081b2e 5%, #081b2ef2 48%, #081b2e33 75%, transparent 90%);
}
.local-system-grid .icon-tile img { object-position: center 25%; }
.local-system-grid > :nth-child(2) .icon-tile img { object-position: 47% bottom; transform: scale(1.65); transform-origin: 47% bottom; }
@media (min-width: 1000px) {
  .info-grid.local-system-grid:has(> .info-card > .icon-tile > img) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* East Coast overview on the Service Areas page. */
.service-regions-map { margin: 28px 0 0; }
.service-regions-map-art {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: #c4def0;
}
.service-regions-map-art img { display: block; width: 100%; height: auto; }
.service-region-marker {
  position: absolute;
  top: var(--pin-y);
  left: var(--pin-x);
  display: flex;
  align-items: center;
  gap: 7px;
  transform: translate(-6px, -50%);
  color: white;
  font-size: clamp(.64rem, 1.8vw, .96rem);
  line-height: 1.2;
  white-space: nowrap;
}
.service-region-marker::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff7929;
  border: 2px solid white;
  box-shadow: 0 1px 5px #081b2e88;
}
.service-region-marker > span {
  padding: 6px 8px;
  border-radius: 6px;
  background: var(--navy-900);
}
.service-region-marker small { display: block; color: #cde9f5; margin-top: 2px; }
.service-regions-map figcaption { margin-top: 8px; font-size: .8rem; color: var(--slate-600); }
.service-regions-map figcaption a { text-decoration: underline; }

@media (min-width: 761px) {
  .topic-hero.service-areas-hero:not(.home-intro) .topic-media {
    width: min(68%, 900px);
  }
  .topic-hero.service-areas-hero:not(.home-intro) .topic-media img {
    object-position: center 22%;
  }
}

/* Blend a clear map into a darker, softly blurred layer behind the labels. */
.area-grid-soft-maps .area-map-art {
  inset: 0;
  width: 100%;
  object-position: center;
  transform: scale(1.04);
  filter: blur(2px);
  mask-image: linear-gradient(90deg, #0008, #000 43%, transparent 80%);
  opacity: .28;
}
.area-grid-soft-maps .area-map-art-sharp {
  filter: none;
  mask-image: linear-gradient(90deg, transparent 40%, #000 88%);
  opacity: .88;
}
.area-grid-soft-maps .area-map-card > :is(h4, ul) { max-width: 56%; }
.bg-navy-continuous .area-grid-soft-maps .area-map-art-sharp {
  mask-image: linear-gradient(90deg, transparent 40%, rgb(0 0 0 / 8%) 49%, rgb(0 0 0 / 26%) 56%, rgb(0 0 0 / 55%) 64%, rgb(0 0 0 / 83%) 73%, #000 85%);
  opacity: 1;
}
#service-area .area-grid-soft-maps .area-map-art-sharp {
  mask-image: linear-gradient(90deg, transparent 40%, rgb(0 0 0 / 37%) 60%, rgb(0 0 0 / 94%) 88%, #000 100%);
  opacity: 1;
}

/* Sulfur odor checkpoints pair each sign with its own illustration. */
.odor-sign-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.odor-sign-card {
  display: grid;
  grid-template-columns: 40% 1fr;
  align-items: center;
  min-height: 154px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  background: white;
}
.odor-sign-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}
.odor-sign-card span {
  padding: clamp(12px, 2vw, 25px);
  color: var(--navy-900);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  font-weight: 600;
  line-height: 1.4;
}
.odor-sign-grid + .concept-caption { text-align: center; margin-top: 14px; }
@media (max-width: 760px) {
  .odor-sign-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .odor-sign-card { min-height: 130px; }
}

/* Full-width water-test photo with localized softening behind the copy. */
main .contaminant-test-banner {
  --test-photo: url("../images/concepts/contaminants-water-test-banner.webp");
  --test-position: center 56%;
  --test-shade: linear-gradient(90deg, #081b2ef7, #081b2ed9 44%, #081b2e55 76%, #081b2e24);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--test-shade), var(--test-photo) var(--test-position) / cover no-repeat;
}
.contaminant-test-banner::before {
  content: "";
  position: absolute;
  inset: -6px;
  z-index: -1;
  background: var(--test-shade), var(--test-photo) var(--test-position) / cover no-repeat;
  filter: blur(4px);
  mask-image: linear-gradient(90deg, #000 38%, transparent 72%);
  pointer-events: none;
}
.contaminant-test-copy { max-width: 650px; }
.contaminant-test-copy h2 { color: #fff; margin-bottom: 8px; }
.contaminant-test-copy p { color: #edf5f6; }
.contaminant-test-copy .btn { margin-top: 24px; }
@media (max-width: 760px) {
  main .contaminant-test-banner {
    --test-shade: linear-gradient(0deg, #081b2ef7 15%, #081b2ed9 54%, #081b2e35 100%);
    --test-position: 78% center;
    padding-top: clamp(165px, 40vw, 250px);
  }
  .contaminant-test-banner::before { mask-image: linear-gradient(0deg, #000 48%, transparent 85%); }
}
