/* ═══════════════════════════════════════════════════
   THE CLIMATE LEDGER — Master Stylesheet
   theclimateledger.org
   
   Brand Spec:
   Serif: Libre Baskerville
   Sans: Inter
   Forest: #0F3D2E | Charcoal: #1E1E1E | Copper: #B87333
   Off-white: #F5F5F3
   ═══════════════════════════════════════════════════ */

:root {
  --forest: #0F3D2E;
  --charcoal: #1E1E1E;
  --copper: #B87333;
  --offwhite: #F5F5F3;
  --text-s: #4A4A4A;
  --text-t: #6B6B6B;
  --bg-s: #FAFAF8;
  --border: #E8E6E1;
  --green-mid: #5A8F7B;
  --gold: #D4A96A;
  --rule-light: rgba(184, 115, 51, 0.3);
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--offwhite);
  color: var(--charcoal);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ── NAVIGATION ── */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(245, 245, 243, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; height: 56px;
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  height: 36px;
  width: auto;
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase; color: var(--text-s);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--forest); }
.nav-links a.active { color: var(--forest); border-bottom: 2px solid var(--copper); padding-bottom: 2px; }
.nav-subscribe {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--offwhite); background: var(--forest);
  padding: 8px 18px; transition: background 0.2s;
}
.nav-subscribe:hover { background: var(--charcoal); }
.mobile-menu { display: none; cursor: pointer; background: none; border: none; padding: 8px; }
.mobile-menu span { display: block; width: 20px; height: 2px; background: var(--forest); margin: 4px 0; }

/* ── HERO ── */
.hero { padding: 80px 0 60px; border-bottom: 1px solid var(--border); }
.hero-inner { max-width: 1080px; margin: 0 auto; padding: 0 32px; }
.hero-mark { display: flex; gap: 5px; margin-bottom: 16px; }
.hero-mark span { display: block; height: 2px; background: var(--forest); }
.hero-mark span:nth-child(1) { width: 28px; }
.hero-mark span:nth-child(2) { width: 40px; }
.hero-mark span:nth-child(3) { width: 28px; }
.hero-title {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 48px; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--forest); line-height: 1.1; margin-bottom: 12px;
}
.hero-tagline { font-family: 'Inter', sans-serif; font-size: 17px; color: var(--text-s); max-width: 560px; line-height: 1.6; }
.hero-geo { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 300; text-transform: uppercase; letter-spacing: 4px; color: var(--text-t); margin-top: 10px; }
.hero-rule { width: 72px; height: 2px; background: var(--copper); margin-top: 20px; }
.hero-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 28px;
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--offwhite); background: var(--forest); padding: 14px 28px; transition: background 0.2s;
}
.hero-cta:hover { background: var(--charcoal); }

/* ── ISSUE BANNER ── */
.latest-banner { background: var(--forest); padding: 14px 0; }
.latest-banner-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.latest-banner span { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--offwhite); opacity: 0.85; }
.latest-banner a { font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--copper); }

/* ── CONTENT GRID ── */
.content-grid {
  max-width: 1080px; margin: 0 auto; padding: 60px 32px;
  display: grid; grid-template-columns: 2fr 1fr; gap: 48px;
}

