/**
 * ITEA theme for reveal.js.
 *
 * Uses the colors and fonts from themes/itea-2026/assets/css/site.css.
 */

@font-face {
  font-display: swap;
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 300;
  src: url("/fonts/josefin-sans-v32-latin-300.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Josefin Sans";
  font-style: italic;
  font-weight: 300;
  src: url("/fonts/josefin-sans-v32-latin-300italic.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 600;
  src: url("/fonts/josefin-sans-v32-latin-600.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Josefin Sans";
  font-style: italic;
  font-weight: 600;
  src: url("/fonts/josefin-sans-v32-latin-600italic.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 300;
  src: url("/fonts/source-sans-3-v15-latin-300.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 300;
  src: url("/fonts/source-sans-3-v15-latin-300italic.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Source Sans 3";
  font-style: normal;
  font-weight: 600;
  src: url("/fonts/source-sans-3-v15-latin-600.woff2") format("woff2");
}

@font-face {
  font-display: swap;
  font-family: "Source Sans 3";
  font-style: italic;
  font-weight: 600;
  src: url("/fonts/source-sans-3-v15-latin-600italic.woff2") format("woff2");
}

section.has-light-background,
section.has-light-background h1,
section.has-light-background h2,
section.has-light-background h3,
section.has-light-background h4,
section.has-light-background h5,
section.has-light-background h6 {
  color: #1b1f24;
}

:root {
  --itea-primary: #b10023;
  --itea-primary-dark: #80001a;
  --itea-primary-light: #ffccd6;
  --itea-bg-soft: #f8f9fa;
  --itea-line: #e3e5e8;
  --itea-text-muted: #5f6771;

  --r-background-color: #fff;
  --r-main-font: "Source Sans 3", Arial, Helvetica, sans-serif;
  --r-main-font-size: 24px;
  --r-main-color: #1b1f24;
  --r-block-margin: 20px;
  --r-heading-margin: 0 0 20px 0;
  --r-heading-font: "Josefin Sans", Arial, Helvetica, sans-serif;
  --r-heading-color: #1b1f24;
  --r-heading-line-height: 1.15;
  --r-heading-letter-spacing: 0;
  --r-heading-text-transform: none;
  --r-heading-text-shadow: none;
  --r-heading-font-weight: 300;
  --r-heading1-text-shadow: none;
  --r-heading1-size: 2.45em;
  --r-heading2-size: 1.6em;
  --r-heading3-size: 1.25em;
  --r-heading4-size: 1em;
  --r-code-font: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-link-color: var(--itea-primary);
  --r-link-color-dark: var(--itea-primary);
  --r-link-color-hover: var(--itea-primary-dark);
  --r-selection-background-color: var(--itea-primary-light);
  --r-selection-color: #1b1f24;
  --r-overlay-element-bg-color: 248, 249, 250;
  --r-overlay-element-fg-color: 27, 31, 36;
}

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

.reveal {
  font-family: var(--r-main-font);
  font-size: var(--r-main-font-size);
  font-weight: 300;
  color: var(--r-main-color);
}

.reveal ::selection {
  color: var(--r-selection-color);
  background: var(--r-selection-background-color);
  text-shadow: none;
}

.reveal ::-moz-selection {
  color: var(--r-selection-color);
  background: var(--r-selection-background-color);
  text-shadow: none;
}

.reveal .slides section,
.reveal .slides section > section {
  line-height: 1.3;
  font-weight: inherit;
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  margin: var(--r-heading-margin);
  color: var(--r-heading-color);
  font-family: var(--r-heading-font);
  font-weight: var(--r-heading-font-weight);
  line-height: var(--r-heading-line-height);
  letter-spacing: var(--r-heading-letter-spacing);
  text-transform: var(--r-heading-text-transform);
  text-shadow: var(--r-heading-text-shadow);
  word-wrap: break-word;
}

.reveal h1 {
  font-size: var(--r-heading1-size);
}

.reveal h2 {
  font-size: var(--r-heading2-size);
}

.reveal h3 {
  font-size: var(--r-heading3-size);
}

.reveal h4 {
  font-size: var(--r-heading4-size);
}

.reveal h1 {
  text-shadow: var(--r-heading1-text-shadow);
}

.reveal p {
  margin: var(--r-block-margin) 0;
  line-height: 1.3;
}

.reveal h1:last-child,
.reveal h2:last-child,
.reveal h3:last-child,
.reveal h4:last-child,
.reveal h5:last-child,
.reveal h6:last-child {
  margin-bottom: 0;
}

.reveal img,
.reveal video,
.reveal iframe {
  max-width: 95%;
  max-height: 95%;
}

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

.reveal em {
  font-style: italic;
}

.reveal ol,
.reveal dl,
.reveal ul {
  display: inline-block;
  text-align: left;
  margin: 0 0 0 1em;
}

.reveal ol {
  list-style-type: decimal;
}

.reveal ul {
  list-style-type: disc;
}

.reveal ul ul {
  list-style-type: square;
}

.reveal ul ul ul {
  list-style-type: circle;
}

.reveal ul ul,
.reveal ul ol,
.reveal ol ol,
.reveal ol ul {
  display: block;
  margin-left: 40px;
}

.reveal a {
  color: var(--r-link-color);
  text-decoration: none;
  transition: color .15s ease;
}

.reveal a:hover {
  color: var(--r-link-color-hover);
  text-shadow: none;
  border: none;
}

.reveal .controls {
  color: var(--itea-primary);
}

.reveal .progress {
  color: var(--itea-primary);
}

.reveal blockquote {
  display: block;
  position: relative;
  width: 70%;
  margin: var(--r-block-margin) auto;
  padding: .35em 1em;
  border-left: .18em solid var(--itea-primary);
  background: var(--itea-bg-soft);
  box-shadow: none;
  font-style: italic;
}

.reveal pre {
  display: block;
  position: relative;
  width: 90%;
  margin: var(--r-block-margin) auto;
  text-align: left;
  font-size: .55em;
  font-family: var(--r-code-font);
  line-height: 1.25;
  word-wrap: break-word;
  box-shadow: none;
}

.reveal code {
  font-family: var(--r-code-font);
  text-transform: none;
}

.reveal pre code {
  display: block;
  padding: 1em;
  overflow: auto;
  max-height: 400px;
  word-wrap: normal;
  color: #1b1f24;
  background: var(--itea-bg-soft);
  border: 1px solid var(--itea-line);
}

.reveal table {
  margin: auto;
  border-collapse: collapse;
  border-spacing: 0;
}

.reveal table th {
  font-weight: 600;
}

.reveal table th,
.reveal table td {
  text-align: left;
  padding: .2em .5em;
  border-bottom: 1px solid var(--itea-line);
}

.reveal table th[align="center"],
.reveal table td[align="center"] {
  text-align: center;
}

.reveal table th[align="right"],
.reveal table td[align="right"] {
  text-align: right;
}

.reveal .slide-number {
  color: #fff;
  background-color: rgba(177, 0, 35, .78);
}
