/* 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 > :is(img,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]) .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;
  }
}
