:root,
:root[data-theme="light"] {
  --bc-scouts-purple: #7413dc;
  --bc-scouts-teal: #00a794;
  --bc-scouts-red: #e22e12;
  --bc-scouts-pink: #ffb4e5;
  --bc-scouts-green: #23a950;
  --bc-scouts-navy: #003982;
  --bc-scouts-blue: #006ddf;
  --bc-scouts-yellow: #ffe627;
  --bc-scouts-orange: #ff912a;
  --bc-scouts-forest: #205b41;

  --bc-primary: var(--bc-scouts-navy);
  --bc-primary-deep: #002a63;
  --bc-primary-soft: #e7f0ff;
  --bc-brand-primary: var(--bc-scouts-navy);
  --bc-brand-primary-deep: #002a63;
  --bc-accent: var(--bc-scouts-yellow);
  --bc-action: var(--bc-scouts-teal);
  --bc-canvas: #f6f8fb;
  --bc-paper: #ffffff;

  --q2-accent: var(--bc-primary);
  --q2-accent-contrast: #ffffff;
  --q2-link: var(--bc-scouts-blue);
  --q2-focus-ring: color-mix(in oklab, var(--bc-scouts-yellow) 65%, transparent);
  --q2-bg: var(--bc-canvas);
  --q2-bg-elev: var(--bc-paper);
  --q2-bg-muted: #eaf0f7;
  --q2-text: #162033;
  --q2-text-strong: #07142c;
  --q2-nav-bg: var(--bc-primary);
  --q2-nav-border: rgba(255, 255, 255, 0.18);
}

:root[data-theme="dark"] {
  --bc-primary: #4d8ff5;
  --bc-primary-deep: #001f49;
  --bc-primary-soft: #102a52;
  --bc-brand-primary: var(--bc-scouts-navy);
  --bc-brand-primary-deep: #001f49;
  --bc-accent: var(--bc-scouts-yellow);
  --bc-action: #38cbbb;
  --bc-canvas: #06132a;
  --bc-paper: #0c2244;

  --q2-accent: var(--bc-scouts-yellow);
  --q2-accent-contrast: #07142c;
  --q2-link: #78b2ff;
  --q2-focus-ring: color-mix(in oklab, var(--bc-scouts-yellow) 55%, transparent);
  --q2-bg: var(--bc-canvas);
  --q2-bg-elev: var(--bc-paper);
  --q2-bg-muted: #143057;
}

body.section-scouts {
  --bc-primary: var(--bc-scouts-teal);
  --bc-primary-deep: #006b61;
  --bc-primary-soft: #dff8f4;
  --bc-accent: var(--bc-scouts-navy);
  --bc-action: var(--bc-scouts-yellow);
  --q2-accent: var(--bc-scouts-teal);
  --q2-link: #007d72;
}

body.section-beavers {
  --bc-primary: var(--bc-scouts-blue);
  --bc-primary-deep: #004f9f;
  --bc-primary-soft: #e1efff;
  --bc-accent: var(--bc-scouts-yellow);
  --bc-action: var(--bc-scouts-yellow);
  --q2-accent: var(--bc-scouts-blue);
  --q2-link: #005fbd;
}

body.section-cubs {
  --bc-primary: var(--bc-scouts-yellow);
  --bc-primary-deep: #705f00;
  --bc-primary-soft: #fff7b8;
  --bc-accent: var(--bc-scouts-blue);
  --bc-action: var(--bc-scouts-blue);
  --q2-accent: var(--bc-scouts-yellow);
  --q2-accent-contrast: #07142c;
  --q2-link: #005fbd;
}

body.section-network {
  --bc-primary: var(--bc-scouts-pink);
  --bc-primary-deep: #8a2a67;
  --bc-primary-soft: #ffe6f6;
  --bc-accent: var(--bc-scouts-navy);
  --bc-action: var(--bc-scouts-navy);
  --q2-accent: var(--bc-scouts-pink);
  --q2-accent-contrast: #07142c;
  --q2-link: #8a2a67;
}

body.section-explorers {
  --bc-primary: var(--bc-scouts-forest);
  --bc-primary-deep: #143d2b;
  --bc-primary-soft: #dceee7;
  --bc-accent: var(--bc-scouts-yellow);
  --bc-action: var(--bc-scouts-teal);
  --q2-accent: var(--bc-scouts-forest);
  --q2-link: #1c6849;
}

body.section-belchamps {
  --bc-primary: var(--bc-scouts-navy);
  --bc-primary-deep: #002a63;
  --bc-primary-soft: #e7f0ff;
  --bc-accent: var(--bc-scouts-yellow);
  --bc-action: var(--bc-scouts-teal);
  --q2-accent: var(--bc-scouts-navy);
  --q2-link: var(--bc-scouts-blue);
}

