:root {
  --navy: #1d105f;
  --navy-2: #1d105f;
  --cyan: #0294d0;
  --cyan-light: #acd5f1;
  --accent-text: #006187;
  --cyan-dark: #006187;
  --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, none) center bottom / 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%); }
.home-hero-zone { padding-bottom: 42px; 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%), var(--hero-image, none) center bottom / cover no-repeat; background-color: var(--navy-2); }
.page-home .home-hero-zone .hero { background: transparent; }
.page-home .home-hero-zone .hero::before,
.page-home .home-hero-zone .hero::after { display: none; }
.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(--accent-text); font-size: .82rem; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 42px; height: 3px; background: var(--cyan); }
.hero .eyebrow { color: #acd5f1; text-transform: none; }
.page-hero .eyebrow, .section-dark .eyebrow, .contact-aside .eyebrow { color: #acd5f1; }
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: #0076a6; 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-color: var(--surface);
  background-image: linear-gradient(rgba(224,222,217,.82), rgba(224,222,217,.82)), url("assets/heritage-wing-plan.png");
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
}
.page-home .section-soft { background-image: linear-gradient(rgba(224,222,217,.82), rgba(224,222,217,.82)), url("assets/heritage-blueprint-home-q94.jpg"); background-attachment: scroll; }
.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); }
.communities-banner { display: flex; align-items: center; gap: 20px; margin-top: 24px; padding: 22px 26px; background: #e8f6fc; border: 1px solid #83c8e4; border-left: 5px solid var(--cyan); border-radius: 14px; box-shadow: 0 5px 16px rgba(20,45,66,.1); }
.communities-banner-icon { display: grid; place-items: center; flex: none; width: 54px; height: 54px; padding: 11px; background: #d3ebf7; border-radius: 10px; }
.communities-banner-icon img { width: 100%; height: 100%; }
.communities-banner-copy { flex: 1; min-width: 0; }
.communities-banner h3 { margin: 0 0 4px; font-size: 1.4rem; }
.communities-banner p { margin: 0; color: #334e64; }
.communities-banner .button { flex: none; }
.home-highlights { position: relative; z-index: 2; margin-top: -32px; }
.home-highlights[hidden], .home-highlight-event[hidden] { display: none !important; }
.home-highlights-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; }
.home-highlights-grid.newsletter-promo-hidden { display: block; }
.home-highlights-grid.no-upcoming-event { display: block; }
.home-highlights-grid.no-upcoming-event .home-highlight-newsletter { max-width: 700px; }
.home-highlights-grid.newsletter-promo-hidden .home-highlight-event { max-width: 700px; }
.home-highlight-newsletter[hidden], .newsletter-card[hidden] { display: none !important; }
.home-highlight { display: flex; flex-direction: column; align-items: flex-start; min-height: 218px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.home-highlight-event { color: #fff; background: var(--navy); border-color: var(--navy); }
.home-highlight-newsletter { color: var(--ink); background: #fff; }
.home-highlight-kicker { margin: 0 0 8px; color: var(--cyan-light); font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.home-highlight-newsletter .home-highlight-kicker { color: #0076a6; }
.home-highlight h2 { margin: 0 0 8px; color: inherit; font-size: clamp(1.3rem, 2.3vw, 1.8rem); }
.home-highlight p:not(.home-highlight-kicker) { margin: 0 0 14px; line-height: 1.4; }
.home-highlight .button { min-height: 42px; margin-top: auto; padding: 8px 16px; }
.page-home .section-soft { padding-top: 58px; }
html[data-theme="dark"] .home-highlight-newsletter { color: #f2f6fa; background: #203650; border-color: #7896b1; }
html[data-theme="dark"] .home-highlight-newsletter .home-highlight-kicker { color: #acd5f1; }
html[data-theme="dark"] .home-highlight-newsletter .button-outline { color: #f2f6fa; background: #315f81; border-color: #7896b1; }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .home-highlight-newsletter { color: #f2f6fa; background: #203650; border-color: #7896b1; } html[data-theme="system"] .home-highlight-newsletter .home-highlight-kicker { color: #acd5f1; } html[data-theme="system"] .home-highlight-newsletter .button-outline { color: #f2f6fa; background: #315f81; border-color: #7896b1; } }
@media (max-width: 700px) { .home-hero-zone { padding-bottom: 28px; } .home-highlights { margin-top: -20px; } .home-highlights-grid { grid-template-columns: 1fr; gap: 14px; } .home-highlight { min-height: 0; padding: 21px; } .page-home .section-soft { padding-top: 45px; } }
@media (max-width: 900px) { .home-hero-zone { background-image: linear-gradient(90deg, rgba(4,20,40,.92), rgba(4,20,40,.58)), var(--hero-image, none); } }
.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(90deg, rgba(5,24,49,.88), rgba(5,24,49,.55) 58%, rgba(5,24,49,.24)), var(--hero-image, none) center bottom / cover no-repeat; background-color: var(--navy-2); }
@media (max-width: 700px) {
  .home-hero-zone, .page-hero { background-size: cover, cover; background-position: center, right bottom; }
}
.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 solid #9aaabd; border-radius: 14px; background: #f9fbfd; }
.event-entry-banner { display: flex; align-items: center; justify-content: space-between; gap: 28px; margin: 0 0 30px; padding: 24px 26px; color: var(--navy); background: #eaf7fc; border: 1px solid #8ccce9; border-left: 5px solid var(--cyan); border-radius: 12px; }
.event-entry-banner h3 { margin: 0 0 9px; font-size: 1.35rem; }
.event-entry-banner p { max-width: 900px; margin: 6px 0 0; }
.event-entry-banner .button { flex: 0 0 auto; text-align: center; }
.event-entry-banner[hidden] { display: none !important; }
.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-description { margin: 0 0 20px; }
.event-description p { margin: 0 0 12px; }
.event-description ul, .event-description ol { margin: 0 0 16px; padding-left: 24px; }
.event-description a { color: var(--cyan-dark); font-weight: 750; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.event-description blockquote, .rich-text-input blockquote { margin: 12px 0; padding: 10px 0 10px 18px; border-left: 4px solid var(--cyan); font-family: var(--font-secondary); font-style: italic; }
.rt-font-primary { font-family: var(--font-primary); }
.rt-font-secondary { font-family: var(--font-secondary); }
.rt-size-small { font-size: .875rem; }
.rt-size-normal { font-size: 1rem; }
.rt-size-large { font-size: 1.125rem; }
.rt-size-feature { font-size: 1.35rem; }
.rt-colour-navy { color: #1d105f; }
.rt-colour-cyan { color: var(--accent-text); }
.rt-colour-body { color: #333333; }
.rt-colour-black { color: #000000; }
.rt-align-left { text-align: left; }
.rt-align-centre { text-align: center; }
.rt-align-right { text-align: right; }
.rt-indent { margin-left: 2rem !important; }
.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(--accent-text); 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; }
.volunteer-card { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 30px; padding: 32px; border: 1px solid var(--line); border-left: 5px solid var(--cyan); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.volunteer-card > div { max-width: 680px; }
.volunteer-card .eyebrow { margin: 0 0 8px; }
.volunteer-card h2 { margin: 0 0 12px; }
.volunteer-card p { margin: 0 0 14px; }
.volunteer-card .volunteer-privacy { margin-bottom: 0; font-size: .93rem; color: var(--muted); }
.volunteer-card .button { flex: none; }
@media (max-width: 760px) { .volunteer-card { flex-direction: column; align-items: flex-start; padding: 24px; } }

.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-card .social-icon.linktree { color: #0c3324; }
.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, #006187, #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-workspace, .admin-panel { min-width: 0; max-width: 100%; }
.admin-tabs { display: flex; max-width: 100%; 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); }
.rich-text-field { gap: 0; }
.rich-text-field > span { margin-bottom: 7px; }
.rich-text-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 7px; background: #fff; border: 1px solid #aebdca; border-bottom: 0; border-radius: 9px 9px 0 0; box-shadow: 0 5px 14px rgba(29,16,95,.07); }
.rich-text-select { min-height: 34px; padding: 5px 28px 5px 9px; color: var(--navy); font: inherit; font-size: .83rem; font-weight: 750; background: #fff; border: 1px solid #aebdca; border-radius: 6px; }
.rich-text-colour-control { display: inline-flex; align-items: center; min-width: 36px; min-height: 34px; padding: 3px; color: var(--navy); background: transparent; border: 1px solid transparent; border-radius: 6px; }
.rich-text-colour { width: 28px; height: 26px; padding: 0; border: 0; border-radius: 5px; background: transparent; cursor: pointer; }
.rich-text-button { min-width: 34px; min-height: 34px; padding: 5px 7px; color: var(--navy); font: inherit; font-size: .92rem; font-weight: 750; background: transparent; border: 1px solid transparent; border-radius: 6px; cursor: pointer; }
.rich-text-icon-button svg { display: block; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rich-text-button[aria-pressed="true"] { color: #fff; background: var(--navy); border-color: var(--navy); }
.rich-text-button:hover, .rich-text-button:focus-visible { color: #fff; background: var(--navy); border-color: var(--navy); outline: 2px solid var(--cyan); outline-offset: 1px; }
.rich-text-input { min-height: 150px; padding: 13px; overflow-wrap: anywhere; color: var(--ink); background: #fbfdff; border: 1px solid #aebdca; border-radius: 0 0 8px 8px; }
.rich-text-input:focus { border-color: var(--cyan); outline: 3px solid rgba(1,152,212,.16); }
.rich-text-input:empty::before { color: #6c7d8d; content: attr(data-placeholder); pointer-events: none; }
.rich-text-source { width: 100%; min-height: 170px; padding: 13px; resize: vertical; color: var(--ink); background: #fbfdff; border: 1px solid #aebdca; border-radius: 0 0 8px 8px; font: .9rem/1.55 Consolas, "Courier New", monospace; }
.rich-text-input[hidden], .rich-text-source[hidden] { display: none !important; }
.rich-text-input p { margin: 0 0 10px; }
.rich-text-input ul, .rich-text-input ol { margin: 6px 0 12px; padding-left: 24px; }
.rich-text-field > small { margin-top: 7px; color: var(--muted); }
.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); }
.page-image-help { display: block; margin-top: 10px; color: var(--muted); }
.page-image-status { min-height: 1.4em; margin: 8px 0 0; color: #126742; font-weight: 700; overflow-wrap: anywhere; }
.page-image-status.error { color: #a03228; }
.file-button:has(input:disabled), .admin-toolbar button:disabled { opacity: .6; cursor: wait; }
.message-card { min-width: 0; max-width: 100%; padding: 22px; overflow: hidden; overflow-wrap: anywhere; word-break: break-word; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.message-card > div { display: flex; min-width: 0; justify-content: space-between; gap: 20px; }
.message-card p, .message-card a, .message-card strong { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.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) {
  .admin-tabs { flex-wrap: wrap; }
  .admin-tab { flex: 1 1 calc(50% - 4px); padding: 12px 10px; text-align: center; }
  .message-card-header { flex-direction: column; }
  .message-card-actions { width: 100%; justify-content: space-between; }
}

html[data-theme="dark"] {
  --ink: #d9e3ed;
  --muted: #b9c8d7;
  --line: #435873;
  --white: #1b2840;
  --surface: #24344c;
  --cyan-light: #9ab9d3;
  --accent-text: #a9c9df;
  --cyan-dark: #a9c9df;
  --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: #180D4F; }
html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a:focus-visible { color: #180D4F; background: #acd5f1; }
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"] .event-entry-banner { color: #fff; background: #28196f; border-color: #acd5f1; border-left-color: var(--cyan); }
html[data-theme="dark"] .notice { color: #ffeab0; background: #403619; border-color: #776223; }
html[data-theme="dark"] .volunteer-card { background: #1d105f; border-color: #acd5f1; border-left-color: var(--cyan); }
html[data-theme="dark"] .volunteer-card .volunteer-privacy { color: #d9e7f5; }
html[data-theme="dark"] .volunteer-card a:not(.button) { color: #acd5f1; }
html[data-theme="dark"] .volunteer-card .button-navy { color: #180D4F; background: #fff; border-color: #fff; }
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-callout { background: #28196f; border: 1px solid #acd5f1; border-left: 5px solid var(--cyan); box-shadow: 0 18px 42px rgba(0,0,0,.38); }
html[data-theme="dark"] .step:first-child .button-navy { color: #180D4F; background: #fff; border-color: #fff; }
html[data-theme="dark"] .step:first-child .button-navy:hover,
html[data-theme="dark"] .step:first-child .button-navy:focus-visible { background: #acd5f1; border-color: #acd5f1; }
html[data-theme="dark"] .section-soft { background-color: #000; background-image: linear-gradient(rgba(0,0,0,.78), rgba(0,0,0,.78)), url("assets/heritage-wing-plan.png"); }
html[data-theme="dark"] .page-home .section-soft { background-image: linear-gradient(rgba(0,0,0,.78), rgba(0,0,0,.78)), url("assets/heritage-blueprint-home-q94.jpg"); }
html[data-theme="dark"] .communities-banner { background: #203650; border-color: #7896b1; border-left-color: var(--cyan); }
html[data-theme="dark"] .communities-banner p { color: #e4eef8; }
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"] .rich-text-toolbar { background: #172b42; border-color: #496078; }
html[data-theme="dark"] .rich-text-button { color: #fff; background: #1d105f; border-color: #6f86a0; }
html[data-theme="dark"] .rich-text-select, html[data-theme="dark"] .rich-text-colour-control { color: #fff; background: #1d105f; border-color: #6f86a0; }
html[data-theme="dark"] .rich-text-input { color: #edf5fc; background: #101f31; border-color: #496078; }
html[data-theme="dark"] .rich-text-source { color: #edf5fc; background: #101f31; border-color: #496078; }
html[data-theme="dark"] .event-description a { color: #8fdcff; }
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: #d9e3ed;
    --muted: #b9c8d7;
    --line: #435873;
    --white: #1b2840;
    --surface: #24344c;
    --cyan-light: #9ab9d3;
    --accent-text: #a9c9df;
    --cyan-dark: #a9c9df;
    --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: #180D4F; }
  html[data-theme="system"] .site-nav a:hover,
  html[data-theme="system"] .site-nav a:focus-visible { color: #180D4F; background: #acd5f1; }
  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"] .event-entry-banner { color: #fff; background: #28196f; border-color: #acd5f1; border-left-color: var(--cyan); }
  html[data-theme="system"] .callout { color: #fff; background: #1d105f; border-left-color: var(--cyan); }
  html[data-theme="system"] .branch-callout { background: #28196f; border: 1px solid #acd5f1; border-left: 5px solid var(--cyan); box-shadow: 0 18px 42px rgba(0,0,0,.38); }
  html[data-theme="system"] .step:first-child .button-navy { color: #180D4F; background: #fff; border-color: #fff; }
  html[data-theme="system"] .step:first-child .button-navy:hover,
  html[data-theme="system"] .step:first-child .button-navy:focus-visible { background: #acd5f1; border-color: #acd5f1; }
  html[data-theme="system"] .section-soft { background-color: #000; background-image: linear-gradient(rgba(0,0,0,.78), rgba(0,0,0,.78)), url("assets/heritage-wing-plan.png"); }
  html[data-theme="system"] .page-home .section-soft { background-image: linear-gradient(rgba(0,0,0,.78), rgba(0,0,0,.78)), url("assets/heritage-blueprint-home-q94.jpg"); }
  html[data-theme="system"] .communities-banner { background: #203650; border-color: #7896b1; border-left-color: var(--cyan); }
  html[data-theme="system"] .communities-banner p { color: #e4eef8; }
  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: 1100px) {
  .section-soft { background-attachment: scroll; }
  .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 { background: #180D4F; }
  html[data-theme="dark"] .site-nav a[aria-current="page"] { color: #180D4F; background: #acd5f1; }
  @media (prefers-color-scheme: dark) {
    html[data-theme="system"] .site-nav { background: #180D4F; }
    html[data-theme="system"] .site-nav a[aria-current="page"] { color: #180D4F; background: #acd5f1; }
  }
  .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; }
  .event-entry-banner { 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; }
  .communities-banner { align-items: flex-start; flex-direction: column; gap: 14px; padding: 20px; }
  .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; }
  .section-soft { background-attachment: scroll; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

.event-sold-out { color: #7a251e; background: #ffe5e0; border-color: #c7786b; cursor: default; }
.event-sold-out:hover { transform: none; box-shadow: none; }
.past-event { opacity: .9; }
.past-events-section { padding-top: 70px; }
.gallery-page { padding: 0 0 88px; background: var(--white); }
.gallery-page .panel-breadcrumb { padding-bottom: 36px; }
.gallery-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.gallery-heading .eyebrow { color: #006b96; }
.gallery-heading h1 { margin: 0 0 14px; font-family: var(--font-secondary); font-size: clamp(2.5rem, 5vw, 4.2rem); }
.gallery-heading p:last-child { max-width: 660px; margin: 0; font-size: 1.1rem; }
.gallery-heading .button { flex: 0 0 auto; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.gallery-photo { min-width: 0; padding: 0; overflow: hidden; text-align: left; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); cursor: pointer; }
.gallery-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease; }
.gallery-photo:hover img { transform: scale(1.025); }
.gallery-photo:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.gallery-photo span { display: block; padding: 14px 18px; font-weight: 700; }
.gallery-cover { grid-column: 1 / -1; }
.gallery-cover img { aspect-ratio: 2.7 / 1; }
.panel-event-gallery .gallery-photo img { height: auto; }
.panel-event-gallery .gallery-cover img { object-position: center 30%; }
.panel-event-gallery .gallery-photo.gallery-portrait img { aspect-ratio: 3 / 4; }
.page-panel .panel-event-gallery .gallery-photo span, .page-panel .gallery-lightbox figcaption { display: none; }
.gallery-lightbox { position: fixed; width: min(96vw, 1200px); max-height: 96vh; padding: 16px; color: #fff; background: #100b32; border: 1px solid #574c91; border-radius: 14px; }
.gallery-lightbox::backdrop { background: rgba(4, 3, 22, .85); }
.gallery-lightbox-bar, .gallery-lightbox-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gallery-lightbox button { min-height: 42px; padding: 8px 14px; color: #fff; background: #342873; border: 1px solid #998dc5; border-radius: 8px; font: inherit; cursor: pointer; }
.gallery-lightbox button:hover, .gallery-lightbox button:focus-visible { background: #55459d; }
.gallery-lightbox figure { margin: 10px 0; }
.gallery-lightbox figure img { width: 100%; max-height: calc(96vh - 156px); object-fit: contain; }
.gallery-lightbox figcaption { padding: 8px 0 2px; text-align: center; }
@media (max-width: 720px) { .gallery-heading { align-items: start; flex-direction: column; } .gallery-grid { grid-template-columns: 1fr; gap: 18px; } .gallery-cover img { aspect-ratio: 2 / 1; } }
.panel-event-card .event-image { object-fit: contain; background: #180D4F; }
/* Mobile and portrait tablet posters retain their natural proportions. */
@media (max-width: 760px), (min-width: 761px) and (max-width: 1100px) and (orientation: portrait) {
  .event-card .event-image { width: 100%; height: auto; min-height: 0; object-fit: contain; }
}
.panel-detail { padding: 0 0 82px; background: var(--white); }
.panel-breadcrumb { padding: 20px 0 54px; color: var(--muted); font-size: .92rem; }
.panel-breadcrumb a { text-underline-offset: 3px; }
.panel-breadcrumb span { padding: 0 10px; }
.panel-detail h1 { max-width: 1050px; margin: 0 0 26px; font-family: var(--font-secondary); font-size: clamp(2.4rem, 5vw, 4rem); }
.panel-key-details { margin-bottom: 22px; font-size: 1.1rem; }
.panel-key-details p { margin: 4px 0; }
.panel-actions { margin: 30px 0 42px; }
.page-panel .panel-actions { margin-bottom: 14px; }
.panel-live-update { margin: 0 0 24px; color: #30250e; background: #fff8e6; border: 1px solid #b68b22; border-left: 5px solid #d59d09; border-radius: 10px; }
.panel-live-update summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; min-height: 58px; padding: 12px 16px; cursor: pointer; list-style: none; }
.panel-live-update summary::-webkit-details-marker { display: none; }
.panel-live-update summary:focus-visible { outline: 3px solid #006b96; outline-offset: 3px; }
.panel-live-update-label { flex: none; padding: 3px 8px; color: #584000; background: #ffe5a3; border-radius: 5px; font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.panel-live-update-summary { flex: 1 1 370px; line-height: 1.4; }
.panel-live-update-time { display: block; margin-top: 4px; font-size: .82rem; opacity: .85; }
.panel-live-update-toggle { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: #77510c; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.panel-live-update-toggle::before { content: '▸'; font-size: 1rem; }
.panel-live-update-less { display: none; }
.panel-live-update[open] .panel-live-update-toggle::before { content: '▾'; }
.panel-live-update[open] .panel-live-update-more { display: none; }
.panel-live-update[open] .panel-live-update-less { display: inline; }
.panel-live-update-body { padding: 14px 16px 16px; border-top: 1px solid #e7d3a0; line-height: 1.6; }
.panel-live-update-body p { margin: 0 0 12px; }
.panel-live-update-body p:last-child { margin-bottom: 0; }
.panel-live-update-body a { color: #005c81; font-weight: 700; text-underline-offset: 3px; }
.panel-live-update-body a:hover { color: #003f59; }
.panel-live-update-history { margin-top: 18px; padding-top: 16px; border-top: 1px solid #e7d3a0; }
.panel-live-update-history h3 { margin: 0 0 12px; color: inherit; font-size: 1.05rem; }
.panel-live-update-past { position: relative; margin-left: 5px; padding-left: 18px; border-left: 2px solid #bc9a4d; }
.panel-live-update-past::before { content: ''; position: absolute; left: -6px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #b48a24; }
.panel-live-update-past time { display: block; margin-bottom: 4px; font-size: .82rem; opacity: .85; }
.panel-live-update-past strong { display: block; margin-bottom: 6px; }
.panel-live-update-past p { margin: 0; }
#panel-booking { background: #8d153a; border-color: #8d153a; color: #fff; }
#panel-booking:hover, #panel-booking:focus-visible { background: #6e102d; border-color: #6e102d; color: #fff; }
#lecture-booking { background: #8d153a; border-color: #8d153a; color: #fff; }
#lecture-booking:hover, #lecture-booking:focus-visible { background: #6e102d; border-color: #6e102d; color: #fff; }
.event-schedule-pending { color: var(--muted); border-color: var(--line); background: var(--surface); cursor: default; }
.panel-actions [hidden] { display: none !important; }
.event-schedule-pending:hover { transform: none; box-shadow: none; }
.panel-poster { margin: 0; }
.panel-poster img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; border-radius: 12px; background: var(--navy); }
.panel-poster figcaption { padding-top: 10px; color: var(--muted); font-size: .9rem; }
.lecture-poster img { object-fit: cover; object-position: center 42%; }
.lecture-poster img.has-poster { display: block; height: auto; aspect-ratio: auto; object-fit: contain; object-position: center; background: transparent; }
.lecture-supporters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding: 42px 0; border-bottom: 1px solid var(--line); }
.lecture-supporter { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-height: 226px; padding: 24px; border: 1px solid var(--line); border-radius: 14px; }
.lecture-supporter h2 { margin: 0 0 16px; font-size: 1.08rem; line-height: 1.3; }
.lecture-supporter img { display: block; width: auto; max-width: 100%; max-height: 164px; object-fit: contain; object-position: left center; }
.lecture-supporter-sponsor { color: #fff; background: #17104d; border-color: #17104d; }
.lecture-supporter-sponsor h2 { color: #fff; }
.lecture-supporter-collaborator { color: var(--navy); background: var(--surface); }
@media (max-width: 720px) { .lecture-supporters { grid-template-columns: 1fr; } .lecture-supporter { min-height: 0; } }
.lecture-takeaways { max-width: 880px; padding-left: 44px; font-size: 1.08rem; line-height: 1.7; list-style-type: decimal-leading-zero; }
.lecture-takeaways li::marker { color: #006b96; font-weight: 800; }
.lecture-takeaways strong { color: #006b96; }
.lecture-takeaways li { margin-bottom: 9px; }
.panel-section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.panel-section:last-child { border-bottom: 0; }
.panel-section h2 { margin: 0 0 22px; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.panel-section > p { max-width: 880px; font-size: 1.08rem; line-height: 1.75; }
.panel-event-gallery { scroll-margin-top: 120px; }
.panel-event-gallery .gallery-heading { margin-bottom: 22px; }
.gallery-pending { display: grid; place-items: center; min-height: 160px; padding: 24px; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; font-weight: 700; text-align: center; }
.panel-lead { font-size: 1.35rem !important; font-weight: 700; color: var(--navy); }
.calendar-banner { display: grid; grid-template-columns: 142px minmax(0, 1fr); align-items: center; gap: 22px; margin: 0 0 8px; padding: 16px 20px 16px 16px; border-left: 5px solid #0796cf; border-radius: 14px; background: #e8f4fb; }
.calendar-banner-cover { display: block; width: 142px; height: 197px; object-fit: cover; border-radius: 6px; box-shadow: 0 5px 18px #0003; }
.calendar-banner-content h2 { margin: 0 0 8px; font-size: 1.4rem; }
.calendar-banner-content p { margin: 0 0 8px; line-height: 1.5; }
.calendar-banner-eyebrow { color: #006b96; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.calendar-banner-price { font-weight: 700; }
.calendar-banner-note { color: #46556b; font-size: .92rem; }
.calendar-banner .button { margin-top: 5px; }
html[data-theme="dark"] .calendar-banner { background: #122d48; color: #e8e9f5; }
html[data-theme="dark"] .calendar-banner h2 { color: #f4f4ff; }
html[data-theme="dark"] .calendar-banner-eyebrow { color: #8bd5f5; }
html[data-theme="dark"] .calendar-banner-note { color: #cad9ea; }
.panel-moderator { margin-bottom: 25px; }
.panel-speaker-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.panel-speaker { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.panel-speaker-head { display: flex; align-items: center; gap: 18px; }
.panel-speaker-head img { width: 150px; height: 150px; flex: none; object-fit: cover; border-radius: 10px; }
.panel-speaker-head h3 { margin: 0 0 6px; font-size: 1.3rem; }
.panel-speaker-head p { margin: 0; font-size: .94rem; line-height: 1.45; }
.panel-speaker-bio { margin: 14px 0 0; line-height: 1.7; }
.panel-venue-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 34px; margin-top: 30px; }
.panel-map { display: grid; place-items: center; min-height: 340px; margin-bottom: 12px; text-align: center; background: #e6eef2; border: 1px solid var(--line); border-radius: 12px; }
.panel-map > div { padding: 20px; }
.panel-map small { display: block; margin-top: 12px; }
.panel-map.loaded { display: block; }
.panel-map iframe { display: block; width: 100%; height: 340px; border: 0; border-radius: 12px; }
.panel-travel h3 { margin: 0 0 4px; font-size: 1.25rem; }
.panel-travel p { margin: 0 0 18px; }
.lecture-travel { display: contents; }
.panel-parking-row { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 34px; align-items: stretch; }
.panel-entrance-photo { min-width: 0; margin: 0; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.panel-entrance-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; }
.panel-entrance-photo figcaption { margin-top: 10px; color: var(--muted); font-size: .9rem; line-height: 1.4; }
.lecture-travel-section { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.lecture-travel-section h3 { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; color: var(--navy); }
.lecture-travel-section p:last-child { margin-bottom: 0; }
.travel-section-icon { display: inline-grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 9px; background: #ddf3fc; color: #006b96; font-size: 1.15rem; font-weight: 800; }
.travel-section-icon img { display: block; width: 23px; height: 23px; object-fit: contain; }
.travel-links { font-size: .95rem; }
.lecture-transport-options { display: grid; gap: 12px; }
.lecture-transport-option { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--background, #fff); }
.lecture-transport-option p { margin-bottom: 10px; }
.transport-option-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.transport-option-heading h4 { margin: 0; color: var(--navy); font-size: 1.06rem; }
.transport-logo { display: block; max-width: 112px; max-height: 30px; object-fit: contain; object-position: right center; }
.transport-logo-subway { width: 30px; height: 30px; }
.transport-logo-scotrail { width: 112px; height: auto; }
.transport-bus-operators { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.transport-operator { display: inline-block; padding: 4px 9px; border-radius: 6px; font-size: .79rem; font-weight: 800; line-height: 1.2; letter-spacing: .01em; }
.transport-operator-firstbus { color: #fff; background: #5d267f; }
.transport-operator-busstation { color: #fff; background: #164e73; }
.transport-operator-westcoast { color: #fff; background: #066a83; }
.lecture-image-credits { margin-top: 18px; color: var(--muted); font-size: .82rem; }
.lecture-image-credits summary { cursor: pointer; }
.lecture-image-credits p { max-width: 75ch; margin: 8px 0 0; }
@media (min-width: 801px) {
  .lecture-travel-section:nth-child(n+2) { grid-column: 1 / -1; }
  .lecture-transport-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
html[data-theme="dark"] .panel-detail { background: #000; }
html[data-theme="dark"] .panel-speaker { background: #1d105f; color: #fff; }
html[data-theme="dark"] .panel-speaker h3 { color: #fff; }
html[data-theme="dark"] .panel-lead { color: #acd5f1; }
html[data-theme="dark"] .lecture-transport-option { color: #1d105f; background: #f2f8fc; border-color: #91b9d0; }
html[data-theme="dark"] .lecture-transport-option .text-link { color: #164b72; }
html[data-theme="dark"] .lecture-transport-option .text-link:hover { color: #006b96; }
html[data-theme="dark"] .panel-map { color: #1d105f; }
html[data-theme="dark"] .lecture-supporter-collaborator { color: #fff; background: #1d105f; }
html[data-theme="dark"] .event-category { color: #1d105f; }
html[data-theme="dark"] .event-card .button-navy { color: #1d105f; background: #acd5f1; border-color: #acd5f1; }
html[data-theme="dark"] .event-card .button-navy:hover,
html[data-theme="dark"] .event-card .button-navy:focus-visible { color: #1d105f; background: #fff; border-color: #fff; }
html[data-theme="dark"] .team-empty { background: #1d105f; border-color: #acd5f1; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .calendar-banner { background: #122d48; color: #e8e9f5; }
  html[data-theme="system"] .calendar-banner h2 { color: #f4f4ff; }
  html[data-theme="system"] .calendar-banner-eyebrow { color: #8bd5f5; }
  html[data-theme="system"] .calendar-banner-note { color: #cad9ea; }
  html[data-theme="system"] .panel-detail { background: #000; }
  html[data-theme="system"] .panel-speaker { background: #1d105f; color: #fff; }
  html[data-theme="system"] .panel-speaker h3 { color: #fff; }
  html[data-theme="system"] .panel-lead { color: #acd5f1; }
  html[data-theme="system"] .lecture-transport-option { color: #1d105f; background: #f2f8fc; border-color: #91b9d0; }
  html[data-theme="system"] .lecture-transport-option .text-link { color: #164b72; }
  html[data-theme="system"] .lecture-transport-option .text-link:hover { color: #006b96; }
  html[data-theme="system"] .panel-map { color: #1d105f; }
  html[data-theme="system"] .lecture-supporter-collaborator { color: #fff; background: #1d105f; }
  html[data-theme="system"] .event-category { color: #1d105f; }
  html[data-theme="system"] .event-card .button-navy { color: #1d105f; background: #acd5f1; border-color: #acd5f1; }
  html[data-theme="system"] .event-card .button-navy:hover,
  html[data-theme="system"] .event-card .button-navy:focus-visible { color: #1d105f; background: #fff; border-color: #fff; }
  html[data-theme="system"] .team-empty { background: #1d105f; border-color: #acd5f1; }
}
@media (max-width: 800px) { .panel-speaker-grid, .panel-venue-grid, .panel-parking-row { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .panel-speaker-head { align-items: flex-start; gap: 14px; } .panel-speaker-head img { width: 96px; height: 96px; } .panel-speaker-head > div { min-width: 0; } .panel-breadcrumb { padding-bottom: 30px; } }
@media (max-width: 570px) { .calendar-banner { grid-template-columns: 88px minmax(0, 1fr); gap: 13px; padding: 12px; } .calendar-banner-cover { width: 88px; height: 123px; } .calendar-banner-content h2 { font-size: 1.12rem; } .calendar-banner-content p { font-size: .85rem; } }
@media (max-width: 385px) { .calendar-banner { grid-template-columns: 1fr; } .calendar-banner-cover { width: 100px; height: 139px; } }
.panel-admin-details { margin: 26px 0; padding: 24px; border: 1px solid var(--line); border-radius: 12px; }
.panel-admin-details h4 { margin: 0 0 8px; font-size: 1.25rem; }
.panel-admin-details > p { margin: 0 0 22px; color: var(--muted); }
.panel-admin-details h5 { margin: 24px 0 12px; font-size: 1.05rem; }
.lecture-admin-links { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.lecture-admin-links summary { cursor: pointer; font-weight: 700; }
.lecture-admin-links .editor-fields { margin-top: 16px; }
.panel-admin-details .panel-admin-speaker { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.panel-admin-speaker h5 { margin: 0 0 14px; font-size: 1.05rem; }

/* A layered, low-glare dark palette with distinct, readable actions. */
html[data-theme="dark"] body { background: #172235; }
html[data-theme="dark"] .skip-link { color: #172235; background: #d9e3ed; }
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-nav { background: #180D4F; }
html[data-theme="dark"] .section-dark,
html[data-theme="dark"] .panel-detail { background: #172235; }
html[data-theme="dark"] .panel-live-update { color: #e8edf2; background: #302e28; border-color: #8d7338; }
html[data-theme="dark"] .panel-live-update-label { color: #2a220e; background: #e8ce91; }
html[data-theme="dark"] .panel-live-update-toggle { color: #e8ce91; }
html[data-theme="dark"] .panel-live-update-body { border-color: #665a3f; }
html[data-theme="dark"] .panel-live-update-history { border-color: #665a3f; }
html[data-theme="dark"] .panel-live-update-body a { color: #abd9ee; }
html[data-theme="dark"] .panel-live-update-body a:hover { color: #d3edfa; }
html[data-theme="dark"] .section-soft { background-color: #172235; background-image: linear-gradient(rgba(23,34,53,.88), rgba(23,34,53,.88)), url("assets/heritage-wing-plan.png"); }
html[data-theme="dark"] .page-home .section-soft { background-image: linear-gradient(rgba(23,34,53,.88), rgba(23,34,53,.88)), url("assets/heritage-blueprint-home-q94.jpg"); }
html[data-theme="dark"] .panel-speaker,
html[data-theme="dark"] .future-box,
html[data-theme="dark"] .callout,
html[data-theme="dark"] .volunteer-card,
html[data-theme="dark"] .branch-callout,
html[data-theme="dark"] .event-entry-banner,
html[data-theme="dark"] .team-empty,
html[data-theme="dark"] .lecture-supporter-collaborator { color: #d9e3ed; background: #24344c; border-color: #435873; }
html[data-theme="dark"] .panel-speaker h3,
html[data-theme="dark"] .lecture-supporter-collaborator h2 { color: #d9e3ed; }
html[data-theme="dark"] .calendar-banner { color: #d9e3ed; background: #24344c; }
html[data-theme="dark"] .calendar-banner h2 { color: #d9e3ed; }
html[data-theme="dark"] .calendar-banner-eyebrow,
html[data-theme="dark"] .panel-lead,
html[data-theme="dark"] .gallery-heading .eyebrow,
html[data-theme="dark"] .lecture-takeaways strong,
html[data-theme="dark"] .lecture-takeaways li::marker,
html[data-theme="dark"] .text-link { color: #a9c9df; }
html[data-theme="dark"] .calendar-banner-note { color: #b9c8d7; }
html[data-theme="dark"] .theme-control { background: #26364f; border-color: #435873; }
html[data-theme="dark"] .theme-option { color: #b9c8d7; }
html[data-theme="dark"] .theme-option[aria-pressed="true"],
html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a:focus-visible,
html[data-theme="dark"] .site-nav a[aria-current="page"] { color: #172235; background: #9ab9d3; }
html[data-theme="dark"] .button-navy,
html[data-theme="dark"] .event-card .button-navy,
html[data-theme="dark"] .volunteer-card .button-navy,
html[data-theme="dark"] .step:first-child .button-navy { color: #f2f6fa; background: #315f81; border-color: #7896b1; }
html[data-theme="dark"] .button-navy:hover,
html[data-theme="dark"] .button-navy:focus-visible,
html[data-theme="dark"] .event-card .button-navy:hover,
html[data-theme="dark"] .event-card .button-navy:focus-visible,
html[data-theme="dark"] .step:first-child .button-navy:hover,
html[data-theme="dark"] .step:first-child .button-navy:focus-visible { color: #f2f6fa; background: #427497; border-color: #9ab9d3; }
html[data-theme="dark"] .button-primary { color: #f2f6fa; background: #246f91; border-color: #7896b1; }
html[data-theme="dark"] .button-outline { color: #d9e3ed; background: #24344c; border-color: #829fba; }
html[data-theme="dark"] .button-outline:hover,
html[data-theme="dark"] .button-outline:focus-visible { background: #304661; }
html[data-theme="dark"] .event-category { color: #172235; background: #9ab9d3; }
html[data-theme="dark"] .lecture-travel-section { background: #24344c; }
html[data-theme="dark"] .lecture-travel-section h3,
html[data-theme="dark"] .transport-option-heading h4 { color: #d9e3ed; }
html[data-theme="dark"] .lecture-transport-option { color: #d9e3ed; background: #1b2840; border-color: #435873; }
html[data-theme="dark"] .lecture-transport-option .text-link { color: #a9c9df; }
html[data-theme="dark"] .lecture-transport-option .text-link:hover { color: #d9e3ed; }
html[data-theme="dark"] .panel-map { color: #d9e3ed; background: #24344c; }
html[data-theme="dark"] .transport-logo-scotrail { background: #f5f8fb; border-radius: 5px; padding: 3px; }
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: #d9e3ed; background: #172235; border-color: #435873; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .panel-live-update { color: #e8edf2; background: #302e28; border-color: #8d7338; }
  html[data-theme="system"] .panel-live-update-label { color: #2a220e; background: #e8ce91; }
  html[data-theme="system"] .panel-live-update-toggle { color: #e8ce91; }
  html[data-theme="system"] .panel-live-update-body { border-color: #665a3f; }
  html[data-theme="system"] .panel-live-update-history { border-color: #665a3f; }
  html[data-theme="system"] .panel-live-update-body a { color: #abd9ee; }
  html[data-theme="system"] .panel-live-update-body a:hover { color: #d3edfa; }
  html[data-theme="system"] body { background: #172235; }
  html[data-theme="system"] .skip-link { color: #172235; background: #d9e3ed; }
  html[data-theme="system"] .site-header, html[data-theme="system"] .site-nav { background: #180D4F; }
  html[data-theme="system"] .section-dark, html[data-theme="system"] .panel-detail { background: #172235; }
  html[data-theme="system"] .section-soft { background-color: #172235; background-image: linear-gradient(rgba(23,34,53,.88), rgba(23,34,53,.88)), url("assets/heritage-wing-plan.png"); }
  html[data-theme="system"] .page-home .section-soft { background-image: linear-gradient(rgba(23,34,53,.88), rgba(23,34,53,.88)), url("assets/heritage-blueprint-home-q94.jpg"); }
  html[data-theme="system"] .panel-speaker, html[data-theme="system"] .future-box, html[data-theme="system"] .callout, html[data-theme="system"] .volunteer-card, html[data-theme="system"] .branch-callout, html[data-theme="system"] .event-entry-banner, html[data-theme="system"] .team-empty, html[data-theme="system"] .lecture-supporter-collaborator { color: #d9e3ed; background: #24344c; border-color: #435873; }
  html[data-theme="system"] .panel-speaker h3, html[data-theme="system"] .lecture-supporter-collaborator h2 { color: #d9e3ed; }
  html[data-theme="system"] .calendar-banner { color: #d9e3ed; background: #24344c; }
  html[data-theme="system"] .calendar-banner h2 { color: #d9e3ed; }
  html[data-theme="system"] .calendar-banner-eyebrow, html[data-theme="system"] .panel-lead, html[data-theme="system"] .gallery-heading .eyebrow, html[data-theme="system"] .lecture-takeaways strong, html[data-theme="system"] .lecture-takeaways li::marker, html[data-theme="system"] .text-link { color: #a9c9df; }
  html[data-theme="system"] .calendar-banner-note { color: #b9c8d7; }
  html[data-theme="system"] .theme-control { background: #26364f; border-color: #435873; }
  html[data-theme="system"] .theme-option { color: #b9c8d7; }
  html[data-theme="system"] .theme-option[aria-pressed="true"], html[data-theme="system"] .site-nav a:hover, html[data-theme="system"] .site-nav a:focus-visible, html[data-theme="system"] .site-nav a[aria-current="page"] { color: #172235; background: #9ab9d3; }
  html[data-theme="system"] .button-navy, html[data-theme="system"] .event-card .button-navy, html[data-theme="system"] .volunteer-card .button-navy, html[data-theme="system"] .step:first-child .button-navy { color: #f2f6fa; background: #315f81; border-color: #7896b1; }
  html[data-theme="system"] .button-navy:hover, html[data-theme="system"] .button-navy:focus-visible, html[data-theme="system"] .event-card .button-navy:hover, html[data-theme="system"] .event-card .button-navy:focus-visible, html[data-theme="system"] .step:first-child .button-navy:hover, html[data-theme="system"] .step:first-child .button-navy:focus-visible { color: #f2f6fa; background: #427497; border-color: #9ab9d3; }
  html[data-theme="system"] .button-primary { color: #f2f6fa; background: #246f91; border-color: #7896b1; }
  html[data-theme="system"] .button-outline { color: #d9e3ed; background: #24344c; border-color: #829fba; }
  html[data-theme="system"] .button-outline:hover, html[data-theme="system"] .button-outline:focus-visible { background: #304661; }
  html[data-theme="system"] .event-category { color: #172235; background: #9ab9d3; }
  html[data-theme="system"] .lecture-travel-section { background: #24344c; }
  html[data-theme="system"] .lecture-travel-section h3, html[data-theme="system"] .transport-option-heading h4 { color: #d9e3ed; }
  html[data-theme="system"] .lecture-transport-option { color: #d9e3ed; background: #1b2840; border-color: #435873; }
  html[data-theme="system"] .lecture-transport-option .text-link { color: #a9c9df; }
  html[data-theme="system"] .lecture-transport-option .text-link:hover { color: #d9e3ed; }
  html[data-theme="system"] .panel-map { color: #d9e3ed; background: #24344c; }
  html[data-theme="system"] .transport-logo-scotrail { background: #f5f8fb; border-radius: 5px; padding: 3px; }
  html[data-theme="system"] .contact-form input, html[data-theme="system"] .contact-form textarea { color: #d9e3ed; background: #172235; border-color: #435873; }
}

.event-notices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 30px; }
.event-notices .event-entry-banner,
.event-feedback-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin: 0; padding: 22px 24px; }
.event-notices .event-entry-banner .button { margin-top: auto; }
.event-entry-policy { width: 100%; border-top: 1px solid currentColor; }
.event-entry-policy summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 700; }
.event-entry-policy summary span { margin-inline-start: .4em; text-decoration: underline; }
.event-entry-policy .policy-less,
.event-entry-policy[open] .policy-more { display: none; }
.event-entry-policy[open] .policy-less { display: inline; }
.event-feedback-card { color: var(--navy); background: #efecfa; border: 1px solid #cec4e8; border-left: 5px solid #68529e; border-radius: 12px; }
.event-feedback-card h3, .event-feedback-card p { margin: 0; }
.event-feedback-card h3 { font-size: 1.35rem; }
.event-feedback-card .event-feedback-note { font-size: .875rem; }
.event-notices > :only-child,
.event-notices > [hidden] + .event-feedback-card { grid-column: 1 / -1; }
html[data-theme="dark"] .event-feedback-card { color: #f4efff; background: #302447; border-color: #9d87c3; }
@media (prefers-color-scheme: dark) {
  html[data-theme="system"] .event-feedback-card { color: #f4efff; background: #302447; border-color: #9d87c3; }
}
@media (max-width: 680px) {
  .event-notices { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .event-notices .event-entry-banner, .event-feedback-card { padding: 18px; }
}
