:root { color-scheme: light; --blue: #174d79; --blue-dark: #103958; --orange: #c45618; --ink: #253746; --muted: #526674; --line: #d7e0e6; --light: #f3f6f8; --green: #205b39; --red: #982b2b; }
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.65 "Segoe UI", Arial, sans-serif; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
button, input { font: inherit; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
:focus-visible { outline: 3px solid #b34b08; outline-offset: 4px; }
[hidden] { display: none !important; }
.container { width: min(1140px, calc(100% - 40px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 78px; }
.header-inner img { display: block; }
.header-inner a { font-size: .92rem; font-weight: 600; }
.course-banner { background: #20394d; color: #fff; border-bottom: 4px solid #ffb300; padding: 8px 0 15px; }
.course-banner nav { color: #d9e7f1; font-size: .9rem; line-height: 1.5; margin-bottom: 6px; }
.course-banner nav a { color: #d9e7f1; text-decoration: none; }
.course-banner nav a:hover { color: #fff; text-decoration: underline; }
.course-banner nav span { margin-inline: 7px; }
.course-banner h1 { display: flex; align-items: flex-start; gap: 14px; margin: 0; color: #fff; font-size: 36px; line-height: 1.2; font-weight: 400; }
.course-banner .course-number { flex: 0 0 auto; margin-top: 3px; padding: .25em .8em; border-radius: 999px; background: #b34b08; color: #fff; font-size: 24px; line-height: 1; font-weight: 600; letter-spacing: 1px; }
.course-banner .course-title { min-width: 0; }
.eyebrow { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin: 0 0 8px; }
.course-layout { display: grid; grid-template-columns: 255px minmax(0, 1fr); gap: 44px; padding-block: 36px 48px; align-items: start; }
.course-sidebar h2 { margin: 0 0 16px; color: var(--blue); font-size: 1.2rem; }
.course-sidebar h3 { font-size: 1rem; margin: 0 0 8px; }
.course-sidebar ol { list-style: none; margin: 0; padding: 0; }
.course-sidebar li { margin: 0; }
.course-sidebar nav a { display: block; padding: 11px 12px; border-left: 3px solid transparent; text-decoration: none; font-size: .9rem; line-height: 1.45; }
.course-sidebar nav a:hover { background: var(--light); }
.course-sidebar nav a[aria-current="page"] { background: #eaf1f7; border-left-color: var(--orange); color: var(--blue-dark); font-weight: 650; }
.progress-panel { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 22px; }
.progress-panel p { margin: 6px 0; }
progress { display: block; width: 100%; height: 10px; accent-color: var(--blue); margin: 14px 0; }
.small, .muted { color: var(--muted); }
.small { font-size: .84rem; }
.text-button { color: var(--blue); border: 0; background: transparent; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 6px 0; text-align: left; font-size: .9rem; }
main { min-width: 0; }
main:focus { outline: none; }
h2 { line-height: 1.3; font-size: 1.8rem; color: var(--blue-dark); margin: 0 0 18px; }
#study-view > h2 { overflow-wrap: anywhere; }
h3 { font-size: 1.15rem; line-height: 1.4; margin: 24px 0 12px; }
p { margin: 0 0 16px; }
.lead { font-size: 1.12rem; }
.course-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 26px 0 14px; padding: 18px 0; border-block: 1px solid var(--line); }
.course-facts dt { font-size: .8rem; color: var(--muted); }
.course-facts dd { margin: 0; font-size: 1.5rem; font-weight: 650; color: var(--blue-dark); }
.overview-layout { max-width: 920px; padding-block: 36px 48px; }
.overview-layout .module-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.overview-layout .module-card { align-items: flex-start; }
.notice { border-left: 4px solid var(--orange); padding: 14px 18px; background: #fff6ec; margin: 18px 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 24px 0; }
.button { border: 1px solid var(--blue); border-radius: 4px; display: inline-flex; justify-content: center; align-items: center; min-height: 46px; padding: 10px 18px; text-decoration: none; background: var(--blue); color: white; font-size: .95rem; font-weight: 600; line-height: 1.4; }
.button:hover { background: var(--blue-dark); color: #fff; }
.button.secondary { background: white; color: var(--blue); }
.button.secondary:hover { background: var(--light); }
.button.danger { background: var(--red); border-color: var(--red); }
.module-list { display: grid; gap: 12px; margin-top: 22px; }
.module-card { display: flex; align-items: center; gap: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 5px; text-decoration: none; }
.module-card:hover { border-color: var(--blue); background: var(--light); }
.module-number { display: grid; place-items: center; border-radius: 50%; background: #eaf1f7; color: var(--blue); flex: 0 0 38px; height: 38px; font-weight: 700; }
.module-card strong { display: block; line-height: 1.4; }
.module-card .small { display: block; margin-top: 4px; }
.module-weight { margin-left: auto; white-space: nowrap; color: var(--muted); font-size: .9rem; }
.section-tabs { display: flex; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 18px; margin: 20px 0 26px; }
.section-tabs a { padding: 7px 14px; text-decoration: none; border: 1px solid var(--line); border-radius: 4px; }
.section-tabs a[aria-current="page"] { background: var(--blue); color: white; border-color: var(--blue); }
.lesson { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-bottom: 22px; }
.lesson h3 { margin-top: 0; }
.category-index ol { padding-left: 24px; }
.category-index li { margin-bottom: 14px; overflow-wrap: anywhere; }
.category-discussion ul, .category-discussion ol { padding-left: 24px; }
.category-discussion li { margin-bottom: 16px; }
.category-discussion h4 { margin: 20px 0 10px; color: var(--blue-dark); }
.comparison-table { width: 100%; border-collapse: collapse; margin: 20px 0; table-layout: fixed; overflow-wrap: anywhere; }
.comparison-table caption { text-align: left; margin-bottom: 12px; }
.comparison-table th, .comparison-table td { padding: 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.comparison-table thead th { background: var(--light); color: var(--blue-dark); }
.comparison-label { display: none; }
@media (max-width: 760px) {
  .comparison-table, .comparison-table tbody, .comparison-table tr, .comparison-table th, .comparison-table td { display: block; }
  .comparison-table caption { display: block; }
  .comparison-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .comparison-table tbody tr { border: 1px solid var(--line); border-radius: 4px; margin-bottom: 20px; }
  .comparison-table tbody th, .comparison-table tbody td { border: 0; padding: 12px 14px; }
  .comparison-table tbody th { background: var(--light); font-weight: normal; }
  .comparison-label { display: block; margin-bottom: 4px; font-weight: 700; color: var(--blue-dark); }
}
.study-note { overflow-wrap: anywhere; }
.study-note .workplace-example { border-left: 3px solid var(--blue); padding: 12px 16px; background: var(--light); }
.study-video { overflow-wrap: anywhere; }
.study-video p { margin: 6px 0 0; }
.question-meta { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .85rem; margin-bottom: 18px; }
.exam-timer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; padding: 12px 16px; margin-bottom: 20px; background: #edf4f8; border: 1px solid #b6cbd9; border-radius: 4px; }
.exam-timer strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.exam-timer p { flex-basis: 100%; margin: 0; }
.exam-timer p:empty { display: none; }
.exam-timer.time-low { background: #fff6ec; border-color: #a74415; }
.flashcard { padding: 24px; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 6px; background: var(--light); margin-bottom: 20px; overflow-wrap: anywhere; }
.flashcard h3 { margin-top: 0; line-height: 1.6; }
.flashcard-answer { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 8px; }
.flashcard-answer h4 { margin-bottom: 8px; }
.flashcard-correct { font-weight: 600; }
.flashcard-ratings .button[aria-pressed="true"] { background: var(--blue); color: white; border-color: var(--blue); }
.flashcard-module-options, .term-size-options { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
fieldset { padding: 0; margin: 0; border: 0; min-width: 0; }
legend { font-size: 1.13rem; font-weight: 600; line-height: 1.55; padding: 0; margin-bottom: 20px; width: 100%; }
.choices { display: grid; gap: 12px; }
.choice { display: flex; align-items: flex-start; gap: 12px; padding: 15px; border: 1px solid var(--line); border-radius: 4px; cursor: pointer; line-height: 1.5; }
.choice:has(input:checked) { background: #edf4fa; border-color: var(--blue); box-shadow: inset 3px 0 var(--blue); }
.choice input { margin: 5px 0 0; flex: 0 0 18px; width: 18px; height: 18px; accent-color: var(--blue); }
.choice:has(input:disabled) { cursor: default; }
.feedback { padding: 20px; border: 1px solid var(--line); background: var(--light); margin-top: 20px; border-radius: 5px; }
.feedback h3 { margin-top: 0; }
.correct { color: var(--green); }
.incorrect { color: var(--red); }
.feedback ul { padding-left: 22px; }
.feedback li { margin-bottom: 12px; }
.error { color: var(--red); font-weight: 600; }
.page-navigation { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 24px; margin-top: 32px; }
.score { font-size: 2.6rem; line-height: 1.2; font-weight: 700; color: var(--blue); margin: 12px 0; }
.term-review-status { font-weight: 600; }
.term-review-completed { padding: 8px 10px; border-left: 3px solid var(--blue); background: var(--light); color: var(--blue-dark); }
.term-original-label { display: block; margin-bottom: 6px; }
.term-review-scores { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }
.term-review-scores p { margin: 0 0 10px; }
.term-score-gain { color: var(--blue-dark); }
.term-recovery { margin: 24px 0; padding: 16px; background: var(--light); border: 1px solid var(--line); border-radius: 4px; }
.term-recovery h3 { margin-top: 0; }
.term-recovery p:last-child { margin-bottom: 0; }
.term-recovery progress { height: 18px; }
.term-recovery-success { padding: 12px; border-left: 4px solid var(--green); background: #fff; color: var(--green); }
.term-history { margin: 24px 0; padding-block: 16px; border-block: 1px solid var(--line); }
.term-history h3 { margin-top: 0; }
.term-history-entry { padding-block: 12px; border-top: 1px solid var(--line); }
.term-history-entry h4 { margin: 0 0 8px; }
.term-history-choice { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 8px; cursor: pointer; }
.term-history-choice input { width: 18px; height: 18px; }
#term-history-message:empty { display: none; }
.term-print-report, .exam-score-print-report { display: none; }
.exam-score-history { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.exam-score-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 16px 0 28px; overflow-wrap: anywhere; }
.exam-score-table caption { text-align: left; font-weight: bold; margin-bottom: 8px; }
.exam-score-table th, .exam-score-table td { text-align: left; vertical-align: top; padding: 10px; border: 1px solid var(--line); }
.exam-score-table th:first-child { width: 50%; }
@media (max-width: 480px) {
  .exam-score-table { font-size: .82rem; }
  .exam-score-table th, .exam-score-table td { padding: 6px; }
  .exam-score-table th:first-child { width: 42%; }
}
.results-table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: .94rem; }
.results-table th, .results-table td { padding: 12px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.results-table th { background: var(--light); }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
details .feedback { margin-bottom: 10px; }
.reference-list li { margin-bottom: 12px; }
.bibliography { overflow-wrap: anywhere; }
.bibliography li { margin-bottom: 24px; }
.bibliography p { margin: 4px 0 0; }
.glossary h3 { font-weight: 700; color: var(--blue-dark); margin-bottom: 8px; }
.glossary-terms { list-style: none; padding: 0; margin: 0 0 24px; }
.glossary-terms li { margin-bottom: 12px; }
.glossary-return { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-inline: 6px; font-size: 1.2rem; }
.glossary-return, .glossary-return:hover, .glossary-return:focus { color: var(--red); text-decoration: none; }
.glossary-return span { font-weight: 700; }
.glossary-search { display: block; width: 100%; max-width: 400px; padding: 10px; font-size: 16px; margin-bottom: 20px; border: 1px solid #ccc; border-radius: 4px; background: #fff; color: var(--ink); }
.course-notes { border-top: 1px solid var(--line); padding: 24px 0; color: var(--muted); font-size: .8rem; }
.course-notes p { margin-bottom: 10px; }
.study-footer { border-top: 3px solid #bcbcbc; background: #060604; color: #fff; padding: 14px 0 30px; font-size: 13px; line-height: 1.65; }
.study-footer .footer-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; align-items: start; }
.study-footer details { min-width: 0; border: 0; padding: 0; }
.study-footer summary { display: block; list-style: none; padding: 0; font-weight: 400; min-height: 64px; }
.study-footer summary::-webkit-details-marker { display: none; }
.study-footer .footer-heading { display: block; font-size: 24px; font-weight: 300; line-height: 1.5; margin-bottom: 4px; }
.study-footer .footer-heading::before { content: "+ "; }
.study-footer details[open] .footer-heading::before { content: "− "; }
.study-footer .footer-teaser { display: block; }
.study-footer .footer-detail { padding-top: 16px; }
.study-footer .footer-detail p { margin: 0 0 14px; }
.study-footer .footer-detail p:last-child { margin-bottom: 0; }
.study-footer summary:focus-visible { outline-color: #ffb300; }
dialog { border: 1px solid var(--line); border-radius: 8px; padding: 28px; max-width: min(520px, calc(100% - 32px)); color: var(--ink); }
dialog::backdrop { background: rgb(16 35 52 / 55%); }
.skip-link { position: absolute; left: 12px; top: -100px; z-index: 10; background: white; padding: 12px; }
.skip-link:focus { top: 10px; }
.outline-toggle { display: none; }
@media (max-width: 760px) {
  .study-footer .footer-columns { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .container { width: calc(100% - 32px); }
  .course-layout { grid-template-columns: minmax(0, 1fr); gap: 26px; padding-top: 20px; }
  .course-banner h1 { gap: 10px; font-size: 28px; }
  .course-banner .course-number { margin-top: 3px; font-size: 20px; }
  .outline-toggle { display: block; width: 100%; text-align: left; background: var(--light); color: var(--blue-dark); border: 1px solid var(--line); border-radius: 4px; padding: 12px 16px; font-weight: 650; }
  .outline-toggle::after { content: " +"; float: right; }
  .outline-toggle[aria-expanded="true"]::after { content: " −"; }
  .outline-toggle[aria-expanded="false"] + #course-outline { display: none; }
  #course-outline { padding-top: 16px; }
  .module-card { gap: 12px; padding: 14px; }
  .module-weight { font-size: .8rem; }
  .module-number { flex-basis: 30px; height: 30px; }
  h2 { font-size: 1.55rem; }
  .feedback { padding: 16px; }
  .header-inner { min-height: 68px; gap: 12px; }
  .results-table { font-size: .86rem; }
  .course-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .overview-layout .module-list { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
@media print {
  .exam-question-content { display: none !important; }
  body.exam-score-printing > :not(.exam-score-print-report) { display: none !important; }
  body.exam-score-printing { background: #fff; color: #000; }
  body.exam-score-printing .exam-score-print-report { display: block; font: 11pt/1.4 Arial, sans-serif; }
  .exam-score-print-report h1 { font-size: 20pt; }
  .exam-score-print-report h2 { font-size: 14pt; }
  .exam-score-print-report h3 { margin-top: 20pt; font-size: 12pt; break-after: avoid; }
  .exam-score-print-report table { font-size: 10pt; }
  .exam-score-print-report th, .exam-score-print-report td { border: 1px solid #999; }
  .exam-score-print-report thead { display: table-header-group; }
  .exam-score-print-report tr { break-inside: avoid; }
  body.term-printing > :not(.term-print-report) { display: none !important; }
  body.term-printing { background: #fff; color: #000; }
  body.term-printing .term-print-report { display: block; font: 11pt/1.4 Arial, sans-serif; }
  .term-print-report h1 { font-size: 20pt; }
  .term-print-report h2 { margin-top: 22pt; font-size: 14pt; color: #000; break-after: avoid; }
  .term-print-report table { width: 100%; border-collapse: collapse; table-layout: fixed; margin: 12pt 0; }
  .term-print-report th, .term-print-report td { border: 1px solid #999; padding: 7pt; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
  .term-print-report thead { display: table-header-group; }
  .term-print-report tr { break-inside: avoid; }
  .term-print-report caption { text-align: left; font-weight: bold; margin-bottom: 6pt; }
}

/* Student reading path and exam review controls. */
.reading-check { display: inline-block; color: #175b36; font-size: .9rem; font-weight: 700; }
.reading-controls .actions { margin-top: 16px; }
.reading-controls .button, #reading-progress .button { white-space: normal; overflow-wrap: anywhere; }
#reading-progress .button { width: 100%; font-size: .9rem; }
.exam-question-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)); gap: 8px; margin: 16px 0; }
.exam-jump { min-height: 48px; border: 2px solid #617786; border-radius: 5px; background: #fff; color: #17384b; font: inherit; cursor: pointer; }
.exam-jump.answered { background: #e6f3eb; border-color: #287343; }
.exam-jump.flagged { border-color: #995100; box-shadow: inset 0 -4px #d78518; }
.exam-jump[aria-current="step"] { outline: 3px solid #17384b; outline-offset: 2px; }
.exam-jump:focus-visible { outline: 3px solid #005fcc; outline-offset: 3px; }
.exam-navigator { margin: 20px 0; }
#term-settings { margin: 16px 0; }
#term-question { scroll-margin-top: 20px; }
@media (max-width: 600px) {
  .reading-controls .actions { align-items: stretch; }
  .reading-controls .button { width: 100%; }
}

/* Connected case study: independent of practice and reading progress. */
.case-study { overflow-wrap: anywhere; }
.case-map { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 24px 0 32px; }
.case-map .button { justify-content: flex-start; text-align: left; }
.case-stage { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 28px; }
.case-stage h3 { margin-top: 0; scroll-margin-top: 24px; }
.case-stage h4 { margin: 0 0 8px; color: var(--blue-dark); }
.case-decision { background: var(--light); border-left: 4px solid var(--blue); padding: 16px 20px; margin: 20px 0; }
.case-decision p { margin-bottom: 0; }
.case-response { border: 1px solid var(--line); border-radius: 5px; margin: 20px 0; }
.case-response summary { padding: 14px 18px; min-height: 48px; cursor: pointer; color: var(--blue); font-weight: 600; }
.case-response[open] summary { border-bottom: 1px solid var(--line); background: var(--light); }
.case-response > div { padding: 18px 20px 2px; }
.case-connection { font-size: .95rem; }
.case-sources { border-top: 1px solid var(--line); margin-top: 28px; padding-top: 16px; }
.case-sources li { margin-bottom: 12px; }
@media (max-width: 480px) { .case-map { grid-template-columns: 1fr; } .case-response > div, .case-decision { padding-inline: 14px; } }

/* Mixed-practice mode selection uses the same accessible controls at every width. */
.exam-mode-picker { display: grid; gap: .85rem; margin: 1.5rem 0; padding: 1rem; border: 1px solid #cbd5df; border-radius: .3rem; }
.exam-mode-picker legend { font-weight: 700; padding: 0 .4rem; }
.exam-mode-picker label { display: flex; align-items: baseline; gap: .6rem; cursor: pointer; }
.exam-mode-picker input { flex: 0 0 auto; }

/* Keep registered marks proportional in the OHST overview heading. */
.course-notes h2 .course-trademark { font-size: .55em; line-height: 0; vertical-align: super; }
