/* MU Equity Research Dashboard, stylesheet part 2/7: 02-slides.css
   Files load in numeric order; the cascade relies on source order. */
/* ============= SLIDE-DECK MODE ============= */
body.slide-mode .hero { display: none; }
body.slide-mode footer.site-footer { display: none; }
body.slide-mode main > section.block,
body.slide-mode main > section.sources { display: none; }
body.slide-mode main > section.block.slide-active,
body.slide-mode main > section.sources.slide-active {
  display: block;
  animation: slideIn 0.3s ease;
}
body.slide-mode .layout { padding-bottom: 50px; }
@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Slide nav bar */
.slide-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #16130E;
  color: #f7f5f1;
  padding: 6px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 200;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.18);
  border-top: 2px solid var(--accent);
}
.slide-nav-btn {
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  padding: 5px 14px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  min-width: 80px;
  line-height: 1.4;
}
.slide-nav-btn:hover { background: var(--accent-deep); }
/* Download pills beside the report-PDF button: Excel stands out in green. */
/* Light pills so the Excel/Note downloads stand out on the dark slide-nav whatever
   the dashboard's accent is (a green fill collides with the green-accent themes).
   Coloured text keeps the Excel = green / note = PDF-red semantics. */
.slide-nav-btn.dl-excel, .slide-nav-btn.dl-note { display: inline-flex; align-items: center; justify-content: center; gap: 5px; text-decoration: none; font-weight: 700; box-shadow: 0 0 0 1px rgba(0,0,0,0.16) inset; }
.slide-nav-btn.dl-excel { background: #e6f3ea; color: #176b3a; }
.slide-nav-btn.dl-excel:hover { background: #f2faf4; }
.slide-nav-btn.dl-note { background: #f4e7e1; color: #9a3a2a; }
.slide-nav-btn.dl-note:hover { background: #fbf1ec; }
.slide-nav-btn:disabled {
  background: #3a3d40;
  color: #82807a;
  cursor: not-allowed;
}
.slide-nav-info {
  flex: 1;
  text-align: center;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.2;
}
.slide-nav-info .counter {
  font-family: var(--font-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-bright);
}
.slide-nav-info .title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #c4c1b8;
}
.slide-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(122,26,47,0.15);
  z-index: 201;
}
.slide-progress-bar .fill {
  height: 100%;
  background: var(--accent);
  transition: width 0.3s ease;
  width: 0%;
}
body.slide-mode nav.side { top: 56px; max-height: calc(100vh - 110px); }
.slide-mode-toggle { position: fixed; top: 54px; right: 16px;
  background: var(--accent);
  color: var(--on-accent);
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  z-index: 150;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.slide-mode-toggle:hover { background: var(--accent-deep); }
body.slide-mode .back-to-top { display: none; }

/* Cover slide override - bigger hero feel for the first slide */
body.slide-mode #summary {
  background: linear-gradient(180deg, var(--panel) 0%, var(--accent-soft) 100%);
}

/* Keyboard hint */
.kbd-hint {
  font-size: 10px;
  color: #82807a;
  margin-top: 4px;
  font-style: italic;
}
.kbd {
  background: #3a3d40;
  color: var(--accent-bright);
  padding: 1px 6px;
  border-radius: 3px;
  font-family: ui-monospace, monospace;
  font-size: 10px;
  margin: 0 2px;
}
@media (max-width: 700px) {
  .slide-nav { padding: 10px 12px; }
  .slide-nav-btn { padding: 10px 14px; min-width: 80px; font-size: 12px; min-height: 44px; }
  .slide-nav-info .counter { font-size: 14px; }
  .slide-mode-toggle { top: 90px; right: 12px; padding: 6px 10px; font-size: 10px; }
}


/* Slide-mode content density */
body.slide-mode section.block { padding: 16px 22px 14px; }
body.slide-mode section.block h2 { font-size: 20px; margin-bottom: 2px; }
body.slide-mode section.block h3 { margin: 12px 0 6px; font-size: 13px; }
body.slide-mode section.block p { font-size: 13px; margin: 6px 0; }
body.slide-mode section.block ul { margin: 4px 0 8px 18px; }
body.slide-mode section.block li { font-size: 13px; margin-bottom: 4px; }
body.slide-mode .chart-wrap { height: 220px; }
body.slide-mode .calc { padding: 14px; }
body.slide-mode .calc h4 { font-size: 15px; }
body.slide-mode .chart-card { padding: 10px 12px; }
body.slide-mode .kpi { padding: 8px 12px; }
body.slide-mode .kpi .val { font-size: 18px; }
body.slide-mode .kpi-grid { gap: 8px; margin-bottom: 10px; }
body.slide-mode table.fin { font-size: 12px; }
body.slide-mode table.fin th, body.slide-mode table.fin td { padding: 6px 8px; }
body.slide-mode .thesis { padding: 12px 14px; }
body.slide-mode .thesis h4 { font-size: 16px; }
body.slide-mode .thesis .pt { font-size: 20px; }
/* DCF slide specific: comp table horizontal scroll */
body.slide-mode #dcf .chart-card { overflow-x: auto; }
body.slide-mode #dcf table.fin { font-size: 11px; }


/* Prevent Chart.js canvas from overflowing its wrapper (was causing overlap with adjacent text) */
.chart-wrap { position: relative; overflow: hidden; }
.chart-wrap canvas {
  display: block !important;
  max-width: 100% !important;
  max-height: 100% !important;
  width: 100% !important;
  height: 100% !important;
}
/* Add spacing between chart cards and following content */
.chart-card { margin-bottom: 6px; }
.chart-card + h3, .chart-card + p, .chart-card + .kpi-grid { margin-top: 14px; }
.chart-row { margin-bottom: 14px; }
/* Two-column layouts: prevent overlap if uneven heights */
.twocol > div { min-width: 0; } /* allow grid items to shrink */
.twocol .chart-card { align-self: start; }
/* Chart-controls toggle buttons - leave room above chart */
.chart-controls { margin-bottom: 8px; }
/* Roadmap timeline + chart row spacing */
.roadmap + h3 { margin-top: 18px; }


