/* ============================================================
   TERAVENT — Individual Pathway Pages CSS
   pathway-*.html
   ============================================================ */

:root {
  --pw-accent: #2d6a2d;
  --pw-accent-dark: #1a3d1a;
  --pw-accent-pale: #eef6e8;
  --pw-accent-mid: #4a8c4a;
  --pw-teal: #5ecece;
  --pw-gold: #c9a84c;
  --pw-gold-pale: #fff8e0;
  --pw-ink: #0f1f0f;
  --pw-bark: #2a4a2a;
  --pw-moss: #5a7a5a;
  --pw-border: rgba(45, 106, 45, 0.16);
  --mono: "DM Mono", "Courier New", monospace;
  --f-display: "Cormorant Garamond", Georgia, serif;
  --f-body: "Instrument Sans", system-ui, sans-serif;
  --ease: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ─── Hero ─── */
.pw-hero {
  background: var(--ink);
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4rem;
}
.pw-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 222, 206, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 222, 206, 0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  pointer-events: none;
}
.pw-hero-accent {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  opacity: 0.04;
  filter: blur(80px);
  pointer-events: none;
}
.pw-hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2.5rem;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}
.pw-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "DM Mono", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.pw-breadcrumb a {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}
.pw-breadcrumb a:hover {
  color: var(--gold-mid);
}
.pw-breadcrumb .current {
  color: var(--gold-mid);
}
.pw-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 1rem;
}
.pw-num-badge {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.8rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.5rem;
  border-radius: 4px;
}
.pw-icon-large {
  font-size: 2.5rem;
  line-height: 1;
  display: block;
  margin-bottom: 1rem;
}
.pw-hero-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 1rem;
}
.pw-hero-title em {
  font-style: italic;
  color: var(--gold-mid);
}
.pw-hero-desc {
  font-family: "Instrument Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.6);
  max-width: 580px;
  margin-bottom: 2rem;
}
.pw-hero-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.pw-hero-tag {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.55);
}
.pw-hero-tag.cat {
  border-color: var(--gold-mid);
  color: var(--gold-mid);
}
.pw-hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  background: var(--gold-mid);
  color: var(--ink);
  padding: 0.75rem 1.6rem;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.15s;
}
.pw-hero-cta:hover {
  opacity: 0.88;
}
.pw-hero-cta-sec {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  padding: 0.75rem 0;
  margin-left: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  transition: color 0.15s;
}
.pw-hero-cta-sec:hover {
  color: var(--gold-mid);
}

/* Metrics card in hero */
.pw-metrics-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.pw-metric {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.pw-metric-val {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1;
}
.pw-metric-lbl {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.35);
  text-transform: uppercase;
}
.pw-methodology-badge {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pw-method-id {
  font-family: "DM Mono", monospace;
  font-size: 0.72rem;
  color: var(--gold-mid);
  letter-spacing: 0.08em;
}
.pw-method-link {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  transition: color 0.15s;
}
.pw-method-link:hover {
  color: var(--gold-mid);
}

/* ─── Body layout ─── */
.pw-body {
  max-width: 1160px;
  margin: 0 auto;
  padding: 4rem 2.5rem;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 4rem;
  align-items: start;
}
.pw-main {
  min-width: 0;
}
.pw-sidebar {
  position: sticky;
  top: 56px;
}

/* ─── Section blocks ─── */
.pw-section {
  margin-bottom: 3.5rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--border-light);
}
.pw-section:last-child {
  border-bottom: none;
}
.pw-section-label {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 0.6rem;
}
.pw-section-title {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  font-weight: 300;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.pw-section-title em {
  font-style: italic;
  color: var(--forest);
}
.pw-prose {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.93rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.pw-prose p {
  margin-bottom: 1rem;
}
.pw-prose p:last-child {
  margin-bottom: 0;
}

/* ─── Subtypes grid ─── */
.pw-subtypes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.pw-subtype {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.5;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  padding: 0.8rem 1rem;
}
.pw-subtype::before {
  content: "→";
  color: var(--forest);
  flex-shrink: 0;
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

/* ─── MRV confidence bars ─── */
.pw-mrv-bars {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}
.pw-mrv-row {
}
.pw-mrv-label {
  display: flex;
  justify-content: space-between;
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}
.pw-mrv-label span:last-child {
  color: var(--text-muted);
}
.pw-mrv-track {
  height: 6px;
  background: var(--border-light);
  border-radius: 3px;
  overflow: hidden;
}
.pw-mrv-fill {
  height: 100%;
  background: var(--forest);
  border-radius: 3px;
  transition: width 1s ease;
}
.pw-mrv-fill.gold {
  background: var(--gold-mid);
}
.pw-mrv-fill.sky {
  background: var(--sky);
}

/* ─── Eligibility checklist ─── */
.pw-eligibility {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 1.5rem;
}
.pw-eli-item {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  padding: 0.8rem 1rem;
  background: var(--bg-light);
  border-radius: 8px;
  border: 1px solid var(--border-light);
}
.pw-eli-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--foam);
  border: 1px solid var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  color: var(--forest);
  margin-top: 0.05rem;
}

/* ─── SDG chips ─── */
.pw-sdgs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.2rem;
}
.pw-sdg {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  padding: 0.3rem 0.7rem;
  border-radius: 20px;
  border: 1px solid var(--border-mid);
  color: var(--text-secondary);
  background: var(--white);
}

