/* Careers only: linked after pages.css by the page's front matter "css": ["p-careers"].
   AEO package Phase 3 (author a4, 18 Nov 2026). Tokens from style.css; no new colour or component. */

/* the three steps sit under the chapter title, the school's own "Apply for careers here" button under them */
.car-steps { margin-top: 36px; }
.car-board { margin-top: 30px; }

/* four campus cards: four across, two by two on tablets, one column on phones (no empty trailing cell) */
.car-campuses { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
@media (max-width: 1180px) { .car-campuses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .car-campuses { grid-template-columns: minmax(0, 1fr); } }
.car-teach { margin: 34px 0 6px; color: var(--muted); }

/* questions as h3 (a heading per question for search engines), looking exactly like the summary line */
.faq-item summary h3 { font: inherit; color: inherit; letter-spacing: inherit; margin: 0; }

/* round 2 (w2a, design r1 fix 1): hero contrast and crop. On wide screens the team photo takes the right of the hero and
   the type sits on pine beside it, not across a row of faces; below that the photo stays full width under a wash that
   stays deep from the crumbs down. Measured at 390, 768 and 1440 (PIL, scratch/w2a): crumbs, kicker and lead at 4.5:1
   or more. */
@media (min-width: 1101px) {
  .phero__img { left: 44%; }
  .phero__img img { object-position: 50% 40%; }
  .phero::before {
    background: linear-gradient(90deg, rgba(7, 39, 36, 1) 44%, rgba(7, 39, 36, .7) 49%, rgba(7, 39, 36, .18) 60%, transparent 68%),
                linear-gradient(to bottom, rgba(7, 39, 36, .9) 0%, rgba(7, 39, 36, .78) 12%, rgba(7, 39, 36, .3) 21%, rgba(7, 39, 36, 0) 30%),
                linear-gradient(to top, rgba(7, 39, 36, .7) 0%, rgba(7, 39, 36, 0) 40%);
  }
  /* the type ends before the photo begins */
  .phero h1 { max-width: 11ch; }
  .phero__lead { max-width: 27em; }
}
@media (max-width: 1100px) {
  .phero::before { background: linear-gradient(to top, rgba(7, 39, 36, .96) 0%, rgba(7, 39, 36, .86) 50%, rgba(7, 39, 36, .84) 100%); }
}

/* round 2 (w2a): the answer never ends on one word (design r1 fix 10); a phone number never breaks (fix 7) */
.lede__answer { text-wrap: pretty; }
.nw { white-space: nowrap; }

/* design r1 fix 2: form-first. The form sits beside the three steps (steps left, form right); on phones it follows them */
.car-apply .form--card { margin: 0; }
@media (min-width: 961px) { .car-apply { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }

/* design r1 fixes 4-6: each campus card opens with the campus page's own photo (a thumbnail of /campus/), labels on
   their own lines without touching, the teaching list as chips */
.car-campuses .ccard { overflow: hidden; }
.car-campus__img { display: block; width: calc(100% + 52px); max-width: none; margin: -26px -26px 14px; aspect-ratio: 4 / 3;
  object-fit: cover; transition: transform 1.2s var(--ease); }
.car-campuses .ccard:hover .car-campus__img { transform: scale(1.04); }
.car-campuses .ccard small { line-height: 1.4; }
@media (min-width: 1181px) { .car-campuses .ccard small { min-height: 2.8em; } }
.car-chips { list-style: none; padding: 0; margin: 0; }
.car-chips a { color: inherit; text-decoration: none; }
.car-chips li:hover { border-color: var(--gold); }

/* design r1 fix 8: the pine chapter. HOPEFUL as chips; the staff photo large, a parent's line as the system's
   quote-card hanging over its lower edge beside the teacher photo; on phones they stack */
.car-values { list-style: none; padding: 0; margin: 4px 0 22px; }
.car-values li { background: rgba(251, 248, 242, .08); color: var(--paper); border-color: rgba(227, 207, 165, .45); }
.car-media { display: grid; gap: 18px; }
.car-media__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.car-quote { position: relative; left: auto; bottom: auto; width: auto; margin: -70px 0 0 -30px; z-index: 1; }
@media (max-width: 960px) {
  .car-media__row { grid-template-columns: minmax(0, 1fr); }
  .car-quote { margin: -50px 16px 0; }
}

/* the closing row (#tour): a deeper wash under the labels, so "For parents" over the bright reception photo reads at
   4.5:1 or more (measured at 390, 768 and 1440, scratch/w2a) */
#tour .next a::before { background: linear-gradient(to top, rgba(7, 39, 36, .95) 0%, rgba(7, 39, 36, .84) 42%, rgba(7, 39, 36, .3) 100%); }
