/* Local integration seam: current Lincoln Block theme + V28 scroll story. */

.lb-live-home-preview .lb-header {
  position: relative;
  z-index: 20;
}

.lb-live-home-preview .lb-home-main {
  overflow: visible;
}

.lb-live-home-preview .lb-scroll-story {
  width: 100%;
  margin: 0;
}

.lb-live-home-preview .entry-content {
  position: relative;
  z-index: 1;
}

.lb-live-home-preview .entry-content > .lb-home-section:first-child {
  border-top: 1px solid rgba(217, 164, 65, 0.3);
}

.lb-live-home-preview .lb-scroll-story__continue {
  color: #efe8dc;
}

.lb-live-home-preview .lb-scroll-story__continue span {
  color: var(--lb-gold);
}

.lb-live-home-preview .lb-scroll-story__eyebrow,
.lb-live-home-preview .lb-scroll-story__timeline-labels button.is-complete .lb-scroll-story__timeline-number {
  color: var(--lb-gold);
}

.lb-live-home-preview .lb-scroll-story__intro::before {
  border-left-color: rgba(217, 164, 65, 0.72);
}

.lb-live-home-preview .lb-scroll-story__status-rule,
.lb-live-home-preview .lb-scroll-story__timeline-fill,
.lb-live-home-preview .lb-scroll-story__timeline-thumb,
.lb-live-home-preview .lb-scroll-story__progress-fill {
  background: var(--lb-gold);
}

.lb-live-home-preview .lb-scroll-story__timeline-labels button:hover,
.lb-live-home-preview .lb-scroll-story__timeline-labels button:focus-visible,
.lb-live-home-preview .lb-scroll-story__timeline-labels button.is-active {
  border-right-color: var(--lb-gold);
}

@media (max-width: 720px) {
  body.lb-live-home-preview {
    --lb-mobile-site-header-height: 98px;
    --lb-mobile-admin-bar-height: 0px;
  }

  body.admin-bar.lb-live-home-preview {
    --lb-mobile-admin-bar-height: 46px;
  }

  .lb-live-home-preview .lb-header {
    position: sticky;
    top: var(--lb-mobile-admin-bar-height);
    z-index: 30;
    height: var(--lb-mobile-site-header-height);
    overflow: visible;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
  }

  /*
   * WordPress places the live header inside a template-part wrapper whose
   * height is only the header itself. A sticky child cannot travel beyond
   * that short containing block, so the wrapper must own the sticky state.
   * The runtime-added class is the compatibility path; :has() prevents a
   * first-paint jump in browsers that support it.
   */
  .lb-live-home-preview .lb-header-shell,
  .lb-live-home-preview .wp-block-template-part:has(> .lb-header) {
    position: sticky;
    top: var(--lb-mobile-admin-bar-height);
    z-index: 30;
    height: var(--lb-mobile-site-header-height);
  }

  .lb-live-home-preview .lb-header-shell > .lb-header,
  .lb-live-home-preview .wp-block-template-part:has(> .lb-header) > .lb-header {
    position: relative;
    top: 0;
  }

  .lb-live-home-preview .lb-header-top {
    box-sizing: border-box;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
    width: 100%;
    height: 50px;
    padding: 6px 10px;
    justify-items: stretch;
    text-align: left;
  }

  .lb-live-home-preview .lb-logo-link {
    align-items: center;
    justify-content: flex-start;
  }

  .lb-live-home-preview .lb-logo {
    width: 104px;
  }

  .lb-live-home-preview .lb-search {
    display: none;
  }

  .lb-live-home-preview .lb-utility-nav {
    justify-content: flex-end;
    gap: 10px;
    overflow: visible;
    font-size: 0.78rem;
  }

  .lb-live-home-preview .lb-theme-toggle {
    min-height: 26px;
    padding: 3px 6px;
    font-size: 0.66rem;
  }

  .lb-live-home-preview .lb-primary-nav {
    box-sizing: border-box;
    width: 100%;
    min-height: 48px;
    height: 48px;
    margin: 0;
    padding: 0;
  }

  .lb-live-home-preview .lb-primary-nav .wp-block-navigation__container {
    min-height: 48px;
    gap: 14px;
    padding: 0 14px;
  }

  .lb-live-home-preview .lb-primary-nav .wp-block-navigation-item,
  .lb-live-home-preview .lb-primary-nav a,
  .lb-live-home-preview .lb-primary-nav .wp-block-navigation-item__content {
    min-height: 48px;
    height: 48px;
    font-size: 0.82rem;
  }

  .lb-live-home-preview .lb-scroll-story__stage {
    top: calc(var(--lb-mobile-site-header-height) + var(--lb-mobile-admin-bar-height));
    height: calc(100svh - var(--lb-mobile-site-header-height) - var(--lb-mobile-admin-bar-height));
    min-height: 0;
  }

  .lb-live-home-preview .lb-scroll-story__continue {
    right: 46px;
    bottom: 4px;
    left: auto;
    font-size: 0.54rem;
  }
}

@media (max-width: 720px) and (max-height: 650px) {
  .lb-live-home-preview .lb-scroll-story__intro {
    padding: 10px 13px;
  }

  .lb-live-home-preview .lb-scroll-story__headline,
  .lb-live-home-preview .lb-scroll-story h2.lb-scroll-story__headline,
  .lb-live-home-preview .lb-scroll-story__intro[data-lb-phase-intro="0"] .lb-scroll-story__headline {
    font-size: clamp(1.9rem, 10vw, 2.2rem);
    line-height: 0.94;
  }

  .lb-live-home-preview .lb-scroll-story__eyebrow {
    margin-bottom: 7px;
    font-size: 0.62rem;
  }

  .lb-live-home-preview .lb-scroll-story__lede {
    margin-top: 10px;
    font-size: 0.8rem;
    line-height: 1.35;
  }
}
