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

.reveal .slides section h1,
.reveal .slides section h2,
.reveal .slides section h3 {
  text-align: center;
}

html,
body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

.reveal input,
.reveal button,
.reveal select,
.reveal textarea,
.reveal label,
.reveal summary {
  touch-action: manipulation;
}

.reveal input[type="range"] {
  touch-action: pan-x;
}

.reveal {
  font-size: 24px;
  color: #3f3f3f;
}

.reveal,
.reveal .slides,
.reveal .slide-background,
.reveal .slide-background-content {
  background: rgb(247, 247, 247);
}

.reveal h1 {
  font-size: 1.8em;
}

.reveal h2 {
  font-size: 1.4em;
}

.reveal h3 {
  font-size: 1.15em;
}

.back-link-row {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  margin-top: 12px;
}

.back-link {
  display: inline-block;
  margin: 6px auto 0;
  font-size: 0.95em;
  letter-spacing: 0.03em;
  color: #1f1f1f;
  text-decoration: none;
}

.button-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin: 12px auto 12px;
  flex-wrap: wrap;
}

.slide-btn {
  display: block;
  margin: 0;
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  box-shadow: 0 4px 0 #1b4c61;
  background: #2e6f8e;
  color: #ffffff;
  font: inherit;
  cursor: pointer;
}

.slide-btn:hover {
  background: #3a7f9f;
}

.slide-btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 #1b4c61;
}

.plot-wide {
  display: block;
  width: min(820px, 92vw);
  height: 460px;
  margin: 10px auto 0;
}

.plot-grid-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 520px));
  justify-content: center;
  gap: 18px;
  width: fit-content;
  max-width: 96vw;
  margin: 0 auto;
}

.plot-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.plot-half {
  width: min(520px, 46vw);
  max-width: 100%;
  height: 420px;
}
