/* ===== Brand tokens — change these to re-theme the whole site ===== */
:root {
  --navy: #16244a;
  --navy-2: color-mix(in srgb, var(--navy) 82%, white);
  --gold: #e3a72f;
  --gold-soft: color-mix(in srgb, var(--gold) 32%, white);
  --gold-dark: color-mix(in srgb, var(--gold) 55%, black);
  --cream: #faf6ee;
  --sky: #dfe8f5;
  --ink: #1b1f2a;
  --muted: #5a6072;
  --line: #e2ddd2;
  --white: #fff;
  --danger: #b3261e;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(22,36,74,.06), 0 8px 24px rgba(22,36,74,.06);
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 1.075rem; line-height: 1.65; color: var(--ink); background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 .4em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 1.6em 0 .5em; }
h3 { font-size: 1.3rem; margin: 1.2em 0 .4em; }
.container { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.narrow { width: min(100% - 32px, 780px); margin-inline: auto; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--navy); padding: 8px 14px; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* ===== Alert banner ===== */
.alert { background: var(--gold-soft); color: var(--navy); font-size: .95rem; }
.alert--urgent { background: var(--danger); color: #fff; }
.alert--urgent a { color: #fff; }
.alert__inner p { margin: 0; padding: 10px 0; }
.alert a { font-weight: 700; color: inherit; }

/* ===== Header ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line); }
.utility { background: var(--navy); color: #cfd6e8; font-size: .88rem; }
.utility__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 6px 0; }
.utility__motto { font-style: italic; }
.utility__links { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { text-decoration: underline; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; }
.brand__sub { font-size: .82rem; color: var(--muted); }
.brand--light { color: #fff; }
.brand--light .brand__sub { color: #cfd6e8; }

.nav__list { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__item { position: relative; }
.nav__link { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 10px; font: inherit; font-weight: 700; font-size: .98rem; color: var(--navy); background: none; border: 0; cursor: pointer; text-decoration: none; }
.nav__link:hover, .nav__link[aria-expanded="true"], .nav__link[aria-current] { background: var(--cream); }
.chev { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s; }
[aria-expanded="true"] .chev { transform: rotate(-135deg) translateY(-1px); }
.nav__sub { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; list-style: none; margin: 0; padding: 8px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.nav__trigger[aria-expanded="true"] + .nav__sub { display: block; }
.nav__sub a { display: block; padding: 9px 12px; border-radius: 8px; text-decoration: none; color: var(--ink); }
.nav__sub a:hover, .nav__sub a[aria-current] { background: var(--cream); color: var(--navy); }
.menu-toggle { display: none; align-items: center; gap: 10px; font: inherit; font-weight: 700; color: var(--navy); background: var(--cream); border: 0; border-radius: 10px; padding: 10px 14px; cursor: pointer; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; } .menu-toggle__bars::after { top: 6px; }

@media (max-width: 960px) {
  .utility__motto { display: none; }
  .utility__inner { justify-content: center; }
  .utility__links { gap: 14px; flex-wrap: wrap; justify-content: center; }
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line); box-shadow: var(--shadow); max-height: calc(100vh - 120px); overflow-y: auto; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; padding: 8px 16px 16px; }
  .nav__link { width: 100%; justify-content: space-between; padding: 14px 8px; }
  .nav__sub { position: static; box-shadow: none; border: 0; padding: 0 0 8px 12px; min-width: 0; }
  .brand__name { font-size: 1.25rem; }
}

/* ===== Buttons & links ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: color-mix(in srgb, var(--gold) 85%, white); color: var(--navy); }
.btn--outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn--outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--navy); }
.link-arrow { font-weight: 700; text-decoration: none; color: var(--navy); }
.link-arrow::after { content: " →"; color: var(--gold); }
.link-arrow:hover { text-decoration: underline; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--gold-dark); margin: 0 0 .8em; }
.eyebrow a { color: inherit; }
.eyebrow--light { color: var(--gold); }

/* ===== Hero ===== */
.hero { background: var(--navy); color: #fff; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 72px 0 88px; }
.hero__title { color: #fff; font-size: clamp(3rem, 8vw, 5.6rem); line-height: .98; margin: 0 0 .35em; }
.hero__title em { color: var(--gold); font-style: italic; }
.hero__lede { font-size: 1.2rem; color: #dbe1f0; max-width: 34ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__media { margin: 0; position: relative; }
.hero__media img, .hero__media video { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 28px 28px 28px 120px; }
.hero__media figcaption { position: absolute; right: 12px; bottom: 12px; background: rgba(22,36,74,.8); color: #fff; font-size: .78rem; padding: 4px 10px; border-radius: 999px; }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; padding: 48px 0 56px; gap: 32px; } }

/* ===== Quick links ===== */
.quick { margin-top: -40px; position: relative; z-index: 2; }
.quick__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; }
.quick__tile { display: flex; flex-direction: column; padding: 22px 24px; text-decoration: none; border-right: 1px solid var(--line); transition: background .15s; }
.quick__tile:last-child { border-right: 0; }
.quick__tile:hover { background: var(--cream); }
.quick__k { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; color: var(--navy); }
.quick__k::after { content: " →"; color: var(--gold); }
.quick__v { color: var(--muted); font-size: .92rem; }
@media (max-width: 760px) { .quick__grid { grid-template-columns: 1fr 1fr; } .quick__tile:nth-child(2) { border-right: 0; } .quick__tile:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }

/* ===== Sections ===== */
.section { padding: 80px 0; }
.section--tint { background: var(--cream); }
.section__head { margin-bottom: 32px; }
.section__head h2 { margin: 0; }
.section__head--row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }

.welcome { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: center; max-width: 960px; }
.welcome__badge { aspect-ratio: 1; border-radius: 50%; background: var(--sky); display: grid; place-items: center; }
.welcome__badge img { width: 55%; }
.welcome__quote { font-family: var(--font-head); font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.3; color: var(--navy); margin: 0 0 16px; }
.welcome__by { color: var(--muted); margin: 0 0 16px; }
@media (max-width: 700px) { .welcome { grid-template-columns: 1fr; gap: 24px; } .welcome__badge { width: 120px; } }

.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value { background: var(--white); border-radius: var(--radius); padding: 32px 28px; border-top: 6px solid var(--gold); box-shadow: var(--shadow); }
.value--2 { border-top-color: var(--navy); } .value--3 { border-top-color: var(--navy-2); }
.value h3 { font-size: 2rem; margin: .2em 0 .3em; }
.value p { margin: 0; color: var(--muted); }
.value__num { font-weight: 700; color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .values { grid-template-columns: 1fr; } }

.stats { background: var(--navy); color: #fff; }
.stats__grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 40px 0; }
.stat { text-align: center; padding: 8px 16px; border-right: 1px solid rgba(255,255,255,.15); }
.stat:last-child { border-right: 0; }
.stat__v { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--gold); font-weight: 700; }
.stat__l { color: #cfd6e8; }
@media (max-width: 600px) { .stats__grid { grid-template-columns: 1fr; } .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); padding: 16px; } .stat:last-child { border-bottom: 0; } }

.split { display: grid; grid-template-columns: 1.6fr 1fr; gap: 56px; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; } }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cards--grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card__media img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card__body { padding: 18px 20px 22px; }
.card__body p { margin: 0; color: var(--muted); font-size: .95rem; }
.card__date { font-size: .82rem; color: var(--muted); }
.card__title { font-size: 1.15rem; margin: .3em 0 .4em; }
.card__title a { text-decoration: none; color: var(--navy); }
.card__title a:hover { text-decoration: underline; }

/* ===== Events ===== */
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.event { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.event__date { background: var(--navy); color: #fff; border-radius: 10px; text-align: center; padding: 6px 0; line-height: 1.1; }
.event__d { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; }
.event__m { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gold); }
.event__title { font-weight: 700; color: var(--navy); text-decoration: none; display: block; }
.event__title:hover { text-decoration: underline; }
.event__meta, .event__sum { display: block; font-size: .9rem; color: var(--muted); }
.event--empty { display: block; color: var(--muted); }

/* ===== Gallery tiles ===== */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 16px; }
.tile { position: relative; border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; padding: 18px; text-decoration: none; background-size: cover; background-position: center; }
.tile::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,36,74,.75), rgba(22,36,74,0) 60%); }
.tile span { position: relative; color: #fff; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; }
.tile:hover span { text-decoration: underline; }
.tile { background-color: var(--navy-2); }
.tile:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.tile:nth-child(2) { background-color: var(--gold-dark); }
.tile:nth-child(3) { background-color: color-mix(in srgb, var(--navy) 60%, var(--gold)); }
.tile:nth-child(4) { grid-column: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; } .tile:nth-child(1), .tile:nth-child(4) { grid-column: span 2; } .tile:nth-child(1) { grid-row: span 1; } }

