/* Homepage styles stay scoped so the chapter decks retain their own theme. */
body.course-home { background: #f7f8fc; color: #192b43; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.course-home #quarto-content { display: block; }
.course-home main.content { width: 100%; max-width: none; padding: 0; margin: 0; }
.course-home #title-block-header { display: none; }
.course-home .page-columns > * { grid-column: 1 / -1; }
.course-home .navbar { box-shadow: none; }
.course-home a { text-underline-offset: 3px; }
.course-home a:focus-visible, .course-home summary:focus-visible { outline: 3px solid #e3aa35; outline-offset: 4px; border-radius: 3px; }
.course-home .course-shell { max-width: 1180px; margin: auto; padding: 0 36px; }
.course-home .course-hero { background: #eef3ff; border-bottom: 1px solid #dae3f3; padding: 52px 0 46px; }
.course-home .course-eyebrow { font-size: 12px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: #2457b7; margin-bottom: 17px; }
.course-home .course-hero h1 { max-width: 760px; font: 750 clamp(32px, 4vw, 48px)/1.12 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.035em; color: #102846; margin: 0 0 20px; }
.course-home .course-intro { max-width: 740px; color: #46576e; font-size: 18px; line-height: 1.65; margin-bottom: 22px; }
.course-home .course-instructor { font-size: 14px; color: #46576e; margin: 0 0 28px; }
.course-home .course-instructor strong { color: #192b43; }
.course-home .course-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; font-size: 14px; }
.course-home .course-facts span { border-left: 2px solid #a8bce5; padding-left: 12px; }
.course-home .course-layout { display: grid; grid-template-columns: minmax(0, 1fr) 248px; gap: 34px; padding-top: 38px; padding-bottom: 64px; align-items: start; }
.course-home .course-layout > .curriculum { grid-column: 1; grid-row: 1; min-width: 0; }
.course-home .course-layout > .course-aside { grid-column: 2; grid-row: 1; min-width: 0; }
.course-home .curriculum-header { margin-bottom: 24px; }
.course-home .curriculum-header h2 { font-size: 25px; font-weight: 700; border: 0; margin: 0 0 8px; padding: 0; color: #192b43; }
.course-home .curriculum-header p { color: #617087; font-size: 14px; margin: 0; }
.course-home .chapter-card { background: #fff; border: 1px solid #dce2ec; border-radius: 12px; margin-bottom: 22px; overflow: hidden; scroll-margin-top: 90px; box-shadow: 0 2px 4px #182b4603; }
.course-home .chapter-heading { padding: 24px 26px 14px; display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.course-home .chapter-kicker { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; font-weight: 750; color: #607086; margin: 0 0 7px; }
.course-home .chapter-heading h3 { font-size: 21px; line-height: 1.3; color: #152e4b; font-weight: 700; margin: 0; }
.course-home .chapter-open { display: inline-flex; gap: 10px; align-items: center; white-space: nowrap; border: 1px solid #1755bc; border-radius: 6px; padding: 10px 13px; color: #1755bc; text-decoration: none; font-size: 13px; font-weight: 700; }
.course-home .chapter-open:hover { background: #edf3ff; }
.course-home .chapter-description { margin: 0; padding: 0 26px 18px; color: #617087; font-size: 14px; line-height: 1.6; }
.course-home .chapter-sections > summary { background: #fafbfd; border-top: 1px solid #edf0f5; padding: 13px 26px; font-size: 12px; color: #53667e; cursor: pointer; }
.course-home .chapter-sections[open] > summary { border-bottom: 1px solid #edf0f5; }
.course-home .lesson-list { list-style: none; padding: 0; margin: 0; }
.course-home .lesson { padding: 16px 26px; border-bottom: 1px solid #edf0f5; }
.course-home .lesson:last-child { border-bottom: 0; }
.course-home .lesson-top { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.course-home .lesson-number { color: #8591a2; font-size: 12px; font-variant-numeric: tabular-nums; }
.course-home .lesson-title { font-size: 14px; line-height: 1.5; color: #243c5b; font-weight: 550; text-decoration: none; }
.course-home .lesson-title:hover { color: #1755bc; text-decoration: underline; }
.course-home .lesson-video-link { display: inline-flex; gap: 7px; align-items: center; color: #1557bf; font-size: 12px; font-weight: 650; white-space: nowrap; text-decoration: none; }
.course-home .lesson-video-link:hover { text-decoration: underline; }
.course-home .video-pending { font-size: 11px; color: #778496; white-space: nowrap; }
.course-home .lesson-actions { display: flex; align-items: center; gap: 16px; }
.course-home .lesson-practice-link { color: #1755bc; font-size: 12px; font-weight: 650; white-space: nowrap; text-decoration: none; }
.course-home .lesson-practice-link:hover { text-decoration: underline; }
.course-home .chapter-quiz-row { border-top: 1px solid #dce2ec; background: #eef3ff; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 26px; }
.course-home .chapter-quiz-row strong { display: block; font-size: 14px; }
.course-home .chapter-quiz-row span { display: block; font-size: 12px; color: #617087; margin-top: 4px; }
.course-home .chapter-quiz-link { background: #1755bc; color: white; border-radius: 6px; padding: 9px 13px; font-size: 12px; font-weight: 650; white-space: nowrap; text-decoration: none; }
.course-home .chapter-quiz-link:hover { color: white; background: #10499f; }
.course-home .video-panel { margin: 18px 0 2px 38px; }
.course-home .video-panel[hidden] { display: none; }
.course-home .video-frame { aspect-ratio: 16 / 9; background: #102846; border-radius: 7px; overflow: hidden; }
.course-home .video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.course-home .video-caption { margin: 10px 0 0; font-size: 12px; color: #617087; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.course-home .course-aside { position: sticky; top: 90px; }
.course-home .aside-card { background: white; border: 1px solid #dce2ec; border-radius: 10px; padding: 22px; margin-bottom: 16px; }
.course-home .aside-card h2 { border: 0; margin: 0 0 17px; padding: 0; font-size: 15px; font-weight: 700; }
.course-home .chapter-jump { display: flex; align-items: baseline; gap: 10px; color: #435775; font-size: 13px; padding: 10px 0; text-decoration: none; }
.course-home .chapter-jump:hover { color: #1755bc; }
.course-home .chapter-jump span { font-size: 11px; color: #8b98aa; }
.course-home .aside-card p { font-size: 13px; color: #617087; line-height: 1.7; margin: 0 0 16px; }
.course-home .book-link { display: block; text-align: center; background: #1557bf; color: white; padding: 11px; border-radius: 6px; text-decoration: none; font-size: 13px; font-weight: 650; }
.course-home .book-link:hover { background: #10499f; color: white; }
@media (max-width: 960px) {
  .course-home .course-layout { grid-template-columns: minmax(0, 1fr); }
  .course-home .course-layout > .course-aside { grid-column: 1; grid-row: 2; }
  .course-home .course-aside { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
}
@media (max-width: 600px) {
  .course-home .course-shell { padding-left: 18px; padding-right: 18px; }
  .course-home .course-hero { padding: 34px 0; }
  .course-home .course-intro { font-size: 16px; }
  .course-home .course-layout { padding-top: 26px; gap: 16px; }
  .course-home .chapter-heading { padding: 19px 17px 12px; flex-wrap: wrap; }
  .course-home .chapter-heading h3 { font-size: 20px; }
  .course-home .chapter-open { padding: 8px 11px; }
  .course-home .chapter-description { padding: 0 17px 16px; }
  .course-home .chapter-sections > summary { padding: 12px 17px; }
  .course-home .lesson { padding: 15px 17px; }
  .course-home .lesson-top { grid-template-columns: 20px minmax(0, 1fr); gap: 5px 9px; }
  .course-home .lesson-actions { grid-column: 2; margin-top: 5px; flex-wrap: wrap; gap: 8px 16px; }
  .course-home .chapter-quiz-row { padding: 18px 17px; flex-wrap: wrap; }
  .course-home .video-panel { margin-left: 0; }
  .course-home .course-aside { display: block; }
}
