:root {
  --navy: #102443;
  --navy-deep: #0a1a34;
  --ink: #162642;
  --muted: #6d6f78;
  --cream: #f8f6f1;
  --white: #ffffff;
  --champagne: #c4a35f;
  --champagne-light: #eee6d3;
  --border: #e9e7e1;
  --shadow: 0 18px 40px rgba(21, 34, 59, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "DM Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button { cursor: pointer; }

.container {
  width: min(1290px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 10;
  height: 92px;
  background: rgba(255, 255, 255, .98);
  border-bottom: 1px solid rgba(16, 36, 67, .06);
}
.nav-wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; }
.brand-mark { width: 42px; height: 48px; color: var(--champagne); }
.brand-mark svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.brand-name { color: var(--navy); font-family: "Playfair Display", Georgia, serif; font-size: 25px; font-weight: 700; letter-spacing: .025em; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: 28px; height: 100%; }
.main-nav a { position: relative; color: #28334a; font-family: "Playfair Display", Georgia, serif; font-size: 15px; padding: 36px 0 31px; transition: color .2s ease; }
.main-nav a:hover, .main-nav a.active { color: var(--navy); }
.main-nav a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: 20px; height: 2px; background: var(--champagne); }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--navy); }

.hero {
  position: relative;
  min-height: 640px;
  color: var(--navy);
  background: url("/manus-storage/async-images/6f5dVhzxPdWG4f7IPVyvQn/image-1.webp") 58% center / cover no-repeat;
  overflow: visible;
}
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 252, 244, .94) 0%, rgba(255, 252, 244, .80) 39%, rgba(255, 252, 244, .05) 75%), linear-gradient(0deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, .02)); }
.hero-content { position: relative; min-height: 500px; padding-top: 124px; display: flex; justify-content: space-between; gap: 40px; }
.hero-copy { max-width: 650px; }
.eyebrow, .hero-note, .students-note, .footer-city { letter-spacing: .22em; font-size: 11px; line-height: 1.8; }
.eyebrow { margin: 0 0 19px; color: #9d8556; font-weight: 600; }
h1, h2 { margin: 0; font-family: "Playfair Display", Georgia, serif; font-weight: 600; letter-spacing: -.025em; }
h1 { max-width: 670px; color: var(--navy); font-size: clamp(42px, 5vw, 67px); line-height: 1.08; }
.hero-description { max-width: 590px; margin: 25px 0 0; color: #505662; font-family: "Playfair Display", Georgia, serif; font-size: 21px; line-height: 1.5; }
.hero-note { align-self: center; max-width: 155px; margin: 50px 10px 0 0; color: #6e6b65; font-weight: 500; }
.hero-note::after, .students-note::after { content: ""; display: block; width: 38px; height: 2px; margin-top: 20px; background: var(--champagne); }

.search-container { position: relative; z-index: 2; }
.search-panel { display: grid; grid-template-columns: 1.22fr 1.22fr 1.1fr 1.12fr auto; align-items: end; gap: 18px; padding: 25px 28px; background: rgba(255, 255, 255, .98); border: 1px solid rgba(255, 255, 255, .8); border-radius: 18px; box-shadow: var(--shadow); transform: translateY(15px); }
.field { min-width: 0; color: var(--ink); }
.field > span:first-child { display: block; margin: 0 0 10px; font-family: "Playfair Display", Georgia, serif; font-size: 14px; font-weight: 600; }
.input-wrap { height: 48px; display: flex; align-items: center; gap: 11px; padding: 0 14px; border: 1px solid var(--border); border-radius: 10px; color: #9a9ba1; }
.input-wrap:focus-within { border-color: var(--champagne); box-shadow: 0 0 0 3px rgba(196, 163, 95, .14); }
.field-icon { width: 21px; height: 21px; flex: 0 0 auto; fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
input, select { width: 100%; min-width: 0; border: 0; outline: 0; color: #757983; background: transparent; font-size: 13px; }
input::placeholder { color: #aaaab0; }
select { appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%23102443' stroke-width='1.5'%3E%3Cpath d='m3 5 4 4 4-4'/%3E%3C/svg%3E") right 0 center / 14px no-repeat; padding-right: 18px; }
.location-field { border: 0; background: none; padding: 0; text-align: left; }
.location-field > .input-wrap { cursor: pointer; }
.primary-button, .outline-button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; border-radius: 10px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.primary-button { height: 48px; padding: 0 23px; border: 1px solid #c4a35f; color: var(--white); background: linear-gradient(135deg, #d3b773, #a7864b); font-family: "Playfair Display", Georgia, serif; font-weight: 600; white-space: nowrap; }
.primary-button:hover, .outline-button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(124, 95, 37, .18); }
.primary-button:disabled, .location-field:disabled { cursor: wait; opacity: .72; }
.primary-button.is-loading { pointer-events: none; }

.site-notice {
  position: fixed;
  z-index: 30;
  right: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100% - 32px));
  padding: 15px 18px;
  color: var(--navy);
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--champagne-light);
  border-left: 4px solid var(--champagne);
  border-radius: 10px;
  box-shadow: 0 15px 35px rgba(16, 36, 67, .17);
  font-size: 14px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(14px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.site-notice.is-visible { opacity: 1; transform: translateY(0); }
.site-notice[data-type="success"] { border-left-color: #5d936d; }
.site-notice[data-type="error"] { border-left-color: #ba6960; }

.features { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding-top: 54px; padding-bottom: 28px; }
.feature-card { min-height: 130px; display: flex; align-items: center; gap: 20px; padding: 22px 27px; background: var(--white); border: 1px solid rgba(16, 36, 67, .04); border-radius: 15px; box-shadow: 0 12px 28px rgba(21, 34, 59, .05); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-icon { width: 72px; height: 72px; flex: 0 0 72px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: #f4efe3; }
.feature-icon svg { width: 33px; height: 33px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-copy { min-width: 0; flex: 1; }
.feature-copy strong { display: block; margin-bottom: 7px; font-family: "Playfair Display", Georgia, serif; font-size: 19px; }
.feature-copy small { display: block; color: var(--muted); font-family: "Playfair Display", Georgia, serif; font-size: 14px; line-height: 1.35; }
.arrow { color: var(--navy); font-size: 27px; line-height: 1; }

.students { min-height: 190px; background: linear-gradient(90deg, rgba(249,247,241,.99), rgba(249,247,241,.72)), url("/manus-storage/async-images/6f5dVhzxPdWG4f7IPVyvQn/image-1.webp") center 74% / cover no-repeat; }
.students-inner { min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.students h2 { font-size: clamp(30px, 3.5vw, 42px); }
.students p { margin: 7px 0 17px; color: #696c73; font-family: "Playfair Display", Georgia, serif; font-size: 17px; }
.outline-button { padding: 10px 17px; border: 1px solid #b49a65; color: #8e753e; background: transparent; font-family: "Playfair Display", Georgia, serif; font-size: 13px; }
.outline-button:hover { background: #fffaf0; }
.students-note { align-self: center; max-width: 170px; margin: 0 80px 0 0; color: #75736e; }

.site-footer { color: #eef1f4; background: var(--navy); }
.footer-inner { min-height: 112px; display: flex; align-items: center; justify-content: center; position: relative; }
.footer-inner p { margin: 0; font-family: "Playfair Display", Georgia, serif; font-size: 19px; font-style: italic; }
.footer-city { position: absolute; right: 0; color: #a4afbf; font-size: 9px; text-align: right; }

.page-content { min-height: 72vh; padding-top: 82px; padding-bottom: 88px; }
.page-content > h1 { max-width: 850px; }
.page-content > .hero-description { margin-bottom: 36px; }
.page-search { position: static; transform: none; margin: 28px 0 60px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.section-heading h2 { font-size: clamp(28px, 3vw, 39px); }
.update-label { color: #8b8067; font-size: 12px; }
.result-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.result-card { display: flex; align-items: end; justify-content: space-between; gap: 20px; padding: 26px; background: var(--white); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 12px 28px rgba(21, 34, 59, .05); }
.result-card h2 { margin: 4px 0 8px; font-size: 25px; }
.result-card p { margin: 5px 0; color: var(--muted); font-family: "Playfair Display", Georgia, serif; line-height: 1.45; }
.result-card strong { display: block; margin-top: 13px; color: var(--navy); font-size: 13px; }
.result-kicker { color: #9d8556 !important; font-family: "DM Sans", Arial, sans-serif !important; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; margin-top: 40px; }
.map-placeholder { position: relative; min-height: 480px; overflow: hidden; border: 1px solid #dcd8cc; border-radius: 16px; background: linear-gradient(135deg, #e4e8e2 0 18%, #d3ddd8 18% 20%, #eae8db 20% 43%, #d8e0d8 43% 45%, #eeeade 45% 70%, #d6dfd9 70% 73%, #e8e5d8 73%); box-shadow: var(--shadow); }
.map-grid { position: absolute; inset: -25%; opacity: .35; transform: rotate(-16deg); background: repeating-linear-gradient(31deg, transparent 0 42px, #9eaead 43px 45px, transparent 46px 92px), repeating-linear-gradient(118deg, transparent 0 70px, #b2b9b0 71px 74px, transparent 75px 130px); }
.map-pin { position: absolute; display: grid; place-items: center; width: 42px; height: 42px; border: 4px solid rgba(255,255,255,.8); border-radius: 50% 50% 50% 0; color: white; background: var(--navy); box-shadow: 0 8px 16px rgba(16,36,67,.22); transform: rotate(-45deg); }
.map-pin::first-letter { transform: rotate(45deg); }
.pin-one { top: 30%; left: 36%; }.pin-two { top: 57%; left: 63%; background: #b18f4e; }.pin-three { top: 42%; left: 76%; }
.map-caption { position: absolute; left: 22px; bottom: 22px; max-width: 230px; padding: 16px 18px; border-radius: 10px; color: var(--navy); background: rgba(255,255,255,.9); box-shadow: 0 8px 22px rgba(16,36,67,.1); }
.map-caption strong, .map-caption small { display: block; }.map-caption small { margin-top: 5px; color: var(--muted); line-height: 1.35; }
.district-panel { padding: 28px; background: var(--white); border-radius: 16px; box-shadow: var(--shadow); }.district-panel h2 { margin: 0 0 20px; font-size: 30px; }.district-panel a { display: flex; justify-content: space-between; gap: 12px; padding: 15px 0; border-top: 1px solid var(--border); font-family: "Playfair Display", Georgia, serif; }.district-panel a:hover { color: var(--champagne); }.district-panel a span { color: var(--muted); font-family: "DM Sans", Arial, sans-serif; font-size: 12px; }

.student-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }.student-card { min-height: 260px; padding: 28px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); box-shadow: 0 12px 28px rgba(21,34,59,.05); }.card-number { color: var(--champagne); font-family: "Playfair Display", Georgia, serif; font-size: 20px; }.student-card h2 { margin: 30px 0 10px; font-size: 25px; }.student-card p { min-height: 60px; color: var(--muted); line-height: 1.55; }.student-card a { display: inline-flex; gap: 14px; align-items: center; color: #967b40; font-family: "Playfair Display", Georgia, serif; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: 70px; align-items: start; margin-top: 54px; }.about-layout h2 { font-size: 35px; }.about-layout p { max-width: 680px; color: var(--muted); font-family: "Playfair Display", Georgia, serif; font-size: 18px; line-height: 1.7; }.about-callout { padding: 30px; border-top: 3px solid var(--champagne); background: var(--white); box-shadow: var(--shadow); }.about-callout strong { font-family: "Playfair Display", Georgia, serif; font-size: 23px; }.about-callout p { font-family: "DM Sans", Arial, sans-serif; font-size: 14px; line-height: 1.5; }.about-callout .primary-button { margin-top: 10px; }

.news-section { padding: 72px 0 82px; background: #fffdf8; }
.news-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.news-heading h2 { font-size: clamp(30px, 3vw, 42px); }
.text-link { color: #967b40; font-family: "Playfair Display", Georgia, serif; font-size: 14px; }
.text-link:hover { color: var(--navy); }
.news-grid { display: grid; grid-template-columns: 1.25fr .875fr .875fr; gap: 20px; }
.news-card { display: flex; min-height: 224px; flex-direction: column; justify-content: space-between; padding: 26px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); box-shadow: 0 12px 28px rgba(21,34,59,.045); transition: transform .2s ease, box-shadow .2s ease; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-card.featured { min-height: 280px; color: var(--white); background: linear-gradient(135deg, rgba(16,36,67,.96), rgba(28,57,91,.9)); border-color: transparent; }
.news-meta { margin: 0 0 14px; color: #a18853; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.news-card.featured .news-meta { color: #e1c980; }
.news-card h3 { margin: 0 0 10px; font-family: "Playfair Display", Georgia, serif; font-size: 23px; line-height: 1.22; }
.news-card p:not(.news-meta) { margin: 0; color: var(--muted); line-height: 1.55; }
.news-card.featured p:not(.news-meta) { color: #d7dfeb; }
.news-card .text-link { display: inline-flex; align-items: center; gap: 12px; margin-top: 22px; }
.news-card.featured .text-link { color: #e1c980; }
.news-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.news-list .news-card { min-height: 205px; }
.news-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 38px 0 26px; }
.filter-button { padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); background: var(--white); font-size: 13px; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.filter-button:hover, .filter-button.is-active { color: var(--navy); border-color: var(--champagne); background: var(--champagne-light); }
.news-date { display: block; margin-top: 22px; color: #9b9a94; font-size: 12px; letter-spacing: .08em; }
.data-disclaimer { margin: 28px 0 0; padding: 15px 18px; border-left: 3px solid var(--champagne); color: #817b6c; background: #fffaf0; font-size: 13px; line-height: 1.5; }

@media (max-width: 1050px) {
  .main-nav { gap: 22px; }
  .search-panel { grid-template-columns: repeat(2, 1fr); }
  .primary-button { min-height: 48px; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 32px, 600px); }
  .site-header { height: 74px; }
  .brand-mark { width: 31px; height: 37px; }
  .brand-name { font-size: 18px; }
  .main-nav { display: none; position: absolute; top: 74px; left: 0; right: 0; height: auto; padding: 14px 20px 20px; flex-direction: column; align-items: stretch; gap: 0; background: white; box-shadow: 0 16px 30px rgba(16,36,67,.12); }
  .main-nav.is-open { display: flex; }
  .main-nav a { padding: 13px 0; }
  .main-nav a.active::after { bottom: 5px; right: auto; width: 34px; }
  .menu-toggle { display: block; }
  .hero { min-height: 740px; background-position: 59% top; }
  .hero-overlay { background: linear-gradient(180deg, rgba(255,252,244,.93) 0%, rgba(255,252,244,.85) 45%, rgba(255,252,244,.70) 100%); }
  .hero-content { min-height: 420px; padding-top: 74px; display: block; }
  .eyebrow { font-size: 9px; letter-spacing: .14em; }
  h1 { font-size: clamp(37px, 11vw, 58px); }
  .hero-description { font-size: 18px; }
  .hero-note { display: none; }
  .search-panel { grid-template-columns: 1fr; gap: 16px; padding: 22px 18px; }
  .features { grid-template-columns: 1fr; gap: 14px; padding-top: 40px; }
  .feature-card { min-height: 105px; padding: 17px 18px; }
  .feature-icon { width: 58px; height: 58px; flex-basis: 58px; }
  .feature-icon svg { width: 28px; height: 28px; }
  .feature-copy strong { font-size: 18px; }
  .students-inner { min-height: 240px; }
  .students-note { display: none; }
  .footer-inner { min-height: 125px; padding: 25px 0; text-align: center; }
  .footer-inner p { max-width: 280px; font-size: 17px; }
  .footer-city { display: none; }
  .site-notice { right: 16px; bottom: 16px; }
  .page-content { padding-top: 54px; padding-bottom: 60px; }
  .page-content > .hero-description { font-size: 18px; }
  .section-heading { display: block; }.update-label { display: block; margin-top: 12px; }
  .result-grid, .map-layout, .student-grid, .about-layout { grid-template-columns: 1fr; }
  .result-card { align-items: start; flex-direction: column; }.result-card .outline-button { align-self: flex-start; }
  .map-placeholder { min-height: 350px; }.district-panel { padding: 22px; }
  .about-layout { gap: 28px; }.about-layout h2 { font-size: 29px; }
  .news-section { padding: 54px 0 60px; }.news-heading { display: block; }.news-heading .text-link { display: inline-flex; margin-top: 12px; }.news-grid, .news-list { grid-template-columns: 1fr; }.news-card, .news-card.featured { min-height: 210px; }
  .news-filter { margin-top: 28px; }
}

.footer-admin-link { position: absolute; right: 0; bottom: 18px; color: rgba(255,255,255,.56); font-size: 11px; letter-spacing: .04em; }.footer-admin-link:hover { color: var(--white); }
.schedule-preview { display: grid; gap: 5px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; line-height: 1.45; }
.schedule-preview strong { color: var(--navy); }
.traffic-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .75fr); gap: 22px; margin-top: 40px; }
.traffic-map-card, .traffic-panel, .wide-district { border: 1px solid var(--border); border-radius: 16px; background: #fff; box-shadow: var(--shadow); }
.traffic-map-card { overflow: hidden; }.traffic-map { position: relative; min-height: 560px; background: #e9e7df; }.traffic-map-fallback { display: grid; place-items: center; height: 560px; color: var(--muted); background: linear-gradient(135deg, #f1eee6, #dfe6e0); }.traffic-status { margin: 0; padding: 13px 16px; color: var(--muted); background: #fbfaf5; font-size: 13px; line-height: 1.45; }.traffic-status[data-type="success"] { color: #3e7152; }.traffic-status[data-type="warning"] { color: #98772d; background: #fff9e9; }.traffic-status[data-type="error"] { color: #984f48; background: #fff1ee; }
.traffic-panel { padding: 28px; }.traffic-panel h2 { margin-bottom: 22px; font-size: 30px; }.traffic-form { display: grid; gap: 16px; }.traffic-form label { display: grid; gap: 7px; color: var(--navy); font-size: 13px; font-weight: 600; }.traffic-form input { width: 100%; padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; }.traffic-form input:focus { outline: none; border-color: var(--champagne); box-shadow: 0 0 0 3px rgba(196,163,95,.14); }.traffic-note { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; line-height: 1.55; }.wide-district { margin-top: 24px; padding: 28px; }.wide-district h2 { margin-bottom: 18px; font-size: 28px; }.district-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }.district-links a { display: flex; justify-content: space-between; gap: 12px; padding: 14px; border: 1px solid var(--border); border-radius: 9px; color: var(--navy); }.district-links a:hover { border-color: var(--champagne); background: var(--champagne-light); }

@media (max-width: 900px) { .traffic-layout { grid-template-columns: 1fr; }.traffic-map, .traffic-map-fallback { min-height: 420px; height: 420px; }.district-links { grid-template-columns: repeat(2, 1fr); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
