:root { color-scheme:light; }
body,button { font-family:system-ui,-apple-system,"Myanmar Text",sans-serif; }
html { scroll-padding-top:5.25rem; }
[hidden] { display:none!important; }
button { cursor:pointer; }
.visually-hidden,.skip:not(:focus) {
  position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap;
}
.skip:focus { background:white; color:#102b3d; z-index:10100; position:fixed; left:1rem; top:1rem; padding:.6rem; }
.tm-live-chapter.solutions { display:grid; grid-template-columns:10.5rem minmax(0,1fr); gap:1.3rem; align-items:start; }
.section-nav { position:sticky; top:5.4rem; display:grid; gap:.45rem; padding:.65rem; border:1px solid var(--tm-line); border-radius:.9rem; background:var(--tm-surface); }
.section-nav a,.section-nav button { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:.1rem .5rem; padding:.56rem .62rem; border-radius:.54rem; white-space:nowrap; }
.section-nav a[aria-current] { background:#d9f4fb; color:#0b4f63!important; font-weight:760; }
.section-nav a:hover,.question-jump a:hover { background:#eff9fb; }
.section-nav small { color:var(--tm-muted); }
.section-nav button,.model-controls button { border:1px solid #b7dbd4; color:#075348; border-radius:.52rem; background:#edf8f4; font-weight:740; font-size:.89rem; padding:.55rem .68rem; }
.section-heading { background:#fff8e9; border:1px solid #efd9ad; padding:.85rem 1rem; border-radius:.85rem; margin-bottom:1rem; }
.section-heading h2 { font-size:1.12rem; margin:0 0 .6rem; }
.section-heading h2 span { font-weight:550; color:#5d6772; margin-inline-start:.35rem; }
.question-jump { display:flex; flex-wrap:wrap; gap:.38rem; }
.question-jump a { padding:.3rem .5rem; min-width:2.1rem; text-align:center; border:1px solid #d5d9d6; border-radius:.45rem; background:white; }
.question { border:1px solid #e3dbd0; border-radius:.92rem; margin-bottom:1.18rem; background:#fffefa; overflow:hidden; }
.question-title { display:flex; align-items:center; justify-content:space-between; gap:.6rem; padding:.68rem 1rem; background:#dff5fa; color:#163f4e; }
.question-title h3 { margin:0; font-size:1.02rem; font-weight:790; }
.question-title span { color:#415b65; font-size:.83rem; }
.question-text,.worked { padding:.4rem clamp(.8rem,2.3vw,1.25rem) .85rem; font-size:1.03rem; font-weight:430; overflow-wrap:break-word; }
.question-text { border-bottom:1px solid #eee2d3; }
.question-text p { margin:.5rem 0; }
.question-text ol { padding-left:1.4rem; }
.question-text li p { margin:.23rem 0; }
.choices { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); column-gap:1.65rem; row-gap:.2rem; margin:.45rem 0 .2rem; }
.choices li { min-width:0; }
.choices li::marker { font-weight:720; color:#5a6d77; }
.choices li > p { overflow-x:auto; padding-bottom:.28rem; }
.worked { padding-top:.75rem; }
.worked h4 { margin:.05rem 0 .3rem; color:#7e4a17; font-size:.91rem; }
.worked > p { margin:.46rem 0; }
.working-math { min-width:0; margin:.22rem 0; }
.working-math > .katex-display { padding:.17rem 0; }
.katex-display { max-width:100%; overflow:auto hidden; padding:.23rem 0; margin:.08rem 0!important; }
.katex-display>.katex { text-align:left!important; }
.katex { font-size:1.05em!important; }
.answer { margin:.72rem 0 .14rem; padding:.56rem .72rem; border:1px solid #edc7d3; border-radius:.56rem; border-left:.25rem solid #c85778; background:#fff0f5; }
.answer strong { display:block; color:#762640; font-size:.86rem; padding-bottom:.22rem; }
.figure-container { margin:.8rem auto .25rem; text-align:center; }
.figure-container img { display:inline-block; width:auto; height:auto; max-width:min(100%,96mm); }
.figure-container figcaption,.model figcaption { color:#4e636e; font-size:.88rem; padding:.05rem 0 .15rem; }
.graph-sequence { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap:.65rem 1rem; }
.model { max-width:32rem; margin:1rem auto .5rem; background:#f8faf9; border:1px solid #d9e2df; border-radius:.75rem; padding:.6rem; text-align:center; }
.model-preview { width:100%; height:auto; display:block; max-height:18rem; object-fit:contain; margin:.2rem 0 .4rem; }
.model.is-active .model-preview { display:none; }
.model-view { display:none; position:relative; overflow:hidden; }
.model.is-active .model-view { display:block; width:100%; height:clamp(13rem,55vw,18rem); }
.model-view canvas { width:100%; height:100%; display:block; touch-action:none; }
.model-labels { position:absolute; inset:0; pointer-events:none; }
.model-labels span { position:absolute; top:0; left:0; border-radius:.24rem; padding:1px 4px; background:#fffffff0; color:#153c46; white-space:nowrap; font:700 .78rem/1.15 system-ui,sans-serif; }
.model-controls { display:flex; justify-content:center; flex-wrap:wrap; gap:.45rem; }
.model-controls [data-model-reset] { display:none; }
.model.is-active [data-model-reset] { display:inline-block; }
.model-error { font-size:.85rem; color:#8b3b32; }
.section-pager { display:flex; justify-content:space-between; align-items:center; margin:1rem 0 0; gap:.65rem; }
.section-pager a { border:1px solid #b8d8ce; border-radius:.53rem; background:#edf9f4; font-weight:700; padding:.57rem .8rem; }
.section-pager span { color:#626b70; }
.set-grid { display:grid; gap:1rem; grid-template-columns:repeat(auto-fit,minmax(min(13rem,100%),1fr)); }
.set-grid a { display:grid; align-content:center; gap:.28rem; min-height:6.1rem; border:1px solid #ddded2; background:#fffefa; border-radius:.9rem; padding:1rem; }
.set-grid a:hover,.set-grid a:focus-visible { background:#eaf8f5; }
.set-grid strong { font-size:1.23rem; color:#123c45; }
.set-grid span { font-size:.91rem; color:#4c6170; }
.correction-log { max-width:65ch; margin:auto; padding:1.15rem clamp(.85rem,4vw,2.3rem); background:white; border:1px solid var(--tm-line); border-radius:1rem; }
.correction-log h2 { font-size:1.08rem; margin-top:1.35rem; }
.correction-log li { margin:.48rem 0; }
@media (max-width:760px) {
  html { scroll-padding-top:4.4rem; }
  .tm-live-chapter.solutions { grid-template-columns:minmax(0,1fr); gap:.75rem; }
  .section-nav { position:static; grid-template-columns:repeat(4,minmax(0,1fr)); padding:.38rem; gap:.28rem; }
  .section-nav a { white-space:normal; padding:.39rem; line-height:1.24; font-size:.81rem; }
  .section-nav small { font-size:.7rem; }
  .section-nav button { display:none; }
}
@media (max-width:475px) {
  .choices { grid-template-columns:minmax(0,1fr); }
  .question-text,.worked { font-size:1rem; }
}
@media print {
  body.tm-shell-body { background:white!important; }
  .tm-site-header,.tm-reader-nav,.tm-site-footer,.section-nav,.question-jump,.section-pager,.model-controls,.model-view,.skip { display:none!important; }
  .tm-live-chapter.solutions { display:block; width:100%; }
  .solution-list section[hidden], .solution-list [data-section][hidden], [data-section][hidden] { display:block!important; }
  .question { break-inside:avoid; }
  .tm-shell-body > .tm-reader-bar { width:100%; margin:.2rem 0 .5rem; }
  .model.is-active .model-preview { display:block; }
}

.exam-years { display:flex; flex-wrap:wrap; gap:.45rem; margin:0 0 1rem; }
.exam-years a { background:#fffefa; border:1px solid #b7dbd4; border-radius:.55rem; padding:.4rem .75rem; font-weight:700; }
.exam-years a[aria-current] { background:#d9f4fb; color:#0b4f63!important; }
.set-grid .exam-card { display:grid; align-content:start; gap:.35rem; }
.set-grid a.exam-paper { min-height:2.45rem; padding:.32rem .8rem; font-size:.85rem; }

/* Course practice disclosure, matching the chapter Extra Exercises. */
.tm-live-chapter .solution-toggle { padding: .65rem clamp(.8rem,2.3vw,1.25rem) .8rem; }
.tm-live-chapter .solution-toggle > summary {
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5rem;
  width: fit-content;
  min-height: 44px;
  padding: .45rem .85rem;
  border: 1px solid #87b9ac;
  border-radius: 1.5rem;
  background: #eef8f4;
  color: #086454;
  font-size: .91rem;
  font-weight: 650;
  list-style: none;
}
.solution-toggle > summary::-webkit-details-marker { display: none; }
.tm-live-chapter .solution-toggle > summary:hover { background: #def2eb; }
.solution-toggle:not([open]) > :not(summary),
.solution-toggle:not([open]) .hide-label,
.solution-toggle[open] .show-label { display: none !important; }
.solution-toggle .worked { padding-inline: 0; margin-top: .7rem; border-top: 1px solid #eee2d3; }
.tm-live-chapter .question-text { border-bottom: 0; }
.solution-toggle summary svg { display: block; width: 1.05rem; }
.tm-shell-body .exam-back { background: transparent; }
.exam-set-list { display: grid; gap: 1rem; }
.exam-set-list .tm-lesson-section { margin: 0; overflow: hidden; }
.exam-set-list .tm-lesson-section a {
  display: flex; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; flex-wrap: wrap;
}
.exam-set-list .tm-lesson-section a:hover { background: #edf9f4; }
.exam-set-list small { color: var(--tm-muted); }
.exam-year-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.exam-year-nav a { background: #edf9f4; border: 1px solid #b4d5cb; border-radius: .5rem; padding: .4rem .7rem; }
.exam-year-nav a[aria-current] { background: #d1f1e4; font-weight: 750; }
@media (max-width: 360px) {
  .tm-live-chapter .solution-toggle { padding-inline: .45rem; }
}
@media print {
  .tm-live-chapter .solution-toggle > summary { display: none; }
}
