/* ==========================================================================
   Veridex Executive Pitch Deck
   Flat High-Contrast Executive Palette, Strict 100vh Fit, A4 Landscape Print
   ========================================================================== */

:root {
  --blue: #1D4ED8;
  --blue-dark: #1E40AF;
  --blue-tint: #EFF6FF;
  --blue-border: #BFDBFE;

  --teal: #0F766E;
  --teal-bright: #0891B2;
  --teal-tint: #F0FDFA;
  --teal-border: #99F6E4;

  --amber: #D97706;
  --coral: #EA580C;
  --amber-tint: #FFFBEB;
  --amber-border: #FDE68A;
  --coral-tint: #FFF7ED;
  --coral-border: #FDBA74;

  --emerald: #047857;
  --emerald-tint: #ECFDF5;
  --emerald-border: #A7F3D0;

  --rose: #BE123C;
  --rose-tint: #FFF1F2;
  --rose-border: #FECDD3;

  --ink: #0F172A;
  --ink-2: #334155;
  --ink-3: #64748B;
  --line: #D8E1EC;
  --line-strong: #CBD5E1;
  --surface: #F8FAFC;
  --white: #FFFFFF;

  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;

  --nav-height: 52px;
  --footer-height: 42px;
  --radius-sm: 6px;
  --radius-md: 10px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

body:not(.overview-mode) {
  overflow: hidden;
  height: 100vh;
}

/* ==========================================================================
   Top Navigation Bar
   ========================================================================== */
.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  z-index: 100;
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--blue);
  display: grid;
  place-items: center;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nav-pills {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-pills::-webkit-scrollbar {
  display: none;
}

.nav-pill {
  border: none;
  background: transparent;
  color: var(--ink-3);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
}

.nav-pill:hover {
  color: var(--ink);
  background: var(--surface);
}

.nav-pill.active {
  background: var(--blue-tint);
  color: var(--blue);
}

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

.view-toggle {
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.view-toggle:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.view-toggle.is-overview {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.progress-track {
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line);
  z-index: 99;
}

.progress-fill {
  height: 100%;
  width: 14.28%;
  background: var(--blue);
  transition: width 0.22s ease;
}

/* ==========================================================================
   Deck Stage & Strict 100vh Slide Fit
   ========================================================================== */
.deck-stage {
  padding-top: calc(var(--nav-height) + 2px);
}

body:not(.overview-mode) .slide {
  display: none;
  height: calc(100vh - var(--nav-height) - var(--footer-height) - 2px);
  padding: 14px 26px;
  overflow: hidden;
}

body:not(.overview-mode) .slide.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.overview-mode .slide {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 26px;
  border-bottom: 1px solid var(--line);
}

body.overview-mode .deck-controls,
body.overview-mode .progress-track {
  display: none;
}

.slide-inner {
  width: 100%;
  max-width: 1230px;
  margin: 0 auto;
}

/* Clean Bright Flat Slide Canvases */
.slide--hero           { background: #FFFFFF; }
.slide--market         { background: #FCFBF8; }
.slide--gaps           { background: #F8FAFC; }
.slide--solution       { background: #F5F9FF; }
.slide--responsibility { background: #F4FAF8; }
.slide--trust          { background: #F7F9FC; }
.slide--pilot          { background: #FFFFFF; }

/* ==========================================================================
   Typography & Common Elements
   ========================================================================== */
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.kicker--blue    { color: var(--blue); }
.kicker--coral   { color: var(--coral); }
.kicker--rose    { color: var(--rose); }
.kicker--teal    { color: var(--teal); }
.kicker--emerald { color: var(--emerald); }

.slide-title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.25vw, 29px);
  font-weight: 800;
  line-height: 1.13;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 5px;
}

.slide-subtitle {
  font-size: clamp(12.5px, 1.02vw, 14px);
  line-height: 1.42;
  color: var(--ink-2);
  max-width: 880px;
  margin: 0 0 14px;
}

.accent-blue { color: var(--blue); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12.5px;
  padding: 9px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
}

.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); }

.btn--secondary { background: var(--white); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--blue); color: var(--blue); }

.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2.5px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.tag--blue    { background: var(--blue-tint); color: var(--blue); border: 1px solid var(--blue-border); }
.tag--teal    { background: var(--teal-tint); color: var(--teal); border: 1px solid var(--teal-border); }
.tag--amber   { background: var(--amber-tint); color: #92400E; border: 1px solid var(--amber-border); }
.tag--emerald { background: var(--emerald-tint); color: var(--emerald); border: 1px solid var(--emerald-border); }
.tag--rose    { background: var(--rose-tint); color: var(--rose); border: 1px solid var(--rose-border); }

/* ==========================================================================
   Slide 1: Executive Title Slide
   ========================================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 32px;
  align-items: center;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.3vw, 42px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.hero-lead {
  font-size: clamp(13.5px, 1.18vw, 15.5px);
  line-height: 1.52;
  color: var(--ink-2);
  margin: 0 0 18px;
}

.hero-pillars-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
}

.pillar-card--teal  { border-left-color: var(--teal-bright); }
.pillar-card--amber { border-left-color: var(--amber); }

.pillar-card h4 {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  margin: 0 0 3px;
  color: var(--ink);
}

.pillar-card p {
  font-size: 12px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.4;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-note {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink-3);
}

/* ==========================================================================
   Slide 2: Market Problem + 4 Verified KPIs + Local Velocity + Chart 1
   ========================================================================== */
.market-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  align-items: stretch;
}

.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.kpi-card {
  padding: 11px 12px;
  border-top: 3px solid var(--coral);
}

.kpi-card--blue    { border-top-color: var(--blue); }
.kpi-card--amber   { border-top-color: var(--amber); }
.kpi-card--rose    { border-top-color: var(--rose); }

.kpi-num {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.1;
  margin-bottom: 3px;
}

.kpi-text {
  font-size: 11.5px;
  line-height: 1.38;
  color: var(--ink-2);
  margin: 0 0 5px;
}

.kpi-src {
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: var(--ink-3);
}

.velocity-box {
  background: var(--blue-tint);
  border: 1px solid var(--blue-border);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}

.velocity-box h4 {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 800;
  color: var(--blue-dark);
  margin: 0 0 2px;
}

.velocity-box p {
  margin: 0;
  font-size: 11.5px;
  color: var(--ink-2);
  line-height: 1.38;
}

.chart-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chart-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 800;
  margin: 0 0 2px;
}

.chart-subtitle {
  font-size: 11.5px;
  color: var(--ink-3);
  margin: 0 0 8px;
}

.chart-canvas-wrap {
  position: relative;
  height: 245px;
  width: 100%;
}

.chart-canvas-wrap--resp {
  height: 265px;
}

.chart-print-img {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.chart-footnote {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
  font-size: 10.5px;
  color: var(--ink-3);
  line-height: 1.35;
}

/* ==========================================================================
   Slide 3: Cons of Existing Approaches + Enforcement Reality
   ========================================================================== */
.cons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.con-card {
  border-top: 4px solid var(--rose);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.con-card--amber { border-top-color: var(--coral); }
.con-card--slate { border-top-color: var(--ink); }

.con-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  margin: 0;
}

.con-card p {
  font-size: 12.5px;
  line-height: 1.44;
  color: var(--ink-2);
  margin: 0;
}

.con-bullets {
  margin: 2px 0 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.4;
}

.enforcement-box {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 15px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.enforcement-item {
  border-left: 3px solid var(--amber);
  padding-left: 12px;
}

.enforcement-item--teal {
  border-left-color: var(--teal-bright);
}

.enforcement-item h4 {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--white);
}

.enforcement-item p {
  margin: 0;
  font-size: 12px;
  color: #CBD5E1;
  line-height: 1.42;
}

/* ==========================================================================
   Slide 4: Workflow SVG + Interactive Executive Triage Preview
   ========================================================================== */
.workflow-diagram {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  margin-bottom: 10px;
}

.workflow-svg {
  width: 100%;
  height: auto;
  display: block;
}

.triage-widget {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.triage-topbar {
  background: var(--surface);
  padding: 7px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.triage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.triage-tab {
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.triage-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.triage-body {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 12px;
  padding: 10px 12px;
}

.doc-preview-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.doc-preview-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.doc-file-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink);
}

.overlay-toggle-btn {
  border: 1px solid var(--blue);
  background: var(--blue-tint);
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.overlay-toggle-btn.off {
  border-color: var(--line-strong);
  background: var(--white);
  color: var(--ink-3);
}

.mock-doc-canvas {
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  padding: 10px 11px;
  font-size: 10.5px;
}

.mock-doc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1.5px solid var(--ink);
  padding-bottom: 4px;
  margin-bottom: 5px;
}

.mock-doc-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
}

.mock-doc-meta {
  display: flex;
  justify-content: space-between;
  color: var(--ink-2);
  font-size: 10px;
  margin-bottom: 4px;
}

.mock-doc-account {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink);
  margin-bottom: 5px;
}

.mock-doc-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 5px;
}

.mock-doc-table th, .mock-doc-table td {
  text-align: left;
  padding: 3.5px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
}

.mock-doc-table th:last-child, .mock-doc-table td:last-child {
  text-align: right;
  font-family: var(--font-mono);
}

.mock-doc-total {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 11px;
  padding-top: 4px;
  border-top: 1px solid var(--ink);
}

/* DOM-Anchored Highlights */
.doc-region {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 4px;
  border: 1.5px solid var(--region-color);
  background: var(--region-bg);
  border-radius: 4px;
  cursor: pointer;
  vertical-align: middle;
}

.doc-region.is-selected {
  outline: 2px solid var(--region-color);
  outline-offset: 1px;
}

.doc-region-tag {
  font-family: var(--font-sans);
  font-size: 8.5px;
  font-weight: 800;
  color: var(--white);
  padding: 1px 4px;
  border-radius: 3px;
  white-space: nowrap;
}

.mock-doc-canvas.overlays-hidden .doc-region {
  border-color: transparent;
  background: transparent;
  outline: none;
  padding: 0;
  cursor: default;
}

.mock-doc-canvas.overlays-hidden .doc-region-tag {
  display: none;
}

.highlight-inspector {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 9px;
  font-size: 10.8px;
  color: var(--ink);
  line-height: 1.35;
}

.triage-summary-grid {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.triage-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: 5px;
  padding: 6px 9px;
  font-size: 11px;
  line-height: 1.36;
  color: var(--ink);
}

.triage-block--amber   { background: var(--amber-tint); border-color: var(--amber-border); border-left-color: var(--amber); color: #78350F; }
.triage-block--emerald { background: var(--emerald-tint); border-color: var(--emerald-border); border-left-color: var(--emerald); color: #065F46; }
.triage-block--coral   { background: var(--coral-tint); border-color: var(--coral-border); border-left-color: var(--coral); color: #7C2D12; }

.triage-block-label {
  display: block;
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.triage-block ul {
  margin: 0;
  padding-left: 15px;
}

/* ==========================================================================
   Slide 5: Division of Responsibility + Chart 2
   ========================================================================== */
.split-layout {
  display: grid;
  grid-template-columns: 0.96fr 1.04fr;
  gap: 18px;
  align-items: stretch;
}

.resp-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.resp-card--veridex {
  background: var(--blue-tint);
  border: 1px solid var(--blue-border);
  border-left: 4px solid var(--blue);
}

.resp-card--client {
  background: var(--emerald-tint);
  border: 1px solid var(--emerald-border);
  border-left: 4px solid var(--emerald);
}

.resp-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 6px;
}

.resp-list {
  margin: 0;
  padding-left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--ink);
  line-height: 1.4;
}

.takeaway-strip {
  margin-top: 12px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 12.5px;
  font-weight: 600;
}

/* ==========================================================================
   Slide 6: Trust, Security & Standards Matrix (Compliant Typographic Emblems)
   ========================================================================== */
.deploy-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}

.deploy-card {
  border-top: 3px solid var(--blue);
  padding: 12px 14px;
}

.deploy-card--teal    { border-top-color: var(--teal); }
.deploy-card--emerald { border-top-color: var(--emerald); }

.deploy-card h3 {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 4px;
}

.deploy-card p {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-2);
  margin: 0;
}

.standards-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.std-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.std-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.std-emblem {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.std-code {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}

.std-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  line-height: 1.3;
}

.std-desc {
  font-size: 10.8px;
  color: var(--ink-3);
  line-height: 1.36;
  margin: 0;
}

.trust-disclaimer {
  margin-top: 9px;
  font-size: 10.8px;
  color: var(--ink-3);
}

/* ==========================================================================
   Slide 7: Low-Risk Pilot & Next Steps
   ========================================================================== */
.wedge-strip {
  background: var(--amber-tint);
  border: 1px solid var(--amber-border);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 14px;
  font-size: 12.8px;
  color: #78350F;
}

.pilot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.pilot-card {
  border-top: 4px solid var(--blue);
}

.pilot-card--teal    { border-top-color: var(--teal-bright); }
.pilot-card--emerald { border-top-color: var(--emerald); }

.pilot-card h3 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  margin: 7px 0 6px;
}

.pilot-card p {
  font-size: 12.5px;
  color: var(--ink-2);
  line-height: 1.46;
  margin: 0;
}

.closing-callout {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.closing-callout h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 4px;
}

.closing-callout p {
  margin: 0;
  font-size: 13px;
  color: #DBEAFE;
  max-width: 650px;
}

.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn--white { background: var(--white); color: var(--blue); }
.btn--white:hover { background: var(--blue-tint); }
.btn--ghost-white { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.45); }
.btn--ghost-white:hover { background: rgba(255, 255, 255, 0.14); }

