/* Minimal overrides alongside Tailwind public bundle.
   Legacy Bootstrap-specific rules removed in Phase 3 — Bootstrap CSS/JS no longer loaded on public layout.
   Lib copies remain under wwwroot/lib for optional admin or transitional tooling only. */

html {
  scroll-behavior: smooth;

  /* Approximate height of the sticky <header> stack
     (utility strip + header bar + primary nav).
     Anchor jumps (skip link to #main-content, in-page hash links) and the focus
     of the smooth-scroll target land below the sticky chrome instead of under it. */
  scroll-padding-top: 11rem;
}

@media (max-width: 767.98px) {
  /* Primary nav is hidden below the md breakpoint, so the sticky stack is shorter. */
  html {
    scroll-padding-top: 9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/*
 * Homepage CMS hero: plain-CSS guardrails so the block stays usable if Tailwind
 * utilities are missing or stale (e.g. public bundle not rebuilt). Otherwise
 * the section can inherit body `text-bcc-text` while backgrounds stay dark —
 * copy looks “empty” even though the HTML is present. Carousel chrome uses
 * borders/SVGs and may still show.
 */
#bcc-home-hero {
  position: relative;
  z-index: 0;
  color: #fff;
}

#bcc-home-hero.bcc-home-hero--carousel {
  /* Allow vertical page scroll; horizontal swipes change slides (JS). */
  touch-action: pan-y;
}

/* Smooth crossfade between slides (design-system motion.duration.slow+).
   Stack in one grid cell so the viewport grows with the tallest slide.
   Absolute positioning collapsed the hero to min-height and let CTAs
   sit under the dots on small screens. */
#bcc-home-hero .bcc-hero-slide {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity;
  pointer-events: none;
}

#bcc-home-hero .bcc-hero-slide.is-active {
  z-index: 3;
  opacity: 1;
  pointer-events: auto;
}

/* Outgoing slide stays above idle slides so the fade reads as a true crossfade. */
#bcc-home-hero .bcc-hero-slide.is-leaving {
  z-index: 2;
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  #bcc-home-hero .bcc-hero-slide {
    transition: none;
    will-change: auto;
  }
}

/* Full-bleed CMS slide photo — no tint overlay; legacy seal markup hidden if cached */
#bcc-home-hero.bcc-home-hero--photo {
  background-color: transparent;
}

#bcc-home-hero .bcc-hero-slide-photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#bcc-home-hero img[src*="seal-placeholder"] {
  display: none !important;
}

/*
 * Compiled Razor may lag behind .cshtml edits until Portal rebuild + restart.
 * These rules strip the legacy navy overlay and show the CMS photo at full strength.
 */
#bcc-home-hero .bcc-hero-slide > div.absolute.inset-0 > div.absolute.inset-0 {
  display: none !important;
}

#bcc-home-hero:has(img[src*="/media/"]) {
  background-color: transparent;
}

#bcc-home-hero .bcc-hero-slide > div.absolute.inset-0 > img[src*="/media/"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

#bcc-home-hero .bcc-hero-viewport {
  position: relative;
  display: grid;
  grid-template: minmax(28rem, auto) / minmax(0, 1fr);
  min-height: 28rem;
  background-color: #0c1e3d;
}

@media (min-width: 48rem) {
  #bcc-home-hero .bcc-hero-viewport {
    grid-template: minmax(32rem, auto) / minmax(0, 1fr);
    min-height: 32rem;
  }
}

#bcc-home-hero .bcc-hero-slide-inner {
  flex: 1 1 auto;
  align-self: stretch;
  width: 100%;
  box-sizing: border-box;
  min-height: 28rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
  text-align: left;
}

@media (min-width: 48rem) {
  #bcc-home-hero .bcc-hero-slide-inner {
    min-height: 32rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
  }
}

@media (min-width: 64rem) {
  #bcc-home-hero .bcc-hero-slide-inner {
    padding-top: 6rem;
    padding-bottom: 6rem;
  }
}

