/* Adaptive outage offer. Loaded after the existing district styles. */
.district-page .phx-reserve { position: relative; }

.district-page .phx-reserve-dismiss {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .9);
  color: #333;
  font: 500 24px/1 Onest, sans-serif;
  cursor: pointer;
}

.district-page .phx-reserve-dismiss[hidden],
.district-page .ph-sell[hidden] { display: none !important; }

.district-page .phx-reserve-dismiss:hover { background: #fff; }
.district-page .phx-reserve-dismiss:focus-visible {
  outline: 3px solid rgba(138, 203, 76, .52);
  outline-offset: 3px;
}

.district-page .ph-sell.is-contextual {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.district-page .ph-sell.is-contextual .phx-reserve {
  display: grid;
  grid-template-columns: minmax(250px, .32fr) minmax(0, .68fr);
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(106, 160, 50, .42);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(25, 25, 25, .08);
}

.district-page .ph-sell.is-contextual .phx-reserve-visual {
  display: block;
  min-height: 280px;
}
.district-page .ph-sell.is-contextual .phx-reserve-copy { padding: 28px 64px 28px 30px; }
.district-page .ph-sell.is-contextual .phx-reserve-kicker { margin-bottom: 7px; }
.district-page .ph-sell.is-contextual .phx-reserve h2 {
  max-width: 760px;
  margin-bottom: 9px;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.08;
}
.district-page .ph-sell.is-contextual .phx-reserve-lead {
  max-width: 760px;
  margin-bottom: 16px;
  font-size: 15px;
  line-height: 1.48;
}
.district-page .ph-sell.is-contextual .phx-reserve-proof { display: none; }

@media (min-width: 1200px) {
  .district-page .ph-sell.is-contextual { grid-area: offer; }

  .district-page.ph-outage-memory-context .ph-district-grid {
    grid-template-areas:
      "hero  hero"
      "act   act"
      "offer offer"
      "up    tel"
      "now   now"
      "map   map"
      "svet  svet";
  }

  .district-page.ph-outage-memory-context .ph-district-grid.ph-no-upcoming {
    grid-template-areas:
      "hero  hero"
      "act   act"
      "offer offer"
      "tel   tel"
      "now   now"
      "map   map"
      "svet  svet";
  }
}

@media (max-width: 760px) {
  .district-page .ph-sell.is-contextual .phx-reserve {
    grid-template-columns: 1fr;
  }
  .district-page .ph-sell.is-contextual .phx-reserve-visual {
    min-height: clamp(170px, 46vw, 190px);
    aspect-ratio: 2 / 1;
  }
  .district-page .ph-sell.is-contextual .phx-reserve-copy { padding: 22px 52px 22px 20px; }
  .district-page .ph-sell.is-contextual .phx-reserve h2 { font-size: 25px; }
  .district-page .ph-sell.is-contextual .phx-reserve-button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .district-page .ph-sell.is-contextual .phx-reserve { scroll-behavior: auto; }
}