/* ===== CTA ===== */
.cta { background: var(--gold); }
.cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 56px 0; flex-wrap: wrap; }
.cta h2 { margin: 0 0 .2em; }
.cta p { margin: 0; color: var(--navy); max-width: 52ch; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta .btn--gold { background: var(--navy); color: #fff; }
.cta .btn--outline-light { border-color: var(--navy); color: var(--navy); }

/* ===== Inner pages ===== */
.page-hero { background: var(--cream); padding: 56px 0 40px; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: .2em; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 60ch; margin: 0; }
.page-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding: 48px 0 80px; }
@media (max-width: 960px) { .page-body { grid-template-columns: 1fr; } }
.prose { max-width: 70ch; }
.prose > :first-child { margin-top: 0; }
.prose table, .table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .98rem; }
.prose th, .prose td, .table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th, .table thead th { background: var(--cream); color: var(--navy); }
.table-wrap { overflow-x: auto; }
.sidebar { display: grid; gap: 16px; align-content: start; }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.side-card h2 { font-size: 1.15rem; margin: 0 0 .6em; }
.side-card ul { margin: 0; padding-left: 1.1em; }
.side-card p { margin: 0 0 .6em; }
.side-card--accent { background: var(--navy); color: #dbe1f0; border-color: var(--navy); }
.side-card--accent h2, .side-card--accent a { color: #fff; }
.notice { background: var(--gold-soft); border-left: 5px solid var(--gold); padding: 12px 16px; border-radius: 0; color: var(--navy); }
.post-image { border-radius: var(--radius); margin: 32px 0; width: 100%; }
.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { background: var(--sky); color: var(--navy); padding: 6px 14px; border-radius: 999px; font-size: .92rem; }
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 1.2em 0; }
.subject-grid a { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 700; color: var(--navy); background: var(--white); }
.subject-grid a:hover { border-color: var(--gold); background: var(--cream); }
.pager { display: flex; justify-content: space-between; margin-top: 32px; }

.filter { display: flex; flex-direction: column; gap: 6px; font-weight: 700; color: var(--navy); margin-bottom: 20px; }
.filter input { font: inherit; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; }
.doc__icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 8px; background: #fbe4e2; color: var(--danger); font-size: .75rem; font-weight: 700; }
.doc__main a { font-weight: 700; }
.doc__meta { display: block; font-size: .88rem; color: var(--muted); }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #cfd6e8; padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__address { margin-top: 18px; }
.footer__h { font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); margin: 0 0 12px; }
.footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.15); margin-top: 48px; padding: 20px 0 28px; font-size: .88rem; }
.footer__base p { margin: 0; }
.ceop { background: #fff; color: var(--navy) !important; padding: 6px 14px; border-radius: 999px; font-weight: 700; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
