/* =============================================
   CLIMATE CAPTURE PORTAL — DESIGN SYSTEM
   White minimalist editorial · investigate.africa
   ============================================= */

/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  font-size: 16px;
}
body {
  font-family:
    "DM Sans",
    system-ui,
    -apple-system,
    sans-serif;
  background: #fff;
  color: #111;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}

/* ===== DESIGN TOKENS ===== */
:root {
  --red: #d91e18;
  --red-dark: #b01612;
  --red-light: #fef2f2;
  --black: #111111;
  --grey-900: #1a1a1a;
  --grey-700: #374151;
  --grey-600: #4b5563;
  --grey-500: #6b7280;
  --grey-400: #9ca3af;
  --grey-300: #d1d5db;
  --grey-100: #f3f4f6;
  --grey-50: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --border-dark: #d1d5db;
  --rule: var(--border);
  --ink: var(--black);
  --mid: var(--grey-500);

  --cat-dm: #d91e18;
  --cat-tt: #7c3aed;
  --cat-nf: #1d4ed8;
  --cat-ss: #059669;

  --font-sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "DM Mono", "Courier New", monospace;
  --radius: 4px;
  --radius-md: 8px;
  --max-w: 1320px;
  --pad-x: 40px;
}

/* ===== UTILITY ===== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ===== BUTTONS ===== */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--black);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--black);
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s;
  white-space: nowrap;
}
.btn-solid:hover {
  background: var(--red);
  border-color: var(--red);
}
.btn-solid.btn-red {
  background: var(--red);
  border-color: var(--red);
}
.btn-solid.btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 9px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-dark);
  cursor: pointer;
  transition:
    border-color 0.18s,
    color 0.18s;
  white-space: nowrap;
}
.btn-outline:hover {
  border-color: var(--black);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--grey-700);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 4px;
  border: none;
  cursor: pointer;
  transition: color 0.15s;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-ghost:hover {
  color: var(--black);
}

.btn-lg {
  font-size: 14px;
  padding: 13px 28px;
}

/* ===== NAV ===== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 0 var(--pad-x);
  height: 60px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.nav-logo {
  display: flex;
  align-items: center;
}

.logo-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  line-height: 1;
  position: relative;
}
.logo-badge::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 6px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 0px solid transparent;
  border-top: 6px solid var(--red);
}
.logo-toxic {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
}
.logo-ten {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.nav-brand-text {
  border-left: 1px solid var(--border);
  padding-left: 12px;
}
.nav-project {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey-500);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  flex: 1;
  justify-content: center;
}
.nav-link {
  display: block;
  padding: 20px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--grey-700);
  border-bottom: 2px solid transparent;
  transition:
    color 0.15s,
    border-color 0.15s;
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active {
  color: var(--black);
  border-bottom-color: var(--black);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--black);
  border-radius: 2px;
}

/* ===== TICKER BAR ===== */
.ticker-bar {
  display: flex;
  align-items: center;
  gap: 0;
  height: 40px;
  border-bottom: 1px solid var(--border);
  background: var(--grey-50);
  overflow: hidden;
}

.ticker-pill {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--red);
  border: 1.5px solid var(--red);
  padding: 3px 10px;
  margin: 0 16px;
  white-space: nowrap;
}

.ticker-scroll-wrap {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(
    to right,
    transparent,
    black 40px,
    black calc(100% - 40px),
    transparent
  );
}

.ticker-scroll {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  animation: ticker-move 60s linear infinite;
}
.ticker-scroll:hover {
  animation-play-state: paused;
}

@keyframes ticker-move {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-700);
  padding: 0 24px;
  border-right: 1px solid var(--border);
}
.ticker-item-org {
  font-weight: 600;
  color: var(--black);
}
.ticker-item-country {
  color: var(--grey-500);
  font-size: 10px;
}
.ticker-item-dot {
  color: var(--red);
  font-size: 8px;
}

/* ===== SECTION UTILITIES ===== */
.section-eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--red);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.section-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.section-title-sm {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.section-body {
  font-size: 15px;
  color: var(--grey-700);
  max-width: 600px;
  line-height: 1.7;
}

.section-body-sm {
  font-size: 13px;
  color: var(--grey-500);
  line-height: 1.6;
}
.section-body-sm a {
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* ===== HERO ===== */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 60px;
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 72px var(--pad-x) 80px;
}

.hero-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-500);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.hero-headline {
  font-size: clamp(44px, 5.5vw, 76px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 24px;
}

.hero-headline em {
  font-style: italic;
  font-weight: 800;
}

.hero-underline {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 6px;
  text-decoration-thickness: 3px;
}

.hero-body {
  font-size: 16px;
  color: var(--grey-700);
  line-height: 1.75;
  max-width: 560px;
  margin-bottom: 32px;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-meta-row {
  display: flex;
  align-items: center;
  gap: 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.hero-meta-item {
  display: flex;
  flex-direction: column;
  padding: 0 28px 0 0;
}
.hero-meta-item:first-child {
  padding-left: 0;
}

.hero-meta-div {
  width: 1px;
  height: 32px;
  background: var(--border);
  margin-right: 28px;
}

.hero-meta-num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1;
}

.hero-meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey-500);
  letter-spacing: 0.06em;
  margin-top: 4px;
  text-transform: uppercase;
}

/* ===== HERO DATA PANEL ===== */
.hero-data-panel {
  background: var(--black);
  color: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  position: sticky;
  top: 72px;
}

.hdp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hdp-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.hdp-sublabel {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
}

.hdp-list {
  padding: 8px 0;
}

.hdp-row {
  display: grid;
  grid-template-columns: 28px 1fr 60px 36px;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.15s;
}
.hdp-row:last-child {
  border-bottom: none;
}
.hdp-row:hover {
  background: rgba(255, 255, 255, 0.04);
}

