.swd-blog-hero .swd-package-hero__panel { max-width: 820px; }
.swd-blog-hero .swd-package-hero__lead { max-width: 680px; }

.swd-blog-intro { padding-bottom: 2rem; }
.swd-blog-intro__heading { max-width: 760px; margin: 0 auto; text-align: center; }
.swd-blog-intro__heading h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
.swd-blog-intro__heading p:last-child { max-width: 680px; margin-inline: auto; color: var(--swd-colour-muted); }

.swd-featured-article {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr);
  overflow: hidden;
  border: 1px solid var(--swd-colour-border);
  border-radius: var(--swd-radius-md);
  background: var(--swd-colour-surface);
  box-shadow: var(--swd-shadow-md);
}
.swd-featured-article__image { min-height: 360px; }
.swd-featured-article__image img { width: 100%; height: 100%; object-fit: cover; }
.swd-featured-article__body { display: flex; flex-direction: column; justify-content: center; padding: clamp(1.5rem, 4vw, 3.25rem); }
.swd-article-topic { margin-bottom: .65rem; color: var(--swd-colour-blue); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.swd-featured-article h3 { font-size: clamp(1.7rem, 3.5vw, 2.65rem); }
.swd-article-meta { margin-bottom: 1rem; color: var(--swd-colour-muted); font-size: .86rem; }
.swd-article-excerpt { color: var(--swd-colour-muted); }
.swd-article-link { display: inline-flex; width: fit-content; min-height: 44px; align-items: center; margin-top: .5rem; padding: .65rem 0; color: var(--swd-colour-blue); font-weight: 700; text-decoration: none; }
.swd-article-link:hover { text-decoration: underline; }

.swd-latest { background: var(--swd-colour-surface-alt); }
.swd-blog-card { display: flex; flex-direction: column; height: 100%; padding: 0; overflow: hidden; }
.swd-blog-card__image { aspect-ratio: 16 / 9; overflow: hidden; background: var(--swd-colour-surface-alt); }
.swd-blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 220ms ease; }
.swd-blog-card:hover .swd-blog-card__image img { transform: scale(1.03); }
.swd-blog-card__body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: var(--swd-space-4); }
.swd-blog-card h3 { font-size: 1.35rem; }
.swd-blog-card__body .swd-article-link { margin-top: auto; }

.swd-blog-library { padding-top: 1rem; }
.swd-blog-library__heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: var(--swd-space-4); }
.swd-blog-library__heading h2 { margin: 0; font-size: clamp(1.8rem, 3.5vw, 2.6rem); }
.swd-blog-library__heading p { margin: 0; color: var(--swd-colour-muted); }

.swd-blog-note { max-width: 760px; margin: 0 auto; color: var(--swd-colour-muted); text-align: center; }

@media (max-width: 820px) {
  .swd-featured-article { grid-template-columns: 1fr; }
  .swd-featured-article__image { min-height: 260px; max-height: 420px; }
  .swd-blog-library__heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .swd-blog-hero { min-height: 520px; height: 70svh; max-height: 640px; }
  .swd-featured-article__image { min-height: 210px; }
  .swd-featured-article__body { padding: 1.35rem; }
  .swd-blog-card__body { padding: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .swd-blog-card__image img { transition: none; }
}

/* Phase 10B validation fixes: preserve the shared design and allow enlarged text to reflow. */
.swd-blog-hero { display: grid; height: auto; min-height: clamp(480px, 58vh, 600px); max-height: none; }
.swd-blog-hero .swd-package-hero__content { height: auto; }
.swd-featured-article__body, .swd-blog-card__body { min-width: 0; overflow-wrap: anywhere; }
.swd-featured-article__body { padding: min(clamp(1.5rem, 4vw, 3.25rem), 52px); }
.swd-blog-card__body { padding: min(var(--swd-space-4), 24px); }
.swd-featured-article__body > *, .swd-blog-card__body > * { max-width: 100%; }
.swd-article-link { gap: .35em; }
.swd-featured-article a:focus-visible, .swd-blog-card a:focus-visible { outline-offset: -3px; }
body[data-page-key="blog"] .swd-final-cta .swd-eyebrow { color: #c9d0ff; }
#latest-articles { scroll-margin-top: 70px; }
/* Allow the existing navigation to wrap; no replacement navigation or JS. */
body[data-page-key="blog"] .swd-navlinks > a,
body[data-page-key="blog"] .swd-nav-disclosure__button { white-space: normal; overflow-wrap: anywhere; }
@media (min-width: 1081px) { body[data-page-key="blog"] .swd-navlinks { flex-wrap: wrap; } }
@media (max-width: 680px) { .swd-blog-hero { min-height: clamp(500px, 68svh, 620px); } }
@media (max-width: 560px) {
  .swd-blog-hero { min-height: clamp(520px, 70svh, 640px); }
  .swd-featured-article__body { padding: min(1.35rem, 24px); }
  .swd-blog-card__body { padding: min(1.25rem, 24px); }
}