/* ── ARTICLE CARDS ── */
.article-card { border-bottom: 1px solid var(--border); padding-bottom: 36px; margin-bottom: 36px; }
.article-card:last-child { border-bottom: none; }
.card-section { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 2.5px; color: var(--copper); margin-bottom: 10px; }
.card-img { width: 100%; height: 240px; object-fit: cover; margin-bottom: 16px; background: var(--border); }
.card-img-credit { font-family: 'Inter', sans-serif; font-size: 9px; color: var(--text-t); margin-top: 4px; margin-bottom: 12px; font-style: italic; }
.card-title { font-family: 'Libre Baskerville', Georgia, serif; font-size: 22px; font-weight: 700; color: var(--charcoal); line-height: 1.35; margin-bottom: 6px; }
.card-title a { border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.card-title a:hover { border-bottom-color: var(--copper); }
.card-brief { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: var(--forest); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.card-body { font-family: 'Inter', sans-serif; font-size: 15px; color: var(--text-s); line-height: 1.7; }
.card-link {
  display: inline-block; margin-top: 10px;
  font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--copper);
  border-bottom: 1px solid var(--rule-light); padding-bottom: 1px;
}

/* ── TAGS ── */
.tag { display: inline-block; font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 8px; margin-bottom: 8px; margin-right: 4px; }
.tag-global { background: #E0E7E4; color: var(--forest); }
.tag-nigeria { background: rgba(15, 61, 46, 0.1); color: var(--forest); }
.tag-carbon { background: #E8DDD0; color: #7A5C32; }
.tag-grants { background: #D4E8D9; color: #1A5C2E; }

/* ── NIGERIA HIGHLIGHT CARD ── */
.nigeria-card { background: var(--forest); padding: 28px; margin-bottom: 36px; }
.nigeria-card .card-section { color: var(--copper); }
.nigeria-card .card-title { color: var(--offwhite); }
.nigeria-card .card-title a { color: var(--offwhite); }
.nigeria-card .card-brief { color: var(--copper); }
.nigeria-card .card-body { color: rgba(245, 245, 243, 0.8); }
.nigeria-card .card-link { color: var(--copper); border-bottom-color: rgba(184, 115, 51, 0.4); }
.nigeria-card .card-img { opacity: 0.85; }
.nigeria-card .card-img-credit { color: rgba(245, 245, 243, 0.4); }

/* ── SYNTHESIS BLOCK ── */
.synthesis-block {
  background: var(--bg-s); border-left: 3px solid var(--copper);
  padding: 20px 24px; margin-top: 12px;
}
.synthesis-block p { font-family: 'Inter', sans-serif; font-size: 15px; color: var(--text-s); line-height: 1.7; font-style: italic; }

/* ── ETP BASELINE BLOCK ── */
.etp-baseline {
  background: rgba(15, 61, 46, 0.04); border: 1px solid rgba(15, 61, 46, 0.12);
  padding: 20px 24px; margin: 12px 0 16px;
}
.etp-baseline-label {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px; color: var(--forest); margin-bottom: 10px;
}
.etp-baseline p { font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text-s); line-height: 1.7; margin-bottom: 6px; }
.etp-baseline p:last-child { margin-bottom: 0; }

/* ── SIGNAL ITEM ── */
.signal-label {
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1px; color: var(--copper); margin-top: 12px;
}
.capital-implication {
  font-family: 'Inter', sans-serif; font-size: 13px; color: var(--text-s); line-height: 1.6;
  background: rgba(184, 115, 51, 0.06); padding: 10px 14px; margin-top: 8px;
}

/* ── RISK WATCH ── */
.risk-watch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin-top: 16px;
}
.risk-item {
  font-family: 'Inter', sans-serif; font-size: 12px; color: var(--text-s);
  padding: 8px 12px; background: var(--bg-s); border-left: 2px solid var(--border);
}
.risk-item strong { color: var(--charcoal); }
@media (max-width: 480px) { .risk-watch { grid-template-columns: 1fr; } }

/* ── SIDEBAR ── */
.sidebar-block { margin-bottom: 40px; }
.sidebar-title {
  font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2.5px; color: var(--copper);
  padding-bottom: 12px; border-bottom: 1px solid var(--rule-light); margin-bottom: 16px;
}

/* One Number */
.one-number { background: white; border: 1px solid var(--border); padding: 24px; }
.one-number-val { font-family: 'Libre Baskerville', Georgia, serif; font-size: 48px; font-weight: 700; color: var(--forest); line-height: 1.1; }
.one-number-label { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 500; color: var(--copper); text-transform: uppercase; letter-spacing: 1px; margin: 4px 0 12px; }
.one-number p { font-family: 'Inter', sans-serif; font-size: 13px; color: var(--text-s); line-height: 1.6; }

/* Subscribe box */
.subscribe-box { background: var(--forest); padding: 28px; color: var(--offwhite); }
.subscribe-box h3 { font-family: 'Libre Baskerville', Georgia, serif; font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--offwhite); }
.subscribe-box p { font-family: 'Inter', sans-serif; font-size: 13px; opacity: 0.75; line-height: 1.5; margin-bottom: 16px; }
.subscribe-input { display: flex; gap: 0; }
.subscribe-input input {
  flex: 1; padding: 10px 12px;
  border: 1px solid rgba(245, 245, 243, 0.2); background: rgba(245, 245, 243, 0.08);
  color: var(--offwhite); font-family: 'Inter', sans-serif; font-size: 13px; outline: none;
}
.subscribe-input input::placeholder { color: rgba(245, 245, 243, 0.4); }
.subscribe-input button {
  padding: 10px 16px; background: var(--copper); color: var(--offwhite); border: none;
  font-family: 'Inter', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase; cursor: pointer; transition: background 0.2s;
}
.subscribe-input button:hover { background: #A06429; }

/* Grants */
.grant-item { padding: 14px 0; border-bottom: 1px solid var(--border); }
.grant-item:last-child { border-bottom: none; }
.grant-name { font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600; color: var(--charcoal); line-height: 1.4; margin-bottom: 2px; }
.grant-name a { border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.grant-name a:hover { border-bottom-color: var(--copper); }
.grant-detail { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--text-t); line-height: 1.5; }
.grant-tag { font-family: 'Inter', sans-serif; font-size: 9px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--copper); }

/* Archive */
.archive-item { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--border); }
.archive-item:last-child { border-bottom: none; }
.archive-item a { font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 500; color: var(--charcoal); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.archive-item a:hover { border-bottom-color: var(--copper); }
.archive-item span { font-family: 'Inter', sans-serif; font-size: 11px; color: var(--text-t); }

/* ── ABOUT ── */
.about-section { background: white; padding: 60px 0; border-top: 1px solid var(--border); }
.about-inner { max-width: 640px; margin: 0 auto; padding: 0 32px; }
.about-label { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2.5px; color: var(--copper); margin-bottom: 20px; }
.about-title { font-family: 'Libre Baskerville', Georgia, serif; font-size: 28px; font-weight: 700; color: var(--charcoal); margin-bottom: 16px; }
.about-body { font-family: 'Inter', sans-serif; font-size: 15px; color: var(--text-s); line-height: 1.7; margin-bottom: 16px; }

/* ── FOOTER ── */
.site-footer { background: var(--forest); padding: 60px 0 40px; margin-top: 40px; }
.footer-grid { max-width: 1080px; margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
.footer-brand .footer-name { font-family: 'Libre Baskerville', Georgia, serif; font-size: 18px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--offwhite); margin-bottom: 10px; }
.footer-brand p { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--offwhite); opacity: 0.55; line-height: 1.6; max-width: 320px; }
.footer-col h4 { font-family: 'Inter', sans-serif; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--copper); margin-bottom: 16px; }
.footer-col a { display: block; font-family: 'Inter', sans-serif; font-size: 13px; color: var(--offwhite); opacity: 0.6; margin-bottom: 10px; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; }
.footer-bottom { max-width: 1080px; margin: 0 auto; padding: 24px 32px 0; border-top: 1px solid rgba(245, 245, 243, 0.08); margin-top: 40px; }
.footer-bottom p { font-family: 'Inter', sans-serif; font-size: 10px; color: var(--offwhite); opacity: 0.3; }

