/*
 * Nutriboobs · Postpartum Tour · local native-Divi candidate.
 * Intended host: elementor_canvas + standalone Divi 4 Builder.
 * Every section carries nbpt-page; a body-class injection is not required.
 * The scoped #et-boc branch outranks standalone Divi's reset without
 * changing the homepage, theme, existing fonts, or any other stylesheet.
 * [nbpt_ebook] is supplied by the integration layer. Its truthful pending
 * state must remain visible until a real download exists. No fake control.
 */

@font-face {
  font-family: "NBPT Cormorant Garamond";
  src: url("/wp-content/mu-plugins/nutriboobs-assets/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "NBPT Nunito Sans";
  src: url("/wp-content/mu-plugins/nutriboobs-assets/fonts/nunito-sans-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "NBPT Nunito Sans";
  src: url("/wp-content/mu-plugins/nutriboobs-assets/fonts/nunito-sans-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

/* Page-local foundations. The alias fonts cannot change other pages. */
:is(.nbpt-page, #et-boc .et-l .nbpt-page) {
  --nbpt-ink: #1f2b46;
  --nbpt-muted: #586173;
  --nbpt-ivory: #fbf8f2;
  --nbpt-white: #ffffff;
  --nbpt-pink: #efd5dc;
  --nbpt-rose-wash: #fcf3f4;
  --nbpt-yellow: #ffdb57;
  --nbpt-yellow-hover: #f4ce43;
  --nbpt-line: #dce0e6;
  --nbpt-body: "NBPT Nunito Sans", "Nunito Sans", sans-serif;
  --nbpt-display: "NBPT Cormorant Garamond", "Cormorant Garamond", Georgia, serif;
  color: var(--nbpt-ink) !important;
  font-family: var(--nbpt-body) !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page),
:is(.nbpt-page, #et-boc .et-l .nbpt-page) *,
:is(.nbpt-page, #et-boc .et-l .nbpt-page) *::before,
:is(.nbpt-page, #et-boc .et-l .nbpt-page) *::after {
  box-sizing: border-box;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page).et_pb_section {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--nbpt-ivory) !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: calc(100% - 96px) !important;
  max-width: 1120px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-row::after,
:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-row > .et_pb_column::after {
  display: none;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-row > .et_pb_column {
  float: none !important;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) :is(.et_pb_text, .et_pb_image, .et_pb_button_module_wrapper) {
  margin: 0 !important;
  padding: 0;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .et_pb_text {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit;
  line-height: inherit;
  overflow-wrap: break-word;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) p {
  margin: 0;
  padding: 0;
  color: inherit !important;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) p + p {
  margin-top: 0.8em;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) :is(h1, h2) {
  margin: 0;
  padding: 0;
  color: var(--nbpt-ink) !important;
  font-family: var(--nbpt-display) !important;
  font-weight: 600 !important;
  letter-spacing: -0.025em;
  text-transform: none;
  overflow-wrap: normal;
  text-wrap: balance;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) a {
  color: var(--nbpt-ink);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) :is(a, button):focus-visible {
  outline: 3px solid var(--nbpt-ink) !important;
  outline-offset: 5px !important;
  box-shadow: 0 0 0 3px var(--nbpt-white) !important;
}

/* On this page only, do not paint the empty frame left by Cookie Notice
 * after its panel closes. Keep its controls, visibility and consent logic intact. */
body.nbpt-page #cookie-notice.cookie-notice-hidden {
  border-color: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Compact, non-sticky header. The official logo remains unchanged. */
:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-header-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0 !important;
  border-bottom: 1px solid var(--nbpt-line);
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-logo {
  width: 196px;
  max-width: 100%;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-logo a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  vertical-align: middle;
  border-radius: 4px;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) :is(.nbpt-logo, .nbpt-product-image) {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) :is(.nbpt-logo, .nbpt-product-image) .et_pb_image_wrap {
  display: block;
  width: 100%;
  max-width: 100%;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-logo img {
  display: block;
  width: 100%;
  height: auto !important;
  object-fit: contain;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-header-note-text {
  color: var(--nbpt-muted) !important;
  font-size: 16px;
  text-align: right;
}

/* Editorial hero: large real type, one soft pink accent, no artwork filler. */
:is(.nbpt-page, #et-boc .et-l .nbpt-page).nbpt-hero {
  padding: 68px 0 46px !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-hero-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-eyebrow {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.12em;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-hero-title h1 {
  font-size: clamp(48px, 6.4vw, 88px) !important;
  line-height: 0.99 !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-hero-title h1 span {
  display: block;
  padding: 0 0.07em 0.09em;
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit;
  background: linear-gradient(transparent 80%, var(--nbpt-pink) 80%, var(--nbpt-pink) 94%, transparent 94%) !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-intro {
  max-width: 640px;
  font-size: 19px;
  line-height: 1.65;
  text-align: center;
  text-wrap: pretty;
}

/* Two independent gifts, kept in reading order on every screen. */
:is(.nbpt-page, #et-boc .et-l .nbpt-page).nbpt-gifts {
  padding-bottom: 76px !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-gift-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 22px;
  padding: 36px !important;
  border: 1px solid var(--nbpt-line);
  border-radius: 24px;
  box-shadow: 0 8px 30px rgb(31 43 70 / 3%);
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-card-ebook {
  background: var(--nbpt-rose-wash) !important;
  border-color: #e7d2d9;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-card-discount {
  background: var(--nbpt-white) !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-card-label p {
  display: flex;
  align-items: center;
  gap: 16px;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-number {
  flex: 0 0 auto;
  color: var(--nbpt-ink) !important;
  font-family: var(--nbpt-display) !important;
  font-size: 44px !important;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-card-kicker {
  color: var(--nbpt-muted) !important;
  font-family: var(--nbpt-body) !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.45;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-card-title h2 {
  max-width: 14ch;
  font-size: clamp(36px, 3.6vw, 48px) !important;
  line-height: 1.05 !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-card-copy {
  font-size: 17px;
  line-height: 1.65;
}

/* Dynamic ebook state: this styles real output, never fabricates a link. */
:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-ebook-state {
  margin-top: auto !important;
  font-size: 16px;
  line-height: 1.6;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-ebook-state .et_pb_text_inner {
  padding: 22px;
  border: 1px solid #e7d2d9;
  border-radius: 16px;
  background: rgb(255 255 255 / 72%);
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-ebook-state :is(h2, h3, h4) {
  margin: 0 0 10px;
  padding: 0;
  color: var(--nbpt-ink) !important;
  font-family: var(--nbpt-body) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-ebook-state .et_pb_text_inner > p:first-child {
  font-weight: 700;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-ebook-state a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  max-width: 100%;
  padding: 13px 18px;
  border: 1px solid var(--nbpt-ink);
  border-radius: 10px;
  background: var(--nbpt-ink) !important;
  color: var(--nbpt-white) !important;
  font-family: var(--nbpt-body) !important;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  overflow-wrap: anywhere;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-ebook-state a:hover {
  background: #34425f !important;
}

/* Yellow is reserved for the one commercial CTA. */
:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-purchase {
  margin-top: auto !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .et_pb_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  max-width: 100%;
  padding: 16px 24px !important;
  border-radius: 12px !important;
  box-shadow: none;
  color: var(--nbpt-ink) !important;
  font-family: var(--nbpt-body) !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-align: center;
  text-decoration: none !important;
  text-transform: none;
  white-space: normal;
  overflow-wrap: break-word;
  transition: background-color 160ms ease, border-color 160ms ease;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .et_pb_button::before,
:is(.nbpt-page, #et-boc .et-l .nbpt-page) .et_pb_button::after {
  display: none !important;
  content: none !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) :is(.nbpt-purchase .et_pb_button, .et_pb_button.nbpt-purchase) {
  width: 100%;
  border: 2px solid transparent !important;
  background: var(--nbpt-yellow) !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) :is(.nbpt-purchase .et_pb_button, .et_pb_button.nbpt-purchase):hover {
  background: var(--nbpt-yellow-hover) !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-reassurance {
  color: var(--nbpt-muted) !important;
  font-size: 16px;
  line-height: 1.55;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-gifts-note-row {
  margin-top: 26px !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-gifts-note {
  color: var(--nbpt-muted) !important;
  font-size: 16px;
  line-height: 1.6;
  text-align: center;
}

/* An unaltered official photo, not a cropped cover or generated mockup. */
:is(.nbpt-page, #et-boc .et-l .nbpt-page).nbpt-product {
  padding: 76px 0 !important;
  background: var(--nbpt-white) !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-product-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 64px;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-product-image {
  position: relative;
  width: 100%;
  max-width: 100%;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-product-image img {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 1280 / 1087;
  object-fit: contain !important;
  object-position: center;
  border-radius: 20px;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-product-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-product-title h2 {
  max-width: 16ch;
  font-size: clamp(40px, 4.2vw, 56px) !important;
  line-height: 1.04 !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-product-description {
  max-width: 44ch;
  font-size: 17px;
  line-height: 1.7;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) :is(.nbpt-information .et_pb_button, .et_pb_button.nbpt-information) {
  min-height: 52px;
  border: 1px solid var(--nbpt-ink) !important;
  background: transparent !important;
  font-size: 16px !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) :is(.nbpt-information .et_pb_button, .et_pb_button.nbpt-information):hover {
  background: var(--nbpt-ivory) !important;
}

/* Utility-only footer; no new or guessed destinations. */
:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-footer-row {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px 0 !important;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) :is(.nbpt-footer-signature, .nbpt-footer-links) {
  color: var(--nbpt-muted) !important;
  font-size: 16px;
  line-height: 1.5;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-footer-links nav,
:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-footer-links nav > p {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
}

:is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 0;
  color: var(--nbpt-ink) !important;
  font-family: var(--nbpt-body) !important;
  font-size: 16px;
  line-height: 1.5;
  text-decoration: underline;
}

/* Stack before Divi's default tablet columns can squeeze the gift cards. */
@media (max-width: 980px) {
  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-row {
    width: calc(100% - 64px) !important;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-gift-grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: 680px !important;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-card-title h2 {
    max-width: 100%;
    font-size: 44px !important;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-product-row {
    gap: 36px;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-footer-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

@media (max-width: 767px) {
  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-row {
    width: calc(100% - 40px) !important;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-header-row {
    gap: 16px;
    padding: 18px 0 !important;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-logo {
    width: 174px;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page).nbpt-hero {
    padding: 42px 0 32px !important;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-hero-column {
    gap: 20px;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-eyebrow {
    letter-spacing: 0.07em;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-intro {
    font-size: 17px;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page).nbpt-gifts {
    padding-bottom: 48px !important;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-gift-grid {
    gap: 20px;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-card {
    gap: 20px;
    padding: 26px !important;
    border-radius: 20px;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-card-title h2 {
    font-size: 39px !important;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-card-copy {
    font-size: 16px;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-ebook-state .et_pb_text_inner {
    padding: 20px;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .et_pb_button {
    padding: 15px 16px !important;
    font-size: 17px !important;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page).nbpt-product {
    padding: 44px 0 48px !important;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-product-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-product-copy {
    gap: 20px;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-product-title h2 {
    max-width: 15ch;
    font-size: 42px !important;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-footer-links nav,
  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-footer-links nav > p {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

/* Narrow phones: retain real padding, readable text and comfortable taps. */
@media (max-width: 359px) {
  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-row {
    width: calc(100% - 32px) !important;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-logo {
    width: 150px;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-eyebrow {
    letter-spacing: 0.025em;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-card {
    padding: 22px !important;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-card-title h2 {
    font-size: 36px !important;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-ebook-state .et_pb_text_inner {
    padding: 16px;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .et_pb_button {
    padding-right: 12px !important;
    padding-left: 12px !important;
    font-size: 16px !important;
  }

  :is(.nbpt-page, #et-boc .et-l .nbpt-page) .nbpt-product-title h2 {
    font-size: 38px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  :is(.nbpt-page, #et-boc .et-l .nbpt-page) *,
  :is(.nbpt-page, #et-boc .et-l .nbpt-page) *::before,
  :is(.nbpt-page, #et-boc .et-l .nbpt-page) *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
