/* ==========================================================================
   GROWWISE RESEARCH - COMPONENTS & INTERACTIVE UI
   Crafted with inspirations from Corelystic & Convertex UI
   ========================================================================== */

/* Buttons & Triggers */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  background: transparent;
  color: var(--color-ink-primary);
}

.btn-primary {
  background: var(--color-brand-navy);
  color: #FFFFFF;
  border-color: var(--color-brand-navy);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #0d2745;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-teal {
  background: var(--color-brand-teal);
  color: #FFFFFF;
}

.btn-teal:hover {
  background: var(--color-brand-teal-dark);
  transform: translateY(-1px);
}

.btn-subtle {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-ink-secondary);
}

.btn-subtle:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-border-medium);
  color: var(--color-ink-primary);
}

.btn-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* Badges & Pills - Subtle Monochrome Outlines */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  line-height: 1;
  background: transparent;
  border: 1px solid var(--color-border-medium);
  color: var(--color-ink-secondary);
}

.pill-teal {
  background: var(--color-brand-teal-light);
  border: 1px solid rgba(13, 148, 136, 0.25);
  color: var(--color-brand-teal-dark);
}

[data-theme="dark"] .pill-teal {
  background: rgba(13, 148, 136, 0.2);
  border-color: rgba(13, 148, 136, 0.4);
  color: #5EEAD4;
}

.pill-rose {
  background: var(--color-brand-rose-light);
  border: 1px solid rgba(225, 29, 72, 0.25);
  color: #BE123C;
}

[data-theme="dark"] .pill-rose {
  background: rgba(225, 29, 72, 0.2);
  border-color: rgba(225, 29, 72, 0.4);
  color: #FDA4AF;
}

.pill-amber {
  background: var(--color-brand-amber-light);
  border: 1px solid rgba(217, 119, 6, 0.25);
  color: #B45309;
}

[data-theme="dark"] .pill-amber {
  background: rgba(217, 119, 6, 0.2);
  border-color: rgba(217, 119, 6, 0.4);
  color: #FCD34D;
}

.pill-gray {
  background: var(--color-paper-subtle);
  border: 1px solid var(--color-border-subtle);
  color: var(--color-ink-secondary);
}

/* KPI Summary Cards (From Corelystic/Convertex inspiration) */
.kpi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-medium);
}

.kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.kpi-title {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink-secondary);
}

.kpi-icon-badge {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.kpi-value {
  font-family: var(--font-sans);
  font-size: var(--text-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--color-ink-primary);
  line-height: 1.1;
  margin-bottom: 0.4rem;
}

.kpi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.kpi-sparkline-canvas {
  width: 75px;
  height: 24px;
}

/* Interactive Chart Card Container */
.chart-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  position: relative;
}

@media (max-width: 640px) {
  .chart-card {
    padding: 1rem 0.85rem;
    border-radius: var(--radius-lg);
  }
}

.chart-top-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border-subtle);
  padding-bottom: 1rem;
}

@media (min-width: 768px) {
  .chart-top-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.chart-title-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.chart-title {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-ink-primary);
  letter-spacing: -0.015em;
}

.chart-caption {
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}

/* Tab Switcher for Chart Views */
.chart-tabs {
  display: inline-flex;
  background: var(--color-paper-subtle);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-subtle);
}

.chart-tab-btn {
  padding: 0.4rem 0.85rem;
  font-size: var(--text-xs);
  font-weight: 600;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--color-ink-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.chart-tab-btn.active {
  background: var(--color-surface);
  color: var(--color-ink-primary);
  box-shadow: var(--shadow-xs);
}

/* SVG Chart Canvas & Tooltip */
.chart-svg-container {
  width: 100%;
  position: relative;
  overflow: visible;
  touch-action: pan-y;
}

.chart-svg {
  width: 100%;
  height: 340px;
  display: block;
}

@media (max-width: 640px) {
  .chart-svg {
    height: 260px;
  }
}

/* Floating interactive tooltip */
.chart-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(18, 22, 26, 0.94);
  color: #FFFFFF;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 50;
  transform: translate(-50%, -110%);
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

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

.tooltip-year {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #CBD5E1;
  margin-bottom: 0.2rem;
}

.tooltip-metric-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  line-height: 1.4;
}