/* ── ISSUE PAGE (for /issues/*.html) ── */
.issue-header { margin-bottom: 40px; }
.issue-header h2 { font-family: 'Libre Baskerville', Georgia, serif; font-size: 28px; font-weight: 700; color: var(--charcoal); margin-bottom: 4px; }
.issue-meta { font-family: 'Inter', sans-serif; font-size: 12px; color: var(--text-t); letter-spacing: 1px; text-transform: uppercase; }

/* ── RESPONSIVE ── */
@media (max-width: 860px) {
  .content-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 32px; letter-spacing: 2px; }
  .nav-links { display: none; }
  .mobile-menu { display: block; }
  .card-img { height: 180px; }
}
@media (max-width: 480px) {
  .hero { padding: 48px 0 40px; }
  .hero-title { font-size: 26px; }
  .nav-inner { padding: 0 16px; }
  .hero-inner, .content-grid, .latest-banner-inner { padding-left: 16px; padding-right: 16px; }
  .footer-grid { padding: 0 16px; }
  .one-number-val { font-size: 36px; }
}

/* ── PRINT ── */
@media print {
  .site-nav, .latest-banner, .subscribe-box, .nav-subscribe, .mobile-menu { display: none; }
  body { background: white; }
  .site-footer { background: var(--charcoal); }
  .article-card { break-inside: avoid; }
}

