/* Authored first-frame openings retain one document-order title and Continue. */
.fc-opening-compact-copy {display:none}
@media(max-width:700px) {
  .fc-opening-wide-copy {display:none}
  .fc-opening-compact-copy {display:inline}
}
body.fc-site:has([data-fc-opening-prepared]) {
  --fc-prepared-head-height:max(52px,3.25rem);
  --fc-prepared-hero-height:min(33.3984375vw,max(140px,calc(100svh - var(--fc-prepared-head-height) - 195px)));
}
@media(max-width:1020px) {
  body.fc-site:has([data-fc-opening-prepared]) {--fc-prepared-head-height:62px}
}
@media(max-width:700px) {
  body.fc-site:has([data-fc-opening-prepared]) {--fc-prepared-hero-height:var(--fc-mobile-hero-height)}
}
body.fc-site:has([data-fc-opening-prepared]) .fc-visual-hero.fc-visual-hero.fc-visual-hero.fc-visual-hero {
  height:var(--fc-prepared-hero-height) !important;
  min-height:var(--fc-prepared-hero-height) !important;
  aspect-ratio:auto !important;
}
body.fc-site [data-fc-opening-prepared][data-fc-opening-prepared][data-unified-opening] {
  --unified-opening-top:calc(var(--fc-prepared-head-height) + var(--fc-prepared-hero-height));
}
@media(max-width:700px) {
  body.fc-site [data-fc-opening-prepared][data-fc-opening-prepared][data-unified-opening] {
    --unified-opening-top:calc(var(--fc-prepared-head-height) + var(--fc-prepared-hero-height) - 1px);
  }
}

body.fc-site [data-fc-opening-prepared] > .fc-unified-continue {min-inline-size:151.4px}
.fc-opening-compact-region {display:none !important}
@media(max-width:700px) {
  .fc-opening-compact-region {display:block !important}
}
body.fc-site:has([data-fc-opening-prepared]) #main-content {scroll-margin-top:var(--fc-anchor-offset,68px)}
.fc-prepared-opening-lead {display:none}
@media(min-width:701px) {
  body.fc-site:has([data-fc-prepared-topic]) {
    --fc-prepared-hero-height:min(33.3984375vw,max(140px,calc(100svh - var(--fc-prepared-head-height) - 175px)));
  }
}
@media(max-width:700px) {
  body.fc-site [data-fc-opening-prepared][data-fc-opening-prepared] .fc-prepared-opening-lead {
    display:block;max-width:38ch;color:var(--fc-muted);font-size:.9rem;line-height:1.45;text-wrap:pretty;
  }
}
/* On short wide viewports, contain the original full panorama and feather
   only its edges. Normal desktop and approved mobile art are unchanged. */
@media(min-width:701px) and (min-aspect-ratio:2/1) {
  body.fc-site:has([data-fc-opening-prepared]) .fc-visual-hero.fc-visual-hero.fc-visual-hero::before {
    left:50% !important;right:auto !important;
    width:min(100%,calc(var(--fc-prepared-hero-height) * 3)) !important;
    max-width:none !important;transform:translateX(-50%) !important;
    background-size:contain !important;background-position:center !important;
    mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);
  }
  body.fc-site:has([data-fc-opening-prepared]) .fc-visual-hero.fc-visual-hero > img,
  body.fc-site:has([data-fc-opening-prepared]) .fc-visual-hero.fc-visual-hero > picture > img {
    left:50% !important;right:auto !important;width:min(100%,calc(var(--fc-prepared-hero-height) * 3)) !important;
    height:100% !important;max-width:none !important;transform:translateX(-50%) !important;
    object-fit:contain !important;object-position:center !important;
    mask-image:linear-gradient(90deg,transparent,#000 4%,#000 96%,transparent);
  }
}
.fc-prepared-retained-lead {display:none}
@media(max-width:700px) and (max-height:37.5em) {
  body.fc-site [data-fc-opening-prepared][data-fc-opening-prepared][data-fc-prepared-long-guide] .fc-prepared-opening-lead {display:none}
  body.fc-site:has([data-fc-opening-prepared]) .fc-prepared-retained-lead {
    display:block;max-width:38ch;margin:0 auto 16px;text-align:center;color:var(--fc-muted);
  }
}
@media (min-width:701px) {
  body.fc-site:has([data-fc-prepared-directory]) {--fc-prepared-hero-height:33.3984375vw}
}
.fc-prepared-directory-retained {display:none}
@media (min-width:701px) and (max-height:calc(33.3984375vw + 245px)) {
  body.fc-site [data-fc-prepared-directory] .fc-page-intro-copy {display:none}
  body.fc-site:has([data-fc-prepared-directory]) .fc-prepared-directory-retained {
    display:block;margin:0;max-width:850px;text-align:center;
  }
  body.fc-site:has([data-fc-prepared-directory]) .fc-visual-hero.fc-visual-hero.fc-visual-hero::before {
    left:0 !important;right:0 !important;width:100% !important;transform:scale(1.004) !important;
    mask-image:none;background-size:cover !important;
  }
}

