/* ============================================================
   Blog Hero — "Stay in the know" featured + sidebar
   Band 1 of /news index. Dark (surface-deep) background.
   Two-col: main ~62% left, sidebar ~38% right; stacks <900px.
   ============================================================ */

/* Section: full-bleed, no inline padding — inner wrapper centers */
.flm-bloghero {
  padding-inline: 0;
}

/* Inner container — centered column, proportional padding */
.flm-bloghero__inner {
  box-sizing: border-box;
  width: min(92vw, 1840px);
  margin-inline: auto;
  padding-block: clamp(3rem, 6vw, 5.5rem);
  display: grid;
  grid-template-columns: 62% 1fr;
  gap: clamp(2rem, 3vw, 3.5rem);
  align-items: start;
}

/* ── Main column ──────────────────────────────────────────── */

/* Headline — spans both columns as a header row so the feature image (left) and
   the sidebar (right) start on the same line below it (BugHerd #51). */
.flm-bloghero__title {
  grid-column: 1 / -1;
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.1;
  color: var(--wp--preset--color--text-primary);
  max-width: 22ch;
}

/* Feature (left) and sidebar (right) sit in the content row, top-aligned. */
.flm-bloghero__main { grid-column: 1; }
.flm-bloghero__side { grid-column: 2; }

/* Featured card — image with title/meta overlaid at bottom */
.flm-bloghero__feature {
  display: block;
  position: relative;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  background: var(--wp--preset--color--surface-elev-1);
  box-sizing: border-box;
}

.flm-bloghero__feature img {
  display: block;
  width: 100%;
  height: clamp(220px, 28vw, 420px);
  object-fit: cover;
  border-radius: 8px;
}

/* Milky panel across the card bottom (BugHerd #52, per Figma): frosted
   near-white band carrying the title + meta in dark text, so the copy reads
   on any photo. Replaces the old dark bottom gradient.
   BugHerd #166: Apple-style milky glass — translucent, heavy blur — rather
   than a near-solid fill. The near-solid tint stays as the fallback for
   browsers without backdrop-filter. */
.flm-bloghero__feature-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: block;
  padding: 1.1rem 1.5rem 1rem;
  background: rgba(244, 246, 249, 0.88);
}

@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .flm-bloghero__feature-panel {
    background: rgba(244, 246, 249, 0.58);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
  }
}

.flm-bloghero__feature-title {
  display: block;
  color: var(--wp--preset--color--surface-deep);
  font-weight: 600;
  font-size: clamp(1rem, 1.6vw, 1.4rem);
  line-height: 1.25;
}

.flm-bloghero__feature-meta {
  display: block;
  margin-top: 0.4rem;
  color: var(--wp--preset--color--surface-elev-3);
  font-size: var(--wp--preset--font-size--caption);
}

/* Hover state on featured card */
.flm-bloghero__feature:hover .flm-bloghero__feature-title {
  color: var(--wp--preset--color--accent-pink);
}

/* ── Sidebar column ───────────────────────────────────────── */

.flm-bloghero__side {
  padding-top: clamp(0rem, 1vw, 1rem);
}

/* Eyebrow */
.flm-bloghero__side-eyebrow {
  margin: 0 0 .4rem;
  color: var(--wp--preset--color--text-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: var(--wp--preset--font-size--caption);
}

/* Section heading */
.flm-bloghero__side-head {
  margin: 0 0 clamp(1.25rem, 2vw, 2rem);
  color: var(--wp--preset--color--text-primary);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  line-height: 1.2;
}

/* List reset */
.flm-bloghero__side-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 1.5vw, 1.5rem);
}

/* Each sidebar item — link wraps thumbnail + text */
.flm-bloghero__side-list li a {
  display: grid;
  grid-template-columns: 80px 1fr;
  grid-template-rows: auto auto;
  column-gap: 1rem;
  row-gap: .25rem;
  text-decoration: none;
  box-sizing: border-box;
  padding-bottom: clamp(.75rem, 1vw, 1rem);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.flm-bloghero__side-list li:last-child a {
  border-bottom: none;
  padding-bottom: 0;
}

/* Thumbnail */
.flm-bloghero__side-list img {
  grid-column: 1;
  grid-row: 1 / 3;
  width: 80px;
  height: 56px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  align-self: center;
}

/* Title */
.flm-bloghero__side-title {
  grid-column: 2;
  grid-row: 1;
  display: block;
  color: var(--wp--preset--color--text-primary);
  font-weight: 600;
  font-size: var(--wp--preset--font-size--caption);
  line-height: 1.3;
}

/* Meta */
.flm-bloghero__side-meta {
  grid-column: 2;
  grid-row: 2;
  display: block;
  color: var(--wp--preset--color--text-muted);
  font-size: var(--wp--preset--font-size--caption);
}

/* Hover on sidebar items */
.flm-bloghero__side-list li a:hover .flm-bloghero__side-title {
  color: var(--wp--preset--color--accent-pink);
}

/* ── Responsive: stack under 900px ───────────────────────── */
@media (max-width: 899px) {
  .flm-bloghero__inner {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 5vw, 3rem);
  }

  /* Single column: title, feature, then sidebar all stack in column 1. */
  .flm-bloghero__main,
  .flm-bloghero__side {
    grid-column: 1;
  }

  .flm-bloghero__title {
    max-width: 100%;
  }

  .flm-bloghero__feature img {
    height: clamp(180px, 40vw, 320px);
  }

  .flm-bloghero__side-list img {
    width: 72px;
    height: 50px;
  }
}
