/* Local fixes for the self-hosted Community Ideas Festival page */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 110px; }

/* Top menu */
.navbar-toggler { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.navbar-toggler svg { display: block; }
.navbar-nav .nav-link { cursor: pointer; }
.navbar-nav .nav-link.active { color: var(--primaryThemeColor) !important; }
.navbar-nav .nav-link:hover { color: var(--primaryThemeColor) !important; }
.navbar-nav .nav-link:focus-visible,
.navbar-toggler:focus-visible,
.agenda-tabs .nav-link:focus-visible,
.agenda-session-title:focus-visible,
.modal-target:focus-visible,
.accordion-button:focus-visible { outline: 2px solid var(--secondaryThemeColor) !important; outline-offset: 2px; }
@media (max-width: 991.98px) {
  #navbarSupportedContent.show { display: block !important; width: 100%; padding: 8px 0 12px; }
  #navbarSupportedContent.show .navbar-nav { flex-direction: column !important; align-items: center; }
}

/* Agenda */
.agenda-session-title .cif-chev { display: inline-flex; flex: 0 0 auto; margin-left: 15px; transition: transform .2s ease; }
.agenda-session-title.is-open .cif-chev { transform: rotate(180deg); }

/* Bio pop-ups */
.modal-target { cursor: pointer; }
.age-des-modal { z-index: 1050 !important; }

/* Hero video */
.hero-banner-video { position: relative; }
.cif-sound-toggle { position: absolute; right: 16px; bottom: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.cif-sound-toggle:hover { background: rgba(0,0,0,.75); }
.cif-sound-toggle .i-on { display: none; }
.cif-sound-toggle.is-on .i-on { display: block; }
.cif-sound-toggle.is-on .i-off { display: none; }

/* Keep the top menu pinned to the top of the screen.
   (The vFairs "sticky" header sits inside a wrapper that is only as tall as the
   header, and body has overflow set, so position:sticky never takes effect.) */
body { overflow: visible !important; }
body > .header-content { position: fixed !important; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; }
body > .header-content .header-content.sticky { position: relative !important; }
#top-element.main_top_area { margin-top: 0 !important; }