#bcc-home-hero.bcc-home-hero--carousel .bcc-hero-slide-inner {
  /* Room for stacked 44px CTAs + gap + 44px dots over the slide photo. */
  padding-bottom: 6.5rem;
}

@media (min-width: 48rem) {
  #bcc-home-hero.bcc-home-hero--carousel .bcc-hero-slide-inner {
    padding-bottom: 7rem;
  }
}

/* Full-bleed slide photo with no tint overlay; keep copy readable via shadow only */
#bcc-home-hero .bcc-hero-slide-inner--on-photo {
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.75),
    0 2px 12px rgba(0, 0, 0, 0.55);
}

#bcc-home-hero .bcc-hero-slide-inner--on-photo .bcc-hero-cta {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/*
 * Carousel chrome — explicit CSS (do not rely on Tailwind bottom-* utilities;
 * they are frequently purged from the public bundle and left dots at the top).
 */
#bcc-home-hero .bcc-hero-controls {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
}

#bcc-home-hero .bcc-hero-prev,
#bcc-home-hero .bcc-hero-next,
#bcc-home-hero .bcc-hero-dots {
  pointer-events: auto;
}

#bcc-home-hero .bcc-hero-prev,
#bcc-home-hero .bcc-hero-next {
  position: absolute;
  top: 0;
  bottom: 0;
  display: none;
  align-items: center;
  justify-content: center;
  width: 3rem;
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

#bcc-home-hero .bcc-hero-prev {
  left: 0;
}

#bcc-home-hero .bcc-hero-next {
  right: 0;
}

#bcc-home-hero .bcc-hero-prev:hover,
#bcc-home-hero .bcc-hero-next:hover {
  color: #fbbf24;
}

#bcc-home-hero .bcc-hero-prev:focus-visible,
#bcc-home-hero .bcc-hero-next:focus-visible,
#bcc-home-hero .bcc-hero-dot:focus-visible {
  outline: 2px solid #fbbf24;
  outline-offset: 2px;
}

#bcc-home-hero .bcc-hero-prev svg,
#bcc-home-hero .bcc-hero-next svg {
  width: 2rem;
  height: 2rem;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.55));
}

@media (min-width: 40rem) {
  /* sm+: arrows visible (layout-patterns.md — dots only on smallest viewports) */
  #bcc-home-hero .bcc-hero-prev,
  #bcc-home-hero .bcc-hero-next {
    display: flex;
    width: 3.5rem;
  }

  #bcc-home-hero .bcc-hero-prev svg,
  #bcc-home-hero .bcc-hero-next svg {
    width: 2.25rem;
    height: 2.25rem;
  }
}

@media (min-width: 48rem) {
  #bcc-home-hero .bcc-hero-prev,
  #bcc-home-hero .bcc-hero-next {
    width: 4rem;
  }

  #bcc-home-hero .bcc-hero-prev svg,
  #bcc-home-hero .bcc-hero-next svg {
    width: 2.5rem;
    height: 2.5rem;
  }
}

/* Dots sit in the reserved bottom strip, above the pulled-up Popular Services tab.
   width: max-content keeps the tap target on the dots, not the full row. */
#bcc-home-hero .bcc-hero-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  #bcc-home-hero .bcc-hero-dots {
    bottom: 2rem;
  }
}

#bcc-home-hero .bcc-hero-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 2.75rem;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

#bcc-home-hero .bcc-hero-dot__mark {
  display: block;
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

#bcc-home-hero .bcc-hero-dot.is-active .bcc-hero-dot__mark,
#bcc-home-hero .bcc-hero-dot[aria-selected="true"] .bcc-hero-dot__mark {
  background: #fbbf24;
  transform: scale(1.15);
}

/*
 * Popular Services tab pulls up into the hero seam (mockup).
 * Higher z-index than #bcc-home-hero so the tab paints above the navy,
 * instead of sliding underneath and looking clipped.
 */
.bcc-quick-services {
  position: relative;
  z-index: 10;
}

.bcc-quick-services__tab {
  position: relative;
  z-index: 11;
  margin-top: -0.85rem;
  text-align: center;
}

.bcc-public-footer {
  position: relative;
  z-index: 10;
  width: 100%;
}

