/* =======================================================================
   Eco Ninjas Presentation Viewer — editorial aesthetic
   Fonts: Fraunces (display serif) + Inter (body sans)
   ======================================================================= */

:root {
  --ink:         #0f172a;
  --ink-2:       #1e293b;
  --ink-3:       #475569;
  --ink-4:       #64748b;
  --paper:       #fdfcf8;
  --paper-2:     #f5f1e8;
  --rule:        #d4d4d4;
  --rule-2:      #e5e7eb;
  --teal:        #0e7c89;
  --teal-dark:   #084d56;
  --teal-soft:   #e6f4f5;
  --accent:      #c89a3a;
  --accent-soft: #f7edcf;
  --red:         #9e2b25;
  --green:       #2d6a4f;
  --green-soft:  #dcfce7;
  --blue-soft:   #dbeafe;

  /* Slide sizing */
  --slide-max-w: 1280px;
  --slide-aspect: 56.25%;  /* 16:9 */
  --slide-pad: clamp(24px, 4vw, 64px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}

[hidden] { display: none !important; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--teal-dark); text-decoration: underline; }

/* ============================== LANDING PAGE =========================== */

.landing {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  background: linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
  overflow-y: auto;
}
.landing-inner {
  max-width: 560px;
  text-align: center;
}
.landing-mark {
  display: inline-block;
  padding: 18px 28px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--rule);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  margin-bottom: 32px;
}
.landing-mark img {
  display: block;
  height: 56px;
  width: auto;
}
.landing-title {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.landing-sub {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-3);
  line-height: 1.6;
  margin-bottom: 20px;
}
.landing-help {
  font-size: 15px;
  color: var(--ink-4);
  line-height: 1.6;
  margin-bottom: 32px;
}
.landing-footer {
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.landing-back {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
}

/* ============================== VIEWER ================================= */

.viewer {
  position: fixed;
  inset: 0;
  background: #d8e1ec;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- loading ---- */
.loader {
  text-align: center;
  color: var(--ink-4);
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--rule-2);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- error ---- */
.error-state {
  text-align: center;
  padding: 32px;
  max-width: 420px;
}
.error-state h2 {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  margin-bottom: 12px;
  color: var(--ink);
}
.error-state p {
  color: var(--ink-3);
  margin-bottom: 24px;
  line-height: 1.6;
}
.btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--rule);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-secondary:hover {
  background: var(--paper-2);
  border-color: var(--ink-3);
  text-decoration: none;
}

/* ---- stage (slide area) ---- */
.stage {
  position: relative;
  width: 100%;
  height: 100%;
}

.slide-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 48px 80px;
}

/* ---- individual slide ---- */
.slide {
  width: 100%;
  max-width: var(--slide-max-w);
  aspect-ratio: 16 / 9;
  background: #fff;
  border-radius: 10px;
  border: 1px solid #c2cad6;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18), 0 4px 12px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  position: relative;
  animation: slideIn 0.35s ease-out;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.slide-inner {
  width: 100%;
  height: 100%;
  padding: var(--slide-pad);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Corner brand logo — shown on most slides */
.slide-brand {
  position: absolute;
  top: clamp(14px, 1.8vw, 22px);
  right: clamp(14px, 1.8vw, 26px);
  height: clamp(22px, 2.2vw, 30px);
  width: auto;
  opacity: 0.85;
  pointer-events: none;
  z-index: 2;
}
/* Hide brand on layouts where it would clash or is redundant */
.title-slide .slide-brand,
.title-end-slide .slide-brand,
.section-divider-slide .slide-brand,
.image-full-slide .slide-brand {
  display: none;
}

/* Accent stripes for editorial feel */
.slide::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 6px;
  height: 100%;
  background: var(--teal);
  opacity: 0.92;
}
.slide.title-slide::before,
.slide.title-end-slide::before,
.slide.section-divider-slide::before { display: none; }

/* ============================ TYPOGRAPHY =============================== */

.slide h1, .slide h2, .slide h3 {
  font-family: 'Fraunces', Georgia, serif;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.12;
}

.slide .kicker {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  padding: 6px 14px;
  border: 1px solid var(--teal);
  border-radius: 40px;
  margin-bottom: 18px;
}

.slide h1.slide-title {
  font-size: clamp(28px, 3.8vw, 54px);
  font-weight: 800;
  margin-bottom: 10px;
}
.slide h2.slide-title {
  font-size: clamp(24px, 3.2vw, 44px);
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--ink);
  display: inline-block;
}
.slide .subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.5vw, 18px);
  font-weight: 400;
  color: var(--ink-3);
  line-height: 1.5;
  margin-bottom: 24px;
  max-width: 85%;
}

