.blog-detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-color: var(--black);
  background-image: url("../images/blog-detail-hero-bg.png");
  background-position: top center;
  background-repeat: no-repeat;
  background-size: cover;
}

/* Same glow as simple-hero — pinned below the announcement bar. */
.blog-detail-hero-gradient {
  position: absolute;
  top: var(--announcement-bar-height, 34px);
  left: 0;
  width: 100%;
  height: auto;
  z-index: -1;
  pointer-events: none;
  user-select: none;
  min-width: 1440px;
}

.blog-detail-hero-inner {
  position: relative;
  z-index: 1;
  --hero-top-space: 100px;
  /* header.php pulls the content up by the header height; add it back. */
  padding-top: calc(var(--header-height, 0px) + var(--hero-top-space));
  padding-bottom: 100px;
  display: grid;
  grid-template-columns: 1.36fr 1fr;
  align-items: center;
  gap: 80px;
  @media (max-width: 1179px) {
    --hero-top-space: 80px;
    padding-bottom: 80px;
    grid-template-columns: 1fr;
    gap: 60px;
  }
  @media (max-width: 767px) {
    --hero-top-space: 60px;
    padding-bottom: 60px;
    gap: 40px;
  }
}

.blog-detail-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 40px;
  @media (max-width: 1179px) {
    gap: 32px;
  }
  @media (max-width: 767px) {
    gap: 28px;
  }
}

.blog-detail-hero .blog-detail-hero-heading {
  max-width: none;
  width: 100%;
}

/* A post title runs long, so it sits a step below the full hero scale. */
.blog-detail-hero .title-bottom-section h1.heading {
  font: var(--heading-h2);
  letter-spacing: var(--letter-spacing-m1-5);
}

.blog-detail-hero-heading .description {
  margin-top: 4px;
}

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

.blog-detail-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font: var(--body-b4);
  color: var(--silver);
}

.blog-detail-hero-meta-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.blog-detail-hero-meta-item:first-child {
  gap: 8px;
  color: var(--snow);
  /* Mobile gives the author a row of its own, pairing date with read time. */
  @media (max-width: 767px) {
    flex-basis: 100%;
  }
}

/* Hairline divider between entries, so the markup stays free of separators. */
.blog-detail-hero-meta-item + .blog-detail-hero-meta-item::before {
  content: "";
  width: 1px;
  height: 20px;
  background-color: var(--silver);
}

/* Once the author wraps to its own row the next entry begins a line, so the
   divider that would sit at the start of it has to go. Scoped to the section to
   outrank the rule above rather than relying on source order. */
@media (max-width: 767px) {
  .blog-detail-hero .blog-detail-hero-meta-item:nth-child(2)::before {
    content: none;
  }
}

/* Holds either the author's photo or the Coredrive mark, at one fixed size. */
.blog-detail-hero-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background-color: var(--white);
  overflow: hidden;
}

.blog-detail-hero-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The mark carries its own background, so let it fill the circle rather than
   float inside it — overflow: hidden above rounds it off. */
.blog-detail-hero-avatar svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* ======================
   Featured image
====================== */

.blog-detail-hero-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: var(--radius-12);
  @media (max-width: 767px) {
    border-radius: var(--radius-8);
  }
}
