/* Lesson content only. All outer layout, navbar, overview and sidebar geometry
   remain controlled by the shared /assets/css/site-sidebar.css. */
.prob-skip-link { position:fixed; top:.5rem; left:.5rem; z-index:1000; padding:.75rem 1rem; background:#fff; color:#263238; transform:translateY(-200%); }
.prob-skip-link:focus { transform:translateY(0); }
.prob-note, .prob-callout, .prob-definition, .prob-warning, .prob-check { margin:1.2rem 0; padding:1.1rem 1.25rem; border:1px solid #cbd0d3; border-left:5px solid #687278; border-radius:14px; background:#f3f4f5; color:#24292d; }
.prob-definition { background:#eceff0; border-left-color:#40474c; }
.prob-warning { background:#f7f4f0; border-left-color:#a37c55; }
.prob-check { background:#eef0f2; border-left-color:#535c63; }
.prob-note > :first-child, .prob-callout > :first-child, .prob-definition > :first-child, .prob-warning > :first-child, .prob-check > :first-child { margin-top:0; }
.prob-note > :last-child, .prob-callout > :last-child, .prob-definition > :last-child, .prob-warning > :last-child, .prob-check > :last-child { margin-bottom:0; }
.prob-note h3, .prob-callout h3, .prob-definition h3, .prob-warning h3, .prob-check h3 { font-size:1.1rem; line-height:1.35; color:#30383d; }
.prob-course-links { font-size:.9375rem; line-height:1.7; }
.prob-course-links a, .prob-answer-link a, .prob-source-note a, .prob-hint a { color:#244e77; text-underline-offset:3px; }
.prob-example { border-color:#ccd1d4; border-left-color:#687278; box-shadow:0 5px 14px rgba(30,40,45,.04); }
.prob-example h3 { margin:0 0 .75rem; font-size:1.15rem; line-height:1.35; color:#30383d; }
.rm-solution-label { margin:1.1rem 0 .7rem; padding-top:.7rem; border-top:1px solid #d8dcdf; font-weight:800; color:#3b444a; }
.prob-example p, .prob-question p, .prob-answer p { line-height:1.65; }
.prob-parts { padding-left:1.6rem; }
.prob-parts li { margin:.55rem 0; padding-left:.15rem; }
.prob-question { margin:1.2rem 0; padding:1.1rem 1.25rem; border:1px solid #cfd4d7; border-radius:14px; background:#fff; }
.prob-question h3 { margin:0 0 .8rem; font-size:1.1rem; line-height:1.4; }
.prob-marks { font-size:.875rem; font-weight:700; color:#4f5961; white-space:nowrap; }
.prob-answer-link { margin-top:1rem; font-weight:650; }
.prob-answer { margin:1rem 0; border:1px solid #c5cdd2; border-radius:12px; background:#fafbfc; }
.prob-answer > summary, .prob-hint > summary { cursor:pointer; padding:1rem 1.1rem; font-weight:750; color:#303a42; line-height:1.5; }
.prob-answer[open] > summary { border-bottom:1px solid #d2d8dc; background:#edf0f2; border-radius:11px 11px 0 0; }
.prob-answer-body { padding:.2rem 1.1rem 1rem; }
.prob-hint { margin:.9rem 0; border:1px solid #d6dadc; border-radius:10px; background:#f7f8f9; }
.prob-hint > :not(summary) { margin-inline:1.1rem; }
.prob-table-wrap { width:100%; max-width:100%; overflow-x:auto; margin:1.2rem 0; border:1px solid #cdd2d6; border-radius:10px; }
.prob-table { width:100%; border-collapse:collapse; font-size:.95rem; }
.prob-table caption { padding:.65rem .8rem; text-align:left; font-size:.9rem; color:#46535d; }
.prob-table th, .prob-table td { padding:.7rem .8rem; text-align:left; vertical-align:top; border-bottom:1px solid #d9dfe3; }
.prob-table th { background:#edf0f2; font-weight:750; }
.prob-table tbody tr:last-child > * { border-bottom:0; }
.prob-figure { margin:1.5rem 0; padding:1rem; border:1px solid #d9dee1; border-radius:14px; background:#fff; }
.prob-figure img { display:block; max-width:100%; height:auto; margin:0 auto; }
.prob-figure-small { max-width:30rem; margin-inline:auto; }
.prob-figure-small img { max-height:25rem; width:auto; }
.prob-figure figcaption { margin-top:.8rem; color:#46525b; font-size:.9rem; line-height:1.55; }
.prob-diagram-button, .prob-answer-controls button, .prob-dialog-controls button { border:1px solid #adb7be; background:#f1f3f4; color:#27343f; border-radius:8px; padding:.6rem .9rem; font:inherit; font-weight:650; cursor:pointer; min-height:44px; }
.prob-diagram-button { margin-top:.8rem; font-size:.9rem; }
.prob-diagram-button:hover, .prob-answer-controls button:hover, .prob-dialog-controls button:hover { background:#e5e9ec; }
.prob-answer-controls { display:flex; flex-wrap:wrap; gap:.65rem; margin:1.5rem 0; }
.prob-math { max-width:100%; overflow-x:auto; padding:.25rem 0; }
.prob-example mjx-container[display="true"], .prob-answer mjx-container[display="true"], .prob-callout mjx-container[display="true"], .prob-definition mjx-container[display="true"], .prob-note mjx-container[display="true"], .prob-check mjx-container[display="true"] { max-width:100%; overflow-x:auto; overflow-y:hidden; padding:.2rem 0; }
.prob-source-note, .prob-lesson-footer { color:#57636c; font-size:.875rem; line-height:1.6; }
.prob-lesson-footer { border-top:1px solid #d6dce0; margin-top:2rem; padding-top:1rem; }
.prob-image-dialog { width:min(96vw,1200px); max-width:96vw; max-height:92vh; border:1px solid #87939c; border-radius:16px; padding:1rem; color:#26343f; }
.prob-image-dialog::backdrop { background:rgba(18,26,33,.7); }
.prob-dialog-controls { display:flex; align-items:center; flex-wrap:wrap; gap:.6rem; margin-bottom:1rem; }
.prob-dialog-controls h2 { margin:0 auto 0 0; font-size:1.1rem; }
.prob-image-scroll { max-height:74vh; overflow:auto; background:#fff; }
.prob-image-scroll img { display:block; margin:0 auto; max-width:100%; height:auto; }
.prob-image-scroll.is-full-size img { max-width:none; }
.prob-question, .prob-check, .prob-answer, #readiness { scroll-margin-top:1rem; }
.prob-answer:target, .prob-question:target, .prob-check:target { outline:2px solid #687b89; outline-offset:3px; }
.prob-answer summary:focus-visible, .prob-hint summary:focus-visible, .prob-diagram-button:focus-visible, .prob-answer-controls button:focus-visible, .prob-dialog-controls button:focus-visible { outline:3px solid #285c8a; outline-offset:3px; }
@media (max-width:600px) {
  .prob-note, .prob-callout, .prob-definition, .prob-warning, .prob-check, .prob-question { padding:1rem; }
  .prob-answer-body { padding:.2rem .8rem .9rem; }
  .prob-answer > summary { padding:.85rem .8rem; }
  .prob-table th, .prob-table td { padding:.6rem; }
  .prob-figure { padding:.6rem; }
}
@media (prefers-reduced-motion:reduce) { html { scroll-behavior:auto; } }
@media print {
  .prob-diagram-button, .prob-answer-controls, .prob-image-dialog { display:none!important; }
  .prob-answer { break-inside:avoid; }
}
