/* ============================================================================
   school.css - public school websites on the Delta State MoBSE network
   ----------------------------------------------------------------------------
   Loaded by SchoolSite.master. The school's two colours arrive as custom
   properties written by the master (--sp primary, --ss secondary, --on-sp and
   --on-ss the readable text colour on each); the defaults below only apply on
   the holding page, where no site is loaded.

   Templates are body classes: sch-tpl-classic | banner | split | tiles | minimal.
   Shared markup, different CSS. Badges and buttons stay square (<= 8px radius);
   nothing uses a coloured bar on the left edge of a list item.
   ========================================================================== */

:root {
  --sp: #0B57B4;
  --ss: #0B1B33;
  --on-sp: #FFFFFF;
  --on-ss: #FFFFFF;

  --sch-ink: #0B1B33;
  --sch-body: #243248;
  --sch-muted: #5B6B80;
  --sch-line: #E1E7EF;
  --sch-wash: #F4F6FA;
  --sch-paper: #FFFFFF;
  --sch-fd: "Sora", "Segoe UI", Arial, sans-serif;
  --sch-fb: "Inter", "Segoe UI", Arial, sans-serif;
  --sch-r: 8px;
  --sch-r-s: 6px;
  --sch-wrap: 1160px;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.sch {
  margin: 0;
  font-family: var(--sch-fb);
  font-size: 16px;
  line-height: 1.6;
  color: var(--sch-body);
  background: var(--sch-paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--sch-fd); color: var(--sch-ink); line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
a { color: var(--sp); text-decoration: none; }
a:hover { text-decoration: underline; }
b, strong { font-weight: 700; }
i { font-style: normal; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--sp); outline-offset: 2px; }

.sch-wrap { width: 100%; max-width: var(--sch-wrap); margin: 0 auto; padding: 0 20px; }
.sch-narrow { max-width: 860px; }
.sch-dim { color: var(--sch-muted); }

/* Skip link: off-screen until it gets keyboard focus. */
.sch-skip {
  position: absolute; left: -9999px; top: 8px; z-index: 50;
  background: var(--sch-ink); color: #fff; padding: 10px 14px; border-radius: var(--sch-r-s);
  font-weight: 600; font-size: .9rem;
}
.sch-skip:focus { left: 8px; text-decoration: none; }

/* ---------------------------------------------------------------- topbar */
.sch-topbar { background: var(--sch-ink); color: rgba(255,255,255,.85); font-size: .76rem; letter-spacing: .01em; }
.sch-topbar .sch-wrap { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; flex-wrap: wrap; }
.sch-topbar a { color: #fff; font-weight: 600; }
.sch-topbar__r { white-space: nowrap; }

/* ---------------------------------------------------------------- header */
.sch-head { background: var(--sch-paper); border-bottom: 1px solid var(--sch-line); position: relative; z-index: 5; }
.sch-head__in { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; }

.sch-brand { display: flex; align-items: center; gap: 14px; color: var(--sch-ink); min-width: 0; }
.sch-brand:hover { text-decoration: none; }
.sch-brand__l { width: 60px; height: 60px; flex: 0 0 60px; object-fit: contain; }
.sch-brand__l--txt {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--sp); color: var(--on-sp); font-family: var(--sch-fd); font-weight: 700; font-size: 1.15rem; letter-spacing: .04em;
  border-radius: var(--sch-r);
}
.sch-brand__t { display: flex; flex-direction: column; min-width: 0; }
.sch-brand__t b { font-family: var(--sch-fd); font-size: 1.12rem; line-height: 1.2; color: var(--sch-ink); }
.sch-brand__t i { font-size: .8rem; color: var(--sch-muted); margin-top: 3px; }

.sch-burger {
  display: none; margin-left: auto; width: 44px; height: 44px; padding: 10px;
  border: 1px solid var(--sch-line); border-radius: var(--sch-r-s); background: var(--sch-paper); cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.sch-burger span { display: block; height: 2px; background: var(--sch-ink); border-radius: 1px; transition: transform .2s, opacity .2s; }
.sch-nav-open .sch-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.sch-nav-open .sch-burger span:nth-child(2) { opacity: 0; }
.sch-nav-open .sch-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sch-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.sch-nav__i {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 12px;
  font-weight: 600; font-size: .9rem; color: var(--sch-ink);
  border-bottom: 3px solid transparent; border-radius: 0; line-height: 1.2;
}
.sch-nav__i:hover { text-decoration: none; border-bottom-color: var(--sch-line); }
.sch-nav__i.is-on { border-bottom-color: var(--sp); color: var(--sp); }
.sch-nav__i--ext::after { content: "\2197"; font-size: .75em; opacity: .6; }
.sch-nav__i--results {
  background: var(--sp); color: var(--on-sp); border-radius: var(--sch-r-s); border-bottom: 0; padding: 10px 16px; margin-left: 8px;
}
.sch-nav__i--results:hover, .sch-nav__i--results.is-on { color: var(--on-sp); filter: brightness(1.08); border-bottom: 0; }

/* Sidebar column: only the split template shows it. */
.sch-side { display: none; }
.sch-side__c { font-size: .9rem; }
.sch-side__c p { margin-bottom: .8em; }

.sch-main { min-height: 50vh; }

/* -------------------------------------------------------------- buttons */
.sch-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 2px solid var(--sp); border-radius: var(--sch-r-s);
  background: var(--sp); color: var(--on-sp); font-family: var(--sch-fd); font-weight: 600; font-size: .9rem; line-height: 1.2;
  cursor: pointer; text-align: center; transition: filter .15s, transform .15s;
}
.sch-btn:hover { text-decoration: none; filter: brightness(1.08); transform: translateY(-1px); color: var(--on-sp); }
.sch-btn--line { background: transparent; color: var(--sp); }
.sch-btn--line:hover { background: var(--sp); color: var(--on-sp); }
.sch-btn--sm { padding: 8px 14px; font-size: .8rem; border-width: 1px; }
.sch-btn--lg { padding: 15px 28px; font-size: 1rem; }
.sch-btn svg { width: 18px; height: 18px; }

.sch-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--sp); }
.sch-more::after { content: "\2192"; transition: transform .15s; }
.sch-more:hover { text-decoration: none; }
.sch-more:hover::after { transform: translateX(3px); }

