/* ═══════════════════════════════════════════════════════
   HelloFresh QBR Executive Dashboard — Styles
   Based on TubeScience QBR deck styling
   Fluid-scaled via clamp() root font-size + rem units
   ═══════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════
   AUTH GATE
   ═══════════════════════════════════════════════════════ */
#auth-gate {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  z-index: 10000;
}
.auth-card {
  text-align: center;
  padding: 3rem 3.5rem;
  background: rgba(255,255,255,0.06);
  border-radius: 1rem;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.1);
  width: fit-content;
  min-width: 340px;
}
.auth-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.2rem;
  margin-bottom: 2rem;
}
.auth-logo.hf { height: 48px; }
.auth-logo.ts { height: 19px; }
.auth-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.25);
}
.auth-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.5rem;
  white-space: nowrap;
}
.auth-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin: 0 0 2rem;
}
#google-signin-btn {
  display: flex;
  justify-content: center;
  margin: 0 auto;
}
.auth-error {
  margin-top: 1.2rem;
  padding: 0.6rem 1rem;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  border-radius: 0.4rem;
  color: #fca5a5;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  line-height: 1.4;
}
.title-bar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.auth-signout {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  background: none;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 0.3rem;
  padding: 0.25rem 0.6rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.auth-signout:hover {
  color: rgba(255,255,255,0.8);
  border-color: rgba(255,255,255,0.4);
}

/* ── CSS Custom Properties ── */
:root {
  /* Brand colors from QBR PPTX */
  --navy: #005493;
  --navy-dark: #003d6b;
  --lavender: #D9D2E9;
  --lavender-light: #EDE8F5;
  --berry: #A64D79;
  --deep-purple: #351C75;
  --medium-purple: #674EA7;

  /* TubeScience accent colors (lavender/purple family) */
  --ts-primary: #674EA7;
  --ts-fill: #B4A7D6;
  --ts-fill-hover: #9A8CC2;

  /* Neutral / text */
  --dark-slate: #1E293B;
  --slate: #475569;
  --medium-gray: #9E9E9E;
  --soft-blue-gray: #E2E8F0;
  --light-bg: #F8F9FA;
  --white: #FFFFFF;
  --near-white: #EEEEEE;

  /* Status */
  --green: #10B981;
  --green-light: #D1FAE5;
  --red: #EF4444;
  --red-light: #FEE2E2;
  --amber: #F59E0B;

  /* Cover / dark sections */
  --cover-start: #262626;
  --cover-end: #000000;
  --dark-bg: #0F1A2E;
  --blue-accent: #3B82F6;

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: Arial, 'Helvetica Neue', sans-serif;
  --font-special: Georgia, 'Times New Roman', serif;

  /* Layout — rem-based for fluid scaling */
  --data-width: 74%;
  --sidebar-width: 26%;
  --title-bar-h: 3.25rem;   /* 52px @ 16px base */
  --footer-h: 1.75rem;      /* 28px @ 16px base */
  --card-radius: 0.625rem;  /* 10px @ 16px base */
  --card-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-snap-type: y mandatory;
  overflow-y: scroll;
  scroll-behavior: smooth;
  /* Fluid root: near-fixed ~20px across all desktop resolutions.
     Blends vw + vh with high base so variance is minimal:
     20px @ 1920×1080, 19.9px @ 1710×1107, 19px @ 1280×720 */
  font-size: clamp(17px, calc(17px + 0.078vw + 0.139vh), 22px);
}

body {
  font-family: var(--font-body);
  color: var(--dark-slate);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* ── Slide System ── */
.slide {
  scroll-snap-align: start;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ── Title Bar ── */
.title-bar {
  height: var(--title-bar-h);
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}

.title-bar .brand-tag {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  opacity: 0.75;
}

/* ── Slide Body (two-tone) ── */
.slide-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.data-panel {
  width: var(--data-width);
  background: var(--white);
  padding: 1.5rem 1.75rem 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.insights-panel {
  width: var(--sidebar-width);
  background: var(--lavender);
  padding: 1rem 1.25rem 0.75rem;
  overflow-y: auto;
  border-left: 1px solid rgba(0,0,0,0.06);
}

/* ── Footer ── */
.slide-footer {
  height: var(--footer-h);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 2rem;
  font-size: 0.5625rem;
  color: var(--medium-gray);
  background: var(--white);
  border-top: 1px solid var(--soft-blue-gray);
  flex-shrink: 0;
  letter-spacing: 0.3px;
}

.footer-caveat {
  margin-left: 1.5rem;
  font-style: italic;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════
   COVER SLIDE
   ═══════════════════════════════════════════════════════ */
.slide-cover {
  background: url('Title_Background.png') center/cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}
.slide-cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
  z-index: 0;
  pointer-events: none;
}
.slide-cover .cover-content {
  position: relative;
  z-index: 1;
}

.cover-content {
  max-width: 43.75rem;
}

.cover-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 3rem;
}

.cover-logo-half {
  flex: 1;
  display: flex;
  align-items: center;
}
.cover-logo-half.left {
  justify-content: flex-end;
  padding-right: 1.5rem;
}
.cover-logo-half.right {
  justify-content: flex-start;
  padding-left: 1.5rem;
}

.cover-logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.cover-logo-text.ts { color: var(--blue-accent); }
.cover-logo-text.hf { color: var(--green); }

.cover-logo-img.hf {
  height: 2.75rem;
  width: auto;
  object-fit: contain;
}
.cover-logo-img.ts {
  height: 1.1rem;
  width: auto;
  object-fit: contain;
}

.brand-tag-logo {
  height: 0.625rem;
  width: auto;
  object-fit: contain;
  opacity: 1;
}

.cover-divider {
  width: 1px;
  height: 1.75rem;
  background: rgba(255,255,255,0.25);
}

.cover-title {
  font-family: var(--font-special);
  font-size: 2.625rem;
  font-weight: 400;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.cover-subtitle {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 0.5rem;
}

.cover-date {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 400;
  color: rgba(255,255,255,0.6);
  margin-bottom: 3.5rem;
}

.scroll-hint {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--medium-gray);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.scroll-arrow {
  width: 1.25rem;
  height: 1.25rem;
  border-right: 2px solid var(--medium-gray);
  border-bottom: 2px solid var(--medium-gray);
  transform: rotate(45deg);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: rotate(45deg) translateY(0); }
  40% { transform: rotate(45deg) translateY(0.375rem); }
  60% { transform: rotate(45deg) translateY(0.1875rem); }
}

.cover-footer {
  position: absolute;
  bottom: 1rem;
  right: 2rem;
  font-size: 0.5625rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.5px;
  z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   CHART CARDS
   ═══════════════════════════════════════════════════════ */
.data-row {
  display: flex;
  gap: 1.125rem;
}

.chart-card {
  background: var(--white);
  border: 1px solid var(--soft-blue-gray);
  border-radius: var(--card-radius);
  padding: 1.125rem 1.25rem;
  box-shadow: var(--card-shadow);
  position: relative;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.slide.active .chart-card {
  opacity: 1;
  transform: translateY(0);
}

.slide.active .chart-card:nth-child(1),
.slide.active .data-row:nth-child(1) .chart-card { transition-delay: 0.1s; }
.slide.active .chart-card:nth-child(2),
.slide.active .data-row:nth-child(1) .chart-card:nth-child(2) { transition-delay: 0.2s; }
.slide.active .data-row:nth-child(2) { transition-delay: 0.3s; }

.chart-card h4 {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--slate);
  margin-bottom: 0.75rem;
}

/* ── Spend Donut ── */
.card-donut {
  flex: 0 0 13.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.donut-wrap {
  position: relative;
  width: 10rem;
  height: 10rem;
}

.donut-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

.donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}

.donut-center .hero-stat {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--dark-slate);
  line-height: 1.1;
}

.donut-center .hero-sub {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--berry);
  margin-top: 0.125rem;
}

/* ── Combo Chart (Monthly Spend + CPP Trend) ── */
.card-combo {
  flex: 1;
  min-width: 0;
}

.combo-chart-wrap {
  position: relative;
  height: 9.375rem;
}

.combo-chart-wrap canvas {
  width: 100% !important;
  height: 100% !important;
}

/* ── Custom Combo Chart Legend ── */
.combo-legend {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.25rem 0 0.125rem;
  flex-wrap: wrap;
}
.combo-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.625rem;
  color: var(--slate);
  white-space: nowrap;
}
.cl-bar {
  display: inline-block;
  width: 0.625rem;
  height: 0.5rem;
  border-radius: 0.1rem;
  flex-shrink: 0;
}
.cl-bar-blocked {
  background: transparent !important;
  border: 1px dashed #9CA3AF;
}
.cl-line {
  display: inline-block;
  width: 1rem;
  height: 0.15rem;
  flex-shrink: 0;
  border-radius: 0.05rem;
}
.cl-line.cl-dashed {
  background: transparent !important;
  border-top: 0.15rem dashed;
  border-color: inherit;
  height: 0;
}

/* ── Media Toggle (All Ads / Video Only) ── */
.media-toggle {
  display: inline-flex;
  border: 1px solid #CBD5E1;
  border-radius: 5px;
  overflow: hidden;
  font-size: 0.55rem;
  margin-left: 0.6rem;
  vertical-align: middle;
  position: relative;
  top: -0.05rem;
}
.media-toggle-btn {
  padding: 0.1rem 0.45rem;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #64748B;
  font-family: 'Montserrat', Arial, sans-serif;
  font-size: inherit;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}
.media-toggle-btn:hover { background: #F1F5F9; }
.media-toggle-btn.active {
  background: var(--ts-primary);
  color: #fff;
}
.media-toggle-btn.active:hover { background: #5B3F9A; }

/* ── Combo Fee Toggle Checkbox ── */
.card-combo { position: relative; }
.combo-fee-toggle {
  display: none;
}
.combo-fee-toggle:hover { opacity: 0.8; }
.combo-fee-cb {
  width: 0.7rem;
  height: 0.7rem;
  cursor: pointer;
  accent-color: var(--ts-primary);
}

/* ── Savings Card ── */
.card-savings {
  padding: 0.875rem 1.25rem;
}

.savings-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.savings-hero {
  flex: 0 0 auto;
  text-align: center;
}

.savings-hero .savings-value {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.savings-hero .savings-label {
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--slate);
  margin-top: 0.25rem;
}

.savings-months {
  flex: 1;
  display: flex;
  gap: 0.75rem;
}

.savings-month {
  flex: 1;
  background: var(--light-bg);
  border-radius: 0.375rem;
  padding: 0.5rem 0.625rem;
  text-align: center;
}

.savings-month .sm-label {
  font-size: 0.5625rem;
  font-weight: 600;
  color: var(--slate);
  margin-bottom: 0.25rem;
}

.savings-month .sm-value {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--green);
}
.savings-month .sm-value.sm-negative {
  color: var(--red, #EF4444);
}
.savings-hero .savings-value.savings-negative {
  color: var(--red, #EF4444);
}

.savings-note {
  font-size: 0.5625rem;
  color: var(--medium-gray);
  margin-top: 0.375rem;
  line-height: 1.3;
}

/* ── Testing Volume & Ads Tested Charts ── */
.card-testing-volume,
.card-ads-tested {
  padding: 0.875rem 1.25rem;
}

.bar-chart-wrap {
  position: relative;
  height: 12.5rem;
  width: 100%;
}

/* ── Cost of Waste ── */
.card-cost-waste {
  padding: 0.875rem 1.25rem;
  background: var(--light-bg);
}

.placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0;
  color: var(--medium-gray);
}

.placeholder-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  opacity: 0.5;
}

.placeholder-text {
  font-size: 0.8125rem;
  font-style: italic;
}

/* COW Summary */
.cow-summary {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.cow-summary-item {
  flex: 1;
  text-align: center;
  background: var(--white);
  border-radius: 0.5rem;
  padding: 0.5rem 0.25rem;
  border: 1px solid var(--soft-blue-gray);
}

.cow-summary-val {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.cow-summary-val.ts-color { color: var(--ts-primary); }
.cow-summary-val.int-color { color: var(--slate); }

.cow-summary-label {
  font-size: 0.6rem;
  color: var(--medium-gray);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 0.15rem;
}

/* COW Chart Bars */
.cow-layout-wrap {
  position: relative;
}
.cow-chart {
  position: relative;
}
.cow-chart::after {
  content: '';
  position: absolute;
  left: calc(2.75rem + 0.5rem + (100% - 2.75rem - 0.5rem) * 0.3 + 1.52rem);
  width: 1px;
  background: rgba(148, 163, 184, 0.2);
  top: 15%;
  bottom: 15%;
}
.cow-chart {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.cow-month {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cow-month-label {
  font-size: 0.65rem;
  color: var(--slate);
  width: 2.75rem;
  flex-shrink: 0;
  font-weight: 600;
  text-align: right;
}

.cow-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.cow-bar-row {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  height: 1rem;
}

.cow-bar-source {
  font-size: 0.575rem;
  color: var(--medium-gray);
  width: 4rem;
  text-align: right;
  flex-shrink: 0;
  font-weight: 700;
}
.cow-bar-row:last-child .cow-bar-source {
  color: var(--ts-primary);
}

.cow-bar-track {
  flex: 1;
  height: 0.65rem;
  background: transparent;
  border-radius: 0.15rem;
  position: relative;
  overflow: hidden;
}

.cow-bar-center {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--slate);
  opacity: 0.3;
}

.cow-bar-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 0.15rem;
  transition: width 0.3s ease;
}

.cow-bar-fill.ts-fill { background: #FCA5A5; }
.cow-bar-fill.ts-fill.negative { background: #10B981; }
.cow-bar-fill.int-fill { background: #DC2626; }
.cow-bar-fill.int-fill.negative { background: #6EE7B7; }

.cow-bar-val {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--slate);
  width: 2.75rem;
  flex-shrink: 0;
  text-align: left;
}

.cow-bar-val.green-val {
  color: #059669;
}

/* COW Footnote */
.cow-footnote {
  font-size: 0.575rem;
  color: var(--medium-gray);
  margin-bottom: 0.5rem;
  line-height: 1.5;
}

.cow-footnote strong {
  color: var(--ts-primary);
}

.card-gender-spend { min-height: 280px; }
.card-gender-spend .bar-chart-wrap { height: 220px; }
.card-cpr-gender .bar-chart-wrap { height: 220px; }
.cpr-footnote { font-size: 0.5625rem; color: #94A3B8; margin-top: 0.375rem; }

/* Recording-event warning note */
.recording-note {
  font-size: 0.575rem;
  color: var(--medium-gray);
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
  line-height: 1.5;
}

/* COW Column Headers (Test Spend / Cost of Waste) */
.cow-col-headers {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}
.cow-col-header-spacer {
  width: 2.75rem;
  flex-shrink: 0;
}
.cow-col-header-left {
  width: 30%;
  flex-shrink: 0;
  font-size: 0.575rem;
  font-weight: 700;
  color: var(--slate);
  text-align: center;
}
.cow-col-header-right {
  flex: 1;
  font-size: 0.575rem;
  font-weight: 700;
  color: var(--slate);
  text-align: center;
}

/* COW Two-column layout per month row */
.cow-columns {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}
.cow-test-spend-col {
  width: 30%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.cow-bars-col {
  flex: 1;
  padding-left: 0.75rem;
}

/* Stacked bar (TS + Internal side by side) */
.cow-stacked-bar {
  display: flex;
  height: 0.75rem;
  border-radius: 0.15rem;
  overflow: hidden;
  background: transparent;
}
.cow-stack-segment {
  height: 100%;
  transition: width 0.3s ease;
}
.cow-stack-segment.ts-segment { background: var(--ts-fill); }
.cow-stack-segment.int-segment { background: var(--medium-gray); }

/* Labels below stacked bar */
.cow-test-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 0.1rem;
}
.cow-test-label {
  font-size: 0.5rem;
  font-weight: 600;
}
.cow-test-label.ts-label { color: var(--ts-primary); }
.cow-test-label.int-label { color: var(--medium-gray); }

/* ── Donut Monthly Spend Tooltip ── */
.donut-tooltip {
  position: fixed;
  z-index: 10001;
  background: rgba(0,0,0,0.8);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.6;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  backdrop-filter: blur(4px);
}

.donut-tooltip.visible { opacity: 1; }

.donut-tooltip .dt-title {
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 0.375rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.donut-tooltip .dt-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.donut-tooltip .dt-row {
  display: flex;
  justify-content: space-between;
  gap: 1.25rem;
}

.donut-tooltip .dt-month {
  color: var(--soft-blue-gray);
}

.donut-tooltip .dt-val {
  font-weight: 700;
}

.donut-tooltip .dt-total {
  margin-top: 0.25rem;
  padding-top: 0.25rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  font-weight: 700;
}

/* ── Delta Badge (reused) ── */
.delta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: var(--green-light);
  color: var(--green);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.375rem 0.75rem;
  border-radius: 1.25rem;
}

.delta-badge.negative {
  background: var(--red-light);
  color: var(--red);
}

/* ── Ad Scaling Rates ── */
.card-scaling {
  flex: 1;
}

.scaling-tiers {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.hitrate-totals-bar {
  margin-bottom: 0.75rem;
}

.hitrate-totals-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hitrate-totals-label {
  flex: 0 0 3.75rem;
  font-size: 0.625rem;
  font-weight: 700;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748B;
}

.hitrate-totals-track {
  flex: 1;
  display: flex;
  height: 1.5rem;
  border-radius: 0.375rem;
  overflow: hidden;
  background: #F1F5F9;
}

.hitrate-totals-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  transition: width 0.3s ease;
}

.hitrate-totals-seg.ts {
  background: var(--ts-fill);
}

.hitrate-totals-seg.internal {
  background: var(--medium-gray);
}

.hitrate-totals-seg-text {
  font-size: 0.5625rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #1E293B;
  white-space: nowrap;
}

.hitrate-totals-count {
  flex: 0 0 auto;
  font-size: 0.625rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #475569;
  min-width: 2rem;
  text-align: right;
}

.tier-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tier-label {
  flex: 0 0 3.5rem;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark-slate);
}

.tier-bars {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.tier-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tier-bar-label {
  flex: 0 0 3.75rem;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--slate);
  text-align: right;
}

.tier-bar-track {
  flex: 1;
  height: 1.125rem;
  background: transparent;
  border-radius: 0.25rem;
  overflow: hidden;
  position: relative;
}

.tier-bar-fill {
  height: 100%;
  border-radius: 0.25rem;
  transition: width 0.8s ease;
}

.tier-bar-fill.ts { background: var(--ts-fill); }
.tier-bar-fill.internal { background: var(--medium-gray); }

.tier-bar-value {
  font-size: 0.625rem;
  font-weight: 700;
  color: var(--dark-slate);
  flex: 0 0 4.75rem;
  white-space: nowrap;
}

.tier-ratio {
  flex: 0 0 4rem;
  text-align: center;
}

.ratio-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.1875rem 0.5rem;
  border-radius: 0.75rem;
  background: var(--soft-blue-gray);
  color: var(--slate);
}

.ratio-badge.positive {
  background: var(--green-light);
  color: var(--green);
}

/* Smaller hit rate tier bars */
.tier-row-hitrate .tier-bar-track {
  height: 0.8rem;
}
.tier-row-hitrate .tier-bar-value {
  font-size: 0.575rem;
}

/* ═══════════════════════════════════════════════════════
   SECTION CTAs (Actionable Insights)
   ═══════════════════════════════════════════════════════ */
.section-cta {
  display: block;
  font-size: 0.6875rem;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--ts-primary);
  background: rgba(103, 78, 167, 0.08);
  border: 1px solid rgba(103, 78, 167, 0.2);
  border-radius: 0.375rem;
  padding: 0.3rem 0.5rem;
  margin-bottom: 0.375rem;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════
   INSIGHTS PANEL
   ═══════════════════════════════════════════════════════ */
.insights-heading {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--deep-purple);
  margin-bottom: 0.625rem;
  padding-bottom: 0.375rem;
  border-bottom: 2px solid var(--medium-purple);
}

.insight-block {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  padding: 0.5rem 0.625rem;
  background: rgba(255,255,255,0.65);
  border-radius: 0.5rem;
  border-left: 3px solid var(--medium-purple);
}

.insight-icon {
  flex: 0 0 1.25rem;
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.4;
}

.insight-text {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--dark-slate);
}

.insight-text strong {
  color: var(--ts-primary);
}

.insight-callout {
  margin-top: 0.625rem;
  padding: 0.625rem;
  background: rgba(255,255,255,0.8);
  border-radius: 0.625rem;
  text-align: center;
}

.callout-stat {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--berry);
  line-height: 1;
}

.callout-label {
  display: block;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--slate);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Green callout variant (CPP Advantage / Net Potential Savings) */
.callout-stat.callout-green { color: #047857; }
.callout-stat.callout-red { color: #B91C1C; }

/* Green opportunity box (below callout on brand slides) */
.insight-opportunity-box {
  margin-top: 0.75rem;
  padding: 0.875rem;
  background: rgba(4, 120, 87, 0.06);
  border: 1px solid rgba(4, 120, 87, 0.2);
  border-radius: 0.625rem;
  text-align: center;
}

.opportunity-stat {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  color: #047857;
  line-height: 1;
}

.opportunity-label {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--slate);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ═══════════════════════════════════════════════════════
   HEATMAP TABLE (Slide 3)
   ═══════════════════════════════════════════════════════ */

/* Portfolio Brand Cards */
.portfolio-section-title {
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--slate);
  margin-bottom: 0.625rem;
}

.portfolio-cards {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 1.125rem;
}

.pf-card-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.portfolio-card {
  flex: 1;
  background: var(--white);
  border: 1px solid var(--soft-blue-gray);
  border-radius: 0.5rem;
  padding: 0.75rem 0.875rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.pf-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.625rem;
  padding-bottom: 0.375rem;
  border-bottom: 2px solid var(--ts-fill);
}

.pf-icon { font-size: 1rem; }

.pf-name {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark-slate);
}

.pf-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.375rem;
  margin-bottom: 0.5rem;
}

.pf-stats-4 {
  grid-template-columns: 1fr 1fr;
}

.pf-stat {
  text-align: center;
  padding: 0.25rem;
  background: var(--light-bg);
  border-radius: 0.25rem;
}

.pf-stat-savings {
  background: rgba(4, 120, 87, 0.06);
}

.pf-stat-savings .pf-stat-val {
  color: #047857;
}

.pf-stat-savings .pf-stat-val.negative {
  color: #B91C1C;
}

.pf-sub-period {
  position: absolute;
  top: 0.15rem;
  right: 0.2rem;
  text-align: right;
  line-height: 1.1;
}
.pf-sub-val {
  font-family: var(--font-heading);
  font-size: 0.55rem;
  font-weight: 700;
  color: #047857;
}
.pf-sub-label {
  display: block;
  font-size: 0.4rem;
  color: #94A3B8;
  font-weight: 400;
}
.pf-footnote {
  font-size: 0.5rem;
  color: #94A3B8;
  margin-top: 0.25rem;
  padding-left: 0.25rem;
}

.pf-stat-val {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--dark-slate);
}

.pf-stat-label {
  font-size: 0.5rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pf-cpa {
  text-align: center;
  margin-bottom: 0.375rem;
}

.pf-cpa-badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.125rem 0.625rem;
  border-radius: 0.625rem;
  background: var(--green-light);
  color: var(--green);
}

.pf-highlight {
  font-size: 0.625rem;
  line-height: 1.4;
  color: var(--slate);
}

.pf-highlight strong {
  color: var(--ts-primary);
}

/* Portfolio opportunity hero */
.pf-opportunity-hero {
  text-align: center;
  padding: 0.5rem 0.25rem;
  margin-bottom: 0.375rem;
  background: rgba(4, 120, 87, 0.06);
  border-radius: 0.375rem;
}

.pf-opportunity-dual {
  display: flex;
  gap: 0.25rem;
}

.pf-opp-col {
  flex: 1;
}

.pf-opp-value {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  color: #047857;
  line-height: 1.2;
}

.pf-opportunity-dual .pf-opp-value {
  font-size: 0.85rem;
}
.pf-opp-value.negative {
  color: #B91C1C;
}

/* Factor INTL — Ads-vs-Spend disparity callout */
.factor-intl-disparity-callout {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, rgba(103,78,167,0.08), rgba(103,78,167,0.03));
  border: 1px solid rgba(103,78,167,0.2);
  border-radius: 0.5rem;
  padding: 0.625rem 1rem;
  margin-bottom: 1rem;
}
.disparity-ratio {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ts-primary);
  white-space: nowrap;
}
.disparity-text {
  font-size: 0.7rem;
  color: var(--slate);
  line-height: 1.4;
}
/* Ads tested column styles */
.hm-ads-tested {
  min-width: 7rem;
}
.hm-ads-share {
  min-width: 4rem;
  text-align: center;
}

