/* Lesson content only. The site shell, navbar, hero, overview and sidebar
   retain the shared site-sidebar.css layout. */
.rm44-introduction { margin-block: 1.5rem; }
.rm44-introduction h2 { font-size: 1.55rem; line-height: 1.25; color: #34464d; }
.rm44-introduction p, .rm44-note p, .rm44-key p, .rm44-warning p,
.rm44-checkpoint p, .rm44-extension-body p { line-height: 1.65; }
.rm44-toc-description { display: block; font-size: .94rem; color: #455664; margin: .15rem 0 .6rem; }
.rm44-toc-extra { margin-top: 1rem; }
.rm44-figure { margin: 1.25rem auto; padding: .5rem; background: #fff; max-width: 1100px; }
.rm44-figure img { display: block; width: 100%; height: auto; }
.rm44-figure figcaption, .rm44-calc-step figcaption, .rm44-caption { margin-top: .65rem; color: #455664; font-size: .94rem; line-height: 1.55; }
.rm44-note, .rm44-key, .rm44-warning, .rm44-checkpoint, .rm44-question, .rm44-video {
  margin: 1.25rem 0; padding: 1.1rem 1.25rem; border: 1px solid #c7cbc5;
  border-radius: 14px; background: #f3f4f2; min-width: 0;
}
.rm44-key { border-left: 5px solid #657b84; background: #f2f6f8; }
.rm44-warning { border-left: 5px solid #8a5450; background: #fcf1f0; }
.rm44-note { border-left: 5px solid #756a76; }
.rm44-checkpoint { border: 1px solid #c5b8cf; border-left: 5px solid #756a76; background: #f8f5fa; }
.rm44-key h3, .rm44-note h3, .rm44-warning h3, .rm44-checkpoint h3,
.rm44-question h3, .rm44-video h3, .rm-example h3 { margin-top: 0; color: #34464d; font-size: 1.2rem; line-height: 1.35; }
.rm44-key > :last-child, .rm44-note > :last-child, .rm44-warning > :last-child,
.rm44-checkpoint > :last-child, .rm44-question > :last-child, .rm44-answer > :last-child { margin-bottom: 0; }
.rm44-answer { margin-top: 1.2rem; padding: 1rem 1.15rem; border: 1px solid #c5d7df; border-radius: 10px; background: #eef5f8; min-width: 0; }
.rm44-answer h3, .rm44-answer h4 { color: #34464d; margin-top: 0; }
.rm44-answer > h3 { font-size: 1.2rem; line-height: 1.35; }
.rm-solution-label { font-weight: 800; color: #174c6b; border-top: 1px solid #d3dce2; padding-top: .9rem; margin-top: 1.1rem; }
.rm44-question { background: #fff; border-left: 5px solid #657b84; }
.rm44-marks { display: inline-block; padding: .12rem .5rem; border-radius: .35rem; background: #edf2f5; color: #405563; font-size: .9rem; white-space: nowrap; }
.rm44-transition { margin-block: 1.5rem; padding: .9rem 1.1rem; border-left: 3px solid #657b84; background: #f5f8fa; color: #34464d; }
.rm44-two-col { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; align-items: start; }
.rm44-two-col > * { min-width: 0; }
.rm44-two-col > .rm44-note, .rm44-two-col > .rm44-key { margin: 0; }
.rm44-table-wrap { max-width: 100%; overflow-x: auto; margin-block: 1rem; border-radius: 8px; scrollbar-width: thin; }
.rm44-table-wrap table { border-collapse: collapse; width: 100%; background: #fff; font-variant-numeric: tabular-nums; }
.rm44-table-wrap caption { text-align: left; font-weight: 700; padding: .5rem; }
.rm44-table-wrap th, .rm44-table-wrap td { padding: .65rem .75rem; border: 1px solid #ced9dd; text-align: left; vertical-align: top; }
.rm44-table-wrap th { color: #34464d; background: #eaf0f2; font-weight: 750; }
.rm44-table-wrap tbody tr:nth-child(even) td { background: #f9fbfc; }
.rm44-calc-route { display: flex; flex-wrap: wrap; gap: .5rem; }
.rm44-calc-route a { display: inline-flex; align-items: center; min-height: 44px; padding: .55rem .8rem; border: 1px solid #b7cbd8; border-radius: 8px; color: #174c6b; background: #fff; font-weight: 650; text-decoration: none; }
.rm44-calculator-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; margin-block: 1.2rem; }
.rm44-calc-step { min-width: 0; border: 1px solid #c7d4de; border-radius: 12px; padding: 1rem; background: #fff; }
.rm44-calc-step h4 { margin: 0 0 .6rem; font-size: 1.07rem; color: #34464d; line-height: 1.3; }
.rm44-calc-step p { margin-top: 0; line-height: 1.6; }
.rm44-calc-step figure { margin: 1rem 0 0; }
.rm44-calc-step img { display: block; width: 100%; height: auto; border: 1px solid #d5dce1; }
.rm44-screen-annotated { position: relative; }
.rm44-save-highlight { position: absolute; left: 4%; top: 35.3%; width: 81.8%; height: 11.6%; border: 3px solid #d32323; pointer-events: none; }
.rm44-screen-crop { aspect-ratio: 864 / 218; overflow: hidden; }
.rm44-screen-crop img { width: 100%; height: auto; }
.rm44-extension { margin-block: 1.5rem; border: 1px solid #c9c0d0; border-radius: 14px; background: #faf8fc; scroll-margin-top: 1rem; }
.rm44-extension > summary { cursor: pointer; padding: 1.1rem 1.2rem; color: #44394d; font-size: 1.12rem; font-weight: 750; line-height: 1.5; min-height: 48px; }
.rm44-extension > summary:hover { background: #f0ebf5; border-radius: 14px; }
.rm44-extension > summary::marker { color: #756a76; }
.rm44-extension[open] > summary { border-bottom: 1px solid #d6cdda; border-radius: 14px 14px 0 0; }
.rm44-optional { display: inline-block; margin-left: .65rem; padding: .15rem .5rem; border-radius: 5px; color: #55425e; background: #e9e2ef; font-size: .88rem; font-weight: 650; }
.rm44-extension-body { padding: 1rem 1.2rem 1.3rem; min-width: 0; }
.rm44-extension-body > h2 { color: #34464d; font-size: 1.4rem; line-height: 1.3; }
.rm44-extension-body h3 { font-size: 1.15rem; line-height: 1.4; }
.rm44-readiness { padding-left: 1.4rem; }
.rm44-readiness li { margin-block: .6rem; }
.rm44-video { border-left: 5px solid #756a76; background: #f5f2f8; }
.rm44-video-load, .rm44-image-close { font: inherit; font-weight: 700; min-height: 44px; border: 1px solid #34464d; border-radius: 8px; padding: .6rem .9rem; color: #fff; background: #34464d; cursor: pointer; }
.rm44-video-load { margin: .3rem .65rem .3rem 0; }
.rm44-video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 8px; margin-top: 1rem; }
.rm44-video a { overflow-wrap: anywhere; }
.rm44-lesson-navigation { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; margin-top: 2rem; border-top: 1px solid #ccd7df; padding-top: 1rem; }
.rm44-lesson-navigation a { padding: .5rem 0; font-weight: 700; }
.rm44-figure-zoom { display: block; width: 100%; margin: 0; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.rm44-figure-zoom img { margin: 0; }
.rm44-image-dialog { border: 1px solid #c7cbc5; border-radius: 14px; max-width: min(96vw,1500px); max-height: 94vh; padding: 1rem; background: #fff; color: #34464d; }
.rm44-image-dialog::backdrop { background: rgba(16,31,45,.7); }
.rm44-image-dialog img { display: block; width: auto; max-width: 100%; max-height: 75vh; object-fit: contain; margin: 1rem auto; }
.rm44-image-dialog p { max-width: 85ch; margin-bottom: 0; }
.rm44-image-close { display: block; margin-left: auto; }
.rm44-skip { position: absolute; top: -10rem; left: 1rem; background: #fff; color: #174c6b; padding: .8rem; z-index: 1000; }
.rm44-skip:focus { top: 1rem; }
.rm44-table-wrap:focus-visible, .rm44-extension > summary:focus-visible,
.rm44-figure-zoom:focus-visible, .rm44-video-load:focus-visible, .rm44-calc-route a:focus-visible,
.rm44-image-close:focus-visible { outline: 3px solid #2563eb; outline-offset: 4px; }
.rm44-introduction, [id^="section-"], [id^="step-"], [id^="checkpoint-"], [id^="answer-"], [id^="question-"] { scroll-margin-top: 1.2rem; }
@media (max-width: 700px) {
 .rm44-two-col, .rm44-calculator-grid { grid-template-columns: minmax(0,1fr); }
 .rm44-note, .rm44-key, .rm44-warning, .rm44-checkpoint, .rm44-question, .rm44-video { padding: 1rem; }
 .rm44-answer { padding: .85rem; }
 .rm44-extension-body { padding: .9rem; }
 .rm44-optional { margin-left: 0; margin-top: .4rem; }
 .rm44-figure { padding: 0; }
 .rm44-table-wrap th, .rm44-table-wrap td { padding: .5rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
 .rm44-video-load, .rm44-figure-zoom + span, .rm44-image-dialog { display: none; }
 .rm44-checkpoint, .rm44-question, .rm44-calc-step { break-inside: avoid; }
 .rm44-extension { background: #fff; }
}
