/* Home page promo pop-up — Novel Place palette (navy / pale blue / taupe). */

.npx-promo-open,
.npx-promo-open body { overflow: hidden; }

.npx-promo {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.npx-promo[hidden] { display: none; }

.npx-promo__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 34, 50, .72);
  opacity: 0;
  transition: opacity .25s ease;
}

.npx-promo__dialog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  width: 100%;
  max-width: 860px;
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fafafa;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transition: opacity .25s ease, transform .25s ease;
  outline: none;
}

.npx-promo.is-open .npx-promo__backdrop { opacity: 1; }
.npx-promo.is-open .npx-promo__dialog { opacity: 1; transform: none; }

.npx-promo__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #384363;
  cursor: pointer;
}

.npx-promo__close:hover { background: rgba(56, 67, 99, .08); }

.npx-promo__media {
  position: relative;
  min-height: 100%;
  background: #bdd3d7;
}

.npx-promo__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

/* Pale-blue inset frame, echoing the home page offer band. */
.npx-promo__media::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, .75);
  pointer-events: none;
}

.npx-promo__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 44px 44px;
  text-align: center;
  font-family: "Gotham Book", "Montserrat", "Helvetica Neue", Arial, sans-serif;
  color: #2b3245;
}

.npx-promo__eyebrow {
  margin: 0 0 10px;
  font-size: 15px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #384363;
}

.npx-promo__title { margin: 0; font-weight: 400; line-height: 1; }

.npx-promo__big {
  display: block;
  font-family: "Carolyna W00 Regular", Gabriola, Georgia, serif;
  font-size: 72px;
  line-height: 1.05;
  color: #1c2232;
}

.npx-promo__sub {
  display: block;
  margin-top: 36px;
  font-family: "Gotham Book", "Montserrat", Arial, sans-serif;
  font-size: 24px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ab9686;
}

.npx-promo__rule {
  display: block;
  width: 64px;
  height: 2px;
  margin: 22px auto;
  background: #bdd3d7;
}

.npx-promo__text {
  max-width: 360px;
  margin: 0 0 28px;
  font-family: Gabriola, Georgia, serif;
  font-size: 24px;
  line-height: 1.3;
  color: #384363;
}

.npx-promo__text strong { font-weight: 400; color: #1c2232; border-bottom: 1px solid #ab9686; }

.npx-promo__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 300px;
}

.npx-promo__btn {
  display: block;
  padding: 14px 20px;
  border: 2px solid #384363;
  border-radius: 30px;
  background: #384363;
  color: #fff !important;
  font-family: "Open Sans", "Gotham Book", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background-color .2s, border-color .2s, color .2s;
}

.npx-promo__btn:hover,
.npx-promo__btn:focus-visible { background: #1c2232; border-color: #1c2232; }

.npx-promo__btn--ghost { background: transparent; color: #384363 !important; }
.npx-promo__btn--ghost:hover,
.npx-promo__btn--ghost:focus-visible { background: #384363; border-color: #384363; color: #fff !important; }

.npx-promo__btn:focus-visible,
.npx-promo__close:focus-visible { outline: 2px solid #ab9686; outline-offset: 3px; }

@media (max-width: 720px) {
  .npx-promo { padding: 12px; align-items: flex-end; }
  .npx-promo__dialog { grid-template-columns: minmax(0, 1fr); max-height: calc(100vh - 24px); }
  .npx-promo__media { min-height: 180px; height: 180px; }
  .npx-promo__close { background: rgba(250, 250, 250, .9); }
  .npx-promo__body { padding: 28px 22px 26px; }
  .npx-promo__eyebrow { font-size: 12px; }
  .npx-promo__big { font-size: 52px; }
  .npx-promo__sub { margin-top: 28px; font-size: 18px; }
  .npx-promo__rule { margin: 16px auto; }
  .npx-promo__text { font-size: 21px; margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .npx-promo__backdrop,
  .npx-promo__dialog { transition: none; }
}

/* Text-only version when no photo is set. */
.npx-promo--no-image .npx-promo__dialog { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