.sch-eyebrow {
  display: inline-block; font-family: var(--sch-fd); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ss); margin-bottom: 12px;
}

/* ------------------------------------------------------------ home hero */
.sch-hero { position: relative; background: var(--sp); color: var(--on-sp); padding: 72px 0; overflow: hidden; isolation: isolate; }
.sch-hero .sch-eyebrow { color: inherit; opacity: .85; }
.sch-hero h1 { color: inherit; font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); max-width: 18ch; margin-bottom: .4em; }
.sch-hero p { font-size: 1.08rem; max-width: 58ch; opacity: .92; margin-bottom: 1.6em; }
.sch-hero__in { position: relative; z-index: 2; }
.sch-hero__a { display: flex; gap: 12px; flex-wrap: wrap; }
.sch-hero .sch-btn { background: var(--on-sp); border-color: var(--on-sp); color: var(--sp); }
.sch-hero .sch-btn:hover { color: var(--sp); }
.sch-hero .sch-btn--line { background: transparent; color: var(--on-sp); }
.sch-hero .sch-btn--line:hover { background: var(--on-sp); color: var(--sp); }

/* With a photograph the text is always white on a dark wash, whatever the school colours. */
.sch-hero--img { color: #fff; min-height: 440px; display: flex; align-items: center; }
.sch-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
/* Two or three welcome photographs crossfade slowly; one behaves as ever.
   The first layer starts visible so nothing depends on the script running. */
.sch-hero--slides .sch-hero__img { opacity: 0; transition: opacity 1.6s ease; }
.sch-hero--slides .sch-hero__img.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .sch-hero--slides .sch-hero__img { transition: none; }
}
.sch-hero--img::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(6,18,38,.82) 0%, rgba(6,18,38,.55) 55%, rgba(6,18,38,.25) 100%);
}
.sch-hero--img .sch-btn { background: #fff; border-color: #fff; color: var(--sch-ink); }
.sch-hero--img .sch-btn:hover { color: var(--sch-ink); }
.sch-hero--img .sch-btn--line { background: transparent; color: #fff; }
.sch-hero--img .sch-btn--line:hover { background: #fff; color: var(--sch-ink); }

/* --------------------------------------------------------------- notices */
.sch-notices { background: var(--sch-wash); border-bottom: 1px solid var(--sch-line); padding: 22px 0; }
.sch-notices .sch-wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.sch-notice {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px;
  background: var(--sch-paper); border: 1px solid var(--sch-line); border-top: 3px solid var(--ss); border-radius: var(--sch-r-s);
  color: var(--sch-ink);
}
.sch-notice:hover { text-decoration: none; border-color: var(--sp); border-top-color: var(--ss); }
.sch-notice b { font-family: var(--sch-fd); font-size: .98rem; line-height: 1.3; }
.sch-notice:hover b { text-decoration: underline; }
.sch-notice__k { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ss); }
.sch-notice__d { font-size: .8rem; color: var(--sch-muted); }

/* -------------------------------------------------------------- sections */
.sch-sec { padding: 52px 0; }
.sch-sec--wash { background: var(--sch-wash); border-top: 1px solid var(--sch-line); }
.sch-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.sch-h2 { font-size: 1.2rem; padding-bottom: 10px; margin-bottom: 14px; border-bottom: 2px solid var(--sp); }

/* Page header band on every inner page. */
.sch-phero { background: var(--sp); color: var(--on-sp); padding: 44px 0; }
.sch-phero h1 { color: inherit; font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.4rem); margin-bottom: .2em; }
.sch-phero p { margin: 0; opacity: .88; max-width: 70ch; }

/* ----------------------------------------------------------------- prose */
.sch-prose { max-width: 72ch; }
.sch-prose > :first-child { margin-top: 0; }
.sch-prose h2 { font-size: 1.45rem; margin-top: 1.6em; }
.sch-prose h3 { font-size: 1.15rem; margin-top: 1.4em; }
.sch-prose p, .sch-prose li { line-height: 1.75; }
.sch-prose ul, .sch-prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.sch-prose li { margin-bottom: .35em; }
.sch-prose a { text-decoration: underline; text-underline-offset: 2px; }
.sch-prose img { height: auto; border-radius: var(--sch-r-s); margin: 1em 0; }
.sch-prose blockquote { margin: 1.4em 0; padding: 16px 20px; background: var(--sch-wash); border-radius: var(--sch-r-s); font-style: italic; color: var(--sch-ink); }
.sch-prose blockquote p:last-child { margin-bottom: 0; }
.sch-prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: .93rem; }
.sch-prose th, .sch-prose td { padding: 10px 12px; border: 1px solid var(--sch-line); text-align: left; vertical-align: top; }
.sch-prose th { background: var(--sch-wash); font-family: var(--sch-fd); font-weight: 600; font-size: .82rem; }
.sch-prose hr { border: 0; border-top: 1px solid var(--sch-line); margin: 2em 0; }
.sch-prose iframe { max-width: 100%; }
.sch-prose .sch-btn { text-decoration: none; }

