/* ============================================================
   Cyber Security Master Class 2026 — reveal.js theme
   Nirvik / Trinetra brand: burnt turmeric on midnight indigo,
   Indian-flag accents, DM Sans / DM Mono.
   --teal / --indigo var names retained internally; values are
   the brand turmeric ramp.
   ============================================================ */

:root {
  --teal: #e8a53a;        /* glowing turmeric (primary accent) */
  --indigo: #d98324;      /* deep turmeric (gradient end)      */
  --saffron: #ef8e3c;     /* flag saffron                       */
  --green: #2e9e6b;       /* india green                        */
  --ink: #14182b;         /* midnight indigo (surface)          */
  --paper: #ece8df;       /* warm off-white                     */
  --muted: #9aa3bf;       /* indigo-gray                        */
  --warn: #f0795f;        /* destructive / alert                */
}

.reveal {
  font-family: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  font-size: 36px;
  color: var(--paper);
  font-weight: 400;
}

.reveal .slides {
  text-align: left;
}

.reveal .slides section {
  text-align: left;
}

/* Headings */
.reveal h1 {
  font-weight: 900;
  font-size: 2.1em;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0.1em 0 0.3em;
  text-transform: none;
}

.reveal h2 {
  font-weight: 800;
  font-size: 1.35em;
  letter-spacing: -0.015em;
  color: #fff;
  text-transform: none;
  margin-bottom: 0.7em;
  border-bottom: 1px solid rgba(147, 163, 191, 0.18);
  padding-bottom: 0.25em;
}

.reveal h3 {
  font-weight: 700;
  font-size: 0.92em;
  color: #fff;
  text-transform: none;
  margin: 0 0 0.3em;
}

.reveal em {
  color: var(--teal);
  font-style: italic;
}

/* Gradient text utility */
.grad {
  background: linear-gradient(90deg, var(--teal), var(--indigo));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Title slide bits */
.eyebrow,
.block-num {
  display: inline-block;
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(232, 165, 58, 0.4);
  border-radius: 999px;
  padding: 0.35em 1em;
  margin-bottom: 0.4em;
}
.block-num.warn {
  color: var(--warn);
  border-color: rgba(251, 113, 133, 0.5);
}

.subtitle {
  font-size: 0.66em;
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.2em;
}

.footnote {
  font-size: 0.42em;
  color: var(--muted);
  margin-top: 2em;
}

.reveal kbd {
  background: rgba(147, 163, 191, 0.15);
  border: 1px solid rgba(147, 163, 191, 0.3);
  border-radius: 5px;
  padding: 0.05em 0.4em;
  font-family: 'DM Mono', monospace;
  font-size: 0.85em;
  color: var(--paper);
}

/* Lead / big text */
.lead {
  font-size: 0.7em;
  color: #cdd7ea;
  line-height: 1.45;
  margin-top: 0.6em;
}

.big {
  font-size: 1.5em;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0.2em 0;
}

.formula {
  font-family: 'DM Mono', monospace;
  font-size: 1.1em;
  font-weight: 600;
  color: #fff;
  margin: 0.6em 0;
}
.formula .k,
.k {
  color: var(--teal);
}

.flow {
  font-family: 'DM Mono', monospace;
  font-weight: 600;
  font-size: 0.92em;
  color: #fff;
  background: rgba(239, 142, 60, 0.12);
  border-left: 3px solid var(--indigo);
  padding: 0.5em 0.8em;
  border-radius: 0 8px 8px 0;
  margin: 0.5em 0;
}
.flow.small {
  font-size: 0.62em;
  line-height: 1.6;
}

/* Callout */
.callout {
  font-size: 0.6em;
  background: rgba(232, 165, 58, 0.08);
  border: 1px solid rgba(232, 165, 58, 0.25);
  border-radius: 10px;
  padding: 0.7em 1em;
  color: #d6e2f2;
  margin-top: 0.8em;
  line-height: 1.4;
}
.callout.warn {
  background: rgba(251, 113, 133, 0.08);
  border-color: rgba(251, 113, 133, 0.3);
}

/* Lists */
.reveal .big-list {
  list-style: none;
  margin: 0;
  font-size: 0.74em;
  line-height: 1.3;
}
.reveal .big-list li {
  position: relative;
  padding: 0.3em 0 0.3em 1.3em;
  border-bottom: 1px solid rgba(147, 163, 191, 0.1);
}
.reveal .big-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 0.5em;
  height: 0.5em;
  border-radius: 2px;
  background: linear-gradient(135deg, var(--teal), var(--indigo));
}