/* ── EDITOR'S BRIEF (NEW) ── */
.editors-brief {
  background: linear-gradient(135deg, var(--forest) 0%, #163d2e 40%, #1a4a35 100%);
  color: var(--offwhite);
  padding: 32px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.editors-brief::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(184,115,51,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.editors-brief-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 10px;
  position: relative;
}
.editors-brief-rule {
  width: 40px;
  height: 2px;
  background: var(--copper);
  margin-bottom: 16px;
}
.editors-brief p {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 12px;
  opacity: 0.95;
  position: relative;
}
.editors-brief .watch {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 245, 243, 0.15);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--copper);
  position: relative;
}
.watch-arrow {
  display: inline-block;
  margin-right: 6px;
}

/* ── NET ZERO LEXICON (NEW) ── */
.nzl {
  background: white;
  border: 2px solid var(--forest);
  padding: 24px;
  margin-bottom: 40px;
  position: relative;
}
.nzl::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, transparent 50%, rgba(15,61,46,0.03) 50%);
}
.nzl-title {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--copper);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule-light);
  margin-bottom: 16px;
}
.nzl-term {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--forest);
  line-height: 1.3;
}
.nzl-pron {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: var(--text-t);
  font-style: italic;
  margin: 6px 0 12px;
  line-height: 1.6;
}
.nzl-flag { font-style: normal; }
.nzl-ipa {
  font-size: 11px;
  color: var(--text-t);
  opacity: 0.7;
  display: block;
  margin-top: 2px;
}
.nzl-def {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--charcoal);
  margin-bottom: 10px;
  line-height: 1.65;
}
.nzl-why {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-s);
  line-height: 1.65;
}
.nzl-context {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--bg-s);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-s);
  line-height: 1.5;
}
.nzl-context strong {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--forest);
}

/* ── SIGNAL TAGS (NEW) ── */
.signal-tag {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
}
.signal-positive { background: #D4EDDA; color: #155724; }
.signal-negative { background: #F8D7DA; color: #721C24; }
.signal-neutral { background: #E2E3E5; color: #383D41; }

/* ── NEWSLETTER SIGN-OFF (UPGRADED) ── */
.newsletter-signoff {
  text-align: center;
  max-width: 600px;
  margin: 40px auto 0;
  padding: 40px 32px;
  border-top: 1px solid var(--border);
}
.signoff-rule {
  width: 40px;
  height: 2px;
  background: var(--copper);
  margin: 0 auto 20px;
}
.newsletter-signoff p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-s);
  line-height: 1.6;
  margin-bottom: 8px;
}
.newsletter-signoff .signoff-small {
  font-size: 12px;
  color: var(--text-t);
  margin-top: 12px;
}