/* ----------------------------------------------------------------- aside */
.sch-aside { background: var(--sch-paper); }
.sch-aside p { font-size: .95rem; }
.sch-nitem { display: block; padding: 12px 0; border-bottom: 1px solid var(--sch-line); color: var(--sch-ink); }
.sch-nitem:first-of-type { padding-top: 0; }
.sch-nitem:hover { text-decoration: none; }
.sch-nitem:hover b { text-decoration: underline; }
.sch-nitem__d { display: block; font-size: .78rem; color: var(--sch-muted); margin-bottom: 2px; }
.sch-nitem b { display: block; font-family: var(--sch-fd); font-weight: 600; font-size: .95rem; line-height: 1.35; }
.sch-aside .sch-more { margin-top: 14px; }

/* ----------------------------------------------------------------- tiles */
.sch-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.sch-tile {
  display: flex; gap: 14px; align-items: flex-start; padding: 22px;
  background: var(--sch-paper); border: 1px solid var(--sch-line); border-radius: var(--sch-r); color: var(--sch-ink);
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.sch-tile:hover { text-decoration: none; border-color: var(--sp); transform: translateY(-2px); box-shadow: 0 8px 24px -14px rgba(11,27,51,.35); }
.sch-tile > svg { width: 30px; height: 30px; flex: 0 0 30px; color: var(--ss); margin-top: 2px; }
.sch-tile span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sch-tile b { font-family: var(--sch-fd); font-size: 1.02rem; line-height: 1.25; }
.sch-tile i { font-size: .85rem; color: var(--sch-muted); line-height: 1.45; }
.sch-tile--img { position: relative; padding: 0; min-height: 200px; overflow: hidden; }
.sch-tile--img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.sch-tile--img:hover img { transform: scale(1.04); }
.sch-tile--img span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 18px 16px; color: #fff;
  background: linear-gradient(180deg, rgba(6,18,38,0) 0%, rgba(6,18,38,.85) 100%);
}
.sch-tile--img i { color: rgba(255,255,255,.85); }

