/* =========================================================================
   BLOG-SPECIFIC ADDITIONS — layered on top of the main site's style.css.
   File: assets/blog-extra.css
   Adds things the shared main-site stylesheet doesn't have: post cards,
   single-post layout, pagination, and the footer "Field Staff Portal" CTA
   bar (self-contained here since it isn't in the live style.css yet).
   ========================================================================= */

/* ---- Footer "Field Staff Portal" CTA bar (self-contained — not yet in
   the shared style.css, so defined here so the blog works independently) ---- */
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.cta-actions .btn { white-space: nowrap; }

.footer-staff-cta {
  background: var(--navy-800); border-bottom: 1px solid rgba(255,255,255,0.1);
  padding: 28px 0;
}
.footer-staff-cta .container {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.footer-staff-cta p { color: rgba(255,255,255,0.85); margin: 0; font-size: 14.5px; font-weight: 600; }
.footer-staff-cta .cta-actions .btn-outline {
  border-color: rgba(255,255,255,0.4); color: #fff;
}
.footer-staff-cta .cta-actions .btn-outline:hover { background: rgba(255,255,255,0.12); }

@media (max-width: 720px) {
  .footer-staff-cta .container { flex-direction: column; align-items: flex-start; }
  .footer-staff-cta .cta-actions { width: 100%; }
  .footer-staff-cta .cta-actions .btn { flex: 1; justify-content: center; }
}

/* ---- Post grid (blog listing / archive / home) ---- */
.post-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px;
  margin-top: 8px;
}
.post-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md);
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.post-card .thumb { aspect-ratio: 16/10; background: var(--cream-100); overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .thumb.no-image {
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-400); font-family: var(--font-display); font-size: 15px;
}
.post-card .body { padding: 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card .post-meta { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-600); }
.post-card h2, .post-card h3 { font-size: 17px; margin: 0 0 2px; line-height: 1.3; }
.post-card h2 a, .post-card h3 a { color: var(--navy-900); }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--teal-600); }
.post-card p { font-size: 14px; color: var(--ink-600); margin: 0; }
.post-card .foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.post-card .foot a { font-size: 13.5px; font-weight: 600; color: var(--navy-800); }
.post-card .foot a:hover { color: var(--teal-600); }

/* ---- Single post ---- */
.single-post-header { max-width: 760px; margin: 0 auto 32px; }
.single-post-header .post-meta { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-600); margin-bottom: 10px; }
.single-post-header h1 { font-size: clamp(26px, 4vw, 40px); }
.single-post-header .byline { font-size: 13.5px; color: var(--ink-400); }
.single-post-featured { max-width: 900px; margin: 0 auto 36px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-sm); }
.single-post-featured img { width: 100%; display: block; }
.single-post-content { max-width: 760px; margin: 0 auto; }
.single-post-content .prose img { border-radius: var(--radius-md); margin: 20px 0; }
.single-post-content .prose blockquote {
  border-left: 3px solid var(--gold-500); margin: 20px 0; padding: 4px 20px;
  font-style: italic; color: var(--ink-600); background: var(--cream-100); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.single-post-content .prose a { color: var(--teal-600); text-decoration: underline; text-underline-offset: 2px; }
.single-post-content .prose figure { margin: 20px 0; }
.single-post-content .prose figcaption { font-size: 12.5px; color: var(--ink-400); text-align: center; margin-top: 6px; }
.single-post-nav {
  max-width: 760px; margin: 48px auto 0; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.single-post-nav a { font-size: 13.5px; font-weight: 600; color: var(--navy-800); max-width: 320px; }
.single-post-nav a:hover { color: var(--teal-600); }
.single-post-nav .label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-400); margin-bottom: 3px; }

/* ---- Pagination ---- */
.blog-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; flex-wrap: wrap; }
.blog-pagination a, .blog-pagination span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px;
  padding: 0 12px; border-radius: 8px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--navy-800);
}
.blog-pagination a:hover { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.blog-pagination span.current { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }

/* ---- Empty state ---- */
.blog-empty { text-align: center; padding: 60px 20px; color: var(--ink-400); }

/* ---- Sidebar-free layout helper (blog uses full-width single column, not two-col) ---- */
.blog-container { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .post-grid { grid-template-columns: 1fr; }
  .single-post-nav { flex-direction: column; }
}