/* schools: sections built with Max one at a time (11-05, section terminal). Loaded after page-schools.css. */
body.page-schools .fieldboard .fb-stage {
  grid-template-columns: 1.05fr 1fr;
  grid-template-rows: repeat(3, minmax(0, 1fr)) auto;
  gap: 20px;
  align-items: stretch;
}
body.page-schools .fieldboard .fb-photo {
  grid-column: 1;
  grid-row: 1/4;
  min-height: 0;
}
body.page-schools .fieldboard .fb-photo img {
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: 60% 50%;
}
body.page-schools .fieldboard .note {
  min-height: 0;
  justify-content: space-between;
  gap: 16px;
}
body.page-schools .fieldboard .note blockquote {
  text-wrap: balance;
}
body.page-schools .fieldboard .note.p5 {
  grid-column: 2;
  grid-row: 1;
  padding: 26px 30px 24px;
  justify-content: center;
  gap: 18px;
}
body.page-schools .fieldboard .note.p5 blockquote {
  font-size: clamp(26px, 2.2vw, 30px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: none;
}
body.page-schools .fieldboard .note.p1 {
  grid-column: 2;
  grid-row: 2;
}
body.page-schools .fieldboard .note.p2 {
  grid-column: 2;
  grid-row: 3;
}
body.page-schools .fieldboard .note.p1,
body.page-schools .fieldboard .note.p2 {
  padding: 24px 30px 22px;
  justify-content: center;
  gap: 14px;
}
body.page-schools .fieldboard .note.p1 blockquote,
body.page-schools .fieldboard .note.p2 blockquote {
  font-size: 21px;
  line-height: 1.34;
  letter-spacing: -0.02em;
}
body.page-schools .fieldboard .note figcaption {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
/* Haiti: the quote on the left half, the photo fills the right half to the card's edge */
body.page-schools .fieldboard .note.p4 {
  grid-column: 1/-1;
  grid-row: 4;
  min-height: 300px;
  padding: 40px calc(50% + 40px) 40px 40px;
  justify-content: center;
  gap: 22px;
  overflow: hidden;
}
body.page-schools .fieldboard .note.p4::after {
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  border-radius: 0;
  background-position: center 20%;
}
body.page-schools .fieldboard .note.p4 blockquote {
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.18;
  letter-spacing: -0.03em;
  max-width: none;
}
/* reveal in order: orange first, then down the column, Haiti last (site.css delays by --i) */
body.page-schools .fieldboard .note.p5 {
  --i: 0;
}
body.page-schools .fieldboard .note.p1 {
  --i: 1;
}
body.page-schools .fieldboard .note.p2 {
  --i: 2;
}
body.page-schools .fieldboard .note.p4 {
  --i: 3;
}
@media (max-width: 1024px) {
  body.page-schools .fieldboard .fb-stage {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 16px;
  }
  body.page-schools .fieldboard .fb-photo,
  body.page-schools .fieldboard .note.p5,
  body.page-schools .fieldboard .note.p1,
  body.page-schools .fieldboard .note.p2,
  body.page-schools .fieldboard .note.p4 {
    grid-column: auto;
    grid-row: auto;
  }
  body.page-schools .fieldboard .fb-photo img {
    height: auto;
    aspect-ratio: 4/3;
  }
  body.page-schools .fieldboard .note.p5,
  body.page-schools .fieldboard .note.p1,
  body.page-schools .fieldboard .note.p2 {
    padding: 26px 26px 24px;
  }
  body.page-schools .fieldboard .note.p4 {
    min-height: 0;
    padding: 232px 26px 26px;
    justify-content: flex-start;
  }
  body.page-schools .fieldboard .note.p4::after {
    top: 0;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 208px;
    border-radius: 0;
  }
  body.page-schools .fieldboard .note.p4 blockquote {
    font-size: 26px;
  }
}

/* Where we work: head in two columns like Early feedback, the painted hills actually show, the reel fades well inside the panel */
body.page-schools .sch-flags > .wrap {
  background: var(--paper) url('/assets/img/schools/where-hills.webp') center bottom/cover no-repeat;
  padding-bottom: clamp(36px, 3.6vw, 52px);
}
body.page-schools .sch-flags > .wrap::before {
  background: linear-gradient(
    180deg,
    rgba(255, 247, 234, 0.92) 0%,
    rgba(255, 247, 234, 0.6) 45%,
    rgba(255, 247, 234, 0.18) 100%
  );
}
body.page-schools .sch-flags .wf-head {
  display: grid;
  grid-template-columns: 1fr minmax(0, 360px);
  gap: 0 56px;
  align-items: end;
}
body.page-schools .sch-flags .wf-head .label {
  grid-column: 1/-1;
}
body.page-schools .sch-flags .wf-head h2 {
  margin: 0;
}
body.page-schools .sch-flags .wf-head .flags-note {
  margin: 0 0 10px;
  font-size: 17.5px;
  line-height: 1.55;
  max-width: none;
  white-space: normal;
  color: var(--muted);
}
body.page-schools .sch-flags .flag-reel {
  margin-top: 48px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
body.page-schools .sch-flags .flag {
  background: rgba(255, 251, 245, 0.9);
  box-shadow: 0 1px 2px rgba(120, 50, 0, 0.06);
}
@media (max-width: 1024px) {
  body.page-schools .sch-flags .wf-head {
    display: block;
  }
  body.page-schools .sch-flags .wf-head .flags-note {
    margin: 14px 0 0;
    font-size: 16.5px;
  }
  /* phone: no marquee, every country wraps into view */
  body.page-schools .sch-flags .flag-reel {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 28px 0 0;
    mask-image: none;
    -webkit-mask-image: none;
    overflow: visible;
  }
  body.page-schools .sch-flags .flag-reel.is-visible .flag-track,
  body.page-schools .sch-flags .flag-track {
    display: contents;
    animation: none;
  }
  body.page-schools .sch-flags .flag-track ul {
    display: contents;
  }
  body.page-schools .sch-flags .flag-track ul[aria-hidden] {
    display: none;
  }
  body.page-schools .sch-flags .flag {
    padding: 7px 14px 7px 7px;
    gap: 9px;
  }
  body.page-schools .sch-flags .flag img {
    width: 32px;
    height: 24px;
    border-radius: 5px;
  }
  body.page-schools .sch-flags .flag span {
    font-size: 15.5px;
  }
}

/* Why we do this: frameless photo like the rest of the page, and it fills the column so both sides end on the same line */
body.page-schools .founders .letter-photo {
  padding: 0;
  background: none;
  box-shadow: none;
  border-radius: 20px;
}
body.page-schools .founders .letter-photo img {
  border-radius: 20px;
}
body.page-schools .founders .letter-photo .hero-place {
  left: 16px;
  bottom: 16px;
}
@media (min-width: 1025px) {
  body.page-schools .founders > .wrap {
    align-items: stretch;
  }
  body.page-schools .founders .letter-top {
    display: flex;
    flex-direction: column;
  }
  body.page-schools .founders .letter-photo {
    flex: 1;
    min-height: 0;
    margin-top: 28px;
  }
  body.page-schools .founders .letter-photo img {
    height: 100%;
    aspect-ratio: auto;
    object-position: 50% 40%;
  }
}
/* the letter itself: roomier sheet, a touch larger type, signatures with more presence */
body.page-schools .founders .letter-sheet {
  padding: clamp(32px, 3.4vw, 52px) clamp(32px, 3.6vw, 56px) clamp(28px, 3vw, 44px);
  border-radius: 24px;
  box-shadow:
    0 1px 2px rgba(120, 50, 0, 0.05),
    0 18px 40px -30px rgba(120, 50, 0, 0.28);
}
body.page-schools .founders .letter-body p,
body.page-schools .founders .letter-body p:first-child {
  font-size: clamp(17.5px, 1.31vw, 19px);
  line-height: 1.6;
  margin-top: 20px;
  max-width: none;
  text-wrap: pretty;
}
body.page-schools .founders .letter-body p:first-child {
  margin-top: 0;
  color: var(--ink);
  font-weight: 500;
}
body.page-schools .founders .letter-body p:last-child {
  font-weight: 700;
  color: var(--ink);
}
body.page-schools .founders .sign {
  margin-top: 36px;
  padding-top: 24px;
  gap: 16px 40px;
}
@media (min-width: 1025px) {
  body.page-schools .founders .sign {
    display: flex;
  }
}
body.page-schools .founders .sign > span {
  gap: 14px;
}
body.page-schools .founders .sign img {
  width: 56px;
  height: 56px;
  box-shadow: 0 0 0 3px rgba(255, 251, 245, 0.9);
}
body.page-schools .founders .sign b {
  font-size: 16px;
}
body.page-schools .founders .sign {
  font-size: 14.5px;
}

/* Why we do this (Max 11-10): the whole photo, no place tag, plain sheet without the orange wash, one text colour */
body.page-schools .founders .letter-sheet {
  background: #fffbf4;
  box-shadow:
    0 0 0 1px rgba(120, 50, 0, 0.07),
    0 18px 40px -30px rgba(120, 50, 0, 0.28);
}
body.page-schools .founders .letter-body p,
body.page-schools .founders .letter-body p:first-child,
body.page-schools .founders .letter-body p:last-child {
  color: var(--ink);
  font-weight: 400;
}
@media (min-width: 1025px) {
  body.page-schools .founders .sign {
    margin-top: 28px;
    padding-top: 12px;
  }
  body.page-schools .founders .letter-photo img {
    object-position: 50% 50%;
  }
}
/* founders' faces: whole head in the circle (no zoom), true circles; closing line bold (Max 11-10) */
body.page-schools .founders:not(#_) .sign .sign-av {
  flex: 0 0 60px;
  width: 60px;
  min-width: 60px;
  height: 60px;
  min-height: 60px;
  max-height: 60px;
  box-sizing: border-box;
  padding: 0;
  border: 0;
}
body.page-schools .founders:not(#_) .sign .sign-av {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #d1bfa5;
}
body.page-schools .founders:not(#_) .sign .sign-av img {
  transform: none;
  width: 100%;
  height: auto;
  margin-top: 5px;
  object-fit: contain;
}
body.page-schools .founders:not(#_) .sign > span:nth-child(2) .sign-av {
  background: #dfcdb1;
}
body.page-schools .founders .letter-body p:last-child {
  font-weight: 650;
}
