/* Scoped candidate styling. Shared navigation and account surfaces are unchanged. */
body[data-msud-authored] .bwcr { font-size: 1.125rem; line-height: 1.7; }
body[data-msud-authored] .bwcr p, body[data-msud-authored] .bwcr li,
body[data-msud-authored] .bwcr summary, body[data-msud-authored] .bwcr legend,
body[data-msud-authored] .bwcr label, body[data-msud-authored] .bwcr figcaption,
body[data-msud-authored] .bwcr button { font-size: 1em; }
body[data-msud-authored] .bwcr button, body[data-msud-authored] .bwcr summary,
body[data-msud-authored] .bwcr .bwcr-options label { min-height: 44px; }
body[data-msud-authored] .bwcr summary { padding: .55rem .75rem; cursor: pointer; }
body[data-msud-authored] .bwcr button { padding: .65rem .9rem; white-space: normal; }
body[data-msud-authored] .bwcr :focus-visible { outline: 3px solid #61419c; outline-offset: 4px; }
body[data-msud-authored] .bwcr [hidden] { display: none !important; }
body[data-msud-authored] .bwcr figure { margin: 1.6rem 0; }
body[data-msud-authored] .bwcr figure .bwcr-flow { display: flex; flex-direction: column; align-items: stretch; gap: .7rem; }
body[data-msud-authored] .bwcr figure .bwcr-card { background: #eee8f7; color: #192640; border: 2px solid #77638f; border-radius: .65rem; padding: .8rem; overflow-wrap: anywhere; }
body[data-msud-authored] .bwcr figure .bwcr-grid { gap: .8rem; }
body[data-msud-authored] .bwcr figure svg { max-width: 100%; }
body[data-msud-authored] .bwcr figcaption { color: #35405b; margin-top: .8rem; }
body[data-msud-authored] #msud-model { border: 2px solid #75618f; border-radius: .8rem; padding: clamp(.7rem, 2vw, 1.4rem); background: #f5f1fa; color: #192640; margin-block: 1.5rem; }
body[data-msud-authored] #msud-model-controls { display: flex; flex-wrap: wrap; gap: .65rem; margin-block: 1rem; }
body[data-msud-authored] #msud-model-controls button { background: #fffaf0; color: #192640; border: 2px solid #75618f; border-radius: .4rem; }
body[data-msud-authored] #msud-model-controls button[aria-pressed="true"] { background: #50387e; color: #fff; border-color: #50387e; }
body[data-msud-authored] #msud-pool { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; border: 2px solid #192640; padding: .75rem; margin: .7rem 0; background: #fffaf0; }
body[data-msud-authored] #msud-pool span { display: block; width: 100%; aspect-ratio: 1; max-width: 2.5rem; border: 2px solid #75618f; border-radius: 50%; background: transparent; }
body[data-msud-authored] #msud-pool span.msud-filled { background: #50387e; border-color: #50387e; }
body[data-msud-authored] .msud-model-path { display: grid; gap: .65rem; }
body[data-msud-authored] .msud-model-path p { margin: 0; padding: .7rem; background: #e6edf2; border-inline-start: 4px solid #375b70; }
body[data-msud-authored] #msud-model-output { display: block; padding: .8rem; background: #fffaf0; border-inline-start: 4px solid #50387e; }
body[data-msud-authored] .msud-atomic { margin: .8rem 0; border-inline-start: 3px solid #75618f; padding-inline-start: .65rem; }
body[data-msud-authored] .msud-atomic details { margin-block: .6rem; }
body[data-msud-authored] .msud-full-explanation { margin-block: .65rem; }
body[data-msud-authored] #msud-corrections { margin-top: 3rem; border-top: 1px solid #75618f; padding-top: 1rem; }
body[data-msud-authored] .msud-mobile-figure { display: none; }
body[data-msud-authored] .msud-diagram-node { border: 2px solid #77638f; border-radius: .6rem; padding: .8rem; background: #eee8f7; color: #192640; text-align: center; margin-block: .6rem; }
body[data-msud-authored] .msud-diagram-connector { text-align: center; color: #35405b; margin-block: .6rem; }
body[data-msud-authored] .msud-block { border-style: double; border-width: 4px; background: #fff1db; }
body[data-msud-authored] .msud-diagram-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 600px) {
  body[data-msud-authored] .bwcr .bwcr-grid { grid-template-columns: minmax(0, 1fr); }
  body[data-msud-authored] .bwcr { padding-inline: 1rem; }
  body[data-msud-authored] #msud-model-controls button { flex: 1 1 12rem; }
  body[data-msud-authored] .bwcr figure > .bwcr-svg-scroll,
  body[data-msud-authored] .bwcr figure > svg { display: none; }
  body[data-msud-authored] .msud-mobile-figure { display: block; }
  body[data-msud-authored] .msud-diagram-pair { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  body[data-msud-authored] .bwcr *, body[data-msud-authored] .bwcr *::before, body[data-msud-authored] .bwcr *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Learning-path refinement: quiet hierarchy, open reading, optional help. */
body[data-msud-authored] #msud-learning-path { margin: 1.25rem 0 .75rem; padding: 1rem 0; border-block: 1px solid #cfc5dc; background: transparent; }
body[data-msud-authored] #msud-learning-path p { margin: .55rem 0; }
body[data-msud-authored] section[data-lesson-section] > .bwcr-key { margin: .55rem 0 1rem; padding-inline-start: .85rem; border-inline-start: 4px solid #75618f; color: #28354f; background: transparent; }
body[data-msud-authored] .msud-case-help { margin: .7rem 0 1rem; border-inline-start: 3px solid #b8acc9; }
body[data-msud-authored] .msud-case-help summary { color: #50387e; font-weight: 650; }
body[data-msud-authored] .msud-case-help p { margin: .15rem .8rem .8rem; color: #35405b; }
@media (max-width: 600px) {
  body[data-msud-authored] #msud-learning-path { margin-bottom: .75rem; }
}