.bcc-public-footer__shell {
  position: relative;
  z-index: 10;
  width: 100%;
}

/* Popup / announcement overlays */
.bcc-popup-root[aria-hidden="true"] {
  display: none;
}

.bcc-popup {
  position: fixed;
  z-index: 60;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.bcc-popup--animate .bcc-popup__panel {
  animation: bcc-popup-in 0.25s ease-out;
}

@keyframes bcc-popup-in {
  from {
    opacity: 0;
    transform: translateY(0.5rem) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bcc-popup--animate .bcc-popup__panel {
    animation: none;
  }
}

.bcc-popup__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 30, 61, 0.55);
  cursor: pointer;
}

.bcc-popup__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  max-height: min(85vh, 36rem);
  overflow: auto;
  border-radius: 0.75rem;
  background: #fff;
  color: #0c1e3d;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.bcc-popup__header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1rem 0.5rem;
}

.bcc-popup__title {
  flex: 1;
  margin: 0;
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
}

.bcc-popup__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 0.375rem;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.bcc-popup__close:hover {
  background: rgba(12, 30, 61, 0.08);
}

.bcc-popup__close:focus-visible {
  outline: 2px solid #0c1e3d;
  outline-offset: 2px;
}

.bcc-popup__content {
  padding: 0 1rem 1rem;
}

.bcc-popup__media {
  margin: 0 0 0.75rem;
}

.bcc-popup__image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

.bcc-popup__video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 0.375rem;
}

