/* blog-post.css v2 — Phase 1 design system */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --navy-900: #060E1A; --navy-800: #0B1A2E; --navy-700: #122A4A; --navy-600: #1B3D6B;
  --teal-500: #1D9E75; --teal-400: #5DCAA5; --teal-300: #9FE1CB; --teal-100: #E1F5EE;
  --white: #FFFFFF; --gray-100: #F4F6F8; --gray-200: #E2E6EB; --gray-400: #8A94A0;
  --gray-600: #4A5568; --gray-800: #1A202C;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background: var(--navy-900); color: var(--gray-200); line-height: 1.7; }
a { text-decoration: none; color: inherit; }

/* NAV — matches Phase 1 pages */
nav { background: var(--navy-800); padding: 0 2rem; position: fixed; top: 0; width: 100%; z-index: 100; border-bottom: 1px solid var(--navy-700); }
.nav-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 22px; font-weight: 700; color: var(--white); letter-spacing: -0.5px; }
.logo span { color: var(--teal-400); }
.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a { color: var(--teal-300); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-cta { background: var(--teal-500); color: var(--white) !important; padding: 8px 20px; border-radius: 6px; font-weight: 600; transition: background 0.2s; }
.nav-cta:hover { background: #178A64; }
.mobile-menu { display: none; background: none; border: none; cursor: pointer; }
.mobile-menu svg { width: 28px; height: 28px; stroke: var(--teal-300); }

/* BLOG HERO */
.blog-hero { background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%); padding: 7rem 2rem 3rem; text-align: left; position: relative; overflow: hidden; }
.blog-hero::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: radial-gradient(circle at 30% 80%, rgba(29,158,117,0.08) 0%, transparent 50%), radial-gradient(circle at 70% 20%, rgba(93,202,165,0.05) 0%, transparent 40%); }
.blog-hero .hero-content { position: relative; max-width: 800px; margin: 0 auto; }

/* Breadcrumb */
.breadcrumb { font-size: 0.85rem; color: var(--gray-400); margin-bottom: 1.5rem; position: static; top: auto; width: auto; z-index: auto; background: none; padding: 0; border-bottom: none; }
.breadcrumb a { color: var(--teal-400); }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { margin: 0 0.5rem; }

/* Blog hero content */
.blog-hero h1 { font-size: 2.4rem; font-weight: 800; color: var(--white); line-height: 1.2; margin-bottom: 1rem; letter-spacing: -0.5px; }
.meta { color: var(--gray-400); font-size: 0.9rem; }

/* ARTICLE BODY */
main { max-width: 800px; margin: 0 auto; padding: 3rem 2rem 4rem; }
article h2 { color: var(--teal-400); font-size: 1.4rem; font-weight: 700; margin-top: 2.5rem; margin-bottom: 0.75rem; letter-spacing: -0.3px; }
article h3 { color: var(--white); font-size: 1.15rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
article p { color: var(--gray-200); font-size: 1rem; margin-bottom: 1.1rem; line-height: 1.8; }
article ul, article ol { padding-left: 1.5rem; margin-bottom: 1.1rem; }
article li { color: var(--gray-200); font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.7; }
article code { background: var(--navy-800); padding: 0.15rem 0.4rem; border-radius: 3px; font-size: 0.88rem; color: var(--teal-300); }
article pre { background: var(--navy-800); border: 1px solid var(--navy-700); border-radius: 8px; padding: 1.25rem; overflow-x: auto; margin-bottom: 1.1rem; }
article pre code { background: none; padding: 0; }
article blockquote { border-left: 3px solid var(--teal-500); padding-left: 1.25rem; margin: 1.25rem 0; color: var(--gray-400); font-style: italic; }
article strong { color: var(--white); }
article a { color: var(--teal-400); }
article a:hover { color: var(--teal-300); }

/* Tables */
article table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.95rem; }
article thead { background: var(--navy-800); }
article th { color: var(--teal-400); text-align: left; padding: 0.85rem 1.25rem; border-bottom: 2px solid var(--navy-700); font-weight: 600; font-size: 0.9rem; }
article td { padding: 0.75rem 1.25rem; border-bottom: 1px solid var(--navy-700); color: var(--gray-200); }
article tr:hover td { background: rgba(29,158,117,0.04); }

