/* Singapore Math 5A user-experience upgrade, scoped to the course tree */
:root{--ink:#142e42;--navy:#142e42;--blue:#087974;--sky:#e7f4f0;--pale:#f3faf7;--rule:#d7e8e3;--gold:#9c7529}
body{background:#f4f7f6;color:#243c4a;font-family:system-ui,-apple-system,'Segoe UI',sans-serif}
.shell{box-shadow:0 12px 36px rgba(15,52,63,.035)}
.shell h1,.shell h2{font-family:Georgia,'Times New Roman',serif}
.shell h1{color:#173d48}
.shell h2{color:#1a5660;border-bottom-color:#dae8e4}
.shell header{border-color:#087974}
.shell header .eyebrow{color:#087974}
.shell .lede{background:#e9f5f0;border-color:#087974}
.shell .task{border-color:#d8e6e2}
.shell .worked{background:#f2faf7;border-color:#75b7ab}
.shell .gridlinks a{background:#fbfdfc;border-color:#d7e8e3;transition:background .15s,border-color .15s}
.shell .gridlinks a:hover,.shell .gridlinks a:focus-visible{background:#edf7f3;border-color:#65aa9c}
.sm5a-global-nav{background:#142e42;color:#fff;min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px max(22px,calc((100vw - 1150px)/2));margin:0}
.sm5a-brand{display:flex;align-items:center;gap:13px;font:19px/1.2 Georgia,serif;color:#fff!important;text-decoration:none}
.sm5a-brand small{display:block;font:800 9px/1.5 system-ui;letter-spacing:.1em;color:#9ec7c5}
.sm5a-mark{display:grid;place-items:center;border-radius:10px;width:39px;height:39px;background:#087974;font:bold 23px Georgia;color:white}
.sm5a-global-links{display:flex;gap:19px;flex-wrap:wrap}
.sm5a-global-links a{font:700 13px/1.4 system-ui;color:#cfe8e4;text-decoration:none}
.sm5a-global-links a:hover,.sm5a-global-links a:focus-visible{color:#fff;text-decoration:underline}
.sm5a-crumbs{font-size:13px;color:#56717a;display:flex;gap:8px;flex-wrap:wrap;line-height:1.5;margin:0 0 20px}
.sm5a-crumbs a{color:#087974}
.sm5a-course-note{margin:15px 0;color:#54747a;font-size:.9rem}
.sm5a-on-page{display:block;border:1px solid #d5e8e0;background:#f5fbf8;border-radius:10px;padding:12px 15px;margin:22px 0}
.sm5a-on-page strong{display:block;color:#176e65;font-size:.85rem;margin-bottom:7px}
.sm5a-jump-links{display:flex;gap:7px 15px;flex-wrap:wrap}
.sm5a-jump-links a{font-size:.85rem}
.shell h2[id]{scroll-margin-top:14px}
.sm5a-answer{border:1px solid #badbd1;border-radius:8px;margin:15px 0 4px;background:#fbfefc;color:#1d4b45}
.sm5a-answer summary{cursor:pointer;padding:10px 14px;font-weight:700;font-size:.9rem;list-style:revert}
.sm5a-answer summary:hover{background:#eaf6f1}
.sm5a-answer-body{border-top:1px solid #d2e8de;padding:10px 15px;color:#243c4a;font-size:.93rem;line-height:1.5}
.sm5a-answer-body p{margin:5px 0 10px}
.sm5a-prev-next{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin:35px 0 18px}
.sm5a-prev-next a{display:inline-block;background:#e8f4ee;border:1px solid #abd6c6;color:#136f64;text-decoration:none;font-weight:750;border-radius:9px;padding:11px 15px}
.sm5a-prev-next a:hover,.sm5a-prev-next a:focus-visible{background:#d6eee4}
.sm5a-global-nav a:focus-visible,.sm5a-answer summary:focus-visible,.sm5a-prev-next a:focus-visible{outline:3px solid #eab85a;outline-offset:2px}
@media(max-width:700px){.sm5a-global-nav{align-items:flex-start;flex-direction:column;gap:12px;padding:13px 18px}.sm5a-global-links{gap:9px 15px}.sm5a-global-links a{font-size:13px}.shell{box-shadow:none}.sm5a-jump-links{gap:8px 12px}}
@media print{.sm5a-global-nav,.sm5a-crumbs,.sm5a-on-page,.sm5a-prev-next,.sm5a-answer,.sm5a-model-answer{display:none!important} .shell{box-shadow:none} a{color:inherit!important;text-decoration:none!important}}