/* ------------------------------------------------------------- news list */
.sch-list { display: grid; gap: 18px; }
.sch-card {
  display: flex; gap: 22px; padding: 20px; background: var(--sch-paper);
  border: 1px solid var(--sch-line); border-radius: var(--sch-r);
}
.sch-card__img { width: 240px; height: 160px; flex: 0 0 240px; object-fit: cover; border-radius: var(--sch-r-s); }
.sch-card__b { flex: 1; min-width: 0; }
.sch-card__d { display: block; font-size: .78rem; color: var(--sch-muted); margin-bottom: 6px; }
.sch-card h2 { font-size: 1.2rem; margin-bottom: .35em; }
.sch-card h2 a { color: var(--sch-ink); }
.sch-card p { font-size: .95rem; margin-bottom: .9em; }
.sch-card .sch-btn { margin-top: 2px; }
.sch-artimg { width: 100%; max-height: 480px; object-fit: cover; border-radius: var(--sch-r); margin-bottom: 28px; }

/* --------------------------------------------------------------- gallery */
.sch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.sch-photo { margin: 0; }
.sch-photo a { display: block; overflow: hidden; border-radius: var(--sch-r-s); background: var(--sch-wash); }
.sch-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .3s; }
.sch-photo a:hover img { transform: scale(1.04); }
.sch-photo figcaption { font-size: .82rem; color: var(--sch-muted); padding: 8px 2px 0; }

/* --------------------------------------------------------------- results */
.sch-frame { margin-top: 28px; border: 1px solid var(--sch-line); border-radius: var(--sch-r); overflow: hidden; background: var(--sch-wash); }
.sch-frame iframe { display: block; width: 100%; height: 760px; border: 0; }

/* ----------------------------------------------------------------- pager */
.aps-pager { display: flex; align-items: center; gap: 8px; margin-top: 28px; flex-wrap: wrap; font-size: .88rem; }
.aps-pager a, .aps-pager span.is-on, .aps-pager span.is-off, .aps-pager span.is-gap {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px;
  border: 1px solid var(--sch-line); border-radius: var(--sch-r-s); background: var(--sch-paper); color: var(--sch-ink);
  font-family: var(--sch-fd); font-weight: 600;
}
.aps-pager a:hover { text-decoration: none; border-color: var(--sp); color: var(--sp); }
.aps-pager span.is-on { background: var(--sp); border-color: var(--sp); color: var(--on-sp); }
.aps-pager span.is-off { opacity: .4; }
.aps-pager span.is-gap { border-color: transparent; background: transparent; }
.aps-pager .aps-pager__c, .aps-pager > span:only-child { margin-left: auto; color: var(--sch-muted); border: 0; background: transparent; height: auto; min-width: 0; padding: 0; font-family: var(--sch-fb); font-weight: 400; }

