/* School public website: one design, three layouts, themed by the school's colour and logo */
:root { --brand: #1D4ED8; --ink: #14202E; --muted: #4F5B6B; --line: #E1E6EE; --soft: #F5F7FA; --radius: 14px; --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; --head: Georgia, "Times New Roman", serif; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 17px/1.6 var(--font); color: var(--ink); background: #fff; }
a { color: var(--brand); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .6rem; }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
p { margin: 0 0 1rem; }
[hidden] { display: none !important; }
.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
.demo-strip { background: #FFF4C2; color: #5C4600; font: 600 .8rem/1.4 var(--font); text-align: center; padding: .3rem 1rem; }
.announce { background: var(--brand); color: #fff; text-align: center; padding: .55rem 1rem; font-weight: 600; font-size: .95rem; }
.small { font-size: .85rem; color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46rem; }

/* header */
.top { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.top-in { display: flex; align-items: center; gap: 1rem; min-height: 72px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); margin-right: auto; padding: .5rem 0; }
.brand strong { display: block; font-family: var(--head); font-size: 1.2rem; line-height: 1.2; }
.brand small { color: var(--muted); font-size: .8rem; }
.crest { width: 48px; height: 48px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: none; }
.crest img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.crest.big { width: 96px; height: 96px; font-size: 2rem; border-radius: 20px; }
.menu { font: inherit; font-weight: 700; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: .45rem .9rem; min-height: 44px; cursor: pointer; }
#nav { display: none; width: 100%; flex-direction: column; padding-bottom: .75rem; }
.nav-open #nav { display: flex; }
#nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .6rem .25rem; border-bottom: 1px solid var(--line); }
#nav a[aria-current="page"] { color: var(--brand); }
#nav a.cta { background: var(--brand); color: #fff; border-radius: 999px; text-align: center; margin-top: .5rem; border: 0; }
@media (min-width: 900px) {
  .menu { display: none; }
  #nav { display: flex !important; width: auto; flex-direction: row; align-items: center; gap: .25rem; padding: 0; }
  #nav a { border: 0; padding: .5rem .7rem; border-radius: 8px; }
  #nav a:hover { background: var(--soft); }
  #nav a.cta { margin: 0 0 0 .5rem; padding: .55rem 1.1rem; }
  #nav a.cta:hover { background: var(--brand); filter: brightness(1.08); }
}

/* hero */
.hero { background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #0C1E36)); color: #fff; }
.hero.has-img { background: linear-gradient(90deg, rgba(10, 20, 35, .78), rgba(10, 20, 35, .35)), var(--hero) center / cover no-repeat; }
.hero-in { padding: clamp(3.5rem, 9vw, 7rem) 0; max-width: 72rem; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); max-width: 40rem; }
.hero p { font-size: 1.2rem; max-width: 36rem; opacity: .95; }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: .6rem 1.4rem; border-radius: 999px; font: inherit; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn.primary { background: var(--brand); color: #fff; }
.hero .btn.primary { background: #fff; color: var(--brand); }
.btn.ghost { border-color: currentColor; color: inherit; background: transparent; }
.page .btn.ghost, .panel .btn.ghost { color: var(--brand); }

/* sections */
.section { padding: clamp(2.5rem, 6vw, 4rem) 0; }
.page h1 { margin-bottom: 1rem; }
.narrow { max-width: 46rem; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1.25rem; }
.split { display: grid; gap: 2rem; }
@media (min-width: 860px) { .split { grid-template-columns: 1.4fr 1fr; align-items: start; } }
.panel { background: var(--soft); border-radius: var(--radius); padding: 1.5rem; }
.stats { background: var(--soft); border-bottom: 1px solid var(--line); }
.stats-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem; padding: 1.75rem 0; text-align: center; }
.stats strong { display: block; font-family: var(--head); font-size: 2.2rem; color: var(--brand); line-height: 1.1; }
.stats span { color: var(--muted); font-weight: 600; }
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); margin-bottom: 2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.card:hover { border-color: var(--brand); }
.card img, .news-ph { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-ph { display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, #fff); color: var(--brand); font: 800 2rem var(--head); }
.card-body { padding: 1.1rem 1.25rem 1.3rem; display: grid; gap: .35rem; }
.card-body strong { font-family: var(--head); font-size: 1.2rem; line-height: 1.25; }
.card-body small { color: var(--muted); }
.card-body span { color: var(--muted); }
.card-body ol, .card-body ul { margin: .25rem 0 0; padding-left: 1.2rem; }
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.gallery figcaption { font-size: .9rem; color: var(--muted); padding: .35rem .1rem; }
.article-img { border-radius: var(--radius); margin: 1rem 0 1.5rem; width: 100%; }

/* forms */
.form { display: grid; gap: 1rem; }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .8rem; }
legend { font-family: var(--head); font-size: 1.2rem; font-weight: 700; margin-bottom: .3rem; }
label { display: grid; gap: .3rem; font-weight: 600; font-size: .95rem; }
input, select, textarea { font: inherit; padding: .6rem .75rem; min-height: 46px; border: 1.5px solid #8A94A6; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; }
.row, .row3 { display: grid; gap: .8rem; }
@media (min-width: 640px) { .row { grid-template-columns: 1fr 1fr; } .row3 { grid-template-columns: 1fr 1fr 1fr; } }
.error { color: #B42318; font-weight: 600; margin: 0; }
.done { border-left: 5px solid #067647; }

/* footer */
.foot { background: #0C1E36; color: #D8E0EC; margin-top: 2rem; }
.foot a { color: #fff; }
.foot-in { display: grid; gap: 1.5rem; padding: 2.5rem 0 1rem; }
@media (min-width: 760px) { .foot-in { grid-template-columns: 1.3fr 1fr 1fr; } }
.foot strong { color: #fff; display: block; margin-bottom: .4rem; }
.credit { border-top: 1px solid rgba(255, 255, 255, .12); padding: 1rem 0 1.5rem; margin: 0 auto; font-size: .85rem; color: #9FB0C6; }
.soon { min-height: 80vh; display: grid; place-content: center; justify-items: center; text-align: center; padding: 2rem; gap: .5rem; }

/* layout: modern – rounded, airy, sans-serif headings, split hero */
.layout-modern { --head: var(--font); --radius: 22px; }
.layout-modern h1, .layout-modern h2 { letter-spacing: -.02em; font-weight: 800; }
.layout-modern .top { border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.layout-modern .hero { margin: 1rem; border-radius: 28px; }
.layout-modern .stats { background: none; border: 0; }
.layout-modern .stats-in > div { background: var(--soft); border-radius: 18px; padding: 1.25rem; }
.layout-modern .card { border: 0; box-shadow: 0 6px 24px rgba(12, 30, 54, .08); }
/* layout: simple – plain white, centred, minimal colour */
.layout-simple .hero, .layout-simple .hero.has-img { background: #fff; color: var(--ink); text-align: center; border-bottom: 1px solid var(--line); }
.layout-simple .hero.has-img .hero-in { padding-top: 0; }
.layout-simple .hero.has-img::before { content: ""; display: block; height: clamp(12rem, 35vw, 22rem); background: var(--hero) center / cover no-repeat; }
.layout-simple .hero h1, .layout-simple .hero p { margin-inline: auto; }
.layout-simple .hero .btns { justify-content: center; }
.layout-simple .hero .btn.primary { background: var(--brand); color: #fff; }
.layout-simple .hero .btn.ghost { color: var(--brand); }
.layout-simple .hero-in { padding-top: 3rem; }
.layout-simple .stats { background: #fff; }
.layout-simple .panel { background: #fff; border: 1px solid var(--line); }
