/* The teaching illustration shares the open paper background used on inner pages. */
body.home-premium.home-editorial .hero-image.hero-stage--teaching {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 24px;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  isolation: auto;
}
body.home-premium.home-editorial .hero-stage--teaching::before,
body.home-premium.home-editorial .hero-stage--teaching::after { display: none !important; }
.hero-teaching-visual { display: flex; align-items: center; justify-content: center; min-height: 0; min-width: 0; }
.hero-teaching-visual img { display: block; width: 100%; height: auto; max-height: 620px; object-fit: contain; }
body.home-premium.home-editorial .hero-stage--teaching .hero-teaching-visual,
body.home-premium.home-editorial .hero-stage--teaching .hero-teaching-visual img {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}
body.home-premium.home-editorial .hero-stage--teaching .hero-stage__rail {
  position: relative !important;
  inset: auto !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  margin: 0 !important;
  transform: none !important;
  border: 1px solid #dce4f0 !important;
  border-radius: 26px !important;
  background: #fff !important;
  box-shadow: none !important;
}
@media (max-width: 999px) {
  .hero-teaching-visual img { max-height: 470px; }
}
@media (max-width: 760px) {
  body.home-premium.home-editorial .hero-image.hero-stage--teaching { gap: 20px; }
  .hero-teaching-visual img { max-height: none; }
}
@media (min-width: 761px) {
  body.home-premium.home-editorial .hero > .container { align-items: stretch !important; }
  body.home-premium.home-editorial .hero-content { padding-bottom: 0 !important; }
  body.home-premium.home-editorial .hero-image.hero-stage--teaching { align-self: stretch !important; margin-block: 0 !important; }
  .hero-teaching-visual { position: relative; }
  .hero-teaching-visual img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: contain; }
}
/* The rating links to the full reviews page. */
body.home-premium .hero-rating__card[href] { text-decoration: none; cursor: pointer; }
body.home-premium .hero-rating__card[href]:hover { border-color: #2457c5; }
body.home-premium .hero-rating__card[href]:focus-visible { outline: 3px solid #89afff; outline-offset: 3px; }