.tooltip-milestone {
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-style: italic;
  color: #5EEAD4;
  font-size: 0.72rem;
}

/* Scrubber Timeline Bar */
.timeline-scrubber-box {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.scrubber-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-xs);
  color: var(--color-ink-muted);
}

.scrubber-slider {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 4px;
  background: var(--color-paper-subtle);
  outline: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.scrubber-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-brand-teal);
  border: 3px solid var(--color-surface);
  box-shadow: var(--shadow-md);
  cursor: grab;
  transition: transform var(--transition-fast);
}

.scrubber-slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.scrubber-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--color-brand-teal);
  border: 3px solid var(--color-surface);
  box-shadow: var(--shadow-md);
  cursor: grab;
}

.scrubber-milestone-callout {
  background: var(--color-paper-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: var(--text-xs);
  border-left: 3px solid var(--color-brand-amber);
}

/* Multi-Channel Comparison Matrix */
.channels-matrix-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.channel-row {
  display: grid;
  grid-template-columns: 180px 1fr 85px;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

@media (max-width: 600px) {
  .channel-row {
    grid-template-columns: 120px 1fr 70px;
    gap: 0.5rem;
  }
}

.channel-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-ink-primary);
}

.channel-bar-wrap {
  width: 100%;
  height: 8px;
  background: var(--color-paper-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

.channel-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  opacity: 0.9;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="dark"] .channel-bar-fill {
  opacity: 0.85;
  filter: brightness(1.15);
}

.channel-stat {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  text-align: right;
  color: var(--color-ink-primary);
}

/* Simulator Controls & Output Card - Refined & Clean */
.sim-controls-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.sim-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sim-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  font-weight: 600;
}

.sim-input-select {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-medium);
  background: var(--color-paper-base);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-ink-primary);
  outline: none;
}

.sim-results-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}

.sim-kpi-block {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.sim-kpi-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink-muted);
}

.sim-kpi-val {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-ink-primary);
}

.sim-recommendation-box {
  background: var(--color-paper-subtle);
  border-left: 3px solid var(--color-border-medium);
  padding: 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: var(--text-xs);
  line-height: 1.5;
  color: var(--color-ink-secondary);
}

/* Strategic Imperatives Cards */
.imperative-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.imperative-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.imperative-num {
  font-family: var(--font-editorial);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1;
  color: var(--color-ink-primary);
  opacity: 0.35;
}

.imperative-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-ink-primary);
}

.imperative-desc {
  font-size: var(--text-sm);
  color: var(--color-ink-secondary);
  line-height: 1.55;
}

/* Pullquote & Margin Note */
.editorial-pullquote {
  margin: var(--space-8) 0;
  padding: var(--space-6) var(--space-8);
  border-left: 3px solid var(--color-ink-primary);
  background: var(--color-paper-subtle);
  font-family: var(--font-editorial);
  font-size: var(--text-xl);
  line-height: 1.4;
  font-style: italic;
  color: var(--color-ink-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.margin-note-inline {
  display: inline-block;
  background: var(--color-brand-teal-light);
  color: var(--color-brand-teal-dark);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin: 0 0.2rem;
}

/* Toast Notifications */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--color-brand-navy);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  z-index: 3000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   GROWWISE RESEARCH - MCKINSEY-STYLE EDITORIAL BENTO GRID & LANDING PAGE
   ========================================================================== */
.landing-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.landing-hero-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.landing-title {
  font-family: var(--font-editorial);
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--color-ink-primary);
  margin: 0 0 1rem;
}

.landing-deck {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  line-height: 1.65;
  color: var(--color-ink-secondary);
  max-width: 640px;
  margin: 0 auto 2rem;
}

/* Minimalist Filter Navigation */
.landing-filters-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding-bottom: 0.25rem;
}

