.dist-page {
  --dist-bg: #070b11;
  --dist-panel: #0e1827;
  --dist-panel-soft: #142238;
  --dist-blue: var(--e-blue, #2759a2);
  --dist-red: var(--e-red, #d33d4b);
  --dist-ink: #f7f8fa;
  --dist-muted: #b7c2d0;
  --dist-line: rgb(255 255 255 / .15);
  color: var(--dist-ink);
  background: var(--dist-bg);
}

.dist-page h1,
.dist-page h2,
.dist-page h3 {
  color: inherit;
}

.dist-page a {
  text-underline-offset: .2em;
}

.dist-hero {
  padding-block: clamp(4rem, 8vw, 7.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--dist-line);
  background: var(--dist-bg);
}

.dist-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(25rem, .98fr);
  align-items: center;
  gap: clamp(3rem, 6vw, 6rem);
}

.dist-hero__grid--text {
  grid-template-columns: minmax(0, 1fr);
}

.dist-hero__grid--text .dist-hero__copy {
  max-width: 62rem;
  margin-inline: auto;
  text-align: center;
}

.dist-hero__grid--text h1,
.dist-hero__grid--text .dist-hero__copy > p:not(.home3-label) {
  margin-inline: auto;
}

.dist-hero__grid--text .home3-label,
.dist-hero__grid--text .dist-hero__actions {
  justify-content: center;
}

.dist-hero h1 {
  max-width: 13ch;
  margin-bottom: 1.5rem;
  color: #fff;
  font-size: clamp(4rem, 7.5vw, 7.2rem);
  letter-spacing: -.045em;
}

.dist-hero__copy > p:not(.home3-label) {
  max-width: 44rem;
  margin-bottom: 2rem;
  color: var(--dist-muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.dist-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.dist-hero figure {
  position: relative;
  margin: 0 -7rem 0 0;
}

.dist-hero figure::before {
  position: absolute;
  top: -1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  left: -1.25rem;
  z-index: 0;
  border: 1px solid rgb(255 255 255 / .28);
  content: "";
}

.dist-hero figure img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 34rem;
  object-fit: cover;
}

.dist-hero figcaption {
  position: relative;
  z-index: 2;
  width: min(85%, 32rem);
  margin: -3.5rem 0 0 -2rem;
  padding: 1.25rem 1.5rem;
  color: #fff;
  border-left: 5px solid var(--dist-red);
  background: var(--dist-blue);
}

.dist-attention {
  padding-block: clamp(5rem, 8vw, 7rem);
  color: var(--e-text, #263747);
  background: #fff;
}

.dist-attention__grid {
  display: grid;
  grid-template-columns: minmax(18rem, .8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.dist-attention h2 {
  color: var(--e-ink, #102642);
}

.dist-explorer {
  padding-block: clamp(5rem, 8vw, 7rem);
  background: var(--dist-bg);
}

.dist-section-head {
  display: grid;
  grid-template-columns: .4fr 1fr;
  align-items: end;
  margin-bottom: 3rem;
  gap: 2rem;
}

.dist-section-head h2 {
  max-width: 15ch;
  margin: 0;
  color: #fff;
}

.dist-filters {
  display: grid;
  grid-template-columns: minmax(17rem, 1.2fr) minmax(18rem, 1fr);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  border-top: 5px solid var(--dist-red);
  background: var(--dist-panel);
  gap: 1.5rem 2rem;
}

.dist-filters fieldset,
.dist-filters label {
  min-width: 0;
}

.dist-filters fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.dist-filters legend,
.dist-search {
  display: block;
  margin-bottom: .65rem;
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.dist-search input {
  display: block;
  width: 100%;
  min-height: 3.4rem;
  margin-top: .65rem;
  padding: .8rem 1rem;
  color: #fff;
  border: 1px solid rgb(255 255 255 / .32);
  border-radius: 0;
  background: var(--dist-bg);
  font: inherit;
}

.dist-provinces > div,
.dist-services > div,
.dist-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.dist-provinces button,
.dist-nearby,
.dist-clear,
.dist-no-results button {
  min-height: 2.75rem;
  padding: .55rem .9rem;
  color: #fff;
  border: 1px solid rgb(255 255 255 / .3);
  border-radius: 2px;
  background: transparent;
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
}

.dist-provinces button:hover,
.dist-provinces button:focus-visible,
.dist-provinces button.is-active {
  color: #fff;
  border-color: var(--dist-blue);
  background: var(--dist-blue);
}

.dist-services label {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  padding: .55rem .8rem;
  color: var(--dist-muted);
  border: 1px solid rgb(255 255 255 / .22);
  cursor: pointer;
  gap: .45rem;
}

.dist-services input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--dist-red);
}

.dist-filter-actions {
  grid-column: 1 / -1;
}

.dist-nearby {
  border-color: var(--dist-red);
  background: var(--dist-red);
}

.dist-nearby:hover,
.dist-nearby:focus-visible {
  border-color: #fff;
  box-shadow: -4px 4px 0 #fff;
  transform: translate(2px, -2px);
}

.dist-nearby:disabled {
  opacity: .72;
  cursor: wait;
}

.dist-clear:hover,
.dist-clear:focus-visible,
.dist-no-results button:hover,
.dist-no-results button:focus-visible {
  color: var(--dist-bg);
  background: #fff;
}

.dist-result-bar {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--dist-line);
}

.dist-result-bar p {
  margin: 0;
  color: #fff;
  font-weight: 800;
}

.dist-explorer__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(24rem, .92fr);
  align-items: start;
  gap: 2rem;
}

.dist-map-wrap {
  position: sticky;
  top: 8rem;
}

.dist-map {
  position: relative;
  width: 100%;
  height: clamp(32rem, 68vh, 46rem);
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / .24);
  background: var(--dist-panel-soft);
}

.dist-map__state {
  position: absolute;
  z-index: 500;
  display: grid;
  place-items: center;
  inset: 0;
  padding: 2rem;
  color: #fff;
  background: var(--dist-panel-soft);
  text-align: center;
  font-weight: 700;
}

.dist-map__state[hidden] {
  display: none;
}

.dist-map__state.is-notice {
  top: auto;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  min-height: 0;
  padding: .85rem 1rem;
  border-left: 4px solid var(--dist-red);
  background: rgb(14 24 39 / .94);
  box-shadow: 0 3px 0 rgb(0 0 0 / .22);
  pointer-events: none;
}

.dist-map__attribution {
  margin: .65rem 0 0;
  color: var(--dist-muted);
  font-size: .78rem;
}

.dist-list-panel {
  min-width: 0;
}

.dist-list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  gap: 1rem;
}

.dist-card {
  scroll-margin-top: 8rem;
  outline: 0;
}

.dist-card article {
  overflow: hidden;
  border: 1px solid var(--dist-line);
  border-left: 5px solid var(--dist-blue);
  background: var(--dist-panel);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.dist-card__body {
  padding: 1.5rem;
}

.dist-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--dist-line);
  background: #172338;
}

