:root {
  color-scheme: light;
  --ink: #08162c;
  --blue: #162d4a;
  --paper: #f7f5ef;
  --muted: #526171;
  --line: #dbdfe1;
  --gold: #ffca63;
  --accent: #765215;
  --card: #fff;
  font-family: "DM Sans", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select { outline-offset: 4px; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid #a66c12; }
.skip { position: absolute; z-index: 5; left: 1rem; top: -5rem; padding: .8rem 1rem; background: white; }
.skip:focus { top: .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
.site-head { position: sticky; top: 0; z-index: 3; background: var(--ink); color: #fff; border-bottom: 1px solid #ffffff23; }
.head-inner, .hero-inner, .content, .footer-inner { max-width: 1280px; margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 4rem); }
.head-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; }
.brand img { display: block; object-fit: contain; filter: brightness(0) invert(1); }
nav { display: flex; gap: clamp(.7rem, 3vw, 2.5rem); font-size: .92rem; }
nav a, .staff-link { text-decoration: none; padding-block: .4rem; }
nav a:hover, .staff-link:hover { color: var(--gold); }
.staff-link { font-size: .84rem; white-space: nowrap; color: #d7e2ed; }
.hero { color: #fff; background: radial-gradient(ellipse at 79% 25%, #264568 0%, #122642 46%, var(--ink) 83%); overflow: hidden; }
.hero-inner { min-height: 500px; display: grid; grid-template-columns: 1.06fr .94fr; align-items: center; gap: clamp(1.6rem, 5vw, 4.6rem); padding-block: clamp(2.4rem, 7vw, 6.5rem); }
.hero h1 { font-size: clamp(3.2rem, 8.1vw, 7.6rem); line-height: .91; letter-spacing: -.08em; margin: 1rem 0 1.35rem; max-width: 9ch; text-wrap: balance; }
.eyebrow { text-transform: uppercase; font-size: .7rem; letter-spacing: .15em; font-weight: 800; margin: 0 0 .7rem; color: var(--accent); }
.hero .eyebrow { color: var(--gold); }
.hero-intro { color: #d2dce8; font-size: clamp(1rem, 1.5vw, 1.18rem); line-height: 1.65; max-width: 42ch; margin: 0 0 1.65rem; }
.event-dates { color: var(--gold); font-size: .95rem; font-weight: 700; margin: 0 0 .7rem; }
.hero-photo { position: relative; margin: 0; border-radius: 22px; overflow: hidden; border: 1px solid #ffffff42; background: #344b64; box-shadow: 0 25px 55px #0005; }
.hero-photo img { display: block; width: 100%; min-height: 280px; aspect-ratio: 1.21; object-fit: cover; }
.hero-photo figcaption { position: absolute; bottom: 0; inset-inline: 0; background: linear-gradient(transparent,#08162cee); padding: 2rem 1.1rem 1rem; font-size: .8rem; color: white; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; padding: .85rem 1.05rem; border-radius: 8px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer; }
.button:hover { background: #273f5e; }
.button.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.button.gold:hover { background: #ffda89; }
.button.outline { background: transparent; color: var(--ink); border-color: #a1adb8; }
.button.outline:hover { background: #eaf0f3; }
.button:disabled { cursor: default; opacity: .65; }
.content { padding-block: 3.3rem; }
section[id] { scroll-margin-top: 95px; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; }
h2 { font-size: clamp(1.8rem, 3.8vw, 3rem); letter-spacing: -.045em; margin: 0; line-height: 1.1; }
.search-label { min-width: min(100%, 230px); }
input, textarea, select { width: 100%; min-width: 0; border: 1px solid #b9c2ca; background: #fff; border-radius: 8px; padding: .73rem .85rem; color: var(--ink); }
textarea { resize: vertical; min-height: 5rem; }
.categories { display: flex; flex-wrap: wrap; gap: .45rem; margin-block: 1.15rem; }
.categories button { border: 1px solid #bbc2c6; border-radius: 100px; background: transparent; padding: .52rem .9rem; cursor: pointer; color: var(--ink); }
.categories button[aria-pressed="true"] { background: var(--ink); color: white; border-color: var(--ink); }
.branch-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .95rem; }
.branch-card { display: flex; flex-direction: column; gap: .7rem; min-height: 190px; padding: 1.3rem; border-radius: 14px; border: 1px solid var(--line); background: white; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.branch-card:hover { border-color: #a98a52; transform: translateY(-3px); box-shadow: 0 7px 22px #08162c13; }
.branch-card h3 { font-size: 1.5rem; letter-spacing: -.035em; margin: 0; line-height: 1.1; }
.branch-card p { color: var(--muted); line-height: 1.52; margin: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.branch-card .eyebrow { margin: 0; }
.branch-action { margin-top: auto; font-size: .85rem; font-weight: 750; }
.template-note { line-height: 1.6; color: var(--muted); margin-top: 1.4rem; }
.announcement { background: #fff1cc; border: 1px solid #dfbf72; margin: 0 0 1.4rem; padding: .85rem 1rem; border-radius: 8px; }
.about-section, .host-section { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; border-top: 1px solid var(--line); margin-top: 3.5rem; padding-top: 2.5rem; }
.about-section p, .host-section p { line-height: 1.65; }
.host-section img { width: 100%; border-radius: 14px; max-height: 290px; object-fit: cover; }
.text-link { display: inline-block; font-weight: 700; margin-right: .7rem; text-underline-offset: .25rem; }
footer { background: var(--ink); color: #dae5ed; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; padding-block: 2.25rem; font-size: .9rem; line-height: 1.8; }
.footer-inner a { margin-right: .6rem; }
.event-view { min-height: 60vh; }
.event-view > h1 { font-size: clamp(2.25rem, 5.2vw, 4.75rem); line-height: 1.03; letter-spacing: -.06em; margin: .75rem 0; }
.back { display: inline-block; margin-bottom: .9rem; font-size: .91rem; font-weight: 700; text-underline-offset: .22rem; }
.intro { color: var(--muted); max-width: 70ch; line-height: 1.7; font-size: 1.08rem; }
.details-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 1.1rem; margin-top: 1.5rem; }
.panel { border: 1px solid var(--line); background: white; border-radius: 14px; padding: clamp(1rem, 3vw, 1.65rem); margin-block: .9rem; }
.panel h2 { font-size: 1.45rem; }
.panel h3 { margin: 0 0 .4rem; }
.facts { margin: 0; }
.facts dt { font-weight: 750; margin-top: 1rem; }
.facts dd { margin: .35rem 0 .7rem; color: var(--muted); line-height: 1.5; white-space: pre-line; }
.resources { display: grid; gap: .7rem; padding: 0; list-style: none; margin-bottom: 0; }
.resources li { border-top: 1px solid var(--line); padding-top: .7rem; }
.resources a { font-weight: 750; }
.placeholder { color: var(--muted); font-size: .91rem; }
.editor { display: grid; gap: .75rem; }
.editor label { display: grid; gap: .35rem; font-weight: 650; }
.editor .panel { margin: 0; }
.editor summary { cursor: pointer; font-weight: 750; }
.fields { display: grid; gap: .8rem; margin-top: 1rem; }
.two-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.status { min-height: 1.35em; font-weight: 650; }
.status.error { color: #a02532; }
.grants { list-style: none; padding: 0; }
.grants li { display: flex; gap: .7rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-block: .65rem; overflow-wrap: anywhere; }
@media (max-width: 840px) { .branch-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 660px) {
  .head-inner { flex-wrap: wrap; gap: .35rem .85rem; padding-block: .7rem; min-height: 0; }
  nav { order: 3; width: 100%; }
  .hero-inner, .about-section, .host-section, .details-grid { grid-template-columns: 1fr; }
  .hero-inner { padding-block: 2.6rem 1.5rem; }
  .hero h1 { font-size: clamp(3.2rem, 12vw, 5.7rem); }
  .hero-photo img { min-height: 0; aspect-ratio: 1.7; }
  .section-head, .footer-inner { flex-direction: column; align-items: flex-start; }
  .search-label { width: 100%; }
  .branch-grid { grid-template-columns: 1fr; }
  .two-fields { grid-template-columns: 1fr; }
  .content { padding-block: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