.pf-opp-label {
  font-size: 0.4375rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--slate);
}

/* Summary Cards */
.heatmap-summary {
  display: flex;
  gap: 0.625rem;
  margin-bottom: 1rem;
}

.heatmap-summary-card {
  flex: 1;
  background: var(--white);
  border-radius: 0.5rem;
  padding: 0.625rem 0.875rem;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  border: 1px solid var(--soft-blue-gray);
}

.heatmap-summary-card .summary-value {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.2;
}

.heatmap-summary-card .summary-label {
  font-size: 0.5625rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.125rem;
}

.heatmap-summary-card .summary-value.green-value {
  color: var(--green);
}
.heatmap-summary-card .summary-value.red-value {
  color: #EF4444;
}

/* Green variant for Potential Savings card (matches heatmap positive green) */
.heatmap-summary-card.summary-opportunity {
  background: rgba(4, 120, 87, 0.06);
  border: 1px solid rgba(4, 120, 87, 0.2);
}
.heatmap-summary-card.summary-opportunity .summary-value {
  color: #047857;
}
.heatmap-summary-card.summary-opportunity .summary-value.red-value {
  color: #EF4444;
}

/* Table */
.heatmap-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  font-size: 0.6875rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.heatmap-table thead th {
  background: #334155;
  color: #F1F5F9;
  font-family: var(--font-heading);
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.625rem 0.75rem;
  text-align: left;
  border: none;
}