/* ─── Science note ─── */
.pw-science-note {
  background: var(--ink);
  border-radius: 10px;
  padding: 1.5rem 1.8rem;
  margin-top: 1.5rem;
  position: relative;
  overflow: hidden;
}
.pw-science-note::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 222, 206, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 222, 206, 0.04) 1px, transparent 1px);
  background-size: 28px 28px;
}
.pw-science-note-label {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 0.6rem;
  position: relative;
}
.pw-science-note p {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.75;
  margin: 0;
  position: relative;
}

/* ─── Sidebar widgets ─── */
.pw-sidebar-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 1.4rem;
  margin-bottom: 1.2rem;
}
.pw-sidebar-card-title {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-light);
}
.pw-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
  font-family: "Instrument Sans", sans-serif;
}
.pw-meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.pw-meta-label {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.pw-meta-val {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  max-width: 60%;
}
.pw-submit-btn {
  display: block;
  width: 100%;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.83rem;
  font-weight: 500;
  text-align: center;
  background: var(--forest);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  transition: opacity 0.15s;
  margin-bottom: 0.7rem;
}
.pw-submit-btn:hover {
  opacity: 0.88;
}
.pw-docs-btn {
  display: block;
  width: 100%;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  text-align: center;
  background: var(--foam);
  color: var(--forest);
  padding: 0.65rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid rgba(45, 94, 58, 0.2);
  transition: background 0.15s;
}
.pw-docs-btn:hover {
  background: #d4e8d8;
}

/* Pathway nav sidebar */
.pw-pathway-nav {
  margin-bottom: 1.2rem;
}
.pw-pathway-nav-title {
  font-family: "DM Mono", monospace;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 0.6rem;
}
.pw-nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.8rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
  margin-bottom: 0.1rem;
}
.pw-nav-link:hover {
  background: var(--foam);
  color: var(--forest);
}
.pw-nav-link.current {
  background: var(--foam);
  color: var(--forest);
  font-weight: 500;
}
.pw-nav-link .pw-nav-num {
  font-family: "DM Mono", monospace;
  font-size: 0.6rem;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 18px;
}

/* ─── Next Pathways strip ─── */
.pw-next-strip {
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
  padding: 3.5rem 0;
}
.pw-next-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2.5rem;
}
.pw-next-label {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.pw-next-heading {
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 300;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 2rem;
}
.pw-next-heading em {
  font-style: italic;
  color: var(--forest);
}
.pw-next-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.pw-next-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 1.4rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.pw-next-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--forest);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.pw-next-card:hover {
  border-color: var(--forest);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}