@media (max-width: 640px) {
  .landing-filters-row {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 0.25rem 0.5rem 0.5rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .landing-filters-row::-webkit-scrollbar {
    display: none;
  }
}

.landing-filter-pill {
  padding: 0.4rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-medium);
  background: var(--color-surface);
  color: var(--color-ink-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.landing-filter-pill:hover {
  border-color: var(--color-ink-primary);
  color: var(--color-ink-primary);
}

.landing-filter-pill.active {
  background: var(--color-ink-primary);
  color: var(--color-surface);
  border-color: var(--color-ink-primary);
}

/* Bento Grid System */
.bento-grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.75rem;
  margin-top: 1rem;
  margin-bottom: 4rem;
}

/* Bento Card Anchor Reset */
a.bento-card,
a.bento-card:link,
a.bento-card:visited,
a.bento-card:hover,
a.bento-card:active {
  text-decoration: none !important;
  color: inherit !important;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: 16px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  cursor: pointer;
}

a.bento-card * {
  text-decoration: none !important;
}

a.bento-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-ink-primary);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] a.bento-card {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] a.bento-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.6);
}

.bento-card-featured {
  grid-column: span 12;
}

@media (min-width: 960px) {
  .bento-card-featured {
    grid-column: span 8;
  }
  .bento-card-secondary {
    grid-column: span 4;
  }
}

@media (max-width: 959px) {
  .bento-card-featured,
  .bento-card-secondary {
    grid-column: span 12;
  }
}

/* Card Kicker & Meta */
.bento-kicker-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
  margin-bottom: 1.1rem;
}

.bento-kicker-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-primary);
  border-bottom: 1px solid var(--color-ink-primary);
  padding-bottom: 1px;
}

.bento-title {
  font-family: var(--font-editorial);
  font-size: clamp(1.45rem, 2.2vw, 1.95rem);
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-ink-primary) !important;
  margin: 0 0 0.85rem;
  transition: color var(--transition-fast);
}

.bento-card-featured .bento-title {
  font-size: clamp(1.75rem, 2.8vw, 2.35rem);
  line-height: 1.2;
}

a.bento-card:hover .bento-title {
  color: var(--color-ink-primary) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1.5px !important;
  text-underline-offset: 4px !important;
}

[data-theme="dark"] a.bento-card:hover .bento-title {
  color: #FFFFFF !important;
}

.bento-deck {
  font-size: clamp(0.88rem, 1vw, 0.98rem);
  line-height: 1.6;
  color: var(--color-ink-secondary) !important;
  margin: 0 0 1.5rem;
}

/* Clean Editorial Metrics */
.bento-metrics-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  padding: 1.25rem 0;
  margin: 1.25rem 0;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

@media (max-width: 480px) {
  .bento-metrics-row {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

.bento-metric-val {
  font-family: var(--font-sans);
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--color-ink-primary) !important;
  letter-spacing: -0.02em;
}

.bento-metric-delta {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-ink-muted);
  margin-left: 0.35rem;
  letter-spacing: 0;
}

.bento-metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink-muted) !important;
  margin-top: 0.35rem;
}

/* Card Footer: Authors & Action */
.bento-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-subtle);
}

.bento-authors {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.bento-avatar-stack {
  display: flex;
}

.bento-avatar-stack .author-avatar {
  margin-right: -0.4rem;
  width: 28px;
  height: 28px;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: var(--color-paper-subtle);
  color: var(--color-ink-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-surface);
}

.bento-author-names {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-ink-primary) !important;
}

.bento-read-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-ink-primary) !important;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform var(--transition-fast);
}

a.bento-card:hover .bento-read-link {
  transform: translateX(4px);
}