.bcc-popup__cta {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/*
 * Popup CTAs use the same public page CTA classes (bcc-page-cta*). Guardrail styles
 * keep buttons looking correct if the Tailwind public bundle is missing or stale.
 */
.bcc-popup .bcc-page-cta {
  display: inline-flex;
  min-height: 2.5rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.375rem;
  border: 2px solid transparent;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  box-shadow: 0 1px 2px rgb(12 30 61 / 0.08);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bcc-popup .bcc-page-cta--primary {
  border-color: #0c1e3d;
  background-color: #0c1e3d;
  color: #fff;
}

.bcc-popup .bcc-page-cta--primary:hover {
  border-color: #071326;
  background-color: #071326;
  color: #fff;
}

.bcc-popup .bcc-page-cta--secondary {
  border-color: #0c1e3d;
  background-color: #fff;
  color: #0c1e3d;
}

.bcc-popup .bcc-page-cta--secondary:hover {
  background-color: #0c1e3d;
  color: #fff;
}

.bcc-popup--slide-in {
  inset: auto 1rem 1rem auto;
  width: min(100%, 22rem);
  height: auto;
  padding: 0;
}

.bcc-popup--slide-in .bcc-popup__panel {
  width: 100%;
  max-height: min(70vh, 28rem);
}

.bcc-popup--banner {
  inset: auto 0 0 0;
  height: auto;
  padding: 0;
  align-items: stretch;
}

.bcc-popup--banner .bcc-popup__panel {
  width: 100%;
  max-width: none;
  max-height: none;
  border-radius: 0;
  border-top: 3px solid #0c1e3d;
}

.bcc-popup--spotlight {
  inset: auto 1rem 1rem 1rem;
  height: auto;
  padding: 0;
  justify-content: flex-end;
}

.bcc-popup--spotlight .bcc-popup__panel {
  width: min(100%, 20rem);
  max-height: min(60vh, 24rem);
}

@media (max-width: 767.98px) {
  .bcc-popup__panel {
    width: min(100%, 100%);
    max-height: min(90vh, 40rem);
  }

  .bcc-popup--slide-in,
  .bcc-popup--spotlight {
    inset: auto 0.75rem 0.75rem 0.75rem;
    width: auto;
  }
}

/* Google Translate widget — hide default UI; custom dropdown owns the control.
   The injected top banner is a thin gold/yellow bar; kill the iframe AND its
   body-level wrapper (including modern obfuscated class names). */
.goog-te-banner-frame,
.goog-te-banner-frame.skiptranslate,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-te-gadget-icon,
.goog-te-menu-value,
.goog-te-menu-value span,
.skiptranslate.goog-te-gadget,
body > .skiptranslate,
iframe.goog-te-banner-frame,
.skiptranslate iframe,
.VIpgJd-ZVi9od-ORHb,
.VIpgJd-ZVi9od-ORHb-OEVmcd {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  max-height: 0 !important;
  width: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.bcc-google-translate-mount,
#google_translate_element {
  position: fixed !important;
  left: -9999px !important;
  top: 0 !important;
  width: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.goog-te-combo {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

html.translated-ltr,
html.translated-rtl,
body {
  top: 0 !important;
  position: static !important;
}

/*
 * Global alert bar: body is CMS rich HTML. Keep block tags (especially <p>)
 * inline so the banner stays a single compact strip.
 */
.bcc-alert-message {
  min-width: 0;
}

.bcc-alert-body,
.bcc-alert-body > :first-child {
  display: inline;
}

.bcc-alert-body > * {
  display: inline;
  margin: 0;
  padding: 0;
}

.bcc-alert-body a {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* -------------------------------------------------------------------------
   Administrator CMS toolbar (public site, authenticated Administrators only)

   Design intent: extend the site's OWN navy header chrome (same navy-dark as
   the utility strip) rather than paint a foreign colored banner across the
   page. A "Staff view" badge + single gold-accented action distinguish it as
   tool chrome, not new brand surface — deliberately unlike WordPress's
   plain black admin bar and unlike a full-width brand-color takeover.
   ------------------------------------------------------------------------- */
:root {
  --bcc-admin-toolbar-height: 2.75rem;
  --bcc-admin-toolbar-bg: #081427;
  --bcc-admin-toolbar-ink: #e7ecf5;
  --bcc-admin-toolbar-muted: #93a2bf;
  --bcc-admin-toolbar-border: rgba(231, 236, 245, 0.16);
  --bcc-admin-toolbar-hover: rgba(231, 236, 245, 0.1);
  --bcc-admin-toolbar-accent: #fec52f;
  --bcc-admin-toolbar-accent-ink: #0c1e3d;
  --bcc-admin-toolbar-accent-hover: #e0ad1a;
  /* Brand bar + primary nav + gap. JS (site.js) replaces this with the live header bottom. */
  --bcc-sticky-offset: 10.5rem;
}

body.bcc-admin-toolbar-on {
  padding-top: var(--bcc-admin-toolbar-height);
  --bcc-sticky-offset: calc(10.5rem + var(--bcc-admin-toolbar-height));
}

body.bcc-admin-toolbar-on [data-sticky-header] {
  top: var(--bcc-admin-toolbar-height);
}

/* Collapsing the utility strip changes header height. Without this, scroll
   anchoring shifts scrollY by that delta and the compact/expand thresholds
   fight each other (header jitter when scrolling up). Safari ignores this
   property; site.js uses hysteresis larger than the strip height. */
[data-sticky-header],
[data-header-utility-strip] {
  overflow-anchor: none;
}

html {
  scroll-padding-top: var(--bcc-sticky-offset);
}

/* Sticky-header search lives inside the padding box. Chrome/Edge then treat
   every keystroke as "caret covered by the header" and smooth-scroll the page
   to the top. Zero the padding and disable smooth scrolling while that field
   is focused so typing does not move the document. */
html.bcc-search-scroll-lock,
html:has([data-sticky-header] .bcc-search-input:focus) {
  scroll-behavior: auto;
  scroll-padding-top: 0;
  overflow-anchor: none;
}

.bcc-sticky-below-header {
  position: sticky;
  top: var(--bcc-sticky-offset);
}

@media (max-width: 767.98px) {
  :root {
    --bcc-admin-toolbar-height: 3rem;
    --bcc-sticky-offset: 8rem;
  }

  body.bcc-admin-toolbar-on {
    --bcc-sticky-offset: calc(8rem + var(--bcc-admin-toolbar-height));
  }
}

.bcc-admin-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--bcc-admin-toolbar-height);
  background: var(--bcc-admin-toolbar-bg);
  color: var(--bcc-admin-toolbar-ink);
  font-size: 0.8125rem;
  line-height: 1.2;
  border-bottom: 1px solid var(--bcc-admin-toolbar-border);
}

.bcc-admin-toolbar__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  height: 100%;
  padding: 0 1rem;
}

.bcc-admin-toolbar__start,
.bcc-admin-toolbar__end,
.bcc-admin-toolbar__center {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  height: 100%;
}

.bcc-admin-toolbar__start {
  justify-content: flex-start;
}

.bcc-admin-toolbar__center {
  justify-content: center;
}

.bcc-admin-toolbar__end {
  justify-content: flex-end;
}

/* "Staff view" mode badge — identifies the bar's purpose without a full-color takeover. */
.bcc-admin-toolbar__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(254, 197, 47, 0.14);
  color: var(--bcc-admin-toolbar-accent);
  font-weight: 700;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.bcc-admin-toolbar__badge-icon {
  width: 0.8rem;
  height: 0.8rem;
  flex-shrink: 0;
}

.bcc-admin-toolbar__divider {
  width: 1px;
  height: 1.35rem;
  background: var(--bcc-admin-toolbar-border);
  margin: 0 0.15rem;
  flex-shrink: 0;
}

.bcc-admin-toolbar__btn,
.bcc-admin-toolbar__summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  color: var(--bcc-admin-toolbar-ink);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  background: transparent;
  font: inherit;
  font-weight: 600;
  list-style: none;
}

