/* GreenlitKit blog: shared styles. Linked by /blog/ and every post. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --green-deep: #0f2318;
  --green-dark: #153324;
  --green-primary: #22724a;
  --green-mid: #2fa866;
  --green-bright: #44d975;
  --green-light: #b7e4c7;
  --green-pale: #dff2e6;
  --green-tint: #f0f9f3;
  --amber: #d4912a;
  --amber-bright: #f0a832;
  --amber-light: #fdf0d5;
  --red: #b44040;
  --red-bright: #e05555;
  --red-light: #fce0e0;
  --cream: #f8f6f1;
  --warm-white: #fdfcf9;
  --warm-100: #f0eee8;
  --warm-200: #dddad2;
  --warm-300: #b8b4a9;
  --warm-400: #8f8b80;
  --warm-600: #5e5a50;
  --warm-800: #2e2b24;
  --text: #1a1815;
  --text-mid: #4a4740;
  --text-light: #7a7670;
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Manrope', system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 9999;
  pointer-events: none; opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px;
}

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(15, 35, 24, 0.95); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(255,255,255,0.06); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.nav-brand { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: #fff; text-decoration: none; letter-spacing: -0.03em; }
.nav-brand span { color: var(--green-bright); }
.nav-links { display: flex; gap: 2.25rem; align-items: center; }
.nav-links a { font-size: 0.825rem; color: rgba(255,255,255,0.6); text-decoration: none; font-weight: 500; transition: color 0.2s; letter-spacing: 0.01em; }
.nav-links a:hover { color: #fff; }
.nav-cta { background: var(--green-bright) !important; color: var(--green-deep) !important; padding: 0.5rem 1.25rem; border-radius: 6px; font-weight: 700 !important; transition: all 0.2s !important; }
.nav-cta:hover { background: #fff !important; }

/* Blog index hero + cards */
.blog-hero { background: var(--green-deep); color: #fff; padding: 8rem 2rem 3rem; text-align: center; }
.blog-hero p.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; color: var(--green-bright); font-size: 0.7rem; font-weight: 700; margin-bottom: 1rem; }
.blog-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -0.02em; }
.blog-hero p.sub { color: rgba(255,255,255,0.7); max-width: 560px; margin: 1rem auto 0; }
.list { max-width: 760px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.post-card { display: block; background: #fff; border: 1px solid var(--warm-200); border-radius: 12px; padding: 1.75rem; margin-bottom: 1.5rem; text-decoration: none; transition: border-color 0.2s, transform 0.2s; }
.post-card:hover { border-color: var(--green-light); transform: translateY(-2px); }
.post-card .tag { display: inline-block; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.6rem; font-weight: 700; color: var(--green-primary); background: var(--green-tint); padding: 0.25rem 0.6rem; border-radius: 4px; margin-bottom: 0.85rem; }
.post-card h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; color: var(--text); line-height: 1.2; margin-bottom: 0.5rem; }
.post-card p { color: var(--text-mid); font-size: 0.98rem; margin-bottom: 0.85rem; }
.post-card .meta { font-size: 0.8rem; color: var(--text-light); }

/* Article header */
.article-hero { background: var(--green-deep); color: #fff; padding: 8rem 2rem 3.5rem; }
.article-hero-inner { max-width: 760px; margin: 0 auto; }
.article-hero .lede { font-size: 1.15rem; color: rgba(255,255,255,0.8); max-width: 640px; }
.breadcrumb { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--green-bright); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--green-light); text-decoration: none; }
.breadcrumb a:hover { color: #fff; }
.article-hero h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.article-hero h1 em { font-style: italic; color: var(--green-bright); }
.article-meta { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; font-size: 0.85rem; color: rgba(255,255,255,0.65); margin-top: 1.5rem; }
.article-meta strong { color: #fff; font-weight: 600; }

/* Article body */
.article { max-width: 760px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.article p { font-size: 1.075rem; color: var(--text-mid); margin-bottom: 1.4rem; }
.article h2 { font-family: var(--font-display); font-weight: 500; font-size: 1.85rem; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); margin: 3rem 0 1.25rem; }
.article h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; color: var(--text); margin: 2rem 0 0.75rem; }
.article a { color: var(--green-primary); text-decoration: underline; text-underline-offset: 2px; }
.article strong { color: var(--text); font-weight: 700; }
.article ul, .article ol { margin: 0 0 1.4rem 1.25rem; }
.article li { font-size: 1.075rem; color: var(--text-mid); margin-bottom: 0.6rem; }
.section-label { text-transform: uppercase; color: var(--green-primary); font-size: 0.7rem; letter-spacing: 0.14em; font-weight: 700; margin-bottom: 0.5rem; }

/* Key takeaways box */
.takeaways { background: var(--green-tint); border: 1px solid var(--green-light); border-radius: 12px; padding: 1.75rem 2rem; margin: 0 0 2.5rem; }
.takeaways .section-label { margin-bottom: 0.9rem; }
.takeaways ul { list-style: none; margin: 0; }
.takeaways li { position: relative; padding-left: 1.6rem; font-size: 1rem; color: var(--text); margin-bottom: 0.7rem; }
.takeaways li::before { content: ''; position: absolute; left: 0; top: 0.5rem; width: 10px; height: 10px; border-radius: 50%; background: var(--green-mid); box-shadow: 0 0 0 3px var(--green-pale); }

/* Callout */
.callout { border-left: 3px solid var(--amber-bright); background: var(--amber-light); border-radius: 0 10px 10px 0; padding: 1.25rem 1.5rem; margin: 2rem 0; }
.callout .section-label { color: var(--amber); }
.callout p { margin-bottom: 0; color: var(--warm-800); font-size: 1rem; }
.callout.green { border-left-color: var(--green-mid); background: var(--green-tint); }
.callout.green .section-label { color: var(--green-primary); }

/* Table */
.table-wrap { overflow-x: auto; margin: 1.75rem 0; border: 1px solid var(--warm-200); border-radius: 10px; }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
thead th { background: var(--warm-100); text-transform: uppercase; font-size: 0.65rem; letter-spacing: 0.08em; color: var(--warm-600); text-align: left; padding: 0.85rem 1rem; font-weight: 700; }
tbody td { padding: 0.85rem 1rem; border-top: 1px solid var(--warm-200); color: var(--text-mid); vertical-align: top; }
tbody tr:hover { background: var(--green-tint); }

/* Figure / charts */
figure { margin: 2.5rem 0; }
figure svg { width: 100%; height: auto; display: block; }
figcaption { font-size: 0.8rem; color: var(--text-light); margin-top: 0.75rem; text-align: center; }
.chart-card { background: #fff; border: 1px solid var(--warm-200); border-radius: 12px; padding: 1.75rem; }
.chart-title { font-family: var(--font-body); font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 0.25rem; }
.chart-sub { font-size: 0.8rem; color: var(--text-light); margin-bottom: 1.25rem; }

/* Dots */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; vertical-align: middle; margin-right: 0.45rem; }
.dot-g { background: var(--green-mid); box-shadow: 0 0 0 3px var(--green-pale); }
.dot-a { background: var(--amber-bright); box-shadow: 0 0 0 3px var(--amber-light); }
.dot-r { background: var(--red-bright); box-shadow: 0 0 0 3px var(--red-light); }

/* CTA */
.cta { background: var(--green-deep); border-radius: 16px; padding: 2.5rem; margin: 3.5rem 0; text-align: center; }
.cta h3 { font-family: var(--font-display); font-weight: 400; color: #fff; font-size: 1.7rem; margin-bottom: 0.75rem; }
.cta p { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; font-size: 1rem; }
.btn-primary { display: inline-block; background: var(--green-bright); color: var(--green-deep); padding: 0.85rem 1.75rem; border-radius: 8px; font-weight: 700; text-decoration: none; transition: background 0.2s; }
.btn-primary:hover { background: #fff; }

/* FAQ */
.faq details { border: 1px solid var(--warm-200); border-radius: 10px; padding: 0.25rem 1.25rem; margin-bottom: 0.75rem; background: #fff; }
.faq summary { cursor: pointer; font-weight: 700; color: var(--text); padding: 0.9rem 0; font-size: 1.02rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; float: right; color: var(--green-primary); font-weight: 400; font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: '\2013'; }
.faq details p { font-size: 1rem; padding-bottom: 1rem; margin-bottom: 0; }

/* Related links */
.related { background: var(--cream); border: 1px solid var(--warm-200); border-radius: 12px; padding: 1.5rem 1.75rem; margin: 3rem 0 0; }
.related .section-label { margin-bottom: 0.75rem; }
.related ul { list-style: none; margin: 0; }
.related li { margin-bottom: 0.5rem; font-size: 1rem; }
.related a { color: var(--green-primary); font-weight: 600; }

/* Author / sources */
.author-box { display: flex; gap: 1rem; align-items: flex-start; background: var(--cream); border: 1px solid var(--warm-200); border-radius: 12px; padding: 1.5rem; margin: 3rem 0 2rem; }
.author-avatar { flex: 0 0 48px; width: 48px; height: 48px; border-radius: 50%; background: var(--green-primary); color: #fff; font-family: var(--font-display); font-size: 1.3rem; display: flex; align-items: center; justify-content: center; }
.author-box .name { font-weight: 700; color: var(--text); }
.author-box p { font-size: 0.92rem; margin-bottom: 0; }
.sources { font-size: 0.85rem; color: var(--text-light); }
.sources h2 { font-size: 1.3rem; }
.sources ol { margin-left: 1.1rem; }
.sources li { font-size: 0.85rem; color: var(--text-light); margin-bottom: 0.5rem; }
.sources a { color: var(--green-primary); }

/* Footer */
.footer { background: var(--green-deep); color: rgba(255,255,255,0.6); padding: 3rem 2rem 2rem; }
.footer-inner { max-width: 1280px; margin: 0 auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; }
.footer-brand { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; color: #fff; }
.footer-brand span { color: var(--green-bright); }
.footer-note { font-size: 0.85rem; margin-top: 0.5rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.85rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { max-width: 1280px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; font-size: 0.8rem; }

@media (max-width: 640px) {
  .nav-links { display: none; }
  .blog-hero { padding: 6.5rem 1.25rem 2.5rem; }
  .article-hero { padding: 6.5rem 1.25rem 2.5rem; }
  .article { padding: 2rem 1.25rem 4rem; }
}
