.reveal {
    font-family: "Work Sans", sans-serif;
  }

  body.reveal-viewport {
    --paper: #fbfbf8;
    background-color: var(--paper);
    background-image:
      radial-gradient(ellipse at center, var(--paper) 35%, rgba(251, 251, 248, 0) 80%),
      repeating-radial-gradient(circle at 0% 100%, transparent 0 79px, rgba(55, 118, 171, 0.16) 79px 80px),
      repeating-conic-gradient(from 0deg at 0% 100%, transparent 0deg 7.8deg, rgba(55, 118, 171, 0.12) 7.8deg 8deg),
      radial-gradient(circle at 0% 100%, rgba(55, 118, 171, 0.14), transparent 60%),
      radial-gradient(circle at 100% 0%, rgba(55, 118, 171, 0.08), transparent 50%);
  }

  .reveal .slides section a {
    text-decoration: underline;
  }

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

  .slide-number-a {
    background-color: #747474;
  }

  .reveal section li {
    margin-bottom: 12px;
  }

  .reveal pre {
    width: 100%;
    border: 1px solid #d3dce6;
    border-radius: 6px;
    box-shadow: none;
    font-size: 30px;
  }

  .reveal pre code {
    border-radius: 6px;
  }

  .reveal pre code {
    padding: 8px 8px 8px 8px;
  }

  .reveal code {
    font-family: "Roboto Mono", monospace;
  }

  .reveal h1,
  .reveal h2,
  .reveal h3,
  .reveal h4,
  .reveal h5,
  .reveal h6 {
    font-family: "Comfortaa", sans-serif;
    font-weight: 700;
    color: #1e4a72;
  }

  .reveal :is(h1, h2, h3):not(:has(a))::after {
    content: "";
    display: block;
    width: 2.5em;
    height: 0.14em;
    margin-top: 0.2em;
    background: #ffd43b;
    border-radius: 0.07em;
  }

  .reveal section.heading-only :is(h1, h2, h3)::after {
    margin-left: auto;
    margin-right: auto;
  }

  .reveal section.heading-only {
    text-align: center;
    padding-top: 150px;
  }

  .reveal h3 {
    margin-bottom: 40px;
  }

  .smaller {
    font-size: smaller;
  }

  .reveal .viz-dome {
    position: relative;
    width: 100%;
    height: 300px;
    cursor: grab;
  }

  .viz-dome canvas {
    display: block;
  }

  .viz-dome .dome-labels {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
  }

  .viz-dome .dome-label {
    font: 600 16px "Work Sans", sans-serif;
    background: rgba(255, 255, 255, 0.85);
    padding: 0 3px;
    border-radius: 3px;
  }

  .viz-dome .dome-label.bold {
    font-size: 19px;
  }

  .viz-dome .dome-tooltip {
    position: absolute;
    pointer-events: none;
    background: #222;
    color: #fff;
    font-size: 16px;
    padding: 2px 6px;
    border-radius: 3px;
  }

  .reveal .viz-slider-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.6em;
  }

  .reveal .viz-slider-label input {
    flex: 1;
  }

  .reveal .viz-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }

  .reveal .viz-row .viz-dome {
    flex: 1;
    min-width: 0;
  }

  /* Fixed width so the dome doesn't resize as the slider adds or removes rows */
  .reveal table.viz-sums {
    margin: 0;
    flex: 0 0 320px;
    width: 320px;
    font-variant-numeric: tabular-nums;
  }

  /* Small enough that all 10 rows fit next to the 300px dome */
  .reveal table.viz-sums th,
  .reveal table.viz-sums td {
    font-size: 17px;
    padding: 2px 8px;
  }

  .reveal table.viz-sums td:not(:first-child),
  .reveal table.viz-sums th:not(:first-child) {
    text-align: right;
  }

  .reveal svg.viz-product {
    display: block;
    flex: 1;
    min-width: 0;
    height: 300px;
  }

  .reveal table.viz-compare {
    margin-left: 0;
  }

  .reveal table.viz-compare th,
  .reveal table.viz-compare td {
    font-size: 28px;
    padding: 0.2em 0.6em;
  }

  .reveal table.template-compare {
    margin: 0;
  }

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

  .reveal table.road-table tbody:first-of-type tr:last-child td {
    border-bottom: 1px solid;
  }

  .reveal table.road-table th,
  .reveal table.road-table td {
    font-size: 24px;
    padding: 2px 14px;
    white-space: nowrap;
  }

  .reveal table.road-table td.road-fruit {
    background: #dbe8f4;
    font-weight: 700;
  }

  .reveal table.road-table tr.road-converged td {
    background: #fff3c4;
    font-weight: 700;
  }

  .reveal table.template-compare th,
  .reveal table.template-compare td {
    font-size: 26px;
    padding: 2px 10px;
    white-space: nowrap;
  }

  .reveal table.template-compare th {
    white-space: normal;
    vertical-align: bottom;
  }

  .reveal table.template-compare td:nth-child(-n + 2) {
    font-weight: 700;
    background: #dbe8f4;
  }

  .reveal table.template-compare td:nth-child(n + 3) {
    background: #fff3c4;
  }

  .reveal .model-box {
    display: inline-block;
    padding: 0 0.4em;
    border: 2px solid #3776ab;
    border-radius: 0.3em;
    background: #dbe8f4;
    font-size: 0.85em;
  }

  .reveal table.compact th,
  .reveal table.compact td {
    font-size: 0.8em;
    padding: 0.2em 0.6em;
  }

  .reveal .row h4 {
    margin-bottom: 10px;
  }

  .reveal .use-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
  }

  .reveal .use-box {
    padding: 20px 24px;
    border: 2px solid #3776ab;
    border-radius: 12px;
    background: #dbe8f4;
    font-size: 0.8em;
  }

  .reveal .use-box .use-icon {
    font-size: 1.4em;
    margin-right: 0.3em;
  }

  .reveal .worlds {
    position: relative;
    width: 960px;
    margin: 0 auto;
  }

  .reveal .worlds img {
    display: block;
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
  }

  .reveal .worlds img + img {
    position: absolute;
    top: 0;
    left: 0;
  }

  .code-with-figure {
    display: grid;
    grid-template-columns: max-content 1fr;
    align-items: center;
    gap: 14px 16px;
  }

  .reveal .code-with-figure pre {
    width: auto;
    margin: 0;
    align-self: stretch;
  }

  /* Fill the row so every code block is separated by the same grid gap */
  .reveal .code-with-figure pre code {
    height: 100%;
    box-sizing: border-box;
  }

  .code-with-figure .viz {
    min-width: 0;
    text-align: left;
  }

  .code-with-figure .viz img {
    height: 100px;
    width: auto;
    margin: 0;
  }

  .code-with-figure .formula .MathJax_SVG_Display {
    margin: 0 !important;
    text-align: left !important;
  }

  .code-with-figure .formula {
    font-size: 1.5em;
  }

  .code-with-figure .vectors {
    font-family: "Roboto Mono", monospace;
    font-size: 0.55em;
    line-height: 1.8;
    text-align: left;
    white-space: nowrap;
  }

  .code-with-figure .vec-fire {
    color: #c2410c;
  }

  .code-with-figure .vec-whale {
    color: #3776ab;
  }

  .code-with-figure .vec-word {
    display: inline-block;
    width: 4.2em;
    font-family: sans-serif;
    font-weight: bold;
  }

  .about-layout {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 40px;
    align-items: center;
  }

  .reveal .about-name {
    margin: 0 0 0.3em;
    font-size: 1.4em;
    font-weight: 700;
  }

  .reveal .about-role {
    margin: 0 0 0.4em;
    font-weight: 700;
  }

  .reveal .about-history {
    margin: 0 0 0.8em;
    color: #444;
  }

  .reveal table.about-links {
    margin: 0;
  }

  .reveal table.about-links td {
    border: 0;
    padding: 0.15em 0.8em 0.15em 0;
    font-size: 0.8em;
  }

  .reveal .kicker {
    margin: 0;
    font-size: 0.7em;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #3776ab;
  }

  .reveal .questions-layout {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    margin-top: 30px;
  }

  .reveal .questions-layout > div {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .reveal .thanks-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .reveal .thanks-row img.slides-qr {
    width: 340px;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 12px;
    background: #fff;
    border-radius: 12px;
  }

  .reveal .questions-layout a {
    white-space: nowrap;
  }

  .reveal .questions-layout table.about-links td {
    font-size: 0.85em;
  }

  .reveal .card {
    margin: 0;
    padding: 2px 0 2px 18px;
    border-left: 6px solid #ffd43b;
  }

  .reveal .card .tag {
    font-size: 0.75em;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #3776ab;
  }

  .reveal .card p {
    margin: 4px 0 0;
    font-size: 0.75em;
  }

  .about-photo {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: 12px;
  }

  .reveal table.model-compare {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    font-size: 0.68em;
  }

  .reveal table.model-compare th,
  .reveal table.model-compare td {
    padding: 10px 6px;
    border-bottom: 1px solid #e5e7eb;
  }

  .reveal table.model-compare thead th {
    border-top: 5px solid;
    color: #1f2328;
    font-weight: 700;
    vertical-align: top;
  }

  .reveal table.model-compare thead th:first-child {
    width: 18%;
    border-top: 0;
  }

  .reveal table.model-compare tbody tr.published-by td {
    color: #444;
    font-size: 0.8em;
    font-weight: 400;
  }

  .reveal table.model-compare tbody th {
    color: #444;
    font-weight: 400;
  }

  .reveal table.model-compare tbody td {
    text-align: center;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
  }

  /* --t is the score's position in its row, from 0 (lowest) to 1 (highest) */
  .reveal table.model-compare tr.heat td[style] {
    background: color-mix(in srgb, #2da44e calc(var(--t) * 55% + 8%), white);
  }

  .reveal table.model-compare small {
    color: #6e7781;
    font-size: 0.7em;
  }

  .model-compare .c1 { border-top-color: #8b3fd9 !important; }
  .model-compare .c2 { border-top-color: #1497d5 !important; }
  .model-compare .c3 { border-top-color: #e8930c !important; }
  .model-compare .c4 { border-top-color: #1aa99c !important; }
  .model-compare .c5 { border-top-color: #d6337a !important; }
  .model-compare .c6 { border-top-color: #4a8f2c !important; }

  code {
    padding: 2px 4px;
    font-size: 90%;
    border-radius: 4px;
  }

  p.padded {
    margin-top: 32px;
  }

  section .row {
    display: flex;
  }

  section .column {
    flex: 48%;
    margin: 10px;
  }

  .reveal pre.overflow-in-print {
    height: 400px;
    overflow-y: scroll;
  }
  .print-pdf .reveal pre.overflow-in-print {
    height: auto;
    overflow-y: visible;
  }

  @media print {
    .no-print,
    .no-print *,
    .slide-menu-button {
      display: none !important;
    }
    .reveal pre.overflow-in-print {
      height: 2000px;
      overflow-y: visible;
    }
  }

  .aka {
    font-family: "Roboto Mono", monospace;
    background-color: #1c6192;
    color: white;
    padding: 8px;
    border-radius: 6px;
    display: inline-block;
  }