.pw-next-card:hover::before {
  transform: scaleX(1);
}
.pw-next-icon {
  font-size: 1.5rem;
}
.pw-next-cat {
  font-family: "DM Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.pw-next-title {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}
.pw-next-arrow {
  font-size: 0.8rem;
  color: var(--forest);
  margin-top: auto;
  padding-top: 0.5rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: all 0.2s;
}
.pw-next-card:hover .pw-next-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ─── CTA strip ─── */
.pw-cta-strip {
  background: var(--ink);
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pw-cta-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(200, 222, 206, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 222, 206, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}
.pw-cta-inner {
  position: relative;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 2rem;
}
.pw-cta-label {
  font-family: "DM Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-mid);
  margin-bottom: 1rem;
}
.pw-cta-title {
  font-family: "Cormorant Garamond", serif;
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.pw-cta-title em {
  font-style: italic;
  color: var(--gold-mid);
}
.pw-cta-desc {
  font-family: "Instrument Sans", sans-serif;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.pw-cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Responsive ─── */
@media (max-width: 1000px) {
  .pw-hero-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .pw-metrics-card {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
  .pw-body {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pw-sidebar {
    position: static;
    margin-bottom: 2rem;
    order: -1;
  }
  .pw-next-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 680px) {
  .pw-hero {
    padding: 4rem 0 3rem;
  }
  .pw-hero-inner {
    padding: 0 1.5rem;
  }
  .pw-body {
    padding: 2.5rem 1.5rem;
  }
  .pw-subtypes {
    grid-template-columns: 1fr;
  }
  .pw-metrics-card {
    grid-template-columns: 1fr 1fr;
  }
  .pw-next-grid {
    grid-template-columns: 1fr;
  }
  .pw-next-inner {
    padding: 0 1.5rem;
  }
}

/* ── STANDARD LINKAGE CARD ── */
.std-link-card {
  background: var(--pw-accent-dark);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.std-link-header {
  padding: 1.4rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.std-link-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(45, 106, 45, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.std-link-ref {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 3px;
}
.std-link-name {
  font-family: var(--f-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.std-link-body {
  padding: 1.2rem 1.8rem;
}
.std-link-trail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.std-link-trail .trail-sep {
  color: rgba(255, 255, 255, 0.2);
}
.std-link-trail .trail-active {
  color: #9ed89e;
  font-weight: 600;
  background: rgba(45, 106, 45, 0.25);
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
}
.std-link-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
@media (max-width: 600px) {
  .std-link-modules {
    grid-template-columns: 1fr;
  }
}
.std-link-module {
  display: flex;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 8px;
  font-size: 0.8rem;
}
.std-link-module-num {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: #9ed89e;
  font-weight: 600;
  white-space: nowrap;
  margin-top: 2px;
}
.std-link-module-text {
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.45;
}
.std-link-footer {
  padding: 1rem 1.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.std-link-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--pw-accent);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--ease);
  display: inline-block;
}
.std-link-btn:hover {
  background: var(--pw-accent-mid);
}
.std-link-btn-outline {
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--ease);
  display: inline-block;
}
.std-link-btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

/* ── METHODOLOGY CARDS ── */
.method-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.method-card {
  border: 1.5px solid var(--pw-border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow var(--ease);
}
.method-card:hover {
  box-shadow: 0 4px 16px rgba(26, 61, 26, 0.1);
}
.method-card-header {
  padding: 1.1rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  cursor: pointer;
  background: var(--pw-accent-pale);
  border-bottom: 1px solid var(--pw-border);
}
.method-card-code {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--pw-accent);
  background: rgba(45, 106, 45, 0.12);
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}
.method-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pw-ink);
  line-height: 1.3;
}
.method-card-subtitle {
  font-size: 0.78rem;
  color: var(--pw-moss);
  margin-top: 3px;
}
.method-card-toggle {
  margin-left: auto;
  color: var(--pw-moss);
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform var(--ease);
}
.method-card.open .method-card-toggle {
  transform: rotate(180deg);
}
.method-card-body {
  display: none;
  padding: 1.3rem 1.4rem;
}
.method-card.open .method-card-body {
  display: block;
}
.method-card-desc {
  font-size: 0.875rem;
  color: var(--pw-bark);
  line-height: 1.72;
  margin-bottom: 1rem;
}
.method-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1rem;
}
@media (max-width: 560px) {
  .method-specs {
    grid-template-columns: 1fr 1fr;
  }
}
.method-spec {
  padding: 0.65rem 0.8rem;
  background: var(--pw-accent-pale);
  border: 1px solid var(--pw-border);
  border-radius: 8px;
}
.method-spec-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pw-moss);
  margin-bottom: 3px;
}
.method-spec-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pw-ink);
  line-height: 1.3;
}
.method-monitoring {
  background: rgba(45, 106, 45, 0.06);
  border: 1px solid var(--pw-border);
  border-radius: 8px;
  padding: 0.9rem 1rem;
}
.method-monitoring-title {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--pw-accent);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.method-monitoring ul {
  padding-left: 1.1rem;
  margin: 0;
}
.method-monitoring li {
  font-size: 0.8rem;
  color: var(--pw-bark);
  line-height: 1.65;
  margin-bottom: 3px;
}

/* ── PERMANENCE TABLE ── */
.perm-table-wrap {
  border: 1px solid var(--pw-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.perm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.perm-table thead {
  background: var(--pw-accent-dark);
  color: #fff;
}
.perm-table th {
  padding: 0.8rem 1.1rem;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}
.perm-table td {
  padding: 0.78rem 1.1rem;
  border-bottom: 1px solid var(--pw-border);
  vertical-align: middle;
  color: var(--pw-bark);
}
.perm-table tbody tr:last-child td {
  border-bottom: none;
}
.perm-table tbody tr:nth-child(even) td {
  background: var(--pw-accent-pale);
}
.perm-table tbody tr:hover td {
  background: rgba(45, 106, 45, 0.08);
}
.perm-tag {
  display: inline-flex;
  padding: 0.16rem 0.5rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
}
.perm-tag.II {
  background: rgba(139, 105, 20, 0.14);
  color: #8b6914;
}
.perm-tag.buf {
  background: rgba(201, 168, 76, 0.15);
  color: #8b6914;
}

/* ── CARBON POOL GRID ── */
.pool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 560px) {
  .pool-grid {
    grid-template-columns: 1fr;
  }
}
.pool-card {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1.5px solid var(--pw-border);
  background: #fff;
  position: relative;
  overflow: hidden;
  transition: all var(--ease);
}
.pool-card:hover {
  border-color: var(--pw-accent);
  box-shadow: 0 2px 8px rgba(26, 61, 26, 0.08);
}
.pool-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}
.pool-card.required::before {
  background: var(--pw-accent);
}
.pool-card.optional::before {
  background: var(--pw-moss);
}
.pool-card.excluded::before {
  background: #ccc;
}
.pool-card-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pw-ink);
  margin-bottom: 3px;
}
.pool-card-req {
  display: inline-flex;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  padding: 0.14rem 0.45rem;
  border-radius: 3px;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.pool-card-req.required {
  background: rgba(45, 106, 45, 0.12);
  color: var(--pw-accent);
}
.pool-card-req.optional {
  background: rgba(90, 122, 90, 0.12);
  color: var(--pw-moss);
}
.pool-card-req.excluded {
  background: rgba(0, 0, 0, 0.06);
  color: #888;
}
.pool-card-desc {
  font-size: 0.76rem;
  color: var(--pw-moss);
  line-height: 1.55;
}

/* ── ADDITIONALITY STEPS ── */
.addit-steps {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
.addit-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1rem 1.2rem;
  border: 1px solid var(--pw-border);
  border-radius: 10px;
  background: #fff;
  transition: background var(--ease);
}
.addit-step:hover {
  background: var(--pw-accent-pale);
}
.addit-step-num {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  background: var(--pw-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
}
.addit-step-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pw-ink);
  margin-bottom: 3px;
}
.addit-step-desc {
  font-size: 0.8rem;
  color: var(--pw-moss);
  line-height: 1.6;
}

