/* === START: nav-footer — top nav, dropdowns, offsets below the sticky nav, footer === */

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
.navbar-collapse .navbar-nav a.active {
  color: var(--bs-sage);
  background-color: white;
}

.navbar-collapse .navbar-nav a:hover {
  color: var(--bs-orangered);
}

ul.navbar-nav li.nav-item a.active {
  color:var(--bs-sage) !important;
}

.navbar-nav a {
  color: var(--site-dark);
  transition: 0.3s;
  font-size: 15px; /* Inter runs bigger than the old Mukta did at 16px + letter-spacing */
  font-weight: normal;
}

.navbar-nav a.nav-link {
  border: 1px solid white;
  border-radius:6px;
  text-align: center;
  padding-top: .5rem !important;
}

.navbar-nav a.nav-link:hover { /* RSC gold, not heime's --bs-royal blue */
  border: 1px solid var(--site-base-300);
  color: var(--site-base-800)!important;
}

/* border:none removes bootstrap's default caret (really just borders); an fa icon replaces it */
.dropdown-toggle::after {
  border: none!important;
  font: normal normal normal 14px/1 FontAwesome;
  content: "\f107"!important;
  vertical-align: 0;
}

/*--------------------------------------------------------------
# Offsets below the sticky nav
--------------------------------------------------------------*/
#main.public-inside {
  margin-top: 8.75em;
}

.nav-offset {
  scroll-margin-top: 8.25em;
}

.sticky-offset {
  top: 75px;
}

/* anchor jumps land clear of the sticky nav */
:target[id]:before {
  content: '';
  display: block;
  margin: 10px 0 0;
}

/* DO NOT CHANGE - see sponsor email subscriptions for how fucking perfect this code is [until IOS comes along] */
body.modal-open {
  overflow-y: hidden; /* prevent page from moving right when scrollbar vanishes */
}

body.modal-open header.fixed-top {
  overflow-y: hidden;
  padding-right: var(--bs-gutter-x)!important;
}

body.modal-open nav.navbar, body.modal-open div.brand-bar {
  padding-right: 0!important;
  margin-right:17px!important;
}

/*--------------------------------------------------------------
# Footer  (back-to-top button lives in style.css as #footer .back-to-top)
--------------------------------------------------------------*/
#footer {
  font-size: 14px;
}

#footer .copyright {
  font-size:.80em;
  letter-spacing: 1px;
}

@media (max-width: 768px) {
  #footer .copyright {
    text-align: center;
    float: none;
  }
}

/* #footer-links a { color: var(--site-base-900); }
#footer-links a:hover { color: var(--site-base-700); } */
#footer .back-to-top { position: fixed; display: none; right: 15px; bottom: 15px; z-index: 99999; }
#footer .back-to-top i { display: flex; align-items: center; justify-content: center; font-size: 24px; width: 40px; height: 40px; border-radius: 50px; background: var(--site-base-300); color: var(--site-base-600); transition: all 0.4s; }
#footer .back-to-top i:hover { background: var(--site-base-600); color: var(--site-lite); }


/* === END: nav-footer === */