.slide p, .slide li {
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 1.3vw, 17px);
  line-height: 1.55;
  color: var(--ink-2);
}
.slide ul, .slide ol {
  list-style: none;
  padding: 0;
}
.slide ul.bullets li,
.slide ol.bullets li {
  padding-left: 24px;
  position: relative;
  margin-bottom: 12px;
}
.slide ul.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px;
  height: 2px;
  background: var(--teal);
}
.slide ol.bullets {
  counter-reset: bullet;
}
.slide ol.bullets li {
  counter-increment: bullet;
  padding-left: 32px;
}
.slide ol.bullets li::before {
  content: counter(bullet);
  position: absolute;
  left: 0;
  top: 0;
  font-family: 'Fraunces', serif;
  font-size: 0.9em;
  font-weight: 700;
  color: var(--teal);
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ========================= LAYOUT: TITLE ============================== */

.title-slide .slide-inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 32px;
  align-items: center;
  background: linear-gradient(180deg, var(--paper-2) 0%, #fff 70%);
  padding: clamp(32px, 4vw, 64px);
}
.title-slide .t-portrait {
  width: 100%;
  aspect-ratio: 3/5;
  overflow: hidden;
  border-radius: 8px;
  background: var(--paper-2);
}
.title-slide .t-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.title-slide .t-content {
  text-align: center;
}
.title-slide .t-kicker {
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.title-slide h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(26px, 3.6vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 28px;
  color: var(--ink);
  white-space: pre-line;
}
.title-slide .t-byline {
  font-family: 'Fraunces', serif;
  font-size: clamp(18px, 1.9vw, 26px);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.title-slide .t-role {
  font-family: 'Inter', sans-serif;
  font-size: clamp(12px, 1.1vw, 15px);
  color: var(--ink-3);
  margin-bottom: 2px;
}
.title-slide .t-org {
  font-family: 'Inter', sans-serif;
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 600;
  color: var(--teal-dark);
  margin-bottom: 14px;
}
.title-slide .t-contact {
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1vw, 13px);
  color: var(--ink-4);
}
.title-slide .t-contact a { color: var(--teal); }

/* ========================= LAYOUT: TITLE-END ========================== */

.title-end-slide .slide-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--paper-2) 100%);
}
.title-end-slide .te-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(48px, 9vw, 128px);
  font-weight: 800;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 32px;
  letter-spacing: -0.03em;
}
.title-end-slide .te-sub {
  font-family: 'Inter', sans-serif;
  font-size: clamp(14px, 1.5vw, 18px);
  color: var(--ink-3);
  max-width: 540px;
  line-height: 1.6;
  margin-bottom: 36px;
}
.title-end-slide .te-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 1.2vw, 15px);
  color: var(--ink-3);
}
.title-end-slide .te-contact a {
  color: var(--teal-dark);
  font-weight: 500;
}
.title-end-slide .te-rule {
  width: 80px;
  height: 3px;
  background: var(--teal);
  margin: 24px auto;
}

/* ======================= LAYOUT: SECTION DIVIDER ======================= */

.section-divider-slide .slide-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--ink);
  color: #fff;
}
.section-divider-slide .sd-kicker {
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 24px;
}
.section-divider-slide .sd-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(36px, 6vw, 84px);
  font-weight: 800;
  color: #fff;
  line-height: 1.05;
  max-width: 85%;
  letter-spacing: -0.02em;
}
.section-divider-slide .sd-rule {
  width: 100px;
  height: 4px;
  background: var(--accent);
  margin: 32px auto 0;
}
.section-divider-slide::before { display: none; }

/* ======================= LAYOUT: BULLETS ONLY ========================== */

.bullets-slide .slide-inner { justify-content: flex-start; }
.bullets-slide .bullets-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 90%;
}
.bullets-slide ul li,
.bullets-slide ol li {
  margin-bottom: 16px;
  font-size: clamp(14px, 1.5vw, 19px);
}

/* ======================= LAYOUT: TWO-COLUMN ============================ */

.two-col-slide .slide-inner { padding-right: 0; }
.two-col-slide .tc-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(24px, 3vw, 48px);
  align-items: stretch;
  min-height: 0;
}
.two-col-slide.image-right .tc-grid { grid-template-columns: 1.1fr 1fr; }
.two-col-slide.image-right .tc-image { order: 2; border-radius: 8px 0 0 8px; }
.two-col-slide.image-right .tc-content { order: 1; padding-right: 0; }

