/* School landing composition follows the approved forest reference. */
:root body.school-page main {
  background: #f8f6f0;
}

:root body.school-page .school-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 0;
  overflow: clip;
}

:root body.school-page .school-intro > .school-spruce {
  display: none;
}

:root body.school-page .school-hero-photo {
  grid-area: 1 / 1;
  position: relative !important;
  inset: auto !important;
  width: 100% !important;
  height: auto !important;
  align-self: stretch;
  margin: 0 !important;
  border-radius: 0;
  opacity: 1 !important;
  mask: none !important;
  -webkit-mask: none !important;
  background-position: center top !important;
  background-size: cover !important;
  background-color: #122a1d;
  z-index: -1 !important;
}

:root body.school-page .school-hero-photo::before { content: none; }

:root body.school-page .school-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0a2219eb 0%, #10291ed9 30%, #10291e88 45%, #10291e15 62%, transparent 76%);
}

:root body.school-page .school-hero {
  grid-area: 1 / 1;
  position: relative;
  width: calc(100% - 10.2%);
  max-width: none;
  min-height: var(--school-photo-height);
  padding: 24px 0 44px;
  color: #fffdf4;
}

:root body.school-page .school-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: calc((100vw - 100%) / -2);
  width: 100vw;
  height: 28px;
  background: #f8f6f0;
  mask: url('/assets/images/torn-paper-mask.svg') center / 100% 100% no-repeat;
  -webkit-mask: url('/assets/images/torn-paper-mask.svg') center / 100% 100% no-repeat;
  pointer-events: none;
}

:root body.school-page .school-hero-copy {
  max-width: min(46vw, 900px);
}

:root body.school-page .school-breadcrumb {
  margin: 0;
  color: #fffdf4df;
  font-size: 14px;
  line-height: 1.5;
}

:root body.school-page .school-breadcrumb a {
  color: inherit;
}

:root body.school-page .school-hero h1 {
  margin: 18px 0 clamp(24px, 1.5vw, 45px) 44px;
  color: #fffdf4;
  font-size: clamp(88px, 6.9vw, 180px);
  line-height: .76;
  font-weight: 500;
  letter-spacing: -.035em;
  margin-left: 44px !important;
}

.school-hero-index {
  position: absolute;
  top: 76px;
  left: 0;
  font-size: 12px;
  color: #fffdf4d9;
}

.school-hero-index::after {
  content: '';
  display: block;
  width: 1px;
  height: 108px;
  margin: 9px auto 0;
  background: #fffdf49c;
}

:root body.school-page .school-lead {
  max-width: min(100%, clamp(560px, 34.5vw, 760px));
  margin: 0 0 14px 44px;
  color: #fffdf4;
  font-size: clamp(21px, 1.46vw, 32px);
  line-height: 1.3;
  letter-spacing: -.015em;
  margin-left: 44px !important;
}

:root body.school-page .school-hero-details {
  max-width: min(100%, clamp(560px, 34.5vw, 760px));
  margin: 0 0 0 44px;
  color: #fffdf4e8;
  font-size: clamp(14px, .9vw, 20px);
  line-height: 1.5;
  margin-left: 44px !important;
}

:root body.school-page .school-reward-hook {
  min-height: 80px;
  width: clamp(486px, 30vw, 650px);
  max-width: 100%;
  margin: 24px 0 0;
  padding: 14px 18px;
  gap: 18px;
  border-radius: 18px;
  border: 1px solid #b5c1a880;
  background: #f5f4e8f5;
  color: #263d2d;
  box-shadow: 0 8px 25px #0a22191a;
}

:root body.school-page .school-reward-hook-icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  position: relative;
  background: #e3e8d0;
}

.school-reward-hook-icon::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 5px;
  height: 40px;
  width: 1px;
  background: #8191749e;
}

:root body.school-page .school-reward-hook strong {
  font-size: clamp(17px, 1.05vw, 24px);
  line-height: 1.4;
  text-wrap: balance;
}

:root body.school-page .school-reward-hook small {
  font-size: clamp(14px, .86vw, 18px);
  line-height: 1.5;
  margin-top: 2px;
  color: #435241;
}

:root body.school-page .school-reward-hook-arrow {
  margin-left: auto;
}

.school-reward-hook-arrow svg {
  display: block;
  width: 28px;
  height: 28px;
}

:root body.school-page .school-classes {
  grid-area: 2 / 1;
  width: calc(100% - 6.4%);
  max-width: none;
  margin: 32px auto 0;
  gap: 14px;
}

