/* Course imagery overlaps the copy inside the site's content margins. */
.course-overlay {
  --course-gutter:max(40px,calc((100vw - 1240px)/2));
  --course-common-top:clamp(32px,5svh,48px);
  --course-copy-top:calc(var(--course-common-top) + 51.2px + var(--school-heading-size)*1.2 + 8px);
  max-width:none; padding-inline:0;
}
.course-overlay .preview-story-sticky { padding:0; }
.course-overlay .hero-shell { position:relative; height:100%; }
.course-overlay .hero-common { position:absolute; z-index:3; top:var(--course-common-top); left:var(--course-gutter); right:var(--course-gutter); }
.course-overlay .preview-course-deck { margin-top:0; }
.course-overlay .preview-course { min-height:calc(100svh - var(--header-h,76px)); }
.course-overlay .hero-initial { padding:var(--course-copy-top) var(--course-gutter) 40px; align-items:start; }
.course-overlay .hero-initial .hero-copy { min-width:0; width:100%; }
.course-overlay .hero-initial .hero-showcase { align-self:start; transform:translateY(calc(var(--school-heading-size)*-1.2)); }
.course-overlay .preview-course:not(.hero-initial) { display:block; position:relative; isolation:isolate; padding:0; color:var(--school-ink); background:var(--school-paper); }
.course-overlay .preview-course:not(.hero-initial) .hero-copy {
  position:relative; z-index:2; width:min(680px,58vw); margin-left:var(--course-gutter);
  padding:var(--course-copy-top) 0 72px;
}
.course-overlay .preview-course:not(.hero-initial) .hero-title-action { color:var(--course-accent,var(--school-ink)); }
.course-overlay .preview-course:not(.hero-initial) .hero-description { width:min(460px,45vw); }
.course-overlay .preview-course:not(.hero-initial) .hero-showcase {
  position:absolute; top:max(80px,calc(var(--course-copy-top) - 80px)); right:var(--course-gutter);
  height:clamp(300px,52svh,500px); width:calc((100% - var(--course-gutter)*2)*.72); max-width:860px;
  margin:0; transform:none;
}
.course-overlay .preview-course:not(.hero-initial) .hero-image-frame { position:absolute; inset:0; height:100%; width:100%; padding:0; border-radius:24px; }
.course-overlay .preview-course:not(.hero-initial) .hero-image {
  position:absolute; inset:0; display:block; width:100%; max-width:none; height:100%; max-height:none; object-fit:cover; object-position:center;
}
.course-overlay .hero-game { --course-accent:#b85620; }
.course-overlay .hero-app { --course-accent:#196db7; }
.course-overlay .hero-data { --course-accent:#00816e; }
.course-overlay .preview-course:not(.hero-initial) .hero-showcase::after {
  content:""; position:absolute; inset:0; border-radius:24px; pointer-events:none;
  background:linear-gradient(90deg,#fff,rgba(255,255,255,.9) 18%,rgba(255,255,255,.65) 35%,rgba(255,255,255,.18) 50%,transparent 68%);
}
.course-overlay .preview-course:not(.hero-initial) .hero-caption {
  position:absolute; right:0; bottom:-30px; z-index:2; max-width:100%;
  margin:0; padding:0; color:var(--school-muted); background:transparent; line-height:1.6;
}
.course-overlay .preview-course:not(.hero-initial) .school-button-outline { color:var(--school-ink); border-color:var(--school-ink); background:rgba(255,255,255,.95); box-shadow:none; }
.course-overlay .preview-course:not(.hero-initial) .school-button-outline:hover { color:var(--school-ink); background:var(--school-surface); }
.course-overlay .preview-course:not(.hero-initial) .hero-description mark { color:var(--school-ink)!important; background:var(--school-highlight)!important; padding:0 .12em; box-decoration-break:clone; -webkit-box-decoration-break:clone; }
.course-overlay .school-button-outline:focus-visible { outline-color:#0764c3; }
@media(max-width:833.98px) {
  .course-overlay { --course-gutter:22px; --course-common-top:24px; --course-copy-top:calc(24px + 45.4px + var(--school-heading-size)*1.2 + 8px); }
  .course-overlay .preview-course:not(.hero-initial) .hero-copy { width:calc(100% - var(--course-gutter)*2); padding-bottom:72px; }
  .course-overlay .preview-course:not(.hero-initial) .hero-description { width:100%; }
  .course-overlay .preview-course:not(.hero-initial) .hero-showcase { top:calc(var(--course-copy-top) + var(--school-heading-size)*1.2 + 80px); width:calc(100% - var(--course-gutter)*2); height:clamp(240px,42svh,360px); }
  .course-overlay .preview-course:not(.hero-initial) .hero-showcase::after { background:linear-gradient(180deg,#fff,rgba(255,255,255,.86) 20%,rgba(255,255,255,.68) 35%,rgba(255,255,255,.08) 50%,transparent 68%); }
  .course-overlay .hero-initial { padding-bottom:24px; }
  .course-overlay .hero-initial .hero-showcase { transform:none; }
}