.two-col-slide .tc-image {
  background: var(--paper-2);
  border-radius: 0 8px 8px 0;
  overflow: hidden;
  position: relative;
  min-height: 0;
}
.two-col-slide .tc-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.two-col-slide .tc-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: var(--slide-pad);
  min-height: 0;
  overflow: hidden;
}

/* ============= LAYOUT: TWO-COLUMN (bullets + bullets) ================== */

.two-bullets-slide .slide-inner { padding-right: var(--slide-pad); }
.two-bullets-slide .tb-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 48px);
  min-height: 0;
}
.two-bullets-slide .tb-col h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal);
  color: var(--ink);
  display: inline-block;
}
.two-bullets-slide .tb-col ul li {
  margin-bottom: 10px;
  font-size: clamp(12px, 1.15vw, 15px);
}

/* ====================== LAYOUT: STATS + BULLETS ======================== */

.stats-slide .stats-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: clamp(16px, 2vw, 28px);
  min-height: 0;
}
.stats-slide .stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 1.5vw, 20px);
}
.stats-slide .stat {
  background: var(--ink);
  color: #fff;
  padding: clamp(16px, 2vw, 28px) clamp(14px, 1.8vw, 24px);
  border-radius: 8px;
  text-align: center;
}
.stats-slide .stat .big {
  font-family: 'Fraunces', serif;
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  margin-bottom: 6px;
}
.stats-slide .stat.highlight .big { color: var(--accent); }
.stats-slide .stat .label {
  font-family: 'Inter', sans-serif;
  font-size: clamp(10px, 0.9vw, 12px);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}
.stats-slide .stats-bullets {
  flex: 1;
  min-height: 0;
}
.stats-slide .stats-bullets ul li {
  margin-bottom: 8px;
  font-size: clamp(12px, 1.2vw, 15px);
}

/* ======================== LAYOUT: STATS + QUOTES ======================= */

.stats-quotes-slide .sq-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3vw, 40px);
  min-height: 0;
}
.stats-quotes-slide .sq-stats {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.5vw, 18px);
  justify-content: center;
}
.stats-quotes-slide .sq-stat {
  background: var(--teal);
  color: #fff;
  padding: clamp(14px, 1.8vw, 22px);
  border-radius: 8px;
}
.stats-quotes-slide .sq-stat .big {
  font-family: 'Fraunces', serif;
  font-size: clamp(18px, 2.2vw, 28px);
  font-weight: 700;
  line-height: 1.15;
}
.stats-quotes-slide .sq-quotes {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}
.stats-quotes-slide .sq-quotes h3 {
  font-family: 'Fraunces', serif;
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--teal);
  display: inline-block;
}
.stats-quotes-slide .sq-quotes blockquote {
  font-family: 'Inter', sans-serif;
  font-size: clamp(12px, 1.2vw, 15px);
  font-style: italic;
  color: var(--ink-2);
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 14px;
  margin-bottom: 12px;
  line-height: 1.5;
}

/* ========================== LAYOUT: TABLE ============================== */

