/* Slide footer — fixed at bottom of every slide */
.slide-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  font-size: 11px;
  font-weight: 500;
  color: var(--gray);
  border-top: 1px solid rgba(107,114,128,0.2);
  z-index: 999;
  font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}

/* Print button — visible in browser, hidden when printing */
.print-btn {
  position: fixed;
  top: 28px;
  right: 40px;
  background: transparent;
  border: 1.5px solid rgba(234,120,69,0.5);
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  font-size: 12px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--primary);
  z-index: 1000;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 5px;
}

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

@media print {
  @page {
    size: landscape;
    margin: 0;
  }

  /* Force background colors and images to print */
  *, *::before, *::after {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Reset scroll/overflow so all slides are visible */
  html, body {
    overflow: visible !important;
    height: auto !important;
  }

  .slide-container {
    height: auto !important;
    overflow: visible !important;
  }

  /* Undo the translateY transform — show all slides stacked */
  .slides {
    transform: none !important;
    transition: none !important;
  }

  /* Each section becomes one printed page */
  section {
    page-break-after: always;
    break-after: page;
    page-break-inside: avoid;
    break-inside: avoid;
    height: 100vh;
    position: relative;
  }

  /* Avoid blank page after the last slide */
  section:last-child {
    page-break-after: auto;
    break-after: auto;
  }

  /* Fixed logo doesn't print reliably — switch to absolute */
  .logo {
    position: absolute !important;
  }

  /* Hide print button when printing */
  .print-btn {
    display: none !important;
  }

  /* Lightning talk: hide slide counter */
  .slide-counter {
    display: none !important;
  }

  /* Fusion discovery: show all 8 question cards in a 2-column grid */
  #qHint {
    display: none !important;
  }

  #qDots {
    display: none !important;
  }

  #questionDisplay {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    align-items: start !important;
    min-height: 0 !important;
  }

  .q-card {
    display: block !important;
    animation: none !important;
    text-align: left !important;
    padding: 12px 16px !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
  }

  /* Shrink the oversized 80px question numbers down for grid layout */
  .q-card > div:first-child {
    font-size: 28px !important;
    margin-bottom: 6px !important;
  }

  /* Shrink question text from 36px to fit two columns */
  .q-card > p:first-of-type {
    font-size: 15px !important;
    margin-bottom: 4px !important;
  }

  /* Shrink sub-label */
  .q-card > p:last-child {
    font-size: 12px !important;
  }
}
