:root {
  --navy: #061b2b;
  --navy-2: #0a3350;
  --gold: #c9a227;
  --gold-2: #e8c56b;
  --green: #1b7a4e;
  --ink: #14202b;
  --muted: #5a6874;
  --paper: #f4f1e8;
  --white: #fff;
  --line: #d5dce3;
  --saffron: #c85a10;
  --danger: #9b1c1c;
  --shadow: 0 16px 40px rgba(6, 27, 43, .10);
  --radius: 16px;
  --max: 1200px;
  --font: "Outfit", "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", Georgia, serif;
}
* { box-sizing: border-box; }
html { font-size: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-decoration: none; }
a:hover { color: var(--saffron); }
.wrap { width: min(var(--max), calc(100% - 32px)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: #000; color: #fff; padding: 8px 12px; z-index: 10000;
}
.skip-link:focus { left: 8px; }
.gov-bar {
  background: linear-gradient(90deg, #11405d, #0b3d5c 55%, #155e3a);
  color: #fff;
  font-size: .82rem;
  letter-spacing: .02em;
}
.gov-bar__inner, .a11y-bar__inner { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.a11y-bar { background: #eef3f7; border-bottom: 1px solid var(--line); font-size: .85rem; }
.a11y-bar a { margin-right: 14px; }
.a11y-controls button {
  border: 1px solid var(--line); background: #fff; margin-left: 4px; min-width: 34px; min-height: 32px; cursor: pointer;
}
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.brand { display: flex; gap: 12px; align-items: center; color: inherit; min-width: 0; }
.brand strong { display: block; font-family: var(--serif); font-size: 1.02rem; line-height: 1.2; color: var(--navy); }
.brand small { display: block; color: var(--muted); font-size: .75rem; }
.header-actions { display: flex; gap: 6px; flex-wrap: wrap; flex-shrink: 0; }
.header-actions .btn { padding: 8px 12px; font-size: .82rem; }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 9px 16px; font-weight: 600; border: 1px solid transparent; cursor: pointer;
  min-height: 42px;
}
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-gold { background: var(--gold); color: #2b1d00; }
.btn-solid { background: var(--navy); color: #fff; }
.btn-line { border-color: #fff; color: #fff; }
.nav-toggle { display: none; background: var(--navy); color: #fff; border: 0; padding: 10px 14px; border-radius: 8px; }
.site-nav { background: var(--navy); }
.nav-list { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.nav-list > li { position: relative; }
.nav-list > li > a { color: #fff; display: block; padding: 11px 12px; font-size: .92rem; font-weight: 600; }
.nav-list > li > a:hover, .has-sub:hover > a { background: #0b3d5c; color: var(--gold-2); }
.sub {
  display: none; position: absolute; left: 0; top: 100%; background: #fff; min-width: 280px;
  box-shadow: var(--shadow); list-style: none; margin: 0; padding: 8px 0; z-index: 60; border-top: 3px solid var(--gold);
}
.has-sub:hover > .sub, .has-sub:focus-within > .sub { display: block; }
.sub a { display: block; padding: 8px 16px; color: var(--ink); }
.sub a:hover { background: var(--paper); color: var(--navy); }
.notice-ticker { background: #fff8e6; border-bottom: 1px solid #ead8a0; }
.ticker-inner { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; padding: 7px 0; }
.ticker-label { background: var(--saffron); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; }
.ticker-track { overflow: hidden; }
.ticker-move { display: flex; gap: 40px; width: max-content; animation: ticker 40s linear infinite; }
.ticker-move a { white-space: nowrap; color: #5a3b00; font-size: .92rem; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.breadcrumb-bar { background: var(--paper); border-bottom: 1px solid var(--line); }
.breadcrumb-bar ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 10px 0; font-size: .9rem; }
.breadcrumb-bar li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--muted); }
.admin-nav {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 22px;
}
.hero {
  position: relative; min-height: 560px; color: #fff;
  background: #061b2b center/cover no-repeat;
  display: grid; align-items: end;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7,40,60,.25), rgba(7,40,60,.82));
}
.hero-inner { position: relative; z-index: 1; padding: 70px 0 48px; }
.kicker { color: var(--gold-2); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; }
.hero h1 { font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.4rem); margin: 8px 0 10px; max-width: 16ch; }
.hero p { max-width: 58ch; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.quick-links { background: #fff; margin-top: -28px; position: relative; z-index: 2; }
.quick-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px;
}
.quick-grid a {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px;
  border: 1px solid var(--line); border-radius: 12px; color: var(--navy); font-weight: 600; text-align: center;
}
.quick-grid i { font-size: 1.4rem; color: var(--gold); }
.section { padding: 56px 0; }
.section.alt { background: var(--paper); }
.section h2, .page-head h1 { font-family: var(--serif); color: var(--navy); margin: 0 0 8px; }
.lead { color: var(--muted); max-width: 70ch; }
.grid-2 { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card, .school-card, .news-card, .vacancy-card, .panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.school-card, .news-card, .vacancy-card, .panel { padding: 18px; }
.school-card h3, .news-card h3, .vacancy-card h3 { margin: 0 0 8px; font-size: 1.05rem; color: var(--navy); }
.meta { color: var(--muted); font-size: .88rem; }
.badge {
  display: inline-block; background: #eef6ef; color: var(--green); border-radius: 999px;
  padding: 2px 8px; font-size: .75rem; font-weight: 700;
}
.badge.warn { background: #fff4cc; color: #7a5600; }
.page { padding: 32px 0 64px; }
.page-head { margin-bottom: 22px; }
.prose h2, .prose h3 { font-family: var(--serif); color: var(--navy); }
.prose p, .prose li { max-width: 78ch; }
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: #fff; }
table.data th, table.data td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
table.data th { background: var(--navy); color: #fff; }
.form { display: grid; gap: 12px; }
.form label { font-weight: 600; font-size: .92rem; }
.form input, .form select, .form textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit;
}
.alert { padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; }
.alert-ok { background: #e8f7ee; color: #14532d; }
.alert-err { background: #fde8e8; color: var(--danger); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.gallery img, .hero-card img, .news-card img { width: 100%; height: 160px; object-fit: cover; border-radius: 10px; }
.news-card img { height: 170px; margin: -18px -18px 12px; border-radius: 14px 14px 0 0; }
.cta-band {
  background: linear-gradient(90deg, var(--navy), #155e3a);
  color: #fff; border-radius: 18px; padding: 28px; display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.site-footer { background: #051821; color: #d5e0e7; margin-top: 20px; }
.footer-stripe { height: 6px; background: linear-gradient(90deg, #e36a12, #fff 50%, #1b7a4e); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 24px; padding: 36px 0; }
.site-footer h2 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer a { color: #d5e0e7; }
.footer-bottom { border-top: 1px solid #1c3542; padding: 14px 0; font-size: .88rem; }
.dash { display: grid; grid-template-columns: 240px 1fr; min-height: 70vh; }
.dash-side { background: var(--navy); color: #fff; padding: 22px 16px; }
.dash-side a { color: #fff; display: block; padding: 8px 10px; border-radius: 8px; }
.dash-side a:hover { background: #0b3d5c; }
.dash-main { padding: 24px; background: var(--paper); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: #fff; padding: 16px; border-radius: 12px; border: 1px solid var(--line); }
.stat b { display: block; font-size: 1.6rem; color: var(--navy); }
body.contrast { background: #000; color: #fff; }
body.contrast .site-header, body.contrast .card, body.contrast .school-card, body.contrast .news-card, body.contrast .panel { background: #111; color: #fff; }
body.contrast a { color: #ffe08a; }
@media (max-width: 980px) {
  .quick-grid, .grid-4, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .footer-grid, .dash { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .header-main { flex-wrap: wrap; }
  .brand { flex: 1 1 auto; min-width: 70%; }
  .header-actions { display: flex; order: 3; width: 100%; justify-content: flex-start; }
  .header-actions .btn-ghost { display: none; }
  .header-actions .btn { padding: 7px 10px; font-size: .8rem; min-height: 36px; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; }
  .site-nav.open { display: block; }
  .nav-list { flex-direction: column; }
  .sub { position: static; box-shadow: none; display: none; background: #0b3d5c; }
  .has-sub.open > .sub { display: block; }
  .sub a { color: #fff; }
  .brand strong { font-size: 1rem; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .hide-sm { display: none; }
}
