@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --background-color: #1a1a1a;
  --section-divider-bg: #111111;

  --heading-font: "Space Grotesk", Helvetica, sans-serif;
  --body-font: "Inter", Helvetica, sans-serif;
  --base-font-size: 32px;
  --text-size: 16pt;
  --h1-size: 48pt;
  --h2-size: 34pt;
  --h3-size: 24pt;
  --footnote-size: 11pt;

  --primary-color: #E33737;
  --secondary-color: #FF6B6B;
  --text-color: #E0E0E0;
  --muted-color: #888888;
  --line-color: #333333;

  --slide-padding: 60px;
  --slide-padding-top: 40px;
  --content-gap: 30px;

  --box-radius: 4px;
}

.reveal {
  font-family: var(--body-font);
  font-size: var(--base-font-size);
}

.reveal strong,
.reveal b {
  font-weight: 600;
  color: #ffffff;
}

.reveal-viewport {
  background-color: var(--background-color);
}

.reveal-viewport.is-section-divider .slide-background.present {
  background-color: var(--section-divider-bg) !important;
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  font-family: var(--heading-font);
  text-transform: none;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.2;
}

.reveal h1 { font-size: var(--h1-size); }
.reveal h2 { font-size: var(--h2-size); margin-bottom: 0; }
.reveal h3 { font-size: var(--h3-size); }

.reveal p,
.reveal li,
.reveal td,
.reveal th,
.reveal blockquote {
  font-size: var(--text-size);
  color: var(--text-color);
  line-height: 1.6;
}

/* Lists */
.reveal ul {
  list-style: none;
  padding-left: 0;
  margin: 15px 0;
}

.reveal ul li {
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
}

.reveal ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--primary-color);
  border-radius: 50%;
}

.reveal ul ul li::before {
  background: var(--muted-color);
  width: 6px;
  height: 6px;
}

.reveal blockquote p {
  font-size: inherit;
}

/* Slide layout */
.reveal .slides section {
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  padding: var(--slide-padding-top) var(--slide-padding) var(--slide-padding) var(--slide-padding) !important;
  box-sizing: border-box;
  text-align: left;
}

.reveal .slides section.stack {
  padding: 0 !important;
}

.reveal .slides section > .content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding-top: var(--content-gap);
  text-align: left;
}

.reveal .slides section > .footnote {
  position: absolute;
  bottom: 15px;
  left: var(--slide-padding);
  right: var(--slide-padding);
  font-size: var(--footnote-size);
  color: var(--muted-color);
}

/* Section dividers */
.reveal .slides section.section-divider {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center;
}

.reveal .slides section.section-divider h1 {
  font-size: 48pt;
  text-align: center;
  max-width: 900px;
}

.reveal .slides section.section-divider p {
  font-size: 20pt;
  color: var(--muted-color);
}

/* Text utilities */
.text-lg { font-size: 18pt !important; }
.text-xl { font-size: 20pt !important; }
.text-2xl { font-size: 24pt !important; }
.text-3xl { font-size: 28pt !important; }
.text-4xl { font-size: 32pt !important; }
.text-muted { color: var(--muted-color) !important; }
.text-center { text-align: center !important; }
.text-uppercase { text-transform: uppercase; letter-spacing: 0.1em; }
.font-light { font-weight: 300; }
.font-bold { font-weight: 600; }

/* Blockquotes */
.reveal blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 20px;
  margin: 20px 0;
  font-style: italic;
  background: none;
  box-shadow: none;
  width: 100%;
  max-width: none;
}

.reveal blockquote cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  color: var(--muted-color);
}

/* Accent text */
.accent { color: var(--primary-color) !important; }
.accent-soft { color: var(--secondary-color) !important; }

/* Stat box - reusable component for statistics */
.stat-box {
  background: rgba(227, 55, 55, 0.08);
  border: 1px solid rgba(227, 55, 55, 0.25);
  border-radius: var(--box-radius);
  padding: 20px 24px;
  text-align: center;
}

.stat-box .stat-number {
  font-family: var(--heading-font);
  font-size: 32pt;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-box .stat-label {
  font-size: 13pt;
  color: var(--muted-color);
  line-height: 1.3;
}

/* Checkbox styles for slides 7/8 */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.check-item i {
  margin-top: 4px;
  font-size: 14pt;
}

.check-item.checked i { color: #4CAF50; }
.check-item.crossed i { color: var(--primary-color); }
.check-item.crossed p { text-decoration: line-through; color: var(--muted-color); }

/* Numbered tile */
.numbered-tile {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--box-radius);
  padding: 18px 22px;
}

.numbered-tile .tile-number {
  font-family: var(--heading-font);
  font-size: 28pt;
  font-weight: 700;
  color: var(--primary-color);
  line-height: 1;
  margin-bottom: 8px;
}

/* Question tile (for open questions) */
.question-tile {
  background: rgba(255, 107, 107, 0.06);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: var(--box-radius);
  padding: 18px 22px;
}

.question-tile .tile-number {
  font-family: var(--heading-font);
  font-size: 28pt;
  font-weight: 700;
  color: var(--secondary-color);
  line-height: 1;
  margin-bottom: 8px;
}

/* Flow diagram steps */
.flow-step {
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--box-radius);
  padding: 10px 16px;
  text-align: center;
  font-size: 13pt;
  color: var(--text-color);
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted-color);
  font-size: 16pt;
}

/* Top red bar on all slides */
.reveal .slides section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-color);
}

/* Sources table */
.reveal table {
  border-collapse: collapse;
  width: 100%;
}

.reveal table th,
.reveal table td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12pt;
  vertical-align: top;
}

.reveal table th {
  color: var(--primary-color);
  font-weight: 600;
  border-bottom: 2px solid rgba(227, 55, 55, 0.3);
}
