/* Blog styles — layered on top of /style.css.
   Uses the current site design tokens (--navy-900, --gold-500, --paper,
   --ink, --muted, --line, --shadow-*, --radius*, --display/--body) so
   the blog stays in sync automatically if the palette changes again. */

/* ---------- Listing page ---------- */

.blog-index-hero {
  padding: 76px 0 46px;
  text-align: center;
  background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
}
.blog-index-hero .eyebrow.center { justify-content: center; }
.blog-index-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  margin: 16px 0 18px;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  color: var(--navy-900);
  line-height: 1.2;
}
.blog-index-hero p {
  max-width: 640px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.05rem;
}

.blog-category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 46px;
}
.blog-category-filters a {
  padding: 9px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--white);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy-900);
  transition: background .2s ease, color .2s ease, transform .15s ease, border-color .2s ease;
}
.blog-category-filters a:hover,
.blog-category-filters a.active {
  background: var(--navy-900);
  border-color: var(--navy-900);
  color: var(--white);
  transform: translateY(-1px);
}

.blog-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.blog-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  border-top: 3px solid transparent;
}
.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-top-color: var(--gold-500);
}
.blog-card .blog-card-category {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.blog-card h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.35;
  color: var(--navy-900);
}
.blog-card h3 a { text-decoration: none; color: inherit; }
.blog-card h3 a:hover { color: var(--gold-600); }
.blog-card p { color: var(--muted); font-size: 0.96rem; line-height: 1.55; }
.blog-card .blog-card-meta {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* ---------- Post hero ---------- */

.blog-post-hero {
  padding-top: 56px;
  background: linear-gradient(180deg, var(--paper) 0%, var(--white) 100%);
}
.blog-breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.blog-breadcrumb a { text-decoration: none; color: var(--muted); }
.blog-breadcrumb a:hover { color: var(--navy-900); }
.blog-post-hero h1 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 2.7rem);
  margin: 14px 0 14px;
  color: var(--navy-900);
  line-height: 1.22;
}
.blog-meta {
  color: var(--muted);
  font-size: 0.92rem;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

/* ---------- Table of contents ---------- */

.blog-toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin: 32px 0 36px;
}
.blog-toc h2 {
  font-family: var(--body) !important;
  font-size: 0.78rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--navy-900) !important;
  margin: 0 0 12px !important;
  font-weight: 700;
}
.blog-toc ul { list-style: none; padding: 0; margin: 0; }
.blog-toc li { margin-bottom: 8px; font-size: 0.94rem; }
.blog-toc a {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.blog-toc a::before {
  content: "→";
  color: var(--gold-600);
  font-weight: 700;
}
.blog-toc a:hover { color: var(--gold-600); }

/* ---------- Article body ---------- */

.blog-article {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 48px clamp(22px, 6vw, 64px);
  line-height: 1.78;
  font-size: 1.04rem;
  color: var(--ink);
}

.blog-article h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.4rem, 3vw, 1.7rem);
  margin: 46px 0 18px;
  color: var(--navy-900);
  line-height: 1.3;
  padding-top: 24px;
  position: relative;
}
.blog-article h2::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 56px; height: 3px;
  background: var(--gold-500);
}
.blog-article h2::before {
  content: '';
  position: absolute;
  top: 7px; left: 0;
  width: 28px; height: 1px;
  background: var(--gold-500);
  opacity: 0.55;
}
.blog-article > h2:first-child { margin-top: 0; }

.blog-article h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.18rem;
  margin: 30px 0 12px;
  color: var(--navy-900);
}
.blog-article p { margin-bottom: 18px; }
.blog-article ul, .blog-article ol {
  margin: 0 0 22px 0;
  padding-left: 0;
  list-style: none;
}
.blog-article ul li, .blog-article ol li {
  margin-bottom: 12px;
  padding-left: 30px;
  position: relative;
}
.blog-article ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
}
.blog-article ol { counter-reset: agc-ol; }
.blog-article ol li { counter-increment: agc-ol; }
.blog-article ol li::before {
  content: counter(agc-ol);
  position: absolute;
  left: 0;
  top: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-article blockquote {
  border-left: 3px solid var(--gold-500);
  padding: 4px 24px;
  margin: 24px 0;
  color: var(--muted);
  font-style: italic;
}
.blog-article blockquote.blog-pullquote {
  border-left: none;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 30px 8px;
  margin: 40px 0;
  font-style: normal;
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--navy-900);
  font-weight: 600;
  text-align: center;
}

.blog-callout {
  background: var(--paper);
  border-left: 4px solid var(--navy-900);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 26px;
  margin: 28px 0;
}
.blog-callout p { margin: 0; color: var(--ink); font-size: 0.98rem; }

.blog-stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 24px 30px;
  margin: 28px 0;
}
.blog-stat-num {
  font-family: var(--display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold-300);
  white-space: nowrap;
}
.blog-stat-label { font-size: 0.98rem; color: rgba(255,255,255,0.88); }

.blog-article code {
  background: var(--paper-deep);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}
.blog-article hr {
  border: none;
  border-top: 1px solid var(--line);
  margin: 36px 0;
}
.blog-article a { color: var(--navy-900); text-decoration: underline; text-underline-offset: 2px; }
.blog-article a:hover { color: var(--gold-700); }

/* Figures / images inside articles */
.blog-figure {
  margin: 32px 0;
  text-align: center;
}
.blog-figure img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--white);
}
.blog-figure figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* Tables inside articles */
.blog-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.blog-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}
.blog-article th {
  background: var(--navy-900);
  color: var(--white);
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
  font-family: var(--body);
}
.blog-article td {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
}
.blog-article tr:nth-child(even) td { background: var(--paper); }

/* ---------- CTA box ---------- */

.blog-cta-box {
  margin-top: 36px;
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px clamp(22px, 5vw, 44px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-cta-box::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(201,166,70,0.14);
}
.blog-cta-box h3 {
  font-family: var(--display);
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 1.3rem;
  position: relative;
}
.blog-cta-box p {
  color: rgba(255,255,255,0.78);
  margin-bottom: 22px;
  position: relative;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- FAQ block ---------- */

.blog-faq { margin: 8px 0 28px; }
.blog-faq-item { border-bottom: 1px solid var(--line); padding: 18px 0; }
.blog-faq-item:last-child { border-bottom: none; }
.blog-faq-q { font-weight: 700; color: var(--navy-900); margin-bottom: 8px; font-size: 1.02rem; }
.blog-faq-a { color: var(--muted); margin: 0; }

/* ---------- Responsive tuning ---------- */

@media (max-width: 860px) {
  .blog-index-hero { padding: 56px 0 34px; }
  .blog-post-hero { padding-top: 42px; }
}

@media (max-width: 640px) {
  .blog-article { padding: 30px 20px; font-size: 1rem; }
  .blog-article h2 { margin: 34px 0 14px; }
  .blog-toc { padding: 18px 18px; }
  .blog-cta-box { padding: 28px 20px; }
  .blog-pullquote { font-size: 1.1rem !important; }
  .blog-stat { flex-direction: column; gap: 4px; text-align: center; }
  .blog-card { padding: 24px; }
}

@media (max-width: 420px) {
  .blog-article table { font-size: 0.85rem; }
  .blog-article th, .blog-article td { padding: 9px 10px; }
}