.bcc-admin-toolbar__btn:hover,
.bcc-admin-toolbar__btn:focus-visible,
.bcc-admin-toolbar__menu[open] > .bcc-admin-toolbar__summary,
.bcc-admin-toolbar__summary:hover,
.bcc-admin-toolbar__summary:focus-visible {
  background: var(--bcc-admin-toolbar-hover);
  border-color: var(--bcc-admin-toolbar-border);
  outline: none;
}

.bcc-admin-toolbar__btn:focus-visible,
.bcc-admin-toolbar__summary:focus-visible {
  box-shadow: 0 0 0 2px var(--bcc-admin-toolbar-bg), 0 0 0 4px var(--bcc-admin-toolbar-accent);
}

/* The one deliberately prominent action — everything else stays quiet. */
.bcc-admin-toolbar__btn--primary {
  background: var(--bcc-admin-toolbar-accent);
  color: var(--bcc-admin-toolbar-accent-ink);
  border-color: var(--bcc-admin-toolbar-accent);
  padding: 0.45rem 1.1rem;
}

.bcc-admin-toolbar__btn--primary:hover,
.bcc-admin-toolbar__btn--primary:focus-visible,
.bcc-admin-toolbar__menu[open] > .bcc-admin-toolbar__btn--primary {
  background: var(--bcc-admin-toolbar-accent-hover);
  border-color: var(--bcc-admin-toolbar-accent-hover);
  color: var(--bcc-admin-toolbar-accent-ink);
}

.bcc-admin-toolbar__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.bcc-admin-toolbar__caret {
  width: 0.7rem;
  height: 0.7rem;
  flex-shrink: 0;
  margin-left: -0.05rem;
  opacity: 0.75;
}