body.section-volunteer {
  --bc-primary: var(--bc-scouts-purple);
  --bc-primary-deep: #4d0d92;
  --bc-primary-soft: #efe1ff;
  --bc-accent: var(--bc-scouts-yellow);
  --bc-action: var(--bc-scouts-teal);
  --q2-accent: var(--bc-scouts-purple);
  --q2-link: #6410bd;
}

:root[data-theme="dark"] body.section-scouts,
:root[data-theme="dark"] body.section-beavers,
:root[data-theme="dark"] body.section-cubs,
:root[data-theme="dark"] body.section-network,
:root[data-theme="dark"] body.section-explorers,
:root[data-theme="dark"] body.section-belchamps,
:root[data-theme="dark"] body.section-volunteer {
  --q2-accent: var(--bc-primary);
  --q2-accent-contrast: #ffffff;
}

body {
  background: var(--bc-canvas);
}

:root[data-theme="dark"] body {
  background: #071326;
}

#header {
  background: var(--bc-brand-primary-deep);
  border-bottom-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 12px 28px rgba(0, 42, 99, 0.18);
}

#header .navbar {
  min-height: 76px;
}

#header .navbar-brand,
#header .dropmenu > ul > li > a,
#header .theme-toggle,
#header .login-status-wrapper {
  color: #ffffff;
}

#header .navbar-brand:hover,
#header .dropmenu > ul > li > a:hover,
#header .theme-toggle:hover {
  color: #ffffff;
}

#header .navbar-brand svg,
#header .navbar-brand svg * {
  fill: #ffffff;
}

.belchamps-brand img,
.belchamps-brand svg {
  max-height: 42px;
  filter: brightness(0) invert(1);
}

.belchamps-wordmark {
  color: #ffffff;
  font-family: var(--pico-font-family-display);
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1;
}

.belchamps-wordmark::after {
  content: "Scout Campsite";
  display: block;
  margin-top: 0.18rem;
  color: var(--bc-accent);
  font-family: var(--pico-font-family-sans-serif);
  font-size: 0.55em;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.dropmenu > ul > li > a {
  border-radius: 8px;
  font-weight: 750;
}

.dropmenu > ul > li > a.active,
.dropmenu > ul > li > a:hover {
  background: var(--bc-primary);
  color: #ffffff;
}

body.section-network .dropmenu > ul > li > a.active,
body.section-network .dropmenu > ul > li > a:hover {
  color: #07142c;
}

body.section-cubs .dropmenu > ul > li > a.active,
body.section-cubs .dropmenu > ul > li > a:hover {
  color: #07142c;
}

button.theme-toggle {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

button.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

h1,
h2,
h3 {
  color: var(--bc-primary-deep);
}

:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3 {
  color: #ffffff;
}

h1 {
  font-weight: 800;
}

h2::before {
  width: 44px;
  height: 6px;
  background: var(--bc-accent);
}

a {
  font-weight: 650;
}

.btn,
button:not([role="button"]).btn,
a.btn,
[type="button"].btn,
[type="submit"].btn {
  background: var(--bc-action);
  color: #001f49;
  border-radius: 8px;
  font-weight: 800;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.28), 0 12px 24px rgba(0, 57, 130, 0.16);
}

.btn:hover,
a.btn:hover {
  color: #001f49;
  background: var(--bc-accent);
  opacity: 1;
}

body.section-beavers .btn,
body.section-cubs .btn,
body.section-network .btn,
body.section-belchamps .btn,
body.section-volunteer .btn,
body.section-beavers a.btn,
body.section-cubs a.btn,
body.section-network a.btn,
body.section-belchamps a.btn,
body.section-volunteer a.btn {
  color: #ffffff;
}

body.section-scouts .btn,
body.section-explorers .btn,
body.section-scouts a.btn,
body.section-explorers a.btn {
  color: #001f49;
}

#body-wrapper > .container {
  padding-block: 4rem;
}

#body-wrapper .container > :is(h1, h2, h3, p, ul, ol, blockquote) {
  max-width: 72ch;
}

#body-wrapper .container > h1:first-child {
  max-width: 12ch;
}

#body-wrapper .container > p:first-of-type {
  color: #31415c;
  font-size: 1.2rem;
  font-weight: 650;
}

:root[data-theme="dark"] #body-wrapper .container > p:first-of-type {
  color: #d7e6ff;
}

main article,
.card {
  border-top: 6px solid var(--bc-primary);
}

#footer {
  color: #ffffff;
  background: var(--bc-brand-primary-deep);
}

#footer a,
#footer p {
  color: #ffffff;
}

.belchamps-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 2fr;
  gap: 2rem;
  align-items: start;
}

.belchamps-footer p {
  margin: 0 0 0.45rem;
}

.belchamps-footer p:last-child {
  margin-bottom: 0;
}

