/* School-specific content. /site.css owns the shared width, header, menu, type and photo hero. */
:root { --primary-tint: #E8E6F2; --ok: #1E6B4A; --ok-tint: #DDEFE4; --bad: #A53624; --bad-tint: #FBE3DD; --warn-tint: #FCF0C8; --warn: #6B4C00; }
button, input, textarea { font: inherit; }
.ic { width: 1em; height: 1em; flex: none; }
.btn .ic { width: 20px; height: 20px; }
.logo-words { display: flex; flex-direction: column; align-items: flex-start; }
.logo-for { margin-top: 8px; font: 750 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--primary); }
.top #licenceBtn { border-radius: 12px; min-height: 48px; font-weight: 650; }
/* the small button to the family site, above the header (the family pages' "back to schools" bar, mirrored) */
.school-back .wrap { justify-content: flex-end; }
.school-back a { background: #faf7ef; line-height: 1.2; }
.link { padding: 0; border: 0; background: none; color: var(--primary); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.text-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--primary); font-weight: 650; text-underline-offset: 4px; }
.text-link .ic { width: 20px; height: 20px; }
.school-facts { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 24px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line2); }
.school-facts li { display: flex; align-items: center; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; font-weight: 650; }
.school-facts .ic { width: 20px; height: 20px; color: var(--ok); }
.class-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.class-photo { margin: 0; overflow: hidden; border-radius: 20px; background: var(--paper); border: 1px solid var(--line); }
.class-photo img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.class-photo figcaption { padding: 24px; }
.class-photo h3 { margin-top: 10px; font-size: 28px; line-height: 1.12; }
.class-photo p { margin-top: 12px; color: var(--ink2); font-size: 16px; line-height: 1.55; }
.class-photo-note { margin-top: 12px; color: var(--muted); font-size: 13px; }
.class-setup { margin-top: 40px; padding: clamp(24px, 3vw, 40px); border-radius: 24px; background: var(--primary-tint); }
.class-setup > h3 { font-size: clamp(28px, 3vw, 38px); }
.setup-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; padding: 0; margin: 28px 0; }
.setup-number { color: var(--primary); font: 500 30px var(--serif); }
.setup-steps h3 { margin-top: 12px; font-size: 24px; line-height: 1.15; }
.setup-steps p, .setup-note { margin-top: 10px; font-size: 16px; color: var(--ink2); }
.setup-note { border-top: 1px solid #c9c5dd; padding-top: 20px; }
.school-resources { display: flex; flex-wrap: wrap; gap: 12px 30px; margin-top: 20px; }
.school-order-cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* The account address has a home in the licence panel; leave room for the section links. */
body[data-page=school] .top .who { display: none; }
@media (max-width: 760px) {
  .class-photos, .setup-steps { grid-template-columns: 1fr; }
  .school-facts { gap: 12px; }
  .school-facts li { font-size: 14px; align-items: flex-start; }
}
@media (max-width: 640px) {
  .logo-for { font-size: 8px; margin-top: 4px; }
  .top #licenceBtn { font-size: 13px; padding-inline: 10px; max-width: 132px; }
}
@media (max-width: 560px) {
  .top:has(#licenceBtn:not([hidden])) .logo > span:not(.logo-mark) { display: none; }
}
/* Other storefront pages add space above their first section; the school photo starts directly below the header. */
body[data-page=school] main > section.hero:first-child { padding-top: 0; }

/* Keep school links in a right-hand column, aligned with the main site's footer brand and page edges. */
body[data-page=school] .foot .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
body[data-page=school] .foot-links { justify-content: flex-end; }
@media (max-width: 900px) {
  body[data-page=school] .foot .wrap { grid-template-columns: minmax(0, 1fr); }
  body[data-page=school] .foot-links { justify-content: flex-start; }
}
@media (max-width: 420px) { .school-facts { grid-template-columns: 1fr; } }