.bcc-admin-toolbar__menu {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.bcc-admin-toolbar__summary::-webkit-details-marker {
  display: none;
}

.bcc-admin-toolbar__dropdown {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 51;
  margin: 0;
  padding: 0.3rem;
  min-width: 12rem;
  list-style: none;
  background: #10203c;
  color: var(--bcc-admin-toolbar-ink);
  border: 1px solid var(--bcc-admin-toolbar-border);
  border-radius: 0.5rem;
  box-shadow: 0 12px 28px rgba(2, 8, 20, 0.45);
}

.bcc-admin-toolbar__dropdown--center {
  left: 50%;
  transform: translateX(-50%);
}

.bcc-admin-toolbar__dropdown--end {
  left: auto;
  right: 0;
}

.bcc-admin-toolbar__dropdown a,
.bcc-admin-toolbar__dropdown button {
  display: block;
  width: 100%;
  padding: 0.55rem 0.75rem;
  color: var(--bcc-admin-toolbar-ink);
  text-decoration: none;
  white-space: nowrap;
  border-radius: 0.35rem;
  font: inherit;
  font-weight: 500;
  text-align: left;
  background: none;
  border: 0;
  cursor: pointer;
}

.bcc-admin-toolbar__dropdown form {
  margin: 0;
}

.bcc-admin-toolbar__dropdown-separator {
  height: 1px;
  margin: 0.3rem 0.45rem;
  background: var(--bcc-admin-toolbar-border);
}

.bcc-admin-toolbar__dropdown a:hover,
.bcc-admin-toolbar__dropdown a:focus-visible,
.bcc-admin-toolbar__dropdown button:hover,
.bcc-admin-toolbar__dropdown button:focus-visible {
  background: var(--bcc-admin-toolbar-accent);
  color: var(--bcc-admin-toolbar-accent-ink);
  outline: none;
}

.bcc-admin-toolbar__user-label {
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--bcc-admin-toolbar-muted);
  font-weight: 500;
}

/* Below desktop widths, keep icons + the primary Edit action; drop secondary labels. */
@media (max-width: 1023.98px) {
  .bcc-admin-toolbar__label {
    display: none;
  }
}

@media (max-width: 639.98px) {
  .bcc-admin-toolbar__badge span:last-child {
    display: none;
  }

  .bcc-admin-toolbar__divider {
    display: none;
  }

  .bcc-admin-toolbar__inner {
    padding: 0 0.6rem;
    gap: 0.4rem;
  }
}

/* Content gallery block */
.content-section--gallery {
  margin-block: 1.5rem;
}

.bcc-gallery__crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.95rem;
}

/* Author display:* rules beat the UA [hidden] { display: none } — keep JS .hidden working. */
.bcc-gallery__crumb[hidden],
.bcc-gallery__slider[hidden],
.bcc-gallery__grid[hidden],
.bcc-gallery__albums[hidden],
.bcc-gallery__photos[hidden] {
  display: none !important;
}

.bcc-gallery__back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 0;
  background: transparent;
  color: var(--color-bcc-navy, #0b2d4a);
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0;
}

.bcc-gallery__back:hover,
.bcc-gallery__back:focus-visible {
  text-decoration: underline;
  outline: none;
}

.bcc-gallery__crumb-sep {
  color: #64748b;
}

.bcc-gallery__crumb-current {
  font-weight: 600;
  color: #0f172a;
}

.bcc-gallery__album-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}

.bcc-gallery__album-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  border: 1px solid #dbe3ec;
  border-radius: 0.65rem;
  overflow: hidden;
  background: #fff;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.bcc-gallery__album-card:hover,
.bcc-gallery__album-card:focus-visible {
  border-color: var(--color-bcc-navy, #0b2d4a);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.bcc-gallery__album-cover {
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
  overflow: hidden;
}

.bcc-gallery__album-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

[data-content-gallery][data-thumbnail-display="contain"] .bcc-gallery__album-cover img,
[data-content-gallery][data-thumbnail-display="contain"] .bcc-gallery__thumb img {
  object-fit: contain;
}

.bcc-gallery__album-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem 0.85rem;
}

.bcc-gallery__album-title {
  font-weight: 650;
  color: #0f172a;
  font-size: 0.95rem;
}

.bcc-gallery__album-count {
  color: #64748b;
  font-size: 0.8rem;
}

.bcc-gallery__grid {
  display: grid;
  gap: 0.25rem;
}

.bcc-gallery__grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.bcc-gallery__grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bcc-gallery__grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.bcc-gallery__grid--cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

@media (max-width: 767.98px) {
  .bcc-gallery__grid--cols-3,
  .bcc-gallery__grid--cols-4,
  .bcc-gallery__grid--cols-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.bcc-gallery__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: #e2e8f0;
  cursor: pointer;
  overflow: hidden;
}

.bcc-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.bcc-gallery__thumb:hover img,
.bcc-gallery__thumb:focus-visible img {
  transform: scale(1.03);
}

