/*
 * WordPress themes commonly constrain page content to a narrow reading column.
 * The calculator is a full-page experience, so it must use the viewport as its
 * sizing context before its internal 90% content containers are applied.
 */
.bbtdee {
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  background: var(--cream);
  overflow-x: clip;
}

.bbtdee-hero {
  min-height: 0 !important;
  padding-top: clamp(2.5rem, 5vw, 4.5rem) !important;
}

.bbtdee-hero,
.bbtdee-calculator,
.bbtdee-results,
.bbtdee-how {
  width: min(88vw, 1680px) !important;
  max-width: 1680px !important;
}

@supports selector(.entry-content:has(.bbtdee)) {
  .entry-content:has(.bbtdee),
  .wp-block-post-content:has(.bbtdee) {
    max-width: none !important;
    overflow: visible !important;
  }

  .bb-page-content:has(.bbtdee) {
    padding-bottom: 0 !important;
  }
}

@supports selector(body:has(.bbtdee)) {
  body:has(.bbtdee) {
    overflow-x: clip;
  }

  body:has(.bbtdee) .bb-page-hero {
    display: none !important;
  }
}

@media (max-width: 620px) {
  .bbtdee-hero,
  .bbtdee-calculator,
  .bbtdee-results,
  .bbtdee-how {
    width: min(calc(100vw - 32px), 1680px) !important;
  }
}