.hdp-rank {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.hdp-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.hdp-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hdp-cat {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 2px;
  width: fit-content;
  font-weight: 500;
  letter-spacing: 0.04em;
}
.cat-dm {
  background: rgba(217, 30, 24, 0.25);
  color: #f87171;
}
.cat-tt {
  background: rgba(124, 58, 237, 0.25);
  color: #c4b5fd;
}
.cat-nf {
  background: rgba(29, 78, 216, 0.25);
  color: #93c5fd;
}
.cat-ss {
  background: rgba(5, 150, 105, 0.25);
  color: #6ee7b7;
}

.hdp-bar-wrap {
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.hdp-bar {
  height: 100%;
  background: var(--red);
  border-radius: 2px;
  transition: width 1s ease;
}

.hdp-score {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  text-align: right;
}

.hdp-footer {
  display: block;
  text-align: center;
  padding: 12px 20px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  transition: color 0.15s;
}
.hdp-footer:hover {
  color: rgba(255, 255, 255, 0.8);
}

/* ===== DEBUNK TICKER SECTION ===== */
.debunk-ticker-section {
  background: var(--grey-50);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}

.dts-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  max-width: var(--max-w);
  margin: 0 auto 32px;
  padding: 0 var(--pad-x);
  flex-wrap: wrap;
}

.debunk-cards-scroll {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 4px var(--pad-x) 16px;
  scrollbar-width: thin;
  scrollbar-color: var(--grey-300) transparent;
  scroll-snap-type: x mandatory;
}
.debunk-cards-scroll::-webkit-scrollbar {
  height: 4px;
}
.debunk-cards-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.debunk-cards-scroll::-webkit-scrollbar-thumb {
  background: var(--grey-300);
  border-radius: 2px;
}

.debunk-card {
  flex-shrink: 0;
  width: 300px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  scroll-snap-align: start;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.debunk-card:hover {
  border-color: var(--grey-300);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.dc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dc-org {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--red);
  letter-spacing: 0.06em;
}

.dc-verdict {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 2px;
}
.verdict-false {
  background: #fef2f2;
  color: var(--red);
  border: 1px solid #fecaca;
}
.verdict-misleading {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.verdict-partly {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}

.dc-claim {
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.45;
  margin-bottom: 8px;
}

.dc-summary {
  font-size: 12px;
  color: var(--grey-500);
  line-height: 1.55;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dc-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.dc-country {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey-500);
}

.dc-link {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--black);
  border-bottom: 1px solid var(--black);
  padding-bottom: 1px;
  transition: color 0.15s;
}
.dc-link:hover {
  color: var(--red);
  border-color: var(--red);
}

/* ===== INVESTIGATIONS ===== */
.investigations-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--pad-x);
  border-bottom: 1px solid var(--border);
}

.investigations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.inv-card {
  background: #fff;
  padding: 28px 28px 24px;
  display: flex;
  flex-direction: column;
  transition: background 0.15s;
}
.inv-card:hover {
  background: var(--grey-50);
}

.inv-card-featured {
  grid-column: span 2;
  background: var(--black);
  color: #fff;
}
.inv-card-featured:hover {
  background: var(--grey-900);
}
.inv-card-featured .inv-title {
  color: #fff;
}
.inv-card-featured .inv-body {
  color: rgba(255, 255, 255, 0.65);
}
.inv-card-featured .inv-org {
  color: rgba(255, 255, 255, 0.4);
}
.inv-card-featured .inv-date {
  color: rgba(255, 255, 255, 0.4);
}
.inv-card-featured .inv-link {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.inv-card-featured .inv-link:hover {
  border-color: #fff;
}

.inv-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.inv-report-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey-500);
  letter-spacing: 0.06em;
}
.inv-card-featured .inv-report-num {
  color: rgba(255, 255, 255, 0.4);
}

.inv-type-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: var(--red-light);
  color: var(--red);
  border: 1px solid #fecaca;
  padding: 2px 8px;
  border-radius: 2px;
}
.inv-pill-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.inv-card-featured .inv-type-pill {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
}

.inv-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.35;
  margin-bottom: 10px;
  flex: 1;
}

.inv-card-featured .inv-title {
  font-size: 22px;
}

.inv-body {
  font-size: 13px;
  color: var(--grey-700);
  line-height: 1.6;
  margin-bottom: 16px;
}

.inv-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.inv-org {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey-500);
}

.inv-date {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey-500);
}

.inv-link {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--black);
  border-bottom: 1px solid var(--grey-300);
  padding-bottom: 1px;
  width: fit-content;
  transition: border-color 0.15s;
}
.inv-link:hover {
  border-color: var(--black);
}

/* ===== BAROMETER SECTION ===== */
.barometer-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--pad-x);
  border-bottom: 1px solid var(--border);
}

.baro-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.baro-tab {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border-radius: 20px;
  border: 1.5px solid var(--border-dark);
  background: transparent;
  color: var(--grey-700);
  cursor: pointer;
  transition: all 0.15s;
}
.baro-tab:hover {
  border-color: var(--black);
  color: var(--black);
}
.baro-tab.active {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}

.baro-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.baro-row {
  display: grid;
  grid-template-columns: 36px 1fr 180px 100px 160px 52px 80px;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.baro-row:last-child {
  border-bottom: none;
}
.baro-row:hover {
  background: var(--grey-50);
}

.baro-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--grey-300);
  letter-spacing: 0.04em;
}

.baro-actor-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.baro-cat-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-dm {
  background: var(--cat-dm);
}
.dot-tt {
  background: var(--cat-tt);
}
.dot-nf {
  background: var(--cat-nf);
}
.dot-ss {
  background: var(--cat-ss);
}

.baro-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.baro-role {
  display: block;
  font-size: 11px;
  color: var(--grey-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.baro-geo {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.baro-cat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 2px;
  white-space: nowrap;
}
.baro-dm {
  background: #fef2f2;
  color: var(--cat-dm);
  border: 1px solid #fecaca;
}
.baro-tt {
  background: #f5f3ff;
  color: var(--cat-tt);
  border: 1px solid #ddd6fe;
}
.baro-nf {
  background: #eff6ff;
  color: var(--cat-nf);
  border: 1px solid #bfdbfe;
}
.baro-ss {
  background: #ecfdf5;
  color: var(--cat-ss);
  border: 1px solid #a7f3d0;
}

.baro-meter-wrap {
  height: 4px;
  background: var(--grey-100);
  border-radius: 2px;
  overflow: hidden;
}
.baro-meter {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, var(--red));
  border-radius: 2px;
  transition: width 1s ease;
}

.baro-score {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--red);
  text-align: center;
}

.baro-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--grey-500);
  border-bottom: 1px solid var(--border-dark);
  padding-bottom: 1px;
  white-space: nowrap;
  transition: color 0.15s;
}
.baro-link:hover {
  color: var(--black);
  border-color: var(--black);
}

.baro-row-collapsed {
  display: none;
}

.baro-show-more {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
  flex-wrap: wrap;
}

/* ===== WATCHLIST ===== */
.watchlist-section {
  background: var(--grey-50);
  border-bottom: 1px solid var(--border);
  padding: 80px 0;
}
.watchlist-section .section-header-row {
  max-width: var(--max-w);
  margin: 0 auto 40px;
  padding: 0 var(--pad-x);
}

.watchlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.wl-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.wl-card:hover {
  border-color: var(--grey-300);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.wl-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.wl-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.wl-av-dm {
  background: var(--cat-dm);
}
.wl-av-ru {
  background: #374151;
}
.wl-av-uae {
  background: #0369a1;
}
.wl-av-tt {
  background: var(--cat-tt);
}
.wl-av-nf {
  background: var(--cat-nf);
}
.wl-av-ss {
  background: var(--cat-ss);
}

.wl-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--black);
}

.wl-org {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey-500);
}

.wl-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  margin-left: auto;
  white-space: nowrap;
}
.wl-active {
  color: #16a34a;
}
.wl-inactive {
  color: var(--grey-500);
}

.wl-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.wl-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--grey-100);
  color: var(--grey-700);
  padding: 3px 8px;
  border-radius: 2px;
}

.wl-latest {
  font-size: 12px;
  color: var(--grey-700);
  line-height: 1.55;
  margin-bottom: 12px;
}

.wl-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.wl-source-link {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey-500);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.15s;
}
.wl-source-link:hover {
  color: var(--black);
  border-color: var(--grey-500);
}