.heatmap-table thead th:not(.hm-th-country) {
  text-align: center;
}

.th-period {
  display: block;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: #CBD5E1;
  margin-top: 3px;
}

.th-period-split {
  display: flex;
  justify-content: space-between;
  padding: 0 0.25rem;
}

.th-split-left {
  color: #DDD6FE;
  font-weight: 700;
}

.th-split-right {
  color: #CBD5E1;
  font-weight: 700;
}

.heatmap-table tbody td {
  padding: 0.4375rem 0.625rem;
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
  text-align: center;
}

.hm-row {
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.hm-row:last-child td {
  border-bottom: none;
}

/* Opportunity highlight */
.hm-opportunity {
  position: relative;
}

.hm-opportunity td:first-child {
  border-left: 3px solid var(--amber);
}

/* Country cell */
.hm-country {
  text-align: left !important;
  white-space: nowrap;
}

.country-code {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--ts-primary);
  font-size: 0.75rem;
  display: inline-block;
  min-width: 1.5rem;
  margin-right: 0.375rem;
}

.country-name {
  color: #94A3B8;
  font-size: 0.625rem;
}

/* Spend cell with stacked bar */
.hm-spend {
  min-width: 7.5rem;
}

.cell-value {
  font-weight: 600;
  color: var(--dark-slate);
  font-size: 0.6875rem;
}

