/*
 * CIS400 reveal.js theme: Cybersecurity & AI
 * Syracuse Orange (#F76900) + Navy (#000E54), with a "signal" cyan accent
 * for security/AI emphasis. Light variant: white slide background,
 * solarized-light code blocks.
 *
 * This theme is shared by every deck under ../../slides/. Edit it here and
 * every deck updates. Classes are generic (title-slide, section-divider,
 * big-point, two-col, callout, playground, footer) so decks stay portable.
 */

:root {
  --su-orange: #f76900;
  --su-orange-soft: #ff8a2e;
  --su-orange-deep: #c25200;
  --su-navy: #000e54;
  --su-navy-soft: #1a277a;
  --su-navy-deep: #000729;
  --su-ink: #1a1a1a;
  --su-text: #26304a;
  --su-muted: #6b7a99;
  --su-accent: #b58900;       /* solarized yellow — harmonizes with code blocks */
  --su-signal: #0aa6b7;       /* cyan "signal" accent for security/AI callouts */
  --su-signal-deep: #077784;
  --su-danger: #b7410e;       /* exploit / red-team emphasis */
  --su-page: #ffffff;
  --su-page-soft: #fbf9f4;    /* very subtle cream, matches solarized bg tone */
  --su-rule: #e6e0d1;
  --su-code-bg: #fdf6e3;      /* solarized base3 */
  --su-good: #6aa84f;
}

.reveal-viewport {
  background: var(--su-page);
  background-attachment: fixed;
}

.reveal {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 29px;
  font-weight: 400;
  color: var(--su-text);
  letter-spacing: 0.003em;
}

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

.reveal .slides > section,
.reveal .slides > section > section {
  padding: 8px 20px;
  line-height: 1.28;
}

/* Subtle accent bar along the top of every slide */
.reveal .slides > section::before,
.reveal .slides > section > section::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--su-orange) 0%, var(--su-signal) 100%);
  opacity: 0.9;
}

/* ---------- Headings ---------- */

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-transform: none;
  margin: 0 0 0.28em 0;
  text-shadow: none;
  color: var(--su-navy);
}

.reveal h1 {
  font-size: 2.4em;
  color: var(--su-orange);
}

.reveal h2 {
  font-size: 1.7em;
  color: var(--su-navy);
  border-bottom: 4px solid var(--su-orange);
  padding-bottom: 0.1em;
  margin-bottom: 0.32em;
  display: inline-block;
}

.reveal h3 {
  font-size: 1.25em;
  color: var(--su-orange-deep);
}

.reveal h4 {
  font-size: 1.05em;
  color: var(--su-navy-soft);
}

.reveal p {
  margin: 0.32em 0;
  line-height: 1.38;
  color: var(--su-text);
}

.reveal strong {
  color: var(--su-orange-deep);
  font-weight: 700;
}

.reveal em {
  color: var(--su-navy-soft);
  font-style: italic;
}

.reveal a,
.reveal a:visited {
  color: var(--su-orange-deep);
  text-decoration: none;
  border-bottom: 2px solid rgba(247, 105, 0, 0.4);
  transition: all 0.12s ease-in-out;
}

.reveal a:hover {
  color: var(--su-navy);
  border-bottom-color: var(--su-navy);
  background: rgba(247, 105, 0, 0.08);
}

.reveal ul,
.reveal ol {
  display: block;
  margin-left: 1.1em;
}

.reveal ul li,
.reveal ol li {
  margin: 0.18em 0;
  color: var(--su-text);
}

.reveal ul {
  list-style: none;
}

/* A blank line between bullets makes CommonMark emit a "loose" list, wrapping
   each item's text in <p>. That would push the text below the ▸ marker and add
   paragraph margins, so a stray blank line in a deck silently wrecks the slide.
   Render loose items like tight ones. */
.reveal li > p {
  margin: 0;
}

.reveal li > p:first-child {
  display: inline;
}

.reveal ul li::before {
  content: "▸";
  color: var(--su-orange);
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  font-weight: 700;
}

.reveal blockquote {
  display: block;
  position: relative;
  background: var(--su-page-soft);
  border-left: 5px solid var(--su-orange);
  margin: 0.6em 0;
  padding: 0.55em 0.9em;
  width: 95%;
  color: var(--su-text);
  font-style: italic;
  box-shadow: 0 2px 10px rgba(0, 14, 84, 0.06);
  border-radius: 6px;
}

/* ---------- Code ---------- */

.reveal code {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  background: var(--su-code-bg);
  color: var(--su-orange-deep);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.92em;
  border: 1px solid var(--su-rule);
}

.reveal pre {
  font-family: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  display: block;
  width: 100%;
  margin: 0.4em auto;
  font-size: 0.56em;
  line-height: 1.32;
  box-shadow: 0 6px 22px rgba(0, 14, 84, 0.1);
  border: 1px solid var(--su-rule);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.reveal pre::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--su-orange) 0%, var(--su-signal) 100%);
  z-index: 2;
}