/* ==========================================================================
   Docked Bottom Slide Control Bar
   ========================================================================== */
.deck-controls {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--footer-height);
  background: var(--white);
  border-top: 1px solid var(--line);
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 95;
}

.ctrl-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-btn {
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.ctrl-btn:hover:not(:disabled) {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.ctrl-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.slide-counter {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
}

.kbd-hint {
  font-size: 11px;
  color: var(--ink-3);
}

/* ==========================================================================
   Responsive Fallback
   ========================================================================== */
@media (max-width: 1080px), (max-height: 670px) {
  body:not(.overview-mode) {
    overflow-y: auto;
    height: auto;
  }

  body:not(.overview-mode) .slide {
    height: auto;
    min-height: calc(100vh - var(--nav-height) - var(--footer-height) - 2px);
    overflow: visible;
    padding: 18px 18px 60px;
  }
}

@media (max-width: 1024px) {
  .hero-grid,
  .market-layout,
  .split-layout,
  .triage-body,
  .cons-grid,
  .enforcement-box,
  .deploy-row,
  .pilot-grid {
    grid-template-columns: 1fr;
  }

  .standards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav-pills,
  .kbd-hint {
    display: none;
  }

  .kpi-grid,
  .standards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   A4 Landscape Print Styles (1 Slide Per Page, Crisp Chart PNG Snapshots)
   ========================================================================== */
@page {
  size: A4 landscape;
  margin: 10mm;
}

@media print {
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body {
    height: auto !important;
    overflow: visible !important;
    background: #FFFFFF !important;
  }

  .top-nav,
  .deck-controls,
  .progress-track,
  .hero-cta-row,
  .closing-actions,
  .overlay-toggle-btn {
    display: none !important;
  }

  .deck-stage {
    padding-top: 0 !important;
  }

  .slide {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    width: 100% !important;
    height: 186mm !important;
    max-height: 186mm !important;
    min-height: 0 !important;
    padding: 6mm 8mm !important;
    overflow: hidden !important;
    border-bottom: none !important;
    break-after: page;
    page-break-after: always;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .slide:last-child {
    break-after: auto;
    page-break-after: auto;
  }

  .slide-inner {
    max-width: 100% !important;
  }

  .slide-title {
    font-size: 21px !important;
    margin-bottom: 3px !important;
  }

  .slide-subtitle {
    font-size: 11.5px !important;
    margin-bottom: 10px !important;
  }

  .hero-title {
    font-size: 30px !important;
  }

  .hero-grid,
  .market-layout,
  .split-layout,
  .triage-body,
  .enforcement-box {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  .cons-grid,
  .deploy-row,
  .pilot-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
  }

  .standards-grid {
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 7px !important;
  }

  .card {
    padding: 10px !important;
    break-inside: avoid;
  }

  .chart-canvas-wrap {
    height: 215px !important;
  }

  .chart-canvas-wrap--resp {
    height: 230px !important;
  }

  .chart-canvas-wrap canvas {
    display: none !important;
  }

  .chart-canvas-wrap .chart-print-img {
    display: block !important;
  }
}