.cell-bar-track {
  height: 0.1875rem;
  background: #F1F5F9;
  border-radius: 0.125rem;
  margin-top: 0.1875rem;
  overflow: hidden;
}

.cell-bar-track.stacked {
  display: flex;
  gap: 1px;
  background: transparent;
}

.cell-bar-fill {
  height: 100%;
  border-radius: 0.125rem;
  transition: width 0.6s ease;
}

.cell-bar-fill.ts-segment {
  background: var(--ts-primary);
  border-radius: 0.125rem 0 0 0.125rem;
}

.cell-bar-fill.nonts-segment {
  background: #94A3B8;
  border-radius: 0 0.125rem 0.125rem 0;
}

.stacked-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.5rem;
  line-height: 1.2;
  margin-top: 0.0625rem;
}

.stacked-ts {
  color: var(--ts-primary);
  font-weight: 600;
}

.stacked-nonts {
  color: #94A3B8;
  font-weight: 600;
}

/* Savings / Opportunity columns */
.hm-savings,
.hm-opp {
  min-width: 3.75rem;
}

.cell-value.positive {
  color: #047857;
  font-weight: 700;
}

.cell-value.negative {
  color: #B91C1C;
  font-weight: 700;
}

/* Sub-period realized savings annotation (DE, AT, YE) */
.sub-period-savings {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-top: 0.2rem;
  line-height: 1.2;
}
.sub-period-savings .positive,
.sub-period-savings .negative {
  font-size: 0.7rem;
  font-weight: 700;
}
.sub-period-savings .positive { color: #047857; }
.sub-period-savings .negative { color: #B91C1C; }
.sub-period-label {
  font-size: 0.55rem;
  color: #94A3B8;
  font-weight: 400;
}
.sub-period-cpa {
  margin-top: 0.1rem;
}
/* Bottom-right triangle indicator for cells with favorable sub-period values */
.has-sub-good {
  position: relative;
}
.has-sub-good::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 0 10px 10px;
  border-color: transparent transparent #047857 transparent;
}
.opp-dash {
  color: #94A3B8 !important;
  font-weight: 400 !important;
  font-size: 1.1rem;
}

/* Opportunity column — larger font for emphasis */
.hm-opp .cell-value {
  font-size: 0.9375rem;
}

/* CPA/CPP delta cell */
.hm-cpa .cell-value {
  font-weight: 700;
}

/* ── Hovered row — 3D convex lift ── */
.hm-row.hm-highlighted {
  position: relative;
  z-index: 2;
  box-shadow:
    0 -2px 4px rgba(103, 78, 167, 0.15),
    0  3px 8px rgba(103, 78, 167, 0.22),
    inset 0  2px 3px rgba(255, 255, 255, 0.45),
    inset 0 -1px 2px rgba(0, 0, 0, 0.06);
  transform: scale(1.008);
}
.hm-row.hm-highlighted td {
  border-bottom-color: transparent;
}
.hm-row.hm-highlighted.hm-opportunity td:first-child {
  box-shadow: inset 3px 0 0 var(--amber);
}

/* Legend */
.heatmap-legend {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.625rem;
  color: #94A3B8;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.3125rem;
}

.legend-swatch {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 0.1875rem;
  display: inline-block;
}

.legend-dot.opportunity {
  width: 0.1875rem;
  height: 0.75rem;
  border-radius: 0.125rem;
  background: var(--amber);
  display: inline-block;
}

/* Tooltip */
.heatmap-tooltip {
  position: absolute;
  z-index: 100;
  background: var(--dark-slate);
  color: var(--white);
  padding: 0.625rem 0.875rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.5;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
  white-space: normal;
  width: 320px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.tt-chart-wrap {
  width: 280px;
  height: 140px;
  margin: 0.375rem auto;
}
.tt-chart-wrap.hidden { display: none; }

.heatmap-tooltip.visible { opacity: 1; }

.heatmap-tooltip .tt-title {
  font-weight: 700;
  font-family: var(--font-heading);
  margin-bottom: 0.25rem;
}

.heatmap-tooltip .tt-metric {
  font-size: 0.6875rem;
  color: var(--soft-blue-gray);
}

.heatmap-tooltip .tt-insight {
  font-size: 0.75rem;
  color: var(--white);
  line-height: 1.4;
  margin-bottom: 0.375rem;
  font-weight: 500;
}

.heatmap-tooltip .tt-stats {
  font-size: 0.625rem;
  color: var(--soft-blue-gray);
  opacity: 0.8;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 0.25rem;
}

/* Placeholder for Slide 3 */
.placeholder-message {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--slate);
  text-align: center;
  padding: 2.5rem;
  line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION DOTS
   ═══════════════════════════════════════════════════════ */
.nav-dots {
  position: fixed;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  z-index: 1000;
}

.nav-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--medium-gray);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
  opacity: 0.5;
}