/* ===== LEXICON ===== */
.lexicon-section {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 80px var(--pad-x);
  border-bottom: 1px solid var(--border);
}

.lexicon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.lex-entry {
  background: #fff;
  padding: 28px;
  transition: background 0.15s;
}
.lex-entry:hover {
  background: var(--grey-50);
}

.lex-entry-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.lex-num {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey-300);
  font-weight: 600;
}

.lex-category {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: 2px;
}
.lex-cat-political {
  background: #fef2f2;
  color: var(--red);
  border: 1px solid #fecaca;
}
.lex-cat-science {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.lex-cat-conspiracy {
  background: #1a1a1a;
  color: #e5e7eb;
  border: 1px solid #374151;
}
.lex-cat-economic {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}
.lex-cat-pseudo {
  background: #f5f3ff;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}
.lex-cat-supernatural {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.lex-cat-media {
  background: #fff7ed;
  color: #9a3412;
  border: 1px solid #fed7aa;
}
.lex-cat-greenwash {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.lex-term {
  font-size: 15px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.35;
}

.lex-definition {
  font-size: 13px;
  color: var(--grey-700);
  line-height: 1.65;
  margin-bottom: 12px;
}

.lex-actors {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey-500);
  margin-bottom: 10px;
}
.lex-actors span {
  color: var(--grey-700);
  font-weight: 500;
}

.lex-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lex-platform {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--grey-100);
  color: var(--grey-700);
  padding: 2px 8px;
  border-radius: 2px;
}

/* ===== OBSERVATORY INTEGRATION ===== */
.observatory-section {
  background: var(--black);
  color: #fff;
  padding: 80px 0;
}

.obs-header {
  max-width: var(--max-w);
  margin: 0 auto 48px;
  padding: 0 var(--pad-x);
}
.obs-header .section-eyebrow {
  color: var(--red);
}
.obs-header .section-title {
  color: #fff;
}
.obs-header .section-body {
  color: rgba(255, 255, 255, 0.6);
}

.obs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.obs-panel {
  background: #1a1a1a;
  padding: 28px;
}
.obs-panel-wide {
  grid-column: span 2;
}

.obs-panel-cta {
  background: var(--red);
  grid-column: span 3;
  display: flex;
  align-items: center;
}

.obs-cta-inner {
  max-width: 680px;
}
.obs-cta-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.7);
  display: block;
  margin-bottom: 10px;
}
.obs-cta-title {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 12px;
}
.obs-cta-body {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.65;
  margin-bottom: 20px;
}
.obs-cta-inner .btn-solid {
  background: #fff;
  color: var(--red);
  border-color: #fff;
}
.obs-cta-inner .btn-solid:hover {
  background: rgba(255, 255, 255, 0.9);
}

.obs-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.obs-panel-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.obs-panel-count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.35);
}

/* Cluster list */
.obs-cluster-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.obs-cluster-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.obs-sev {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 2px;
  flex-shrink: 0;
}
.obs-sev-high {
  background: rgba(217, 30, 24, 0.25);
  color: #f87171;
}
.obs-sev-med {
  background: rgba(245, 158, 11, 0.2);
  color: #fbbf24;
}
.obs-sev-low {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
}
.obs-cluster-name {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  flex: 1;
}
.obs-cluster-region {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  white-space: nowrap;
}

/* Platform scores */
.obs-platform-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}
.obs-plat-row {
  display: grid;
  grid-template-columns: 80px 1fr 52px;
  align-items: center;
  gap: 10px;
}
.obs-plat-name {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.7);
}
.obs-plat-bar-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.obs-plat-bar {
  height: 100%;
  border-radius: 2px;
}
.obs-bar-fail {
  background: var(--red);
}
.obs-bar-poor {
  background: #f97316;
}
.obs-plat-score {
  font-family: var(--font-mono);
  font-size: 11px;
  text-align: right;
  font-weight: 600;
}
.obs-score-fail {
  color: #f87171;
}
.obs-score-poor {
  color: #fb923c;
}
.obs-platform-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.5;
  margin-bottom: 16px;
}

/* Efficacy stats */
.obs-efficacy-stat {
  margin-bottom: 20px;
}
.obs-efficacy-num {
  display: block;
  font-size: 48px;
  font-weight: 800;
  color: var(--red);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.obs-efficacy-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.55;
}

.obs-panel-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 2px;
  transition: color 0.15s;
}
.obs-panel-link:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ===== FOOTER ===== */
.site-footer-main {
  background: #fff;
  border-top: 1px solid var(--border);
}

.sfm-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 60px var(--pad-x) 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: start;
}

.sfm-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.sfm-logo-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 3px;
  flex-shrink: 0;
}

.sfm-title {
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 4px;
}

.sfm-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey-500);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.sfm-partners {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--grey-300);
}

.sfm-links {
  display: flex;
  gap: 48px;
}

.sfm-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sfm-col-head {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--grey-900);
  margin-bottom: 4px;
  text-transform: uppercase;
}

.sfm-col a {
  font-size: 13px;
  color: var(--grey-700);
  transition: color 0.15s;
}
.sfm-col a:hover {
  color: var(--black);
}

.sfm-bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 20px var(--pad-x);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.sfm-bottom span,
.sfm-bottom a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--grey-500);
}
.sfm-bottom a:hover {
  color: var(--black);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  :root {
    --pad-x: 28px;
  }
  .hero-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-data-panel {
    position: static;
  }
  .baro-row {
    grid-template-columns: 32px 1fr 80px 52px;
  }
  .baro-row > .baro-geo,
  .baro-row > .baro-cat-label,
  .baro-row > .baro-meter-wrap {
    display: none;
  }
  .obs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .obs-panel-wide {
    grid-column: span 2;
  }
  .obs-panel-cta {
    grid-column: span 2;
  }
  .investigations-grid {
    grid-template-columns: 1fr 1fr;
  }
  .inv-card-featured {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  :root {
    --pad-x: 20px;
  }
  .nav-links,
  .nav-actions {
    display: none;
  }
  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 8px 0;
    z-index: 199;
  }
  .nav-hamburger {
    display: flex;
  }
  .hero-section {
    padding: 48px var(--pad-x) 56px;
  }
  .hero-headline {
    font-size: clamp(36px, 9vw, 52px);
  }
  .hero-meta-div {
    display: none;
  }
  .hero-meta-row {
    gap: 20px;
  }
  .investigations-grid {
    grid-template-columns: 1fr;
  }
  .inv-card-featured {
    grid-column: span 1;
  }
  .lexicon-grid {
    grid-template-columns: 1fr;
  }
  .obs-grid {
    grid-template-columns: 1fr;
  }
  .obs-panel-wide,
  .obs-panel-cta {
    grid-column: span 1;
  }
  .sfm-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sfm-links {
    flex-wrap: wrap;
    gap: 32px;
  }
  .baro-row {
    grid-template-columns: 28px 1fr 44px 52px;
    gap: 6px;
    padding: 12px 14px;
  }
  .baro-row > .baro-geo,
  .baro-row > .baro-cat-label,
  .baro-row > .baro-meter-wrap {
    display: none;
  }
  .baro-name {
    font-size: 12px;
  }
  .baro-role {
    display: none;
  }
  .baro-actor-info {
    overflow: hidden;
  }
  .baro-score {
    font-size: 13px;
  }
  .baro-link {
    font-size: 10px;
    letter-spacing: 0;
  }
  .section-header-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .dts-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ===================================================
   NEW STYLES — Tweaks batch (logo, carousel, stats, ask-anything)
   =================================================== */

/* --- Nav logo image --- */
.nav-logo-img {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}
.nav-brand-text .nav-project {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--mid);
  text-transform: uppercase;
}