.reveal pre code {
  display: block;
  padding: 0.6em 1.1em 0.6em 1.1em;
  max-height: 640px;
  word-wrap: normal;
  background: var(--su-code-bg);
  color: #657b83;   /* solarized base00 */
  border-radius: 0;
  border: none;
}

.reveal pre code.hljs {
  padding: 0.6em 1.1em 0.6em 1.1em;
  background: var(--su-code-bg);
}

/* Terminal / shell blocks read as a red-team console */
.reveal pre.terminal code,
.reveal pre code.language-console {
  background: #10151f;
  color: #d7dde8;
}

/* ---------- Tables ---------- */

.reveal table {
  margin: 0.4em auto;
  border-collapse: collapse;
  border-spacing: 0;
  background: var(--su-page);
  border: 1px solid var(--su-rule);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 14, 84, 0.05);
}

.reveal table th {
  background: var(--su-orange);
  color: #fff;
  font-weight: 700;
  padding: 0.28em 0.7em;
  text-align: left;
  border: none;
}

.reveal table td {
  padding: 0.22em 0.7em;
  border-top: 1px solid var(--su-rule);
  color: var(--su-text);
}

.reveal table tr:nth-child(even) td {
  background: var(--su-page-soft);
}

/* ---------- Title slide ---------- */

.reveal section.title-slide {
  text-align: center;
}

.reveal section.title-slide h1 {
  font-size: 3em;
  background: linear-gradient(135deg, var(--su-orange) 0%, var(--su-orange-deep) 55%, var(--su-navy) 115%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.2em;
}

.reveal section.title-slide h2 {
  font-size: 1.1em;
  color: var(--su-navy);
  border: none;
  display: block;
  font-weight: 400;
  margin-top: 0.3em;
}

.reveal section.title-slide .course-tag {
  display: inline-block;
  background: var(--su-orange);
  color: #fff;
  padding: 0.28em 0.9em;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.7em;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.8em;
}

/* ---------- Section dividers ---------- */

.reveal section.section-divider {
  text-align: center;
}

.reveal section.section-divider h1 {
  font-size: 3.2em;
  color: var(--su-orange);
  margin-bottom: 0.1em;
}

.reveal section.section-divider h2 {
  color: var(--su-navy);
  border: none;
  font-weight: 400;
  font-size: 1.1em;
  display: block;
}

.reveal section.section-divider .chapter-num {
  display: block;
  font-family: "JetBrains Mono", monospace;
  color: var(--su-orange-deep);
  font-size: 0.9em;
  letter-spacing: 0.2em;
  margin-bottom: 0.5em;
  text-transform: uppercase;
}

/* ---------- Big point slides ---------- */

.reveal section.big-point {
  text-align: center;
}

.reveal section.big-point h1 {
  font-size: 2.6em;
  color: var(--su-orange);
}

.reveal section.big-point p {
  font-size: 1.2em;
  color: var(--su-navy);
}

/* ---------- Two-column helper ---------- */

.reveal .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1em;
  align-items: start;
}

.reveal .col-left,
.reveal .col-right {
  min-width: 0;
}

/* ---------- Callouts ---------- */

.reveal .callout {
  background: #fff4ec;
  border-left: 5px solid var(--su-danger);
  border-radius: 6px;
  padding: 0.45em 0.85em;
  margin: 0.38em 0;
  font-size: 0.85em;
  color: var(--su-ink);
  box-shadow: 0 1px 4px rgba(0, 14, 84, 0.05);
}

.reveal .callout.note {
  background: #eef2fb;
  border-left-color: var(--su-navy);
}

.reveal .callout.good {
  background: #eef8e9;
  border-left-color: var(--su-good);
}

/* Threat / attacker emphasis — for offensive-security slides */
.reveal .callout.threat {
  background: #fdecec;
  border-left-color: var(--su-danger);
}

/* Defense / blue-team emphasis */
.reveal .callout.defense {
  background: #e9f6f8;
  border-left-color: var(--su-signal-deep);
}

.reveal .callout strong {
  color: var(--su-orange-deep);
}

/* ---------- Playground / demo link (subtle, under code blocks) ---------- */

.reveal .playground {
  display: inline-block;
  font-size: 0.48em;
  background: transparent;
  color: var(--su-orange-deep) !important;
  border: 1px solid rgba(247, 105, 0, 0.35);
  padding: 0.15em 0.6em;
  border-radius: 999px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
  margin-top: -0.1em;
  box-shadow: none;
  opacity: 0.75;
  transition: opacity 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}

.reveal .playground:hover {
  background: rgba(247, 105, 0, 0.08);
  border-color: var(--su-orange);
  color: var(--su-orange-deep) !important;
  opacity: 1;
}

/* ---------- On-slide source citations ---------- */

.reveal .source {
  font-size: 0.5em;
  color: var(--su-muted);
  margin-top: 0.5em;
  font-style: normal;
  line-height: 1.3;
}

.reveal .source a,
.reveal .source a:visited {
  color: var(--su-muted);
  border-bottom: 1px dotted var(--su-muted);
}