/* ── LEAKAGE GRID ── */
.leakage-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 560px) {
  .leakage-grid {
    grid-template-columns: 1fr;
  }
}
.leakage-card {
  padding: 1rem 1.2rem;
  border-radius: 10px;
  background: var(--pw-accent-pale);
  border: 1px solid var(--pw-border);
}
.leakage-type {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--pw-accent);
  margin-bottom: 5px;
  font-weight: 600;
}
.leakage-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pw-ink);
  margin-bottom: 4px;
}
.leakage-desc {
  font-size: 0.78rem;
  color: var(--pw-moss);
  line-height: 1.6;
}
.leakage-rate {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--pw-accent);
}

/* ── CALLOUT ── */
.pw-callout {
  display: flex;
  gap: 0.9rem;
  padding: 1rem 1.2rem;
  border-radius: 8px;
  font-size: 0.84rem;
  line-height: 1.65;
  margin-bottom: 1.2rem;
  border-left: 3px solid;
}
.pw-callout.green {
  background: var(--pw-accent-pale);
  border-color: var(--pw-accent);
  color: var(--pw-bark);
}
.pw-callout.amber {
  background: var(--pw-gold-pale);
  border-color: var(--pw-gold);
  color: #5c3d00;
}
.pw-callout.info {
  background: #eef4ff;
  border-color: #4a6fbf;
  color: #1e3a72;
}
.pw-callout-icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── SERIAL DEMO ── */
.serial-demo {
  background: var(--pw-accent-dark);
  border-radius: 10px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.serial-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-bottom: 0.8rem;
}
.serial-code {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  font-family: var(--mono);
  font-size: clamp(0.7rem, 1.6vw, 0.88rem);
  margin-bottom: 0.8rem;
}
.seg {
  padding: 0.28rem 0.55rem;
  border-radius: 4px;
  font-weight: 500;
}
.seg-reg {
  background: rgba(45, 106, 45, 0.35);
  color: #9ed89e;
}
.seg-std {
  background: rgba(201, 168, 76, 0.28);
  color: #e8c56a;
}
.seg-pw {
  background: rgba(74, 140, 74, 0.3);
  color: #b0deb0;
}
.seg-cn {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}
.seg-id {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.45);
}
.seg-yr {
  background: rgba(201, 168, 76, 0.2);
  color: #e8c56a;
}
.seg-un {
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.3);
}
.seg-sep {
  color: rgba(255, 255, 255, 0.18);
}
.serial-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 0.7rem;
  margin-top: 0.2rem;
}
.serial-meta span {
  color: rgba(255, 255, 255, 0.55);
}

