/* Deck-specific styles for regression prediction. */

.reveal .slides section.level1.section-title.section-title--academic > h1 {
  max-width: 92%;
  font-size: 1.45em;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.reveal .rp-mcq {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  width: min(1120px, 92%);
  margin: 0.8rem auto 0;
}

.reveal .rp-mcq button {
  padding: 0.55rem 0.85rem;
  border: 2px solid #8ca3bd;
  border-radius: 10px;
  background: #f6f9fc;
  color: #17324d;
  font: inherit;
  font-size: 0.68em;
  text-align: left;
  cursor: pointer;
}

.reveal .rp-mcq button:hover,
.reveal .rp-mcq button:focus-visible {
  border-color: #1769aa;
  background: #e9f3fb;
}

.reveal .rp-mcq button.is-correct {
  border-color: #238636;
  background: #e8f6eb;
}

.reveal .rp-mcq button.is-wrong {
  border-color: #b42318;
  background: #fcebea;
}

.reveal .rp-mcq-feedback {
  min-height: 1.5em;
  margin: 0.2rem 0 0;
  color: #40566e;
  font-size: 0.66em;
  text-align: center;
}

.reveal .rp-mcq-feedback.is-correct {
  color: #176b2c;
  font-weight: 700;
}

.reveal .rp-mcq-feedback.is-wrong {
  color: #9b2c23;
  font-weight: 700;
}

.reveal .rp-plot-slide > h2,
.reveal .rp-plot-slide > .cell {
  width: min(1420px, 90%);
  margin-left: 0.4rem;
  margin-right: auto;
}

.reveal .rp-plot-slide > h2 {
  margin-bottom: 0.25rem;
  text-align: left;
}

.reveal .rp-plot-slide .cell-output-display {
  margin: 0;
  overflow: visible;
}

.reveal .rp-widget {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(280px, 0.72fr);
  gap: 0.2rem 0.85rem;
  align-items: stretch;
  width: 100%;
  margin: 0 auto;
}

.reveal .rp-widget > script {
  display: none;
}

.reveal .rp-widget .html-widget,
.reveal .rp-widget .js-plotly-plot,
.reveal .rp-widget .plot-container {
  width: 100% !important;
}

.reveal .rp-aside {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 0;
  padding: 0.45rem 0.7rem 0.6rem;
  border-left: 5px solid #1769aa;
  border-radius: 10px;
  background: #f4f8fb;
  text-align: left;
}

.reveal .rp-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.35rem;
  min-height: 0;
  margin: 0;
}

.reveal .rp-button {
  padding: 0.38rem 0.65rem;
  border: 1px solid #7f96ad;
  border-radius: 7px;
  background: #f7fafc;
  color: #17324d;
  font: inherit;
  font-size: 0.62em;
  text-align: left;
  cursor: pointer;
}

.reveal .rp-button:hover,
.reveal .rp-button:focus-visible,
.reveal .rp-button.is-active {
  border-color: #1769aa;
  background: #e5f1fa;
}

.reveal .rp-button.is-primary.is-active {
  border-color: #1769aa;
  background: #0f4c81;
  color: white;
}

.reveal .rp-live-text {
  min-height: 0;
  margin: 0;
  color: #17324d;
  font-size: 0.62em;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}

.reveal .rp-key,
.reveal .rp-formula {
  margin: 0;
  color: #294760;
  font-size: 0.58em;
  line-height: 1.45;
  text-align: left;
}

.reveal .rp-formula p {
  margin: 0.2rem 0;
}

.reveal .rp-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  width: min(1280px, 94%);
  margin: 0.4rem auto 0;
  font-size: 0.62em;
}

.reveal .rp-pair article {
  padding: 0.45rem 0.7rem 0.55rem;
  border-top: 5px solid #15803d;
  border-radius: 10px;
  background: #f4fbf6;
  text-align: left;
}

.reveal .rp-pair article + article {
  border-top-color: #b42318;
  background: #fdf6f5;
}

.reveal .rp-pair h3 {
  margin: 0 0 0.25rem;
  font-size: 1.05em;
}

.reveal .rp-pair p {
  margin: 0.2rem 0;
}

.reveal .rp-takeaway {
  width: min(1180px, 92%);
  margin: 0.7rem auto 0;
  padding: 0.5rem 0.85rem;
  border-left: 6px solid #1769aa;
  border-radius: 6px;
  background: #eef6fc;
  color: #17324d;
  font-size: 0.72em;
  text-align: center;
}

.reveal .rp-map {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: min(1080px, 78%);
  margin: 0.7rem auto 0;
  font-size: 0.78em;
}

.reveal .rp-map div {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 108px;
  padding: 0.7rem 1.15rem;
  border-left: 6px solid #1769aa;
  border-radius: 12px;
  background: #f5f9fc;
  text-align: left;
}

.reveal .rp-map strong {
  flex: 0 0 7.2em;
  color: #1769aa;
  font-size: 1.05em;
  white-space: nowrap;
}

@media (max-width: 900px) {
  .reveal .rp-pair,
  .reveal .rp-widget {
    grid-template-columns: 1fr;
  }
}
