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

.reveal .slides section {
  box-sizing: border-box;
  padding: 34px 72px 28px;
}

.reveal .slides > section:not(#title-slide) {
  top: 0 !important;
}

.reveal h2 {
  margin: 0 0 20px;
  font-size: 1.25em;
  line-height: 1.1;
  text-transform: none;
}

.reveal p,
.reveal li {
  line-height: 1.3;
}

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

.reveal table {
  width: 100%;
  margin: 0;
  font-size: 0.58em;
}

.reveal table th,
.reveal table td {
  padding: 8px 10px;
  vertical-align: top;
}

.reveal table.table-striped > tbody > tr:nth-of-type(odd) > * {
  background-color: rgba(23, 107, 98, 0.08);
}

.reveal table.table-striped > tbody > tr:nth-of-type(even) > * {
  background-color: transparent;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.artifact-card {
  min-height: 330px;
  padding: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: rgba(0, 0, 0, 0.025);
}

.artifact-title {
  margin: 0 0 12px;
  color: var(--r-link-color);
  font-size: 0.48em;
  font-weight: 700;
}

.artifact-card p,
.artifact-card table {
  font-size: 0.4em;
}

.artifact-card table th,
.artifact-card table td {
  padding: 5px;
}

.artifact-card img {
  display: block;
  width: 100%;
  height: 155px;
  margin: 8px auto;
  object-fit: contain;
}

.artifact-card .cell-output-display {
  margin: 0;
  overflow: hidden;
}

.zoomable-image {
  display: block;
  position: relative;
  cursor: zoom-in;
  outline: none;
}

.zoomable-image::before {
  content: "";
  position: fixed;
  z-index: 999;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 150ms ease;
}

.zoomable-image::after {
  content: "";
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 1000;
  width: min(90vw, 1100px);
  height: min(84vh, 600px);
  padding: 16px;
  background-color: #fff;
  background-image: var(--zoom-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.97);
  transition: opacity 150ms ease, transform 150ms ease;
}

.zoomable-image:hover::before,
.zoomable-image:focus::before,
.zoomable-image:hover::after,
.zoomable-image:focus::after {
  opacity: 1;
}

.zoomable-image:hover::after,
.zoomable-image:focus::after {
  transform: translate(-50%, -50%);
}

.zoomable-image:focus-visible {
  outline: 3px solid var(--r-link-color);
  outline-offset: 3px;
}

.spectrum-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.spectrum-head span:first-child {
  color: var(--course-primary);
}

.spectrum-head span:last-child {
  color: var(--course-secondary);
}

.spectrum-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding-top: 16px;
}

.spectrum-grid::before {
  content: "";
  position: absolute;
  top: 69px;
  right: 6%;
  left: 6%;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--course-primary) 0%, var(--course-primary-soft) 25%, #d8d3c8 50%, var(--course-secondary-soft) 75%, var(--course-secondary) 100%);
}

.spectrum-point {
  position: relative;
  z-index: 1;
  text-align: center;
}

.spectrum-point .dot {
  display: block;
  width: 14px;
  height: 14px;
  margin: 8px auto 22px;
  border: 4px solid var(--r-background-color);
  border-radius: 50%;
  box-sizing: content-box;
}

.spectrum-point:nth-child(1) .dot {
  background: var(--course-primary);
}

.spectrum-point:nth-child(2) .dot {
  background: var(--course-primary-soft);
}

.spectrum-point:nth-child(3) .dot {
  background: #d8d3c8;
}

.spectrum-point:nth-child(4) .dot {
  background: var(--course-secondary-soft);
}

.spectrum-point:nth-child(5) .dot {
  background: var(--course-secondary);
}

.spectrum-point strong {
  display: block;
  min-height: 36px;
  color: var(--r-main-color);
  font-size: 14px;
}

.spectrum-point p {
  color: var(--r-main-color);
  font-size: 0.4em;
  text-align: left;
  opacity: 0.72;
}

.spectrum-point > p:first-child,
.spectrum-point > p:nth-child(2) {
  margin: 0;
  text-align: center;
  opacity: 1;
}

.definition {
  max-width: 970px;
  margin: 20px 0 26px;
  padding: 14px 20px;
  border-left: 6px solid var(--r-link-color);
  font-size: 0.78em;
  line-height: 1.36;
}

.definition-parts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 34px;
  font-size: 0.54em;
}