/* ── SIDEBAR STD CARD ── */
.sidebar-std-card {
  background: var(--pw-accent-dark);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.sidebar-std-top {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.sidebar-std-badge {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  background: rgba(45, 106, 45, 0.35);
  color: #9ed89e;
  padding: 0.2rem 0.55rem;
  border-radius: 3px;
  display: inline-block;
  margin-bottom: 0.4rem;
}
.sidebar-std-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}
.sidebar-std-body {
  padding: 0.8rem 1.1rem;
}
.sidebar-std-row {
  display: flex;
  justify-content: space-between;
  padding: 0.38rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.76rem;
}
.sidebar-std-row:last-child {
  border-bottom: none;
}
.sidebar-std-lbl {
  color: rgba(255, 255, 255, 0.38);
}
.sidebar-std-val {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  text-align: right;
}
.sidebar-std-footer {
  padding: 0.7rem 1.1rem;
}
.sidebar-std-link {
  display: block;
  text-align: center;
  padding: 0.5rem;
  border-radius: 4px;
  background: var(--pw-accent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  transition: background var(--ease);
  text-decoration: none;
}
.sidebar-std-link:hover {
  background: var(--pw-accent-mid);
}

.pw-pathway-nav .current {
  background: var(--pw-accent-pale);
  color: var(--pw-accent);
  border-left: 3px solid var(--pw-accent);
  font-weight: 600;
}

/* Biomass stocking grid (ARR-specific) */
.allometric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
@media (max-width: 560px) {
  .allometric-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.allometric-card {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--pw-border);
  background: #fff;
}
.allometric-card-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pw-moss);
  margin-bottom: 4px;
}
.allometric-card-val {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--pw-ink);
  line-height: 1.3;
}

/* ── CARBON STACKING DIAGRAM (Agroforestry-specific) ── */
.carbon-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 560px) {
  .carbon-stack {
    grid-template-columns: 1fr;
  }
}
.stack-card {
  border: 1px solid var(--pw-border);
  border-radius: 10px;
  overflow: hidden;
}
.stack-card-head {
  padding: 0.65rem 1rem;
  background: var(--pw-accent);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.stack-card-icon {
  font-size: 1.1rem;
}
.stack-card-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}
.stack-card-body {
  padding: 0.8rem 1rem;
  background: #fff;
}
.stack-card-desc {
  font-size: 0.76rem;
  color: var(--pw-moss);
  line-height: 1.55;
}
.stack-card-rate {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--pw-accent);
  font-weight: 600;
}

/* ── SDG CO-BENEFIT LABEL CARDS ── */
.cobenefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.cobenefit-card {
  padding: 1rem 1.2rem;
  background: var(--pw-accent-pale);
  border-radius: 8px;
  border: 1px solid var(--pw-border);
}
.cobenefit-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pw-accent);
  margin-bottom: 5px;
}
.cobenefit-desc {
  font-size: 0.8rem;
  color: var(--pw-bark);
  line-height: 1.6;
}

