.blog-details {
  padding: 100px 0 50px;
  background-color: var(--white);
  @media (max-width: 1179px) {
    padding: 80px 0 40px;
  }
  @media (max-width: 767px) {
    padding: 60px 0 30px;
  }
}

.blog-details-content {
  max-width: 960px;
  margin: 0 auto;
}

/* ======================
   Subscribe
====================== */

/* The box sits inside .rich-text-data, so its rules are scoped to
   .blog-details to outrank the post-copy h2/p/img/iframe styles. */
.blog-details-subscribe {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin: 48px 0 72px;
  padding: 40px 72px;
  text-align: center;
  border-radius: var(--radius-12);
  background-color: var(--black);
  @media (max-width: 1179px) {
    margin: 32px 0 52px;
    padding: 32px 20px;
    gap: 28px;
  }
  @media (max-width: 767px) {
    margin: 24px 0 40px;
    padding: 24px 20px;
    gap: 24px;
  }
}

/* Semi-transparent glow laid over the dark fill, behind the copy. */
.blog-details .blog-details-subscribe-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  min-width: 960px;
  height: 100%;
  max-width: none;
  margin: 0;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  top: -2px;
}

.blog-details-subscribe-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.blog-details .blog-details-subscribe-title {
  margin: 0;
  font: var(--heading-h5);
  letter-spacing: var(--letter-spacing-m1);
  color: var(--white);
}

.blog-details .blog-details-subscribe-text {
  max-width: 460px;
  margin: 0;
  font: var(--body-b4);
  color: var(--pearl);
}

.blog-details .blog-details-subscribe-form {
  width: 100%;
  border: 0;
  height: 120px;
  @media (max-width: 767px) {
    height: unset;
  }
}

/* ======================
   Byline
====================== */

.blog-details-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  @media (max-width: 1179px) {
    padding-top: 20px;
  }
  @media (max-width: 767px) {
    padding-top: 16px;
  }
}

/* Circle keeps its size when the name wraps beside it. */
.blog-details-author-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 56px;
  height: 56px;
  border: 1px solid var(--pearl);
  border-radius: var(--radius-full);
  overflow: hidden;
  @media (max-width: 1179px) {
    width: 52px;
    height: 52px;
  }
}

/* The mark ships at an intrinsic 56x56, so it has to be told to follow the
   circle when that shrinks at the breakpoint — otherwise overflow crops it. */
.blog-details-author-mark svg {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-full);
}

/* An author photo fills the circle; the mark sits at its own size inside it. */
.blog-details-author-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-details-author-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.blog-details-author-label {
  font: var(--body-b4);
  color: var(--off-black);
}

.blog-details-author-name {
  font: var(--heading-h6);
  letter-spacing: var(--letter-spacing-m0-5);
  color: var(--dark);
}
