/* SISS base styles: the shared rules from the draft's <helmet> style block, plus what the theme needs.
   Page-specific styles are in siss-generated.css (made by wordpress/tools/merge.mjs). */
html { scroll-behavior: smooth; }
body { margin: 0; background: #F2EEE8; color: #231F26; font-family: 'Poppins', sans-serif; font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
*, *::before, *::after { box-sizing: border-box; }
a { color: #1A6E78; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #29225C; }
:focus-visible { outline: 3px solid #1A6E78; outline-offset: 3px; }
summary::-webkit-details-marker { display: none; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Scroll reveal (the script adds .will-reveal, then .is-in) */
.will-reveal { opacity: 0; transform: translateY(40px); transition: opacity .6s ease, transform .6s ease; }
.will-reveal.is-in { opacity: 1; transform: none; }

/* WordPress wrappers must not add spacing or width limits of their own. */
.wp-site-blocks { padding: 0; }
/* WordPress wraps the header, the page content and the footer in its own divs. They must not change the layout
   (the sticky header needs its real parent to be the page), so they take no box of their own. */
.siss-header-part, .siss-footer-part, .wp-block-post-content.siss-content { display: contents; }
/* On phones the contact bar steps aside while someone types in a form, so it doesn't cover the field (as in the design). */
html[data-s-form-focus] nav[aria-label="Quick contact"] { display: none !important; }
/* "A clear path from K1 to adulthood" (Home, Our approach): the five blocks are always shown, and rise into place
   once when scrolled to (siss.js adds .siss-wait until then). */
section:has(#path-h) ol > li { opacity: 1 !important; transform: none !important; }
section:has(#path-h) ol.siss-wait > li { opacity: 0 !important; transform: translateY(60px) !important; }
/* Careers: a job opening with details (campus, type, description, requirements) from wp-admin Jobs. */
.siss-job-info { display: flex; flex-direction: column; gap: 4px; flex: 1 1 320px; max-width: 46em; }
.siss-job-meta { font-size: 15px; line-height: 1.5; font-weight: 600; color: #1A6E78; }
/* Home, on phones: "Open the enquiry form" swaps itself for the Skodefy form (as in the design). */
@media (max-width: 719.98px) {
  html[data-s-form] #enquire [data-action="form-open"] { display: none !important; }
  html[data-s-form] #enquire div:has(> iframe) { display: block !important; }
  html[data-s-form] #enquire iframe { display: block !important; height: 1100px !important; }
}
.wp-site-blocks > * , .wp-site-blocks > * + * { margin-block-start: 0; }
:where(.wp-block-group.is-layout-flow, .wp-block-group.is-layout-constrained) > * { margin-block-start: 0; margin-block-end: 0; }
.siss-content > .wp-block-group, .siss-content .wp-block-group { margin: 0; }
.wp-block-group:where(.siss-raw) { display: contents; }

/* Bracketed placeholders for photos the school still has to supply. Must not go live. */
.siss-photo-todo { font-style: italic; }

/* Posts written in the block editor (blog) use plain reading styles. */
.siss-prose { max-width: 720px; margin: 0 auto; padding: clamp(32px, 5vw, 56px) clamp(20px, 4vw, 40px); }
.siss-prose h2 { font-family: 'Grandstander', cursive; color: #29225C; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; margin: 1.6em 0 .5em; }
.siss-prose h3 { color: #29225C; font-size: 20px; margin: 1.4em 0 .4em; }
.siss-prose p, .siss-prose ul, .siss-prose ol { margin: 0 0 1em; }
.siss-prose img { height: auto; border-radius: 16px; }
