.blog-body {
  margin: 0;
  background: #f7f4f1;
  color: #1e3349;
  font-family: "Source Sans 3", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: clip;
}
.blog-body h1,
.blog-body h2,
.blog-body h3 {
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.blog-wrap { width: min(100% - 2.5rem, 90rem); margin-inline: auto; }
.blog-hero {
  position: relative;
  background: #183048;
  color: #fff;
  overflow: hidden;
  padding: clamp(2.75rem, 7vw, 5.25rem) 0;
}
.blog-hero.has-photo { display: grid; align-items: end; min-height: clamp(16rem, 42vw, 26rem); }
.blog-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 22%; }
.blog-hero.has-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(24, 48, 72, 0.78), rgba(24, 48, 72, 0.18) 72%);
}
@media (max-width: 640px) {
  .blog-hero-bg { object-position: 80% 30%; }
  .blog-hero.has-photo::after { background: linear-gradient(180deg, rgba(24, 48, 72, 0.62), rgba(24, 48, 72, 0.82)); }
}
.blog-hero-copy { position: relative; z-index: 1; max-width: 38rem; }
.blog-eyebrow {
  margin: 0 0 0.6rem;
  color: #a8d8e0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.blog-hero h1 { margin: 0 0 0.7rem; font-size: clamp(2.1rem, 5vw, 3.4rem); color: #fff; }
.blog-hero p { margin: 0; max-width: 38rem; color: #f7f4f1; }
.blog-crumb-wrap { padding-top: 1rem; }
.blog-crumb ol { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; margin: 0; padding: 0; list-style: none; color: #5c6b7a; }
.blog-crumb li:not(:last-child)::after { content: "→"; margin-left: 0.5rem; }
.blog-crumb a { color: #1e3349; }
.blog-section { padding: 1.5rem 0 3rem; }
.blog-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.blog-filters a {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid #d9e1e6;
  border-radius: 999px;
  background: #fff;
  color: #1e3349;
  text-decoration: none;
}
.blog-filters a[aria-current="page"] { background: #1e3349; color: #fff; }
.blog-kicker { margin: 0 0 0.35rem; color: #5c6b7a; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.featured {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: stretch;
  background: #fff;
  border: 1px solid #d9e1e6;
  border-radius: 16px;
  overflow: hidden;
}
.featured-media { display: block; height: 100%; min-height: 100%; background: #e7eef1; }
.featured-media img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.featured-copy { display: flex; flex-direction: column; justify-content: center; gap: 0.7rem; padding: clamp(1.2rem, 3vw, 2.4rem); }
.featured-copy h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.5rem); }
.featured-copy h2 a,
.blog-card h2 a { color: #1e3349; text-decoration: none; }
.featured-copy p,
.blog-card p { margin: 0; }
.blog-more { margin-top: auto; }
.blog-more a { color: #1e3349; font-weight: 700; }
.section-label { margin: 2rem 0 1rem; font-size: clamp(1.5rem, 2vw, 2rem); }
.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #d9e1e6;
  border-radius: 14px;
  overflow: hidden;
}
.blog-card-media { display: block; aspect-ratio: 4 / 3; background: #e7eef1; overflow: hidden; }
.blog-card-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-card-fallback { display: grid; place-items: center; height: 100%; min-height: 8rem; color: #5c6b7a; }
.blog-card-body { display: flex; flex-direction: column; gap: 0.55rem; flex: 1; padding: 1rem 1rem 1.1rem; }
.blog-card h2 { margin: 0; font-size: 1.25rem; }
.blog-meta { color: #5c6b7a; font-size: 0.92rem; }
.blog-empty { padding: 1rem 0 2rem; }
.blog-pager { display: flex; gap: 1rem; align-items: center; margin-top: 1.5rem; }
.blog-cta { background: #1e3349; color: #fff; padding: clamp(2rem, 5vw, 3.5rem) 0; }
.blog-cta h2 { margin: 0 0 0.6rem; color: #fff; }
.blog-cta p { margin: 0; max-width: 40rem; }
.blog-cta-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.1rem; }
.blog-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.blog-btn-light { background: #fff; color: #1e3349; }
.blog-btn-line { border: 1px solid rgba(255, 255, 255, 0.55); color: #fff; }
.blog-btn-navy { background: #1e3349; color: #fff; }
.blog-btn-line-dark { border: 1px solid #d9e1e6; background: #fff; color: #1e3349; }
.article-header { padding-top: 0.5rem; max-width: 72ch; }
.article-header h1 { margin: 0 0 0.7rem; font-size: clamp(2rem, 4vw, 3rem); }
.article-excerpt { margin: 0 0 0.8rem; font-size: 1.15rem; }
.preview-flag { margin: 0 0 0.8rem; padding: 0.6rem 0.8rem; background: #fff; border: 1px solid #eaa762; border-radius: 8px; }
.article-figure { margin: 1.25rem auto; }
.article-figure img { display: block; width: 100%; height: auto; border-radius: 14px; }
.article-figure figcaption { margin-top: 0.45rem; color: #5c6b7a; }
.article-layout { display: grid; grid-template-columns: minmax(0, 72ch); justify-content: start; }
.prose { max-width: 72ch; font-size: 1.05rem; line-height: 1.75; }
.prose h2 { margin: 1.8rem 0 0.55rem; font-size: 1.7rem; }
.prose h3 { margin: 1.4rem 0 0.4rem; font-size: 1.3rem; }
.prose a { color: #1e3349; font-weight: 650; }
.prose blockquote { margin: 1.2rem 0; padding-left: 1rem; border-left: 3px solid #a8d8e0; color: #183048; }
.prose img { max-width: 100%; height: auto; }
.prose .table-scroll { max-width: 100%; overflow-x: auto; }
.prose table { width: 100%; border-collapse: collapse; }
.prose th,
.prose td { padding: 0.45rem 0.55rem; border-bottom: 1px solid #d9e1e6; text-align: left; }
.article-faq { max-width: 72ch; padding-bottom: 1rem; }
.article-faq details { background: #fff; border: 1px solid #d9e1e6; border-radius: 10px; padding: 0.8rem 1rem; margin: 0.6rem 0; }
.article-faq summary { font-weight: 700; cursor: pointer; }
.blog-share { display: flex; flex-wrap: wrap; gap: 1rem; padding: 0.5rem 0 2rem; }
.blog-card-media img { transition: transform 0.35s ease; }
@media (hover: hover) {
  .blog-card:hover .blog-card-media img { transform: scale(1.03); }
}
@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .featured { grid-template-columns: 1fr; }
  .featured-media img { height: auto; }
  }
@media (max-width: 700px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-cta-actions { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) {
  .blog-card-media img { transition: none; }
  .blog-card:hover .blog-card-media img { transform: none; }
}

/* 404 page (shares the site chrome) */
.nf-wrap { width: min(100% - 2rem, 72rem); margin-inline: auto; }
.nf { display: grid; justify-items: start; gap: 1rem; padding: clamp(2.5rem, 6vw, 5rem) 0; }
.nf-kicker {
  margin: 0;
  color: #1e3349;
  font-size: clamp(4.25rem, 12vw, 7rem);
  font-weight: 650;
  line-height: 0.9;
  border-bottom: 4px solid #a8d8e0;
  width: fit-content;
}
.nf h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.nf-lead { max-width: 38rem; margin: 0; color: #5c6b7a; font-size: 1.125rem; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.nf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #1e3349;
  font-weight: 700;
  text-decoration: none;
}
.nf-btn-primary { background: #1e3349; color: #fff; }
.nf-btn-secondary { background: #fff; border-color: #d9e1e6; }
.nf-btn-quiet { text-decoration: underline; text-underline-offset: 0.18em; }
.nf-links { display: flex; flex-wrap: wrap; gap: 0.55rem 1rem; margin: 0; padding: 0; list-style: none; }
.nf-links a { color: #1e3349; }
@media (max-width: 700px) {
  .nf-actions { flex-direction: column; align-items: stretch; }
}

/* The blog ends with its own CTA band; the Astro footer already reserves room for the mobile sticky bar. */
.site-main.blog-main { padding-bottom: 0; }
.blog-main > .nf-wrap { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
