/* Lesson content only. Site layout, hero, overview and sidebar use site-sidebar.css. */
.rm-lesson-section,
.rm-calculator-step,
.rm-practice-question {
  scroll-margin-top: 24px;
}

.rm-section-question {
  color: #45545b;
  font-style: italic;
}

.rm-definition,
.rm-warning,
.rm-checkpoint,
.rm-quick-example,
.rm-calculator-step,
.rm-practice-question {
  margin: 22px 0;
  padding: 20px;
  border: 1px solid #d7dfe0;
  border-radius: 14px;
  background: #f5f7f6;
}

.rm-warning {
  border-left: 5px solid #a37c55;
  background: #fbf7f1;
}

.rm-definition {
  border-left: 5px solid #657b84;
}

.rm-checkpoint {
  border-left: 5px solid #0f766e;
  background: #f0f9f6;
}

.rm-quick-example {
  border-left: 5px solid #657b84;
}

.rm-practice-question,
.rm-calculator-step {
  background: #fff;
}

.rm-example > h3,
.rm-practice-question > h3,
.rm-calculator-step > h3,
.rm-quick-example > h3,
.rm-quick-example > h4,
.rm-checkpoint > h3,
.rm-warning > h3,
.rm-definition > h3,
.rm-definition > h4 {
  margin: 0 0 12px;
  color: #34464d;
  font-size: 1.17rem;
  line-height: 1.35;
}

.rm-formula {
  margin: 20px 0;
  padding: 3px 10px;
  border: 1px solid #cbd7da;
  border-radius: 12px;
  background: #f4f7f8;
}

.rm-math {
  margin: 16px 0;
  text-align: center;
}

.rm-math mjx-container[display="true"] {
  margin: 0 !important;
}

.rm-booklet-note {
  color: #45545b;
  font-size: .91rem;
  font-style: italic;
}

.rm-figure {
  margin: 24px 0;
  text-align: center;
}

.rm-figure img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 7px;
}

.rm-figure a {
  display: block;
}

.rm-figure figcaption {
  margin-top: 9px;
  color: #45545b;
  font-size: .92rem;
  line-height: 1.4;
}

.rm-table-wrap {
  max-width: 100%;
  margin: 20px 0;
  overflow-x: auto;
  border: 1px solid #d7dfe0;
  border-radius: 10px;
}

.rm-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
}

.rm-data-table caption {
  padding: 11px 12px;
  background: #edf2f3;
  color: #34464d;
  font-weight: 700;
  text-align: left;
}

.rm-data-table td,
.rm-data-table th {
  padding: 11px 12px;
  border-bottom: 1px solid #dde4e5;
  border-right: 1px solid #e5e9ea;
  text-align: center;
  vertical-align: middle;
}

.rm-data-table th:first-child {
  text-align: left;
}

.rm-data-table thead,
.rm-data-table th[scope="row"] {
  background: #f4f7f7;
  color: #34464d;
}

.rm-data-table tr:last-child > * {
  border-bottom: 0;
}

.rm-data-table tr > :last-child {
  border-right: 0;
}

.rm-parts {
  padding-left: 24px;
}

.rm-parts > li {
  margin: 14px 0;
  padding-left: 4px;
}

.rm-parts > li::marker {
  color: #34464d;
  font-weight: 800;
}

.rm-answer {
  margin-top: 20px;
  padding: 0 16px;
  border: 1px solid #cddcde;
  border-radius: 11px;
  background: #fbfcfc;
}

.rm-answer > summary {
  padding: 14px 0;
  color: #174c9c;
  font-weight: 750;
  cursor: pointer;
}

.rm-answer[open] > summary {
  border-bottom: 1px solid #dce5e6;
}

.rm-answer > :last-child {
  margin-bottom: 18px;
}

.rm-answer > summary:focus-visible,
.rm-figure a:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 4px;
  border-radius: 4px;
}

.rm-solution-label {
  margin: 18px 0 12px;
  color: #34464d;
  font-weight: 850;
}

.rm-calculator-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 22px;
}

.rm-calculator-grid > * {
  min-width: 0;
}

.rm-calculator-grid .rm-figure {
  margin: 12px 0;
}

.rm-calculator-grid .rm-table-wrap {
  margin-top: 12px;
}

.rm-calculator-step code,
.rm-definition code,
.rm-warning code {
  padding: 1px 5px;
  border-radius: 4px;
  background: #edf1f2;
  color: #273c47;
  font-size: .93em;
}

.rm-video-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 22px;
  margin: 26px 0;
  padding: 20px;
  border: 1px solid #cbd9df;
  border-radius: 16px;
  background: #f5f9fc;
}

.rm-video-copy h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.4;
}

.rm-video-copy a {
  color: #174c9c;
}

.rm-eyebrow {
  color: #45545b;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.rm-video-frame {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: #e7edf1;
}

.rm-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.rm-reference-list li {
  margin: 12px 0;
}

@media (max-width: 760px) {
  .rm-calculator-grid,
  .rm-video-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .rm-definition,
  .rm-example,
  .rm-warning,
  .rm-checkpoint,
  .rm-quick-example,
  .rm-calculator-step,
  .rm-practice-question,
  .rm-video-card {
    padding: 14px;
  }

  .rm-answer {
    padding: 0 10px;
  }

  .rm-answer .rm-parts {
    padding-left: 0;
    list-style-position: inside;
  }

  .rm-answer .rm-parts > li > p:first-child {
    display: inline;
  }

  .rm-parts > li {
    padding-left: 0;
  }

  .rm-data-table td,
  .rm-data-table th {
    padding: 9px;
  }
}
