/* Blog hub and article extras. Builds on the existing article/guide styles. */

/* Article detail H1: one step below global resource-detail-grid scale */
.resource-detail-hero .resource-detail-grid h1 {
  font-size: clamp(2.45rem, 4.2vw, 4.1rem);
}

@media (max-width: 640px) {
  .resource-detail-hero .resource-detail-grid h1 {
    font-size: clamp(2.05rem, 10vw, 2.95rem);
  }
}

/* -------------------------------------------------------- hub hero --- */
.blog-page-hero .page-hero-media img {
  object-position: center 42%;
}

.blog-page-hero .page-hero-content .eyebrow {
  margin-bottom: 22px;
}

.blog-page-hero .page-hero-content h1 {
  max-width: 920px;
}

/* ---------------------------------------------------------------- hub --- */
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.blog-filter {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink-soft);
  font-family: inherit;
  font-size: .74rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.blog-filter:hover { border-color: var(--gold); color: var(--ink); }
.blog-filter.is-active { border-color: var(--graphite); background: var(--graphite); color: var(--white); }
.blog-filter:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }

.blog-count { margin: 0 0 26px; color: var(--ink-soft); font-size: .72rem; font-weight: 700; }
.blog-index .guide-resource-card h3 { margin-top: 10px; }
.blog-index .guide-resource-card h3 a { color: inherit; }
.blog-index .guide-resource-card h3 a:hover { color: var(--gold-deep); }
.blog-index .guide-resource-card .eyebrow { font-size: .64rem; }
.blog-index .guide-resource-card[hidden] { display: none; }

/* ------------------------------------------------------------ article --- */
.article-callout {
  margin: 34px 0 0;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal, var(--gold));
  background: var(--paper);
}
.article-callout p { margin: 0; font-size: .92rem; font-weight: 600; line-height: 1.65; }

.article-scenario {
  margin: 34px 0 0;
  padding: 26px 28px 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  background: var(--paper-warm, var(--paper));
}
.article-scenario > strong {
  display: block;
  margin-bottom: 14px;
  color: var(--gold-deep);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.article-scenario p { margin: 0 0 13px; font-size: .95rem; line-height: 1.72; }
.article-scenario p:last-child { margin-bottom: 0; }

.article-copy > section ul { margin: 18px 0 0; padding-left: 20px; }
.article-copy > section li { margin-bottom: 10px; font-size: 1rem; line-height: 1.7; }
.article-copy > section:last-of-type { margin-bottom: 45px; }
.article-intro p strong { color: var(--ink); }
.article-layout > aside > a:not(.button) { display: block; line-height: 1.45; }

/* -------------------------------------------------------- where next --- */
.blog-next-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.blog-next-card {
  display: block;
  padding: 30px 28px;
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.blog-next-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: var(--shadow-sm); }
.blog-next-card h3 { margin: 0 0 10px; font-size: 1.25rem; }
.blog-next-card p { margin: 0 0 16px; color: var(--ink-soft); font-size: .85rem; }
.blog-next-card .text-link { font-size: .75rem; }
.blog-back { margin: 40px 0 0; text-align: center; }

@media (max-width: 900px) {
  .blog-next-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .blog-filters { gap: 8px; }
  .blog-filter { padding: 9px 15px; font-size: .7rem; }
  .article-callout { padding: 20px; }
  .article-scenario { padding: 22px 20px 24px; }
}

@media (max-width: 767px) {
  .blog-page-hero .page-hero-media img {
    object-position: center 40%;
  }
}