/* BIOCHAR-SPECIFIC: Hybrid pathway explainer */
.hybrid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 560px) {
  .hybrid-split {
    grid-template-columns: 1fr;
  }
}
.hybrid-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--pw-border);
}
.hybrid-card-head {
  padding: 0.9rem 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.hybrid-card-head.bio {
  background: rgba(45, 106, 45, 0.18);
  background: var(--pw-accent);
}
.hybrid-card-head.tech {
  background: rgba(26, 92, 69, 0.25);
  background: var(--pw-accent);
}
.hybrid-card-tag {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
  color: var(--white);
}
.hybrid-card-tag.bio {
  background: rgba(45, 106, 45, 0.2);
  color: #2d6a2d;
}
.hybrid-card-tag.tech {
  background: rgba(26, 92, 69, 0.25);
  color: var(--pw-accent);
}
.hybrid-card-body {
  padding: 1rem 1.2rem;
  background: #fff;
}
.hybrid-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pw-ink);
  margin-bottom: 5px;
}
.hybrid-card-desc {
  font-size: 0.78rem;
  color: var(--pw-moss);
  line-height: 1.6;
}

/* BIOCHAR-SPECIFIC: TBQC criteria */
.tbqc-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 560px) {
  .tbqc-grid {
    grid-template-columns: 1fr;
  }
}
.tbqc-card {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1.5px solid var(--pw-border);
  background: #fff;
}
.tbqc-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pw-accent);
  margin-bottom: 5px;
  font-weight: 600;
}
.tbqc-criterion {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pw-ink);
  margin-bottom: 4px;
}
.tbqc-value {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--white);
  font-weight: 600;
  margin-bottom: 5px;
  background: var(--pw-accent);
  padding: 0.22rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
}
.tbqc-desc {
  font-size: 0.76rem;
  color: var(--pw-moss);
  line-height: 1.55;
}

/* BIOCHAR-SPECIFIC: Stability class table */
.stability-table-wrap {
  border: 1px solid var(--pw-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.stability-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}
.stability-table thead {
  background: var(--pw-accent-dark);
  color: #fff;
}
.stability-table th {
  padding: 0.8rem 1.1rem;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}
.stability-table td {
  padding: 0.78rem 1.1rem;
  border-bottom: 1px solid var(--pw-border);
  vertical-align: middle;
  color: var(--pw-bark);
}
.stability-table tbody tr:last-child td {
  border-bottom: none;
}
.stability-table tbody tr:nth-child(even) td {
  background: var(--pw-accent-pale);
}
.stability-table tbody tr:hover td {
  background: rgba(26, 92, 69, 0.06);
}
.stab-tag {
  display: inline-flex;
  padding: 0.16rem 0.5rem;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
}
.stab-tag.high {
  background: rgba(26, 92, 69, 0.18);
  color: var(--pw-accent);
}
.stab-tag.medium {
  background: rgba(201, 168, 76, 0.18);
  color: #8b6914;
}
.stab-tag.basic {
  background: rgba(0, 0, 0, 0.06);
  color: #666;
}

/* BIOCHAR-SPECIFIC: Pyrolysis process flow */
.pyrolysis-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 1.5rem;
  border: 1px solid var(--pw-border);
  border-radius: 10px;
  overflow: hidden;
}
@media (max-width: 640px) {
  .pyrolysis-flow {
    grid-template-columns: 1fr 1fr;
  }
}
.pyr-step {
  padding: 1rem;
  border-right: 1px solid var(--pw-border);
  background: #fff;
}
.pyr-step:last-child {
  border-right: none;
}
.pyr-step-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pw-accent);
  margin-bottom: 4px;
  font-weight: 600;
}
.pyr-step-title {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--pw-ink);
  margin-bottom: 3px;
}
.pyr-step-temp {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--pw-accent);
  font-weight: 600;
  margin-bottom: 3px;
}
.pyr-step-desc {
  font-size: 0.72rem;
  color: var(--pw-moss);
  line-height: 1.5;
}

