/* Homepage compositions requested in the visual review. */
@media (max-width: 760px) {
  body.home-premium.home-editorial .steps .steps-grid {
    display: flex !important;
    flex-wrap: nowrap;
    gap: 16px !important;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 2px 18px;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 2px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #b5c9eb transparent;
    align-items: stretch;
  }
  body.home-premium.home-editorial .steps .steps-grid > .step-card {
    display: flex !important;
    flex-direction: column;
    flex: 0 0 calc(100% - 24px);
    width: calc(100% - 24px) !important;
    min-width: 0 !important;
    height: auto !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    gap: 12px !important;
    box-sizing: border-box;
  }
  body.home-premium.home-editorial .steps .steps-grid > .step-card > * { min-width: 0; max-width: 100%; }
}
/* The old hero reset disables transform animations; translate keeps this entrance independent. */
body.home-premium.home-editorial :is(.hero-title, .hero-badge--large) {
  animation: homepage-welcome .55s ease-out both !important;
}
body.home-premium.home-editorial .hero-title { animation-delay: .09s !important; }
@keyframes homepage-welcome { from { translate: 0 9px; } to { translate: 0 0; } }
body.home-premium.home-editorial .hero-subtitle--about > p { margin: 0 0 16px; color: inherit; font: inherit; line-height: inherit; }
body.home-premium.home-editorial .hero-subtitle--about > p:last-child { margin-bottom: 0; }
body.home-premium.home-editorial .pricing-preview-card {
  transition: border-color .2s, box-shadow .2s !important;
}
body.home-premium.home-editorial .pricing-preview-card:is(:hover, :focus-within) {
  border-color: #2457c5 !important;
  box-shadow: 0 0 0 2px #2457c5, 0 14px 32px rgb(36 87 197 / 12%) !important;
  transform: none !important;
}
body.home-premium.home-editorial .pricing-preview-card > a:is(:hover, :focus-visible) {
  background: #2457c5 !important;
  border-color: #2457c5 !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 5px 16px rgb(36 87 197 / 24%) !important;
}
.trial-curly-arrow { position: absolute; left: 0; width: 100%; overflow: visible; pointer-events: none; z-index: 2; color: #6e8ccb; }
.trial-curly-arrow path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trial-curly-arrow__line { stroke-dasharray: 5 7; }
@media (max-width: 760px) { .trial-curly-arrow { opacity: .7; } .trial-curly-arrow path { stroke-width: 2.5; } }
body.home-editorial {
  --editorial-blue: #2459c7;
  --editorial-ink: #10243f;
}

body.home-premium.home-editorial .hero {
  min-height: 0 !important;
  padding-top: 24px !important;
}

body.home-premium.home-editorial .hero > .container {
  align-items: start !important;
}

body.home-premium.home-editorial .hero-content {
  padding-top: 0 !important;
}

body.home-premium.home-editorial.school-site :is(p, .faq-answer, .child-journey__columns li, .child-journey__summary, .parent-guide-slide p) {
  font-size: 18px !important;
  line-height: 1.65 !important;
}

body.home-premium.home-editorial.school-site :is(.hero-stage__rail p, .form-privacy, .testimonial-author span, .child-journey__footer p) {
  font-size: 16px !important;
}

body.home-editorial :is(.steps, .child-journey, .testimonials, .teacher-trust, .learning-timeline, .pricing-preview, .faq) {
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding-top: clamp(80px, 7vw, 112px) !important;
}

body.home-editorial .section-ornament {
  position: absolute;
  z-index: -1;
  top: 14px;
  width: clamp(46px, 6vw, 86px);
  pointer-events: none;
}

body.home-editorial .section-ornament--right {
  right: clamp(12px, 2.5vw, 48px);
  rotate: 12deg;
}

body.home-editorial .section-ornament--left {
  left: clamp(12px, 2.5vw, 48px);
  rotate: -12deg;
}

body.home-editorial .section-ornament img {
  display: block;
  width: 100%;
  height: auto;
  filter: grayscale(1) sepia(1) hue-rotate(176deg) saturate(3) brightness(.82);
  opacity: .85;
}

/* Photo, quote and attribution overlap as three separate surfaces. */
body.home-premium.home-editorial .testimonials .testimonials-grid .testimonial-card {
  display: grid;
  grid-template-columns: 50% minmax(0, 50%);
  grid-template-rows: minmax(40px, auto) minmax(100px, 1fr) auto;
  gap: 0;
  min-height: 510px;
  padding: 22px 4px 14px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible;
}

body.home-premium.home-editorial .testimonial-photo-slot {
  grid-area: 1 / 1 / 4 / 3;
  align-self: stretch;
  width: 74%;
  min-height: 420px;
  margin: 0 0 0 5%;
  aspect-ratio: auto;
  border-radius: 22px !important;
  overflow: hidden;
}

body.home-premium.home-editorial .testimonial-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body.home-premium.home-editorial .testimonial-text {
  grid-area: 1 / 2 / 3 / 3;
  z-index: 2;
  align-self: start;
  margin: 20px 0 28px;
  padding: 22px;
  border: 1px solid #d8e2f5;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 30px rgb(16 36 63 / 9%);
  color: #10243f;
  font-size: 18px;
  line-height: 1.65;
}

body.home-premium.home-editorial .testimonial-meta {
  grid-area: 3 / 1 / 4 / 3;
  z-index: 3;
  justify-self: start;
  width: min(80%, 330px);
  margin: 0 0 -12px;
}

body.home-premium.home-editorial .testimonial-author {
  display: grid;
  gap: 6px;
  padding: 18px 22px;
  border-radius: 16px;
  background: #10243f;
  box-shadow: 0 8px 20px rgb(16 36 63 / 12%);
  color: #fff;
  font-size: 17px;
}

body.home-premium.home-editorial .testimonial-author span {
  color: #d8e4fa;
}

/* Teacher portrait above the actual lesson screenshot. */
body.home-premium.home-editorial .teacher-trust-layout {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) !important;
  row-gap: 32px !important;
}

