main { max-width: 62rem; }
nav { display: flex; gap: .75rem; font-size: .9rem; color: #526171; }
header { margin: 3rem 0 2rem; }
header h1 { margin: .6rem 0; }
#status:empty { display: none; }
#status { padding: .75rem 1rem; background: #e6f2f3; border-radius: .5rem; }
.primary { background: #087480; color: white; border-color: #087480; }
button:hover:not(:disabled) { filter: brightness(.94); }
.metadata { color: #526171; font-size: .9rem; }
article h3 { margin: .75rem 0; font-size: 1.4rem; }
fieldset { min-width: 0; margin: 1.75rem 0; padding: 1.3rem; border: 1px solid #dce3e8; border-radius: .8rem; background: white; }
legend { font-weight: 650; font-size: 1.12rem; padding: 0 .4rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.options { display: grid; gap: .65rem; }
.option { display: flex; align-items: start; gap: .75rem; padding: 1rem; border: 1px solid #dce3e8; border-radius: .5rem; cursor: pointer; white-space: pre-wrap; overflow-wrap: anywhere; }
.option:has(input:checked) { border-color: #087480; background: #edf8f8; }
.option:has(input:focus-visible) { outline: 3px solid #168997; outline-offset: 2px; }
input { accent-color: #087480; flex-shrink: 0; margin-top: .2rem; }
.summary { background: #e6f2f3; border: 1px solid #a4cdd1; padding: 1.5rem; border-radius: .8rem; margin: 1.5rem 0; }
.summary button { margin: .25rem .6rem .25rem 0; }
legend { max-width: 100%; }
.question-heading { display: inline-flex; align-items: baseline; gap: .75rem; max-width: 100%; }
.question-title { min-width: 0; }
.score-badge { display: inline-block; vertical-align: middle; flex-shrink: 0; padding: .25rem .5rem; border: 1px solid; border-radius: .4rem; font-size: .8rem; font-weight: 650; line-height: 1.3; white-space: nowrap; }
.score-badge[hidden] { display: none; }
.score-correct { color: #16603f; border-color: #9ccdb4; background: #eaf7ef; }
.score-partial { color: #805015; border-color: #dfc38e; background: #fff5df; }
.score-incorrect { color: #a13030; border-color: #e3aaaa; background: #fff0ef; }
.graded .option { cursor: default; }
.graded .option.option-correct { color: #16603f; border-color: #73b38e; background: #edf8f1; }
.graded .option.option-incorrect { color: #a13030; border-color: #cf9292; background: #fff0ef; }
.graded .option.option-missed { color: #805015; border-color: #c5a56a; border-style: dashed; background: #fff8e9; }
.option-feedback-icon { margin-left: auto; flex-shrink: 0; font-weight: 750; line-height: 1.25; }
.explanation { margin: 1rem 0 0; padding: .85rem 1rem; border-left: 3px solid #c5a56a; border-radius: 0 .35rem .35rem 0; background: #fff8e9; color: #5e4b2e; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.summary h2 { margin-top: 0; }
@media (max-width: 640px) { main { margin: 2vh auto; padding: 1rem; } fieldset { padding: .8rem; } }

.rich-content { min-width: 0; white-space: normal; overflow-wrap: anywhere; line-height: 1.6; }
.question-content { margin: .3rem 0 1rem; font-size: 1.08rem; }
.rich-content > :first-child { margin-top: 0; }
.rich-content > :last-child { margin-bottom: 0; }
.option > .rich-content { flex: 1; }
.rich-content pre { overflow-x: auto; padding: .8rem; background: #f2f5f7; border-radius: .4rem; }
.rich-content code { font-size: .9em; background: #f2f5f7; padding: .1em .25em; border-radius: .2rem; }
.rich-content pre code { padding: 0; }
.rich-content .katex-display { overflow-x: auto; overflow-y: hidden; padding: .25rem 0; }
.rich-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.rich-content th, .rich-content td { border: 1px solid #dce3e8; padding: .4rem .7rem; }
.rich-content .eqno { display: flex; align-items: center; gap: 1rem; }
.rich-content .eqno eqn { min-width: 0; flex: 1; }

.rich-content .display-math { display: block; }
.rich-content img { max-width: 100%; height: auto; }

.study-question { min-width: 0; margin: 1.75rem 0; padding: 1.3rem; border: 1px solid #dce3e8; border-radius: .8rem; background: white; }
.study-question h3 { margin: 0 0 1rem; font-size: 1.05rem; }
.study-disclosure { margin-top: .75rem; border: 1px solid #dce3e8; border-radius: .5rem; }
.study-disclosure summary { padding: .85rem 1rem; cursor: pointer; font-weight: 650; color: #087480; }
.study-disclosure summary:focus-visible { outline: 3px solid #168997; outline-offset: 2px; border-radius: .4rem; }
.study-disclosure[open] summary { border-bottom: 1px solid #dce3e8; background: #edf8f8; }
.study-answer { padding: 1rem; }
@media (max-width: 640px) { .study-question { padding: .8rem; } }

.module-tree { list-style: none; margin: 1rem 0 0; padding: 0; }
.module-tree .module-tree { margin: .15rem 0 .35rem .65rem; padding-left: .75rem; border-left: 1px solid #dce3e8; }
.module-tree li { min-width: 0; }
.module-tree summary { padding: .7rem .8rem; cursor: pointer; border-radius: .35rem; overflow-wrap: anywhere; }
.module-tree summary:hover { background: #edf3f6; }
.module-tree summary:focus-visible { outline: 3px solid #168997; outline-offset: -2px; }
.catalog-folder > summary { font-weight: 650; }
.catalog-module[open] > summary { background: #edf8f8; color: #087480; }
.module-metadata { margin: .25rem 0 .7rem 1.5rem; padding: .5rem .9rem 1rem; border-left: 2px solid #a4cdd1; }
.module-metadata .eyebrow { margin-top: .25rem; }
.folder-empty { padding: .2rem 1.5rem .7rem; }
@media (max-width: 640px) {
  .module-tree .module-tree { margin-left: .3rem; padding-left: .4rem; }
  .module-metadata { margin-left: .75rem; }
}