body.fc-site .fc-prepared-bible-note {scroll-margin-top:var(--fc-anchor-offset,68px)}
@media(min-width:701px) {
  body.fc-site .fc-prepared-bible-note {display:block !important;padding:0;height:0;overflow:hidden}
}
@media(min-width:701px) and (max-height:calc(33.3984375vw + 245px)) {
  body.fc-site .fc-prepared-bible-note {height:48px}
}
@media(min-width:701px) {
  body.fc-site .fc-prepared-bible-note > * {display:none !important}
}

/* Keep the long original study introduction in reading order on short openings. */
.fc-prepared-authored-retained {display:none}
.fc-prepared-topic-continuation {
  scroll-margin-top:var(--fc-anchor-offset,68px);
  text-align:center;
}
@media(max-width:700px) and (max-height:37.5em), (min-width:701px) and (max-height:calc(33.3984375vw + 245px)) {
  body.fc-site [data-fc-prepared-optional-copy] .fc-page-intro-copy {display:none}
  .fc-prepared-authored-retained {display:block;max-width:850px;margin:0 auto 16px;color:var(--fc-muted)}
}
@media(min-width:701px) {
  body.fc-site:has([data-fc-prepared-optional-copy]) {--fc-prepared-hero-height:33.3984375vw}
}
@media(min-width:701px) and (min-aspect-ratio:2/1) {
  body.fc-site:has([data-fc-prepared-optional-copy]):not(:has([data-fc-special-topic])) .fc-visual-hero.fc-visual-hero.fc-visual-hero::before {
    left:0 !important;right:0 !important;width:100% !important;transform:scale(1.004) !important;
    mask-image:none;background-size:cover !important;
  }
}

.fc-prepared-special-below {display:none}
@media(max-width:700px) {
  .fc-prepared-special-below {display:block}
  body.fc-site :is([data-fc-special-topic="atonement"],[data-fc-special-topic="book-of-mormon-evidences"]) .fc-page-intro-copy {display:none}
  body.fc-site:has([data-fc-special-topic="atonement"],[data-fc-special-topic="book-of-mormon-evidences"]) .fc-prepared-authored-retained {display:block;margin:0;max-width:850px}
  body.fc-site:has([data-fc-special-topic="what-is-eternal-marriage"]) .fc-prepared-authored-retained {display:none}
  body.fc-site [data-fc-special-topic="what-is-eternal-marriage"] .fc-page-intro-copy {display:block}
}
@media(min-width:701px) {
  body.fc-site :is([data-fc-special-topic="holy-ghost"],[data-fc-special-topic="plan-of-salvation"],[data-fc-special-topic="who-was-joseph-smith"],[data-fc-special-topic="atonement"],[data-fc-special-topic="book-of-mormon-evidences"]) .fc-page-intro-copy {display:none}
  body.fc-site:has([data-fc-special-topic="holy-ghost"],[data-fc-special-topic="plan-of-salvation"],[data-fc-special-topic="who-was-joseph-smith"],[data-fc-special-topic="atonement"],[data-fc-special-topic="book-of-mormon-evidences"]) .fc-prepared-authored-retained {display:block;margin:0;max-width:850px}
  body.fc-site:has([data-fc-special-topic="holy-ghost"],[data-fc-special-topic="plan-of-salvation"],[data-fc-special-topic="who-was-joseph-smith"],[data-fc-special-topic="atonement"],[data-fc-special-topic="book-of-mormon-evidences"]) {
    --fc-prepared-hero-height:min(33.3984375vw,max(140px,calc(100svh - var(--fc-prepared-head-height) - 175px)));
  }
}
@media(max-width:700px) and (min-height:54em) {
  body.fc-site [data-fc-special-topic="atonement"] .fc-page-intro-copy {display:block}
  body.fc-site:has([data-fc-special-topic="atonement"]) .fc-prepared-authored-retained {display:none}
}
@media(min-width:701px) and (max-height:calc(33.3984375vw + 196px)) {
  body.fc-site:has([data-fc-special-topic="holy-ghost"],[data-fc-special-topic="plan-of-salvation"]) {
    --fc-prepared-hero-height:min(33.3984375vw,max(140px,calc(100svh - var(--fc-prepared-head-height) - 198px)));
  }
}
@media(max-width:700px) and (min-height:54em) {
  body.fc-site:has([data-fc-special-topic="atonement"]) .fc-unified-opening-continuation#fc-opening-retained {
    display:block;padding:0;margin:0;height:0;overflow:hidden;
  }
}
@media(max-width:700px) {body.fc-site [data-fc-special-topic="atonement"] .fc-eyebrow {letter-spacing:.12em}}
@media(min-width:701px) and (min-aspect-ratio:2/1) {
  body.fc-site:has([data-fc-special-topic="atonement"]) .fc-visual-hero.fc-visual-hero > picture > img {position:absolute;top:0}
}
@media(max-width:700px) and (min-height:54em) {
  body.fc-site:has([data-fc-special-topic="atonement"]) .fc-unified-opening-continuation#fc-opening-retained {position:relative;top:32px}
}

