/* Public school website. Accent colour comes from Front CMS Setting > Theme (--site-accent). */
:root {
    --site-accent: #2563eb;
    --site-bg: #f6f7fb;
    --site-card: #fff;
    --site-border: #e6e8ef;
    --site-text: #1f2937;
    --site-muted: #6b7280;
    --site-dark: #0f172a;
    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    --bs-link-color-rgb: 37, 99, 235;
}
body { background: var(--site-bg); color: var(--site-text); }
a { color: var(--site-accent); }
.min-w-0 { min-width: 0; }
.site-accent { color: var(--site-accent); }
.site-skip { position: absolute; left: 1rem; top: .5rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: .5rem; }

.btn-site { background: var(--site-accent); border-color: var(--site-accent); color: #000; }
.btn-site:hover, .btn-site:focus-visible { background: color-mix(in srgb, var(--site-accent) 85%, #000); border-color: color-mix(in srgb, var(--site-accent) 85%, #000); color: #fff; }

.site-preview { background: #fef3c7; color: #78350f; font-size: .875rem; text-align: center; padding: .4rem 1rem; }
.site-preview a { color: inherit; font-weight: 600; margin-left: .5rem; }

.site-top { background: var(--site-dark); color: #cbd5e1; font-size: .8125rem; padding: .4rem 0; }
.site-top a { color: inherit; text-decoration: none; }
.site-top a:hover { color: #fff; }

.site-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--site-border); }
.site-header .navbar { padding: .6rem 0; }
.site-logo { max-height: 52px; max-width: 260px; width: auto; object-fit: contain; }
.site-brand { font-weight: 700; font-size: 1.1rem; color: var(--site-text); white-space: normal; line-height: 1.2; }
.site-header .nav-link { font-weight: 500; color: var(--site-text); padding: .5rem .85rem !important; border-radius: .5rem; }
.site-header .nav-link:hover { color: var(--site-accent); background: color-mix(in srgb, var(--site-accent) 8%, transparent); }
.site-header .nav-link.active { color: var(--site-accent); }
.site-header .dropdown-item.active, .site-header .dropdown-item:active { background: var(--site-accent); }
.navbar-toggler { border: 0; font-size: 1.6rem; padding: .25rem .5rem; }
/* Menu dropdowns (sub-items set in Front CMS › Menus): open on hover / keyboard focus on computers */
@media (min-width: 992px) and (hover: hover) {
    .site-dd:hover > .dropdown-menu, .site-dd:focus-within > .dropdown-menu { display: block; margin-top: 0; }
    .site-dd > .dropdown-menu { top: 100%; }
}
.site-dd .dropdown-menu { min-width: 13rem; border-radius: .5rem; box-shadow: 0 12px 30px -12px rgba(15, 23, 42, .35); padding: .35rem; }
.site-dd .dropdown-item { border-radius: .35rem; padding: .45rem .8rem; font-size: .92rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--site-accent) 30%, transparent); }

/* Banner height / fit come from Front CMS Setting (inline --hero-h, --hero-h-sm, --hero-fit on #siteHero). */
.site-hero .carousel-item img { width: 100%; height: var(--hero-h, clamp(220px, 42vw, 520px)); object-fit: var(--hero-fit, cover); background: #e9edf3; display: block; }
@media (max-width: 767.98px) { .site-hero .carousel-item img { height: var(--hero-h-sm, clamp(220px, 42vw, 520px)); } }
.site-hero-plain { background: linear-gradient(135deg, var(--site-accent), color-mix(in srgb, var(--site-accent) 55%, #0f172a)); color: #fff; }

.site-h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 650; margin-bottom: 1rem; }
.site-h2 { font-size: 1.25rem; font-weight: 650; margin-bottom: 1.1rem; display: flex; align-items: center; }

.site-card { background: var(--site-card); border: 1px solid var(--site-border); border-radius: .9rem; color: inherit; text-decoration: none; display: block; }
a.site-card { transition: transform .15s ease, box-shadow .15s ease; }
a.site-card:hover { transform: translateY(-2px); box-shadow: 0 10px 25px -12px rgba(15, 23, 42, .25); color: inherit; }
.site-tile { overflow: hidden; }
.site-thumb { aspect-ratio: 16 / 10; background: color-mix(in srgb, var(--site-accent) 10%, #fff); display: grid; place-items: center; overflow: hidden; }
.site-thumb img { width: 100%; height: 100%; object-fit: cover; }
.site-thumb i { font-size: 2.2rem; color: var(--site-accent); opacity: .6; }

.site-date { flex: none; width: 3.1rem; text-align: center; font-size: .7rem; text-transform: uppercase; color: var(--site-muted); line-height: 1.15; background: var(--site-bg); border-radius: .5rem; padding: .3rem 0; }
.site-date b { display: block; font-size: 1.1rem; color: var(--site-accent); }
.site-date-lg { width: 4.2rem; padding: .5rem 0; }
.site-date-lg b { font-size: 1.5rem; }
.site-news li + li { border-top: 1px dashed var(--site-border); margin-top: .6rem; padding-top: .6rem; }
.site-news a { color: inherit; text-decoration: none; }
.site-news a:hover span:last-child { color: var(--site-accent); }
.site-side { position: sticky; top: 96px; }
.site-complain { color: inherit; }

.site-empty { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 2.5rem 1rem; color: var(--site-muted); background: var(--site-card); border: 1px dashed var(--site-border); border-radius: .9rem; }
.site-empty i { font-size: 2rem; opacity: .6; }

/* Content written in the CMS editor */
.site-prose { line-height: 1.7; overflow-wrap: anywhere; }
.site-prose img { max-width: 100%; height: auto; border-radius: .6rem; }
.site-prose table { width: 100%; margin-bottom: 1rem; border-collapse: collapse; }
.site-prose td, .site-prose th { border: 1px solid var(--site-border); padding: .5rem; }
.site-prose blockquote { border-left: 4px solid var(--site-accent); padding: .25rem 1rem; color: var(--site-muted); margin: 1rem 0; }
.site-prose .container { padding: 0; max-width: none; }
.site-feature { width: 100%; max-height: 460px; object-fit: cover; border-radius: .9rem; }

.site-form .form-control { padding: .65rem .85rem; }
.site-form .form-control:focus { border-color: var(--site-accent); box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--site-accent) 20%, transparent); }
.site-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.site-gal-item { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: .7rem; overflow: hidden; aspect-ratio: 1; background: #e5e7eb; cursor: zoom-in; }
.site-gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.site-gal-item:hover img { transform: scale(1.05); }
.site-gal-item:focus-visible { outline: 3px solid var(--site-accent); outline-offset: 2px; }
.site-play { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.6rem; color: #fff; background: rgba(0, 0, 0, .25); }
.site-lb-stage { min-height: 50vh; display: grid; place-items: center; }
.site-lb-stage img { max-width: 100%; max-height: 85vh; }
.site-lb-stage iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }
.site-lb-close { position: absolute; top: .75rem; right: .75rem; z-index: 3; }
.site-lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; border: 0; background: rgba(255, 255, 255, .15); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 1.3rem; }
.site-lb-nav.prev { left: .75rem; } .site-lb-nav.next { right: .75rem; }
.site-lb-nav:hover { background: rgba(255, 255, 255, .3); }
.site-lb-count { position: absolute; bottom: .6rem; left: 0; right: 0; text-align: center; color: #cbd5e1; }

.site-footer { background: var(--site-dark); color: #cbd5e1; margin-top: 2rem; }
.site-footer a { color: #e2e8f0; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-foot-title { font-weight: 600; color: #fff; margin-bottom: .75rem; }
.site-social { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.site-social:hover { background: var(--site-accent); text-decoration: none !important; }
.site-copy { border-top: 1px solid rgba(255, 255, 255, .08); padding: 1rem 0; color: #94a3b8; text-align: center; }
.site-copy p { margin: 0; }

.site-wa { position: fixed; right: 18px; bottom: 18px; z-index: 1030; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 1.7rem; box-shadow: 0 8px 20px rgba(0, 0, 0, .2); }
.site-wa:hover { color: #fff; transform: scale(1.06); }
.site-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1040; max-width: 640px; margin: 0 auto; background: var(--site-dark); color: #e2e8f0; border-radius: .8rem; padding: .8rem 1rem; display: flex; align-items: center; gap: 1rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.site-cookie[hidden] { display: none; }
.site-cookie a { color: #fff; }
.site-cookie p { margin: 0; }

[dir="rtl"] .site-prose blockquote { border-left: 0; border-right: 4px solid var(--site-accent); }
[dir="rtl"] .site-wa { right: auto; left: 18px; }

@media (max-width: 991.98px) {
    .site-header .navbar-nav { padding: .5rem 0; }
    .site-side { position: static; }
}
/* Dark mode follows the visitor's device, except on sites using the Home Page design (html.site-light). */
@media (prefers-color-scheme: dark) {
    :root:not(.site-light) { --site-bg: #0b1120; --site-card: #111827; --site-border: #1f2937; --site-text: #e5e7eb; --site-muted: #9ca3af; --site-dark: #020617; }
    html:not(.site-light) body { color-scheme: dark; }
    html:not(.site-light) .site-header { background: rgba(17, 24, 39, .9); }
    html:not(.site-light) .site-thumb { background: color-mix(in srgb, var(--site-accent) 18%, #111827); }
    html:not(.site-light) .navbar-toggler { color: #e5e7eb; }
    html:not(.site-light) :is(.site-accent, .site-prose a, .site-date b, .site-header .nav-link.active, .site-header .nav-link:hover) { color: color-mix(in srgb, var(--site-accent) 45%, #fff); }
    html:not(.site-light) :is(.btn-site, .btn-site:hover, .btn-site:focus-visible) { background: color-mix(in srgb, var(--site-accent) 35%, #fff); border-color: transparent; color: #0f172a; }
    html:not(.site-light) .site-preview { background: #422006; color: #fde68a; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
