/* BDMA — presentation deck styling. Loaded after base.css. */

html, body { height: 100%; overflow: hidden; }
body { display: flex; flex-direction: column; }

.deck-bar {
  flex-shrink: 0; height: 48px;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1rem; gap: .75rem;
}
.deck-bar-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.deck-home { font-size: .8rem; color: var(--text2); text-decoration: none; white-space: nowrap; }
.deck-home:hover { color: var(--text); }
.deck-title {
  font-size: .85rem; font-weight: 600; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.deck-bar-right { display: flex; align-items: center; gap: .5rem; }
.deck-btn {
  background: var(--bg3); border: 1px solid var(--border); color: var(--text2);
  border-radius: 7px; padding: 5px 10px; cursor: pointer;
  font-size: .78rem; font-family: inherit; text-decoration: none;
  display: inline-flex; align-items: center; gap: 5px; transition: all .2s;
}
.deck-btn:hover { border-color: var(--accent-hl); color: var(--text); }
.deck-counter {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: .78rem; color: var(--text2); white-space: nowrap;
}

.progress-track { flex-shrink: 0; height: 3px; background: var(--bg3); }
.progress-fill { height: 100%; width: 0; background: var(--accent-hl); transition: width .25s ease; }

.deck { flex: 1; position: relative; overflow: hidden; }

.slide {
  position: absolute; inset: 0;
  display: none; flex-direction: column;
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem);
  overflow-y: auto;
}
.slide.active { display: flex; animation: slideIn .28s ease; }
@keyframes slideIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.slide-kicker {
  font-size: .7rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-hl); margin-bottom: .75rem;
}
.slide h2 {
  font-size: clamp(1.4rem, 3.2vw, 2.1rem); font-weight: 700;
  line-height: 1.2; margin-bottom: 1rem; letter-spacing: -.01em;
}
.slide h3 { font-size: clamp(1rem, 1.9vw, 1.2rem); font-weight: 600; margin: 1rem 0 .5rem; }
.slide p { font-size: clamp(.92rem, 1.5vw, 1.02rem); color: var(--text2); line-height: 1.65; margin-bottom: .75rem; max-width: 70ch; }
.slide p strong, .slide li strong, .slide td strong { color: var(--text); }
.slide ul, .slide ol { padding-left: 1.4rem; margin-bottom: .75rem; max-width: 70ch; }
.slide li { font-size: clamp(.9rem, 1.45vw, 1rem); color: var(--text2); line-height: 1.6; margin-bottom: .45rem; }
.slide a { color: var(--accent-hl); }

/* Title slide */
.slide.title-slide { justify-content: center; align-items: center; text-align: center; }
.slide.title-slide h1 {
  font-size: clamp(1.9rem, 5vw, 3.2rem); font-weight: 700;
  line-height: 1.15; margin-bottom: .75rem; letter-spacing: -.02em;
}
.slide.title-slide h1 span { color: var(--accent-hl); }
.slide.title-slide .lead { font-size: clamp(.95rem, 1.8vw, 1.15rem); color: var(--text2); max-width: 60ch; }
.title-pill {
  display: inline-block; font-size: .72rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-hl); border: 1px solid var(--accent-hl);
  padding: 5px 15px; border-radius: 20px; margin-bottom: 1.25rem;
}
.title-meta { margin-top: 1.75rem; display: flex; gap: 1.75rem; flex-wrap: wrap; justify-content: center; font-size: .82rem; color: var(--text2); }
.title-meta strong { color: var(--text); }

/* Content helpers */
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin: .5rem 0 1rem; }
.box {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: 10px; padding: 1.1rem 1.25rem;
}
.box h3 { margin: 0 0 .4rem; font-size: 1rem; }
.box p { margin: 0; font-size: .9rem; }
.box.accent { border-color: var(--accent-hl); background: var(--accent-bg); }
.box.green  { border-color: var(--green);  background: var(--green-bg); }
.box.amber  { border-color: var(--amber);  background: rgba(217,119,6,.08); }
.box.blue   { border-color: var(--blue);   background: var(--blue-bg); }

.big-stat { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; color: var(--accent-hl); line-height: 1.1; }
.big-stat-lbl { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text2); margin-top: .25rem; }

.slide pre {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
  padding: .9rem 1.1rem; overflow-x: auto; margin: .6rem 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: clamp(.72rem, 1.15vw, .85rem); line-height: 1.6; color: var(--text2);
}
.slide code {
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .85em;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 5px; color: var(--text);
}
.slide pre code { background: none; border: none; padding: 0; font-size: inherit; color: inherit; }

.slide table { width: 100%; border-collapse: collapse; font-size: clamp(.78rem, 1.25vw, .88rem); margin: .6rem 0; }
.slide th {
  background: var(--bg3); text-align: left; padding: .5rem .8rem;
  font-weight: 600; font-size: .72rem; text-transform: uppercase;
  letter-spacing: .05em; color: var(--text2); border: 1px solid var(--border);
}
.slide td { padding: .5rem .8rem; border: 1px solid var(--border); color: var(--text2); vertical-align: top; }

.note-strip {
  margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--border);
  font-size: .8rem; color: var(--text2);
}
.note-strip strong { color: var(--accent-hl); }

/* Click/tap zones for navigation */
.nav-zone {
  position: absolute; top: 48px; bottom: 0; width: 12%;
  cursor: pointer; z-index: 5; background: transparent; border: none;
}
.nav-zone.prev { left: 0; }
.nav-zone.next { right: 0; }

.deck-hint {
  position: fixed; bottom: 12px; left: 50%; transform: translateX(-50%);
  font-size: .72rem; color: var(--text2); background: var(--bg2);
  border: 1px solid var(--border); border-radius: 20px; padding: 4px 14px;
  z-index: 20; opacity: .85; pointer-events: none;
}

@media (max-width: 760px) {
  .deck-title { display: none; }
  .slide { padding: 1.5rem 1.1rem 3rem; }
  .nav-zone { width: 18%; }
}

@media print {
  html, body { height: auto; overflow: visible; }
  .deck-bar, .progress-track, .nav-zone, .deck-hint { display: none !important; }
  .deck { overflow: visible; }
  .slide {
    position: static !important; display: flex !important;
    page-break-after: always; min-height: 95vh; border-bottom: 1px solid #ccc;
  }
}