.dist-card__media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dist-card__map-thumb {
  isolation: isolate;
  background: #d8dfdf;
}

.dist-card__tile-grid {
  position: absolute;
  z-index: 0;
  width: 768px;
  height: 512px;
}

.dist-card__tile-grid img {
  position: absolute;
  display: block;
  width: 256px;
  height: 256px;
  max-width: none;
}

.dist-card__map-thumb::after {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 58%;
  background: linear-gradient(180deg, transparent, rgb(7 11 17 / .9));
  content: "";
  pointer-events: none;
}

.dist-card__map-marker {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  width: 30px;
  height: 30px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--dist-red);
  box-shadow: 0 4px 12px rgb(0 0 0 / .45);
  transform: translate(-50%, -85%) rotate(-45deg);
}

.dist-card__locality {
  position: absolute;
  z-index: 3;
  bottom: 1rem;
  left: 1rem;
  max-width: calc(100% - 8rem);
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: .95;
}

.dist-card__osm-credit {
  position: absolute;
  right: .45rem;
  bottom: .4rem;
  z-index: 4;
  padding: .15rem .28rem;
  color: #132032;
  background: rgb(255 255 255 / .88);
  text-decoration: none;
  font-size: .66rem;
}

.dist-card__media--fallback {
  display: grid;
  place-items: end start;
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--dist-panel-soft), var(--dist-blue));
}