/* Numbered "five things" / mission list */
.reveal ol.five {
  list-style: none;
  counter-reset: f;
  margin: 0;
  font-size: 0.72em;
  line-height: 1.3;
}
.reveal ol.five li {
  counter-increment: f;
  position: relative;
  padding: 0.35em 0 0.35em 1.9em;
}
.reveal ol.five li::before {
  content: counter(f);
  position: absolute;
  left: 0;
  top: 0.3em;
  width: 1.3em;
  height: 1.3em;
  display: grid;
  place-items: center;
  font-size: 0.7em;
  font-weight: 800;
  color: var(--ink);
  background: linear-gradient(135deg, var(--teal), var(--indigo));
  border-radius: 50%;
}

/* Cards */
.cards-3,
.cards-2,
.cols-2 {
  display: grid;
  gap: 0.8em;
  margin: 0.4em 0;
}
.cards-3 {
  grid-template-columns: repeat(3, 1fr);
}
.cards-2,
.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(147, 163, 191, 0.18);
  border-radius: 12px;
  padding: 0.8em 0.9em;
}
.card h3 {
  font-size: 0.8em;
}
.card p {
  font-size: 0.62em;
  color: var(--muted);
  margin: 0;
  line-height: 1.35;
}
.card.ghost {
  background: rgba(239, 142, 60, 0.06);
}
.card .ci {
  width: 1.4em;
  height: 1.4em;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.9em;
  color: var(--ink);
  background: linear-gradient(135deg, var(--teal), var(--indigo));
  border-radius: 8px;
  margin-bottom: 0.4em;
}

/* Tables */
.reveal table.clean {
  font-size: 0.62em;
  border-collapse: collapse;
  width: 100%;
}
.reveal table.clean td {
  padding: 0.45em 0.7em;
  border-bottom: 1px solid rgba(147, 163, 191, 0.14);
  vertical-align: top;
  color: #cdd7ea;
}
.reveal table.clean td.k {
  color: var(--teal);
  font-weight: 700;
  white-space: nowrap;
  width: 1%;
}

/* Stat blocks */
.stats {
  display: flex;
  gap: 1em;
  flex-wrap: wrap;
  margin: 0.5em 0;
}
.stat {
  flex: 1;
  min-width: 150px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(147, 163, 191, 0.18);
  border-radius: 12px;
  padding: 0.7em 0.6em;
  text-align: center;
}
.stat .n {
  font-size: 1.7em;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
}
.stat .l {
  font-size: 0.42em;
  color: var(--muted);
  margin-top: 0.6em;
  line-height: 1.3;
}

/* Agenda */
.agenda {
  margin-top: 0.4em;
}
.agenda-row {
  display: flex;
  align-items: baseline;
  gap: 1em;
  font-size: 0.72em;
  padding: 0.42em 0.6em;
  border-bottom: 1px solid rgba(147, 163, 191, 0.12);
}
.agenda-row .t {
  font-family: 'DM Mono', monospace;
  color: var(--teal);
  font-weight: 600;
  min-width: 2.4em;
}
.agenda-row.hl {
  background: rgba(232, 165, 58, 0.08);
  border-radius: 8px;
  border-bottom-color: transparent;
}

/* Progress + controls accent */
.reveal .progress {
  color: var(--teal);
  height: 4px;
}
.reveal .controls {
  color: var(--indigo);
}
.reveal .slide-number {
  background: transparent;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
}

/* Links */
.reveal a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px dotted rgba(232, 165, 58, 0.5);
}

/* ============================================================
   Persistent brand overlays — animated Trinetra mark + footer
   ============================================================ */
@keyframes trinetra-sweep {
  to { transform: rotate(360deg); }
}
.trinetra-sweep {
  transform-origin: center;
  transform-box: view-box;
  animation: trinetra-sweep 6s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .trinetra-sweep { animation: none; }
}

/* Top-left animated mark + wordmark */
.deck-brand {
  position: fixed;
  top: 22px;
  left: 26px;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  opacity: 0.9;
}
.deck-brand svg {
  width: 30px;
  height: 30px;
  color: var(--teal);
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(232, 165, 58, 0.4));
}
.deck-brand .wm {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  color: var(--paper);
  line-height: 1;
}
.deck-brand .wm small {
  display: block;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
}

/* Bottom-left footer */
.deck-footer {
  position: fixed;
  bottom: 16px;
  left: 26px;
  z-index: 40;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: var(--muted);
}
.deck-footer a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px dotted rgba(232, 165, 58, 0.45);
}
.deck-footer .sep {
  opacity: 0.5;
  margin: 0 0.5em;
}

/* Don't let overlays clutter the slide-grid overview */
.reveal.overview ~ .deck-brand,
.reveal.overview ~ .deck-footer {
  display: none;
}
