/* ============================================================
   css/trust.css — The Green Code · Credibility Component System
   Round 12 · Governance Upgrade

   Purpose: Shared status badges, provenance blocks, evidence
   tables, metric cards, empty states, and claim-status
   infrastructure for all institutional/policy pages.

   Usage: <link rel="stylesheet" href="css/trust.css">
          (or "../css/trust.css" for sub-directory pages)

   No dependencies other than biome.css tokens.
   Compatible with: faq, evidence-room, claims-register,
   pilot-status, methodology/*, standards-crosswalk,
   governance pages.
   ============================================================ */

/* ── 1. STATUS BADGE SYSTEM ──────────────────────────────────────────────
   ClaimStatusBadge component.
   Usage: <span class="status-badge sb-verified">VERIFIED</span>
   ─────────────────────────────────────────────────────────────────────── */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  border: 1px solid currentColor;
  line-height: 1;
  white-space: nowrap;
  vertical-align: middle;
  flex-shrink: 0;
}

/* Verified — green */
.sb-verified {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border-color: rgba(74, 222, 128, 0.35);
}
.sb-verified::before { content: '✓ '; }

/* Projected — amber */
.sb-projected {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  border-color: rgba(251, 191, 36, 0.35);
}
.sb-projected::before { content: '◈ '; }

/* Proposed — sky blue */
.sb-proposed {
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(96, 165, 250, 0.30);
}
.sb-proposed::before { content: '○ '; }

/* Simulated — violet */
.sb-simulated {
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.08);
  border-color: rgba(167, 139, 250, 0.30);
}
.sb-simulated::before { content: '⬡ '; }

/* Pending audit — coral/orange */
.sb-pending {
  color: #fb923c;
  background: rgba(251, 146, 60, 0.08);
  border-color: rgba(251, 146, 60, 0.30);
}
.sb-pending::before { content: '⏳ '; }

/* Pre-pilot (empty state variant) */
.sb-prepilot {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.06);
  border-color: rgba(148, 163, 184, 0.20);
}
.sb-prepilot::before { content: '— '; }

/* Large badge variant */
.status-badge-lg {
  font-size: 11px;
  padding: 5px 14px;
  border-radius: 6px;
  letter-spacing: 0.12em;
}

/* ── 2. PROVENANCE BLOCK ─────────────────────────────────────────────────
   ProvenanceBlock component.
   Usage:
   <div class="provenance-block">
     <div class="pb-row"><span class="pb-key">Source</span><span class="pb-val">...</span></div>
     ...
   </div>
   ─────────────────────────────────────────────────────────────────────── */

.provenance-block {
  background: rgba(10, 31, 15, 0.55);
  border: 1px solid rgba(74, 222, 128, 0.12);
  border-left: 3px solid rgba(74, 222, 128, 0.45);
  border-radius: 0 10px 10px 0;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
}

.pb-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
}

.pb-key {
  color: rgba(180, 200, 185, 0.55);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 9px;
  flex-shrink: 0;
  min-width: 90px;
}

.pb-val {
  color: rgba(200, 220, 205, 0.90);
  line-height: 1.5;
}

.pb-val a {
  color: #4ade80;
  text-decoration: none;
}
.pb-val a:hover {
  text-decoration: underline;
}

/* Review date warning — if stale */
.pb-stale { color: #fb923c; }

/* ── 3. EVIDENCE TABLE ───────────────────────────────────────────────────
   EvidenceTable component.
   Usage: <table class="evidence-table"> <thead> ... <tbody> ... </table>
   ─────────────────────────────────────────────────────────────────────── */

.evidence-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter Tight', ui-sans-serif, sans-serif;
  font-size: 13px;
  color: rgba(200, 215, 205, 0.90);
}

.evidence-table thead tr {
  border-bottom: 1px solid rgba(74, 222, 128, 0.22);
}

.evidence-table th {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(180, 200, 185, 0.55);
  padding: 10px 14px;
  text-align: left;
  font-weight: 500;
}

.evidence-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(74, 222, 128, 0.07);
  vertical-align: top;
  line-height: 1.55;
}

.evidence-table tr:last-child td {
  border-bottom: none;
}

