:root {
  --navy: #0d2b45;
  --primary: #0f5b8d;
  --primary-dark: #0a4468;
  --teal: #9a6f00;
  --gold: #f2b04a;
  --gold-hover: #f7c46b;
  --red: #b4232f;
  --bg: #ffffff;
  --soft: #f3f7fa;
  --soft-2: #e4edf3;
  --line: #d8e2ea;
  --ink: #14212e;
  --muted: #55677a;
  --focus: #f2b04a;
  --sans: var(--font-sans), "Segoe UI", system-ui, sans-serif;
  --serif: var(--font-serif), Georgia, serif;
  --w: 1200px;
  --r: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: var(--primary-dark); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.22; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.012em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.icon-inline { display: inline-flex; align-items: center; gap: 8px; }

/* top info bar */
.util { background: var(--navy); color: #cfe0ec; font-size: .84rem; }
.util .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.util a { color: #cfe0ec; text-decoration: none; }
.util a:hover { color: #fff; text-decoration: underline; }
.util .group { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.util svg { vertical-align: -3px; margin-right: 6px; }

/* masthead */
.masthead { background: #fff; position: relative; }
.masthead .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--navy); }
.brand img { width: 68px; height: 68px; }
.brand-name { font-size: 1.45rem; font-weight: 700; line-height: 1.15; display: block; color: var(--navy); letter-spacing: -.01em; }
.brand-sub { font-size: .82rem; color: var(--muted); display: block; margin-top: 4px; }
.head-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.menu-toggle { display: none; }

/* navigation band */
.navband { background: var(--primary); position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav a { display: block; padding: 14px 18px; color: #fff; text-decoration: none; font-weight: 500; font-size: .95rem; border-bottom: 3px solid transparent; }
.nav a:hover { background: var(--primary-dark); color: #fff; }
.nav a[aria-current="page"] { border-bottom-color: #fff; background: var(--primary-dark); }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; font: 600 .95rem var(--sans); text-decoration: none; border: 1.5px solid var(--primary); background: var(--primary); color: #fff; border-radius: var(--r); cursor: pointer; }
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--primary); }
.btn.ghost:hover { background: var(--soft); color: var(--primary-dark); }
.btn.red { background: var(--red); border-color: var(--red); }
.btn.red:hover { background: #8e1a24; border-color: #8e1a24; }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light:hover { background: var(--soft-2); border-color: var(--soft-2); color: var(--navy); }
.btn.outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn.outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn.small { padding: 6px 12px; font-size: .82rem; }
.btn.danger { background: transparent; color: var(--red); border-color: var(--red); }
.btn.danger:hover { background: #fbeaec; color: var(--red); }

/* hero */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 44px 44px; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; padding-top: 64px; padding-bottom: 64px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero .lede { font-size: 1.12rem; color: #c3d6e4; max-width: 56ch; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22); padding: 5px 12px; border-radius: 999px; font-size: .82rem; font-weight: 500; margin-bottom: 18px; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.access { background: #fff; color: var(--ink); border-radius: 10px; padding: 8px 8px 4px; box-shadow: 0 24px 48px rgba(0,0,0,.25); }
.access h2 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; padding: 12px 14px 6px; font-weight: 600; }
.access a { display: grid; grid-template-columns: 40px 1fr 20px; gap: 12px; align-items: center; padding: 12px 14px; text-decoration: none; color: var(--navy); border-top: 1px solid var(--line); font-weight: 600; }
.access a:first-of-type { border-top: 0; }
.access a:hover { background: var(--soft); }
.access a small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.ico { width: 40px; height: 40px; border-radius: 8px; background: var(--soft-2); color: var(--primary); display: grid; place-items: center; flex: none; }
.ico.red { background: #fbeaec; color: var(--red); }
.ico.teal { background: #dff3f3; color: var(--teal); }

/* stats */
.stats { background: var(--soft); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-i { padding: 26px 24px; border-left: 1px solid var(--line); }
.stat-i:first-child { border-left: 0; padding-left: 0; }
.stat-i b { display: block; font-size: 2.1rem; font-weight: 700; color: var(--primary); line-height: 1.1; }
.stat-i span { color: var(--muted); font-size: .9rem; }

/* sections */
.section { padding: 64px 0; }
.section.soft { background: var(--soft); }
.section.line { border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head .sub { color: var(--muted); margin: 6px 0 0; max-width: 60ch; }
.eyebrow { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.split { display: grid; grid-template-columns: 4fr 8fr; gap: 56px; }
.prose { max-width: 68ch; }

/* page header */
.pagehead { background: var(--soft); border-bottom: 1px solid var(--line); padding: 36px 0 34px; }
.pagehead h1 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: .3em; }
.pagehead p { color: var(--muted); max-width: 66ch; margin: 0; font-size: 1.05rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }

/* panels / cards */
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--soft); border-radius: 8px 8px 0 0; }
.panel-head h2, .panel-head h3 { margin: 0; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.panel-body { padding: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { display: block; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(11,45,74,.08); color: var(--ink); }
.tile .ico { margin-bottom: 14px; }
.tile h3 { margin-bottom: .25em; }
.tile p { margin: 0; color: var(--muted); font-size: .92rem; }
.tile small { display: block; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); font-weight: 700; margin-bottom: 4px; }
.dept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.dept-grid .tile { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 18px; }
.dept-grid .tile .ico { margin: 0; }

/* lists */
.rows { list-style: none; margin: 0; padding: 0; }
.rows > li { padding: 14px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 6.5rem 1fr auto; gap: 18px; align-items: baseline; }
.rows > li:first-child { border-top: 1px solid var(--line); }
.rows .meta { font-size: .82rem; color: var(--muted); }
.rows .title { font-weight: 600; color: var(--navy); text-decoration: none; }
.rows a.title:hover { color: var(--primary); text-decoration: underline; }
.doc-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.doc-list li { display: grid; grid-template-columns: 24px 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid var(--line); }
.doc-list li:first-child { border-top: 0; }
.doc-list a { color: var(--navy); font-weight: 500; text-decoration: none; }
.doc-list a:hover { color: var(--primary); text-decoration: underline; }
.doc-list svg { color: var(--red); }
.doc-list .meta { font-size: .8rem; color: var(--muted); }
.notice-list { list-style: none; margin: 0; padding: 0; }
.notice-list li { display: grid; grid-template-columns: 58px 1fr; gap: 16px; padding: 14px 20px; border-top: 1px solid var(--line); }
.notice-list li:first-child { border-top: 0; }
.datebox { text-align: center; border: 1px solid var(--line); border-radius: 6px; line-height: 1.1; overflow: hidden; background: #fff; align-self: start; }
.datebox b { display: block; font-size: 1.3rem; color: var(--navy); padding: 6px 0 2px; }
.datebox span { display: block; background: var(--soft-2); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 0; color: var(--primary); }
.notice-list a, .notice-list .t { color: var(--navy); font-weight: 600; text-decoration: none; }
.notice-list a:hover { color: var(--primary); text-decoration: underline; }
.tag { display: inline-block; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; padding: 2px 8px; border-radius: 4px; background: var(--soft-2); color: var(--primary); margin-right: 8px; }
.tag.pin { background: #fbeaec; color: var(--red); }

.table { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; border: 1px solid var(--line); }
.table th { text-align: left; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--soft); padding: 10px 14px; font-weight: 700; border-bottom: 1px solid var(--line); }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td:last-child, .table th:last-child { text-align: right; }
.table td.l, .table th.l { text-align: left; }

.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; display: grid; place-items: center; }
.steps h3 { margin: 0 0 .2em; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

.facts { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.facts li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 16px; padding: 13px 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.facts li:first-child { border-top: 0; }
.facts b { font-weight: 600; color: var(--muted); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; padding-top: 2px; }

.callout { border-left: 4px solid var(--teal); background: var(--soft); padding: 16px 20px; margin: 22px 0; border-radius: 0 6px 6px 0; }
.callout p:last-child { margin: 0; }

.principal { display: grid; grid-template-columns: 190px 1fr; gap: 32px; align-items: start; }
.principal img { width: 190px; height: 190px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.principal blockquote { margin: 0 0 14px; font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--navy); }
.principal .name { font-weight: 700; color: var(--navy); }

.band { background: var(--primary); color: #fff; padding: 44px 0; }
.band .wrap { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.band h2 { color: #fff; margin: 0 0 .2em; }
.band p { margin: 0; color: #d3e5f1; }

/* forms */
.form { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 26px; box-shadow: 0 6px 20px rgba(11,45,74,.06); }
.form h3 { font-size: 1.2rem; margin-bottom: .2em; }
.field { margin-top: 14px; }
.field label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 5px; color: var(--navy); }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; font: inherit; font-size: .97rem; background: #fff; color: var(--ink); border: 1px solid #b9c7d2; border-radius: var(--r); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: 2px solid rgba(14,90,138,.25); }
.field textarea { min-height: 100px; resize: vertical; }
.field .err { color: var(--red); font-size: .82rem; margin-top: 4px; }
.field .hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form .btn { margin-top: 20px; width: 100%; justify-content: center; }
.status { padding: 12px 14px; margin-top: 16px; font-size: .93rem; border-left: 4px solid var(--teal); background: var(--soft); border-radius: 0 6px 6px 0; }
.status.bad { border-color: var(--red); background: #fbeaec; }
.checks { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 16px; font-size: .92rem; }
.checks label { font-weight: 400; display: flex; gap: 6px; align-items: center; margin: 0; color: var(--ink); }
.checks input { width: auto; }

/* events */
.events { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.event { text-decoration: none; color: var(--ink); display: block; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.event:hover { border-color: var(--primary); }
.event .img { aspect-ratio: 3/2; background: var(--soft-2); overflow: hidden; }
.event .img img { width: 100%; height: 100%; object-fit: cover; }
.event .txt { padding: 16px; }
.event h3 { margin: 4px 0; }

/* footer */
.footer { background: var(--navy); color: #b9cddc; padding: 56px 0 22px; font-size: .92rem; }
.footer a { color: #e3eef6; text-decoration: none; }
.footer a:hover { text-decoration: underline; color: #fff; }
.footer h4 { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: #8fb0c8; margin-bottom: 12px; font-weight: 700; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 7px 0; }
.footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .fbrand { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; color: #fff; font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.footer .fbrand img { width: 52px; height: 52px; }
.footer .row { display: flex; gap: 10px; margin: 6px 0; align-items: flex-start; }
.footer .row svg { flex: none; margin-top: 3px; color: #8fb0c8; }
.footer .legal { border-top: 1px solid #1d4666; margin-top: 36px; padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: .8rem; color: #8fb0c8; }

/* admin */
.admin { display: grid; grid-template-columns: 220px 1fr; min-height: 100vh; background: var(--soft); }
.admin aside { background: var(--navy); color: #cfe0ec; padding: 24px 20px; }
.admin aside a { display: block; color: #cfe0ec; text-decoration: none; padding: 8px 0; font-size: .95rem; }
.admin aside a:hover { color: #fff; }
.admin aside .who { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; color: #fff; }
.admin main { padding: 32px 40px 80px; min-width: 0; }
.admin h1 { font-size: 1.7rem; }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 20px 0 32px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.stat b { display: block; font-size: 2rem; color: var(--primary); }
.stat span { color: var(--muted); font-size: .85rem; }
.scroll { overflow-x: auto; }
.badge { font-size: .72rem; font-weight: 700; letter-spacing: .05em; padding: 2px 8px; border-radius: 4px; background: var(--soft-2); }
.badge.NEW { background: #fbeaec; color: var(--red); }
.badge.CONTACTED { background: #fff3cf; color: #7a5a00; }
.badge.CLOSED { background: #dff3e7; color: #17663a; }
.inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline select, .inline input[type=text] { padding: 6px 8px; font: inherit; font-size: .85rem; border: 1px solid #b9c7d2; border-radius: 4px; background: #fff; }
.login { max-width: 400px; margin: 12vh auto; padding: 0 20px; }

@media (max-width: 960px) {
  .hero .wrap, .two, .split, .principal { grid-template-columns: 1fr; gap: 32px; }
  .hero .wrap { padding-top: 40px; padding-bottom: 40px; }
  .dept-grid, .events, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat-i:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
  .head-actions { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); padding: 9px 14px; font: 600 .9rem var(--sans); color: var(--navy); border-radius: var(--r); cursor: pointer; }
  .navband { position: static; }
  .nav { display: none; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; padding: 6px 0; }
  .nav a { padding: 12px 24px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .admin { grid-template-columns: 1fr; }
  .admin aside { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; padding: 14px 20px; }
  .admin aside .who { margin: 0 12px 0 0; }
  .admin main { padding: 24px 20px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .dept-grid, .events, .grid-3, .grid-4, .footer .cols { grid-template-columns: 1fr; }
  .rows > li { grid-template-columns: 1fr; gap: 4px; }
  .facts li { grid-template-columns: 1fr; gap: 2px; }
  .section { padding: 44px 0; }
  .brand img { width: 52px; height: 52px; }
  .brand-name { font-size: 1.05rem; }
  .brand-sub { display: none; }
  .util .group:last-child { display: none; }
  .principal img { width: 120px; height: 120px; }
  .stat-i b { font-size: 1.7rem; }
}
@media print { .util, .navband, .footer, .menu-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .tile { transition: none; } }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 56ch; }
@media (max-width: 960px) { .home-split { grid-template-columns: 1fr !important; } }
.home-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.footer .fbrand img { background: #fff; border-radius: 50%; padding: 2px; }

/* announcement ticker */
.ticker { background: #082038; color: #fff; display: flex; align-items: stretch; font-size: .88rem; overflow: hidden; border-bottom: 1px solid #14395a; }
.ticker-label { background: var(--red); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; padding: 9px 16px; display: flex; align-items: center; flex: none; position: relative; z-index: 1; }
.ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-move { display: flex; white-space: nowrap; animation: tick 45s linear infinite; will-change: transform; }
.ticker-track:hover .ticker-move, .ticker-track:focus-within .ticker-move { animation-play-state: paused; }
.ticker-item { display: inline-flex; align-items: center; padding: 0 28px; }
.ticker-item::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #f2b04a; margin-left: 56px; }
.ticker-item a { color: #fff; text-decoration: none; }
.ticker-item a:hover { text-decoration: underline; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-move { animation: none; } .ticker-track { overflow-x: auto; } .ticker-move > [aria-hidden] { display: none; } }

/* photo hero */
.hero { min-height: 600px; display: flex; }
.hero .wrap { width: 100%; grid-template-columns: 1.25fr 1fr; align-items: center; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { opacity: 0; transition: opacity 1.2s ease; }
.hero-bg img.on { opacity: 1; }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,32,56,.92) 0%, rgba(8,32,56,.78) 45%, rgba(8,32,56,.45) 100%); }
.hero.has-photo::before { display: none; }
.hero .wrap { z-index: 2; }
.dots { position: absolute; left: max(24px, calc((100vw - var(--w)) / 2 + 24px)); bottom: 22px; display: flex; gap: 8px; z-index: 3; }
.dots button { width: 34px; height: 5px; border: 0; padding: 0; border-radius: 3px; background: rgba(255,255,255,.4); cursor: pointer; }
.dots button.on { background: #f2b04a; }
.hero .form { box-shadow: 0 24px 48px rgba(0,0,0,.35); }
.hero .form h3 { color: var(--navy); }
.hero h1 { text-shadow: 0 2px 14px rgba(0,0,0,.35); }

/* quick links strip under hero */
.quick { background: #fff; border-bottom: 1px solid var(--line); }
.quick .wrap { display: grid; grid-template-columns: repeat(5, 1fr); }
.quick a { display: flex; gap: 12px; align-items: center; padding: 18px 16px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .95rem; border-left: 1px solid var(--line); }
.quick a:first-child { border-left: 0; padding-left: 0; }
.quick a:hover { color: var(--primary); }
.quick a small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
@media (max-width: 960px) {
  .hero { min-height: 0; }
  .quick .wrap { grid-template-columns: repeat(2, 1fr); }
  .quick a { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; }
  .dots { left: 24px; }
}
@media (max-width: 600px) { .quick .wrap { grid-template-columns: 1fr; } .ticker-label { padding: 9px 10px; } }
.hero .wrap { pointer-events: none; }
.hero .wrap > * { pointer-events: auto; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: 1fr; gap: 28px; padding-top: 36px; padding-bottom: 56px; } }

/* ===== Theme layer: indigo + gold, display serif ===== */
h1, h2 { font-family: var(--serif); font-weight: 600; letter-spacing: -.005em; line-height: 1.12; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); }
.pagehead h1 { font-size: clamp(2.1rem, 4vw, 3rem); }
.panel-head h2, .form h3 { font-family: var(--sans); font-size: 1.05rem; letter-spacing: 0; }
.eyebrow { color: var(--teal); }
.btn { border-radius: 999px; padding: 12px 24px; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #0d2b45; box-shadow: 0 6px 18px rgba(242,176,74,.28); }
.btn.gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: #0d2b45; }
.btn.outline-light { border-color: rgba(255,255,255,.55); }
.btn.small { padding: 6px 14px; }
.panel, .tile, .form, .event, .doc-list, .facts, .steps li, .stat { border-radius: 14px; }
.panel-head { border-radius: 14px 14px 0 0; }
.callout { border-left-color: var(--gold); }
.ico.teal { background: #fdf1c9; color: #8a6400; }
.tag { background: var(--soft-2); color: var(--primary); }

/* ticker */
.ticker { background: #081c2e; border-bottom: 1px solid #1d4666; font-size: .95rem; }
.ticker-label { background: var(--gold); color: #0d2b45; letter-spacing: .1em; padding: 11px 18px; }
.ticker-label::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #0d2b45; margin-right: 8px; }
.ticker-item::after { content: "\2726"; width: auto; height: auto; background: none; color: var(--gold); margin-left: 56px; font-size: .8rem; }

/* utility bar */
.util { background: #0a4468; color: #d3e2ee; font-size: .85rem; }
.util a { color: #d3e2ee; }
.util .wrap { padding-top: 9px; padding-bottom: 9px; }
.motto { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1rem; letter-spacing: .02em; }

/* header: logo left, nav right, sticky white bar */
.masthead { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 2px 14px rgba(13,43,69,.05); }
.masthead .wrap { padding-top: 10px; padding-bottom: 10px; gap: 20px; }
.brand img { width: 60px; height: 60px; }
.brand-name { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; line-height: 1.02; color: var(--navy); letter-spacing: 0; }
.brand-name.sub { font-size: 1.12rem; font-weight: 600; color: var(--primary); }
.masthead .nav ul { gap: 2px; }
.masthead .nav a { color: var(--navy); font-weight: 500; font-size: .93rem; padding: 10px 12px; border-bottom: 0; border-radius: 8px; background: none; }
.masthead .nav a:hover { background: var(--soft); color: var(--primary); }
.masthead .nav a[aria-current="page"] { color: var(--primary); background: var(--soft-2); }
.navband { display: none; }

/* hero */
.hero { min-height: clamp(540px, 78vh, 780px); background: linear-gradient(135deg, #0d2b45 0%, #0f5b8d 60%, #1a6fa5 100%); align-items: center; }
.hero::before { background-image: none; }
.hero:not(.has-photo)::after { content: ""; position: absolute; right: 6%; top: 50%; width: min(460px, 38vw); aspect-ratio: 1; transform: translateY(-50%); background: url(/logo.png) center/contain no-repeat; border-radius: 50%; opacity: .09; filter: grayscale(1); }
.hero-bg::after { background: linear-gradient(90deg, rgba(13,43,69,.94) 0%, rgba(15,91,141,.82) 42%, rgba(15,91,141,.5) 100%); }
.hero .wrap { grid-template-columns: 1fr; padding-top: 72px; padding-bottom: 96px; }
.hero-copy { max-width: 760px; }
.hero h1 { color: #fff; margin: 22px 0 22px; text-shadow: none; }
.hero h1 em { font-style: italic; font-weight: 500; }
.hero h1 em.gold { font-style: normal; color: var(--gold); font-weight: 600; }
.hero .lede { color: #d6e4ef; font-size: 1.15rem; max-width: 60ch; }
.chip { display: inline-flex; gap: 10px; align-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(242,176,74,.55); color: var(--gold); padding: 8px 18px; border-radius: 999px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; margin: 0; }
.chip:hover { background: rgba(242,176,74,.12); color: var(--gold-hover); }
.hero .actions { margin-top: 32px; }
.dots { left: max(24px, calc((100vw - var(--w)) / 2 + 24px)); bottom: 56px; }
.dots button { width: 40px; height: 5px; background: rgba(255,255,255,.35); }
.dots button.on { background: var(--gold); }

/* quick strip, stats */
.quick a { color: var(--navy); }
.quick a:hover { color: var(--primary); }
.stat-i b { font-family: var(--serif); font-size: 2.8rem; font-weight: 700; color: var(--primary); }

/* principal / vision */
.principal img { border-radius: 18px; box-shadow: 0 18px 40px rgba(13,43,69,.18); border: 0; }
.principal blockquote { font-size: 1.7rem; line-height: 1.35; font-weight: 500; }

/* band + footer */
.band { background: linear-gradient(135deg, #0d2b45, #0f5b8d); }
.band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.band p { color: #d3e2ee; }
.band .btn.light { background: var(--gold); border-color: var(--gold); color: #0d2b45; }
.band .btn.light:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: #0d2b45; }
.footer { background: #081c2e; color: #b9cddc; }
.footer a { color: #e6f0f7; }
.footer h4 { color: var(--gold); }
.footer .row svg { color: var(--gold); }
.footer .legal { border-top-color: #1d4666; color: #8fb0c8; }
.footer .fbrand { font-family: var(--serif); font-size: 1.25rem; }

/* admin picks up the palette via variables */
.admin aside { background: #081c2e; }

@media (max-width: 960px) {
  .masthead { position: sticky; }
  .masthead .wrap { flex-wrap: wrap; }
  .masthead .nav { display: none; width: 100%; order: 3; }
  .masthead .nav.open { display: block; }
  .masthead .nav ul { flex-direction: column; padding: 8px 0 6px; }
  .masthead .nav a { padding: 12px 8px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .hero { min-height: 0; }
  .hero .wrap { padding-top: 48px; padding-bottom: 88px; }
  .dots { left: 24px; bottom: 36px; }
}
@media (max-width: 600px) {
  .brand-name { font-size: 1.15rem; }
  .brand-name.sub { font-size: .98rem; }
  .brand img { width: 48px; height: 48px; }
  .motto { display: none; }
  .stat-i b { font-size: 2.1rem; }
}
@media (max-width: 960px) { .masthead .brand { flex: 1; min-width: 0; } .masthead .menu-toggle { flex: none; } }

/* Numerals: lining figures everywhere (Cormorant defaults to old-style, which looks uneven) */
body, h1, h2, h3, .brand-name, .footer .fbrand, .principal blockquote { font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.stat-i b, .datebox, .stat b, .table td, .facts, .ticker { font-family: var(--sans); font-variant-numeric: lining-nums tabular-nums; font-feature-settings: "lnum" 1, "tnum" 1; }
.stat-i b { font-weight: 700; letter-spacing: -.02em; }

.footer .legal .credit a { font-weight: 600; color: #fff; }
.footer .legal .sep { margin: 0 12px; opacity: .35; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery .shot { display: block; position: relative; overflow: hidden; border-radius: 8px; border: 1px solid var(--line); background: #fff; text-decoration: none; }
.gallery .shot img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; transition: transform .35s ease; }
.gallery .shot:hover img { transform: scale(1.04); }
.gallery .shot span { display: block; padding: 10px 14px; font-size: .88rem; color: var(--muted); }
@media (max-width: 960px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery { grid-template-columns: 1fr; } }

/* keep the brand on two lines now that the nav has nine items */
@media (min-width: 961px) {
  .masthead .brand { flex: none; }
  .masthead .nav a { padding: 10px 9px; font-size: .9rem; }
  .masthead .wrap { gap: 12px; }
}
@media (min-width: 961px) and (max-width: 1200px) {
  .masthead .nav a { padding: 10px 6px; font-size: .86rem; }
  .masthead .brand img { width: 50px; height: 50px; }
  .masthead .brand-name { font-size: 1.2rem; }
  .masthead .brand-name.sub { font-size: 1rem; }
}

/* admin sidebar groups, success message */
.admin aside .grp { margin: 18px 0 4px; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #8fb0c8; font-weight: 700; }
.status.ok { border-color: #1f8a4c; background: #e6f5ec; }
.form textarea { width: 100%; padding: 10px 12px; font: inherit; font-size: .97rem; background: #fff; color: var(--ink); border: 1px solid #b9c7d2; border-radius: var(--r); resize: vertical; }
@media (max-width: 960px) {
  .admin aside { display: block; padding: 14px 20px; }
  .admin aside nav { display: flex; flex-wrap: wrap; gap: 2px 18px; }
  .admin aside .grp { display: none; }
  .admin aside form { margin-top: 10px !important; }
}

/* smooth page transitions and instant loading feedback */
main#main { animation: page-in .25s ease-out; }
@keyframes page-in { from { opacity: .0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.route-progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 100; background: var(--gold); transform-origin: left; animation: route-progress 1.2s ease-out forwards; }
@keyframes route-progress { from { transform: scaleX(0); } to { transform: scaleX(.85); } }
.skel { border-radius: 6px; background: linear-gradient(90deg, #e4edf3 25%, #f3f7fa 50%, #e4edf3 75%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { main#main, .route-progress, .skel { animation: none; } }

/* daily patient count on the home page */
.patients { background: var(--navy); color: #fff; }
.patients .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.patients .when { margin: 0; color: #d3e2ee; font-size: .95rem; }
.patients .when b { color: #fff; font-variant-numeric: tabular-nums; }
.patients .counts { display: flex; gap: 36px; }
.patients .counts div { display: flex; align-items: baseline; gap: 10px; }
.patients .counts b { font-size: 1.9rem; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; line-height: 1; }
.patients .counts span { font-size: .85rem; letter-spacing: .06em; text-transform: uppercase; color: #d3e2ee; }
.big-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.big-fields input { font-size: 1.6rem; font-weight: 600; padding: 14px 16px; font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .patients .counts { gap: 22px; } .big-fields { grid-template-columns: 1fr; } }

/* ---- ASP.NET build additions ---- */
:root { --font-sans: "Inter"; --font-serif: "Cormorant Garamond"; }
.hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.form-msg:empty { display: none; }
.form img, .events .img img { max-width: 100%; }
.credit .sep { margin: 0 12px; opacity: .35; }

/* clickable stats */
a.stat-i { display: block; color: inherit; text-decoration: none; transition: background .15s; position: relative; }
a.stat-i:hover, a.stat-i:focus-visible { background: #fff; }
a.stat-i span::after { content: " \2192"; color: var(--primary); opacity: 0; transition: opacity .15s, transform .15s; display: inline-block; }
a.stat-i:hover span::after, a.stat-i:focus-visible span::after { opacity: 1; transform: translateX(3px); }
@media (hover: none) { a.stat-i span::after { opacity: .6; } }
.split[id^="cat-"] { scroll-margin-top: 90px; }

/* admin: show / hide sections */
fieldset.vis { border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px 16px; margin: 0 0 18px; background: #fff; }
fieldset.vis legend { font-weight: 700; padding: 0 8px; color: var(--primary); }
fieldset.vis .checks { display: grid; gap: 8px; }
fieldset.vis .checks label { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
fieldset.vis .checks input { margin-top: 4px; }

/* director initials placeholder */
.principal .avatar { width: 190px; height: 190px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, var(--navy), var(--primary)); color: #fff; font-family: var(--serif); font-size: 3.6rem; font-weight: 600; letter-spacing: .04em; box-shadow: 0 18px 40px rgba(13,43,69,.18); }
@media (max-width: 720px) { .principal .avatar { width: 120px; height: 120px; font-size: 2.4rem; } }