/* Table of Contents */
.toc { background: var(--navy-800); border: 1px solid var(--navy-700); border-radius: 10px; padding: 1.5rem 1.75rem; margin-bottom: 2.5rem; position: static; top: auto; width: auto; z-index: auto; }
.toc strong { color: var(--white); font-size: 1rem; display: block; margin-bottom: 0.75rem; }
.toc ol { padding-left: 1.25rem; margin-bottom: 0; }
.toc li { margin-bottom: 0.4rem; font-size: 0.95rem; }
.toc a { color: var(--teal-400); }
.toc a:hover { color: var(--teal-300); }

/* FAQ Accordion */
.faq { margin-top: 1.5rem; }
.faq details { background: var(--navy-800); border: 1px solid var(--navy-700); border-radius: 8px; margin-bottom: 0.75rem; overflow: hidden; transition: border-color 0.2s; }
.faq details[open] { border-color: var(--teal-500); }
.faq summary { padding: 1rem 1.25rem; cursor: pointer; color: var(--white); font-weight: 500; font-size: 1rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--teal-400); font-weight: 700; margin-right: 0.75rem; font-size: 1.1rem; }
.faq details[open] summary::before { content: "\2212"; }
.faq details p { padding: 0 1.25rem 1rem; color: var(--gray-200); font-size: 0.95rem; margin-bottom: 0; line-height: 1.7; }

/* CTA Box */
.cta-box { background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%); border: 1px solid var(--teal-500); border-radius: 12px; padding: 2.5rem; margin-top: 3rem; text-align: center; }
.cta-box p { color: var(--gray-200); margin-bottom: 1rem; font-size: 1.1rem; }
.cta-box a.btn { display: inline-block; background: var(--teal-500); color: var(--white); padding: 12px 32px; border-radius: 8px; font-weight: 600; font-size: 1rem; transition: all 0.2s; }
.cta-box a.btn:hover { background: #178A64; transform: translateY(-1px); }

/* FOOTER — matches Phase 1 pages */
footer { background: var(--navy-900); padding: 3rem 2rem 2rem; border-top: 1px solid var(--navy-700); }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
.footer-brand .logo { margin-bottom: 0.75rem; display: inline-block; }
.footer-brand p { color: var(--gray-400); font-size: 0.9rem; line-height: 1.6; max-width: 280px; }
.footer-col h4 { color: var(--white); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--gray-400); font-size: 0.9rem; margin-bottom: 0.5rem; transition: color 0.2s; }
.footer-col a:hover { color: var(--teal-400); }
.footer-bottom { border-top: 1px solid var(--navy-700); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: var(--gray-400); font-size: 0.85rem; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu { display: block; }
  .blog-hero { padding: 6rem 1.5rem 2.5rem; }
  .blog-hero h1 { font-size: 1.75rem; }
  
}
/* Author bio box — E-E-A-T signal */
.author-bio {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: #0B1A2E;
  border: 1px solid rgba(93, 202, 165, 0.15);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 2rem auto;
  max-width: 740px;
}
.author-bio .author-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1D9E75, #5DCAA5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.author-bio .author-info h4 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
  color: #fff;
}
.author-bio .author-info .author-role {
  font-size: 0.85rem;
  color: #5DCAA5;
  margin-bottom: 0.5rem;
}
.author-bio .author-info p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin: 0;
  line-height: 1.5;
}
@media (max-width: 600px) {
  .author-bio { flex-direction: column; align-items: center; text-align: center; }
}