.belchamps-footer__column p:not(:first-child) {
  color: #dbe8ff;
}

.lightbox-gallery__columns {
  align-items: start;
}

.belchamps-gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bc-paper);
  box-shadow: var(--q2-shadow-card);
}

.belchamps-gallery-link {
  display: block;
}

.belchamps-gallery-link img {
  border-radius: 0;
  box-shadow: none;
}

.belchamps-gallery-item figcaption {
  margin: 0;
  padding: 0.8rem 0.9rem;
  color: var(--bc-primary-deep);
  font-weight: 800;
}

:root[data-theme="dark"] .belchamps-gallery-item {
  background: var(--bc-paper);
}

:root[data-theme="dark"] .belchamps-gallery-item figcaption {
  color: #ffffff;
}

.site-details {
  background: var(--bc-canvas);
}

.site-details__hero-subtitle {
  max-width: 52rem;
  margin: 0;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  line-height: 1.4;
}

.site-details__intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 3rem;
  align-items: start;
}

.site-details__content {
  min-width: 0;
}

.site-details__content > :first-child {
  margin-top: 0;
}

.site-details__gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.site-details__gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bc-paper);
  box-shadow: var(--q2-shadow-card);
}

.site-details__gallery-item:first-child {
  grid-column: 1 / -1;
}

.site-details__gallery-item img {
  display: block;
  width: 100%;
  height: auto;
}

.site-details__gallery-item figcaption {
  margin: 0;
  padding: 0.75rem 0.85rem;
  color: var(--bc-primary-deep);
  font-weight: 800;
}

.site-details__features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 3rem;
}

.site-details__features[data-layout="compact"] {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-details__feature {
  padding: 1.25rem;
  border-top: 6px solid var(--bc-primary);
  border-radius: 8px;
  background: var(--bc-paper);
  box-shadow: var(--q2-shadow-card);
}

.site-details__feature h3 {
  margin-bottom: 0.35rem;
  font-size: 1.2rem;
}

.site-details__feature p {
  margin: 0;
  color: #31415c;
}

.site-details__feature-icon {
  display: inline-grid;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.8rem;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--bc-primary);
}

.site-details__calendar {
  margin-top: 3rem;
}

.site-details__calendar > h2 {
  margin-bottom: 1rem;
}

.site-details__downloads {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr);
  gap: 2rem;
  margin-top: 3rem;
  padding: 2rem;
  border-radius: 8px;
  color: #ffffff;
  background: var(--bc-brand-primary-deep);
}

.site-details__downloads h2,
.site-details__downloads p {
  color: #ffffff;
}

.site-details__downloads h2::before {
  background: var(--bc-accent);
}

.site-details__download-list {
  display: grid;
  gap: 0.8rem;
}

.site-details__download {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.site-details__download:hover {
  color: #07142c;
  background: var(--bc-accent);
  text-decoration: none;
}

.site-details__download small {
  display: block;
  margin-top: 0.2rem;
  color: inherit;
  opacity: 0.8;
}

:root[data-theme="dark"] .site-details__gallery-item figcaption,
:root[data-theme="dark"] .site-details__feature p {
  color: #d7e6ff;
}

.modular-child-pages {
  background: var(--bc-canvas);
}

.modular-event-promotion {
  background: var(--bc-canvas);
}

.event-promotion {
  display: grid;
  grid-template-columns: minmax(16rem, 2fr) minmax(0, 3fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  margin: 0;
  overflow: hidden;
  border-top: 6px solid var(--bc-primary);
  border-radius: 8px;
  background: var(--bc-paper);
  box-shadow: var(--q2-shadow-card);
}

.event-promotion--without-flyer {
  display: block;
}

.event-promotion__flyer {
  display: grid;
  align-self: stretch;
  place-items: center;
  margin: 0;
  background: var(--bc-primary-soft);
}

.event-promotion__flyer-image {
  display: block;
  width: 100%;
  height: auto;
}

.event-promotion__content {
  max-width: 64ch;
  padding: clamp(1.5rem, 4vw, 3rem);
  padding-left: 0;
}

.event-promotion--without-flyer .event-promotion__content {
  padding-left: clamp(1.5rem, 4vw, 3rem);
}

.event-promotion--flyer-right .event-promotion__flyer {
  grid-column: 2;
  grid-row: 1;
}

.event-promotion--flyer-right .event-promotion__content {
  grid-column: 1;
  grid-row: 1;
  padding-right: 0;
  padding-left: clamp(1.5rem, 4vw, 3rem);
}

.event-promotion__content > :first-child {
  margin-top: 0;
}

.event-promotion__content > :last-child {
  margin-bottom: 0;
}

.event-promotion__button {
  display: inline-block;
  margin-top: 0.5rem;
}

.child-pages__header {
  max-width: 72ch;
  margin-bottom: 2rem;
}

.child-pages__header > :first-child {
  margin-top: 0;
}

.child-pages__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.child-pages__card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border-top: 6px solid var(--bc-primary);
  border-radius: 8px;
  background: var(--bc-paper);
  box-shadow: var(--q2-shadow-card);
}

.child-pages__image {
  display: block;
  background: var(--bc-primary-soft);
}

.child-pages__image img {
  display: block;
  width: 100%;
  height: auto;
}

.child-pages__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem;
}