.dist-card__media--fallback span {
  color: #fff;
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
}

.dist-card--featured article {
  border-left-color: var(--dist-red);
}

.dist-card:hover article,
.dist-card:focus-visible article,
.dist-card.is-highlighted article {
  border-color: #fff;
  background: var(--dist-panel-soft);
  transform: translateX(-.35rem);
}

.dist-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.dist-card__type,
.dist-card__featured {
  display: inline-flex;
  margin-bottom: .8rem;
  color: #dce7f7;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.dist-card__featured {
  padding: .25rem .5rem;
  color: #fff;
  background: var(--dist-red);
}

.dist-card h3 {
  margin-bottom: .65rem;
  color: #fff;
  font-size: clamp(2rem, 3vw, 2.75rem);
}

.dist-card__description {
  margin: 0 0 1rem;
  color: #e0e7ef;
  line-height: 1.55;
}

.dist-card address {
  color: var(--dist-muted);
  font-style: normal;
}

.dist-card__hours {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  margin-block: 1rem;
  padding-block: .8rem;
  color: var(--dist-muted);
  border-block: 1px solid var(--dist-line);
  gap: .75rem;
}

.dist-card__hours strong {
  color: #fff;
}

.dist-card__distance {
  color: #fff;
  font-weight: 800;
}

.dist-card__services {
  display: flex;
  flex-wrap: wrap;
  margin: 1rem 0;
  padding: 0;
  list-style: none;
  gap: .45rem;
}

.dist-card__services li {
  padding: .25rem .55rem;
  color: #dae4f0;
  border: 1px solid rgb(255 255 255 / .22);
  font-size: .78rem;
}

.dist-card__actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  gap: .55rem;
}

.dist-card__actions a {
  min-height: 2.65rem;
  padding: .55rem .7rem;
  color: #fff;
  border: 1px solid rgb(255 255 255 / .28);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 800;
}

.dist-card__actions a:hover,
.dist-card__actions a:focus-visible {
  color: var(--dist-bg);
  background: #fff;
}

.dist-card__actions .dist-card__call {
  border-color: var(--dist-red);
  background: var(--dist-red);
}

.dist-card__legal {
  margin: 1.25rem 0 0;
  padding-top: 1rem;
  color: #c5d0dc;
  border-top: 1px solid var(--dist-line);
  font-size: .78rem;
  line-height: 1.55;
}

.dist-empty,
.dist-no-results {
  min-height: 24rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid var(--dist-line);
  background: var(--dist-panel);
}

.dist-empty h3,
.dist-no-results h3 {
  color: #fff;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
}

.dist-empty p,
.dist-no-results p {
  color: var(--dist-muted);
}

.dist-leaflet-icon {
  background: none;
  border: 0;
}

.dist-marker {
  display: block;
  width: 30px;
  height: 30px;
  border: 4px solid #fff;
  border-radius: 50% 50% 50% 0;
  background: var(--dist-blue);
  box-shadow: 0 4px 12px rgb(0 0 0 / .45);
  transform: rotate(-45deg);
}

.dist-marker--featured {
  width: 36px;
  height: 36px;
  background: var(--dist-red);
}

.dist-marker.is-active {
  outline: 4px solid rgb(255 255 255 / .65);
  transform: rotate(-45deg) scale(1.2);
}

.dist-popup {
  display: grid;
  color: #17253a;
  gap: .25rem;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgb(211 61 75 / .36) !important;
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  color: #fff;
  background: var(--dist-red) !important;
  font-weight: 800;
}

.dist-legal-strip {
  padding-block: clamp(1.5rem, 3vw, 2.25rem);
  color: #d8e1eb;
  border-block: 1px solid rgb(255 255 255 / .18);
  background: #111a27;
}

.dist-legal-strip p {
  max-width: 70rem;
  margin: 0;
  font-size: .88rem;
  line-height: 1.65;
}

.dist-join {
  padding-block: clamp(5rem, 9vw, 8rem);
  border-top: 1px solid var(--dist-line);
  background: var(--dist-blue);
}

.dist-join__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(28rem, 1.15fr);
  align-items: start;
  gap: clamp(3rem, 6vw, 6rem);
}