/* Clean Delta Indicators (Zero pill shapes) */
.kpi-delta {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.kpi-delta.rose { color: #E11D48; }
.kpi-delta.teal { color: #0D9488; }
.kpi-delta.amber { color: #D97706; }
.kpi-delta.gray { color: var(--color-ink-muted); }

/* Editorial Exhibit Container */
.editorial-exhibit {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: var(--space-8) 0;
  box-shadow: var(--shadow-sm);
  position: relative;
}

@media (max-width: 640px) {
  .editorial-exhibit {
    padding: 1.15rem 1rem;
    border-radius: var(--radius-md);
  }
}

.exhibit-header {
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.exhibit-num {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-ink-muted);
  margin-bottom: 0.35rem;
}

.exhibit-title {
  font-family: var(--font-sans);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--color-ink-primary);
  letter-spacing: -0.015em;
  margin: 0 0 0.35rem;
}

.exhibit-subtitle {
  font-size: var(--text-xs);
  color: var(--color-ink-secondary);
  line-height: 1.55;
  margin: 0;
}

.exhibit-footer {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--color-ink-muted);
}

/* Exhibit Segmented Tabs (Clean flat buttons, NO pills) */
.exhibit-tabs-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.exhibit-tab-btn {
  background: var(--color-paper-subtle);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-ink-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.exhibit-tab-btn:hover {
  background: var(--color-border-subtle);
  color: var(--color-ink-primary);
}

.exhibit-tab-btn.active {
  background: var(--color-ink-primary);
  color: var(--color-surface);
  border-color: var(--color-ink-primary);
}

/* Exhibit Chart Canvas Wrappers */
.exhibit-chart-canvas {
  width: 100%;
  position: relative;
}

.exhibit-svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Comparative Dual Column Visualizer */
.dual-chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .dual-chart-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.chart-sub-panel {
  background: var(--color-paper-base);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.chart-sub-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-ink-primary);
  margin-bottom: 0.25rem;
}

.chart-sub-desc {
  font-size: 0.72rem;
  color: var(--color-ink-muted);
  margin-bottom: 1rem;
}

/* Funnel Flow Architecture Cards */
.funnel-flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 768px) {
  .funnel-flow-grid {
    grid-template-columns: 1fr;
  }
}

.funnel-flow-col {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  background: var(--color-paper-base);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.funnel-flow-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.funnel-flow-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-ink-primary);
}

.funnel-flow-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-ink-muted);
}

.funnel-flow-steps {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.funnel-bar-step {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  position: relative;
  overflow: hidden;
}

.funnel-bar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-ink-primary);
  margin-bottom: 0.35rem;
}

.funnel-bar-track {
  height: 6px;
  background: var(--color-border-subtle);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.funnel-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.funnel-bar-sub {
  font-size: 0.7rem;
  color: var(--color-ink-muted);
  margin-top: 0.3rem;
}

.funnel-flow-col.ai-col {
  border-color: rgba(13, 148, 136, 0.4);
}

/* Interactive Budget Shift Simulator */
.budget-shift-wrap {
  margin-top: 1rem;
}

.budget-shift-controls {
  margin-bottom: 1.25rem;
}

.budget-shift-slider-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-ink-primary);
}

.budget-shift-display-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-brand-teal);
  font-family: var(--font-sans);
}

.budget-shift-bars-comparison {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 1.25rem 0;
}

.shift-bar-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.shift-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-ink-primary);
}

.shift-bar-track {
  height: 28px;
  background: var(--color-paper-subtle);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.shift-bar-fill {
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FFFFFF;
  transition: width 0.4s ease;
}

.budget-shift-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-subtle);
}

@media (max-width: 640px) {
  .budget-shift-metrics-grid {
    grid-template-columns: 1fr;
  }
}

.shift-metric-box {
  background: var(--color-paper-base);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.shift-metric-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-ink-muted);
  margin-bottom: 0.25rem;
}

.shift-metric-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-ink-primary);
}

/* ============================================================
   EXHIBIT 3: Dual Funnel Visualization
   ============================================================ */

.funnel-visual-wrap {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Column header row above SVG */
.funnel-col-headers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.funnel-col-head {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-subtle);
  background: var(--color-paper-subtle);
}

.funnel-head-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-ink-primary);
  font-family: var(--font-sans);
}

.funnel-head-badge {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-family: var(--font-sans);
}

.funnel-head-badge.red-badge {
  color: #E11D48;
}

.funnel-head-badge.teal-badge {
  color: #0D9488;
}

/* SVG funnel container */
.funnel-svg-wrap {
  width: 100%;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--color-paper-subtle);
  border: 1px solid var(--color-border-subtle);
}

.funnel-svg {
  width: 100%;
  display: block;
}

/* CAC comparison bar chart below SVG */
.funnel-cac-comparison {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1rem 1.25rem;
  background: var(--color-paper-subtle);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
}

.funnel-cac-row {
  display: grid;
  grid-template-columns: 160px 1fr 80px;
  align-items: center;
  gap: 0.75rem;
}

.funnel-cac-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--color-ink-secondary);
  font-family: var(--font-sans);
  white-space: nowrap;
}

.funnel-cac-bar-wrap {
  height: 18px;
  background: var(--color-paper-base);
  border-radius: 3px;
  overflow: hidden;
  border: 1px solid var(--color-border-subtle);
}