/* --- Hero carousel wrapper --- */
.hero-carousel {
  position: relative;
  overflow: hidden;
}
.hero-slide {
  display: none;
  animation: slideIn 0.5s ease;
}
.hero-slide.active {
  display: block;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Carousel controls */
.carousel-controls {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 0 12px;
  position: relative;
  z-index: 2;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: transparent;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
}
.carousel-dot.active {
  background: var(--red);
  border-color: var(--red);
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1.5px solid var(--rule);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 18px;
  cursor: pointer;
  color: var(--ink);
  z-index: 10;
  transition:
    border-color 0.18s,
    color 0.18s,
    background 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-arrow:hover {
  border-color: var(--red);
  color: var(--red);
  background: #fff8f8;
}
.carousel-prev {
  left: 20px;
}
.carousel-next {
  right: 20px;
}

/* --- Hero panel 2 — flipped layout (leaderboard left, text right) --- */
.hero-section-flipped {
  flex-direction: row-reverse;
}
.hero-left-right-aligned {
  text-align: left;
  justify-content: center;
}
.hero-headline-panel2 {
  font-size: clamp(2rem, 3.8vw, 3.2rem);
}

/* --- Linograph hero panel --- */
.hero-lino-panel {
  width: 100%;
  max-width: 480px;
  aspect-ratio: 480 / 520;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
  margin: 0 auto;
}
.lino-svg {
  width: 100%;
  height: 100%;
  display: block;
}
.hero-lino-leaderboard-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-lino-leaderboard {
  max-width: 480px;
}

/* --- Observatory-style stat cards (replaces old hero-meta-row) --- */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 32px;
}
.hstat-card {
  background: #f4f4f4;
  border-radius: 6px;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1.5px solid transparent;
  transition: border-color 0.18s;
}
.hstat-card:hover {
  border-color: var(--rule);
}
.hstat-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  color: var(--mid);
  text-transform: uppercase;
  line-height: 1.3;
}
.hstat-num {
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin: 4px 0 2px;
}
.hstat-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--mid);
  line-height: 1.4;
}
.hstat-sub a {
  color: inherit;
  text-decoration: none;
}
.hstat-sub a:hover {
  text-decoration: underline;
}

/* Card accent colours matching Observatory screenshot */
.hstat-red {
  border-top: 3px solid var(--red);
}
.hstat-red .hstat-num {
  color: var(--red);
}
.hstat-amber {
  border-top: 3px solid #e08000;
}
.hstat-amber .hstat-num {
  color: #e08000;
}
.hstat-green {
  border-top: 3px solid #1b7a3d;
}
.hstat-green .hstat-num {
  color: #1b7a3d;
}
.hstat-neutral {
  border-top: 3px solid #444;
}
.hstat-neutral .hstat-num {
  color: var(--ink);
}

/* --- Inline italic + red underline for hero blurb --- */
.hero-italic {
  font-style: italic;
}
.hero-underline-red {
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-underline-offset: 3px;
}
.hero-qmark {
  color: var(--red);
}

/* --- Footer logo image --- */
.sfm-logo-img {
  height: 120px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  flex-shrink: 0;
}

/* --- Remove old logo-badge from nav (kept in footer separately) --- */
.nav-logo .logo-badge {
  display: none;
}

/* ===== RESPONSIVE — new components ===== */
@media (max-width: 1100px) {
  .hero-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-section-flipped {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .carousel-arrow {
    display: none;
  }
  .hero-lino-panel {
    max-width: 100%;
  }
  .nav-logo-img {
    height: 36px;
  }
  .sfm-logo-img {
    height: 80px;
  }
  .sfm-partner-logo {
    height: 28px;
  }
}
@media (max-width: 480px) {
  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hstat-num {
    font-size: 1.6rem;
  }
}

/* --- Hero panel 1 — uploaded image --- */
.hero-panel1-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 6px;
}
.hero-lino-panel {
  aspect-ratio: 3 / 4;
}

/* ===== CLIMATEWATCH FOOTER REBRAND ===== */

/* "Climate" bold + "Watch" light heading */
.sfm-title-bold {
  font-weight: 800;
  color: var(--black);
  font-style: normal;
}
.sfm-title-light {
  font-weight: 300;
  color: var(--black);
}

/* Brand text column */
.sfm-brand-text {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 420px;
}

/* Blurb paragraphs */
.sfm-blurb {
  font-size: 12px;
  line-height: 1.7;
  color: var(--grey-600);
  margin: 0;
}
.sfm-blurb-funded {
  color: var(--grey-400);
  font-size: 11px;
}

/* Partner logo row */
.sfm-partner-logos {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.sfm-partner-logo-link {
  display: inline-flex;
  align-items: center;
  opacity: 0.75;
  transition: opacity 0.16s ease;
}
.sfm-partner-logo-link:hover {
  opacity: 1;
}
.sfm-partner-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
  display: block;
  /* Both logos are black-on-white — render cleanly on light footer */
}

/* =============================================
   HOMEPAGE REDESIGN — June 2026
   Items 1–14 overrides & additions
   ============================================= */

/* ===== 1. OUTSIZED FIXED LOGO ===== */
/* Nav becomes fixed, leaves room for oversized logo */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 0;
  padding: 0 0 0 160px; /* left room for the oversized logo */
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 var(--border);
}

/* Outsized logo — fixed, extends below nav bar */
.nav-logo-oversized {
  position: fixed;
  top: 0;
  left: 20px;
  z-index: 400;
  width: 130px;
  height: 110px; /* extends below the 64px nav */
  display: flex;
  align-items: flex-start;
  padding-top: 4px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.18));
}
.nav-logo-oversized-img {
  width: 130px;
  height: 106px;
  object-fit: contain;
  display: block;
}

/* ClimateWatch name beside logo */
.nav-brand-text {
  border-left: 1px solid var(--border);
  padding-left: 16px;
  margin-right: 20px;
  flex-shrink: 0;
}
.nav-project {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--black);
}
.nav-cw-bold {
  font-weight: 800;
  font-style: normal;
}
.nav-cw-light {
  font-weight: 300;
  color: var(--grey-500);
}

/* Nav links centered */
.nav-links {
  flex: 1;
  justify-content: center;
  gap: 0;
}

/* ===== 4. BOT BUTTON IN NAV ===== */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-right: 24px;
}
.nav-ask-label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--grey-700);
  white-space: nowrap;
}
.btn-ask-anything {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  border: none;
  cursor: pointer;
  transition:
    background 0.18s,
    transform 0.15s;
  flex-shrink: 0;
}
.btn-ask-anything:hover {
  background: var(--red-dark);
  transform: scale(1.05);
}