.slide-lead {
  margin: -4px 0 14px !important;
  color: var(--course-muted);
  font-size: 0.56em;
  line-height: 1.28;
}

.slide-takeaway {
  box-sizing: border-box;
  width: 100%;
  margin: 10px 0 0 !important;
  padding: 10px 14px;
  border-top: 4px solid var(--course-primary);
  background: rgba(23, 107, 98, 0.07);
  font-size: 0.46em;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}

.slide-takeaway ul {
  margin: 0 0 0 1.15em;
  padding: 0;
}

.slide-takeaway li {
  margin: 0;
  line-height: 1.25;
}

.slide-takeaway li + li {
  margin-top: 4px;
}

.slide-source {
  margin: 5px 0 0;
  color: var(--course-muted);
  font-size: 0.24em;
  line-height: 1.2;
}

.slide-source a {
  overflow-wrap: anywhere;
}

.layout-text-visual,
.layout-comparison,
.layout-concept-application {
  display: grid;
  gap: 32px;
  align-items: start;
}

.layout-text-visual {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}

.layout-comparison {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.layout-concept-application {
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1.35fr);
}

.layout-visual-only {
  display: flex;
  width: 100%;
  min-height: 470px;
  align-items: center;
  justify-content: center;
}

.layout-visual-only > * {
  min-width: 0;
  max-width: 100%;
}

.layout-visual-only p,
.layout-visual-only figure {
  margin: 0;
  text-align: center;
}

.layout-visual-only img,
.layout-visual-only svg {
  display: block;
  max-width: 100%;
  max-height: 470px;
  margin: 0 auto;
  object-fit: contain;
}

.layout-text-visual > *,
.layout-comparison > *,
.layout-concept-application > * {
  min-width: 0;
}

.activity-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 46px;
  align-items: start;
}

.activity-visual {
  display: block;
  width: 140px;
  max-width: 100%;
  height: auto;
  margin: 0 0 12px;
}

.activity-label {
  margin-top: 8px;
  color: var(--course-primary);
  font-size: 0.62em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.activity-layout ol {
  margin-top: 0;
  font-size: 0.67em;
}

.activity-output {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #aaa;
  font-size: 0.49em;
}

.activity-link {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 15px;
  border: 2px solid var(--course-primary);
  border-radius: 4px;
  color: var(--course-primary) !important;
  font-weight: 700;
  text-decoration: none;
}

.activity-link:hover,
.activity-link:focus {
  background: rgba(23, 107, 98, 0.08);
}

.section-break-slide {
  text-align: center;
}

.section-break-slide h2 {
  margin-top: 118px;
  font-size: 2.35em;
}

.section-break-statement {
  margin: 18px auto 46px;
  color: var(--course-muted);
  font-size: 0.72em;
}

.section-break-terms {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 990px;
  margin: 0 auto;
}

.section-break-terms span {
  padding: 8px 15px;
  border: 2px solid var(--course-primary);
  border-radius: 999px;
  color: var(--course-primary);
  font-size: 0.42em;
  font-weight: 700;
}

.callout-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
}

.callout-gallery > div > .callout {
  margin: 0;
  font-size: 0.54em;
}

.callout-gallery > div:last-child {
  grid-column: 1 / -1;
}

.callout-gallery .callout-title-container {
  font-size: 1.5em;
}

.callout-gallery .callout-body p {
  margin: 0;
  line-height: 1.25;
}

.chart-label {
  margin-bottom: 6px;
  color: var(--r-link-color);
  font-size: 0.48em;
  font-weight: 700;
  text-align: center;
  letter-spacing: 0.04em;
}

.encoding-comparison .vega-embed {
  justify-content: center;
}

.reference-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  font-size: 0.42em;
}

.reference-columns h3 {
  color: var(--r-link-color);
  font-size: 1em;
}

.reference-columns p {
  margin: 0 0 13px;
}

.next-list {
  margin-top: 30px;
  font-size: 0.72em;
}

.next-list li {
  margin-bottom: 20px;
}

.small-table table {
  font-size: 0.48em;
}

.tiny-table table {
  font-size: 0.42em;
}

.reveal .cell-output-display {
  margin: 0;
}

.reveal .vega-embed,
.reveal .vega-embed > div {
  background: transparent;
}

.vega-embed summary {
  display: none;
}
