/**
 * Help Guide × Page Builder V2 — hero authorship, longform rail, ctaBar, alignment.
 */

/* Proof strip stays on the bottom edge of the full-height hero. */
body.delamere-help-guide section.hero.hero--page-builder,
body.delamere-help-guide .hero--page-builder .hero__sticky {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
}

body.delamere-help-guide .hero--page-builder .hero__fold-foot .proof-strip,
body.delamere-help-guide .hero--page-builder .hero__sticky:has(.proof-strip) .proof-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  margin-top: 0;
}

/* Long mobile copy must not pin the hero to the screen and cover Doctify. */
@media (max-width: 1023px) {
  body.delamere-help-guide section.hero.hero--page-builder,
  body.delamere-help-guide .hero--page-builder .hero__sticky,
  body.delamere-help-guide .hero--page-builder .hero__sticky:has(.proof-strip) {
    height: auto;
    min-height: 0;
    overflow: visible;
    justify-content: flex-start;
    padding-bottom: 0;
  }

  body.delamere-help-guide .hero--page-builder .hero__content {
    z-index: auto;
  }

  body.delamere-help-guide .hero--page-builder .hero__fold-foot .proof-strip,
  body.delamere-help-guide .hero--page-builder .hero__sticky:has(.proof-strip) .proof-strip {
    position: relative;
    bottom: auto;
  }
}

body.delamere-help-guide .hero--page-builder .hero__authorship:not(:has(*)) {
  display: none;
}

/* Empty layout row was rendering as a cream band under the hero. */
body.delamere-help-guide section.content-rows:not(:has(.outline > *)) {
  display: none;
}

/* —— Hero: left-aligned copy + author under proof strip —— */
body.delamere-help-guide .hero--page-builder .hero__inner,
body.delamere-help-guide .hero--page-builder .hero__wysiwyg {
  text-align: left;
}

body.delamere-help-guide .hero--page-builder .hero__fold-foot {
  align-items: stretch;
}

/* Author byline sits in-flow above the pinned proof strip. */
body.delamere-help-guide .hero--page-builder .hero__sticky:has(.proof-strip) .hero__authorship {
  margin-bottom: clamp(8px, 1.2vh, 12px);
}

body.delamere-help-guide .hero--page-builder .hero__authorship {
  width: 100%;
  padding: 14px var(--hero-gutter) 0;
  border-top: 1px solid rgba(255, 255, 255, .12);
  margin-top: 4px;
}

body.delamere-help-guide .hero--page-builder .hero__authorship .help-guide-authorship-meta {
  margin: 0;
  max-width: none;
}

body.delamere-help-guide .hero--page-builder .hero__authorship .blog-author-byline,
body.delamere-help-guide .hero--page-builder .hero__authorship .blog-author-byline__text,
body.delamere-help-guide .hero--page-builder .hero__authorship .blog-author-byline a {
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  line-height: 1.5;
}

body.delamere-help-guide .hero--page-builder .hero__authorship .blog-author-byline a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.delamere-help-guide .hero--page-builder .hero__authorship .blog-author-byline a:hover {
  color: #fff;
}

/* —— Longform grid: use addiction-style rail + section bands —— */
@media (min-width: 1024px) {
  body.delamere-help-guide .pageBuilder--v2 .longform__grid .pb-v2-body--help-guide {
    display: contents;
  }

  body.delamere-help-guide .pageBuilder--v2 .longform__grid .longform__body.pb-v2-body--help-guide > section.alt-simple-content,
  body.delamere-help-guide .pageBuilder--v2 .longform__grid .longform__body.pb-v2-body--help-guide > section.link-list-box {
    --longform-side: max(var(--gutter), (100vw - var(--longform-wrap-max)) / 2);
    grid-column: 1 / -1;
    scroll-margin-top: calc(var(--header-solid-h) + 32px);
    padding-top: clamp(46px, 7vh, 78px);
    padding-bottom: clamp(46px, 7vh, 78px);
    padding-left: calc(var(--longform-side) + var(--longform-rail) + var(--longform-gap));
    padding-right: var(--longform-side);
    border-top: 1px solid rgba(69, 72, 59, .08);
  }

  body.delamere-help-guide .pageBuilder--v2 .longform__grid .longform__body.pb-v2-body--help-guide > section.alt-simple-content:first-child {
    padding-top: clamp(16px, 2vh, 24px);
    border-top: 0;
  }
}