/* Push body down to account for fixed nav + ticker */
body {
  padding-top: 0;
}
.ticker-bar {
  margin-top: 64px; /* nav height */
  /* item 2: left margin to clear logo */
  padding-left: 150px;
  position: relative;
  z-index: 100;
  background: #e5e7eb; /* grey shade so it doesn't compete with red logo */
}
.ticker-pill {
  background: #4b5563;
  color: #fff;
  border-color: #4b5563;
}

/* Hero carousel top offset */
.hero-carousel {
  margin-top: 0;
}

/* ===== 2. TICKER: left-margin to not overlap with logo ===== */
/* Already handled by padding-left on .ticker-bar above */

/* ===== 3. CLIMATEWATCH NAME — already done in nav-project above ===== */

/* ===== 5. HERO STATS GRID — centred layout ===== */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 40px;
}
.hstat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 10px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  gap: 4px;
  min-height: 90px;
}
.hstat-num {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  order: 1;
}
.hstat-label {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  order: 2;
}
.hstat-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--grey-500);
  order: 3;
  line-height: 1.3;
}
.hstat-sub a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hstat-red {
  border-color: var(--red);
}
.hstat-red .hstat-num {
  color: var(--red);
}
.hstat-red .hstat-label {
  color: var(--red);
}
.hstat-amber {
  border-color: #d97706;
}
.hstat-amber .hstat-num {
  color: #d97706;
}
.hstat-amber .hstat-label {
  color: #d97706;
}
.hstat-green {
  border-color: #059669;
}
.hstat-green .hstat-num {
  color: #059669;
}
.hstat-green .hstat-label {
  color: #059669;
}
.hstat-neutral .hstat-num {
  color: var(--black);
}
.hstat-neutral .hstat-label {
  color: var(--grey-700);
}

/* ===== 6. PULSATING RED DOT ===== */
.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  margin-right: 7px;
  vertical-align: middle;
  position: relative;
  animation: pulse-ring 1.8s ease-out infinite;
}
@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 30, 24, 0.6);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(217, 30, 24, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 30, 24, 0);
  }
}

/* ===== 7. GHOST BUTTON → GREY PILL (matching solid btn style) ===== */
.btn-ghost {
  background: #f3f4f6;
  color: var(--grey-700);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1.5px solid var(--grey-300);
  cursor: pointer;
  transition:
    background 0.18s,
    border-color 0.18s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}
.btn-ghost:hover {
  background: #e5e7eb;
  border-color: var(--grey-500);
  color: var(--black);
}
.btn-ghost.btn-lg {
  font-size: 14px;
  padding: 13px 28px;
}

/* ===== 8. HERO PANEL 1 — EYE IMAGE ===== */
.hero-lino-panel {
  position: relative;
  overflow: hidden;
  border-radius: 2px;
}
.hero-panel1-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* align top with headline, bottom with stats boxes */
  max-height: 600px;
}

/* Hero section layout — tighten to align image with text block */
.hero-section {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 60px;
  align-items: start;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px var(--pad-x) 72px;
}

/* ===== 9. CAROUSEL — ALWAYS VISIBLE DOTS + SLOWER ROTATION ===== */
.carousel-controls {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 20;
}
.carousel-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  /* always visible — dim red when inactive */
  background: rgba(217, 30, 24, 0.35);
  transition:
    background 0.25s,
    transform 0.2s;
  padding: 0;
}
.carousel-dot.active {
  background: rgba(217, 30, 24, 0.75); /* lighter active, per spec */
  transform: scale(1.25);
}
.carousel-dot:hover {
  background: var(--red);
}

/* ===== 10. HERO PANEL 2 — FINGERPRINT LAYOUT ===== */
.hero-section-p2 {
  grid-template-columns: 440px 1fr;
}
.hero-p2-image-side {
  position: relative;
}
.hero-fp-panel {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.hero-fp-img {
  width: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  max-height: 600px;
  /* red overlay stripe — same tone as panel 1 */
  position: relative;
}
/* Red stripe overlay on fingerprint (matching panel 1 image red stripe) */
.hero-fp-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 35%;
  width: 18%;
  height: 100%;
  background: rgba(217, 30, 24, 0.55);
  z-index: 2;
  pointer-events: none;
}
.hero-p2-text-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Panel 2 actor type boxes — 6-column grid matching panel 1 stats */
.hero-actor-types-grid {
  grid-template-columns: repeat(3, 1fr);
}
.hstat-actor-type {
  border-color: var(--border);
  background: var(--grey-50);
  gap: 6px;
  min-height: 80px;
}
.hstat-actor-letter {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  color: var(--grey-300);
  line-height: 1;
  order: 0;
}
.hstat-actor-type .hstat-label {
  color: var(--grey-700);
  font-size: 8.5px;
}

/* ===== HERO SLIDE TRANSITIONS ===== */
.hero-carousel {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.hero-slide {
  display: none;
  animation: fadeIn 0.5s ease;
}
.hero-slide.active {
  display: block;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  color: var(--grey-700);
  z-index: 20;
  transition:
    background 0.15s,
    color 0.15s;
}
.carousel-arrow:hover {
  background: var(--black);
  color: #fff;
}
.carousel-prev {
  left: 20px;
}
.carousel-next {
  right: 20px;
}

/* ===== 13. OBSERVATORY — CLUSTER CHART IMAGE ===== */
.obs-cluster-chart {
  margin: 8px 0 16px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d0e10;
}
.obs-cluster-chart-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}

/* ===== 14. FOOTER REDESIGN ===== */
/* Bigger logo */
.sfm-logo-img {
  width: 160px !important;
  height: auto;
  display: block;
  flex-shrink: 0;
}

/* Coalition logos column */
.sfm-col-logos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Coalition logos — greyscale by default, colour on hover */
.sfm-coalition-logo-link {
  display: inline-block;
  opacity: 0.55;
  filter: grayscale(1);
  transition:
    opacity 0.2s,
    filter 0.2s;
  text-decoration: none;
}
.sfm-coalition-logo-link:hover {
  opacity: 1;
  filter: grayscale(0);
}
.sfm-coalition-logo {
  height: 32px;
  width: auto;
  display: block;
  object-fit: contain;
  max-width: 120px;
}
/* Text-only logos for orgs without image files */
.sfm-coalition-text-logo {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.06em;
  padding: 4px 0;
  transition: color 0.2s;
}
.sfm-coalition-logo-link:hover .sfm-coalition-text-logo {
  color: #fff;
}

/* Funder logos — monotone, colour on hover */
.sfm-funder-logo-link {
  display: inline-block;
  opacity: 0.5;
  filter: grayscale(1) brightness(1.4);
  transition:
    opacity 0.2s,
    filter 0.2s;
  text-decoration: none;
}
.sfm-funder-logo-link:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1);
}
.sfm-funder-logo {
  width: 120px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  overflow: hidden;
}
.sfm-funder-svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.sfm-funder-ddi {
}
.sfm-funder-eu {
}
.sfm-funder-danida {
}
.sfm-funder-norway {
}
.sfm-funder-unesco {
}

