/* ===== Slides Layout ===== */
html { height: 100%; }
body { height: 100%; overflow: hidden; display: flex; flex-direction: column; line-height: 1.6; }
.top-header { position: static; }

/* Slide container */
#slide-container { flex: 1; position: relative; overflow: hidden; }
.slide {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  padding: 40px 8% 60px;
  display: none; flex-direction: column; justify-content: flex-start;
  overflow-y: auto;
}
.slide.active { display: flex; }

/* Slide typography */
.slide-label { font-size: 0.7rem; color: var(--label-color); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 700; margin-bottom: 14px; }
.slide h2 { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.2; margin-bottom: 28px; max-width: 800px; }
.slide h3 { font-size: 1.15rem; font-weight: 600; color: var(--text-secondary); margin: 24px 0 10px; }
.slide p { color: var(--text-muted); max-width: 700px; margin-bottom: 14px; font-size: 1rem; line-height: 1.75; }
.slide ul, .slide ol { margin: 0 0 16px 22px; max-width: 700px; }
.slide li { color: var(--text-muted); font-size: 1rem; margin-bottom: 10px; line-height: 1.65; }
.slide li strong, .slide p strong { color: var(--text-primary); }

/* Slide code blocks */
.code-wrap { max-width: 800px; margin: 20px 0; }
pre { margin: 0; border-radius: 8px; overflow: auto; border: 1px solid var(--border); max-width: 800px; max-height: 45vh; }
pre code.hljs { font-size: 0.82rem; line-height: 1.6; }

/* Slide tables */
.table-wrap { max-height: 50vh; overflow: auto; margin: 20px 0; max-width: 800px; }
table { font-size: 0.88rem; max-width: 800px; margin: 20px 0; }

/* Slide components */
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; }
.box { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 8px; padding: 16px 20px; margin: 12px 0; max-width: 800px; }
.box.accent { border-left: 4px solid var(--accent); }
.box.green { border-left: 4px solid #2ea043; }
.box.yellow { border-left: 4px solid #d29922; }
.tag { display: inline-block; background: var(--tag-bg); color: var(--accent-text); border: 1px solid var(--tag-border); border-radius: 12px; padding: 2px 10px; font-size: 0.75rem; margin: 2px; }
.notes { background: var(--notes-bg); border-left: 3px solid var(--notes-border); padding: 12px 16px; border-radius: 0 6px 6px 0; margin-top: 28px; font-size: 0.8rem; color: var(--notes-text); max-width: 700px; }
.notes b { color: var(--notes-border); }

/* Bottom nav */
#slide-nav { background: var(--bg-header); border-top: 1px solid var(--border); height: 52px; display: flex; align-items: center; padding: 0 24px; gap: 12px; flex-shrink: 0; }
#slide-nav .counter { color: var(--text-muted); font-size: 0.9rem; white-space: nowrap; margin-right: 4px; flex-shrink: 0; font-weight: 600; }
#slide-nav button { background: none; border: 1px solid var(--border); color: var(--text-muted); border-radius: 6px; padding: 6px 16px; font-size: 0.9rem; cursor: pointer; transition: all 0.15s; flex-shrink: 0; }
#slide-nav button:hover { background: var(--bg-hover); color: var(--text-primary); }
#slide-nav button:disabled { opacity: 0.3; cursor: default; }
#slide-nav .dots { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; padding: 0 12px; justify-content: center; }
#slide-nav .dots::-webkit-scrollbar { display: none; }
#slide-nav .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--dot-bg); flex-shrink: 0; cursor: pointer; transition: all 0.15s; border: none; padding: 0; }
#slide-nav .dot.active { background: var(--accent-text); }
#slide-nav .dot:hover { opacity: 0.7; }
#prog { height: 2px; background: var(--prog-bg); width: 0; transition: width 0.25s ease; pointer-events: none; flex-shrink: 0; }

@media (max-width: 640px) { .slide { padding: 70px 5% 40px; } .cols2 { grid-template-columns: 1fr; } }
