/* Brand palette from images/logo.png.lossless.webp and images/banner.jpg. Load after academy.css. */
:root {
  --blue: #075b8d;
  --navy: #05234e;
  --muted: #586779;
  --line: #d8e2e8;
  --pale: #edf6fa;
  --brand-cyan: #00c5ea;
  --brand-magenta: #b0008b;
  --page-background: #f8f7f2;
}
body, .view { background: var(--page-background); color: #24354a; }
.topbar {
  background: linear-gradient(115deg, #031d49, #07366a);
  border-bottom: 3px solid var(--brand-cyan);
  padding-top: 18px;
  box-shadow: 0 6px 24px #031d4910;
}
.brand { gap: 14px; }
.brand-logo { display: block; width: 112px; height: 112px; object-fit: contain; border-radius: 50%; flex-shrink: 0; }
.brand small { letter-spacing: 1.7px; }
.topbar nav a.active:after { background: var(--brand-cyan); height: 3px; }
.topbar nav a:hover { color: #91eaff; }
.topbar .channel-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; flex-shrink: 0; white-space: nowrap; border-color: #67d8ee70; color: #fff; }
.brand-banner { display: block; width: 100%; height: auto; aspect-ratio: 3.6; object-fit: cover; object-position: center; border-radius: 12px; margin: 0 0 26px; }
.reference-hero { border-bottom-color: var(--line); }
h1, h2, h3 { color: var(--navy); }
.eyebrow { color: var(--brand-magenta); }
.button { background: #075b8d; border-color: #075b8d; color: #fff; }
.button:hover { background: #043b64; border-color: #043b64; }
.button.outline { background: #fff; color: #075b8d; border-color: #9bbdce; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #0086a1; outline-offset: 3px; }
footer { background: #eeeee8; border-top: 1px solid var(--line); }
footer .brand { color: var(--navy); }
footer .brand-logo { width: 112px; height: 112px; }
@media (max-width: 600px) {
  .brand-logo, footer .brand-logo { width: 88px; height: 88px; }
  .topbar .brand { font-size: 25px; }
  .brand-banner { aspect-ratio: 2; border-radius: 8px; margin-bottom: 20px; }
  .topbar nav a { padding: 12px 8px; font-size: 12px; letter-spacing: .3px; }
}
/* Keep media in its own row: aspect-ratio plus fixed-height side columns
   previously allowed thumbnails to intrude into long lecture titles. */
.lecture-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.lecture-grid .lecture-card { display: flex; flex-direction: column; align-items: stretch; min-width: 0; border-radius: 12px; }
.lecture-card .thumb { width: 100%; height: auto; min-height: 0; max-height: none; aspect-ratio: 16 / 9; flex: none; border-bottom: 1px solid var(--line); }
.lecture-card .thumb img { display: block; width: 100%; height: 100%; object-fit: contain; background: #05234e; }
.lecture-card .lecture-card-body { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 18px 20px 20px; }
.lecture-card h3 { display: block; overflow: visible; -webkit-line-clamp: unset; font-size: 19px; line-height: 1.45; margin: 10px 0 18px; overflow-wrap: anywhere; }
.lecture-card .card-foot { margin-top: auto; line-height: 1.6; font-size: 12px; }
.lecture-card .subject { font-size: 11px; }
.lecture-card .save-button { min-width: 40px; min-height: 40px; }
@media (max-width: 1050px) { .lecture-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .lecture-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

/* Text-first lecture reading, inspired by an encyclopedia article. */
.lecture-reader { color: #202b38; font-size: 18px; line-height: 1.8; }
.lecture-outline { border: 1px solid #c9d3df; border-radius: 4px; background: #f2f5f8; padding: 20px 26px; margin: 12px 0 28px; }
.lecture-outline summary { cursor: pointer; font-weight: 700; font-size: 20px; color: #05234e; }
.lecture-outline ol { columns: 2; column-gap: 40px; padding-left: 26px; margin: 16px 0 0; }
.lecture-outline li { break-inside: avoid; padding: 4px 0 4px 5px; font-size: 16px; line-height: 1.5; }
.lecture-reader a { color: #175a96; text-underline-offset: 3px; }
.lecture-reader a:hover { text-decoration: underline; }
.lecture-source-status { color: #526376; font-size: 15px; border-left: 3px solid #61aacd; padding: 8px 18px; background: #f1f6f8; }
.lecture-reading-body { max-width: 80ch; margin-inline: auto; }
.lecture-text-section { margin: 36px 0; padding: 0; scroll-margin-top: 110px; }
.lecture-text-section h2 { font-family: var(--font-sans); font-size: 29px; font-weight: 400; color: #172e49; line-height: 1.3; border-bottom: 1px solid #b9c8d7; padding-bottom: 9px; margin: 0 0 20px; }
.lecture-text-section p { margin: 1.25em 0; line-height: 1.45; }
.lecture-text-section table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 16px; }
.lecture-text-section td,.lecture-text-section th { border: 1px solid #c9d3df; padding: 12px; min-width: 130px; }
.lecture-text-section th { background: #edf3f8; }
.lecture-reader .notes-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 8px; }
.lecture-reader .notes-toolbar button { padding: 10px 16px; background: #fff; color: #164775; border: 1px solid #aebfd0; border-radius: 5px; cursor: pointer; font: inherit; font-size: 15px; }
.lecture-reader textarea { width: 100%; font: inherit; padding: 18px; border: 1px solid #aebfd0; }
.lecture-practice { border-top: 2px solid #c8d6e4; margin-top: 44px; padding: 24px 0; scroll-margin-top: 110px; }
.lecture-practice h2 { font-size: 24px; margin: 0; }
.lecture-practice div { display: flex; flex-wrap: wrap; gap: 16px; }
.lecture-practice a { display: block; padding: 16px 22px; border: 1px solid #b8cadb; background: #eef5fa; border-radius: 5px; font-weight: 600; }
.lecture-reader :focus-visible { outline: 3px solid #209cc6; outline-offset: 4px; }
@media(max-width: 650px) { .lecture-outline ol { columns: 1; } .lecture-reader { font-size: 17px; } .lecture-text-section h2 { font-size: 25px; } .lecture-outline { padding: 16px; } .lecture-practice a { width: 100%; } }
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Shared system typography: native Apple type on Apple devices, local fallbacks elsewhere. */
body { font-family: var(--font-sans); font-weight: 400; letter-spacing: -0.015em; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
button, input, select, textarea { font-family: var(--font-sans); }
h1, h2, h3, h4 { font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.reference-hero h1 { font-size: clamp(36px, 4.6vw, 64px); font-weight: 600; line-height: 1.07; letter-spacing: -0.04em; max-width: 20ch; margin: 22px 0; }
.reference-hero p { font-size: clamp(20px, 2.1vw, 27px); line-height: 1.45; letter-spacing: -0.018em; max-width: 56ch; }
.section-title h2, .page-heading h1 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; line-height: 1.15; letter-spacing: -0.035em; }
.lesson-heading h1 { font-size: clamp(30px, 3.2vw, 44px); font-weight: 600; line-height: 1.2; letter-spacing: -0.03em; }
.section-title p, .page-heading p { font-size: 20px; line-height: 1.5; letter-spacing: -0.015em; }
.eyebrow { font-weight: 600; letter-spacing: 0.06em; }
.topbar nav a { text-transform: none; font-weight: 500; letter-spacing: -0.01em; }
.button, .channel-link { font-weight: 500; letter-spacing: -0.015em; }
.metrics strong { font-weight: 600; font-size: clamp(30px, 3vw, 42px); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.metrics span { font-size: 15px; letter-spacing: -0.01em; }
.lecture-card h3, .course-card h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; }
.lecture-text-section h2, .prose h2 { font-weight: 600; letter-spacing: -0.025em; }
.lecture-reader, .prose { letter-spacing: -0.01em; }
@media (max-width: 600px) {
  .section-title p, .page-heading p { font-size: 18px; }
  .metrics span { font-size: 13px; }
  .topbar nav a { font-size: 13px; letter-spacing: -0.01em; }
}

/* Compact navigation and focused study workspaces. */
.lecture-reader figcaption, .lecture-reader .figure-credit,
.prose .lecture-reader figcaption { font-size: 12px; line-height: 1.5; font-weight: 400; color: #657181; margin-top: 10px; letter-spacing: 0; overflow-wrap: anywhere; }
.lecture-reader figcaption p { font-size: inherit; line-height: inherit; margin: 0; }
.lecture-outline > details > ol { columns: 1; padding-left: 24px; }
.lecture-outline ol ol { columns: 1; margin: 5px 0 10px; padding-left: 26px; border-left: 1px solid #cfdae5; list-style-type: lower-alpha; }
.lecture-outline > details > ol > li > a { font-weight: 600; }
.lecture-outline ol ol li { padding: 2px 0 2px 4px; font-size: 15px; }
.lecture-text-section h3[id] { scroll-margin-top: 110px; margin-top: 28px; }
.topbar { padding: 8px 32px 6px; gap: 0 20px; min-height: 0; }
.topbar .brand-logo { width: 96px; height: 96px; }
.topbar nav a { padding-top: 8px; padding-bottom: 8px; }
.button, .topbar .channel-link { border-radius: 999px; padding: 11px 22px; min-height: 44px; transition: background-color .18s, box-shadow .18s; }
.button { background: #0071e3; border-color: #0071e3; }
.button:hover { background: #0077ed; border-color: #0077ed; box-shadow: 0 3px 12px #0071e31a; }
.button.outline { background: transparent; border-color: #0071e3; color: #0066cc; }
.button.outline:hover { background: #edf5ff; border-color: #0066cc; }
.button:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; }
:is(#bank-view, #flashcards-view) .page-heading { margin-bottom: 24px; padding-bottom: 8px; }
.bank-symbol { display: none; }
:is(#bank-view, #flashcards-view) .panel { border: 1px solid #e0e5eb; border-radius: 22px; background: #fff; padding: 28px; box-shadow: 0 5px 22px #05234e05; }
:is(#bank-view, #flashcards-view) .panel-head { gap: 16px; flex-wrap: wrap; }
:is(#bank-view, #flashcards-view) .panel-head h2 { font-size: 25px; letter-spacing: -.025em; }
:is(#bank-view, #flashcards-view) .step-pill { border-radius: 999px; background: #f2f6fa; color: #506276; font-size: 10px; padding: 6px 10px; }
:is(#bank-view, #flashcards-view) .bank-stats { gap: 12px; margin-bottom: 24px; }
:is(#bank-view, #flashcards-view) .bank-stat { border: 1px solid #e0e5eb; background: #fff; border-radius: 18px; padding: 18px 22px; }
:is(#bank-view, #flashcards-view) .bank-stat strong { font-weight: 600; letter-spacing: -.035em; color: #075b8d; }
:is(#bank-view, #flashcards-view) select,
:is(#bank-view, #flashcards-view) input:not([type=file]) { border-radius: 12px; background: #fafbfd; border: 1px solid #cbd5df; min-height: 48px; padding: 11px 13px; font-size: 16px; max-width: 100%; }
:is(#bank-view, #flashcards-view) .form-grid { gap: 20px; }
:is(#bank-view, #flashcards-view) .start-row { gap: 16px; flex-wrap: wrap; border-top: 1px solid #edf0f4; padding-top: 22px; margin-top: 24px; }
.flash-card { max-width: 900px; margin-inline: auto; }
.flash-card h2 { font-size: clamp(24px, 2.5vw, 32px); line-height: 1.4; }
.flash-answer { background: #f5f9ff; border-radius: 16px; padding: 24px; }
.flash-ratings { max-width: 900px; margin-inline: auto; gap: 12px; }
.flash-ratings .rating { border-radius: 18px; padding: 16px 12px; min-height: 90px; }
.flash-row { padding: 20px 0; gap: 18px; }
.flash-row-actions { flex-wrap: wrap; gap: 8px; }
.flash-row-actions button { border-radius: 999px; padding: 8px 14px; min-height: 40px; background: #f0f5fb; color: #075b8d; border: 1px solid #d4e0ec; }
.card-collection { margin-top: 24px; }
.card-collection > summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; list-style: none; font-size: 22px; font-weight: 600; }
.card-collection > summary::-webkit-details-marker { display: none; }
.card-collection summary small { display: block; font-size: 15px; font-weight: 400; color: var(--muted); margin-top: 5px; }
.collection-toggle { display: flex; align-items: center; gap: 12px; font-size: 15px; color: #0066cc; }
.card-collection .when-open, .card-collection[open] .when-closed { display: none; }
.card-collection[open] .when-open { display: inline; }
.card-collection[open] .collection-toggle > span:last-child { transform: rotate(180deg); }
.collection-content { margin-top: 24px; border-top: 1px solid #e5eaf0; padding-top: 24px; }
.collection-content .search { width: 100%; min-width: 0; background: transparent; border: 0; padding: 0; }
.collection-content .search input { width: 100%; }
#bank-active .option { border-radius: 14px; padding: 16px; }
#bank-active .feedback { border-radius: 16px; padding: 22px; }
@media (max-width: 700px) {
  .topbar { padding: 6px 18px; gap: 0 12px; }
  .topbar .brand-logo { width: 80px; height: 80px; }
  .topbar nav a { padding: 8px 5px; }
  :is(#bank-view, #flashcards-view) .panel { padding: 20px; border-radius: 18px; }
  .card-collection > summary { font-size: 19px; }
  .card-collection summary small { font-size: 13px; }
  .flash-ratings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flash-row { flex-direction: column; align-items: stretch; }
}
/* Keep sentences together, with a clearer pause between paragraphs. */
.view p, .prose p, .lecture-reader p, .lecture-text-section p,
.reference-hero p, .section-title p, .page-heading p {
  line-height: 1.45;
  margin-block: 1.25em;
}
.question-prompt, .flash-explanation, .feedback { line-height: 1.45; }
.lecture-reader figcaption p { margin: 0; line-height: 1.5; }

/* Expandable course catalogue: compact browsing, detailed learning paths. */
.course-detail-hero { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(0,1fr); gap: 36px; align-items: center; }
#course-header { padding: 32px; background: #fff; border: 1px solid #d9e3ed; border-radius: 22px; margin-bottom: 30px; }
#course-header h1 { font-size: clamp(30px,3.5vw,46px); line-height: 1.15; margin: 16px 0; }
#course-header .course-facts { flex-wrap: wrap; gap: 16px 24px; }
#course-view .panel { border-radius: 18px; }
#course-view .curriculum-row { padding-block: 20px; }
@media(max-width:850px) { .course-detail-hero { grid-template-columns: 1fr; } #course-header { padding: 22px; } }
#courses-view .page-heading { padding: 32px 0 28px; max-width: 800px; }
#courses-view .page-heading h1 { font-size: clamp(38px, 5vw, 62px); }
#courses-view .section-title { align-items: center; gap: 20px; margin-bottom: 24px; }
#courses-view .search { border-radius: 999px; background: white; }
#course-grid { display: flex; flex-direction: column; gap: 16px; }
.course-specialty { margin-bottom: 28px; }
.specialty-heading { display: flex; align-items: baseline; gap: 16px; padding: 14px 0; margin-bottom: 14px; border-bottom: 2px solid #dbe6ef; }
.specialty-heading h2 { margin: 0; font-size: clamp(26px, 3vw, 34px); }
.specialty-heading > span { color: var(--muted); font-size: 14px; }
.specialty-courses { display: flex; flex-direction: column; gap: 14px; }
.course-disclosure { background: #fff; border: 1px solid #d9e3ed; border-radius: 20px; overflow: hidden; box-shadow: 0 3px 14px #05234e04; }
.course-disclosure > summary { list-style: none; display: flex; align-items: center; gap: 24px; padding: 26px 30px; cursor: pointer; }
.course-disclosure > summary::-webkit-details-marker { display: none; }
.course-disclosure > summary:hover { background: #f5f9fd; }
.course-disclosure[open] { border-color: #9cbdd7; box-shadow: 0 12px 35px #05234e0a; }
.course-index { font-size: 24px; font-weight: 600; color: #8ba4b9; min-width: 36px; font-variant-numeric: tabular-nums; }
.course-summary-copy { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.course-summary-title { font-size: clamp(20px, 2vw, 25px); line-height: 1.25; font-weight: 600; letter-spacing: -.025em; color: var(--navy); }
.course-summary-meta { color: var(--muted); font-size: 14px; }
.course-summary-meta > span { padding: 0 8px; }
.course-expand { display: flex; align-items: center; gap: 12px; color: #0066cc; font-size: 14px; }
.course-chevron { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #edf5ff; font-size: 23px; }
.collapse-label, .course-disclosure[open] .expand-label { display: none; }
.course-disclosure[open] .collapse-label { display: inline; }
.course-disclosure[open] .course-chevron { transform: rotate(45deg); }
.course-expanded { border-top: 1px solid #e3eaf1; padding: 30px; }
.course-feature { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.1fr); gap: 32px; align-items: start; }
.course-feature-image { position: relative; display: block; aspect-ratio: 16/9; background: #05234e; border-radius: 14px; overflow: hidden; }
.course-feature-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.course-feature-image > span { position: absolute; bottom: 12px; left: 12px; border-radius: 999px; padding: 8px 14px; background: #fff; color: #05234e; font-size: 13px; font-weight: 600; box-shadow: 0 2px 8px #0003; }
.course-feature-copy h3 { font-size: 27px; margin: 10px 0 14px; }
.course-feature-copy p { color: var(--muted); font-size: 17px; margin: 0 0 22px; }
.course-facts { display: flex; gap: 30px; padding-bottom: 22px; }
.course-facts > span { display: flex; flex-direction: column; color: var(--muted); font-size: 13px; }
.course-facts strong { color: var(--navy); font-size: 19px; font-weight: 600; }
.course-completion { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.course-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 20px 0 12px; }
.course-syllabus { margin-top: 32px; border-top: 1px solid #e3eaf1; padding-top: 24px; }
.course-syllabus-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.course-syllabus-heading h3 { margin: 0; font-size: 22px; }
.course-syllabus-heading > span { font-size: 13px; color: var(--muted); }
.course-syllabus ol { list-style: none; padding: 0; margin: 18px 0 0; }
.course-syllabus li + li { border-top: 1px solid #edf0f4; }
.course-syllabus li a { display: grid; grid-template-columns: 32px minmax(0,1fr) auto; gap: 16px; align-items: center; padding: 15px 8px; font-size: 16px; line-height: 1.4; border-radius: 8px; }
.course-syllabus li a:hover { background: #f1f7fc; color: #0066cc; }
.syllabus-number, .syllabus-duration { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
@media(max-width:700px) {
  .course-disclosure > summary { padding: 20px 16px; gap: 12px; }
  .course-index { display: none; }
  .course-expand > span:not(.course-chevron) { display: none; }
  .course-expanded { padding: 20px 16px; }
  .course-feature { grid-template-columns: 1fr; gap: 24px; }
  .course-syllabus li a { grid-template-columns: 24px minmax(0,1fr); gap: 10px; }
  .syllabus-duration { grid-column: 2; }
  .course-syllabus-heading { align-items: start; flex-direction: column; }
}

/* Consistent, softer emphasis for lecture-note subtopics on all note pages. */
.lecture-text-section :is(h3, h4),
.lecture-text-section :is(h3, h4) strong {
  color: #9b365f;
  font-weight: 500;
  line-height: 1.35;
}
.lecture-text-section h3 { font-size: 1.15em; margin: 1.35em 0 .55em; }
.lecture-text-section h4 { font-size: 1.03em; margin: 1.1em 0 .45em; }
.lecture-text-section ul { padding-inline-start: 1.4em; margin-block: .45em 1.25em; }
.lecture-text-section li { margin-block: .35em; }
.lecture-text-section li::marker { color: #9b365f; }

.privacy-page { max-width: 900px; margin: 0 auto; padding: 28px clamp(16px, 4vw, 48px) 48px; background: #fff; border: 1px solid #dce5ec; border-radius: 18px; }
.privacy-intro h1 { font-size: clamp(34px, 5vw, 52px); margin: 12px 0; }
.privacy-page p, .privacy-page li { font-size: 18px; line-height: 1.55; }
.privacy-page p { margin: 0 0 1.2em; }
.privacy-page h2 { color: #9b365f; font-size: 25px; font-weight: 500; margin: 1.6em 0 .7em; }
.privacy-page section { scroll-margin-top: 130px; }
.privacy-contents { display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 20px; background: #f7f8fa; border-radius: 12px; margin: 26px 0; }
.privacy-contents strong { width: 100%; font-weight: 500; }
.privacy-page a { overflow-wrap: anywhere; text-decoration: underline; text-underline-offset: 3px; }
.cookie-dialog { width: min(540px, calc(100% - 32px)); max-height: 85vh; overflow: auto; border: 1px solid #dce5ec; border-radius: 20px; padding: 28px; color: #16324d; background: #faf9f6; }
.cookie-dialog::backdrop { background: #102d4b80; }
.cookie-dialog h2 { color: #9b365f; font-weight: 500; }
.cookie-dialog label { display: flex; align-items: start; gap: 12px; margin: 18px 0; }
.cookie-dialog input { flex: 0 0 auto; width: 20px; height: 20px; accent-color: #9b365f; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.cookie-actions button, [data-cookie-settings], .video-consent button { border: 1px solid #12618a; background: #fff; color: #075b8d; border-radius: 22px; padding: 10px 16px; cursor: pointer; font: inherit; }
.cookie-actions button { flex: 1 1 130px; }
.video-consent { padding: 30px; background: #f5f7fa; border: 1px solid #dce5ec; border-radius: 12px; text-align: center; }
iframe[data-consent-src][hidden] { display: none !important; }

footer button[data-cookie-settings] {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
  color: inherit;
  font: inherit;
  line-height: inherit;
  cursor: pointer;
  text-align: inherit;
}
footer button[data-cookie-settings]:hover { text-decoration: underline; }
footer button[data-cookie-settings]:focus-visible { outline: 2px solid #075b8d; outline-offset: 4px; }
footer button[data-cookie-settings] { text-decoration: underline; color: #38669b; }

/* Individual question pages: readable cases and clear next steps. */
.question-article { max-width: 880px; margin: 0 auto; padding: 12px 0 40px; }
.question-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; font-size: 15px; color: #536477; margin-bottom: 28px; }
.question-heading h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; margin: 12px 0 16px; }
.question-heading { margin-bottom: 28px; }
.question-case, .question-solution, .question-related { background: #fff; border: 1px solid #dce5ec; border-radius: 18px; margin: 20px 0; }
.question-case { padding: clamp(20px, 4vw, 36px); }
.question-stem { font-size: 20px; line-height: 1.6; margin: 0 0 26px; }
.question-options { padding-left: 30px; margin: 0; }
.question-options li { padding: 13px 16px; margin: 10px 0; background: #f5f8fb; border-radius: 10px; line-height: 1.45; }
.question-options li::marker { color: #075b8d; font-weight: 500; }
.question-solution summary { padding: 22px 26px; cursor: pointer; font-size: 19px; font-weight: 500; color: #9b365f; }
.question-solution summary:focus-visible, .question-practice-button:focus-visible { outline: 3px solid #086caa; outline-offset: 4px; }
.question-solution-body { padding: 0 26px 26px; line-height: 1.55; }
.question-solution-body h2 { font-size: 26px; margin: 10px 0 16px; }
.question-solution-body h3 { color: #9b365f; font-size: 21px; font-weight: 500; margin-top: 28px; }
.question-rationales div { padding: 16px 0; border-bottom: 1px solid #e5ebf1; }
.question-rationales div:last-child { border-bottom: 0; }
.question-rationales dt { font-weight: 500; color: #153956; }
.question-rationales dd { margin: 6px 0 0; color: #46576a; }
.question-related { padding: 24px 26px; }
.question-related h2, .question-next h2 { font-size: 22px; margin: 0 0 12px; font-weight: 500; }
.question-related a { text-decoration: underline; text-underline-offset: 3px; }
.question-next { padding: 28px; border-radius: 18px; background: #eaf2f8; margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.question-next p { margin: 0; line-height: 1.5; }
.question-practice-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 14px 24px; min-height: 48px; background: #075b8d; color: white; border-radius: 999px; text-decoration: none; font-size: 17px; font-weight: 500; white-space: normal; text-align: center; }
.question-practice-button:hover { background: #064b73; color: white; text-decoration: none; }
.question-all-link { font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
@media(max-width: 600px) { .question-practice-button { width: 100%; box-sizing: border-box; } .question-stem { font-size: 18px; } .question-next { padding: 22px; } }
.lecture-text-section .note-label { color: #9b365f; font-weight: 500; }

footer .public-links a,
footer .public-links a[data-cookie-settings] {
  color: #38669b;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
footer .public-links a:focus-visible { outline: 2px solid #075b8d; outline-offset: 4px; }

/* Lists stay ordinary black text; introductions sit outside the list. */
.lecture-text-section li, .lecture-text-section li::marker,
.lecture-text-section .note-list-intro { color: #202124; font-weight: 400; }
.lecture-text-section .note-list-intro { font-size: inherit; margin: 1.2em 0 .45em; }