/* Funder colour reveal on hover */
.sfm-funder-logo-link:hover .sfm-funder-ddi {
}
.sfm-funder-logo-link:hover .sfm-funder-eu {
}
.sfm-funder-logo-link:hover .sfm-funder-danida {
}
.sfm-funder-logo-link:hover .sfm-funder-norway {
}
.sfm-funder-logo-link:hover .sfm-funder-unesco {
}

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (max-width: 1100px) {
  .hero-stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-actor-types-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .site-nav {
    padding-left: 150px;
  }
}
@media (max-width: 900px) {
  .site-nav {
    padding-left: 130px;
    height: 56px;
  }
  .nav-logo-oversized {
    width: 100px;
    height: 88px;
  }
  .nav-logo-oversized-img {
    width: 100px;
    height: 84px;
  }
  .ticker-bar {
    margin-top: 56px;
    padding-left: 110px;
  }
  .hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 48px 24px 56px;
  }
  .hero-section-p2 {
    grid-template-columns: 1fr;
  }
  .hero-p2-image-side {
    order: 2;
  }
  .hero-p2-text-side {
    order: 1;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-actor-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sfm-logo-img {
    width: 120px !important;
  }
}
@media (max-width: 600px) {
  .nav-ask-label {
    display: none;
  }
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* =============================================
   ROUND-2 STYLING FIXES — June 2026
   ============================================= */

/* 1. ClimateWatch — substantially larger sub-logo treatment */
.nav-project {
  font-family: "DM Sans", sans-serif;
  font-size: 22px !important;
  letter-spacing: -0.02em;
  line-height: 1;
  white-space: nowrap;
  color: var(--black);
}
.nav-cw-bold {
  font-weight: 800;
}
.nav-cw-light {
  font-weight: 300;
  color: var(--grey-500);
}
.nav-brand-text {
  border-left: 1px solid var(--border);
  padding-left: 16px;
  margin-right: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* 2. Nav separators */
.nav-sep {
  list-style: none;
  color: var(--grey-300);
  font-size: 12px;
  padding: 0 2px;
  user-select: none;
  display: flex;
  align-items: center;
}

/* 4.2 Stat box borders — restore original coloured-top style from screenshot */
/* Left-aligned label on top, then big number, then sub text (original layout) */
.hstat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 16px 14px 14px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--grey-300); /* default */
  border-radius: var(--radius);
  gap: 6px;
  min-height: 110px;
  background: var(--grey-50);
}
/* Colour accents per original screenshot */
.hstat-red {
  border-top-color: var(--red) !important;
  background: #fff;
}
.hstat-neutral {
  border-top-color: var(--grey-500) !important;
  background: #fff;
}
.hstat-amber {
  border-top-color: #d97706 !important;
  background: #fff;
}
.hstat-green {
  border-top-color: #059669 !important;
  background: #fff;
}

/* Original layout: label first, then number, then sub */
.hstat-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  line-height: 1.35;
  color: var(--grey-700);
  order: 1;
}
.hstat-num {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  order: 2;
}
.hstat-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--grey-500);
  order: 3;
  line-height: 1.4;
}
.hstat-sub a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Number colours matching original screenshot */
.hstat-red .hstat-num {
  color: var(--red);
}
.hstat-neutral .hstat-num {
  color: var(--black);
}
.hstat-amber .hstat-num {
  color: #d97706;
}
.hstat-green .hstat-num {
  color: #059669;
}

/* Keep all 5 stat boxes in one row */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 36px;
  align-items: stretch;
}

/* 4.5 Headline letter-spacing fix — "story ?" gap */
.hero-qmark {
  letter-spacing: -0.01em;
  margin-left: 0.04em;
}

/* 5.1 Fingerprint image — same dimensions as eye image with identical red stripe */
.hero-fp-panel {
  position: relative;
  overflow: hidden;
  width: 100%;
}
.hero-fp-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  max-height: 600px;
}
/* Red stripe — identical tone to panel 1 eye image stripe */
.hero-fp-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 36%;
  width: 17%;
  height: 100%;
  background: rgba(217, 30, 24, 0.52);
  z-index: 2;
  pointer-events: none;
}

/* 5.3/5.4 Panel 2 actor boxes — match panel 1 stat box layout exactly */
/* Panel 2 uses 3-col grid of 6 boxes, left-aligned text matching panel 1 style */
.hero-actor-types-grid {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 10px;
  margin-top: 36px;
  align-items: stretch;
}
.hstat-actor-type {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 14px 14px 12px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--grey-400, #9ca3af);
  border-radius: var(--radius);
  background: #fff;
  gap: 5px;
  min-height: 90px;
}
.hstat-actor-letter {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--grey-500);
  line-height: 1;
  order: 1;
}
.hstat-actor-type .hstat-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--black);
  font-family: "DM Sans", sans-serif;
  order: 2;
  line-height: 1.25;
}

/* Panel 2 — ensure same height as panel 1 hero section */
.hero-section-p2 {
  grid-template-columns: 440px 1fr !important;
  min-height: inherit;
}
.hero-p2-image-side {
  display: flex;
  align-items: stretch;
}
.hero-fp-panel {
  display: flex;
  flex-direction: column;
}
.hero-p2-text-side {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

/* Observatory chart inline (in Rebuttal Efficacy grey panel) */
.obs-cluster-chart-inline {
  margin: 12px 0 8px;
  border-radius: var(--radius);
  overflow: hidden;
  background: #0d0e10;
}
.obs-cluster-chart-inline .obs-cluster-chart-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Restore obs-cluster-list styles (were present in original) */
.obs-cluster-list {
  margin: 8px 0 16px;
}
.obs-cluster-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}
.obs-cluster-row:last-child {
  border-bottom: none;
}
.obs-sev {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 2px;
  flex-shrink: 0;
}
.obs-sev-high {
  background: rgba(217, 30, 24, 0.9);
  color: #fff;
}
.obs-sev-med {
  background: rgba(217, 119, 6, 0.85);
  color: #fff;
}
.obs-cluster-name {
  flex: 1;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
}
.obs-cluster-region {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  white-space: nowrap;
}

/* ===== ROUND 3 — PANEL 2 FIXES ===== */

/* 1. Fingerprint stripe — exact match to panel 1 eye stripe */
/* Override round-2 values (left: 36%, rgba 0.52) → correct (left: 35%, rgba 0.55) */
.hero-fp-panel::before {
  left: 35% !important;
  width: 17% !important;
  background: rgba(217, 30, 24, 0.55) !important;
}

/* 2. Reduce gap between .hero-ctas and actor-type boxes in panel 2 */
/* Panel 1 hstat gap: margin-top: 32px on .hero-stats-grid — match exactly */
.hero-section-p2 .hero-ctas {
  margin-bottom: 0;
}
.hero-actor-types-grid {
  margin-top: 32px !important;
}