.funnel-cac-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.funnel-cac-val {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--color-ink-primary);
  text-align: right;
  font-family: var(--font-sans);
  white-space: nowrap;
}

/* Stage annotation comparison table */
.funnel-stage-table {
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: var(--font-sans);
}

.funnel-stage-header {
  display: grid;
  grid-template-columns: 130px 1fr 1fr;
  gap: 0;
  background: var(--color-paper-subtle);
  border-bottom: 1px solid var(--color-border-medium);
  padding: 0.5rem 1rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--color-ink-muted);
}

.funnel-stage-header span:nth-child(2) {
  color: var(--color-ink-secondary);
}

.funnel-stage-header span:nth-child(3) {
  color: #0D9488;
}

.funnel-stage-row {
  display: grid;
  grid-template-columns: 130px 1fr 1fr;
  gap: 0;
  padding: 0.55rem 1rem;
  font-size: 0.78rem;
  color: var(--color-ink-secondary);
  border-bottom: 1px solid var(--color-border-subtle);
  align-items: center;
}

.funnel-stage-row:last-child {
  border-bottom: none;
}

.funnel-stage-row span:first-child {
  font-weight: 700;
  color: var(--color-ink-primary);
}

.funnel-stage-row span:nth-child(3) {
  color: #0D9488;
}

@media (max-width: 640px) {
  .funnel-col-headers {
    grid-template-columns: 1fr;
  }
  .funnel-cac-row {
    grid-template-columns: 120px 1fr 64px;
  }
  .funnel-stage-header,
  .funnel-stage-row {
    grid-template-columns: 90px 1fr 1fr;
    font-size: 0.72rem;
  }
}

/* ============================================================
   EXHIBIT 3: 3-Column Funnel — Triple Grid & Label Boxes
   ============================================================ */

/* Outer 3-column layout: trad-labels | SVG | ai-labels */
.funnel-triple-grid {
  display: grid;
  grid-template-columns: 1fr 180px 1fr;
  gap: 0;
  background: var(--color-paper-subtle);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

/* SVG center column */
.funnel-svg-col {
  background: var(--color-paper-base);
  border-left: 1px solid var(--color-border-subtle);
  border-right: 1px solid var(--color-border-subtle);
  flex-shrink: 0;
}

/* Label column (shared) */
.funnel-lbl-col {
  display: flex;
  flex-direction: column;
}

/* Individual label box */
.flb-box {
  height: 82px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 0.9rem;
  border-bottom: 1px solid var(--color-border-subtle);
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
  transform-origin: center;
  cursor: default;
}

.flb-box:last-child {
  border-bottom: none;
}

/* Traditional side — right-aligned, right border accent */
.flb-trad {
  text-align: right;
  border-right: 2.5px solid #334155;
}

/* AI side — left-aligned, left border accent */
.flb-ai {
  text-align: left;
  border-left: 2.5px solid #0D9488;
}

/* Label text hierarchy */
.flb-name {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-ink-primary);
  font-family: var(--font-sans);
  line-height: 1.3;
}

.flb-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--color-ink-secondary);
  font-family: var(--font-sans);
  margin-top: 0.15rem;
  line-height: 1.25;
}

.flb-note {
  font-size: 0.65rem;
  color: var(--color-ink-muted);
  font-family: var(--font-sans);
  margin-top: 0.2rem;
  line-height: 1.3;
}

/* SVG paths — smooth hover transitions */
.fsg-path {
  transition: filter 0.2s ease, transform 0.2s ease;
  transform-box: fill-box;
  transform-origin: center;
}

/* Responsive: collapse to single column on small screens */
@media (max-width: 680px) {
  .funnel-triple-grid {
    grid-template-columns: 1fr;
  }
  .funnel-svg-col {
    order: -1;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid var(--color-border-subtle);
  }
  .funnel-lbl-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .flb-box {
    height: auto;
    min-height: 64px;
    padding: 0.6rem 0.75rem;
    border-right: none;
    border-left: none;
    text-align: left;
  }
  .flb-trad {
    border-bottom: 2px solid #334155;
  }
  .flb-ai {
    border-bottom: 2px solid #0D9488;
  }
}
