/* Portrait composition approved for the school landing on phones. */
:root body.school-page .school-intro .school-hero-mobile-photo { display: none; }

@media (max-width: 1100px) {
  :root body.school-page main { container-type: inline-size; }
  :root body.school-page .school-intro .school-hero-photo { display: none !important; }
  :root body.school-page .school-intro .school-hero.shell {
    position: relative; isolation: isolate; overflow: hidden;
    width: 100% !important; max-width: none !important;
    min-height: 177.7cqw !important; margin: 0 !important; padding: 0 !important;
    color: #fffdf0; background: #102f22;
  }
  :root body.school-page .school-intro .school-hero-mobile-photo {
    display: block; position: absolute; inset: 0; z-index: -1;
    width: 100%; height: 100%; object-fit: cover; object-position: center;
    border-radius: 0 !important; pointer-events: none;
  }
  :root body.school-page .school-intro .school-hero::before {
    content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background: linear-gradient(90deg, #052519d9, #05251980 45%, transparent 88%);
    mask-image: linear-gradient(#000 0%, #000 36%, transparent 57%);
    -webkit-mask-image: linear-gradient(#000 0%, #000 36%, transparent 57%);
  }
  :root body.school-page .school-intro .school-hero-copy {
    position: relative; z-index: 1; display: block !important;
    width: 86.4%; max-width: none !important; min-height: 177.7cqw !important;
    margin: 0 auto !important; padding: 6.8cqw 0 0 !important; box-sizing: border-box;
  }
  :root body.school-page .school-intro .school-hero-index { display: none !important; }
  :root body.school-page .school-intro .school-breadcrumb {
    display: flex; align-items: center; gap: 2.5cqw;
    margin: 0 !important; padding: 0; color: #fffdf0;
    font-size: 3.4cqw !important; line-height: 1.5;
  }
  :root body.school-page .school-intro .school-hero h1 {
    margin: 8cqw 0 1.5cqw !important; padding: 0;
    font-size: 17.4cqw !important; line-height: .76 !important;
    font-weight: 500; font-style: italic; letter-spacing: -.035em;
    color: #fffbed; text-wrap: initial;
  }
  :root body.school-page .school-intro .school-hero h1::after {
    content: ''; display: block; width: 9.2cqw; height: .5cqw;
    margin-top: 5cqw; background: #90b52b; border-radius: 1px;
  }
  :root body.school-page .school-intro .school-lead {
    max-width: 66cqw !important; margin: 0 0 2.2cqw !important;
    font-size: 4.05cqw !important; line-height: 1.18 !important;
    font-weight: 600; letter-spacing: 0; color: #fffdf0; text-wrap: initial;
  }
  :root body.school-page .school-intro .school-hero-details {
    max-width: 78cqw !important; margin: 0 !important;
    font-size: 3.4cqw !important; line-height: 1.2 !important;
    font-weight: 400; letter-spacing: 0; color: #fffdf0; text-wrap: initial;
  }
  :root body.school-page .school-intro .school-reward-hook {
    --gd-radius: 5.3cqw;
    position: absolute; left: -2.9cqw; bottom: 15.8cqw;
    width: 92.2cqw !important; max-width: none !important;
    min-height: 17.2cqw; margin: 0 !important; padding: 3.1cqw !important;
    box-sizing: border-box; display: grid !important;
    grid-template-columns: 10cqw minmax(0, 1fr) 6cqw;
    gap: 4.5cqw !important; align-items: center; text-align: left;
    background: #f7f3e3 !important; color: #132e20 !important;
    border: 1px solid #e9e5d4; border-radius: 5.3cqw !important;
    box-shadow: 0 1.2cqw 4cqw #071c2030;
  }
  :root body.school-page .school-intro .school-reward-hook > span:nth-child(2) { min-width: 0; }
  :root body.school-page .school-intro .school-reward-hook-icon {
    position: relative; display: grid; place-items: center;
    width: 10cqw !important; height: 10cqw !important;
    background: #e0e9bb !important; border-radius: 50% !important; padding: 0 !important;
  }
  :root body.school-page .school-intro .school-reward-hook-icon svg { width: 5.5cqw; height: 5.5cqw; }
  :root body.school-page .school-intro .school-reward-hook-icon::after {
    content: ''; position: absolute; right: -2.2cqw; top: 1cqw;
    width: 1px; height: 8cqw; background: #8f9e88;
  }
  :root body.school-page .school-intro .school-reward-hook strong {
    display: block; font-size: 3.2cqw !important; line-height: 1.2 !important;
    font-weight: 650; white-space: nowrap; color: #132e20 !important;
  }
  :root body.school-page .school-intro .school-reward-hook strong [data-vx-slot] { white-space: nowrap !important; }
  :root body.school-page .school-intro .school-reward-hook small {
    display: block; margin-top: .8cqw !important;
    font-size: 3.2cqw !important; line-height: 1.2 !important; color: #4e6351 !important;
  }
  :root body.school-page .school-intro .school-reward-hook-arrow,
  :root body.school-page .school-intro .school-reward-hook-arrow svg {
    width: 6cqw !important; height: 6cqw !important; margin: 0 !important;
  }
  :root body.school-page .school-intro .school-hero::after {
    left: 0; width: 100%; height: 4cqw; bottom: -1px; z-index: 3;
    background: #fbfaf5;
  }
}

/* Keep the portrait scene on tablets with bounded type and controls. */
@media (min-width: 601px) and (max-width: 1100px) {
  :root body.school-page .school-intro .school-hero.shell,
  :root body.school-page .school-intro .school-hero-copy {
    min-height: clamp(880px, 110cqw, 1080px) !important;
  }
  :root body.school-page .school-intro .school-hero-copy {
    padding-top: 36px !important;
  }
  :root body.school-page .school-intro .school-hero-mobile-photo {
    object-position: center 50%;
  }
  :root body.school-page .school-intro .school-breadcrumb {
    gap: 18px; font-size: 14px !important; line-height: 1.5;
  }
  :root body.school-page .school-intro .school-hero h1 {
    margin: 30px 0 24px !important;
    font-size: clamp(64px, 8.4cqw, 88px) !important;
    line-height: .9 !important;
  }
  :root body.school-page .school-intro .school-hero h1::after {
    width: 56px; height: 3px; margin-top: 24px;
  }
  :root body.school-page .school-intro .school-lead {
    max-width: min(100%, 510px) !important;
    margin-bottom: 20px !important;
    font-size: clamp(20px, 2.4cqw, 23px) !important;
    line-height: 1.3 !important;
  }
  :root body.school-page .school-intro .school-hero-details {
    max-width: min(100%, 570px) !important;
    font-size: clamp(17px, 2cqw, 19px) !important;
    line-height: 1.35 !important;
  }
  :root body.school-page .school-intro .school-reward-hook {
    --gd-radius: 28px;
    left: 50%; bottom: 40px; transform: translateX(-50%);
    width: min(92.2cqw, 820px) !important; min-height: 100px;
    padding: 18px 24px !important; border-radius: 28px !important;
    grid-template-columns: 56px minmax(0, 1fr) 28px;
    gap: 24px !important;
  }
  :root body.school-page .school-intro .school-reward-hook-icon {
    width: 56px !important; height: 56px !important;
  }
  :root body.school-page .school-intro .school-reward-hook-icon svg {
    width: 32px; height: 32px;
  }
  :root body.school-page .school-intro .school-reward-hook-icon::after {
    right: -12px; top: 6px; height: 44px;
  }
  :root body.school-page .school-intro .school-reward-hook strong {
    font-size: clamp(16px, 2cqw, 20px) !important; line-height: 1.25 !important;
  }
  :root body.school-page .school-intro .school-reward-hook small {
    margin-top: 6px !important; font-size: 16px !important; line-height: 1.3 !important;
  }
  :root body.school-page .school-intro .school-reward-hook-arrow,
  :root body.school-page .school-intro .school-reward-hook-arrow svg {
    width: 28px !important; height: 28px !important;
  }
  :root body.school-page .school-intro .school-hero::after { height: 24px; }
}