.evidence-table tr:hover td {
  background: rgba(74, 222, 128, 0.03);
}

.evidence-table td a {
  color: #4ade80;
  text-decoration: none;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.evidence-table td a:hover { text-decoration: underline; }

/* Table wrapper for horizontal scroll on mobile */
.evidence-table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid rgba(74, 222, 128, 0.14);
  background: rgba(10, 31, 15, 0.60);
}

/* ── 4. METRIC CARD ──────────────────────────────────────────────────────
   MetricCard component.
   Usage:
   <div class="metric-card">
     <div class="mc-value">18 ms</div>
     <div class="mc-name">ZKP Verification Latency</div>
     <div class="mc-meta"><span>Method: Lab controlled</span></div>
     <div class="mc-status"><span class="status-badge sb-projected">PROJECTED</span></div>
   </div>
   ─────────────────────────────────────────────────────────────────────── */

.metric-card {
  background: rgba(10, 31, 15, 0.68);
  border: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: 14px;
  padding: 22px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition:
    border-color 0.28s ease,
    box-shadow 0.28s ease,
    transform 0.28s ease;
}

.metric-card:hover {
  border-color: rgba(74, 222, 128, 0.30);
  box-shadow: 0 0 20px rgba(74, 222, 128, 0.10);
  transform: translateY(-2px);
}

.mc-value {
  font-family: 'Space Grotesk', 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  color: #f4fbef;
  line-height: 1;
  letter-spacing: -0.02em;
}

.mc-unit {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: rgba(180, 200, 185, 0.55);
  font-weight: 400;
  margin-left: 2px;
}

.mc-name {
  font-family: 'Space Grotesk', ui-sans-serif, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(200, 215, 205, 0.85);
  line-height: 1.35;
}

.mc-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: rgba(150, 175, 160, 0.55);
  letter-spacing: 0.06em;
  line-height: 1.6;
}

.mc-status {
  margin-top: 4px;
}

/* Metric grid layout */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
}

/* ── 5. EMPTY STATE CARD ─────────────────────────────────────────────────
   EmptyStateCard component.
   Usage:
   <div class="empty-state-card">
     <div class="esc-label">Pre-Pilot</div>
     <div class="esc-title">Water Savings Data</div>
     <p class="esc-desc">Awaiting sensor deployment in Guymon, OK...</p>
   </div>
   ─────────────────────────────────────────────────────────────────────── */

.empty-state-card {
  background: rgba(10, 31, 15, 0.40);
  border: 1px dashed rgba(74, 222, 128, 0.18);
  border-radius: 12px;
  padding: 24px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.esc-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: rgba(150, 175, 160, 0.55);
  background: rgba(74, 222, 128, 0.06);
  border: 1px solid rgba(74, 222, 128, 0.14);
  border-radius: 4px;
  padding: 3px 10px;
}

.esc-title {
  font-family: 'Space Grotesk', ui-sans-serif, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(200, 215, 205, 0.65);
}

.esc-desc {
  font-family: 'Inter Tight', ui-sans-serif, sans-serif;
  font-size: 12.5px;
  color: rgba(150, 175, 160, 0.50);
  line-height: 1.65;
  max-width: 320px;
}

/* ── 6. REAL VS PROJECTED PANEL ──────────────────────────────────────────
   RealVsProjectedPanel component.
   Usage:
   <div class="rvp-panel">
     <div class="rvp-col rvp-real">...</div>
     <div class="rvp-col rvp-projected">...</div>
   </div>
   ─────────────────────────────────────────────────────────────────────── */

.rvp-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(74, 222, 128, 0.15);
}
@media (max-width: 640px) {
  .rvp-panel { grid-template-columns: 1fr; }
}