@media(max-width:700px) and (max-height:37.5em) {
    body.fc-site [data-fc-special-topic="god-our-heavenly-father"] .fc-page-intro-copy {display:block}
    body.fc-site:has([data-fc-special-topic="god-our-heavenly-father"]) .fc-prepared-authored-retained {display:none}
    body.fc-site [data-fc-special-topic="birth-of-christ"][data-fc-opening-prepared][data-fc-prepared-long-guide] .fc-prepared-opening-lead,
    body.fc-site [data-fc-special-topic="melchizedek-priesthood-restoration"][data-fc-opening-prepared][data-fc-prepared-long-guide] .fc-prepared-opening-lead {display:block}
    body.fc-site :is([data-fc-special-topic="birth-of-christ"],[data-fc-special-topic="melchizedek-priesthood-restoration"]) ~ .fc-unified-opening-continuation .fc-prepared-retained-lead,
    body.fc-site:has([data-fc-special-topic="birth-of-christ"],[data-fc-special-topic="melchizedek-priesthood-restoration"]) .fc-prepared-retained-lead {display:none}
}
@media(max-width:700px) {
    body.fc-site [data-fc-special-topic="book-of-mormon-evidences"] .fc-eyebrow {letter-spacing:.12em}
}
@media(max-width:700px) and (min-height:54em) {
    body.fc-site [data-fc-special-topic="book-of-mormon-evidences"] .fc-page-intro-copy {display:block}
    body.fc-site:has([data-fc-special-topic="book-of-mormon-evidences"]) .fc-prepared-authored-retained {display:none}
}
@media(min-width:701px) and (max-height:calc(33.3984375vw + 186px)) {
    body.fc-site:has([data-fc-special-topic="god-our-heavenly-father"],[data-fc-special-topic="what-is-eternal-marriage"]) {
        --fc-prepared-hero-height:clamp(140px,calc(100svh - var(--fc-prepared-head-height) - 145px),33.3984375vw)
    }
}
@media(min-width:701px) and (min-height:calc(33.3984375vw + 186px)) and (min-aspect-ratio:2/1) {
    body.fc-site:has([data-fc-special-topic="god-our-heavenly-father"],[data-fc-special-topic="what-is-eternal-marriage"]) .fc-visual-hero.fc-visual-hero.fc-visual-hero::before {
        left:0!important;right:0!important;width:100%!important;transform:scale(1.004)!important;
        mask-image:none;background-size:cover!important
    }
}

@media(max-width:700px) and (min-height:37.5em) {
    body.fc-site:has([data-fc-special-topic="plan-of-salvation"],[data-fc-special-topic="holy-ghost"],[data-fc-special-topic="who-was-joseph-smith"]) .fc-unified-opening-continuation#fc-opening-retained {
        display:block;height:0;padding:0;margin:0;overflow:hidden
    }
}
@media(max-width:700px) and (min-height:54em) {
    body.fc-site:has([data-fc-special-topic="book-of-mormon-evidences"]) .fc-unified-opening-continuation#fc-opening-retained {
        display:block;height:0;padding:0;margin:0;overflow:hidden
    }
}
@media(max-width:700px) {
    body.fc-site:has([data-fc-special-topic="melchizedek-priesthood-restoration"]) .fc-unified-opening-continuation#fc-opening-retained {
        padding:24px 20px;
    }
}

@media(max-width:700px) {
    body.fc-site:has([data-fc-special-topic="melchizedek-priesthood-restoration"],[data-fc-special-topic="what-is-eternal-marriage"]) .fc-unified-opening-continuation#fc-opening-retained {
        padding:24px 20px;max-width:720px;gap:12px;line-height:1.6;color:var(--fc-muted)
    }
    body.fc-site:has([data-fc-special-topic="melchizedek-priesthood-restoration"],[data-fc-special-topic="what-is-eternal-marriage"]) .fc-unified-opening-continuation#fc-opening-retained > * {margin:0}
}
@media(max-width:700px) {
    body.fc-site:has([data-fc-special-topic="birth-of-christ"]) .fc-unified-opening-continuation#fc-opening-retained {
        display:block;height:0;padding:0;margin:0;overflow:hidden
    }
}
