/* ── ACSP blog: listing + article styles ─────────────────────
   Layered on top of tokens.css + style.css + pages.css.
   Only adds blog-specific selectors; never overrides nav/footer
   chrome (those are shared across the site).
   ──────────────────────────────────────────────────────────── */

/* Hero variant for blog pages — sits on the standard .page-hero (beige
   paper-2 bg from pages.css). H1 inherits the dark navy color; we only
   tighten size + spacing here. */
.blog-hero {
  padding-bottom: 48px;
}
.blog-hero h1 {
  font-family: var(--f-serif, 'Arvo', Georgia, serif);
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.15;
  color: var(--navy-900, #081a33);
  margin: 12px 0 14px;
  max-width: 880px;
}
.blog-deck {
  color: var(--ink-2, #38465c);
  font-size: 18px;
  line-height: 1.55;
  max-width: 720px;
  margin-top: 6px;
}
.blog-hero .blog-breadcrumb {
  font-size: 13px;
  color: var(--muted, #6b7a91);
  margin-bottom: 14px;
}
.blog-hero .blog-breadcrumb a { color: inherit; }
.blog-hero .blog-breadcrumb a:hover { color: var(--accent, #ee6c1a); }
.blog-hero .blog-breadcrumb .current { color: var(--ink, #0b1628); }

/* ── Listing grid ───────────────────────────────────────── */

.blog-listing-section {
  padding: 64px 0 48px;
  background: var(--paper, #f6f3ec);
}
.blog-listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-listing-loading,
.blog-listing-empty,
.blog-listing-error {
  color: var(--muted, #6b7a91);
  font-size: 16px;
  padding: 24px 0;
}
.blog-listing-error { color: #b91c1c; }

.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line, #dde4ef);
  border-radius: var(--r-md, 14px);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  color: inherit;
  height: 100%;
}
.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 8px 24px -8px rgba(8,26,51,.15), 0 2px 6px rgba(8,26,51,.06));
  border-color: var(--blue-400, #4ea0ee);
}
.blog-card-img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--paper-2, #efe9dc);
}
.blog-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-img-placeholder {
  background: linear-gradient(135deg, var(--navy-700, #163463), var(--navy-600, #1f4a8a));
}
.blog-card-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.blog-card-meta {
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #6b7a91);
}
.blog-card-title {
  font-family: var(--f-serif, 'Arvo', Georgia, serif);
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink, #0b1628);
  margin: 0;
}
.blog-card-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2, #38465c);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card-cta {
  margin-top: auto;
  padding-top: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent, #ee6c1a);
}

/* ── Article hero image (between hero band and body) ──── */

.blog-hero-img {
  margin: 0;
  background: #fff;
}
.blog-hero-img img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  display: block;
}

/* ── Article body ─────────────────────────────────────── */

.blog-article {
  padding: 48px 0 64px;
  background: #fff;
}
.blog-body {
  font-size: 18px;
  line-height: 1.75;
  color: var(--ink, #0b1628);
}
.blog-body > * + * { margin-top: 1.1em; }
.blog-body h2 {
  font-family: var(--f-serif, 'Arvo', Georgia, serif);
  font-size: 30px;
  line-height: 1.2;
  color: var(--navy-900, #081a33);
  margin-top: 2em;
  margin-bottom: .5em;
}
.blog-body h3 {
  font-family: var(--f-sans, 'Inter', sans-serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-800, #0f2747);
  margin-top: 1.6em;
  margin-bottom: .3em;
}
.blog-body p { margin-top: 1.1em; }
.blog-body strong { color: var(--navy-900, #081a33); }
.blog-body a {
  color: var(--blue-500, #2e7fd6);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.blog-body a:hover { color: var(--accent, #ee6c1a); }
.blog-body ul, .blog-body ol {
  margin: 1.1em 0 1.1em 1.3em;
  padding-left: 0;
  list-style: revert;
}
.blog-body li { margin-top: .35em; }
.blog-body li::marker { color: var(--accent, #ee6c1a); }
.blog-body code {
  background: var(--paper-2, #efe9dc);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: .92em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.blog-body blockquote {
  border-left: 4px solid var(--accent, #ee6c1a);
  margin: 1.6em 0;
  padding: .25em 0 .25em 1.2em;
  color: var(--ink-2, #38465c);
  font-style: italic;
}
.blog-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.6em 0;
  font-size: 15px;
  background: #fff;
  border: 1px solid var(--line, #dde4ef);
  border-radius: var(--r-sm, 8px);
  overflow: hidden;
}
.blog-body th, .blog-body td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line, #dde4ef);
}
.blog-body th {
  background: var(--paper, #f6f3ec);
  font-weight: 700;
  color: var(--navy-900, #081a33);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .05em;
}
.blog-body tr:last-child td { border-bottom: none; }
.blog-body tr:nth-child(even) { background: var(--paper, #f6f3ec); }

/* ── Related posts (at bottom of articles) ────────────── */

.blog-related {
  background: var(--paper, #f6f3ec);
  padding: 56px 0 48px;
  border-top: 1px solid var(--line, #dde4ef);
}
.blog-related-heading {
  font-family: var(--f-serif, 'Arvo', Georgia, serif);
  font-size: 26px;
  color: var(--navy-900, #081a33);
  margin-bottom: 26px;
}
.blog-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
}
.blog-related-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line, #dde4ef);
  border-radius: var(--r-md, 14px);
  overflow: hidden;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.blog-related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md, 0 8px 24px -8px rgba(8,26,51,.15));
}
.blog-related-img {
  aspect-ratio: 16 / 9;
  background: var(--paper-2, #efe9dc);
  overflow: hidden;
}
.blog-related-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.blog-related-body { padding: 18px 18px 20px; }
.blog-related-date {
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--muted, #6b7a91);
  display: block;
  margin-bottom: 8px;
}
.blog-related-title {
  font-family: var(--f-serif, 'Arvo', Georgia, serif);
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink, #0b1628);
  margin-bottom: 8px;
}
.blog-related-excerpt {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2, #38465c);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-related-foot {
  margin-top: 26px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.blog-related-all {
  color: var(--accent, #ee6c1a);
  font-weight: 700;
  font-size: 15px;
}
.blog-related-all:hover { text-decoration: underline; }

/* ── Mobile tightening ────────────────────────────────── */

@media (max-width: 720px) {
  .blog-body { font-size: 17px; }
  .blog-body h2 { font-size: 26px; }
  .blog-body h3 { font-size: 20px; }
  .blog-card-title { font-size: 19px; }
  .blog-related-heading { font-size: 22px; }
  .blog-listing-section { padding: 40px 0 32px; }
  .blog-article { padding: 36px 0 48px; }
}