.rvp-col {
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.rvp-real {
  background: rgba(10, 31, 15, 0.70);
  border-right: 1px solid rgba(74, 222, 128, 0.12);
}
@media (max-width: 640px) {
  .rvp-real {
    border-right: none;
    border-bottom: 1px solid rgba(74, 222, 128, 0.12);
  }
}

.rvp-projected {
  background: rgba(14, 28, 18, 0.55);
}

.rvp-header {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rvp-real .rvp-header { color: #4ade80; }
.rvp-projected .rvp-header { color: #fbbf24; }

.rvp-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rvp-item-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: rgba(150, 175, 160, 0.60);
  letter-spacing: 0.08em;
}

.rvp-item-value {
  font-family: 'Space Grotesk', ui-sans-serif, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(200, 215, 205, 0.90);
  line-height: 1.35;
}

/* ── 7. TIMELINE / MILESTONE ─────────────────────────────────────────────
   Timeline component.
   Usage:
   <div class="timeline">
     <div class="tl-item tl-complete | tl-active | tl-pending">
       <div class="tl-marker"></div>
       <div class="tl-content">...</div>
     </div>
   </div>
   ─────────────────────────────────────────────────────────────────────── */

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 14px;
  bottom: 14px;
  width: 2px;
  background: linear-gradient(180deg,
    rgba(74, 222, 128, 0.40),
    rgba(74, 222, 128, 0.10) 80%,
    transparent);
}

.tl-item {
  position: relative;
  padding: 0 0 28px 20px;
}

.tl-marker {
  position: absolute;
  left: -28px;
  top: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(74, 222, 128, 0.30);
  background: rgba(10, 31, 15, 0.90);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tl-complete .tl-marker {
  border-color: #4ade80;
  background: rgba(74, 222, 128, 0.12);
}
.tl-complete .tl-marker::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.60);
}

.tl-active .tl-marker {
  border-color: #fbbf24;
  background: rgba(251, 191, 36, 0.08);
  animation: tl-pulse 2s ease-in-out infinite;
}
.tl-active .tl-marker::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #fbbf24;
}

@keyframes tl-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(251,191,36,0); }
  50%      { box-shadow: 0 0 0 5px rgba(251,191,36,0.15); }
}

.tl-pending .tl-marker {
  border-color: rgba(74, 222, 128, 0.18);
}

.tl-phase {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(150, 175, 160, 0.50);
  margin-bottom: 4px;
}

.tl-title {
  font-family: 'Space Grotesk', ui-sans-serif, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: rgba(200, 215, 205, 0.90);
  margin-bottom: 6px;
  line-height: 1.3;
}

.tl-complete .tl-title { color: rgba(74, 222, 128, 0.85); }
.tl-active .tl-title { color: rgba(251, 191, 36, 0.90); }

.tl-date {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: rgba(150, 175, 160, 0.50);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.tl-desc {
  font-family: 'Inter Tight', ui-sans-serif, sans-serif;
  font-size: 13px;
  color: rgba(175, 195, 180, 0.70);
  line-height: 1.65;
}

.tl-deliverables {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tl-del {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: rgba(150, 175, 160, 0.60);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 7px;
}
.tl-del::before { content: '—'; opacity: 0.4; }

/* ── 8. VERSION HISTORY / CHANGELOG ──────────────────────────────────────
   VersionHistory component.
   Usage:
   <div class="changelog">
     <div class="cl-entry">
       <div class="cl-version">v3.0.0</div>
       <div class="cl-date">March 2026</div>
       <div class="cl-summary">...</div>
     </div>
   </div>
   ─────────────────────────────────────────────────────────────────────── */

.changelog {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid rgba(74, 222, 128, 0.12);
  border-radius: 12px;
  overflow: hidden;
}

.cl-entry {
  display: grid;
  grid-template-columns: 90px 120px 1fr;
  gap: 0;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(74, 222, 128, 0.07);
  align-items: start;
  transition: background 0.2s ease;
}
@media (max-width: 560px) {
  .cl-entry { grid-template-columns: 1fr; gap: 4px; }
}

.cl-entry:last-child { border-bottom: none; }
.cl-entry:hover { background: rgba(74, 222, 128, 0.03); }

.cl-version {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  letter-spacing: 0.06em;
}

.cl-date {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: rgba(150, 175, 160, 0.50);
  letter-spacing: 0.06em;
  padding-top: 1px;
}

.cl-summary {
  font-family: 'Inter Tight', ui-sans-serif, sans-serif;
  font-size: 12.5px;
  color: rgba(175, 195, 180, 0.75);
  line-height: 1.55;
}

/* ── 9. PAGE LAYOUT UTILITIES ────────────────────────────────────────────
   Shared layout primitives for institutional pages.
   ─────────────────────────────────────────────────────────────────────── */

/* Standard institutional page wrapper */
.inst-page {
  max-width: 1060px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 52px) clamp(64px, 8vw, 120px);
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 88px);
}

