/* ============================================================
   SWIFTSKY LLP — Blog / article styles
   Hybrid theme: serif reading column on the SWIFTSKY brand
   palette (navy / sky / yellow). Relies on the CSS variables
   defined in style.css, which must load first.
   All article rules are scoped under .blog-post / .blog-hero
   so they never leak into the shared header/footer.
   ============================================================ */

/* ---- Reading column ---- */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 22px; }

/* ---- Article hero band ---- */
.blog-hero {
  background: linear-gradient(135deg, var(--navy), var(--sky));
  color: #fff;
  text-align: center;
  padding: 3.25rem 0 3rem;
  margin-top: var(--header-h);          /* clear the fixed header */
  position: relative; overflow: hidden;
}
.blog-hero.after-photo { margin-top: 0; } /* pillar: hero photo already cleared the header */
.blog-hero .eyebrow {
  font-family: var(--font-body);
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.75rem; color: var(--yellow-dark);
  margin-bottom: 1rem;
}
.blog-hero h1 {
  font-family: var(--font-accent);
  color: #fff;
  font-size: clamp(1.9rem, 4.2vw, 2.7rem);
  line-height: 1.18; max-width: 640px; margin: 0 auto 1rem;
}
.blog-hero .sub {
  font-family: var(--font-body); font-size: 1.05rem;
  color: rgba(255,255,255,0.85); max-width: 560px; margin: 0 auto;
}
.blog-hero .byline {
  font-family: var(--font-body); font-size: 0.8rem;
  color: rgba(255,255,255,0.62); margin-top: 1.25rem;
}

/* Full-bleed hero photo (pillar) — sits directly under the fixed header */
.blog-hero-photo {
  margin-top: var(--header-h);
  width: 100%; height: 320px; object-fit: cover; display: block;
}
@media (max-width: 640px) { .blog-hero-photo { height: 200px; } }

/* ---- Article body ---- */
.blog-post {
  background: var(--off-white);
  padding: 2.75rem 0 3.75rem;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text-dark);
  line-height: 1.75;
}
.blog-post p  { margin: 0 0 1.1rem; font-size: 1.125rem; color: var(--text-dark); }
.blog-post .lede { font-size: 1.3rem; }
.blog-post h2 {
  font-family: var(--font-body);
  font-size: clamp(1.4rem, 2.6vw, 1.65rem); line-height: 1.25;
  margin: 2.75rem 0 0.85rem; color: var(--navy);
  scroll-margin-top: calc(var(--header-h) + 12px);
}
.blog-post h3 {
  font-family: var(--font-body);
  font-size: 1.2rem; margin: 1.75rem 0 0.6rem; color: var(--sky);
}
.blog-post a { color: #1a5e8f; text-decoration: underline; }
.blog-post a:hover { color: var(--navy); }
.blog-post ul, .blog-post ol { margin: 0 0 1.25rem 1.4rem; }
.blog-post li { margin-bottom: 0.5rem; font-size: 1.125rem; }
.blog-post strong { color: var(--text-dark); }
.blog-post .stat { font-family: var(--font-body); font-weight: 700; color: var(--sky); }

/* ---- Breadcrumb (spokes) ---- */
.blog-post .crumb { font-family: var(--font-body); font-size: 0.8rem; color: var(--text-mid); margin-bottom: 0.5rem; }
.blog-post .crumb a { color: var(--text-mid); text-decoration: none; }
.blog-post .crumb a:hover { text-decoration: underline; }

/* ---- Table of contents + related-links cards ---- */
.blog-post .toc, .blog-post .related {
  background: var(--white);
  border: 1px solid var(--sky-light);
  border-left: 4px solid var(--sky);
  border-radius: var(--radius-sm);
  padding: 1.4rem 1.6rem;
  font-family: var(--font-body);
}
.blog-post .toc { margin: 0.5rem 0 2.25rem; }
.blog-post .related { margin: 2.5rem 0 0; }
.blog-post .toc h2, .blog-post .related h2 {
  font-family: var(--font-body);
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em;
  margin: 0 0 0.75rem; color: var(--text-mid);
}
.blog-post .toc ol { margin: 0 0 0 1.1rem; }
.blog-post .toc li, .blog-post .related li { font-size: 0.95rem; margin-bottom: 0.35rem; }
.blog-post .toc a, .blog-post .related a { text-decoration: none; color: #1a5e8f; }
.blog-post .toc a:hover, .blog-post .related a:hover { text-decoration: underline; }

/* ---- Figures / infographics ---- */
.blog-post figure {
  margin: 1.9rem 0;
  background: var(--white);
  border: 1px solid var(--sky-light);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.4rem 1rem;
}
.blog-post figure svg, .blog-post figure canvas { max-width: 100%; display: block; margin: 0 auto; }
.blog-post figure.photo { padding: 0; overflow: hidden; }
.blog-post figure.photo img { width: 100%; height: 300px; object-fit: cover; display: block; border-radius: var(--radius-md) var(--radius-md) 0 0; }
@media (max-width: 640px) { .blog-post figure.photo img { height: 200px; } }
.blog-post figure.photo figcaption { padding: 0.75rem 1.1rem 1rem; margin-top: 0; }
.blog-post figcaption {
  font-family: var(--font-body); font-size: 0.82rem;
  color: var(--text-mid); text-align: center; margin-top: 0.9rem;
}
.blog-post .chart-box { position: relative; width: 100%; height: 340px; }

/* ---- Callout ---- */
.blog-post .callout {
  background: var(--sky-light);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem; margin: 1.6rem 0;
  font-family: var(--font-body); font-size: 1rem; color: var(--text-dark);
}
.blog-post .callout strong { color: var(--navy); }

/* ---- Tables ---- */
.blog-post table {
  width: 100%; border-collapse: collapse; margin: 0 0 1.5rem;
  font-family: var(--font-body); font-size: 0.95rem;
}
.blog-post th, .blog-post td {
  text-align: left; padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--sky-light); vertical-align: top;
}
.blog-post th { color: var(--navy); background: var(--off-white); }

/* ============================================================
   Blog index / listing
   ============================================================ */
.blog-index { background: var(--white); }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem; margin-top: 2.75rem;
}
.post-card {
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--sky-light);
  border-radius: var(--radius-md);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-card-img {
  width: 100%; height: 190px; object-fit: cover; display: block;
  background: linear-gradient(135deg, var(--sky-light), var(--sky));
}
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.3rem 1.4rem 1.5rem; }
.post-card .tag {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sky); margin-bottom: 0.5rem;
}
.post-card h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 0.5rem; line-height: 1.25; }
.post-card p { font-size: 0.9rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 1rem; flex: 1; }
.post-card .read {
  font-weight: 600; font-size: 0.85rem; color: var(--sky);
  display: inline-flex; align-items: center; gap: 0.35rem;
}
.post-card:hover .read { gap: 0.6rem; }

/* Featured (pillar) — full-width row card on wide screens */
.post-card.featured { grid-column: 1 / -1; }
@media (min-width: 760px) {
  .post-card.featured { flex-direction: row; }
  .post-card.featured .post-card-img { width: 45%; aspect-ratio: auto; height: 240px; align-self: center; }
  .post-card.featured .post-card-body { width: 55%; justify-content: center; }
  .post-card.featured h3 { font-size: 1.5rem; }
}