/* TMCL table */
.tmcl-table-wrap {
  border: 1px solid var(--pw-border);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.tmcl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.83rem;
}
.tmcl-table thead {
  background: var(--pw-accent-dark);
  color: #fff;
}
.tmcl-table th {
  padding: 0.75rem 1rem;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 400;
}
.tmcl-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--pw-border);
  color: var(--pw-bark);
}
.tmcl-table tbody tr:last-child td {
  border-bottom: none;
}
.tmcl-table tbody tr:nth-child(even) td {
  background: var(--pw-accent-pale);
}

/* ── BLUE CARBON SPECIFIC: Ecosystem comparison grid ── */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
}
.ecosystem-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--pw-border);
}
.ecosystem-card-head {
  padding: 0.85rem 1.1rem;
  background: var(--pw-accent-dark);
}
.ecosystem-card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}
.ecosystem-card-name {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.ecosystem-card-code {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: #9ed89e;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.ecosystem-card-body {
  padding: 0.9rem 1.1rem;
  background: #fff;
}
.ecosystem-stat {
  margin-bottom: 0.5rem;
}
.ecosystem-stat-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pw-moss);
  margin-bottom: 2px;
}
.ecosystem-stat-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pw-ink);
}

/* ── BLUE CARBON SPECIFIC: Ecosystem comparison grid ── */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
  .ecosystem-grid {
    grid-template-columns: 1fr;
  }
}
.ecosystem-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--pw-border);
}
.ecosystem-card-head {
  padding: 0.85rem 1.1rem;
  background: var(--pw-accent-dark);
}
.ecosystem-card-icon {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
}
.ecosystem-card-name {
  font-family: var(--f-display);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.ecosystem-card-code {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: #9ed89e;
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.ecosystem-card-body {
  padding: 0.9rem 1.1rem;
  background: #fff;
}
.ecosystem-stat {
  margin-bottom: 0.5rem;
}
.ecosystem-stat-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pw-moss);
  margin-bottom: 2px;
}
.ecosystem-stat-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pw-ink);
}

/* ── BLUE CARBON SPECIFIC: Soil carbon depth diagram ── */
.soil-depth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 560px) {
  .soil-depth-grid {
    grid-template-columns: 1fr;
  }
}
.soil-depth-card {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--pw-border);
  background: #fff;
}
.soil-depth-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pw-moss);
  margin-bottom: 4px;
}
.soil-depth-val {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--pw-ink);
  line-height: 1.3;
}

/* ── BLUE CARBON SPECIFIC: CH₄ / N₂O guidance grid ── */
.ghg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 560px) {
  .ghg-grid {
    grid-template-columns: 1fr;
  }
}
.ghg-card {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1.5px solid var(--pw-border);
  background: #fff;
}
.ghg-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pw-accent);
  margin-bottom: 5px;
  font-weight: 600;
}
.ghg-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pw-ink);
  margin-bottom: 4px;
}
.ghg-desc {
  font-size: 0.76rem;
  color: var(--pw-moss);
  line-height: 1.6;
}
.ghg-note {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--pw-accent);
  font-weight: 600;
}

/* ── ECOSYSTEM RESTORATION SPECIFIC: Soil carbon depth diagram ── */
/* REFERENCE ECOSYSTEM GRID (ECO-specific) */
.ref-eco-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 560px) {
  .ref-eco-grid {
    grid-template-columns: 1fr;
  }
}
.ref-eco-card {
  padding: 1rem 1.2rem;
  border-radius: 10px;
  border: 1px solid var(--pw-border);
  background: #fff;
}
.ref-eco-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pw-accent);
  margin-bottom: 5px;
  font-weight: 600;
}
.ref-eco-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pw-ink);
  margin-bottom: 5px;
}
.ref-eco-desc {
  font-size: 0.76rem;
  color: var(--pw-moss);
  line-height: 1.55;
}

/* ECOLOGICAL INTEGRITY INDICATORS */
.eco-integrity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 560px) {
  .eco-integrity-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.eco-int-card {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--pw-border);
  background: var(--pw-accent-pale);
}
.eco-int-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--pw-moss);
  margin-bottom: 4px;
}
.eco-int-val {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pw-ink);
  line-height: 1.3;
}

/* CO-BENEFIT CARDS */
.cobenefit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.cobenefit-card {
  padding: 1rem 1.2rem;
  background: var(--pw-accent-pale);
  border-radius: 8px;
  border: 1px solid var(--pw-border);
}
.cobenefit-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pw-accent);
  margin-bottom: 5px;
}
.cobenefit-desc {
  font-size: 0.8rem;
  color: var(--pw-bark);
  line-height: 1.6;
}