body.delamere-help-guide .pageBuilder--v2 .longform__grid .pb-v2-body--help-guide > section.alt-simple-content:nth-child(odd) {
  background: var(--cream);
}

body.delamere-help-guide .pageBuilder--v2 .longform__grid .pb-v2-body--help-guide > section.alt-simple-content:nth-child(even) {
  background: var(--white);
}

body.delamere-help-guide .pageBuilder--v2 .longform__grid .pb-v2-body--help-guide > section.link-list-box {
  background: var(--cream);
}

body.delamere-help-guide .pageBuilder--v2 .longform__grid .pb-v2-body--help-guide > section.alt-simple-content .outline,
body.delamere-help-guide .pageBuilder--v2 .longform__grid .pb-v2-body--help-guide > section.alt-simple-content .data-content {
  max-width: none;
  margin: 0;
  text-align: left;
}

body.delamere-help-guide .pageBuilder--v2 .longform__grid .pb-v2-body--help-guide > section.pb-v2-faqs .outline,
body.delamere-help-guide .pageBuilder--v2 .longform__grid .pb-v2-body--help-guide > section.pb-v2-faqs .section-head,
body.delamere-help-guide .pageBuilder--v2 .longform__grid .pb-v2-body--help-guide > section.pb-v2-faqs .faq__q,
body.delamere-help-guide .pageBuilder--v2 .longform__grid .pb-v2-body--help-guide > section.pb-v2-faqs .faq__a {
  text-align: left;
}

body.delamere-help-guide .pageBuilder--v2 .longform__grid .pb-v2-body--help-guide > section.alt-simple-content .data-content.prose {
  max-width: none;
}

body.delamere-help-guide .pageBuilder--v2 .quick-linkblock header.data-header {
  display: none;
}

body.delamere-help-guide .pageBuilder--v2 section.posts---recent-blogs.background header.data-header,
body.delamere-help-guide .pageBuilder--v2 section.posts---recent-blogs.background header.data-header p {
  color: #fff;
}

body.delamere-help-guide .pageBuilder--v2 .pb-v2-body--help-guide h2[id],
body.delamere-help-guide .pageBuilder--v2 .pb-v2-body--help-guide h3[id] {
  scroll-margin-top: calc(var(--header-solid-h) + 32px);
  text-align: left;
}

body.delamere-help-guide .pageBuilder--v2 .pb-v2-body--help-guide h2,
body.delamere-help-guide .pageBuilder--v2 .pb-v2-body--help-guide h3,
body.delamere-help-guide .pageBuilder--v2 .pb-v2-body--help-guide p,
body.delamere-help-guide .pageBuilder--v2 .pb-v2-body--help-guide li {
  text-align: left;
}

/* —— ctaBar shortcode — ghost-gold CTA on cream panel —— */
body.delamere-help-guide .pageBuilder--v2 .pb-v2-body .ctaBar {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  box-sizing: border-box;
  margin: 28px 0;
  padding: 24px;
  max-width: none;
  background: var(--grey);
  border-radius: var(--radius);
  text-align: left;
  font-family: Montserrat, sans-serif;
  font-size: clamp(16px, 1.6vw, 18px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--olive-dark);
}

body.delamere-help-guide .pageBuilder--v2 .pb-v2-body .ctaBar .contactButton {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 48px;
  height: auto !important;
  margin: 0 !important;
  padding: 12px 22px !important;
  border-radius: 8px !important;
  border: 1px solid var(--gold) !important;
  background: rgba(255, 255, 255, .55) !important;
  color: var(--olive) !important;
  font-family: Montserrat, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  text-align: center;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  white-space: normal !important;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

body.delamere-help-guide .pageBuilder--v2 .pb-v2-body .ctaBar .contactButton:hover,
body.delamere-help-guide .pageBuilder--v2 .pb-v2-body .ctaBar .contactButton:focus {
  background: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--olive-dark) !important;
  text-decoration: none !important;
  opacity: 1 !important;
}

@media (max-width: 767px) {
  body.delamere-help-guide .hero--page-builder .hero__authorship {
    padding-inline: var(--gutter);
  }

  body.delamere-help-guide .pageBuilder--v2 .pb-v2-body .ctaBar {
    padding: 20px 16px;
  }
}
