:root {
  --ink: #101a3a;
  --ink-deep: #080f28;
  --blue: #394aa7;
  --blue-2: #606dc2;
  --lavender: #afb2dc;
  --mist: #eff0fb;
  --paper: #f9f8f4;
  --white: #fff;
  --pink: #f4d7db;
  --yellow: #f7c84b;
  --green: #9fc8b3;
  --coral: #e88373;
  --muted: #5b6479;
  --line: #d9ddea;
  --sans: "Segoe UI", Inter, Arial, sans-serif;
  --display: Georgia, "Times New Roman", serif;
  --shadow: 0 18px 46px rgba(16, 26, 58, .13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.55; }
body.panel-open { overflow: hidden; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.skip-link { position: fixed; z-index: 100; top: -5rem; left: 1rem; padding: .7rem 1rem; background: var(--yellow); color: var(--ink-deep); font-weight: 800; }
.skip-link:focus { top: 1rem; }
.announcement-banner { position: relative; z-index: 25; display: flex; align-items: center; justify-content: center; min-height: 38px; padding: .5rem 1.25rem; color: #fff; background: var(--blue); text-align: center; font-size: .78rem; font-weight: 800; letter-spacing: .015em; }
.announcement-banner[hidden] { display: none; }

.site-header { position: sticky; z-index: 20; top: 0; background: rgba(255,255,255,.93); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(16, 26, 58, .08); }
.header-inner { max-width: 1320px; min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin: auto; padding: .7rem 2.25rem; }
.brand { display: flex; align-items: center; flex-shrink: 0; gap: .72rem; }
.brand-mark { width: 64px; height: 64px; overflow: hidden; display: grid; place-items: center; border-radius: 50%; background: #fff; border: 1px solid #d8daea; }
.brand-mark img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; transform: scale(1.04); }
.brand-copy { display: grid; font-size: .7rem; line-height: 1.15; letter-spacing: .02em; color: var(--muted); }
.brand-copy strong { color: var(--ink); font-size: .89rem; letter-spacing: -.015em; }
.main-nav { display: flex; align-items: center; justify-content: center; gap: 1.4rem; font-size: .84rem; font-weight: 750; white-space: nowrap; }
.main-nav a { position: relative; padding: .65rem 0; }
.main-nav a::after { content: ""; position: absolute; bottom: .22rem; left: 0; right: 0; height: 2px; transform: scaleX(0); transform-origin: left; background: var(--blue); transition: transform .2s; }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: .4rem; }
.icon-button { border: 0; width: 37px; height: 37px; border-radius: 50%; color: var(--ink); background: transparent; display: grid; place-items: center; }
.icon-button:hover { background: var(--mist); }
.icon-button svg { width: 20px; height: 20px; }
.menu-button { display: none; padding: .4rem; border: 0; background: transparent; }
.menu-button span { display: block; width: 24px; height: 2px; margin: 4px; background: var(--ink); }

.site-shell { max-width: 1320px; margin: auto; padding: 0 2.25rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 .85rem; font-weight: 800; font-size: .72rem; letter-spacing: .13em; text-transform: uppercase; color: var(--blue); }
.eyebrow::before { content: ""; width: 30px; height: 2px; background: currentColor; }
.display-title { margin: 0; font-family: var(--display); font-size: clamp(2.25rem, 4.3vw, 4.65rem); line-height: .96; letter-spacing: -.065em; }
.section-heading { margin: 0; font-family: var(--display); font-size: clamp(2rem, 3.3vw, 3.3rem); line-height: 1; letter-spacing: -.055em; }
.section-copy { max-width: 37rem; margin: 1.1rem 0 0; color: var(--muted); font-size: 1rem; }
.button { min-height: 47px; border: 1px solid transparent; border-radius: 3px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; padding: 0 1.12rem; font-size: .85rem; font-weight: 800; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { background: var(--ink); }
.button-light { color: var(--ink); background: #fff; }
.button-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.button-yellow { background: var(--yellow); color: var(--ink); }
.button svg { width: 16px; }

/* Homepage */
.home-hero { overflow: hidden; min-height: 579px; background: var(--ink-deep); color: #fff; }
.hero-inner { position: relative; isolation: isolate; max-width: 1320px; min-height: 579px; margin: auto; padding: 5rem 2.25rem; display: flex; align-items: center; }
.hero-content { position: relative; z-index: 3; max-width: 685px; }
.hero-content .eyebrow { color: #c9cbed; }
.hero-title { margin: 0; max-width: 690px; font-family: var(--display); font-size: clamp(3.4rem, 7vw, 6.8rem); line-height: .87; letter-spacing: -.08em; }
.hero-title em { font-weight: normal; color: var(--yellow); }
.hero-text { max-width: 490px; margin: 1.5rem 0 2rem; color: #dce0fa; font-size: 1.07rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-art { position: absolute; z-index: 0; top: 0; right: max(-4rem, -5vw); width: min(53vw, 735px); height: 100%; overflow: hidden; }
.hero-sun { position: absolute; right: 8%; top: 13%; width: min(26vw, 347px); aspect-ratio: 1; background: var(--yellow); border-radius: 50%; }
.hero-school { position: absolute; right: 0; bottom: 0; width: 95%; height: 54%; background: #d9d4c8; clip-path: polygon(8% 15%, 48% 0, 92% 15%, 100% 100%, 0 100%); box-shadow: inset 0 -40px #c8c0b3; }
.hero-school::before { content: ""; position: absolute; inset: 18% 7% 0; background: repeating-linear-gradient(90deg, transparent 0 9%, #5061a6 9% 14%, transparent 14% 28%); opacity: .88; }
.hero-school::after { content: ""; position: absolute; left: 42%; bottom: 0; width: 17%; height: 40%; background: #222c60; border: 7px solid #efe8dc; }
.hero-stairs { position: absolute; right: -8%; bottom: 0; width: 70%; height: 16%; background: repeating-linear-gradient(0deg, #bdb5a9 0 18%, #dfd8ca 18% 36%); transform: skewX(-30deg); }
.hero-grid { position: absolute; z-index: 1; right: 3%; top: 11%; width: 37%; height: 65%; background-image: linear-gradient(#fff 1px, transparent 1px), linear-gradient(90deg, #fff 1px, transparent 1px); background-size: 40px 40px; opacity: .21; }
.hero-note { position: absolute; z-index: 4; right: 9%; bottom: 8%; width: 185px; padding: 1rem; background: var(--pink); color: var(--ink); transform: rotate(-5deg); box-shadow: 5px 7px 0 rgba(0,0,0,.14); font-size: .85rem; font-weight: 800; line-height: 1.2; }
.hero-note small { display: block; margin-bottom: .35rem; font-weight: 700; font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; color: #596177; }
.hero-scroll { position: absolute; z-index: 4; bottom: 1.2rem; left: 2.25rem; color: #c3c8ed; font-size: .69rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.hero-scroll::before { content: ""; display: inline-block; width: 28px; height: 1px; vertical-align: middle; margin-right: .5rem; background: currentColor; }

.quick-links { position: relative; z-index: 5; max-width: 1160px; margin: -48px auto 0; padding: 0 2.25rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; }
.quick-link { display: flex; align-items: center; justify-content: space-between; gap: .7rem; min-height: 118px; padding: 1.3rem 1.5rem; color: var(--ink); background: #fff; box-shadow: 0 8px 25px rgba(15,25,58,.1); font-weight: 800; line-height: 1.15; }
.quick-link:nth-child(1) { background: var(--yellow); }
.quick-link:nth-child(2) { background: #e7e7f4; }
.quick-link:nth-child(3) { background: #d8e9df; }
.quick-link svg { flex-shrink: 0; width: 26px; transition: transform .2s; }
.quick-link:hover svg { transform: translateX(4px); }

.home-news { padding: 7rem 0 6.5rem; }
.section-top { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.news-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 1.2rem; }
.news-card { position: relative; display: flex; flex-direction: column; min-height: 295px; padding: 1.5rem; border: 1px solid var(--line); background: #fff; transition: transform .2s, box-shadow .2s; }
.news-card-image { width: calc(100% + 3rem); height: 155px; margin: -1.5rem -1.5rem 1.2rem; object-fit: cover; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card.featured { grid-row: span 2; min-height: 610px; color: #fff; background: var(--blue); border-color: transparent; overflow: hidden; }
.news-card.featured::before { content: ""; position: absolute; right: -28%; bottom: -18%; width: 85%; aspect-ratio: 1; border: 1px solid #c8cdfb; border-radius: 50%; opacity: .4; }
.news-card.featured::after { content: "♫"; position: absolute; right: 12%; top: 6%; color: var(--yellow); font-family: var(--display); font-size: 11rem; line-height: 1; opacity: .94; }
.card-meta { position: relative; z-index: 1; display: flex; align-items: center; gap: .55rem; margin-bottom: auto; font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); }
.featured .card-meta { color: #eff0ff; }
.card-meta .category { display: inline-flex; padding: .28rem .5rem; background: var(--mist); color: var(--blue); }
.featured .card-meta .category { color: var(--ink); background: var(--yellow); }
.news-card h3 { position: relative; z-index: 1; margin: 1rem 0 .6rem; font-family: var(--display); font-size: 1.52rem; line-height: 1.03; letter-spacing: -.045em; }
.news-card.featured h3 { max-width: 90%; font-size: clamp(2rem, 3vw, 3.2rem); }
.news-card p { position: relative; z-index: 1; margin: 0 0 1rem; color: var(--muted); font-size: .88rem; }
.featured p { color: #e0e3ff; max-width: 81%; }
.card-read { position: relative; z-index: 1; margin-top: auto; font-size: .78rem; font-weight: 800; }
.card-read span { margin-left: .4rem; color: var(--coral); }
.featured .card-read span { color: var(--yellow); }

.community-promo { overflow: hidden; background: #e5e5f3; }
.community-promo-inner { position: relative; max-width: 1320px; margin: auto; padding: 5.6rem 2.25rem; }
.community-promo .section-copy { color: #465072; }
.community-art { position: absolute; right: 3.5rem; top: 2.5rem; width: 42%; height: 78%; }
.community-art .circle { position: absolute; border-radius: 50%; }
.community-art .circle.one { width: 65%; aspect-ratio: 1; right: 7%; top: 0; background: var(--yellow); }
.community-art .circle.two { width: 36%; aspect-ratio: 1; left: 0; bottom: 1%; background: var(--coral); }
.community-art .face { position: absolute; z-index: 1; right: 17%; bottom: 0; width: 54%; height: 80%; background: var(--ink); border-radius: 50% 50% 8% 8%; clip-path: polygon(18% 0, 83% 0, 100% 100%, 0 100%); }
.community-art .face::before, .community-art .face::after { content: ""; position: absolute; background: #f0c5a8; }
.community-art .face::before { width: 74%; height: 65%; left: 13%; top: 8%; border-radius: 40% 40% 45% 45%; }
.community-art .face::after { width: 12%; height: 4%; left: 44%; top: 47%; border-radius: 0 0 50% 50%; background: var(--ink); }

.home-info { padding: 6rem 0; }
.info-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.notice-list { border-top: 1px solid var(--line); }
.notice-item { display: grid; grid-template-columns: 77px 1fr auto; align-items: center; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.notice-date { color: var(--blue); font-size: .75rem; font-weight: 800; line-height: 1.2; }
.notice-date strong { display: block; font-family: var(--display); font-size: 1.7rem; line-height: .9; }
.notice-item h3 { margin: 0; font-size: .95rem; }
.notice-item svg { width: 20px; }
.contact-block { padding: 2rem; background: var(--ink); color: #fff; }
.contact-block h2 { margin: 0 0 1rem; font-family: var(--display); font-size: 2.2rem; line-height: 1; letter-spacing: -.05em; }
.contact-block p { margin: .45rem 0; color: #d4d8f6; font-size: .9rem; }
.contact-block a { color: #fff; font-weight: 800; }
.contact-block .button { margin-top: 1.4rem; }

/* Generic public pages */
.page-hero { position: relative; overflow: hidden; padding: 5.5rem 0 4.8rem; background: var(--mist); }
.page-hero::after { content: ""; position: absolute; width: 27vw; min-width: 250px; aspect-ratio: 1; top: -40%; right: 6%; background: var(--yellow); border-radius: 50%; opacity: .8; }
.page-hero .site-shell { position: relative; z-index: 1; }
.page-hero .display-title { max-width: 780px; }
.page-hero .section-copy { max-width: 620px; }
.page-body { max-width: 900px; margin: 0 auto; padding: 5rem 2.25rem 6.5rem; }
.page-content { font-size: 1.06rem; color: #303a57; }
.page-content h2 { margin: 2.4rem 0 .8rem; font-family: var(--display); color: var(--ink); font-size: 2.25rem; line-height: 1; letter-spacing: -.05em; }
.page-content h3 { margin: 1.8rem 0 .6rem; color: var(--ink); font-size: 1.25rem; }
.page-content p { margin: 0 0 1.1rem; }
.page-content ul { padding-left: 1.2rem; }
.page-content li { margin: .4rem 0; }
.page-image { height: 340px; margin: 0 0 2.5rem; background: linear-gradient(130deg, var(--blue), var(--lavender)); overflow: hidden; }
.page-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.building-gallery-page { min-height: calc(100vh - 83px); padding: 2rem; background: #101a3a; display: grid; place-items: center; }
.building-carousel { position: relative; width: min(1120px, 100%); overflow: hidden; background: #27345f; box-shadow: 0 24px 70px rgba(0,0,0,.28); }
.building-carousel-track { position: relative; aspect-ratio: 16 / 9; }
.building-carousel-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(1.025); transition: opacity .45s ease, transform .6s ease; pointer-events: none; }
.building-carousel-slide.active { opacity: 1; transform: scale(1); pointer-events: auto; }
.building-carousel-slide img { display: block; width: 100%; height: 100%; object-fit: contain; background: #101a3a; }
.building-carousel-arrow { position: absolute; top: 50%; z-index: 1; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(16,26,58,.72); color: #fff; font-size: 1.7rem; transform: translateY(-50%); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.building-carousel-arrow:hover { background: var(--purple); transform: translateY(-50%) scale(1.06); }
.building-carousel-arrow.previous { left: 1.1rem; }
.building-carousel-arrow.next { right: 1.1rem; }
.building-carousel-dots { position: absolute; z-index: 1; bottom: 1.1rem; left: 50%; display: flex; gap: .45rem; transform: translateX(-50%); }
.building-carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.55); cursor: pointer; }
.building-carousel-dots button.active { width: 26px; border-radius: 8px; background: #fff; }
.building-carousel-count { position: absolute; right: 1.25rem; bottom: 1rem; margin: 0; color: #fff; font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.building-gallery-empty { min-height: calc(100vh - 180px); display: grid; place-items: center; }
.building-gallery-empty::after { content: ""; width: 60px; height: 60px; border: 1px solid rgba(255,255,255,.36); border-radius: 50%; }
.gallery-editor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.gallery-editor-item { position: relative; overflow: hidden; min-height: 115px; background: #e8eaf3; }
.gallery-editor-item img { display: block; width: 100%; height: 150px; object-fit: cover; }
.gallery-editor-item .text-button { position: absolute; right: .35rem; top: .35rem; color: #fff; background: rgba(16,26,58,.78); }
.building-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 3rem 0; background: var(--line); }
.building-detail { min-height: 155px; padding: 1.25rem; background: #fff; }
.building-detail strong { display: block; margin-bottom: .3rem; font-family: var(--display); font-size: 2.2rem; line-height: 1; color: var(--blue); }
.building-detail span { font-size: .83rem; font-weight: 750; }
.article-list { max-width: 1320px; margin: auto; padding: 5rem 2.25rem 6rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.article-list .news-card { min-height: 340px; }
.article-view { max-width: 900px; margin: auto; padding: 4rem 2.25rem 6rem; }
.article-view .article-date { color: var(--blue); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.article-view .display-title { margin: .9rem 0 1.6rem; }
.article-view .article-lead { max-width: 650px; margin: 0 0 2rem; font-size: 1.22rem; color: var(--muted); }
.article-cover-image { display: block; width: 100%; max-height: 520px; margin: 0 0 2rem; object-fit: cover; }
.article-view .page-content { max-width: 760px; }
.back-link { display: inline-flex; gap: .5rem; margin-bottom: 1.5rem; color: var(--blue); font-size: .85rem; font-weight: 800; }

.documents-page { max-width: 1150px; margin: auto; padding: 5rem 2.25rem 6.5rem; }
.document-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.document-filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-button { padding: .55rem .8rem; border: 1px solid var(--line); color: var(--muted); background: #fff; border-radius: 999px; font-size: .78rem; font-weight: 750; }
.filter-button.active, .filter-button:hover { border-color: var(--blue); color: #fff; background: var(--blue); }
.documents-list { border-top: 1px solid var(--line); }
.document-row { display: grid; grid-template-columns: auto 1fr auto; gap: 1.1rem; align-items: center; padding: 1.15rem .4rem; border-bottom: 1px solid var(--line); }
.document-icon { display: grid; width: 44px; height: 49px; place-items: center; background: var(--pink); color: var(--ink); font-size: .65rem; font-weight: 900; }
.document-row h3 { margin: 0 0 .15rem; font-size: 1rem; }
.document-row p { margin: 0; color: var(--muted); font-size: .79rem; }
.document-row .button { min-height: 39px; font-size: .75rem; }
.empty-state { padding: 4rem 1rem; color: var(--muted); text-align: center; }

.site-footer { background: var(--ink-deep); color: #fff; }
.footer-inner { max-width: 1320px; margin: auto; padding: 3.5rem 2.25rem 1.5rem; }
.footer-top { display: grid; grid-template-columns: 1.3fr .8fr .8fr; gap: 3rem; }
.footer-brand { display: flex; align-items: center; gap: .85rem; }
.footer-brand .brand-mark { width: 72px; height: 72px; }
.footer-brand strong { display: block; font-size: .97rem; }
.footer-brand span { color: #c6cae8; font-size: .78rem; }
.footer-social { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.25rem; color: #fff; font-size: .8rem; font-weight: 800; }
.footer-social svg { width: 21px; height: 21px; flex: 0 0 auto; }
.footer-social:hover { color: var(--yellow); }
.footer-social[aria-disabled="true"] { cursor: not-allowed; opacity: .65; }
.footer-heading { margin: 0 0 .7rem; color: #aeb8ee; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-list { display: grid; gap: .35rem; margin: 0; padding: 0; list-style: none; font-size: .85rem; }
.footer-list a:hover { color: var(--yellow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.15); color: #aeb4dc; font-size: .72rem; }

/* CMS */
.cms-trigger { display: none; }
.cms-scrim { visibility: hidden; position: fixed; z-index: 29; inset: 0; background: rgba(6, 10, 30, .48); opacity: 0; transition: opacity .25s, visibility .25s; }
.cms-scrim.open { visibility: visible; opacity: 1; }
.cms-panel { position: fixed; z-index: 30; inset: 2.5vh 2.5vw; display: flex; flex-direction: column; visibility: hidden; border-radius: 11px; color: #18213d; background: #f6f7fb; box-shadow: 0 25px 90px rgba(0,0,0,.32); opacity: 0; transform: translateY(18px) scale(.985); transition: opacity .25s, transform .25s, visibility .25s; overflow: hidden; }
.cms-panel.open { visibility: visible; opacity: 1; transform: translateY(0) scale(1); }
.cms-panel.login-mode .cms-layout { grid-template-columns: 1fr; }
.cms-panel.login-mode .cms-nav { display: none; }
.cms-topbar { min-height: 59px; display: flex; align-items: center; justify-content: space-between; padding: .7rem 1.2rem; color: #fff; background: var(--ink); }
.cms-identity { display: flex; align-items: center; gap: .55rem; font-size: .8rem; }
.cms-identity span:last-child { color: #b9c0e8; }
.cms-dot { display: block; width: 9px; height: 9px; border-radius: 50%; background: #7dd2a7; box-shadow: 0 0 0 3px rgba(125,210,167,.15); }
.cms-topbar .icon-button { color: #fff; }
.cms-topbar .icon-button:hover { background: rgba(255,255,255,.12); }
.cms-layout { min-height: 0; flex: 1; display: grid; grid-template-columns: 207px 1fr; }
.cms-nav { display: flex; flex-direction: column; gap: .12rem; padding: .9rem .55rem; background: #fff; border-right: 1px solid #e1e4ee; }
.cms-nav button { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .7rem .75rem; border: 0; border-radius: 5px; color: #4c5874; background: transparent; text-align: left; font-size: .82rem; font-weight: 750; }
.cms-nav button:hover, .cms-nav button.active { color: var(--blue); background: var(--mist); }
.nav-icon { width: 16px; color: currentColor; text-align: center; font-size: 1.15rem; line-height: 1; }
.cms-nav-note { margin: auto .35rem .35rem; padding: .85rem .7rem; border-radius: 5px; color: #5a6580; background: #f4f4fa; font-size: .67rem; line-height: 1.2; }
.cms-nav-note span, .cms-nav-note strong { display: block; }
.cms-nav-note strong { color: var(--blue); }
.cms-workspace { overflow: auto; padding: 2rem 2.4rem 3rem; }
.admin-login { min-height: 100%; display: grid; place-items: center; padding: 1rem; }
.admin-login-card { width: min(100%, 430px); padding: 2.1rem; border: 1px solid #e0e4ef; border-radius: 9px; background: #fff; box-shadow: 0 18px 50px rgba(16,26,58,.08); }
.admin-login-badge { display: grid; width: 48px; height: 48px; place-items: center; margin-bottom: 1.2rem; border-radius: 50%; color: #fff; background: var(--blue); font-size: 1.2rem; }
.admin-login-card h2 { margin: 0; font-family: var(--display); font-size: 2rem; line-height: 1; letter-spacing: -.05em; }
.admin-login-card p { margin: .65rem 0 1.4rem; color: #67718a; font-size: .83rem; }
.login-error { min-height: 1.2rem; margin-top: .75rem; color: #b62d3e; font-size: .73rem; font-weight: 750; }
.admin-entry { min-height: calc(100vh - 83px); display: grid; place-items: center; padding: 4rem 1.25rem; background: linear-gradient(135deg, var(--mist), #fff); }
.admin-entry-card { max-width: 560px; padding: 2.8rem; background: #fff; text-align: center; box-shadow: var(--shadow); }
.admin-entry-card .button { margin-top: 1rem; }
.not-found-static { min-height: calc(100vh - 83px); display: grid; place-items: center; padding: 3rem 1.25rem; background: var(--mist); }
.not-found-card { max-width: 650px; padding: 3rem; background: #fff; box-shadow: var(--shadow); }
.admin-heading-row { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.admin-heading { margin: 0; font-size: 1.55rem; line-height: 1.1; }
.admin-subheading { margin: .35rem 0 0; color: #67718a; font-size: .82rem; }
.admin-button { min-height: 37px; border: 0; border-radius: 4px; padding: 0 .82rem; color: #fff; background: var(--blue); font-size: .76rem; font-weight: 800; }
.admin-button:hover { background: var(--ink); }
.admin-button.secondary { color: var(--ink); background: #e7e9f5; }
.admin-button.danger { color: #a22b35; background: #fee6e9; }
.admin-button.outline { border: 1px solid #cbd1e4; color: #46506d; background: #fff; }
.admin-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; margin-bottom: 1.6rem; }
.admin-stat { padding: 1rem; border: 1px solid #e1e4ee; border-radius: 7px; background: #fff; }
.admin-stat span { color: #6c758c; font-size: .72rem; font-weight: 750; }
.admin-stat strong { display: block; margin-top: .1rem; font-size: 1.75rem; line-height: 1; }
.admin-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 1rem; }
.admin-card { padding: 1.2rem; border: 1px solid #e1e4ee; border-radius: 7px; background: #fff; }
.admin-card h3 { margin: 0 0 .8rem; font-size: .95rem; }
.admin-mini-list { display: grid; gap: .1rem; }
.admin-mini-row { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .66rem 0; border-bottom: 1px solid #edf0f5; font-size: .78rem; }
.admin-mini-row:last-child { border-bottom: 0; }
.admin-mini-row span { color: #68728a; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e1e4ee; border-radius: 7px; overflow: hidden; font-size: .79rem; }
.admin-table th { padding: .72rem 1rem; color: #68728a; background: #f5f6fa; text-align: left; font-size: .67rem; letter-spacing: .05em; text-transform: uppercase; }
.admin-table td { padding: .82rem 1rem; border-top: 1px solid #edf0f5; vertical-align: middle; }
.admin-table tr:hover td { background: #fbfbfe; }
.table-title { display: block; font-weight: 800; }
.table-subtitle { display: block; margin-top: .15rem; color: #778097; font-size: .7rem; }
.status { display: inline-flex; align-items: center; gap: .35rem; color: #17824e; font-size: .68rem; font-weight: 800; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status.draft { color: #a87923; }
.table-actions { display: flex; justify-content: end; gap: .35rem; }
.text-button { padding: .35rem .45rem; border: 0; color: var(--blue); background: transparent; font-size: .72rem; font-weight: 800; }
.text-button:hover { color: var(--ink); background: var(--mist); }
.text-button.danger { color: #b63243; }
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 1.1rem; }
.editor-card { padding: 1.25rem; border: 1px solid #e1e4ee; border-radius: 7px; background: #fff; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; margin-bottom: .38rem; color: #4e5874; font-size: .72rem; font-weight: 800; }
.form-group input[type="text"], .form-group input[type="date"], .form-group select, .form-group textarea { width: 100%; padding: .65rem .72rem; border: 1px solid #ccd2e2; border-radius: 4px; color: var(--ink); background: #fff; outline: none; font-size: .82rem; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus, .rich-editor:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(57,74,167,.1); }
.form-group textarea { min-height: 88px; resize: vertical; }
.form-hint { margin: .35rem 0 0; color: #7c8497; font-size: .67rem; }
.editor-toolbar { display: flex; align-items: center; gap: .2rem; padding: .35rem; border: 1px solid #ccd2e2; border-bottom: 0; border-radius: 4px 4px 0 0; background: #f6f7fb; }
.editor-toolbar button { min-width: 28px; height: 27px; padding: 0 .3rem; border: 0; border-radius: 3px; color: #3d496a; background: transparent; font-size: .72rem; font-weight: 800; }
.editor-toolbar button:hover { background: #e0e4f2; }
.rich-editor { min-height: 190px; padding: .75rem; border: 1px solid #ccd2e2; border-radius: 0 0 4px 4px; outline: none; color: #27314d; font-size: .86rem; line-height: 1.55; }
.editor-side { display: grid; align-content: start; gap: 1rem; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .77rem; font-weight: 750; }
.switch { position: relative; width: 36px; height: 21px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: #cbd1e1; transition: .2s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: #55b97f; }
.switch input:checked + span::after { transform: translateX(15px); }
.editor-actions { display: flex; justify-content: end; gap: .55rem; margin-top: 1.3rem; }
.upload-box { padding: 1.2rem; border: 1px dashed #bfc7df; border-radius: 6px; background: #fafaff; text-align: center; }
.upload-box input { width: 100%; max-width: 300px; font-size: .75rem; }
.file-selected { margin-top: .5rem; color: #58704d; font-size: .72rem; font-weight: 750; }
.settings-tip { padding: .9rem; border-left: 3px solid var(--yellow); color: #59647c; background: #fff9dd; font-size: .76rem; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.permission-option { display: flex; align-items: center; gap: .5rem; padding: .58rem .65rem; border: 1px solid #e0e4ef; border-radius: 4px; color: #42506f; font-size: .74rem; font-weight: 750; }
.permission-option input { width: 15px; height: 15px; accent-color: var(--blue); }
.audit-log-list { display: grid; gap: .6rem; }
.audit-log-item { display: grid; grid-template-columns: 46px 1fr auto; gap: .8rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid #edf0f5; }
.audit-log-icon { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--blue); background: var(--mist); font-size: .95rem; }
.audit-log-item strong { display: block; font-size: .79rem; }
.audit-log-item span { color: #758097; font-size: .69rem; }

.toast-area { position: fixed; z-index: 50; right: 1rem; bottom: 5rem; display: grid; gap: .45rem; width: min(330px, calc(100vw - 2rem)); }
.toast { padding: .85rem 1rem; border-radius: 5px; color: #fff; background: var(--ink); box-shadow: 0 8px 25px rgba(0,0,0,.17); font-size: .78rem; font-weight: 700; animation: toast-in .25s ease-out; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* High contrast */
body.high-contrast { --ink: #000; --ink-deep: #000; --blue: #0000b8; --lavender: #e5e5e5; --mist: #fff; --paper: #fff; --muted: #111; --line: #555; }
body.high-contrast .site-header { background: #fff; }
body.high-contrast .hero-title em, body.high-contrast .community-art .circle.one { color: #000; background: #ff0; }
body.high-contrast .hero-school { background: #fff; }

@media (max-width: 1080px) {
  .main-nav { gap: .8rem; font-size: .75rem; }
  .brand-copy { display: none; }
  .hero-art { width: 55%; }
}
@media (max-width: 820px) {
  .header-inner { min-height: 70px; padding: .55rem 1.1rem; }
  .brand-mark { width: 52px; height: 52px; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; padding: 1rem 1.2rem 1.2rem; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 22px rgba(16,26,58,.08); }
  .main-nav.open { display: grid; }
  .main-nav a { padding: .45rem 0; }
  .menu-button { display: block; }
  .hero-inner { min-height: 620px; padding: 4.5rem 1.25rem 10rem; align-items: start; }
  .hero-art { right: -2.5rem; top: auto; bottom: 0; width: 83%; height: 45%; opacity: .78; }
  .hero-grid { display: none; }
  .hero-note { right: 6%; bottom: 3%; }
  .hero-scroll { left: 1.25rem; bottom: 1.2rem; }
  .quick-links { grid-template-columns: 1fr; max-width: 560px; margin: -30px auto 0; padding: 0 1.25rem; }
  .quick-link { min-height: 82px; }
  .section-top { align-items: start; flex-direction: column; gap: 1rem; }
  .news-grid { grid-template-columns: 1fr; }
  .news-card.featured { min-height: 410px; }
  .community-promo-inner { padding: 4rem 1.25rem 18rem; }
  .community-art { right: 6%; top: auto; bottom: 1rem; width: 75%; height: 46%; }
  .info-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-top > :first-child { grid-column: 1 / -1; }
  .site-shell { padding: 0 1.25rem; }
  .article-list { grid-template-columns: 1fr; padding: 3.5rem 1.25rem 5rem; }
  .building-gallery-page { padding: 1.25rem; }
  .documents-page { padding: 3.5rem 1.25rem 5rem; }
  .page-body, .article-view { padding-left: 1.25rem; padding-right: 1.25rem; }
  .cms-panel { inset: 1vh 1vw; }
  .cms-layout { grid-template-columns: 150px 1fr; }
  .cms-workspace { padding: 1.35rem; }
  .editor-layout { grid-template-columns: 1fr; }
  .editor-side { grid-template-columns: repeat(2, 1fr); }
  .permission-grid { grid-template-columns: 1fr; }
}
@media (max-width: 590px) {
  .accessibility-button { display: none; }
  .hero-title { font-size: 3.7rem; }
  .home-news { padding: 4.5rem 0; }
  .home-info { padding: 4.5rem 0; }
  .building-details { grid-template-columns: 1fr; }
  .document-row { grid-template-columns: auto 1fr; }
  .building-gallery-page { min-height: calc(100vh - 70px); padding: .5rem; }
  .building-carousel-track { aspect-ratio: 4 / 5; }
  .building-carousel-arrow { width: 42px; height: 42px; font-size: 1.4rem; }
  .building-carousel-arrow.previous { left: .6rem; }
  .building-carousel-arrow.next { right: .6rem; }
  .building-carousel-count { display: none; }
  .gallery-editor-grid { grid-template-columns: repeat(2, 1fr); }
  .document-row .button { grid-column: 2; justify-self: start; }
  .footer-bottom { display: grid; }
  .cms-panel { inset: 0; border-radius: 0; }
  .cms-layout { display: block; }
  .cms-nav { flex-direction: row; overflow-x: auto; padding: .45rem; border-right: 0; border-bottom: 1px solid #e1e4ee; }
  .cms-nav button { flex: 0 0 auto; width: auto; padding: .55rem; font-size: .7rem; }
  .cms-nav .nav-icon { display: none; }
  .cms-nav-note { display: none; }
  .cms-workspace { height: calc(100vh - 106px); padding: 1.1rem; }
  .admin-stats { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-table th:nth-child(2), .admin-table td:nth-child(2), .admin-table th:nth-child(3), .admin-table td:nth-child(3) { display: none; }
  .editor-side { grid-template-columns: 1fr; }
  .audit-log-item { grid-template-columns: 38px 1fr; }
  .audit-log-item > span { grid-column: 2; }
}