.nav-dot:hover { opacity: 0.8; transform: scale(1.3); }

.nav-dot.active {
  background: var(--navy);
  opacity: 1;
  transform: scale(1.3);
}

/* Cover slide: light dots */
.nav-dots.on-dark .nav-dot { background: rgba(255,255,255,0.4); }
.nav-dots.on-dark .nav-dot.active { background: var(--white); }

/* Nav dot tooltip (hover) */
.nav-dot-tooltip {
  position: fixed;
  z-index: 1001;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 0.3rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s;
  backdrop-filter: blur(4px);
}
.nav-dot-tooltip.visible { opacity: 1; }

/* Nav dot persistent labels (shown during scroll) */
.nav-dot-label {
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  color: #fff;
  background: rgba(0,0,0,0.7);
  padding: 0.2rem 0.5rem;
  border-radius: 0.25rem;
  backdrop-filter: blur(4px);
}
.nav-dots.on-dark .nav-dot-label { color: #fff; }
.nav-dots.show-labels .nav-dot-label { opacity: 1; }
.nav-dot { position: relative; }

/* ═══════════════════════════════════════════════════════
   STRATEGY SLIDE (Slide 4)
   ═══════════════════════════════════════════════════════ */
.strategy-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem 2.25rem 1rem;
  background: linear-gradient(180deg, var(--white) 0%, #F8F7FC 100%);
}

.strategy-intro {
  max-width: 50rem;
  margin: 0 auto 1.375rem;
  text-align: center;
}

.strategy-intro p {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--slate);
}