/* 3. Single row of 6 boxes — override the repeat(3,1fr) from round-2 */
.hero-actor-types-grid {
  grid-template-columns: repeat(6, 1fr) !important;
  gap: 8px !important;
  align-items: stretch;
}

/* 4. Actor type box sizing — compact to fit 6 across, match panel 1 stat box proportion */
.hstat-actor-type {
  min-height: 0 !important;
  padding: 10px 8px 10px !important;
  gap: 4px !important;
}
.hstat-actor-letter {
  font-size: 10px !important;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--grey-500, #6b7280);
  order: 1;
}
.hstat-actor-type .hstat-label {
  font-size: 9.5px !important;
  font-weight: 700;
  line-height: 1.2;
  color: var(--black, #111);
  text-transform: none;
  order: 2;
}
.hstat-actor-type .hstat-sub {
  font-size: 9px !important;
  color: #9ca3af;
  order: 3;
  margin-top: 2px;
}
.hstat-actor-type .hstat-sub a {
  color: #9ca3af;
  text-decoration: none;
}
.hstat-actor-type .hstat-sub a:hover {
  text-decoration: underline;
  color: var(--red, #d91e18);
}

/* 5. Colour-coded top-border accents — Lexicon-inspired palette */
/* A — Newsfluencer Amplifiers → blue (#1d4ed8, like --cat-nf) */
.hsat-nf {
  border-top: 3px solid #1d4ed8 !important;
}
.hsat-nf .hstat-actor-letter {
  color: #1d4ed8 !important;
}
/* B — Sham Scientists → green (#059669, like --cat-ss) */
.hsat-ss {
  border-top: 3px solid #059669 !important;
}
.hsat-ss .hstat-actor-letter {
  color: #059669 !important;
}
/* C — Sockpuppets → amber (#d97706) */
.hsat-sp {
  border-top: 3px solid #d97706 !important;
}
.hsat-sp .hstat-actor-letter {
  color: #d97706 !important;
}
/* D — Dark Money Funders → red (#d91e18, like --cat-dm / --red) */
.hsat-dm {
  border-top: 3px solid #d91e18 !important;
}
.hsat-dm .hstat-actor-letter {
  color: #d91e18 !important;
}
/* E — Power-Brokers → purple (#7c3aed, like --cat-tt) */
.hsat-pb {
  border-top: 3px solid #7c3aed !important;
}
.hsat-pb .hstat-actor-letter {
  color: #7c3aed !important;
}
/* F — Culture Firebrands → teal (#0d9488) */
.hsat-cf {
  border-top: 3px solid #0d9488 !important;
}
.hsat-cf .hstat-actor-letter {
  color: #0d9488 !important;
}

/* Responsive: collapse to 3-col on tablet, 2-col on mobile */
@media (max-width: 1100px) {
  .hero-actor-types-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
@media (max-width: 600px) {
  .hero-actor-types-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ===== OBSERVATORY — REBUTTAL EFFICACY WIDE PANEL (Round 3 fix) ===== */
/* Span 2 columns so it matches the Active Narrative Clusters panel width */
.obs-panel-efficacy-wide {
  grid-column: span 2;
}
/* Two-column internal layout: stats left, chart right */
.obs-efficacy-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  height: 100%;
}
.obs-efficacy-stats-col {
  display: flex;
  flex-direction: column;
}
.obs-efficacy-chart-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.obs-chart-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 10px;
}
/* Reset obs-cluster-chart margin inside chart col */
.obs-efficacy-chart-col .obs-cluster-chart {
  margin: 0;
}

/* Responsive: stack on tablet */
@media (max-width: 900px) {
  .obs-panel-efficacy-wide {
    grid-column: span 2;
  }
  .obs-efficacy-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 600px) {
  .obs-panel-efficacy-wide {
    grid-column: span 1;
  }
}

/* ===== CLUSTER THREAT LEVEL BAR CHART (Round 3 — replaces jpg) ===== */
.obs-threat-chart-col {
  background: #111213;
  margin: -28px -28px -28px 0; /* bleed to panel edges on right/top/bottom */
  padding: 28px 28px 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.08);
}
.obs-threat-chart-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 20px 0;
}
.obs-threat-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.obs-tbar-row {
  display: grid;
  grid-template-columns: 220px 1fr 38px;
  align-items: center;
  gap: 10px;
}
.obs-tbar-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.obs-tbar-track {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  height: 10px;
  overflow: hidden;
}
.obs-tbar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.6s ease;
}
.obs-tbar-red {
  background: #d91e18;
}
.obs-tbar-amber {
  background: #e08000;
}
.obs-tbar-blue {
  background: #4b6cb7;
}
.obs-tbar-pct {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  text-align: right;
}

/* Adjust efficacy inner grid proportions for chart column */
.obs-panel-efficacy-wide .obs-efficacy-inner {
  grid-template-columns: 1fr 1.8fr;
  gap: 0;
}

@media (max-width: 900px) {
  .obs-threat-chart-col {
    margin: 0 -28px -28px -28px;
    padding: 24px 28px;
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }
  .obs-tbar-row {
    grid-template-columns: 160px 1fr 36px;
  }
}

/* ===== OBSERVATORY — PRIORITY ALERT PANEL ===== */
.obs-panel-alert {
  border-left: 2px solid rgba(217, 30, 24, 0.4);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.obs-alert-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}
.obs-alert-svg {
  width: 40px;
  height: 40px;
  display: block;
}
.obs-alert-kicker {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d91e18;
  margin: 0;
}
.obs-alert-title {
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.01em;
}
.obs-alert-body {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0;
  flex-grow: 1;
}
.obs-alert-body strong {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 700;
}
.obs-alert-link {
  margin-top: auto;
}

/* ===== / ROUTE RESPONSIVE HARDENING ===== */
.hero-section > *,
.hero-left,
.hero-right,
.hero-p2-image-side,
.hero-p2-text-side,
.hero-ctas,
.hero-stats-grid,
.hero-actor-types-grid {
  min-width: 0;
}

@media (max-width: 1100px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-links.nav-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    z-index: 299;
    gap: 0;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 8px var(--pad-x) 14px;
    box-shadow: 0 16px 28px rgba(17, 17, 17, 0.12);
  }

  .nav-links.nav-open li {
    width: 100%;
  }

  .nav-links.nav-open .nav-sep {
    display: none;
  }

  .nav-links.nav-open .nav-link {
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    padding: 14px 0;
  }

  .nav-links.nav-open li:last-child .nav-link {
    border-bottom: 0;
  }

  .nav-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-hamburger span {
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }
}

