:root {
  --ink: #1f2933;
  --muted: #5d6673;
  --line: #d8dde6;
  --paper: #fbfaf7;
  --teal: #0f766e;
  --plum: #1565c0;
  --rose: #b8336a;
  --amber: #d77a21;
  --accent: #1565c0;
}

.reveal {
  color: var(--ink);
  font-family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
}

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

.reveal h1,
.reveal h2,
.reveal h3 {
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
}

.reveal h1.title {
  font-size: 1.55em;
  line-height: 1.08;
  max-width: 16em;
}

.reveal #title-slide {
  align-items: center;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.reveal #title-slide h1.title {
  margin-left: auto;
  margin-right: auto;
  max-width: 18em;
  text-align: center;
}

.reveal #title-slide .subtitle {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.reveal #title-slide .quarto-title-authors {
  justify-content: center;
  text-align: center;
  width: 100%;
}

.reveal .subtitle {
  color: var(--teal);
  font-size: 0.96em;
  line-height: 1.25;
  max-width: 18em;
}

.reveal .quarto-title-author {
  color: var(--muted);
  font-size: 0.82em;
}

.reveal h2 {
  border-bottom: 3px solid var(--teal);
  font-size: 1.5em;
  margin-bottom: 0.6em;
  padding-bottom: 0.18em;
}

.reveal p,
.reveal li,
.reveal table {
  font-size: 0.92em;
  line-height: 1.28;
}

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

.reveal li {
  margin: 0.18em 0;
}

.reveal strong {
  color: var(--plum);
}

.lead {
  color: var(--ink);
  font-size: 1.3em;
  font-weight: 700;
  line-height: 1.18;
  margin: 0.3em 0 0.9em;
  max-width: 22em;
}

.claim-strip,
.bottom-line,
.model-note,
.takeaway {
  border-left: 8px solid var(--teal);
  color: var(--ink);
  font-size: 1.02em;
  font-weight: 700;
  line-height: 1.22;
  margin: 0.9em 0;
  padding: 0.35em 0 0.35em 0.65em;
}

.final-message {
  color: var(--ink);
  font-size: 1.02em;
  font-weight: 700;
  line-height: 1.22;
  border-left: 8px solid var(--teal);
  padding: 0.35em 0 0.35em 0.65em;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
}

.small-note,
.closing {
  color: var(--muted);
  font-size: 0.82em;
  line-height: 1.25;
}

.contrast-row,
.big-number-row,
.metric-grid,
.two-plots,
.pipeline {
  display: grid;
  gap: 0.6em;
  margin: 0.65em 0;
}

.contrast-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contrast-box,
.metric-card,
.big-number,
.pipe-step,
.plot-panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.55em 0.65em;
}

.contrast-box p,
.metric-card p,
.big-number p,
.pipe-step p,
.plot-panel p {
  margin: 0.2em 0;
}

.big-number-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.big-number {
  text-align: center;
}

.big-number strong {
  color: var(--rose);
  display: block;
  font-size: 1.5em;
  margin-bottom: 0.18em;
}

.pipeline {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.pipe-step {
  min-height: 4.3em;
  text-align: center;
}

.pipe-step strong {
  color: var(--teal);
  display: block;
  font-size: 1.22em;
}

.method-list {
  margin-top: 0.8em;
}

.metric-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.metric-card {
  min-height: 5.7em;
}

.metric-card strong {
  color: var(--teal);
  display: block;
  margin-bottom: 0.24em;
}

.plot-with-note {
  align-items: start;
  display: grid;
  gap: 0.8em;
  grid-template-columns: minmax(0, 1fr) 0.42fr;
}

.plot-with-note img {
  max-height: 660px;
  object-fit: contain;
  width: 100%;
}

.result-note {
  background: var(--paper);
  border-left: 8px solid var(--rose);
  border-radius: 8px;
  font-size: 1.02em;
  line-height: 1.24;
  margin-top: 2em;
  padding: 0.65em 0.75em;
}

.two-plots {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.plot-panel {
  text-align: center;
}

.plot-panel img {
  max-height: 535px;
  object-fit: contain;
  width: 100%;
}

.plot-panel strong {
  color: var(--rose);
}

.reveal table {
  border-collapse: collapse;
  width: 78%;
}

.reveal table th,
.reveal table td {
  border-bottom: 1px solid var(--line);
  padding: 0.34em 0.45em;
}

.reveal table th {
  color: var(--teal);
}

.reveal .slide-number {
  color: var(--muted);
  font-size: 0.55em;
}

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

.reveal section:has(.final-message) {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reveal .references {
  font-size: 0.42em;
  line-height: 1.15;
}



@media (max-width: 900px) {
  .contrast-row,
  .big-number-row,
  .metric-grid,
  .two-plots,
  .pipeline,
  .plot-with-note {
    grid-template-columns: 1fr;
  }

  .plot-with-note img,
  .plot-panel img {
    max-height: 420px;
  }
}