.strategy-intro strong {
  color: var(--ts-primary);
}

.strategy-columns {
  display: flex;
  gap: 1.75rem;
  max-width: 68.75rem;
  margin: 0 auto;
}

.strategy-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.strategy-col-header {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 0.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--ts-primary);
}

.strategy-col-icon {
  font-size: 1.125rem;
}

.strategy-col-header h3 {
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--ts-primary);
}

.blocker-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--white);
  border: 1px solid var(--soft-blue-gray);
  border-radius: 0.5rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.5s ease var(--delay, 0s), transform 0.5s ease var(--delay, 0s);
}

.slide.active .blocker-card {
  opacity: 1;
  transform: translateY(0);
}

.blocker-card:hover {
  border-color: var(--ts-fill);
  box-shadow: 0 2px 10px rgba(103, 78, 167, 0.1);
}

.blocker-number {
  flex: 0 0 1.75rem;
  height: 1.75rem;
  background: var(--ts-fill);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-top: 1px;
}

.blocker-content h4 {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark-slate);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.blocker-content p {
  font-size: 0.72rem;
  line-height: 1.5;
  color: var(--slate);
}

.blocker-content strong {
  color: var(--ts-primary);
  font-weight: 700;
}

.blocker-content em {
  font-style: italic;
}