@media (max-width: 900px) {
  .hero-section,
  .hero-section-p2 {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .hero-p2-image-side {
    order: 2;
  }

  .hero-p2-text-side {
    order: 1;
  }

  .hero-headline,
  .hero-body {
    max-width: 100%;
  }

  .hero-lino-panel,
  .hero-panel1-img,
  .hero-fp-img {
    width: 100%;
  }

  .hero-ctas .btn-solid,
  .hero-ctas .btn-ghost {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  .nav-links.nav-open {
    top: 56px;
    max-height: calc(100dvh - 56px);
  }
}

@media (max-width: 768px) {
  .nav-links.nav-open {
    top: 56px;
    z-index: 299;
    gap: 0;
    max-height: calc(100dvh - 56px);
    overflow-y: auto;
    padding: 8px var(--pad-x) 14px;
    box-shadow: 0 16px 28px rgba(17, 17, 17, 0.12);
  }

  .nav-links.nav-open li {
    width: 100%;
  }

  .nav-links.nav-open .nav-sep {
    display: none;
  }

  .nav-links.nav-open .nav-link {
    border-bottom: 1px solid var(--border);
    font-size: 15px;
    padding: 14px 0;
  }

  .nav-links.nav-open li:last-child .nav-link {
    border-bottom: 0;
  }

  .nav-hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .nav-hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-hamburger span {
    transition:
      transform 180ms ease,
      opacity 180ms ease;
  }
}

@media (max-width: 600px) {
  .site-nav {
    height: 56px;
    max-width: 100vw;
    min-width: 0;
    padding-left: 86px;
    padding-right: 16px;
    width: 100vw;
  }

  .nav-logo-oversized {
    left: 12px;
    width: 64px;
    height: 64px;
    padding-top: 6px;
  }

  .nav-logo-oversized-img {
    width: 64px;
    height: 52px;
  }

  .nav-brand-text {
    margin-right: 0;
    min-width: 0;
    padding-left: 12px;
  }

  .nav-project {
    display: block;
    font-size: 18px !important;
    max-width: calc(100vw - 156px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ticker-bar {
    height: 44px;
    margin-top: 56px;
    padding-left: 0;
  }

  .ticker-pill {
    font-size: 9px;
    margin-left: 12px;
    margin-right: 10px;
    padding: 3px 8px;
  }

  .ticker-scroll-wrap {
    min-width: 0;
  }

  .hero-section,
  .hero-section-p2 {
    gap: 28px;
    padding: 44px var(--pad-x) 66px !important;
  }

  .hero-headline {
    font-size: clamp(34px, 12vw, 46px) !important;
    line-height: 1;
    overflow-wrap: anywhere;
  }

  .hero-body {
    font-size: 15.5px;
    line-height: 1.65;
    margin-bottom: 24px;
    overflow-wrap: break-word;
  }

  .hero-ctas {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-bottom: 28px;
  }

  .hero-ctas .btn-solid,
  .hero-ctas .btn-ghost {
    width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-stats-grid,
  .hero-actor-types-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .watchlist-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hstat-card,
  .hstat-actor-type {
    min-width: 0;
  }

  .hstat-label,
  .hstat-sub,
  .hstat-actor-type .hstat-label {
    overflow-wrap: anywhere;
  }

  .carousel-arrow {
    display: none;
  }

  .carousel-controls {
    bottom: 18px;
  }

  #cc-frame,
  #cc-loader {
    left: 12px !important;
    max-width: calc(100vw - 24px) !important;
    right: 12px !important;
    width: calc(100vw - 24px) !important;
  }
}

@media (max-width: 360px) {
  .site-nav {
    padding-left: 76px;
    padding-right: 12px;
  }

  .nav-logo-oversized {
    left: 10px;
    width: 56px;
  }

  .nav-logo-oversized-img {
    width: 56px;
  }

  .nav-brand-text {
    padding-left: 10px;
  }

  .nav-project {
    font-size: 16px !important;
    max-width: calc(100vw - 130px);
  }

  .ticker-pill {
    margin-left: 10px;
  }
}

/* ===== LIGHTHOUSE HARDENING ===== */
.ticker-item-country {
  color: #4b5563;
}

.hstat-amber .hstat-label {
  color: #92400e;
}

.hstat-green .hstat-label {
  color: #047857;
}

.observatory-section .section-eyebrow,
.obs-header .section-eyebrow {
  color: #f87171;
}

.inv-card-featured .inv-report-num,
.inv-card-featured .inv-org,
.inv-card-featured .inv-date {
  color: rgba(255, 255, 255, 0.72);
}

.baro-num,
.lex-num {
  color: #4b5563;
}

.wl-active {
  color: #047857;
}

.wl-av-ss {
  background: #047857;
}

.obs-panel-count,
.obs-cluster-region,
.obs-platform-note {
  color: rgba(255, 255, 255, 0.65);
}

.obs-sev-med {
  background: #92400e;
  color: #fff;
}

.obs-alert-kicker {
  color: #f87171;
}

.obs-cta-kicker,
.obs-cta-body {
  color: #fff;
}

.chatbot-launcher {
  align-items: center;
  background: var(--red);
  border: 0;
  border-radius: 50%;
  bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 56px;
  justify-content: center;
  padding: 0;
  position: fixed;
  right: 20px;
  transition:
    box-shadow 0.18s,
    transform 0.18s;
  width: 56px;
  z-index: 2147483644;
}

.chatbot-launcher[hidden] {
  display: none;
}

.chatbot-launcher:hover {
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.32);
  transform: scale(1.07);
}

.chatbot-launcher:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.chatbot-launcher-icon {
  display: block;
}

.chatbot-launcher-loading .chatbot-launcher-icon {
  animation: chatbot-launcher-pulse 0.8s ease-in-out infinite alternate;
}

@keyframes chatbot-launcher-pulse {
  from {
    opacity: 0.55;
    transform: scale(0.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 440px) {
  .chatbot-launcher {
    bottom: 16px;
    right: 16px;
  }
}

.carousel-controls {
  gap: 4px;
}

.carousel-dot {
  align-items: center;
  background: transparent;
  border: 0;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  padding: 0;
  transform: none;
  width: 24px;
}

.carousel-dot::before {
  background: rgba(217, 30, 24, 0.35);
  border-radius: 50%;
  content: "";
  display: block;
  height: 10px;
  transition:
    background 0.25s,
    transform 0.2s;
  width: 10px;
}

.carousel-dot.active {
  background: transparent;
  transform: none;
}

.carousel-dot.active::before {
  background: rgba(217, 30, 24, 0.75);
  transform: scale(1.25);
}

.carousel-dot:hover {
  background: transparent;
}

.carousel-dot:hover::before {
  background: var(--red);
}

@supports (content-visibility: auto) {
  @media (max-width: 768px) {
    .debunk-ticker-section,
    .investigations-section,
    .barometer-section,
    .watchlist-section,
    .lexicon-section,
    .observatory-section,
    .site-footer-main {
      content-visibility: auto;
    }

    .debunk-ticker-section {
      contain-intrinsic-size: auto 560px;
    }

    .investigations-section {
      contain-intrinsic-size: auto 1800px;
    }

    .barometer-section {
      contain-intrinsic-size: auto 2600px;
    }

    .watchlist-section {
      contain-intrinsic-size: auto 2200px;
    }

    .lexicon-section {
      contain-intrinsic-size: auto 3000px;
    }

    .observatory-section {
      contain-intrinsic-size: auto 3000px;
    }

    .site-footer-main {
      contain-intrinsic-size: auto 900px;
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .pulse-dot,
  .chatbot-launcher-loading .chatbot-launcher-icon,
  .hero-slide {
    animation: none !important;
  }
}
