.course-intro { padding: clamp(2.5rem, 6vw, 5rem) 0; background: #e9f1f5; }
.course-intro .tag { margin-top: 1rem; }
.course-intro h1 { max-width: 22ch; font-size: clamp(2.12rem, 5vw, 4rem); margin: .4rem 0 .85rem; }
.course-intro .lead { margin-bottom: .6rem; }
.course-library, .course-content { padding-block: clamp(2rem, 5vw, 4rem); }
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.course-card { border: 1px solid #ccdadd; border-radius: 12px; background: #fff; display: flex; flex-direction: column; padding: 1.25rem; }
.course-card h2 { font-size: 1.4rem; margin: .15rem 0 .4rem; }
.course-card h2 a, .course-link { text-underline-offset: .18em; color: #243c4b; }
.course-card p { margin: .28rem 0 .68rem; }
.course-topic { font-weight: 700; color: #215c61; font-size: .91rem; }
.course-meta { font-size: .94rem; color: #45606b; }
.course-card .course-link { font-weight: 700; margin-top: auto; align-self: start; min-height: 44px; display: inline-flex; align-items: center; }
.course-lesson-layout { display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(14rem, 1fr); gap: clamp(1rem, 4vw, 3rem); align-items: start; }
.course-modules > h2, .course-aside h2 { margin: 0 0 .65rem; font-size: 1.4rem; }
.course-module { margin-bottom: .85rem; border: 1px solid #c5d4d9; border-radius: 10px; background: white; overflow: clip; scroll-margin-top: 5rem; }
.course-module > summary { cursor: pointer; padding: .85rem 1rem; color: #213e49; font-weight: 700; }
.course-module[open] > summary { background: #eaf2f5; }
.course-done > summary .course-module-number { color: #22644e; }
.course-module-number { font-size: .85rem; margin-right: .55rem; color: #506773; }
.course-module-title { font-size: 1rem; }
.course-module-content { padding: 1rem; }
.course-module-content > :first-child { margin-top: 0; }
.course-module-content h3 { font-size: 1.08rem; margin-bottom: .35rem; }
.course-practice { padding: .7rem 1rem; border-radius: 8px; background: #eff5f1; margin-block: 1rem; }
.course-practice :first-child { margin-top: 0; }
.course-practice :last-child { margin-bottom: 0; }
.course-check { min-inline-size: 0; border: 1px solid #c5d4d9; border-radius: 8px; margin: 1rem 0; padding: .75rem; }
.course-check legend { font-weight: 750; padding-inline: .25rem; }
.course-check > p:first-of-type { margin-top: 0; }
.course-choice { display: flex; align-items: center; gap: .65rem; font-weight: 400; min-height: 44px; padding: .45rem .55rem; border-top: 1px solid #e3ebee; cursor: pointer; }
.course-choice:hover { background: #edf4f6; }
.course-choice input[type=radio] { width: 1rem; margin: 0; flex: 0 0 auto; accent-color: #236066; }
.course-button { color: #173e43; background: #eaf3f2; border: 1px solid #73a0a4; border-radius: 6px; padding: .48rem .8rem; margin-top: .6rem; min-height: 44px; }
.course-button:hover, .course-button[aria-pressed=true] { background: #1d565c; color: #fff; }
.course-feedback { margin: .45rem 0; color: #305765; }
.course-feedback[data-result=correct] { color: #235c43; }
.course-answer summary { cursor: pointer; font-weight: 650; }
.course-aside { background: #edf4f5; border-left: 3px solid #6a959d; padding: 1.15rem; border-radius: 0 9px 9px 0; }
.course-aside a { overflow-wrap: anywhere; }
.course-aside ul { padding-left: 1.2rem; }
.course-progress { margin-block: .75rem 1.2rem; }
.course-progress progress { display: block; width: 100%; accent-color: #20636a; }
.course-progress p { margin: .3rem 0; font-weight: 650; }
@media (max-width: 760px) {
  .course-lesson-layout { grid-template-columns: minmax(0, 1fr); }
}

.course-access-tag { display: inline-block; margin-left: .55rem; padding: .1rem .35rem; border-radius: 4px; background: #dcebe7; color: #274e4a; font: 650 .78rem/1.5 system-ui; white-space: nowrap; }
.course-access { padding: .8rem 1rem; background: #edf5f2; border-left: 3px solid #649080; }
.course-access p:first-child { margin-top: 0; }
.course-subscribe { display: inline-flex; align-items: center; margin-inline-end: .45rem; text-decoration: none; font-weight: 700; }
.course-unit { margin-bottom: 1.1rem; padding-bottom: .75rem; border-bottom: 1px solid #d2e1e2; }
.course-unit h3 { color: #254b52; font-size: 1.25rem; }
.course-unit-check { margin: .6rem 0 .3rem; background: #f1f6f7; padding: .55rem .75rem; border-radius: 8px; }
.course-unit-check > summary { cursor: pointer; font-weight: 700; }
.course-unit-check > summary span { font-size: .85rem; font-weight: 400; margin-left: .35rem; }
.course-reading ul { padding-left: 1.3rem; }
.course-reading li { overflow-wrap: anywhere; }
.course-example { border-collapse: collapse; width: min(100%, 28rem); text-align: start; margin: .75rem 0; }
.course-example caption { text-align: start; margin-bottom: .3rem; font-weight: 650; }
.course-example th, .course-example td { text-align: start; padding: .4rem .55rem; border-bottom: 1px solid #ccdadd; }