.table-slide .table-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.table-slide table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', sans-serif;
  font-size: clamp(11px, 1.1vw, 14px);
}
.table-slide tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid #c2cad6;
  border-right: 1px solid #c2cad6;
  vertical-align: top;
  color: var(--ink-2);
  background: #fff;
  line-height: 1.4;
}
.table-slide tbody tr:nth-child(even) td { background: #eef2f7; }
.table-slide tbody .first-col { background: #e8edf3 !important; font-weight: 600; color: var(--ink); }
.table-slide tbody tr:nth-child(even) .first-col { background: #dde4ec !important; }
.table-slide thead th {
  background: var(--ink);
  color: #fff;
  padding: 10px 14px;
  text-align: left;
  font-weight: 700;
  font-size: clamp(11px, 1vw, 13px);
  letter-spacing: 0.02em;
  border-right: 1px solid rgba(255,255,255,0.15);
  border-bottom: 2px solid #c2cad6;
}
.table-slide thead th.recommended {
  background: var(--teal);
  position: relative;
}
.table-slide thead th .rec-tag {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: var(--accent-soft);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 2px;
}
.table-slide .t-note {
  font-size: clamp(10px, 1vw, 13px);
  color: var(--ink-4);
  font-style: italic;
  margin-top: 12px;
  line-height: 1.5;
}

/* ====================== LAYOUT: IMAGE FULL BLEED ======================= */

.image-full-slide .slide-inner { padding: 0; }
.image-full-slide .if-image {
  flex: 1;
  background: var(--paper-2) center / contain no-repeat;
  position: relative;
}
.image-full-slide .if-caption {
  padding: 14px 32px;
  font-size: clamp(11px, 1.1vw, 14px);
  color: var(--ink-3);
  background: #fff;
  border-top: 1px solid var(--rule-2);
  font-style: italic;
}

/* ============================ NAVIGATION HITS ========================== */

.hit {
  position: fixed;
  top: 0;
  width: 40vw;
  height: 100vh;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 10;
}
.hit-left  { left: 0; }
.hit-right { right: 0; }

/* ============================ CHROME (UI) ============================== */

.chrome {
  position: fixed;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
}

.chrome-top {
  top: 16px;
  right: 16px;
}
.slide-counter {
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.chrome-bottom {
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.85);
  padding: 6px 10px;
  border-radius: 40px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  width: 420px;
  max-width: calc(100vw - 40px);
}

.chrome-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  flex-shrink: 0;
}
.chrome-btn:hover { background: rgba(255,255,255,0.12); }

.chrome-title {
  font-size: 12px;
  color: rgba(255,255,255,0.85);
  flex: 1;
  text-align: center;
  padding: 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================ PROGRESS BAR ============================= */

.progress {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(15, 23, 42, 0.1);
  z-index: 20;
}
.progress-bar {
  height: 100%;
  background: var(--teal);
  transition: width 0.35s ease-out;
}

/* ============================ HELP OVERLAY ============================= */

.help-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.help-panel {
  background: #fff;
  border-radius: 12px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.help-panel h3 {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  margin-bottom: 18px;
  color: var(--ink);
}
.help-panel dl {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  margin-bottom: 18px;
}
.help-panel dt {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
}
.help-panel dt span { color: var(--ink-4); margin: 0 3px; }
.help-panel dd {
  font-size: 12px;
  color: var(--ink-3);
}
.help-tip {
  font-size: 12px;
  color: var(--ink-4);
  padding: 12px 14px;
  background: var(--paper-2);
  border-radius: 6px;
  margin-bottom: 18px;
  line-height: 1.5;
}

/* ========================== RESPONSIVE ================================= */

@media (max-width: 720px) {
  .slide-container { padding: 16px 16px 70px; }
  .slide { border-radius: 6px; }

  /* Two-column layouts stack */
  .two-col-slide .tc-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 38% 1fr;
  }
  .two-col-slide.image-right .tc-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 38% 1fr;
  }
  .two-col-slide.image-right .tc-image { order: 1; border-radius: 0; }
  .two-col-slide.image-right .tc-content { order: 2; padding: var(--slide-pad); }
  .two-col-slide .tc-image { border-radius: 0; }
  .two-col-slide .tc-content { padding: var(--slide-pad); }

  .stats-slide .stats-grid { grid-template-columns: 1fr; gap: 8px; }
  .stats-slide .stat { padding: 12px 16px; }

  .stats-quotes-slide .sq-grid { grid-template-columns: 1fr; gap: 16px; }
  .two-bullets-slide .tb-grid { grid-template-columns: 1fr; gap: 18px; }

  .title-slide .slide-inner { grid-template-columns: 1fr; gap: 16px; }
  .title-slide .t-portrait { display: none; }

  .chrome-top { top: 12px; right: 12px; }
  .chrome-bottom { bottom: 12px; }
}

/* ========================== PRINT ======================================= */

@media print {
  html, body {
    overflow: visible !important;
    height: auto !important;
    background: #fff !important;
  }
  .chrome, .hit, .progress, .help-overlay, .loader { display: none !important; }
  .viewer { position: static; background: #fff; }
  .stage { position: static; width: 100%; height: auto; }
  .slide-container {
    position: static;
    padding: 0;
    display: block;
  }
  .slide {
    page-break-after: always;
    box-shadow: none;
    border: 1px solid #ccc;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    animation: none;
  }
  .slide::before { display: block !important; }
  .section-divider-slide .slide-inner,
  .stats-slide .stat {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

/* Hide mouse cursor after 3s of inactivity in fullscreen */
.viewer.idle { cursor: none; }
.viewer.idle .chrome,
.viewer.idle .hit { opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.viewer .chrome, .viewer .hit { transition: opacity 0.25s; }