/* A single large figure with a caption, for data slides */
.reveal .stat {
  font-size: 2.4em;
  font-weight: 900;
  color: var(--su-orange);
  line-height: 1;
  display: block;
}

.reveal .stat-label {
  font-size: 0.9em;
  color: var(--su-navy);
  display: block;
  margin-top: 0.15em;
}

/* ---------- Footer branding ---------- */

.reveal .footer {
  position: absolute;
  bottom: 14px;
  right: 24px;
  font-size: 14px;
  color: var(--su-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  pointer-events: none;
}

/* ---------- Slide number + controls ---------- */

.reveal .slide-number {
  background: var(--su-orange);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

.reveal .controls {
  color: var(--su-orange);
}

.reveal .progress {
  color: var(--su-orange);
  height: 5px;
  background: rgba(0, 14, 84, 0.08);
}

.reveal .progress span {
  background: linear-gradient(90deg, var(--su-orange) 0%, var(--su-signal) 100%);
}

/* ---------- Print / PDF tweaks ---------- */

@media print {
  .reveal-viewport {
    background: #ffffff !important;
  }
}

/* >>> imported-schema: figure <<< */
/* Imported by bin/import-deck.sh from an exported deck's theme.
   Do not hand-edit inside these markers; re-import instead. */
/* ---------- Figures: inline SVG diagrams in the theme's palette ---------- */
/* Author the SVG with class names, not colours; fragments work on <g>/<tspan>. */

.reveal .figure { width: 100%; margin: 0.35em auto; }
.reveal .figure.narrow { width: 86%; }
.reveal .figure svg {
  display: block; width: 100%; height: auto; overflow: visible;
  font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}
.reveal .figure text { font-size: 26px; fill: var(--su-text); }
.reveal .figure .fig-title { font-weight: 800; fill: var(--su-navy); }
.reveal .figure .fig-small { font-size: 21px; fill: var(--su-muted); font-weight: 400; }
.reveal .figure .fig-mono { font-family: "JetBrains Mono", Menlo, Consolas, monospace; font-size: 23px; }
.reveal .figure .sub { font-size: 65%; baseline-shift: sub; }
.reveal .figure .fig-num { font-weight: 800; fill: var(--su-orange); }
.reveal .figure .fig-orange { fill: var(--su-orange-deep); font-weight: 700; }
.reveal .figure .fig-navy { fill: var(--su-navy); font-weight: 700; }
.reveal .figure .fig-signal { fill: var(--su-signal-deep); font-weight: 700; }
.reveal .figure .fig-danger { fill: var(--su-danger); font-weight: 700; }

.reveal .figure .fig-box { fill: #fff; stroke: var(--su-navy); stroke-width: 3; }
.reveal .figure .fig-box.model { fill: #fff4ec; stroke: var(--su-orange); }
.reveal .figure .fig-box.world { fill: #e9f6f8; stroke: var(--su-signal-deep); }
.reveal .figure .fig-box.ctx { fill: var(--su-page-soft); stroke: var(--su-muted); }

.reveal .figure .fig-arrow { fill: none; stroke: var(--su-navy); stroke-width: 3.5; stroke-linecap: round; }
.reveal .figure .fig-arrow.model { stroke: var(--su-orange); }
.reveal .figure .fig-arrow.world { stroke: var(--su-signal-deep); }
.reveal .figure .fig-arrow.muted { stroke: var(--su-muted); }
.reveal .figure .fig-boundary { fill: none; stroke: var(--su-danger); stroke-width: 3; stroke-dasharray: 12 10; }
.reveal .figure .fig-boundary.muted { stroke: var(--su-rule); }

/* A compact comparison table next to / instead of a figure */
.reveal table.figure-table { font-size: 0.72em; border-collapse: collapse; width: 100%; margin: 0.3em 0; }
.reveal table.figure-table th, .reveal table.figure-table td { padding: 0.3em 0.6em; border-bottom: 1px solid var(--su-rule); text-align: left; vertical-align: top; }
.reveal table.figure-table th { color: var(--su-navy); }
/* >>> end imported-schema: figure <<< */

/* >>> imported-schema: trace <<< */
/* Imported by bin/import-deck.sh from an exported deck's theme.
   Do not hand-edit inside these markers; re-import instead. */
/* ---------- A ReAct-style trace: thoughts, actions and observations, colour-coded ---------- */

.reveal .trace { font-size: 0.6em; line-height: 1.3; }
.reveal .trace > div { padding: 0.2em 0.6em; margin: 0.18em 0; border-left: 5px solid var(--su-muted); border-radius: 4px; background: var(--su-page-soft); }
.reveal .trace .q { font-weight: 600; color: var(--su-navy); }
.reveal .trace .thought { border-left-color: var(--su-navy); background: #eef2fb; }
.reveal .trace .action { border-left-color: var(--su-orange); background: #fff4ec; font-family: "JetBrains Mono", Menlo, Consolas, monospace; }
.reveal .trace .obs { border-left-color: var(--su-signal-deep); background: #e9f6f8; }
.reveal .trace b { color: var(--su-orange-deep); }
/* >>> end imported-schema: trace <<< */