.strategy-cta {
  display: flex;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--lavender-light);
  border: 2px solid var(--ts-fill);
  border-radius: 0.625rem;
  margin-top: 0.25rem;
  opacity: 0;
  transform: translateY(0.75rem);
  transition: opacity 0.6s ease 0.5s, transform 0.6s ease 0.5s;
}

.slide.active .strategy-cta {
  opacity: 1;
  transform: translateY(0);
}

.cta-icon {
  font-size: 1.25rem;
  flex: 0 0 auto;
}

.cta-text {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--dark-slate);
}

.cta-text strong {
  color: var(--ts-primary);
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */

/* Large viewport: scale chart containers with viewport height */
@media (min-width: 1600px) {
  .combo-chart-wrap {
    height: max(9.375rem, 14vh);
  }
  .donut-wrap {
    width: max(10rem, 14vh);
    height: max(10rem, 14vh);
  }
  .card-donut {
    flex: 0 0 max(13.75rem, 19vh);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 16px;  /* Lock to base on mobile */
  }
  .slide-body {
    flex-direction: column;
  }
  .data-panel,
  .insights-panel {
    width: 100%;
  }
  .insights-panel {
    border-left: none;
    border-top: 1px solid rgba(0,0,0,0.06);
  }
}

/* ═══════════════════════════════════════════════════════
   EDITABLE INSIGHTS — visual affordance
   ═══════════════════════════════════════════════════════ */
[data-edit-key] {
  cursor: default;
}

/* ── Portfolio fee toggle positioning ── */
.pf-fee-toggle { position: static; margin-left: auto; }

/* ── Campaign mode toggle (inline, same style as media-toggle) ── */
.campaign-toggle {
  display: inline-flex;
  border: 1px solid #CBD5E1;
  border-radius: 5px;
  overflow: hidden;
  font-size: 0.55rem;
  margin-left: 0.6rem;
  vertical-align: middle;
  position: relative;
  top: -0.05rem;
}
