/* Homepage-inspired hero shared by the blog, categories and articles. */
.hs-blog-hero {
  --hero-cream: #fbf8f1;
  --hero-teal: #155e5c;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 560px;
  background: var(--hero-cream);
}
.hs-blog-hero::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 44%;
  background: url('/assets/862f52bd859a56ac0c42a1.webp') left center / auto 100% no-repeat;
  opacity: .52;
  mask-image: linear-gradient(to right,#000 38%,transparent 90%);
  pointer-events: none;
  z-index: -1;
}
.hs-blog-hero > .hs-blog-hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  display: block;
  width: 58%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  mask-image: linear-gradient(to right,transparent 15%,#000 43%);
  z-index: -1;
}
.hs-blog-hero .hs-blog-hero-copy {
  width: min(610px, 32vw);
  margin-left: 23%;
  padding: 52px 0;
}
.hs-blog-hero .hs-blog-hero-copy h1 {
  color: var(--hero-teal);
  font: 700 clamp(42px, 3.35vw, 64px)/1.03 Georgia, 'Times New Roman', serif;
  margin: 0 0 20px;
  text-wrap: balance;
  overflow-wrap: break-word;
}
.hs-blog-hero.hs-blog-hero-article .hs-blog-hero-copy h1 {
  font-size: clamp(38px, 3vw, 56px);
}
.hs-blog-hero .hs-blog-hero-copy p {
  color: #315655;
  font: 400 20px/1.5 Arial, sans-serif;
  margin: 0 0 28px;
}
.hs-blog-hero .hs-blog-hero-copy :is(.eyebrow,.article-category) {
  color: var(--hero-teal);
  font: 700 12px/1.4 Arial, sans-serif;
  letter-spacing: .14em;
  margin: 0 0 16px;
}
.hs-blog-hero .hs-blog-hero-copy :is(.breadcrumbs,.article-meta) {
  color: #315655;
  font: 400 14px/1.55 Arial, sans-serif;
  margin: 0 0 16px;
}
.hs-blog-hero .hs-blog-hero-copy .article-meta { margin-bottom: 0; }
.hs-blog-hero .hs-blog-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hs-blog-hero .hs-blog-hero-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 23px;
  border: 1px solid var(--hero-teal);
  border-radius: 9px;
  background: var(--hero-teal);
  color: #fff;
  font: 700 13px/1.3 Arial, sans-serif;
  text-transform: uppercase;
  letter-spacing: .025em;
  text-decoration: none;
}
.hs-blog-hero .hs-blog-hero-actions a + a { background: #fffdf9; color: var(--hero-teal); }
.hs-blog-hero .hs-blog-hero-actions a:hover { filter: brightness(.93); }
@media (max-width: 1150px) and (min-width: 761px) {
  .hs-blog-hero .hs-blog-hero-copy { margin-left: 12%; width: 42vw; }
  .hs-blog-hero::before { opacity: .28; }
}
@media (max-width: 760px) {
  .hs-blog-hero { min-height: 0; display: block; }
  .hs-blog-hero::before { width: 100%; height: 420px; opacity: .23; }
  .hs-blog-hero .hs-blog-hero-copy { width: auto; margin: 0; padding: 42px 24px 24px; }
  .hs-blog-hero .hs-blog-hero-copy h1,
  .hs-blog-hero.hs-blog-hero-article .hs-blog-hero-copy h1 { font-size: clamp(34px, 7vw, 48px); text-wrap: initial; }
  .hs-blog-hero .hs-blog-hero-copy p { font-size: 17px; margin-bottom: 20px; }
  .hs-blog-hero > .hs-blog-hero-photo {
    position: relative;
    inset: auto;
    width: 100%;
    height: clamp(245px, 60vw, 370px);
    mask-image: linear-gradient(to bottom,transparent,#000 23%);
  }
}

/* Extend the photo behind the copy before fading into the cream field. */
@media (min-width: 761px) {
  .hs-resource-hero > .hs-blog-hero-photo {
    width: 63%;
    mask-image: linear-gradient(to right,transparent 0%,rgba(0,0,0,.15) 22%,rgba(0,0,0,.65) 39%,#000 54%);
  }
  .hs-resource-hero::before { opacity: .43; }
}
