/* Content rhythm shared by the static pages and the interactive homepage.
   Header positioning and its reserved space are owned by unified-header.css. */

.hb-unified-site #main > .hero {
  padding-block: clamp(44px, 6vw, 76px) clamp(40px, 5vw, 64px);
}

.hb-unified-site #main > .hero h1 {
  max-width: 24ch;
  font-size: clamp(34px, 4.5vw, 62px);
  line-height: 1.1;
  letter-spacing: -.035em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hb-unified-site #main > .hero.wide h1 {
  max-width: 28ch;
}

.hb-unified-site #main > .testimonials-hero h1 {
  max-width: 29ch;
  font-size: clamp(34px, 4.2vw, 58px);
}

.hb-unified-site #main > .hero .lede {
  max-width: 65ch;
  margin-top: 24px;
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.65;
}

.hb-unified-site #main > .hero .hero-ctas {
  gap: 12px 16px;
  margin-top: 30px;
}

.hb-unified-site #main > section.blk {
  padding-block: clamp(56px, 7vw, 96px);
}

.hb-unified-site #main > section.blk > .wrap > h2 {
  max-width: 28ch;
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.15;
  text-wrap: balance;
}

.hb-unified-site .crumbs {
  padding-top: 20px;
  font-size: 13px;
  line-height: 1.6;
}

/* The legacy interactive views reserve space for their former header inline.
   Remove that second allowance now that the shared header reserves its space. */
.hb-home-shell main[data-screen-label]:not([data-screen-label="Home"]) > header {
  padding-top: clamp(48px, 6vw, 80px) !important;
  padding-bottom: clamp(40px, 5vw, 68px) !important;
}

.hb-home-shell main[data-screen-label] > header h1 {
  max-width: 24ch !important;
  font-size: clamp(36px, 4.8vw, 68px) !important;
  line-height: 1.08 !important;
  letter-spacing: -.035em !important;
  text-wrap: balance;
  overflow-wrap: break-word;
}

.hb-home-shell main[data-screen-label="Home"] > header {
  min-height: calc(100svh - 80px) !important;
  padding-top: 48px !important;
}

.hb-home-shell main[data-screen-label="About"] > header > div:last-child {
  margin-top: 24px !important;
}

.hb-home-shell main[data-screen-label="Article"] > article {
  padding-top: clamp(40px, 5vw, 72px) !important;
}

.hb-home-shell main[data-screen-label="Article"] > article > h1 {
  font-size: clamp(32px, 4vw, 52px) !important;
  line-height: 1.14 !important;
}

.hb-home-shell main[data-screen-label] > section > div > h2 {
  font-size: clamp(28px, 3.3vw, 44px) !important;
  line-height: 1.15 !important;
  text-wrap: balance;
}

.hb-home-shell .hb-home-statement {
  padding-block: clamp(56px, 7vw, 96px) !important;
}

.hb-home-shell .hb-home-statement p {
  max-width: 54ch;
  font-size: clamp(23px, 2.5vw, 34px) !important;
  line-height: 1.45 !important;
  letter-spacing: -.018em !important;
  text-wrap: pretty;
}

/* Keep the immediate, search-readable homepage presentation consistent too. */
.hb-home-shell .hb-static__hero {
  padding-block: clamp(56px, 7vw, 100px);
}

.hb-home-shell .hb-static h1 {
  max-width: 24ch;
  font-size: clamp(36px, 4.8vw, 68px);
  line-height: 1.08;
  text-wrap: balance;
}

.hb-home-shell .hb-static h2 {
  max-width: 28ch;
  font-size: clamp(28px, 3.3vw, 44px);
  line-height: 1.15;
}

@media (max-width: 767px) {
  .hb-unified-site .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
  .hb-unified-site #main > .hero {
    padding-block: 36px 40px;
  }

  .hb-unified-site #main > .hero .hero-ctas > .btn {
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }

  .hb-home-shell main[data-screen-label="Home"] > header {
    min-height: calc(100svh - 68px) !important;
  }

  .hb-home-shell main[data-screen-label]:not([data-screen-label="Home"]) > header {
    padding-top: 40px !important;
  }

  .hb-home-shell main[data-screen-label="Article"] > article {
    padding-top: 36px !important;
  }
}

@media (max-width: 479px) {
  .hb-unified-site .cards,
  .hb-unified-site .grid.g2,
  .hb-unified-site .grid.g3,
  .hb-unified-site .split,
  .hb-unified-site .stats {
    grid-template-columns: minmax(0, 1fr);
  }
  .hb-unified-site .card,
  .hb-unified-site .cell {
    min-width: 0;
    overflow-wrap: break-word;
  }
}