/* ---------------------------------------------------------------- footer */
/* Long-token safety: school emails and links, typed by school staff, must
   wrap inside their cards instead of escaping them. Inherits downward. */
.sch-foot, .sch-side__c, .sch-prose { overflow-wrap: anywhere; }

.sch-foot { background: var(--sch-ink); color: rgba(255,255,255,.82); font-size: .9rem; margin-top: auto; }
.sch-foot a { color: #fff; }
.sch-foot p { margin-bottom: .8em; }
.sch-foot__g { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
.sch-foot__h { display: block; font-family: var(--sch-fd); color: #fff; font-size: 1rem; margin-bottom: 12px; }
.sch-foot__nav { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.sch-foot__nav li { margin-bottom: 8px; break-inside: avoid; }
.sch-foot__b {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 18px; padding-bottom: 22px; font-size: .78rem; color: rgba(255,255,255,.62);
}
.sch-foot__b::before { content: ""; display: block; width: 100%; border-top: 1px solid rgba(255,255,255,.14); margin-bottom: 14px; }

/* ---------------------------------------------------------- holding page */
.sch-hold { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--sch-wash); }
.sch-hold__c { max-width: 560px; text-align: center; background: var(--sch-paper); padding: 48px 40px; border: 1px solid var(--sch-line); border-radius: var(--sch-r); }
.sch-hold__c h1 { font-size: 1.8rem; }
.sch-hold__c p { color: var(--sch-muted); margin-bottom: 1.6em; }

/* ============================================================================
   TEMPLATES
   ========================================================================== */

/* --- classic: crest and name centred above the navigation ----------------- */
.sch-tpl-classic .sch-head__in { flex-direction: column; align-items: center; gap: 12px; padding-top: 22px; padding-bottom: 0; }
.sch-tpl-classic .sch-brand { flex-direction: column; text-align: center; gap: 10px; }
.sch-tpl-classic .sch-brand__l { width: 84px; height: 84px; flex-basis: 84px; }
.sch-tpl-classic .sch-brand__t { align-items: center; }
.sch-tpl-classic .sch-brand__t b { font-size: 1.4rem; }
.sch-tpl-classic .sch-nav { margin: 6px 0 0; justify-content: center; width: 100%; border-top: 1px solid var(--sch-line); padding: 6px 0; }
.sch-tpl-classic .sch-nav__i--results { margin-left: 4px; }
.sch-tpl-classic .sch-hero { padding: 64px 0; }
.sch-tpl-classic .sch-hero--img { min-height: 400px; }

/* --- banner: the name sits over a full-width photograph ------------------- */
.sch-tpl-banner .sch-head { background: var(--sp); border-bottom: 0; }
.sch-tpl-banner .sch-brand, .sch-tpl-banner .sch-brand__t b { color: var(--on-sp); }
.sch-tpl-banner .sch-brand__t i { color: var(--on-sp); opacity: .78; }
.sch-tpl-banner .sch-brand__l--txt { background: var(--on-sp); color: var(--sp); }
.sch-tpl-banner .sch-nav__i { color: var(--on-sp); opacity: .9; }
.sch-tpl-banner .sch-nav__i:hover { opacity: 1; border-bottom-color: rgba(255,255,255,.35); }
.sch-tpl-banner .sch-nav__i.is-on { opacity: 1; border-bottom-color: var(--on-sp); }
.sch-tpl-banner .sch-nav__i--results { background: var(--on-sp); color: var(--sp); }
.sch-tpl-banner .sch-nav__i--results:hover, .sch-tpl-banner .sch-nav__i--results.is-on { color: var(--sp); }
.sch-tpl-banner .sch-burger { background: transparent; border-color: rgba(255,255,255,.4); }
.sch-tpl-banner .sch-burger span { background: var(--on-sp); }
.sch-tpl-banner .sch-hero { padding: 96px 0; }
.sch-tpl-banner .sch-hero--img { min-height: 560px; }
.sch-tpl-banner .sch-hero--img::before { background: linear-gradient(180deg, rgba(6,18,38,.35) 0%, rgba(6,18,38,.2) 40%, rgba(6,18,38,.85) 100%); }
.sch-tpl-banner .sch-hero h1 { font-size: clamp(2.1rem, 1.3rem + 3.2vw, 3.6rem); }
/* the quick-link row sits straight under the photograph */
.sch-tpl-banner .sch-notices { padding: 0; border: 0; background: transparent; }
.sch-tpl-banner .sch-notices .sch-wrap { transform: translateY(-28px); }
.sch-tpl-banner .sch-notice { box-shadow: 0 12px 30px -18px rgba(11,27,51,.45); }
.sch-tpl-banner .sch-phero { padding: 56px 0; }

/* --- split: crest, navigation and contact in a coloured left column ------- */
.sch-tpl-split .sch-side { background: var(--sp); color: var(--on-sp); }
.sch-tpl-split .sch-side a { color: var(--on-sp); text-decoration: underline; text-underline-offset: 2px; }
.sch-tpl-split .sch-side__c { padding: 8px 24px 28px; border-top: 1px solid rgba(255,255,255,.16); margin: 0 8px; }
@media (min-width: 1000px) {
  .sch-tpl-split .sch-site {
    display: grid; min-height: 100vh;
    grid-template-columns: 300px minmax(0, 1fr);
    grid-template-rows: auto auto auto auto 1fr auto;
    grid-template-areas:
      "top   top"
      "brand main"
      "nav   main"
      "side  main"
      "fill  main"
      "foot  foot";
    background: linear-gradient(90deg, var(--sp) 300px, var(--sch-paper) 300px);
  }
  /* the header box dissolves so its children become grid items */
  .sch-tpl-split .sch-head, .sch-tpl-split .sch-head__in { display: contents; }
  .sch-tpl-split .sch-topbar { grid-area: top; }
  .sch-tpl-split .sch-main { grid-area: main; background: var(--sch-paper); }
  .sch-tpl-split .sch-foot { grid-area: foot; }
  .sch-tpl-split .sch-side { grid-area: side; display: block; }
  .sch-tpl-split .sch-brand {
    grid-area: brand; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px 32px 20px;
    color: var(--on-sp);
  }
  .sch-tpl-split .sch-brand__l { width: 88px; height: 88px; flex-basis: 88px; }
  .sch-tpl-split .sch-brand__l--txt { background: var(--on-sp); color: var(--sp); }
  .sch-tpl-split .sch-brand__t b { color: var(--on-sp); font-size: 1.3rem; }
  .sch-tpl-split .sch-brand__t i { color: var(--on-sp); opacity: .78; }
  .sch-tpl-split .sch-nav { grid-area: nav; flex-direction: column; align-items: stretch; margin: 0; padding: 8px 16px 20px; gap: 2px; }
  .sch-tpl-split .sch-nav__i { color: var(--on-sp); opacity: .9; border-bottom: 0; border-radius: var(--sch-r-s); padding: 10px 14px; }
  .sch-tpl-split .sch-nav__i:hover { opacity: 1; background: rgba(255,255,255,.12); }
  .sch-tpl-split .sch-nav__i.is-on { opacity: 1; background: rgba(255,255,255,.18); color: var(--on-sp); }
  .sch-tpl-split .sch-nav__i--results { background: var(--on-sp); color: var(--sp); margin: 10px 0 0; opacity: 1; }
  .sch-tpl-split .sch-nav__i--results:hover, .sch-tpl-split .sch-nav__i--results.is-on { color: var(--sp); background: var(--on-sp); }
  .sch-tpl-split .sch-hero { padding: 60px 0; }
  .sch-tpl-split .sch-hero--img { min-height: 380px; }
  .sch-tpl-split .sch-cols { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .sch-tpl-split .sch-wrap { max-width: 1040px; }
}

/* --- tiles: the notice board ---------------------------------------------- */
.sch-tpl-tiles .sch-head { background: var(--sch-wash); }
.sch-tpl-tiles .sch-hero { padding: 44px 0; }
.sch-tpl-tiles .sch-hero--img { min-height: 320px; }
.sch-tpl-tiles .sch-hero h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); }
.sch-tpl-tiles .sch-notices { background: var(--sch-paper); padding: 28px 0 0; border: 0; }
.sch-tpl-tiles .sch-notice { background: var(--ss); color: var(--on-ss); border-color: var(--ss); }
.sch-tpl-tiles .sch-notice__k, .sch-tpl-tiles .sch-notice__d { color: var(--on-ss); opacity: .8; }
.sch-tpl-tiles .sch-sec { padding: 36px 0; }
.sch-tpl-tiles .sch-aside { background: var(--sch-wash); border: 1px solid var(--sch-line); border-radius: var(--sch-r); padding: 22px; }
.sch-tpl-tiles .sch-aside .sch-h2 { border-bottom-color: var(--ss); }
.sch-tpl-tiles .sch-tiles { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.sch-tpl-tiles .sch-tile { flex-direction: column; gap: 16px; padding: 24px; }
.sch-tpl-tiles .sch-tile > svg { width: 48px; height: 48px; flex-basis: 48px; padding: 11px; background: var(--ss); color: var(--on-ss); border-radius: var(--sch-r-s); margin: 0; }
.sch-tpl-tiles .sch-tile--img { flex-direction: row; min-height: 220px; }
.sch-tpl-tiles .sch-phero { padding: 32px 0; }

/* --- minimal: type-led, no photograph on the home page -------------------- */
.sch-tpl-minimal .sch-topbar { background: var(--sch-wash); color: var(--sch-muted); border-bottom: 1px solid var(--sch-line); }
.sch-tpl-minimal .sch-topbar a { color: var(--sch-ink); }
.sch-tpl-minimal .sch-brand__l { width: 48px; height: 48px; flex-basis: 48px; }
.sch-tpl-minimal .sch-hero__img, .sch-tpl-minimal .sch-hero--img::before { display: none; }
.sch-tpl-minimal .sch-hero, .sch-tpl-minimal .sch-hero--img {
  background: var(--sch-paper); color: var(--sch-ink); min-height: 0; padding: 64px 0 40px; border-bottom: 1px solid var(--sch-line);
}
.sch-tpl-minimal .sch-hero .sch-eyebrow { color: var(--ss); opacity: 1; }
.sch-tpl-minimal .sch-hero h1 { color: var(--sch-ink); max-width: 22ch; }
.sch-tpl-minimal .sch-hero p { color: var(--sch-body); opacity: 1; }
.sch-tpl-minimal .sch-hero .sch-btn { background: var(--sp); border-color: var(--sp); color: var(--on-sp); }
.sch-tpl-minimal .sch-hero .sch-btn--line { background: transparent; color: var(--sp); }
.sch-tpl-minimal .sch-hero .sch-btn--line:hover { background: var(--sp); color: var(--on-sp); }
.sch-tpl-minimal .sch-phero { background: var(--sch-paper); color: var(--sch-ink); border-bottom: 1px solid var(--sch-line); padding: 40px 0 28px; }
.sch-tpl-minimal .sch-phero h1 { color: var(--sch-ink); }
.sch-tpl-minimal .sch-phero p { color: var(--sch-muted); opacity: 1; }
.sch-tpl-minimal .sch-notices { background: var(--sch-paper); }
.sch-tpl-minimal .sch-sec--wash { background: var(--sch-paper); }
.sch-tpl-minimal .sch-tile { border-radius: var(--sch-r-s); }
.sch-tpl-minimal .sch-foot { background: var(--sch-wash); color: var(--sch-body); border-top: 1px solid var(--sch-line); }
.sch-tpl-minimal .sch-foot a, .sch-tpl-minimal .sch-foot__h { color: var(--sch-ink); }
.sch-tpl-minimal .sch-foot__b { color: var(--sch-muted); }
.sch-tpl-minimal .sch-foot__b::before { border-top-color: var(--sch-line); }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .sch-cols { grid-template-columns: 1fr; gap: 36px; }
  .sch-foot__g { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .sch-burger { display: flex; }
  .sch-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; margin: 0; padding: 8px 0 4px; gap: 0; border-top: 1px solid var(--sch-line); }
  .sch-nav.is-open { display: flex; }
  .sch-nav__i { border-bottom: 1px solid var(--sch-line); border-radius: 0; padding: 12px 4px; }
  .sch-nav__i.is-on { border-bottom-color: var(--sch-line); }
  .sch-nav__i--results { margin: 10px 0 6px; padding: 12px 16px; justify-content: center; }
  .sch-tpl-classic .sch-head__in { align-items: stretch; padding-bottom: 12px; }
  .sch-tpl-classic .sch-brand { flex-direction: row; text-align: left; align-self: flex-start; }
  .sch-tpl-classic .sch-brand__l { width: 60px; height: 60px; flex-basis: 60px; }
  .sch-tpl-classic .sch-brand__t { align-items: flex-start; }
  .sch-tpl-classic .sch-brand__t b { font-size: 1.12rem; }
  .sch-tpl-classic .sch-burger { position: absolute; right: 20px; top: 22px; }
  .sch-tpl-classic .sch-head__in { position: relative; }
  .sch-tpl-classic .sch-nav { border-top: 1px solid var(--sch-line); }
  .sch-tpl-banner .sch-nav { border-top-color: rgba(255,255,255,.2); }
  .sch-tpl-banner .sch-nav__i { border-bottom-color: rgba(255,255,255,.14); }
  .sch-tpl-banner .sch-hero { padding: 64px 0; }
  .sch-tpl-banner .sch-hero--img { min-height: 420px; }
  .sch-tpl-banner .sch-notices .sch-wrap { transform: none; padding-top: 16px; }
  .sch-hero { padding: 52px 0; }
  .sch-sec { padding: 40px 0; }
  .sch-card { flex-direction: column; gap: 14px; }
  .sch-card__img { width: 100%; height: 200px; flex-basis: auto; }
  .sch-frame iframe { height: 620px; }
}
@media (max-width: 600px) {
  body.sch { font-size: 15px; }
  .sch-wrap { padding: 0 16px; }
  .sch-topbar .sch-wrap { justify-content: center; text-align: center; padding-top: 6px; padding-bottom: 6px; }
  .sch-topbar__l { display: none; }
  .sch-brand__l { width: 50px; height: 50px; flex-basis: 50px; }
  .sch-brand__t b { font-size: 1rem; }
  .sch-hero { padding: 40px 0; }
  .sch-hero--img { min-height: 360px; }
  .sch-hero__a .sch-btn { flex: 1 1 100%; }
  .sch-phero { padding: 32px 0; }
  .sch-foot__g { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; }
  .sch-foot__nav { columns: 1; }
  .sch-foot__b { flex-direction: column; gap: 6px; }
  .sch-tiles { gap: 12px; }
  .sch-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .sch-hold__c { padding: 32px 22px; }
  .sch-tpl-tiles .sch-tile { flex-direction: row; }
  .sch-tpl-tiles .sch-tile > svg { width: 40px; height: 40px; flex-basis: 40px; padding: 9px; }
}

/* ============================================================================
   PRINT
   ========================================================================== */
@media print {
  .sch-topbar, .sch-burger, .sch-nav, .sch-side, .sch-skip, .sch-foot__nav, .sch-hero__a, .aps-pager { display: none !important; }
  body.sch { color: #000; background: #fff; font-size: 12pt; }
  .sch-hero, .sch-phero { background: none !important; color: #000 !important; padding: 12pt 0 !important; min-height: 0 !important; display: block !important; }
  .sch-hero h1, .sch-phero h1 { color: #000 !important; }
  .sch-hero__img, .sch-hero--img::before { display: none !important; }
  .sch-foot { background: none; color: #000; border-top: 1px solid #000; }
  .sch-foot a, .sch-foot__h { color: #000; }
  .sch-cols { grid-template-columns: 1fr; }
  .sch-sec { padding: 10pt 0; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #444; }
  .sch-tpl-split .sch-site { display: block; background: none; }
  .sch-tpl-split .sch-head, .sch-tpl-split .sch-head__in { display: block; }
}