:root body.school-page .school-class {
  position: relative;
  overflow: hidden;
  min-height: clamp(144px, 9.1vw, 240px);
  padding: clamp(22px, 1.4vw, 36px) clamp(24px, 1.5vw, 40px) 42px;
  gap: 24px;
  align-items: flex-start;
  border: 1px solid #b5bea894;
  border-radius: 13px;
  background: radial-gradient(ellipse at 15% 10%, #fffefd, #f1f0e6);
  color: #243d2c;
  box-shadow: none;
}

/* Each equal-height sprite band is a distinct painted landscape. */
:root body.school-page .school-class::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: .62;
  mask-image: linear-gradient(180deg, transparent 35%, #000 68%);
  -webkit-mask-image: linear-gradient(180deg, transparent 35%, #000 68%);
  background: url('/assets/images/school-watercolors-v239.webp') center 0 / 100% 500% no-repeat;
  pointer-events: none;
}
:root body.school-page .school-class:nth-child(2)::after { background-position-y: 25%; }
:root body.school-page .school-class:nth-child(3)::after { background-position-y: 50%; }
:root body.school-page .school-class:nth-child(4)::after { background-position-y: 75%; }
:root body.school-page .school-class:nth-child(5)::after { background-position-y: 100%; }

:root body.school-page .school-class > * {
  position: relative;
  z-index: 1;
}

:root body.school-page .school-class > .school-class-arrow {
  position: absolute;
  right: 15px;
  bottom: 15px;
  width: 34px;
  height: 34px;
}

:root body.school-page .school-class .school-topic-icon {
  width: 34px;
  height: 34px;
  stroke-width: 1.7;
}

:root body.school-page .school-class strong {
  font-size: clamp(19px, 1.15vw, 25px);
  line-height: 1.3;
}

:root body.school-page .school-class small {
  max-width: 240px;
  margin-top: 6px;
  font-size: clamp(15px, .9vw, 19px);
  line-height: 1.3;
  color: #42503e;
}

:root body.school-page .school-class.is-active {
  border-color: #527856 !important;
  background: linear-gradient(120deg, #e8efda, #f8f8ee) !important;
  color: #243d2c !important;
  box-shadow: inset 0 0 0 1px #527856;
}

:root body.school-page .school-class-groups {
  gap: 16px;
  padding-inline: 20px;
}

:root body.school-page .school-class-groups strong { font-size: clamp(17px, 1.1vw, 24px); }

:root body.school-page .school-content {
  width: calc(100% - 7%);
  max-width: none;
  padding-top: 42px;
}

.school-tours > .school-section-head {
  position: relative;
  margin-bottom: 26px;
  padding-top: 23px;
}

.school-reference-eyebrow {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #405846;
  font: 600 11px/1.5 Manrope, sans-serif;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.school-reference-eyebrow::after {
  content: '';
  width: 36px;
  height: 1px;
  background: #84927e;
}

:root body.school-page .school-tours > .school-section-head h2 {
  font-size: clamp(40px, 3.6vw, 66px);
  letter-spacing: -.025em;
}

@media (min-width: 761px) {
  .school-intro {
    --school-photo-height: clamp(510px, 31.5vw, 860px);
  }
}

@media (min-width: 761px) and (max-width: 1250px) {
  :root body.school-page .school-hero-copy { max-width: 54%; }
  :root body.school-page .school-hero h1 { font-size: 80px; }
  :root body.school-page .school-classes { gap: 9px; }
  :root body.school-page .school-class { padding: 18px 12px 34px; gap: 12px; }
  :root body.school-page .school-class strong { font-size: 16px; }
  :root body.school-page .school-class small { font-size: 13px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  :root body.school-page .school-classes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  :root body.school-page .school-class-groups { grid-column: span 2; }
}

@media (max-width: 760px) {
  :root body.school-page .school-hero-photo {
    grid-area: 1 / 1;
    position: relative !important;
    height: auto !important;
    align-self: stretch;
    background-position: 76% center !important;
    background-size: cover !important;
  }
  :root body.school-page .school-hero-photo::before { display: none; }
  :root body.school-page .school-hero-photo::after {
    background: linear-gradient(180deg, #0c291fe8 0%, #102d24b8 35%, #102d2445 70%, #102d2412 100%);
  }
  :root body.school-page .school-hero { min-height: 560px !important; }
  :root body.school-page .school-hero-copy { min-height: 530px; max-width: none; }
  :root body.school-page .school-hero h1 { font-size: clamp(48px, 13vw, 68px) !important; }
  :root body.school-page .school-hero :is(h1, .school-lead, .school-hero-details) { margin-left: 0 !important; }
  .school-hero-index { display: none; }
  :root body.school-page .school-reward-hook { margin-top: auto !important; margin-bottom: 18px; }
  :root body.school-page .school-reward-hook-icon { flex-basis: 40px; width: 40px; height: 40px; }
  .school-reward-hook-icon::after { height: 30px; }
  :root body.school-page .school-classes {
    width: calc(100% - 32px);
    margin-top: 20px !important;
    gap: 10px !important;
  }
  :root body.school-page .school-class {
    min-height: 104px !important;
    padding: 15px 12px 28px !important;
    gap: 10px;
  }
  :root body.school-page .school-class small {
    display: block !important;
    font-size: 12px !important;
    line-height: 1.35;
  }
  :root body.school-page .school-class .school-topic-icon { width: 27px; height: 27px; }
  :root body.school-page .school-class::after { opacity: .55; }
  :root body.school-page .school-class-groups { min-height: 90px !important; }
  :root body.school-page .school-content { width: calc(100% - 32px); padding-top: 32px; }
  :root body.school-page .school-tours > .school-section-head { flex-wrap: wrap; gap: 16px; }
  :root body.school-page .school-tours > .school-section-head h2 { flex-basis: 100%; }
  :root body.school-page .school-tours > .school-section-head > a { font-size: 15px; }
}