.dist-join h2 {
  color: #fff;
}

.dist-join__copy > p:not(.home3-label) {
  color: rgb(255 255 255 / .82);
  font-size: 1.1rem;
}

.dist-join__copy ul {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.dist-join__copy li {
  display: grid;
  grid-template-columns: minmax(9rem, .72fr) 1fr;
  padding: 1rem 0;
  border-top: 1px solid rgb(255 255 255 / .25);
  gap: 1rem;
}

.dist-join__copy li strong {
  color: #fff;
}

.dist-join__copy li span {
  color: rgb(255 255 255 / .74);
}

.dist-join__form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: clamp(1.4rem, 4vw, 3rem);
  color: var(--e-text, #263747);
  border-top: 6px solid var(--dist-red);
  background: #fff;
  gap: 1rem;
}

.dist-join__form label {
  display: grid;
  color: var(--e-ink, #102642);
  font-size: .9rem;
  font-weight: 800;
  gap: .4rem;
}

.dist-join__form input,
.dist-join__form select,
.dist-join__form textarea {
  width: 100%;
  min-height: 3.15rem;
  padding: .75rem .85rem;
  color: var(--e-ink, #102642);
  border: 1px solid #8e9aaa;
  border-radius: 0;
  background: #fff;
  font: inherit;
}

.dist-join__form textarea {
  min-height: 8rem;
  resize: vertical;
}

.dist-form-wide {
  grid-column: 1 / -1;
}

.dist-consent {
  grid-template-columns: auto 1fr !important;
  align-items: start;
}

.dist-consent input {
  width: 1rem;
  min-height: 1rem;
  margin-top: .3rem;
  accent-color: var(--dist-red);
}

.dist-consent a,
.dist-form-status a {
  color: var(--dist-blue);
}

.dist-form-status {
  margin: .5rem 0 0;
  padding: 1rem;
  color: var(--e-ink, #102642);
  border-left: 4px solid var(--dist-blue);
  background: #edf2f8;
}

.dist-form-status[data-state="error"] {
  border-left-color: var(--dist-red);
}

.dist-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.dist-page :focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 68rem) {
  .dist-hero__grid,
  .dist-join__grid {
    grid-template-columns: 1fr;
  }

  .dist-attention__grid {
    grid-template-columns: 1fr;
  }

  .dist-hero figure {
    margin-right: 0;
  }

  .dist-explorer__layout {
    grid-template-columns: 1fr;
  }

  .dist-map-wrap {
    position: static;
  }

  .dist-map {
    height: 45vh;
    min-height: 21rem;
    max-height: 34rem;
  }
}

@media (max-width: 48rem) {
  .dist-hero,
  .dist-explorer,
  .dist-join {
    padding-block: 4rem;
  }

  .dist-attention {
    padding-block: 4rem;
  }

  .dist-hero h1 {
    font-size: clamp(3.45rem, 15vw, 5.2rem);
  }

  .dist-hero figure::before {
    display: none;
  }

  .dist-hero figure img {
    height: 22rem;
  }

  .dist-hero figcaption {
    width: 100%;
    margin: 0;
  }

  .dist-section-head,
  .dist-filters,
  .dist-join__form {
    grid-template-columns: 1fr;
  }

  .dist-section-head {
    display: block;
  }

  .dist-filter-actions,
  .dist-form-wide {
    grid-column: auto;
  }

  .dist-nearby,
  .dist-clear {
    width: 100%;
  }

  .dist-map {
    height: 45vh;
    min-height: 19rem;
  }

  .dist-card__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dist-card__actions a {
    display: grid;
    place-items: center;
    text-align: center;
  }

  .dist-card__actions .dist-card__call {
    grid-column: 1 / -1;
    min-height: 3.25rem;
  }

  .dist-card__body {
    padding: 1.25rem;
  }

  .dist-card__locality {
    left: .8rem;
  }

  .dist-join__copy li {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dist-card article,
  .dist-nearby {
    transition: none;
  }

  .dist-card:hover article,
  .dist-card:focus-visible article,
  .dist-card.is-highlighted article,
  .dist-nearby:hover,
  .dist-nearby:focus-visible {
    transform: none;
  }
}