/* ── PEATLAND-SPECIFIC: water table target grid ── */
.wt-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}
@media (max-width: 560px) {
  .wt-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.wt-card {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--pw-border);
  background: #fff;
}
.wt-card-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pw-moss);
  margin-bottom: 4px;
}
.wt-card-val {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--pw-ink);
  line-height: 1.3;
}

/* ── PEATLAND-SPECIFIC: CH4/N2O GHG guidance ── */
.ghg-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 560px) {
  .ghg-grid {
    grid-template-columns: 1fr;
  }
}
.ghg-card {
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1.5px solid var(--pw-border);
  background: #fff;
}
.ghg-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pw-accent);
  margin-bottom: 5px;
  font-weight: 600;
}
.ghg-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pw-ink);
  margin-bottom: 4px;
}
.ghg-desc {
  font-size: 0.76rem;
  color: var(--pw-moss);
  line-height: 1.6;
}
.ghg-note {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--pw-accent);
  font-weight: 600;
}

/* ── PEATLAND-SPECIFIC: Fire risk grid ── */
.fire-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 560px) {
  .fire-grid {
    grid-template-columns: 1fr;
  }
}
.fire-card {
  padding: 1rem 1.2rem;
  border-radius: 10px;
  background: var(--pw-accent-pale);
  border: 1px solid var(--pw-border);
}
.fire-card-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pw-accent);
  margin-bottom: 5px;
  font-weight: 600;
}
.fire-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pw-ink);
  margin-bottom: 4px;
}
.fire-card-desc {
  font-size: 0.78rem;
  color: var(--pw-moss);
  line-height: 1.6;
}
.fire-card-note {
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--pw-accent);
}

/* ERW-SPECIFIC: Quantification approach comparison */
.quant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 640px) {
  .quant-grid {
    grid-template-columns: 1fr;
  }
}
.quant-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1.5px solid var(--pw-border);
}
.quant-card-head {
  padding: 0.85rem 1.1rem;
}
.quant-card-head.primary {
  background: rgba(24, 95, 165, 0.2);
}
.quant-card-head.secondary {
  background: rgba(45, 106, 45, 0.12);
}
.quant-card-head.tertiary {
  background: rgba(24, 95, 165, 0.07);
}
.quant-card-code {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--pw-sky);
  letter-spacing: 0.06em;
  margin-bottom: 3px;
}
.quant-card-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--pw-accent);
}
.quant-card-body {
  padding: 1rem 1.1rem;
  background: #fff;
}
.quant-card-desc {
  font-size: 0.78rem;
  color: var(--pw-moss);
  line-height: 1.6;
  margin-bottom: 0.6rem;
}
.quant-card-req {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--pw-accent);
}
.quant-card-uncertainty {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--pw-moss);
  margin-top: 3px;
}

/* ERW-SPECIFIC: Chemistry pathway diagram */
.chemistry-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-bottom: 1.5rem;
  border: 1px solid var(--pw-border);
  border-radius: 10px;
  overflow: hidden;
}
@media (max-width: 640px) {
  .chemistry-flow {
    grid-template-columns: 1fr 1fr;
  }
}
.chem-step {
  padding: 1rem;
  border-right: 1px solid var(--pw-border);
  background: #fff;
}
.chem-step:last-child {
  border-right: none;
}
.chem-step-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pw-sky);
  margin-bottom: 4px;
}
.chem-step-formula {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--pw-ink);
  margin-bottom: 4px;
  line-height: 1.4;
}
.chem-step-desc {
  font-size: 0.72rem;
  color: var(--pw-moss);
  line-height: 1.5;
}

/* Rock types */
.rock-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 560px) {
  .rock-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.rock-card {
  padding: 0.9rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--pw-border);
  background: var(--pw-accent-pale);
}
.rock-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--pw-moss);
  margin-bottom: 4px;
}
.rock-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pw-ink);
  margin-bottom: 3px;
}
.rock-formula {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--pw-accent);
  margin-bottom: 4px;
}
.rock-desc {
  font-size: 0.72rem;
  color: var(--pw-moss);
  line-height: 1.5;
}