.bcc-gallery__thumb:focus-visible {
  outline: 2px solid var(--color-bcc-navy, #0b2d4a);
  outline-offset: 2px;
}

.bcc-gallery__slider {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
}

.bcc-gallery__slider-figure {
  margin: 0;
  text-align: center;
}

.bcc-gallery__slider-figure img {
  max-width: 100%;
  max-height: min(70vh, 36rem);
  object-fit: contain;
  border-radius: 0.35rem;
  cursor: zoom-in;
}

.bcc-gallery__slider-nav {
  border: 1px solid #cbd5e1;
  background: #fff;
  border-radius: 999px;
  width: 2.5rem;
  height: 2.5rem;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.bcc-gallery-lightbox {
  border: 0;
  padding: 0;
  max-width: none;
  max-height: none;
  width: 100vw;
  height: 100vh;
  background: rgba(2, 6, 23, 0.92);
  color: #fff;
}

.bcc-gallery-lightbox::backdrop {
  background: transparent;
}

.bcc-gallery-lightbox__frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 2.5rem 4rem;
}

.bcc-gallery-lightbox__figure {
  margin: 0;
  max-width: min(96vw, 72rem);
  text-align: center;
}

.bcc-gallery-lightbox__figure img {
  max-width: 100%;
  max-height: calc(100vh - 8rem);
  object-fit: contain;
}

.bcc-gallery-lightbox__caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.bcc-gallery-lightbox__close,
.bcc-gallery-lightbox__nav {
  position: absolute;
  border: 0;
  background: rgba(15, 23, 42, 0.55);
  color: #fff;
  cursor: pointer;
  border-radius: 999px;
}

.bcc-gallery-lightbox__close {
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 1.75rem;
  line-height: 1;
}

.bcc-gallery-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  font-size: 2rem;
  line-height: 1;
}

.bcc-gallery-lightbox__nav--prev { left: 1rem; }
.bcc-gallery-lightbox__nav--next { right: 1rem; }

.bcc-gallery-lightbox__close:focus-visible,
.bcc-gallery-lightbox__nav:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .bcc-gallery__album-card,
  .bcc-gallery__thumb img {
    transition: none;
  }
}

/* Single image content block */
.content-section--image {
  margin-block: 1.5rem;
}

.content-section-image {
  margin: 0;
  width: 100%;
}

.content-section-image--width-full {
  max-width: 100%;
}

.content-section-image--width-large {
  max-width: 42rem;
}

.content-section-image--width-medium {
  max-width: 28rem;
}

.content-section-image--width-small {
  max-width: 16rem;
}

.content-section-image--align-start {
  margin-inline: 0 auto 0 0;
}

.content-section-image--align-center {
  margin-inline: auto;
}

.content-section-image--align-end {
  margin-inline: 0 0 0 auto;
}

.content-section-image__media,
.content-section-image__frame,
.content-section-image__trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0.375rem;
  overflow: hidden;
  background: transparent;
}

.content-section-image__frame--cover,
.content-section-image__frame--contain {
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
}

.content-section-image__trigger {
  cursor: zoom-in;
}

.content-section-image__trigger:focus-visible {
  outline: 2px solid var(--color-bcc-navy, #0b2d4a);
  outline-offset: 2px;
}

.content-section-image__img {
  display: block;
  width: 100%;
  border-radius: 0.375rem;
}

.content-section-image__img--natural {
  height: auto;
}

.content-section-image__img--cover,
.content-section-image__img--contain {
  height: 100%;
}

.content-section-image__img--cover {
  object-fit: cover;
}

.content-section-image__img--contain {
  object-fit: contain;
}

.content-section-image__caption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #475569;
}

/* Compact hover tooltip (footer social icons). Complements .bcc-tooltip in the Tailwind bundle. */
.bcc-tooltip--compact {
  max-width: none;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

/* Help Hub FAQ answers — space below each paragraph so they don’t sit on the next question. */
.help-hub-faq-panel p {
  padding-bottom: 0.5rem;
}
