/* ================================================================
   Spark Climate Solutions — Explainers shared stylesheet
   Covers: index.html (page-index), indirect-greenhouse-gases.html,
           eei-declining-reflectivity.html
   ================================================================ */

/* ── Global ── */
html { scroll-behavior: smooth; }
.container { max-width: 940px; margin: 0 auto; }

/* ── Progress bar ── */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px;
  background: #2c85d7; z-index: 9999;
  width: 0%; transition: width 0.1s linear;
}

/* ── Dark nav (index + iGHG) ── */
.explainer-nav {
  background: rgba(20,33,98,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.explainer-nav .container { max-width: 940px; margin: 0 auto; }
.nav-logo { flex-shrink: 0; padding: 0.6rem 0; }
.nav-logo img { height: 24px; display: block; }

/* nav-inner base */
.nav-inner { display: flex; align-items: center; gap: 1rem; height: 56px; }
.nav-logo-divider {
  width: 1px; height: 20px;
  background: rgba(255,255,255,0.2);
  flex-shrink: 0;
}
.nav-links {
  display: flex; gap: 0; overflow-x: auto;
  scrollbar-width: none; -ms-overflow-style: none;
}
.nav-links::-webkit-scrollbar { display: none; }

/* Dark nav links (all explainer pages) */
.nav-link {
  padding: 1rem 1.1rem;
  font-size: 0.82rem; font-weight: 500;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.nav-link:hover,
.nav-link.active { color: #cee6fa; border-bottom-color: #2c85d7; }

/* ── Site nav (index.html — full sparkclimate.org header) ── */
.explainer-nav:has(.site-nav-container) { padding: 0; }
.site-nav-container { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }

.site-nav-inner { gap: 0; }

.site-nav-links {
  display: flex;
  align-items: stretch;
  flex: 1;
  justify-content: flex-end;
}

.site-nav-item { position: relative; display: flex; align-items: stretch; }

.site-nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.nav-caret {
  opacity: 0.55;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.site-nav-item:hover .nav-caret { transform: rotate(180deg); opacity: 0.8; }

.site-dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
  min-width: 230px;
  padding: 0.5rem 0;
  z-index: 200;
  border: 1px solid rgba(0,0,0,0.07);
}
.site-nav-item:hover .site-dropdown-content { display: block; }

.site-dropdown-link {
  display: block;
  padding: 0.6rem 1.2rem;
  font-size: 0.83rem;
  color: #142162;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.site-dropdown-link:hover { background: #eaf7ff; color: #2c85d7; }

.nav-donate {
  flex-shrink: 0;
  background: #2c85d7;
  color: #ffffff;
  padding: 0.45rem 1.1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  align-self: center;
  margin-left: 1rem;
  transition: background 0.2s;
}
.nav-donate:hover { background: #1a6fba; color: #ffffff; }

/* ── Hero ── */
.explainer-hero { background: linear-gradient(135deg, #142162 0%, #17215d 50%, #0e1a4e 100%); padding: 4.5rem 2.5rem 5rem; }
.hero-orient { display: block; text-decoration: none; padding-bottom: 1.75rem; margin-bottom: 3.5rem; border-bottom: 1px solid rgba(255,255,255,0.12); transition: opacity 0.2s; }
.hero-orient:hover { opacity: 0.8; }
.hero-orient-logo { height: 20px; display: block; margin-bottom: 0.9rem; }
.hero-orient-section { font-size: 1.4rem; font-weight: 300; color: #ffffff; line-height: 1.2; margin-bottom: 0.4rem; }
.hero-orient-desc { font-size: 0.82rem; color: rgba(255,255,255,0.42); font-weight: 300; line-height: 1.5; }
.explainer-hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 300; line-height: 1.15;
  color: #ffffff; max-width: 820px; margin-bottom: 1.25rem;
}
.explainer-hero h1 em { font-style: normal; color: #2c85d7; }
.explainer-hero .hero-sub {
  font-size: 1.2rem; font-weight: 300;
  color: #cee6fa; max-width: 680px;
  line-height: 1.75; margin-bottom: 2.5rem;
}
.hero-meta { display: flex; gap: 2rem; align-items: center; flex-wrap: wrap; }
.hero-meta .authors { font-size: 0.875rem; font-weight: 300; color: rgba(255,255,255,0.65); }
.hero-meta .authors a { color: #cee6fa; text-decoration: underline; text-underline-offset: 2px; }
.hero-meta .authors a:hover { color: #ffffff; }
.hero-meta .journal-badge {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #cee6fa; font-size: 0.8rem;
  padding: 0.3rem 0.8rem; border-radius: 6px; font-weight: 400;
}

/* ── Stats strip ── */
.stats-strip { background: #2c85d7; padding: 2.5rem; }
.stats-strip .container { max-width: 940px; margin: 0 auto; }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.stat-item { text-align: center; }
.stat-number {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 300; color: #ffffff; line-height: 1; margin-bottom: 0.5rem;
}
.stat-number .unit { font-size: 0.6em; }
.stat-label { font-size: 0.9rem; color: rgba(255,255,255,0.8); font-weight: 300; line-height: 1.5; }


/* ── Section labels ── */
.section-eyebrow {
  font-family: "Roboto", sans-serif;
  font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #2c85d7; margin-bottom: 0.75rem;
}
.section-eyebrow.light { color: #cee6fa; }
.section-heading {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300; color: #1b1b1b; line-height: 1.2; margin-bottom: 1rem;
}
.section-heading em { font-style: normal; color: #2c85d7; }
.section-sub {
  font-size: 1.05rem; font-weight: 300;
  color: #6E6E6E; line-height: 1.75;
  margin-bottom: 2.5rem; max-width: 720px;
}

/* ── Section containers ── */
.section-white { background: #ffffff; padding: 3.5rem 2.5rem; }
.section-dark  { background: #142162; padding: 3.5rem 2.5rem; }
.section-light { background: #eaf7ff; padding: 3.5rem 2.5rem; }
.section-light .container { max-width: 940px; margin: 0 auto; }

/* ── Reveal animation ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ── Author / Meet the Expert (shared) ── */
.author-card {
  display: flex; align-items: center; gap: 2.25rem;
  background: #ffffff; border: 1px solid #c5e0f5;
  border-radius: 16px; padding: 2rem 2.25rem; margin-top: 1.5rem;
}
.author-photo {
  width: 132px; height: 132px;
  border-radius: 50%; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(20,33,98,0.15);
}
.author-name { font-size: 1.35rem; font-weight: 400; color: #142162; }
.author-role {
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #2c85d7; margin: 0.25rem 0 0.9rem;
}
.author-bio { font-size: 0.93rem; color: #4a4a4a; line-height: 1.7; margin-bottom: 0.9rem; }
.author-link { font-size: 0.85rem; font-weight: 600; color: #2c85d7; text-decoration: none; }
.author-link:hover { text-decoration: underline; }

/* ── Two-column layout ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }

/* ── Footer ── */
footer {
  background: #ffffff; border-top: 1px solid #e5e5e5;
  padding: 3rem 2.5rem; text-align: center;
}
.footer-logo { display: block; margin: 0 auto 1.25rem; height: 80px; width: auto; }
.footer-tagline { font-size: 1rem; font-weight: 300; color: #1b1b1b; line-height: 1.7; max-width: 500px; margin: 0 auto 1rem; }
.footer-cta-group { display: flex; gap: 0.75rem; justify-content: center; margin: 1.25rem 0 1.25rem; flex-wrap: wrap; }
.footer-btn { display: inline-block; padding: 0.6rem 1.4rem; border-radius: 100px; font-size: 0.85rem; font-weight: 600; text-decoration: none; border: 1.5px solid #142162; color: #142162; transition: background 0.2s, color 0.2s; }
.footer-btn:hover { background: #142162; color: #ffffff; }
.footer-btn--primary { background: #2c85d7; border-color: #2c85d7; color: #ffffff; }
.footer-btn--primary:hover { background: #1a6fba; border-color: #1a6fba; }
.footer-link { font-size: 0.85rem; font-weight: 400; color: #9a9a9a; text-decoration: none; }

/* ================================================================
   Index page
   ================================================================ */

.index-hero {
  background: linear-gradient(135deg, #142162 0%, #17215d 50%, #0e1a4e 100%);
  padding: 7rem 2.5rem 5rem; text-align: center;
}
.index-hero .hero-logo { display: block; height: 75px; width: auto; margin: 0 auto 1.5rem; }
.index-hero h1 {
  font-family: "Open Sans", sans-serif !important;
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 300; line-height: 1.2;
  color: #ffffff; max-width: 680px; margin: 0 auto 1.25rem;
}
.index-hero h1 em { font-style: normal; color: #2c85d7; }
.index-hero .hero-sub {
  font-size: 1.1rem; font-weight: 300; color: #cee6fa;
  max-width: 560px; margin: 0 auto; line-height: 1.75;
}
.cards-section { background: #f7f8fc; padding: 5rem 2.5rem; }
.cards-section .container { max-width: 940px; margin: 0 auto; }
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.75rem;
}
.more-explainers-grid { max-width: 480px; }
.explainer-card {
  background: #ffffff; border: 1.5px solid #d9d9d9; border-radius: 16px;
  overflow: hidden; text-decoration: none;
  display: flex; flex-direction: column;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.explainer-card:hover {
  border-color: #2c85d7;
  box-shadow: 0 6px 28px rgba(44,133,215,0.14);
  transform: translateY(-2px);
}
.card-accent { height: 5px; background: linear-gradient(90deg, #2c85d7, #142162); }
.card-body { padding: 1.75rem; flex: 1; display: flex; flex-direction: column; }
.card-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #2c85d7; margin-bottom: 0.75rem; }
.card-title { font-family: "Open Sans", sans-serif !important; font-size: 1.15rem; font-weight: 600; color: #142162; line-height: 1.35; margin-bottom: 0.75rem; }
.card-desc { font-size: 0.9rem; font-weight: 300; color: #4a4a4a; line-height: 1.65; flex: 1; margin-bottom: 1.25rem; }
.card-meta { display: flex; align-items: center; gap: 0.65rem; font-size: 0.8rem; color: #9c9c9c; font-weight: 300; border-top: 1px solid #ebebeb; padding-top: 1rem; }
.card-meta strong { font-weight: 500; color: #6b6b6b; }
.card-author-photo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.card-cta { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1rem; font-size: 0.85rem; font-weight: 600; color: #2c85d7; }
.card-cta svg { transition: transform 0.2s; }
.explainer-card:hover .card-cta svg { transform: translateX(3px); }

/* ================================================================
   iGHG page
   ================================================================ */

/* ── Intro grid ── */
.intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.basket-visual { background: #f2f2f2; border-radius: 20px; padding: 2rem; position: relative; }
.basket-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #767676; margin-bottom: 0.5rem; }
.ghg-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.4rem 0.75rem; border-radius: 8px;
  font-size: 0.85rem; font-weight: 500; margin: 0.25rem;
}
.ghg-chip.kyoto { background: #2c85d7; color: white; }
.ghg-chip.indirect { background: #f55959; color: #1b1b1b; }
.ghg-chip.aerosol { background: #d9d9d9; color: #767676; }
.beyond-badge {
  position: absolute; top: -12px; right: 20px;
  background: #f55959; color: #1b1b1b;
  font-size: 0.65rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.3rem 0.7rem; border-radius: 100px;
}

/* ── iGHG cards ── */
.ighg-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; align-items: start; }
.ighg-card {
  border: 1.5px solid #d9d9d9; border-radius: 16px; overflow: hidden;
  cursor: pointer; transition: border-color 0.25s, box-shadow 0.25s; background: white;
}
.ighg-card:hover { border-color: #2c85d7; box-shadow: 0 4px 24px rgba(44,133,215,0.12); }
.ighg-card.active { border-color: #2c85d7; box-shadow: 0 4px 24px rgba(44,133,215,0.18); }
.ighg-card-header { padding: 1.25rem 1.5rem; display: flex; justify-content: space-between; align-items: flex-start; }
.ighg-formula { font-family: "Exo", monospace !important; font-size: 1.5rem; font-weight: 600; color: #142162; }
.ighg-impact-badge { font-size: 0.8rem; font-weight: 600; padding: 0.25rem 0.6rem; border-radius: 6px; }
.badge-warm { background: #fff0f0; color: #c03030; }
.badge-cool { background: #eaf7ff; color: #1a5fa0; }
.badge-mixed { background: #f2f2f2; color: #767676; }
.ighg-name { font-size: 0.85rem; font-weight: 400; color: #767676; margin-top: 0.1rem; }
.ighg-card-body { padding: 0 1.5rem 1.5rem; display: none; }
.ighg-card.active .ighg-card-body { display: block; }
.ighg-card-body p { font-size: 0.95rem; font-weight: 300; color: #1b1b1b; line-height: 1.7; margin-bottom: 1rem; }
.ighg-sources { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.source-tag { background: #eaf7ff; color: #1a5fa0; font-size: 0.75rem; font-weight: 500; padding: 0.2rem 0.6rem; border-radius: 100px; }


/* ── Temperature bar chart ── */
.temp-chart-wrapper { background: white; border: 1px solid #d9d9d9; border-radius: 16px; padding: 2rem; overflow: hidden; }
.temp-chart-title { font-size: 0.8rem; font-weight: 600; color: #767676; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1.5rem; }
.temp-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.temp-row-label { font-size: 0.85rem; color: #1b1b1b; width: 160px; flex-shrink: 0; text-align: right; font-weight: 400; }
.temp-bar-track { flex: 1; height: 28px; background: #f2f2f2; border-radius: 6px; position: relative; overflow: hidden; }
.temp-bar { position: absolute; top: 0; height: 100%; transition: width 1.2s cubic-bezier(0.16, 1, 0.3, 1); }
.temp-bar.warm { background: linear-gradient(90deg, #f55959, #d93333); left: 50%; right: auto; border-radius: 0 6px 6px 0; }
.temp-bar.cool { background: linear-gradient(270deg, #7ec8f0, #2c85d7); right: 50%; left: auto; border-radius: 6px 0 0 6px; }
.temp-bar.warm-light { background: linear-gradient(90deg, #ffaaaa, #f55959); left: 50%; right: auto; border-radius: 0 6px 6px 0; }
.temp-bar.warm-tiny { background: #d9d9d9; left: 50%; right: auto; border-radius: 0 6px 6px 0; }
.temp-bar-track:not(.temp-bar-track--transparent)::after {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: rgba(0,0,0,0.1);
  transform: translateX(-50%); z-index: 2; pointer-events: none;
}
.temp-value { font-size: 0.8rem; font-weight: 600; width: 52px; text-align: left; flex-shrink: 0; }
.temp-value.warm { color: #c03030; }
.temp-value.cool { color: #1a5fa0; }
.chart-axis { display: flex; align-items: center; gap: 0.75rem; margin-top: 0.5rem; padding-top: 0.75rem; border-top: 1px solid #d9d9d9; }
.axis-label { font-size: 0.7rem; color: #9c9c9c; font-weight: 400; }
.axis-line { flex: 1; text-align: center; font-size: 0.65rem; color: #9c9c9c; }

/* ── Policy accordion ── */
.policy-item { border-bottom: 1px solid #d9d9d9; }
.policy-item:first-child { border-top: 1px solid #d9d9d9; }
.policy-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 0; cursor: pointer; user-select: none; gap: 1rem; }
.policy-header:hover .policy-title { color: #2c85d7; }
.policy-title { font-size: 1.1rem; font-weight: 500; color: #142162; transition: color 0.2s; }
.policy-icon {
  flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid #d9d9d9; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; color: #767676; transition: transform 0.25s, border-color 0.25s, color 0.25s;
}
.policy-item.open .policy-icon { transform: rotate(45deg); border-color: #2c85d7; color: #2c85d7; }
.policy-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.policy-item.open .policy-body { max-height: 600px; }
.policy-body-inner { padding-bottom: 1.25rem; }
.policy-body-inner p { font-size: 1rem; font-weight: 300; color: #1b1b1b; line-height: 1.75; margin-bottom: 0.75rem; }
.policy-examples { list-style: none; padding: 0; margin: 0.75rem 0 0; }
.policy-examples li { display: flex; gap: 0.6rem; font-size: 0.9rem; font-weight: 300; color: #1b1b1b; line-height: 1.65; margin-bottom: 0.5rem; }
.policy-examples li::before { content: "→"; color: #2c85d7; flex-shrink: 0; font-weight: 600; }
.policy-examples a { color: #2c85d7; text-decoration: none; }
.policy-examples a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ── Paper card ── */
.paper-card { background: #eaf7ff; border-left: 4px solid #2c85d7; border-radius: 0 12px 12px 0; padding: 1.25rem 1.5rem; margin-top: 1.5rem; }
.paper-card .paper-title { font-size: 1rem; font-weight: 600; color: #142162; margin-bottom: 0.35rem; }
.paper-card .paper-meta { font-size: 0.8rem; color: #767676; font-weight: 300; }

/* ── Callout (iGHG) ── */
.callout { background: #eaf7ff; border-radius: 12px; padding: 1.25rem 1.5rem; margin: 1.5rem 0; display: flex; gap: 0.75rem; align-items: flex-start; }
.callout p { font-size: 0.95rem; font-weight: 300; color: #142162; line-height: 1.65; margin: 0; }
.callout p strong { font-weight: 600; }


/* ── Pathway cards ── */
.pathway-cards-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 1.25rem; }
.pathway-card { background: #f7f9ff; border: 1px solid #e0e7f2; border-radius: 16px; padding: 1.5rem; }
.pathway-card-icon { width: 48px; height: 48px; background: #dce7f5; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; color: #142162; }
.pathway-card-icon svg { width: 26px; height: 26px; }
.pathway-card h4 { font-size: 0.95rem; font-weight: 600; color: #142162; margin-bottom: 0.5rem; line-height: 1.3; }
.pathway-card p { font-size: 0.9rem; font-weight: 300; color: #4a4a4a; line-height: 1.65; margin: 0; }



/* ================================================================
   EEI page
   ================================================================ */

/* ── Font override — both explainer pages use Roboto ── */
body, h1, h2, h3, h4, h5, h6,
p, span, div, a, li,
button, input, textarea {
  font-family: "Roboto", sans-serif !important;
}


/* ── Energy-flow figure ── */
.energy-flow-figure { margin: 2rem 0 0; }
.energy-flow-svg { display: block; width: 100%; height: auto; border-radius: 16px; box-shadow: 0 6px 28px rgba(20,33,98,0.18); }
.energy-flow-cap { font-size: 0.78rem; font-weight: 300; color: #6E6E6E; line-height: 1.6; margin-top: 0.75rem; max-width: 760px; }

/* ── Albedo chart ── */
.albedo-chart-card { background: #ffffff; border: 1.5px solid #e8e8e8; border-radius: 16px; overflow: hidden; }
.albedo-chart-head { background: #142162; color: white; padding: 0.85rem 1.5rem; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.albedo-chart-body { padding: 1.25rem 1.5rem 1.5rem; }
.albedo-svg { width: 100%; height: auto; display: block; }
.albedo-grid-line { stroke: #ededed; stroke-width: 1; }
.albedo-axis-line { stroke: #c9c9c9; stroke-width: 1.5; }
.albedo-tick-label { font-family: "Roboto", sans-serif; font-size: 13px; fill: #8a8a8a; }
.albedo-axis-title { font-family: "Roboto", sans-serif; font-size: 13px; font-weight: 600; fill: #6E6E6E; }
.albedo-data-line { fill: none; stroke: #f4c94e; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.albedo-trend-line { fill: none; stroke: #e0a100; stroke-width: 3; stroke-linecap: round; transition: stroke-dashoffset 1.8s cubic-bezier(0.22, 1, 0.36, 1); }
.albedo-caption { font-size: 0.73rem; color: #9a9a9a; margin-top: 0.5rem; line-height: 1.5; }

/* ── EEI trend chart ── */
.eei-band { fill: rgba(44,133,215,0.16); stroke: none; }
.eei-zero { stroke: #b9c2d0; stroke-width: 1.5; }
.eei-data { fill: none; stroke: #2c85d7; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.eei-trend { fill: none; stroke: #c44000; stroke-width: 3; stroke-dasharray: 9 7; stroke-linecap: round; transition: stroke-dashoffset 1.8s cubic-bezier(0.22, 1, 0.36, 1); }
.eei-legend { font-family: "Roboto", sans-serif; font-size: 13px; }

/* TODO placeholder */
.source-todo { background: #fff3a8; color: #7a5b00; font-weight: 700; padding: 0.05rem 0.35rem; border-radius: 4px; border: 1px dashed #d4af00; }

/* ── Highlight box ── */
.highlight-box { background: #ffffff; border: 1.5px solid #c03030; padding: 1.25rem 1.5rem; border-radius: 12px; margin: 1.5rem 0; }
.highlight-box p { font-size: 0.95rem; color: #c03030; line-height: 1.65; margin: 0; }
.highlight-box strong { font-weight: 700; color: #c03030; }
.highlight-box .fn { background: #c03030; color: #ffffff; }


/* ── Cause tabs ── */
.cause-tabs { display: flex; gap: 0; border-bottom: 2px solid #e8e8e8; margin-bottom: 0; }
.cause-tab { padding: 0.8rem 1.5rem; font-size: 0.88rem; font-weight: 500; color: #6E6E6E; border: none; background: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px; transition: color 0.2s, border-color 0.2s; }
.cause-tab:hover { color: #2c85d7; }
.cause-tab.active { color: #142162; border-bottom-color: #2c85d7; font-weight: 700; }
.cause-panel { display: block; }
.cause-panel + .cause-panel { border-top: 1px solid #e8e8e8; margin-top: 1rem; }
.cause-content { display: grid; grid-template-columns: 200px 1fr; gap: 2.5rem; align-items: start; padding: 2rem 0; }
.cause-visual { background: #f7f8fa; border-radius: 16px; padding: 1.5rem; text-align: center; }
.cause-icon { width: 56px; height: 56px; display: block; margin: 0 auto 1rem; }
.cause-big-label { font-size: 1.5rem; font-weight: 700; color: #142162; line-height: 1; }
.cause-sub-label { font-size: 0.72rem; font-weight: 500; color: #6E6E6E; margin-top: 0.4rem; line-height: 1.4; text-transform: uppercase; letter-spacing: 0.06em; }
.cause-text h3 { font-size: 1.25rem; font-weight: 400; color: #1b1b1b; margin-bottom: 0.75rem; }
.cause-text p { font-size: 0.93rem; color: #4a4a4a; line-height: 1.75; margin-bottom: 1rem; }
.cause-badge { display: inline-block; background: rgba(44,133,215,0.1); border: 1px solid rgba(44,133,215,0.25); color: #142162; font-size: 0.73rem; font-weight: 600; padding: 0.22rem 0.65rem; border-radius: 100px; margin-right: 0.35rem; margin-bottom: 0.35rem; }
.cause-badge.disputed { background: rgba(180,80,0,0.08); border-color: rgba(180,80,0,0.25); color: #a04000; }

/* ── Model bar chart ── */
.model-bar-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.85rem; }
.model-bar-label { width: 130px; font-size: 0.8rem; font-weight: 500; color: #C8E7FC; flex-shrink: 0; text-align: right; line-height: 1.35; }
.model-bar-track { flex: 1; height: 30px; background: rgba(255,255,255,0.08); border-radius: 6px; overflow: hidden; position: relative; }
.model-bar-fill { height: 100%; border-radius: 6px; width: 0%; transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1); position: relative; display: flex; align-items: center; justify-content: flex-end; padding-right: 10px; }
.model-bar-fill.observed  { background: #ffffff; }
.model-bar-fill.models    { background: #2c85d7; }
.model-bar-fill.low-sens  { background: rgba(255,255,255,0.25); }
.model-bar-value { font-size: 0.75rem; font-weight: 700; color: #142162; }
.model-bar-fill.low-sens .model-bar-value { color: #C8E7FC; }

/* ── Callout grid (EEI) ── */
.callout-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin: 2rem 0; }
.callout-box { border: 1.5px solid #d9d9d9; border-radius: 16px; padding: 1.75rem; background: white; transition: border-color 0.25s, box-shadow 0.25s; }
.callout-box:hover { border-color: #2c85d7; box-shadow: 0 4px 24px rgba(44,133,215,0.12); }
.callout-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(44,133,215,0.1); display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; }
.callout-icon svg { width: 20px; height: 20px; stroke: #2c85d7; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.callout-box h3 { font-size: 1rem; font-weight: 700; color: #142162; margin-bottom: 0.5rem; }
.callout-box p { font-size: 0.88rem; color: #6E6E6E; line-height: 1.65; }

/* ── Priority grid ── */
.priority-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-top: 1.25rem; }
.priority-card { background: white; border: 1px solid #e8e8e8; border-radius: 12px; padding: 1.25rem; }
.priority-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: #2c85d7; margin-bottom: 0.4rem; }
.priority-title { font-size: 0.92rem; font-weight: 600; color: #142162; margin-bottom: 0.35rem; }
.priority-desc { font-size: 0.83rem; color: #6E6E6E; line-height: 1.6; }

/* ── Footnote ── */
.fn { display: inline-block; width: 16px; height: 16px; background: #142162; color: white; border-radius: 50%; font-size: 0.6rem; font-weight: 700; text-align: center; line-height: 16px; vertical-align: super; margin-left: 1px; cursor: pointer; text-decoration: none; scroll-margin-top: 80px; }
.fn:hover { background: #2c85d7; }
.fn.light { background: rgba(255,255,255,0.3); color: #C8E7FC; }
.fn.light:hover { background: rgba(255,255,255,0.5); }

/* ── References ── */
.ref-list { list-style: none; padding: 0; margin: 0; }
.ref-list li { padding: 0.9rem 0; border-bottom: 1px solid #e8e8e8; font-size: 0.875rem; color: #4a4a4a; line-height: 1.65; font-weight: 300; display: flex; gap: 0.75rem; align-items: flex-start; scroll-margin-top: 80px; }
.ref-list li:last-child { border-bottom: none; }
.ref-num { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; background: #142162; color: white; border-radius: 50%; font-size: 0.68rem; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.ref-back { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #d0d0d0; color: #9c9c9c; text-decoration: none; font-size: 0.75rem; flex-shrink: 0; margin-top: 1px; transition: border-color 0.15s, color 0.15s; line-height: 1; }
.ref-back:hover { border-color: #142162; color: #142162; }
.ref-author { font-weight: 500; color: #1b1b1b; }
.ref-journal { color: #2c85d7; }

/* ================================================================
   Utilities
   ================================================================ */

.mt-sm  { margin-top: 1rem; }
.mt-md  { margin-top: 1.5rem; }
.mt-lg  { margin-top: 2.5rem; }
.mt-xl  { margin-top: 3rem; }
.mb-0   { margin-bottom: 0 !important; }
.mb-xs  { margin-bottom: 0.25rem; }
.mb-sm  { margin-bottom: 0.5rem; }
.mb-1   { margin-bottom: 1rem; }
.mb-md  { margin-bottom: 1.5rem; }
.max-w-740 { max-width: 740px; }
.justify-center { justify-content: center; }

/* ── Shared text helpers ── */
.lead-p { font-weight: 300; font-size: 1.1rem; line-height: 1.8; color: #1b1b1b; }
.section-h3 { font-size: 1.15rem; font-weight: 400; color: #142162; margin-bottom: 1rem; }
.section-p { font-size: 0.93rem; color: #4a4a4a; line-height: 1.75; margin-bottom: 1rem; }
.text-col { max-width: 760px; }
.refs-intro { font-size: 0.9rem; color: #6E6E6E; margin-bottom: 2rem; font-weight: 300; }
.basket-caption { font-size: 0.8rem; color: #767676; font-weight: 300; line-height: 1.5; }

/* ── Dark-section overrides ── */
.section-dark .section-heading { color: white; }
.section-dark .section-sub { color: #C8E7FC; }
.section-dark .section-h3 { font-size: 1.1rem; font-weight: 400; color: #C8E7FC; margin-bottom: 0.75rem; }
.section-dark .section-p { font-size: 0.9rem; color: rgba(200,231,252,0.85); line-height: 1.75; margin-bottom: 1rem; }

/* ── iGHG additions ── */
.callout-img { width: 22px; height: 22px; flex-shrink: 0; margin-top: 0.1rem; opacity: 0.75; }
.callout-ul { margin: 0; padding-left: 1.25rem; font-size: 0.95rem; font-weight: 300; color: #142162; line-height: 1.65; }
.callout-li { margin-bottom: 0.5rem; }
.source-group { display: block; margin-bottom: 1rem; }
.chip-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.source-chip { font-size: 0.75rem; font-weight: 500; padding: 0.2rem 0.65rem; border-radius: 100px; }
.source-chip--natural { background: #e6f4ee; color: #2a7a4f; }
.source-chip--human { background: #fff0f0; color: #c03030; }
.basket-label--natural { color: #2a7a4f; }
.basket-label--human { color: #c03030; }
.context-list { display: flex; flex-direction: column; }
.context-item { padding-bottom: 2rem; border-bottom: 1px solid #e5e5e5; margin-bottom: 2rem; }
.context-body { display: flex; flex-direction: column; gap: 1rem; font-size: 1rem; font-weight: 300; color: #1b1b1b; line-height: 1.75; }
.context-p { font-size: 1rem; font-weight: 300; color: #1b1b1b; line-height: 1.65; margin: 0; }
.basket-visual--context { padding: 1.75rem; margin: 0; }
.temp-row-label--section { font-weight: 600; font-size: 0.75rem; color: #767676; }
.temp-row--spaced { margin-top: 1rem; }
.temp-bar-track--transparent { background: transparent !important; }
.policy-section-label { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #2c85d7; margin-bottom: 0.25rem; }
.lifetime-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
@media (max-width: 640px) { .lifetime-layout { grid-template-columns: 1fr; } }
.lifetime-text-col { display: flex; flex-direction: column; gap: 1rem; }
.lifetime-tables-col { display: flex; flex-direction: column; gap: 0.75rem; }
.lifetime-tbl-wrap { background: #f7f8fa; border-radius: 12px; overflow: hidden; }
.lifetime-tbl { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.lifetime-tbl-head th { background: #142162; color: white; padding: 0.6rem 0.85rem; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-align: left; }
.lifetime-tbl td { padding: 0.5rem 0.85rem; border-bottom: 1px solid #e8e8e8; font-weight: 300; color: #1b1b1b; line-height: 1.5; }
.lifetime-tbl tbody tr:last-child td { border-bottom: none; }
.lifetime-tbl td:last-child { color: #4a4a4a; white-space: nowrap; }

/* ── EEI additions ── */
.eq-table { background: #f7f8fa; border-radius: 16px; overflow: hidden; }
.eq-table-head { background: #142162; color: white; padding: 0.75rem 1.25rem; font-size: 0.73rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.eq-table-body { padding: 1.5rem; }
.eq-table-row { display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 0; border-bottom: 1px solid #e8e8e8; font-size: 0.92rem; }
.eq-table-row:last-child { border-bottom: none; }
.eq-table-row--total { border-bottom: 2px solid #142162; }
.eq-term-label { color: #4a4a4a; flex: 1; }
.eq-term-label--primary { color: #1b1b1b; font-weight: 600; flex: 1; }
.eq-term-label--result { color: #c44000; font-weight: 700; flex: 1; }
.eq-icon { width: 1.1em; height: 1.1em; vertical-align: middle; margin-right: 0.5rem; flex-shrink: 0; color: #2c85d7; }
.eq-term-op { font-weight: 700; color: #2c85d7; font-size: 1.15rem; min-width: 1.2rem; text-align: center; }
.eq-term-op--blank { color: transparent; }
.eq-term-op--result { color: #c44000; }
.eq-table-caption { font-size: 0.75rem; color: #9a9a9a; margin-top: 0.5rem; line-height: 1.5; }
.obs-p { font-size: 0.95rem; color: #4a4a4a; line-height: 1.8; margin-bottom: 1.25rem; }
.model-chart-card { background: rgba(255,255,255,0.07); border-radius: 16px; padding: 2rem; margin-bottom: 2.5rem; }
.model-chart-title { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #C8E7FC; margin-bottom: 1.5rem; }
.model-bar-value--light { color: white !important; }
.chart-footnote { font-size: 0.73rem; color: rgba(200,231,252,0.55); margin-top: 1rem; }
.cause-role { margin-top: 1.5rem; border-top: 1px solid #e8e8e8; padding-top: 1.25rem; }
.cause-role-label { font-size: 0.72rem; color: #6E6E6E; font-weight: 500; margin-bottom: 0.25rem; }
.cause-role-value { font-size: 0.85rem; color: #1b1b1b; font-weight: 400; }
.content-card { background: #f7f8fa; border-radius: 16px; padding: 2.5rem; }
.content-card .section-p { margin-bottom: 1.25rem; }
.content-card-h3 { font-size: 1.25rem; font-weight: 400; color: #1b1b1b; margin-bottom: 0.75rem; }

/* ================================================================
   Responsive
   ================================================================ */

@media (max-width: 767px) {
  /* Shared explainer hero */
  .explainer-hero { padding: 5rem 1.25rem 3rem; }
  .explainer-hero .hero-sub { font-size: 1rem; }
  .stats-strip { padding: 2rem 1.25rem; }
  .stats-grid { grid-template-columns: 1fr !important; }

  /* Dark nav */
  .explainer-nav { padding: 0 1rem; }
  .nav-logo img { height: 20px; }

  /* Site nav (index) */
  .site-nav-container { padding: 0 1rem; }
  .nav-donate { display: none; }

  /* iGHG */
  .pathway-cards-grid { grid-template-columns: 1fr; }
  .intro-grid { grid-template-columns: 1fr; }
  .ighg-grid { grid-template-columns: 1fr; }
  .temp-row-label { width: 84px; font-size: 0.75rem; }
  .temp-chart-wrapper { padding: 1.25rem; }
  .temp-value { width: 44px; font-size: 0.75rem; }
  .basket-visual { padding: 1.5rem 1.25rem; }

  /* EEI */
  .two-col { grid-template-columns: 1fr; gap: 2rem; }
  .callout-grid { grid-template-columns: 1fr; }
  .cause-content { grid-template-columns: 1fr; }
  .priority-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section-light { padding: 3rem 1.25rem; }
  .author-card { flex-direction: column; text-align: center; gap: 1.25rem; }
}

@media (max-width: 600px) {
  .index-hero { padding: 5rem 1.25rem 3rem; }
  .cards-section { padding: 3rem 1.25rem; }
  .explainer-nav { padding: 0 1rem; }
  .nav-logo img { height: 20px; }
}
