/* Compact inset cover: top-right duration and a high-contrast photo action. */
.chapter-cover,.chapter-cover.current.topic-current{display:block;width:100%;min-width:0;min-height:0;padding:0;background:#171b23;color:#fff;border:0;border-radius:24px;overflow:hidden;position:relative;align-self:start}
.chapter-cover .chapter-content{padding:24px;min-width:0;display:flex;flex-direction:column}
.chapter-cover .chapter-meta{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:12px;margin:0 0 14px}
.chapter-cover .chapter-week{display:flex;align-items:center;gap:10px;min-width:0}
.chapter-cover .chapter-week-number{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:9px;background:var(--week-accent);color:var(--week-on-accent,#171b23);font-size:15px;font-weight:750;flex:none}
.chapter-cover .chapter-week-number svg{width:20px;height:20px}
.chapter-cover .chapter-week-copy{display:grid;gap:2px;min-width:0}
.chapter-cover .chapter-week-label{font-size:10px;font-weight:650;line-height:1.4;letter-spacing:.025em;text-transform:uppercase;color:#c9cdd5}
.chapter-cover .chapter-state{display:inline-flex;align-items:center;gap:4px;font-size:10px;color:#b6becb;line-height:1.4}
.chapter-cover .chapter-state svg{width:12px;height:12px}
.chapter-cover .chapter-time{margin:6px 0 0;gap:6px;color:#c9cdd5;font-size:12px;line-height:1.5;white-space:nowrap}
.chapter-cover .chapter-time svg{width:16px;height:16px}
.chapter-cover .chapter-content>.chapter-title{font-size:32px;line-height:1.18;letter-spacing:-.8px;font-weight:750;color:#fff;max-width:none;margin:0 0 10px;overflow-wrap:break-word;text-wrap:balance}
.chapter-cover .chapter-content>.chapter-goal{font-size:17px;line-height:1.5;letter-spacing:0;color:#c9cdd5;max-width:none;margin:0;overflow-wrap:break-word}
.chapter-cover .chapter-media{display:block;position:relative;width:100%;min-height:180px;aspect-ratio:3/1;padding:0;margin:18px 0 0;background:#edf0f7;border:0;border-radius:14px;overflow:hidden;isolation:isolate}
.chapter-cover .chapter-media>img{display:block;position:absolute;inset:0;width:100%;height:100%;max-height:none;object-fit:cover;object-position:50% 50%;border-radius:14px;margin:0;flex:none}
.chapter-cover .chapter-media:after{content:"";display:block;position:absolute;inset:0;background:linear-gradient(28deg,rgba(12,23,48,.76),rgba(12,23,48,.20) 34%,transparent 66%),linear-gradient(28deg,color-mix(in srgb,var(--week-color) 38%,transparent),transparent 58%);pointer-events:none;z-index:1}
.chapter-cover .chapter-photo-link.video-cover{position:absolute;inset:0;width:100%;height:100%;display:block;aspect-ratio:auto;background:none;border-radius:14px;z-index:2}
.chapter-cover .chapter-photo-link.video-cover:after{display:none}
.chapter-cover .chapter-photo-link:focus-visible{outline:3px solid #fff;outline-offset:-5px}
.chapter-cover .chapter-actions{position:absolute;left:18px;right:18px;bottom:18px;z-index:3;display:flex;align-items:center;margin:0;pointer-events:none}
.chapter-cover .chapter-actions>.btn.primary{min-height:48px;max-width:100%;padding:12px 20px;font-size:15px;background:#fff;color:#171b23;white-space:normal;line-height:1.5;gap:16px;flex:none;pointer-events:auto;border:1px solid rgba(23,27,35,.16);box-shadow:0 4px 18px rgba(12,23,48,.22)}
.chapter-cover .chapter-actions>.btn.primary:hover{background:#eaf0ff}
.chapter-cover .chapter-actions>.btn.primary:focus-visible{outline:3px solid #3157ff;outline-offset:3px;box-shadow:0 0 0 6px #fff}
.chapter-cover .chapter-actions>.btn.primary svg{width:20px;height:20px;flex-shrink:0}
.two-col:has(>.chapter-cover)>.route{display:grid;grid-template-rows:repeat(5,minmax(82px,1fr))}
.shell[data-week]{padding-top:24px}
.shell[data-week]>.course-steps{margin-bottom:24px}
@media(min-width:761px){.module-body:has(>.module-chapter-cover){align-items:stretch}.module-body>.module-chapter-cover{align-self:stretch;display:flex}.module-chapter-cover>.chapter-content{flex:1}.module-chapter-cover .chapter-media{flex:1;aspect-ratio:auto}}
@media(max-width:1050px){.chapter-cover .chapter-content{padding:22px}.chapter-cover .chapter-content>.chapter-title{font-size:28px}.chapter-cover .chapter-content>.chapter-goal{font-size:16px}}
@media(max-width:760px){.chapter-cover,.chapter-cover.current.topic-current{min-height:0;border-radius:20px;padding:0}.chapter-cover .chapter-content{padding:20px}.chapter-cover .chapter-meta{gap:8px;margin-bottom:14px}.chapter-cover .chapter-week-number{width:32px;height:32px;font-size:14px}.chapter-cover .chapter-time{font-size:11px}.chapter-cover .chapter-time svg{width:15px;height:15px}.chapter-cover .chapter-content>.chapter-title{font-size:27px;line-height:1.22;letter-spacing:-.6px;margin-bottom:10px;text-wrap:pretty}.chapter-cover .chapter-content>.chapter-goal{font-size:16px;line-height:1.5}.chapter-cover .chapter-media{margin-top:16px;min-height:156px;aspect-ratio:2/1;border-radius:12px}.chapter-cover .chapter-media>img,.chapter-cover .chapter-photo-link.video-cover{border-radius:12px}.chapter-cover .chapter-actions{left:12px;right:12px;bottom:12px}.chapter-cover .chapter-actions>.btn.primary{min-height:46px;max-width:100%;padding:11px 14px;font-size:14px;gap:12px}.shell[data-week]{padding-top:18px}.shell[data-week]>.course-steps{margin-bottom:20px}}
@media(max-width:360px){.chapter-cover .chapter-content{padding:18px}.chapter-cover .chapter-meta{gap:6px}.chapter-cover .chapter-week{gap:8px}.chapter-cover .chapter-week-label{font-size:9px}.chapter-cover .chapter-content>.chapter-title{font-size:25px}.chapter-cover .chapter-content>.chapter-goal{font-size:15px}.chapter-cover .chapter-actions{left:10px;right:10px;bottom:10px}.chapter-cover .chapter-actions>.btn.primary{font-size:13px;padding:10px 12px}}
