/* WikiGuide previews stay whole and within their source resolution. */
.hero.hero-lesson-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 1fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  height: auto;
  min-height: 510px;
  padding: 42px clamp(28px, 4vw, 58px) 78px;
  background: #291a23;
}
.hero.hero-lesson-feature::before {
  background: radial-gradient(ellipse at 80% 42%, #76364b80, transparent 62%), linear-gradient(110deg, #21131d, #361e2b);
}
.hero.hero-lesson-feature::after { background: linear-gradient(0deg, #170f17aa, transparent 35%); }
.hero-lesson-feature .hero-copy {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  margin: 0;
  padding: 0;
}
.hero.hero-lesson-feature h1.hero-title-lesson {
  max-width: 15ch;
  font-size: clamp(32px, 4.1vw, 58px);
  line-height: 1.07;
  letter-spacing: -.04em;
  text-wrap: balance;
  margin-bottom: 20px;
}
.hero-lesson-feature .hero-author { display: none; }
.hero-lesson-feature .hero-information { max-width: 43ch; }
.hero-lesson-feature .hero-description { max-width: 40ch; color: #eadde4; font-size: 15px; line-height: 1.55; }
.lesson-hero-stage {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  z-index: 2;
  width: min(100%, 440px);
  justify-self: end;
  padding: 8px;
  border: 1px solid #efd0dc2e;
  border-radius: 16px;
  background: #150d14;
  box-shadow: 0 26px 48px #1007107a, inset 0 1px 0 #ffffff15;
}
.lesson-hero-screen {
  display: block;
  position: relative;
  width: 100%;
  padding: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 0;
  border-radius: 9px;
  background: #000;
  cursor: pointer;
}
.lesson-hero-screen img { display: block; width: 100%; height: 100%; object-fit: contain; }
.lesson-hero-play {
  position: absolute;
  inset: auto 15px 15px auto;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid #ffffff82;
  border-radius: 50%;
  color: #fff;
  background: #502035ee;
  box-shadow: 0 5px 16px #0004;
}
.lesson-hero-play svg { width: 25px; height: 25px; margin-left: 2px; }
.lesson-hero-screen:focus-visible { outline: 3px solid #f1bdcd; outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .lesson-hero-screen:hover .lesson-hero-play { background: #8c304d; }
}
@media (max-width: 960px) and (min-width: 721px) {
  .hero.hero-lesson-feature { grid-template-columns: minmax(0, 1fr) minmax(220px, .9fr); gap: 24px; padding-inline: 28px; }
  .hero.hero-lesson-feature h1.hero-title-lesson { font-size: 36px; }
  .hero-lesson-feature .hero-description { font-size: 13px; }
}
@media (max-width: 720px) {
  .hero.hero-lesson-feature {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-content: center;
    min-height: 540px;
    padding: 22px 20px 64px;
  }
  .lesson-hero-stage { grid-column: 1; grid-row: 1; width: min(100%, 280px); justify-self: center; padding: 5px; border-radius: 12px; }
  .lesson-hero-screen { border-radius: 7px; }
  .lesson-hero-play { width: 44px; height: 44px; right: 10px; bottom: 10px; }
  .lesson-hero-play svg { width: 23px; height: 23px; }
  .hero-lesson-feature .hero-copy { grid-column: 1; grid-row: 2; width: 100%; max-width: none; }
  .hero.hero-lesson-feature h1.hero-title-lesson { max-width: none; font-size: clamp(27px, 7.5vw, 34px); line-height: 1.08; margin-bottom: 12px; }
  .hero-lesson-feature .hero-information { max-width: none; }
  .hero-lesson-feature .hero-description { max-width: none; font-size: 12px; line-height: 1.5; -webkit-line-clamp: 2; }
  .hero.hero-lesson-feature .meta { font-size: 11px; }
  .hero-lesson-feature .hero-buttons { margin-top: 16px; }
}
@media (forced-colors: active) {
  .lesson-hero-stage,.lesson-hero-play { border-color: CanvasText; }
  .lesson-hero-play { background: Canvas; color: CanvasText; }
}
