/* =========================================
   CLUSTER STYLESHEET: BLOG PAGES
   Load AFTER /assets/css/site.css (global) on every page whose
   page_cluster_css = cluster-blog-pages.css (template_type = blog_hub,
   blog_post, or blog_category_hub: /blog/, /blog/category/anxiety/,
   individual blog posts, etc.)

   Three parts, two of them genuinely new authorship:

   1. *** NEW COMPONENT *** .blog-hero - does not exist in the source
      site.css. Deliberately simpler than .money-hero/.location-hero:
      single column, no media card, since blog posts and the blog hub
      don't have a dedicated hero photo the way service pages do. Uses
      the existing --h1-blog token (already defined, already wired into
      the shared typography-scale block in site.css for font-size at
      every breakpoint). One gap that block doesn't cover: it sizes
      .blog-hero__title but not .blog-hero__lead, so this file sets the
      lead's font-size directly off --lead-text to stay consistent with
      the other four hero variants. Review before build.

   2. *** NEW BASE COMPONENT *** .blog-resource-grid / .blog-resource-card
      - only a body.blog-hub-page-scoped REFINEMENT of these classes
      existed in the source file (image-height/flex-layout tweaks for
      symmetry); the actual base grid/card definition was never written
      anywhere. Authored below, modeled on the existing .resource-card
      pattern so it matches the visual language already used for
      resource cards elsewhere on the site.

   3. The existing "BLOG HUB CARD SYMMETRY SYSTEM" body.blog-hub-page
      refinement block, moved here verbatim from the source site.css
      (it only ever applied to blog-hub-page anyway, so it belongs with
      the rest of this cluster's CSS rather than in global).
   ========================================= */

.blog-hero {
  padding: 56px 0 72px;
  background: var(--color-beige);
}

.blog-hero__inner {
  max-width: 760px;
}

.blog-hero__title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: var(--h1-blog);
  line-height: 1.06;
  letter-spacing: -0.025em;
  color: var(--color-near-black);
}

.blog-hero__lead {
  max-width: 680px;
  font-size: var(--lead-text);
  line-height: 1.65;
  color: var(--color-charcoal);
}

.blog-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  color: var(--color-muted-gray);
  font-size: 0.92rem;
  font-weight: 600;
}

/* BASE COMPONENT - blog resource grid/card (hub + related-posts use) */

.blog-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 34px;
}

.blog-resource-card {
  display: grid;
  gap: 0;
  border-radius: var(--radius-md);
  background: var(--color-soft-white);
  border: 1px solid var(--color-light-ui-gray);
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.04);
  overflow: hidden;
}

.blog-resource-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: center;
}

.blog-resource-card__body {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.blog-resource-card__body .eyebrow {
  margin-bottom: 0;
}

.blog-resource-card__body strong {
  display: block;
  color: var(--color-near-black);
  font-size: 1.05rem;
  line-height: 1.3;
}

.blog-resource-card__body > span:not(.eyebrow) {
  display: block;
  color: var(--color-charcoal);
  line-height: 1.5;
}

.blog-resource-card__actions {
  display: grid;
  gap: 8px;
  padding: 0 20px 20px;
}

.blog-resource-card__actions a {
  color: var(--color-plum);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* RESPONSIVE - base grid/card only. The blog-hub-page symmetry
   refinements below have their own responsive rules. */
@media (max-width: 980px) {
  .blog-resource-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .blog-hero {
    padding: 40px 0 52px;
  }
}

/* =========================================
   BLOG HUB CARD SYMMETRY SYSTEM
   Equal image heights, consistent card structure, and aligned link
   actions - scoped to body.blog-hub-page only. Moved verbatim from
   the source site.css (unchanged).
   ========================================= */

body.blog-hub-page .blog-resource-grid {
  align-items: stretch;
}

body.blog-hub-page .blog-resource-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  overflow: hidden;
  padding: 0;
}

body.blog-hub-page .blog-resource-card > img {
  width: 100%;
  height: 188px;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  flex: 0 0 auto;
}

body.blog-hub-page .blog-resource-card__body {
  display: grid;
  gap: 10px;
  padding: 20px 20px 12px;
  flex: 1 1 auto;
}

body.blog-hub-page .blog-resource-card__body .eyebrow {
  margin-bottom: 0;
  min-height: 1.1em;
}

body.blog-hub-page .blog-resource-card__body strong {
  display: block;
  min-height: 3.2em;
  line-height: 1.28;
}

body.blog-hub-page .blog-resource-card__body > span:not(.eyebrow) {
  display: block;
  color: var(--color-charcoal);
  line-height: 1.5;
}

body.blog-hub-page .blog-resource-card__actions {
  display: grid;
  gap: 8px;
  padding: 0 20px 20px;
  margin-top: auto;
}

body.blog-hub-page .blog-resource-card__actions a {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  line-height: 1.35;
}

body.blog-hub-page .blog-resource-card__actions a + a {
  margin-top: 0;
}

@media (min-width: 981px) {
  body.blog-hub-page .blog-resource-card > img {
    height: 190px;
  }
}

@media (max-width: 980px) {
  body.blog-hub-page .blog-resource-card > img {
    height: 220px;
  }

  body.blog-hub-page .blog-resource-card__body strong {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  body.blog-hub-page .blog-resource-card > img {
    height: 210px;
  }

  body.blog-hub-page .blog-resource-card__body,
  body.blog-hub-page .blog-resource-card__actions {
    padding-left: 18px;
    padding-right: 18px;
  }

  body.blog-hub-page .blog-resource-card__actions {
    padding-bottom: 18px;
  }
}
