:root {
  --navy: #1d105f;
  --navy-2: #1d105f;
  --cyan: #0294d0;
  --cyan-light: #acd5f1;
  --stone: #e0ded9;
  --ink: #1d105f;
  --muted: #333333;
  --line: #e0ded9;
  --white: #ffffff;
  --surface: #e0ded9;
  --font-primary: Arial, Helvetica, sans-serif;
  --font-secondary: Palatino, "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --shadow: 0 14px 34px rgba(29, 16, 95, .12);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-primary);
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.container { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -70px; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--navy); border-radius: 8px; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 144px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(23,16,82,.08);
  backdrop-filter: blur(14px);
}
.header-inner { min-height: 144px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.brand { flex: 0 0 310px; align-self: stretch; display: flex; align-items: center; padding-block: 16px; }
.brand img { width: 280px; height: auto; object-fit: contain; }
.nav-toggle { display: none; border: 0; background: var(--navy); color: #fff; width: 46px; height: 42px; border-radius: 9px; font-size: 1.4rem; cursor: pointer; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { position: relative; padding: 14px 14px; text-decoration: none; font-weight: 700; color: var(--navy); border-radius: 9px; letter-spacing: .01em; }
.site-nav a:hover, .site-nav a:focus-visible { background: var(--cyan-light); outline: none; }
.site-nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--cyan); }

