/* ============================================================
   blog.css — /blog listing, category, search, post pages
   Built fresh on style.css tokens (BLOG_PLAN.md greenfield rule)
   Gold rules (FRONTEND_GUIDE): gold TEXT on navy = --color-gold-light,
   gold TEXT on white = --color-gold-dark, gold BUTTON bg = gold-light + navy text.
   ============================================================ */

/* ── Utilities ─────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ── Hero (listing / category / search) ────────────────────── */
.blog-hero {
  background-color: var(--color-navy);
  padding: 130px 24px 56px;
}

.blog-hero--compact {
  padding-bottom: 44px;
}

.blog-hero__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

.breadcrumb a:hover {
  color: var(--color-gold-light);
}

.blog-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 14px;
}

.blog-hero__sub {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.05rem;
  max-width: 640px;
  margin-bottom: 28px;
}

/* ── Search form (hero + search page) ──────────────────────── */
.blog-search-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
}

.blog-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
}

.blog-search-form input[type="search"]:focus {
  outline: 2px solid var(--color-gold-light);
  outline-offset: 1px;
}

.blog-search-summary {
  font-size: 1rem;
  color: var(--color-subtext);
  margin-bottom: 28px;
}

/* ── Category filter chips ─────────────────────────────────── */
.blog-filter {
  background: #fff;
  border-bottom: 1px solid var(--color-border);
}

.blog-filter__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-filter__chip {
  display: inline-block;
  padding: 7px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-navy);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition: all var(--transition);
}

.blog-filter__chip:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.blog-filter__chip.is-active {
  background: var(--color-navy);
  border-color: var(--color-navy);
  color: #fff;
}

/* ── Post grid section wrapper ─────────────────────────────── */
/* (.blog-grid + .blog-card live in style.css — shared with the
   homepage "Latest from the Blog" section, per FRONTEND_GUIDE rule) */
.blog-grid-section {
  background: var(--color-surface);
  padding: 56px 24px 72px;
}

.blog-grid-section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── Empty state ───────────────────────────────────────────── */
.blog-empty {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 56px 32px;
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.blog-empty h2 {
  font-family: var(--font-heading);
  color: var(--color-navy);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.blog-empty p {
  color: var(--color-subtext);
}

/* ── Pagination ────────────────────────────────────────────── */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 44px;
}

.blog-pagination__link {
  font-weight: 500;
  color: var(--color-navy);
  padding: 9px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  background: #fff;
  transition: all var(--transition);
}

.blog-pagination__link:hover {
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.blog-pagination__status {
  font-size: 0.9rem;
  color: var(--color-subtext);
}

/* ── Post hero ─────────────────────────────────────────────── */
.post-hero {
  background-color: var(--color-navy);
  padding: 130px 24px 56px;
}

.post-hero__inner {
  max-width: 820px;
  margin: 0 auto;
}

.post-hero__badge {
  display: inline-block;
  padding: 5px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.post-hero h1 {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 16px;
}

.post-hero__meta {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ── Article body ──────────────────────────────────────────── */
.post-article {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 24px 24px;
}

.post-article__featured {
  width: 100%;
  border-radius: var(--border-radius);
  margin-bottom: 36px;
}

.post-body {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--color-text);
}

.post-body p {
  margin-bottom: 1.25em;
}

.post-body h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-navy);
  line-height: 1.3;
  margin: 1.8em 0 0.7em;
}

.post-body h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-navy);
  margin: 1.5em 0 0.6em;
}

.post-body ul,
.post-body ol {
  margin: 0 0 1.25em;
  padding-left: 1.5em;
}

.post-body ul {
  list-style: disc;
}

.post-body ol {
  list-style: decimal;
}

.post-body li {
  margin-bottom: 0.5em;
}

.post-body a {
  color: var(--color-gold-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.post-body a:hover {
  color: var(--color-navy);
}

.post-body blockquote {
  border-left: 3px solid var(--color-gold);
  padding: 4px 0 4px 20px;
  margin: 1.5em 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--color-navy);
}

.post-body img {
  border-radius: var(--border-radius);
  margin: 1.5em 0;
}

/* ── LinkedIn discussion box ───────────────────────────────── */
.post-linkedin {
  margin-top: 44px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius);
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.post-linkedin__text {
  color: var(--color-text);
  font-size: 0.98rem;
  max-width: 480px;
}

.post-linkedin__btn {
  display: inline-block;
  background: #0A66C2; /* LinkedIn brand blue — white text passes AA */
  color: #fff;
  font-weight: 500;
  padding: 11px 22px;
  border-radius: var(--border-radius);
  transition: background var(--transition);
  white-space: nowrap;
}

.post-linkedin__btn:hover {
  background: #084d92;
  color: #fff;
}

/* ── Post CTA band ─────────────────────────────────────────── */
.post-cta {
  background: var(--color-navy);
  padding: 52px 24px;
  margin-top: 56px;
}

.post-cta__inner {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.post-cta__text {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  max-width: 560px;
}

.post-cta__btn {
  display: inline-block;
  background: var(--color-gold-light); /* gold bg + navy text = approved AA pair */
  color: var(--color-navy);
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--border-radius);
  transition: all var(--transition);
  white-space: nowrap;
}

.post-cta__btn:hover {
  background: #fff;
  color: var(--color-navy);
}

/* ── Related posts ─────────────────────────────────────────── */
.post-related {
  background: var(--color-surface);
  padding: 56px 24px 72px;
}

.post-related__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.post-related h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--color-navy);
  margin: 8px 0 28px;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .blog-hero h1 {
    font-size: 2.1rem;
  }

  .post-hero h1 {
    font-size: 1.9rem;
  }
}

@media (max-width: 600px) {
  .blog-hero,
  .post-hero {
    padding: 110px 20px 44px;
  }

  .blog-search-form {
    flex-direction: column;
  }

  .post-article {
    padding: 36px 20px 12px;
  }

  .post-linkedin,
  .post-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