body.home-premium.home-editorial .teacher-trust-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  padding-top: 32px;
}

body.home-premium.home-editorial .teacher-points {
  grid-column: 1;
  grid-row: 2;
  grid-template-columns: minmax(0, 1fr);
  align-self: start;
}

body.home-premium.home-editorial .teacher-media-column {
  display: grid;
  grid-column: 2;
  grid-row: 1 / 3;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 24px !important;
}

body.home-premium.home-editorial .teacher-photo-panel {
  aspect-ratio: 1 !important;
  min-height: 360px !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.home-premium.home-editorial .teacher-photo-cutout {
  inset: 0 auto 0 50% !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

body.home-premium.home-editorial .teacher-photo-piece {
  width: 18% !important;
  max-width: 105px;
  left: 0 !important;
  bottom: 14% !important;
  opacity: 1;
  filter: grayscale(1) sepia(1) hue-rotate(176deg) saturate(3) brightness(.95) !important;
}

body.home-premium.home-editorial .teacher-photo-knight {
  position: absolute;
  z-index: 2;
  bottom: 22%;
  right: 0;
  width: 22%;
  filter: grayscale(1) sepia(1) hue-rotate(176deg) saturate(3) brightness(.95);
}

body.home-premium.home-editorial .teacher-lesson-slot {
  aspect-ratio: auto !important;
}

body.home-premium.home-editorial .teacher-lesson-slot img {
  width: 100%;
  height: auto;
  object-fit: contain !important;
}

body.home-premium.home-editorial .teacher-lesson-slot figcaption {
  position: relative;
  inset: auto !important;
  width: auto;
  max-width: none;
  margin: 12px !important;
  font-size: 16px !important;
}

/* Full illustrations and consistent titles across the five outcomes. */
body.home-premium.home-editorial .result-section .result-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

body.home-premium.home-editorial .result-section .result-card:is(:first-child, :not(:first-child)) {
  padding: 12px 12px 22px !important;
  grid-template: auto 1fr / minmax(0, 1fr);
  gap: 18px;
}

body.home-premium.home-editorial .result-card img {
  width: 100%;
  max-width: none;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
}

body.home-premium.home-editorial .result-section .result-card:is(:first-child, :not(:first-child)) h3 {
  margin: 0;
  font-size: clamp(17px, 1.4vw, 21px) !important;
  line-height: 1.35;
}

body.home-editorial .timeline-illustration {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin-bottom: 16px;
  border-radius: 14px;
  background: #fcf6ee;
}

@media (max-width: 1100px) {
  body.home-premium.home-editorial .result-section .result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  body.home-premium.home-editorial .teacher-photo-panel {
    min-height: 300px !important;
  }
}

@media (max-width: 760px) {
  body.home-premium.home-editorial.school-site :is(p, .faq-answer, .child-journey__columns li, .child-journey__summary, .parent-guide-slide p) {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  body.home-editorial .section-ornament {
    width: 42px;
    top: 10px;
  }

  body.home-premium.home-editorial .teacher-trust-layout {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.home-premium.home-editorial .teacher-trust-copy {
    grid-column: 1;
    grid-row: 1;
    padding-top: 0;
  }

  body.home-premium.home-editorial .teacher-media-column {
    grid-column: 1;
    grid-row: 2;
  }

  body.home-premium.home-editorial .teacher-points {
    grid-column: 1;
    grid-row: 3;
  }

  body.home-premium.home-editorial .teacher-photo-panel {
    min-height: 0 !important;
    aspect-ratio: 1 !important;
  }

  body.home-premium.home-editorial .testimonials .testimonials-grid .testimonial-card {
    grid-template-columns: 50% minmax(0, 50%);
    min-height: 560px;
    padding-inline: 0 !important;
  }

  body.home-premium.home-editorial .testimonial-photo-slot {
    width: 82%;
    min-height: 510px;
    margin-left: 3%;
  }

  body.home-premium.home-editorial .testimonial-text {
    padding: 16px;
    font-size: 16px;
    line-height: 1.6;
  }

  body.home-premium.home-editorial .testimonial-author {
    padding: 14px 16px;
    font-size: 16px;
  }

  body.home-premium.home-editorial .result-section .result-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.home-premium.home-editorial .result-section .result-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 6px);
    justify-self: center;
  }

  body.home-editorial .learning-timeline-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen {
  body.home-editorial .section-ornament.is-revealed img {
    animation: editorial-ornament-float 5s ease-in-out 3;
  }

  body.home-editorial :is(.result-card img, .timeline-illustration) {
    transition: transform .45s cubic-bezier(.22, 1, .36, 1);
  }

  body.home-editorial :is(.result-card, .learning-timeline-grid article):hover img {
    transform: translateY(-5px);
  }

  @keyframes editorial-ornament-float {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -7px; }
  }
}

body.home-premium.home-editorial .testimonial-card--artem .testimonial-photo-slot img {
  object-position: 70% center;
}

body.home-premium.home-editorial .testimonial-card--alisa .testimonial-photo-slot img {
  object-position: 60% center;
}

body.home-premium.home-editorial .teacher-point > span {
  color: var(--editorial-blue) !important;
}

body.home-premium.home-editorial .teacher-point > strong {
  font-size: 18px !important;
  line-height: 1.45;
}

@media (max-width: 760px) {
  body.home-premium.home-editorial .teacher-point > strong {
    font-size: 17px !important;
  }
}

/* Requested homepage revision: equally sized learning panels. */
body.home-premium.home-editorial .homepage-learning-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 28px;
  padding-block: 48px;
}
body.home-premium.home-editorial .homepage-learning-pair > section {
  min-width: 0;
  margin: 0;
  padding: clamp(20px, 3vw, 38px) 0 !important;
  border-radius: 24px;
  background: #edf3ff;
}
body.home-premium.home-editorial .homepage-learning-pair > section > .container {
  width: 100%;
  max-width: none;
  padding-inline: clamp(16px, 2vw, 28px);
  box-sizing: border-box;
}
body.home-premium.home-editorial .homepage-learning-pair .section-title { font-size: clamp(26px, 2.6vw, 38px) !important; }
body.home-premium.home-editorial .homepage-learning-pair .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px; margin-top: 24px; }
body.home-premium.home-editorial .homepage-learning-pair .result-card { height: 100%; box-sizing: border-box; }
body.home-premium.home-editorial .homepage-learning-pair .result-card img { max-height: 145px; object-fit: contain; }
body.home-premium.home-editorial .homepage-learning-pair .result-card:last-child { grid-column: 1 / -1; width: calc(50% - 7px); justify-self: center; }
body.home-premium.home-editorial .hero-trust--duration { display: block !important; }
body.home-premium.home-editorial .hero-trust--duration .hero-trust-item { width: fit-content; max-width: 100%; padding: 14px 18px; border: 1px solid #d8e2f5; border-radius: 16px; background: #edf3ff; box-sizing: border-box; }
body.home-premium.home-editorial .teacher-media-column { gap: 0 !important; }
body.home-premium.home-editorial .teacher-photo-cutout { object-position: center bottom !important; }
body.home-premium.home-editorial .teacher-lesson-slot { margin: 0 !important; border-radius: 0 0 24px 24px !important; }
@media (max-width: 999px) {
  body.home-premium.home-editorial .homepage-learning-pair { grid-template-columns: minmax(0, 1fr); }
}
/* Four outcomes opposite four age/pace cards. */
body.home-premium.home-editorial .homepage-learning-pair .result-card:last-child {
  grid-column: auto !important;
  width: 100% !important;
  justify-self: stretch;
}
body.home-premium.home-editorial .homepage-learning-pair :is(.result-grid, .advantages-grid) {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-auto-rows: 1fr;
  gap: 14px !important;
}
body.home-premium.home-editorial .homepage-learning-pair .advantage-card:last-child { grid-column: auto !important; }
@media (min-width: 1000px) {
  body.home-premium.home-editorial .homepage-learning-pair { grid-template-rows: auto auto 1fr; row-gap: 16px; }
  body.home-premium.home-editorial .homepage-learning-pair > section {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
    padding: 28px !important;
  }
  body.home-premium.home-editorial .homepage-learning-pair > section > .container { display: contents; }
  body.home-premium.home-editorial .homepage-learning-pair .section-title { grid-row: 1; margin: 0 !important; align-self: start; }
  body.home-premium.home-editorial .homepage-learning-pair .section-lead { grid-row: 2; margin: 0 !important; }
  body.home-premium.home-editorial .homepage-learning-pair :is(.result-grid, .advantages-grid) {
    grid-row: 3;
    margin: 0 !important;
    align-self: stretch;
    grid-template-rows: repeat(2, minmax(240px, 1fr));
  }
}
/* Hero and trial explanation form one continuous introduction. */
body.home-premium.home-editorial .hero {
  padding-bottom: 20px !important;
  border-bottom: 0 !important;
  margin-bottom: 0 !important;
  background: var(--school-paper, #faf9f6) !important;
}
body.home-premium.home-editorial .hero + .steps {
  padding-top: 24px !important;
  margin-top: 0 !important;
  border-top: 0 !important;
  box-shadow: none !important;
}
body.home-premium.home-editorial .hero::after,
body.home-premium.home-editorial .hero + .steps::before { content: none !important; }
/* Trial cards without numbered badges. */
body.home-premium.home-editorial .steps .step-card {
  grid-template-columns: minmax(0, 1fr) !important;
}
body.home-premium.home-editorial .steps .step-card h3 {
  grid-column: 1 / -1;
  margin-left: 0;
}
/* Outcomes presented as illustrated milestones, matching the learning stages. */
body.home-premium.home-editorial .result-section .result-card.result-card--milestone {
  display: grid;
  grid-template: auto auto auto 1fr / minmax(0, 1fr) !important;
  gap: 6px;
  padding: 16px !important;
  border: 1px solid #d0dffd !important;
  border-radius: 18px !important;
  background: #fff !important;
  text-align: left;
  align-content: start;
  align-items: start;
}
body.home-premium.home-editorial .homepage-learning-pair .result-card--milestone img {
  aspect-ratio: 4 / 3;
  height: auto;
  width: 100%;
  max-height: none;
  object-fit: contain;
  margin: 0 0 8px;
  border-radius: 12px;
  background: #fcf6ee;
}
body.home-premium.home-editorial .result-card--milestone > span {
  color: #2459c7;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}
body.home-premium.home-editorial .result-card--milestone > p {
  margin: 0;
  color: #10243f;
  font-size: 15px !important;
  line-height: 1.5 !important;
}
/* Milestones use a vertical flow; legacy grid areas must not create implicit columns. */
body.home-premium.home-editorial .result-section .result-card.result-card--milestone {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  min-width: 0;
  gap: 8px;
  text-align: left !important;
}
body.home-premium.home-editorial .result-section .result-card--milestone > * {
  grid-area: auto !important;
  min-width: 0;
  max-width: 100% !important;
  width: auto;
  align-self: stretch;
  text-align: left !important;
}
body.home-premium.home-editorial .result-section .result-card--milestone > h3 {
  margin: 0 !important;
  font-size: clamp(17px, 1.45vw, 21px) !important;
  line-height: 1.3 !important;
  overflow-wrap: normal;
  word-break: normal;
}
body.home-premium.home-editorial .result-section .result-card--milestone > p {
  margin: 0 !important;
  overflow-wrap: normal;
  word-break: normal;
}
/* Mobile learning cards: one readable card per swipe. */
@media (max-width: 760px) {
  body.home-premium.home-editorial.school-site .homepage-learning-pair > section > .container {
    width: calc(100% - 32px) !important;
    max-width: none !important;
    margin-inline: auto !important;
    padding-inline: 0 !important;
    box-sizing: border-box;
  }
  body.home-premium.home-editorial .homepage-learning-pair :is(.advantages-grid, .result-grid) {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 0;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    gap: 16px !important;
    padding: 4px 0 16px;
    margin-top: 24px !important;
    scrollbar-width: thin;
    scrollbar-color: #b5c9eb transparent;
    align-items: stretch;
  }
  body.home-premium.home-editorial .homepage-learning-pair :is(.advantages-grid, .result-grid) > :is(.advantage-card, .result-card) {
    flex: 0 0 calc(100% - 24px);
    width: calc(100% - 24px) !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    padding: 22px !important;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 12px;
  }
  body.home-premium.home-editorial .homepage-learning-pair .advantage-card > * { grid-area: auto !important; min-width: 0; max-width: 100%; }
  body.home-premium.home-editorial .homepage-learning-pair .advantage-icon { align-self: flex-start; }
  body.home-premium.home-editorial .homepage-learning-pair .advantage-card h3 { margin: 0 !important; overflow-wrap: normal; font-size: 20px !important; line-height: 1.35; }
  body.home-premium.home-editorial .homepage-learning-pair .advantage-card p { margin: 0 !important; }
  body.home-premium.home-editorial .homepage-learning-pair .result-card--milestone img { width: 100% !important; max-height: 210px; }
}

/* A warm brand accent makes the first-subscription offer easy to notice. */
body.home-premium.home-editorial .pricing-preview .pricing-discount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin: 24px auto 0;
  padding: 8px 22px 8px 8px;
  border: 1px solid #efb227;
  border-radius: 999px;
  background: #ffcf55;
  color: #10243f;
  box-shadow: 0 6px 18px rgb(184 124 13 / 12%);
}
body.home-premium.home-editorial .pricing-discount strong {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  background: #10243f;
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
body.home-premium.home-editorial .pricing-discount span {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}
body.home-premium.home-editorial .pricing-discount + .pricing-preview-grid {
  margin-top: 28px !important;
}
@media (max-width: 480px) {
  body.home-premium.home-editorial .pricing-preview .pricing-discount { gap: 10px; padding-right: 16px; }
  body.home-premium.home-editorial .pricing-discount strong { font-size: 23px; padding: 8px 12px; }
  body.home-premium.home-editorial .pricing-discount span { font-size: 15px; }
}

/* The post-pricing note must not inherit the intro's negative top margin. */
body.home-premium.home-editorial .pricing-preview-grid + .section-lead {
  position: static !important;
  margin: 28px auto 0 !important;
  padding: 0;
  max-width: 760px;
  text-align: center;
  color: var(--school-muted, #596579);
}
/* Match the introductory copy to its left-aligned headings. */
body.home-premium.home-editorial .homepage-learning-pair > section > .container > .section-lead {
  text-align: left !important;
  margin-inline: 0 !important;
}
.homepage-learning-pair .age-card .age-mark {
  display: block;
  height: 44px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  justify-self: start;
  align-self: start;
}
/* All approach cards share the same white surface. */
body.home-premium.home-editorial .homepage-learning-pair .age-card.advantage-card {
  background: #fff !important;
}
/* Source illustrations are square: preserve their native ratio without side bands. */
body.home-premium.home-editorial .homepage-learning-pair .result-section .result-card--milestone > img {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: 1 / 1 !important;
  object-fit: cover !important;
  background: transparent;
}
/* Teacher copy and lesson media share a common bottom edge. */
@media (min-width: 761px) {
  body.home-premium.home-editorial .teacher-trust-layout {
    align-items: stretch !important;
    grid-template-rows: auto minmax(0, 1fr);
  }
  body.home-premium.home-editorial .teacher-points {
    display: grid;
    grid-template-rows: repeat(3, minmax(0, 1fr));
    align-self: stretch;
    margin-top: 0 !important;
  }
  body.home-premium.home-editorial .teacher-media-column {
    grid-template-rows: auto auto !important;
    align-self: stretch;
  }
}
body.home-premium.home-editorial .teacher-lesson-slot {
  display: flex;
  flex-direction: column;
  border-radius: 18px !important;
  overflow: hidden !important;
}
body.home-premium.home-editorial .teacher-lesson-slot figcaption {
  position: static !important;
  order: -1;
  width: auto;
  margin: 0 !important;
  padding: 12px 16px !important;
  border-radius: 0 !important;
  background: #10243f;
  color: #fff;
  font-size: 16px !important;
  line-height: 1.4;
}
body.home-premium.home-editorial .teacher-lesson-slot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0 !important;
}
@media (min-width: 761px) {
  body.home-premium.home-editorial .teacher-trust-layout { grid-template-rows: auto auto; }
  body.home-premium.home-editorial .teacher-points { grid-template-rows: repeat(3, auto); }
  body.home-premium.home-editorial .teacher-media-column {
    min-height: 0;
    grid-template-rows: minmax(0, 1fr) auto !important;
  }
  body.home-premium.home-editorial .teacher-photo-panel {
    aspect-ratio: auto !important;
    min-height: 0 !important;
    height: 100% !important;
  }
}
body.home-premium.home-editorial .pricing-preview-card .pricing-preview-label {
  width: fit-content;
  max-width: 100%;
  align-self: center;
  justify-self: center;
  margin-inline: auto;
  text-align: center;
}
body.home-premium.home-editorial .pricing-preview-card:has(.pricing-recommendation) {
  position: relative;
  overflow: visible !important;
}
body.home-premium.home-editorial .pricing-recommendation {
  position: absolute;
  z-index: 2;
  top: -18px;
  right: 16px;
  display: inline-block;
  padding: 6px 12px;
  border: 2px solid #fff;
  border-radius: 12px;
  background: #ffcf55;
  color: #10243f;
  box-shadow: 0 4px 12px rgb(16 36 63 / 13%);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  transform: rotate(4deg);
  pointer-events: none;
}
@media (max-width: 480px) {
  body.home-premium.home-editorial .pricing-recommendation {
    right: 12px;
    padding: 6px 12px;
    font-size: 13px;
  }
}
/* Compact trial information and a rating in the mascot's bow-tie colour. */
body.home-premium.home-editorial .hero-trust--duration .hero-trust-item {
  min-height: 0 !important;
  height: auto !important;
  padding: 10px 14px !important;
}
body.home-premium.home-editorial .hero-trust--duration .hero-trust-item,
body.home-premium.home-editorial .hero-rating__card > span {
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 850;
  line-height: 1.4 !important;
  color: var(--school-text, #172033);
}
body.home-premium.home-editorial .hero-rating__card > strong {
  color: #f5a20a !important;
}
/* Keep CTA and information pills on one consistent vertical rhythm. */
body.home-premium.home-editorial .hero-conversion {
  --hero-info-height: 56px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-top: 24px;
}
body.home-premium.home-editorial .hero-conversion > :is(.hero-actions, .hero-rating, .hero-trust) {
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100%;
}
body.home-premium.home-editorial .hero-conversion :is(.hero-rating__card, .hero-trust--duration .hero-trust-item) {
  display: flex !important;
  align-items: center;
  box-sizing: border-box;
  height: var(--hero-info-height) !important;
  min-height: var(--hero-info-height) !important;
  padding: 10px 16px !important;
  max-width: 100%;
}
@media (min-width: 1000px) {
  body.home-premium.home-editorial .hero > .container { align-items: stretch !important; }
  body.home-premium.home-editorial .hero-image.hero-stage {
    align-self: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    margin-block: 0 !important;
  }
}
@media (max-width: 760px) {
  body.home-premium.home-editorial .hero-conversion { --hero-info-height: 64px; }
}
@media (min-width: 1000px) {
  body.home-premium.home-editorial .hero-content { padding-bottom: 0 !important; }
}
body.home-premium.home-editorial .pricing-preview .pricing-discount {
  flex-wrap: wrap;
}
@media (max-width: 480px) {
  body.home-premium.home-editorial .pricing-discount > span:first-child { flex-basis: 100%; text-align: center; }
  body.home-premium.home-editorial .pricing-preview .pricing-discount { padding: 12px 16px; gap: 8px 10px; }
}
/* Keep the original human photo separate from all generated mascot assets. */
body.home-premium.school-site .teacher-media-column {
  grid-template-rows: auto auto !important;
  align-content: start !important;
  gap: 0 !important;
}
body.home-premium.school-site .teacher-photo-panel.teacher-photo-panel--team {
  position: relative !important;
  display: block;
  aspect-ratio: 3 / 2 !important;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
body.home-premium.school-site .teacher-photo-panel--team .teacher-photo-cutout {
  position: static !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  object-fit: contain !important;
  transform: none !important;
  filter: none !important;
}
body.home-premium.school-site .teacher-photo-panel--team .teacher-photo-original {
  position: absolute !important;
  inset: auto auto 0 21.3% !important;
  z-index: 1;
  width: 44.444444% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center bottom !important;
}
body.home-premium.school-site .teacher-photo-panel--team .teacher-photo-mascots {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2;
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  pointer-events: none;
}
/* Align each mascot's visible soles, excluding transparent image padding. */
body.home-premium.school-site .teacher-photo-mascots--pawn {
  clip-path: inset(0 71% 0 0);
  transform: translateY(3.417969%) !important;
}
body.home-premium.school-site .teacher-photo-mascots--rook {
  clip-path: inset(0 0 0 56%);
  transform: translateY(3.222656%) !important;
}