/* Section unit */
.inst-section {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Section eyebrow (mono label above h2) */
.inst-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #4ade80;
  display: flex;
  align-items: center;
  gap: 10px;
}
.inst-eyebrow::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: linear-gradient(90deg, rgba(74,222,128,0.55), transparent);
}

/* Page hero header */
.inst-hero {
  padding: clamp(80px, 10vw, 120px) clamp(20px, 4vw, 52px) clamp(48px, 6vw, 72px);
  position: relative;
  max-width: 1060px;
  margin: 0 auto;
}

.inst-hero-eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #4ade80;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.inst-hero h1 {
  font-family: 'Space Grotesk', ui-sans-serif, sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #f4fbef;
  margin-bottom: 18px;
}

.inst-hero-lead {
  font-family: 'Inter Tight', ui-sans-serif, sans-serif;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.72;
  color: rgba(180, 200, 185, 0.85);
  max-width: 660px;
}

/* Section title h2 */
.inst-h2 {
  font-family: 'Space Grotesk', ui-sans-serif, sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  letter-spacing: -0.025em;
  color: #f4fbef;
  line-height: 1.15;
}

/* Section body text */
.inst-body {
  font-family: 'Inter Tight', ui-sans-serif, sans-serif;
  font-size: clamp(14px, 1.2vw, 15.5px);
  line-height: 1.78;
  color: rgba(180, 200, 185, 0.85);
  max-width: 700px;
}
.inst-body strong { color: #f4fbef; }
.inst-body a { color: #4ade80; text-decoration: none; }
.inst-body a:hover { text-decoration: underline; }

/* Glass panel surface */
.inst-panel {
  background: rgba(10, 31, 15, 0.62);
  border: 1px solid rgba(74, 222, 128, 0.14);
  border-radius: 16px;
  padding: clamp(24px, 3.5vw, 40px);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Warning / caution panel */
.inst-warning {
  background: rgba(251, 146, 60, 0.06);
  border: 1px solid rgba(251, 146, 60, 0.22);
  border-left: 3px solid rgba(251, 146, 60, 0.70);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  font-family: 'Inter Tight', ui-sans-serif, sans-serif;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(251, 180, 120, 0.90);
}

/* Info / note panel */
.inst-note {
  background: rgba(96, 165, 250, 0.05);
  border: 1px solid rgba(96, 165, 250, 0.18);
  border-left: 3px solid rgba(96, 165, 250, 0.55);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  font-family: 'Inter Tight', ui-sans-serif, sans-serif;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(160, 200, 230, 0.85);
}

/* Definition list */
.inst-deflist {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.inst-deflist li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.dl-term {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #4ade80;
  min-width: 130px;
  flex-shrink: 0;
  padding-top: 2px;
  letter-spacing: 0.05em;
}

.dl-def {
  font-family: 'Inter Tight', ui-sans-serif, sans-serif;
  font-size: 13.5px;
  line-height: 1.65;
  color: rgba(175, 195, 180, 0.80);
}

/* Inline claim with badge */
.claim-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(74, 222, 128, 0.07);
}
.claim-row:last-child { border-bottom: none; }

.claim-text {
  font-family: 'Inter Tight', ui-sans-serif, sans-serif;
  font-size: 13.5px;
  color: rgba(175, 195, 180, 0.80);
  line-height: 1.60;
  flex: 1;
}
.claim-text strong { color: rgba(220, 235, 225, 0.92); }

/* ── 10. SHARED HEADER (institutional page nav strip) ─────────────────── */
.inst-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 31, 15, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(74, 222, 128, 0.10);
  padding: 0 clamp(20px, 4vw, 52px);
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.inst-header-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(150, 175, 160, 0.65);
  text-decoration: none;
  border: 1px solid rgba(74, 222, 128, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.04);
  transition: all 0.22s ease;
  white-space: nowrap;
}
.inst-header-back:hover {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.40);
  background: rgba(74, 222, 128, 0.08);
}

.inst-header-title {
  font-family: 'Space Grotesk', ui-sans-serif, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(200, 215, 205, 0.70);
  letter-spacing: 0.03em;
}

.inst-header-breadcrumb {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(150, 175, 160, 0.40);
  display: flex;
  align-items: center;
  gap: 8px;
}
.inst-header-breadcrumb a {
  color: rgba(150, 175, 160, 0.55);
  text-decoration: none;
}
.inst-header-breadcrumb a:hover { color: #4ade80; }
.inst-header-breadcrumb span { opacity: 0.35; }

/* ── 11. SHARED FOOTER (institutional page footer strip) ──────────────── */
.inst-footer {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(74, 222, 128, 0.10);
  padding: 28px clamp(20px, 4vw, 52px);
  background: rgba(5, 16, 11, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.inst-footer-sig {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(100, 130, 115, 0.55);
}
.inst-footer-sig span { color: #4ade80; }

.inst-footer-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.inst-footer-links a {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(100, 130, 115, 0.55);
  text-decoration: none;
  transition: color 0.2s ease;
}
.inst-footer-links a:hover { color: #4ade80; }

/* ── 12. SCROLL REVEAL SYSTEM ────────────────────────────────────────────
   Matches about.html pattern: add class="reveal" + JS in page
   ─────────────────────────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ── 13. RESPONSIVE UTILITIES ────────────────────────────────────────────*/
@media (max-width: 640px) {
  .metric-grid { grid-template-columns: 1fr 1fr; }
  .inst-deflist li { flex-direction: column; gap: 4px; }
  .dl-term { min-width: auto; }
  .cl-entry { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  .metric-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .tl-active .tl-marker { animation: none; }
  .metric-card, .empty-state-card { transition: none; }
}

/* ── 14. INSTITUTIONAL HEADER — full nav bar system ─────────────────────
   Used by: governance, standards-crosswalk, rights-safeguards,
            methodology/nbr, methodology/gcts-1, pilot-status,
            evidence-room, claims-register, faq, vision
   ─────────────────────────────────────────────────────────────────────── */

.inst-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 24px;
}

/* Logo */
.inst-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: 'Space Grotesk', ui-sans-serif, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #F4FBEF;
  letter-spacing: -0.01em;
  white-space: nowrap;
  flex-shrink: 0;
}
.inst-logo:hover { color: #9BFF8C; }

.inst-logo-mark {
  font-size: 18px;
  color: #7CFF6B;
  line-height: 1;
}

/* Horizontal nav links */
.inst-header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  overflow: hidden;
}
.inst-header-nav a {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(181, 199, 185, 0.70);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.18s ease, background 0.18s ease;
}
.inst-header-nav a:hover,
.inst-header-nav a[aria-current="page"] {
  color: #7CFF6B;
  background: rgba(124, 255, 107, 0.08);
}

/* Mobile hamburger toggle */
.inst-nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(74, 222, 128, 0.20);
  border-radius: 6px;
  color: rgba(181, 199, 185, 0.75);
  padding: 7px 10px;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.18s, border-color 0.18s;
  flex-shrink: 0;
}
.inst-nav-toggle:hover { color: #7CFF6B; border-color: rgba(124, 255, 107, 0.40); }

@media (max-width: 720px) {
  .inst-header-nav { display: none; }
  .inst-nav-toggle { display: flex; align-items: center; }
}

/* ── 15. INSTITUTIONAL FOOTER — multi-column grid footer ─────────────────
   ─────────────────────────────────────────────────────────────────────── */

.inst-footer {
  /* override old single-row inst-footer */
  display: block;
  border-top: 1px solid rgba(74, 222, 128, 0.10);
  background: rgba(5, 16, 11, 0.70);
  padding: 52px clamp(20px, 5vw, 60px) 36px;
}

.inst-footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px 32px;
  margin-bottom: 40px;
}
@media (max-width: 860px) {
  .inst-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .inst-footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

.inst-footer-brand {
  font-family: 'Space Grotesk', ui-sans-serif, sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: #F4FBEF;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.inst-footer-tagline {
  font-size: 13px;
  color: rgba(109, 131, 119, 0.90);
  line-height: 1.55;
  max-width: 240px;
}

.inst-footer-heading {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(124, 255, 107, 0.55);
  margin-bottom: 14px;
  font-weight: 700;
}

.inst-footer-link {
  display: block;
  font-size: 13.5px;
  color: rgba(181, 199, 185, 0.60);
  text-decoration: none;
  padding: 4px 0;
  transition: color 0.18s;
}
.inst-footer-link:hover,
.inst-footer-link[aria-current="page"] {
  color: #9BFF8C;
}

.inst-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(74, 222, 128, 0.07);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(109, 131, 119, 0.60);
}

/* ── 16. RVP PANEL — extended variant (col-header, rvp-confirmed, rvp-list) ──
   nbr.html uses .rvp-confirmed instead of .rvp-real, plus a richer
   column header structure: .rvp-col-header / .rvp-icon /
   .rvp-col-label / .rvp-col-sub and .rvp-list bullet lists.
   ─────────────────────────────────────────────────────────────────────── */

/* Alias: rvp-confirmed = rvp-real (green side) */
.rvp-confirmed {
  background: rgba(10, 31, 15, 0.70);
  border-right: 1px solid rgba(74, 222, 128, 0.12);
}
@media (max-width: 640px) {
  .rvp-confirmed {
    border-right: none;
    border-bottom: 1px solid rgba(74, 222, 128, 0.12);
  }
}

/* Column header block */
.rvp-col-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(74, 222, 128, 0.08);
  margin-bottom: 4px;
}

.rvp-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.rvp-col-label {
  font-family: 'Space Grotesk', ui-sans-serif, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #F4FBEF;
  margin-bottom: 3px;
}

.rvp-confirmed .rvp-col-label { color: #4ade80; }
.rvp-projected .rvp-col-label { color: #fbbf24; }

.rvp-col-sub {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(109, 131, 119, 0.80);
}

/* Bullet list inside RVP columns */
.rvp-list {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rvp-list li {
  font-size: 13.5px;
  color: rgba(181, 199, 185, 0.80);
  line-height: 1.50;
  padding-left: 14px;
  position: relative;
}
.rvp-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: rgba(124, 255, 107, 0.40);
  font-size: 11px;
}
.rvp-confirmed .rvp-list li::before { color: rgba(74, 222, 128, 0.50); }
.rvp-projected .rvp-list li::before { color: rgba(251, 191, 36, 0.45); }

/* ── 17. CHANGELOG — rich variant with sub-items list ───────────────────
   nbr.html and gcts-1.html use a richer changelog structure:
   .changelog-header / .changelog-entry / .changelog-meta /
   .changelog-version / .changelog-date / .changelog-title /
   .changelog-items (ul)
   ─────────────────────────────────────────────────────────────────────── */

.changelog-header {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(124, 255, 107, 0.50);
  padding: 12px 18px;
  background: rgba(74, 222, 128, 0.04);
  border-bottom: 1px solid rgba(74, 222, 128, 0.10);
  font-weight: 700;
}

.changelog-entry {
  padding: 18px 20px;
  border-bottom: 1px solid rgba(74, 222, 128, 0.07);
  transition: background 0.18s;
}
.changelog-entry:last-child { border-bottom: none; }
.changelog-entry:hover { background: rgba(74, 222, 128, 0.025); }

.changelog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.changelog-version {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 13px;
  font-weight: 800;
  color: #4ade80;
  letter-spacing: 0.04em;
}

.changelog-date {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  color: rgba(109, 131, 119, 0.70);
  letter-spacing: 0.08em;
}

.changelog-title {
  font-family: 'Space Grotesk', ui-sans-serif, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #F4FBEF;
  margin-bottom: 10px;
  line-height: 1.40;
}

.changelog-items {
  list-style: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.changelog-items li {
  font-size: 13px;
  color: rgba(181, 199, 185, 0.70);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}
.changelog-items li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: rgba(124, 255, 107, 0.40);
  font-size: 11px;
}