.hero { position: relative; min-height: 520px; display: grid; align-items: center; isolation: isolate; overflow: hidden; background: var(--navy-2); }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--hero-image, url("assets/hero.png")) center 47% / cover no-repeat; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(4,20,40,.92) 0%, rgba(4,20,40,.72) 46%, rgba(4,20,40,.18) 78%, rgba(4,20,40,.08) 100%); }
.hero-content { width: min(720px, 67%); padding-block: 80px; color: var(--white); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--sky-on-dark, #acd5f1); font-size: .82rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 42px; height: 3px; background: var(--cyan); }
.hero .eyebrow { text-transform: none; }
h1, h2, h3 { color: var(--navy); font-family: var(--font-primary); font-weight: 700; line-height: 1.18; letter-spacing: 0; }
.hero h1 { max-width: 700px; margin: 0 0 20px; color: var(--white); font-size: clamp(2.7rem, 5.5vw, 4.9rem); letter-spacing: 0; }
.hero p { max-width: 620px; margin: 0 0 32px; color: #e8f3fa; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 12px 22px; border: 2px solid transparent; border-radius: 10px; text-decoration: none; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.2); outline: none; }
.button-primary { background: var(--cyan); color: #fff; }
.button-secondary { border-color: rgba(255,255,255,.9); color: #fff; background: rgba(4,20,40,.22); }
.button-navy { background: var(--navy); color: #fff; }
.button-outline { border-color: var(--navy); color: var(--navy); background: #fff; }

.section { padding: 80px 0; }
.section-soft { background: var(--surface); }
.section-dark { background: var(--navy); color: #fff; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 34px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: 0; }
.section-heading p { max-width: 590px; margin: 0; color: var(--muted); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: #d5dbee; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.feature-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.feature-card-body { padding: 24px; }
.feature-card h3 { margin: 0 0 10px; font-size: 1.35rem; }
.feature-card p { margin: 0 0 20px; color: var(--muted); }
.text-link { color: var(--navy); font-weight: 800; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; text-underline-offset: 4px; }
.text-link:hover { color: #007aaa; }

.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.split h2 { margin-top: 0; font-size: clamp(2rem, 4vw, 3rem); }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--cyan); font-weight: 900; }
.callout { padding: 30px; background: var(--cyan-light); border-left: 5px solid var(--cyan); border-radius: 12px; }

.page-hero { padding: 76px 0 68px; color: #fff; background: linear-gradient(120deg, rgba(5,24,49,.94), rgba(23,16,82,.72)), url("assets/hero.png") center 46% / cover; }
.page-hero .eyebrow { margin-bottom: 12px; }
.page-hero h1 { max-width: 830px; margin: 0; color: #fff; font-size: clamp(2.7rem, 6vw, 4.8rem); letter-spacing: 0; }
.page-hero p { max-width: 720px; margin: 20px 0 0; color: #e2edf6; font-size: 1.18rem; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 44px; align-items: start; }
.panel { padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.panel h2, .panel h3 { margin-top: 0; }
.events-list { display: grid; gap: 28px; }
.event-card { display: grid; grid-template-columns: minmax(260px, .75fr) 1.25fr; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.event-card img { width: 100%; height: 100%; min-height: 310px; object-fit: cover; }
.event-content { padding: 34px; }
.event-content h2 { margin: 0 0 14px; font-size: 2rem; }
.event-content p { color: var(--muted); }
.event-meta { display: grid; gap: 10px; margin: 20px 0; }
.event-meta div { display: grid; grid-template-columns: 64px 1fr; gap: 12px; }
.event-meta dt { color: var(--navy); font-weight: 900; }
.event-meta dd { margin: 0; color: var(--muted); }
.event-actions { margin-top: 24px; }
.button-outline { color: var(--navy); background: #fff; border-color: var(--navy); }
.button-outline:hover { color: #fff; background: var(--navy); }
.future-box { margin-top: 28px; padding: 28px; border: 1px dashed #9aaabd; border-radius: 14px; background: #f9fbfd; }
.event-category { display: inline-flex; margin: 0 0 12px; padding: 5px 10px; color: var(--navy); background: var(--cyan-light); border-radius: 999px; font-size: .74rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.event-type-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.event-type { padding: 22px 18px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.event-type-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 17px; color: #fff; background: linear-gradient(145deg, var(--navy), #126da0); border-radius: 12px; }
.event-type-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.event-type h3 { margin: 0 0 8px; font-size: 1.05rem; }
.event-type p { margin: 0; color: var(--muted); font-size: .9rem; }

.steps { counter-reset: step; display: grid; gap: 24px; }
.step { position: relative; padding: 30px 30px 30px 88px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 28px; top: 28px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--cyan); color: #fff; font-weight: 900; }
.step h2 { margin: 0 0 10px; font-size: 1.55rem; }
.step p { margin: 0 0 20px; color: var(--muted); }
.notice { margin-top: 30px; padding: 22px 26px; border-radius: 12px; background: #fff4d9; color: #493806; border: 1px solid #f1d487; }

.team-empty { text-align: center; padding: 70px 28px; border: 1px dashed #9aaabd; border-radius: var(--radius); background: #fff; }
.team-empty .team-icon { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 20px; border-radius: 50%; background: var(--cyan-light); color: var(--navy); font-size: 2rem; }
.team-empty h2 { margin-bottom: 12px; }
.team-empty p { max-width: 650px; margin: 0 auto; color: var(--muted); }
.team-group + .team-group { margin-top: 56px; }
.team-group > h2 { margin: 0 0 24px; font-size: clamp(1.65rem, 3vw, 2.35rem); }
.team-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.team-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.team-media { overflow: hidden; aspect-ratio: 4 / 5; background: #e8eef4; }
.team-photo { width: 100%; height: 100%; object-fit: cover; background: #e8eef4; }
.team-copy { padding: 24px; }
.team-role { margin: 0 0 8px; color: var(--cyan-dark); font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.team-name { margin: 0 0 12px; font-size: 1.45rem; }
.team-institution { margin: 0; color: var(--muted); font-size: .95rem; }
.team-details { margin-top: 20px; border-top: 1px solid var(--line); }
.team-details summary { padding-top: 16px; color: var(--navy); cursor: pointer; font-weight: 850; }
.team-details summary:hover { color: var(--cyan-dark); }
.team-bio { margin: 14px 0 0; color: var(--muted); }

.connect-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.social-card { display: flex; align-items: center; gap: 18px; min-height: 112px; padding: 22px; color: var(--navy); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 28px rgba(9,28,55,.08); }
.social-card:hover, .social-card:focus-visible { border-color: var(--cyan); transform: translateY(-2px); outline: none; }
.social-icon { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 12px; color: #fff; background: var(--navy); font-size: 1.15rem; font-weight: 700; }
.social-icon svg { display: block; width: 28px; height: 28px; fill: currentColor; }
.social-icon.instagram { background: linear-gradient(145deg, #6a35bb, #e42b6f 62%, #f6a629); }
.social-icon.linkedin { background: #0a66c2; }
.social-icon.facebook { background: #1877f2; }
.social-icon.linktree { background: #35d187; }
.social-card .social-icon { color: #fff; }
.social-icon.eventbrite { background: #fff; border: 1px solid #e4e7ed; }
.social-icon.eventbrite img { width: 38px; height: 38px; object-fit: contain; }
.social-card strong { display: block; font-size: 1.2rem; }
.social-card span { color: var(--muted); font-size: .92rem; }
.social-card .social-icon { color: #fff; }

.theme-control { flex: none; display: inline-flex; gap: 3px; padding: 4px; background: #eef4f8; border: 1px solid #d6e1eb; border-radius: 999px; }
.theme-option { display: grid; place-items: center; width: 36px; height: 34px; padding: 0; color: #718197; background: transparent; border: 0; border-radius: 999px; cursor: pointer; }
.theme-option svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.theme-option[aria-pressed="true"] { color: var(--navy); background: #fff; box-shadow: 0 3px 10px rgba(7,28,56,.14); }
.theme-option:hover, .theme-option:focus-visible { color: var(--navy); outline: 2px solid var(--cyan); outline-offset: 1px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.branch-callout-logo { width: min(100%, 390px); height: auto; margin: 0 auto 28px; padding: 18px; object-fit: contain; background: #fff; border-radius: 8px; }
.branch-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.branch-socials a { min-height: 42px; padding: 6px 10px 6px 7px; color: var(--navy); background: #fff; border: 1px solid var(--stone); border-radius: 8px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.branch-socials a:hover, .branch-socials a:focus-visible { border-color: var(--cyan); outline: 2px solid var(--cyan); outline-offset: 1px; }
.branch-socials .social-icon { width: 28px; height: 28px; border-radius: 6px; display: inline-grid; place-items: center; background: #1877f2; color: #fff; }
.branch-socials .social-icon svg { display: block; width: 17px; height: 17px; fill: currentColor; }
.branch-socials .social-icon-x { background: #000; }
.branch-socials .social-icon-linkedin { background: #0a66c2; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 32px; align-items: start; }
.contact-form { display: grid; gap: 19px; }
.contact-form label { display: grid; gap: 7px; color: var(--navy); font-weight: 800; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.contact-form input, .contact-form textarea { width: 100%; padding: 13px 14px; color: var(--ink); background: var(--white); border: 1px solid #aebdca; border-radius: 9px; font: inherit; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--cyan); outline: 3px solid rgba(1,152,212,.16); }
.honeypot { position: absolute !important; left: -10000px; }
.form-note, .form-status { margin: 0; color: var(--muted); font-size: .9rem; }
.form-status { min-height: 1.5em; font-weight: 750; }
.contact-aside { padding: 30px; color: #fff; background: linear-gradient(145deg, var(--navy), #07375f); border-radius: var(--radius); box-shadow: var(--shadow); }
.contact-aside h2 { margin-top: 0; color: #fff; }
.contact-aside .eyebrow { margin-bottom: 12px; }
.contact-aside .form-note { color: #d8e5ef; margin-top: 28px; }
.contact-email { color: #7ee0ff; font-weight: 850; overflow-wrap: anywhere; }

.cta-band { padding: 46px 0; background: linear-gradient(110deg, var(--cyan), #006fa7); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.cta-band h2 { margin: 0 0 6px; color: #fff; }
.cta-band p { margin: 0; color: #e8f8ff; }

.site-footer { background: #07162d; color: #d5dcec; }
.footer-grid { display: grid; grid-template-columns: 1.2fr .8fr .8fr; gap: 40px; padding: 48px 0 34px; }
.footer-logo { display: none; }
.site-footer h2 { margin-top: 0; color: #fff; font-size: 1rem; text-transform: uppercase; letter-spacing: .09em; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-links a { color: #d5dcec; text-decoration-color: rgba(1,152,212,.7); text-underline-offset: 3px; }
.footer-links a:hover { color: #fff; }
.footer-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.footer-socials a { display: grid; place-items: center; width: 42px; height: 42px; color: #d5dcec; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; transition: color .2s, background-color .2s, border-color .2s; }
.footer-socials a:hover, .footer-socials a:focus-visible { color: #07162d; background: #fff; border-color: #fff; outline: 2px solid #fff; outline-offset: 3px; }
.footer-socials svg { display: block; width: 20px; height: 20px; fill: currentColor; }
.footer-bottom { padding: 18px 0 28px; border-top: 1px solid rgba(255,255,255,.12); color: #aeb9cc; font-size: .9rem; }
.footer-bottom a { color: inherit; text-underline-offset: 3px; }
.footer-bottom a:hover, .footer-bottom a:focus-visible { color: #fff; }
.legal-content { max-width: 920px; margin-inline: auto; }
.legal-content h2 { margin-top: 2rem; }
.legal-content code { padding: .12em .38em; border-radius: 4px; background: var(--cyan-light); color: var(--navy); }

.admin-body { background: #f2f6fa; }
.admin-header { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 24px rgba(9,28,55,.06); }
.admin-header-inner { display: grid; grid-template-columns: 260px 1fr auto; gap: 28px; align-items: center; min-height: 126px; }
.admin-header img { width: 250px; }
.admin-header h1 { margin: 2px 0 0; font-size: clamp(1.75rem, 3vw, 2.7rem); }
.admin-header .eyebrow { margin: 0; }
.admin-main { padding: 38px 0 80px; }
.admin-notice, .source-warning { padding: 18px 22px; border-left: 4px solid var(--cyan); background: #eaf7fc; color: #183451; border-radius: 8px; }
.source-warning { margin: 0 0 22px; border-color: #d38b00; background: #fff6dd; color: #513b06; }
.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 24px 0 30px; }
.button-quiet { color: #42566b; background: transparent; border-color: #9aaabd; }
.admin-status { color: #126742; font-weight: 800; }
.file-button { position: relative; cursor: pointer; }
.file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.admin-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.admin-tab { padding: 14px 20px; color: #536578; font: inherit; font-weight: 850; background: transparent; border: 0; border-bottom: 3px solid transparent; cursor: pointer; }
.admin-tab.active { color: var(--navy); border-bottom-color: var(--cyan); }
.admin-panel { padding-top: 34px; }
.admin-panel-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 26px; }
.admin-panel-heading h2 { margin: 4px 0 8px; font-size: 2.3rem; }
.admin-panel-heading p { margin: 0; color: var(--muted); }
.editor-list { display: grid; gap: 14px; }
.editor-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 7px 22px rgba(9,28,55,.06); }
.editor-card > summary { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 22px; cursor: pointer; list-style: none; }
.editor-card > summary::-webkit-details-marker { display: none; }
.editor-card > summary strong, .editor-card > summary small { display: block; }
.editor-card > summary small { margin-top: 5px; color: var(--muted); }
.publish-state { flex: none; padding: 6px 10px; border-radius: 999px; color: #6b3d00; background: #fff2d7; font-size: .78rem; font-weight: 850; }
.publish-state.live { color: #075c3b; background: #e3f7ed; }
.editor-card-body { padding: 24px; border-top: 1px solid var(--line); }
.editor-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.admin-field { display: grid; gap: 7px; }
.admin-field-wide { grid-column: 1 / -1; }
.admin-field > span { color: var(--navy); font-size: .85rem; font-weight: 850; }
.admin-field input, .admin-field textarea { width: 100%; padding: 12px 13px; color: var(--ink); font: inherit; border: 1px solid #aebdca; border-radius: 8px; background: #fbfdff; }
.admin-field input:focus, .admin-field textarea:focus { border-color: var(--cyan); outline: 3px solid rgba(1,152,212,.16); }
.upload-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.upload-preview { display: grid; place-items: center; width: 88px; aspect-ratio: 4 / 5; overflow: hidden; color: var(--muted); font-size: .75rem; text-align: center; background: #e8eef4; border: 1px solid var(--line); border-radius: 9px; }
.upload-preview.landscape { width: 140px; aspect-ratio: 16 / 9; }
.upload-preview img { width: 100%; height: 100%; object-fit: cover; }
.editor-card-actions { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.publish-toggle { display: flex; align-items: center; gap: 9px; color: var(--navy); font-weight: 750; }
.publish-toggle input { width: 19px; height: 19px; accent-color: var(--cyan-dark); }
.danger-link { color: #9a2130; font: inherit; font-weight: 800; background: none; border: 0; cursor: pointer; }
.admin-auth { margin: 24px 0; padding: 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-auth h2 { margin-top: 0; }
.admin-identity { margin: 7px 0 0; color: var(--muted); }
.page-image-field { grid-column: 1 / -1; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.page-image-field > strong { color: var(--navy); }
.message-card { padding: 22px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.message-card > div { display: flex; justify-content: space-between; gap: 20px; }
.message-card-header { align-items: flex-start; }
.message-card-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.delete-message { min-height: 36px; padding: 7px 13px; color: #8d153a; border-color: currentColor; }
.delete-message:hover { color: #fff; background: #8d153a; border-color: #8d153a; }
.message-card span, .message-card small { color: var(--muted); }

@media (max-width: 620px) {
  .message-card-header { flex-direction: column; }
  .message-card-actions { width: 100%; justify-content: space-between; }
}

html[data-theme="dark"] {
  --ink: #ffffff;
  --muted: #e0ded9;
  --line: #acd5f1;
  --white: #1d105f;
  --surface: #000000;
  --cyan-light: #acd5f1;
  --shadow: 0 16px 40px rgba(0, 0, 0, .3);
}
html[data-theme="dark"] body,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .panel,
html[data-theme="dark"] .event-card,
html[data-theme="dark"] .event-type,
html[data-theme="dark"] .step,
html[data-theme="dark"] .team-card,
html[data-theme="dark"] .social-card,
html[data-theme="dark"] .editor-card,
html[data-theme="dark"] .admin-header { background-color: var(--white); }
html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] .site-nav a,
html[data-theme="dark"] .text-link,
html[data-theme="dark"] .team-details summary,
html[data-theme="dark"] .admin-field > span,
html[data-theme="dark"] .publish-toggle,
html[data-theme="dark"] .contact-form label { color: #eaf3fb; }
html[data-theme="dark"] .site-header { background: rgba(29,16,95,.98); }
html[data-theme="dark"] .theme-control { background: #000; border-color: #acd5f1; }
html[data-theme="dark"] .theme-option { color: #acd5f1; }
html[data-theme="dark"] .theme-option[aria-pressed="true"] { color: #1d105f; background: #acd5f1; box-shadow: 0 3px 12px rgba(0,0,0,.35); }
html[data-theme="dark"] .theme-option:hover, html[data-theme="dark"] .theme-option:focus-visible { color: #fff; }
html[data-theme="dark"] .button-outline { color: #fff; background: #1d105f; border-color: #acd5f1; }
html[data-theme="dark"] .future-box { background: #1d105f; }
html[data-theme="dark"] .notice { color: #ffeab0; background: #403619; border-color: #776223; }
html[data-theme="dark"] .social-icon.eventbrite { background: #fff; }
html[data-theme="dark"] .callout { color: #fff; background: #1d105f; border-left-color: var(--cyan); }
html[data-theme="dark"] .branch-socials a { color: #1d105f; background: #fff; }
html[data-theme="dark"] .contact-form input,
html[data-theme="dark"] .contact-form textarea,
html[data-theme="dark"] .admin-field input,
html[data-theme="dark"] .admin-field textarea { color: #edf5fc; background: #101f31; border-color: #496078; }
html[data-theme="dark"] .event-meta dt,
html[data-theme="dark"] .event-category,
html[data-theme="dark"] .social-card { color: #eaf3fb; }
html[data-theme="dark"] .legal-content code { background: #132b44; color: #eaf3fb; }

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    --ink: #ffffff;
    --muted: #e0ded9;
    --line: #acd5f1;
    --white: #1d105f;
    --surface: #000000;
    --cyan-light: #acd5f1;
    --shadow: 0 16px 40px rgba(0, 0, 0, .3);
  }
  html[data-theme="system"] body,
  html[data-theme="system"] .site-header,
  html[data-theme="system"] .feature-card,
  html[data-theme="system"] .panel,
  html[data-theme="system"] .event-card,
  html[data-theme="system"] .event-type,
  html[data-theme="system"] .step,
  html[data-theme="system"] .team-card,
  html[data-theme="system"] .social-card { background-color: var(--white); }
  html[data-theme="system"] h1,
  html[data-theme="system"] h2,
  html[data-theme="system"] h3,
  html[data-theme="system"] .site-nav a,
  html[data-theme="system"] .text-link,
  html[data-theme="system"] .team-details summary,
  html[data-theme="system"] .contact-form label { color: #eaf3fb; }
  html[data-theme="system"] .site-header { background: rgba(29,16,95,.98); }
  html[data-theme="system"] .theme-control { background: #000; border-color: #acd5f1; }
  html[data-theme="system"] .theme-option { color: #acd5f1; }
  html[data-theme="system"] .theme-option[aria-pressed="true"] { color: #1d105f; background: #acd5f1; box-shadow: 0 3px 12px rgba(0,0,0,.35); }
  html[data-theme="system"] .theme-option:hover, html[data-theme="system"] .theme-option:focus-visible { color: #fff; }
  html[data-theme="system"] .button-outline { color: #fff; background: #1d105f; border-color: #acd5f1; }
  html[data-theme="system"] .future-box { background: #1d105f; }
  html[data-theme="system"] .callout { color: #fff; background: #1d105f; border-left-color: var(--cyan); }
  html[data-theme="system"] .branch-socials a { color: #1d105f; background: #fff; }
  html[data-theme="system"] .contact-form input,
  html[data-theme="system"] .contact-form textarea { color: #edf5fc; background: #101f31; border-color: #496078; }
  html[data-theme="system"] .event-meta dt,
  html[data-theme="system"] .event-category,
  html[data-theme="system"] .social-card { color: #eaf3fb; }
}

@media (max-width: 900px) {
  .site-header, .header-inner { min-height: 126px; }
  .brand { flex-basis: 210px; padding-block: 12px; }
  .brand img { width: 185px; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { position: absolute; left: 0; right: 0; top: 126px; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .site-nav a[aria-current="page"]::after { display: none; }
  .site-nav a[aria-current="page"] { background: var(--cyan-light); }
  html[data-theme="dark"] .site-nav, html[data-theme="system"] .site-nav { background: var(--white); }
  .theme-control { align-self: flex-start; margin: 10px 14px 2px; padding: 4px; }
  .hero { min-height: 560px; }
  .hero-content { width: min(750px, 100%); }
  .hero::after { background: linear-gradient(90deg, rgba(4,20,40,.92), rgba(4,20,40,.58)); }
  .feature-grid, .footer-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .content-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; }
  .event-card img { height: 290px; min-height: 0; }
  .event-type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-heading, .cta-inner { align-items: flex-start; flex-direction: column; }
  .admin-header-inner { grid-template-columns: 220px 1fr; padding-block: 18px; }
  .admin-header img { width: 210px; }
  .admin-header .button { grid-column: 1 / -1; width: fit-content; }
}

@media (max-width: 620px) {
  .container { width: min(calc(100% - 28px), var(--max)); }
  .brand { flex-basis: 205px; }
  .brand img { width: 180px; }
  .hero { min-height: 610px; }
  .hero-content { padding-block: 62px; }
  .hero h1 { font-size: clamp(2.35rem, 12vw, 3.35rem); }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .section { padding: 58px 0; }
  .feature-grid, .connect-grid { grid-template-columns: 1fr; }
  .event-type-grid, .contact-layout, .form-row { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .step { padding: 82px 24px 26px; }
  .step::before { left: 24px; top: 24px; }
  .page-hero { padding: 62px 0 56px; }
  .page-hero h1 { font-size: 2.75rem; }
  .admin-header-inner { grid-template-columns: 1fr; }
  .admin-header img { width: 215px; }
  .admin-toolbar .button, .file-button { width: 100%; }
  .admin-panel-heading { align-items: stretch; flex-direction: column; }
  .editor-fields { grid-template-columns: 1fr; }
  .admin-field-wide { grid-column: auto; }
  .editor-card > summary, .editor-card-actions { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