.child-pages__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--bc-primary-deep);
  font-size: 0.875rem;
  font-weight: 800;
}

.child-pages__meta span,
.child-pages__meta time {
  display: inline-flex;
  padding: 0.2rem 0.45rem;
  border-radius: 8px;
  background: var(--bc-primary-soft);
}

.child-pages__body h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.child-pages__body h3 a {
  color: var(--bc-primary-deep);
  text-decoration: none;
}

.child-pages__body h3 a:hover {
  color: var(--bc-primary);
  text-decoration: underline;
}

.child-pages__summary {
  margin-bottom: 1.25rem;
  color: #31415c;
}

.belchamps-lightbox {
  width: min(94vw, 1200px);
  max-width: none;
  max-height: 92vh;
  padding: 0.75rem;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  color: #ffffff;
  background: #07142c;
  box-shadow: 0 1rem 4rem rgba(0, 0, 0, 0.55);
}

.belchamps-lightbox::backdrop {
  background: rgba(3, 10, 24, 0.88);
  backdrop-filter: blur(3px);
}

.belchamps-lightbox__toolbar {
  display: flex;
  justify-content: flex-end;
}

.belchamps-lightbox__close,
.belchamps-lightbox__nav {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.5rem;
  cursor: pointer;
}

.belchamps-lightbox__close:hover,
.belchamps-lightbox__nav:hover {
  color: #07142c;
  background: var(--bc-accent);
}

.belchamps-lightbox__stage {
  display: flex;
  min-height: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.belchamps-lightbox__image {
  display: block;
  width: auto;
  max-width: calc(100% - 7rem);
  max-height: calc(92vh - 7rem);
  margin: 0 auto;
  object-fit: contain;
}

.belchamps-lightbox__caption {
  margin: 0;
  padding: 0.75rem 0.5rem 0.25rem;
  color: #ffffff;
  text-align: center;
}

.belchamps-lightbox button:focus-visible {
  outline: 3px solid var(--bc-accent);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .belchamps-lightbox {
    width: 100vw;
    max-height: 100vh;
    padding: 0.5rem;
    border-radius: 0;
  }

  .belchamps-lightbox__image {
    max-width: calc(100% - 5rem);
    max-height: calc(100vh - 6rem);
  }
}

.child-pages__summary > :last-child {
  margin-bottom: 0;
}

.child-pages__button {
  align-self: flex-start;
  margin-top: auto;
}

.child-pages__empty {
  max-width: 72ch;
  padding: 1rem;
  border-left: 6px solid var(--bc-primary);
  background: var(--bc-primary-soft);
}

:root[data-theme="dark"] .child-pages__summary {
  color: #d7e6ff;
}

:root[data-theme="dark"] .child-pages__body h3 a {
  color: #ffffff;
}

.mobile-container .overlay {
  background: var(--bc-brand-primary-deep);
}

.overlay-menu a,
.mobile-logo .navbar-brand,
.mobile-logo .belchamps-wordmark {
  color: #ffffff;
}

.button_container {
  border: 2px solid var(--bc-brand-primary);
}

.button_container span {
  background: var(--bc-brand-primary);
}

@media (max-width: 760px) {
  .belchamps-wordmark {
    font-size: 1.35rem;
  }

  #body-wrapper .container > p:first-of-type {
    font-size: 1.1rem;
  }

  .belchamps-footer {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .site-details__intro,
  .site-details__features,
  .site-details__features[data-layout="compact"],
  .site-details__downloads,
  .child-pages__grid,
  .event-promotion {
    grid-template-columns: 1fr;
  }

  .event-promotion__content {
    grid-column: auto;
    grid-row: auto;
    padding: 0 1.5rem 1.5rem;
  }

  .event-promotion--flyer-right .event-promotion__flyer {
    grid-column: auto;
    grid-row: auto;
  }

  .event-promotion--flyer-right .event-promotion__content {
    grid-column: auto;
    grid-row: auto;
    padding: 0 1.5rem 1.5rem;
  }

  .event-promotion--without-flyer .event-promotion__content {
    padding: 1.5rem;
  }

  .site-details__intro,
  .site-details__downloads {
    gap: 1.5rem;
  }

  .site-details__downloads {
    padding: 1.25rem;
  }

  #body-wrapper > .container {
    padding-block: 2rem;
  }
}
