/* Navbar logo (brand kit lockup for dark backgrounds; the navbar is dark in both modes) */
.navbar-brand .navbar-logo,
.navbar .navbar-logo {
  max-height: 40px;
  height: 40px;
  width: auto;
}
@media (max-width: 575.98px) {
  .navbar-brand .navbar-logo,
  .navbar .navbar-logo {
    max-height: 34px;
    height: 34px;
  }
}

/* Wide screens: the stacked FG COMPASS logo hangs from the top of the navbar
   like a tag, centered, with the menu split evenly to its left and right. */
@media (min-width: 1360px) {
  #quarto-header, #quarto-header .navbar, .navbar-container { overflow: visible; }
  .navbar-container { position: relative; }
  .navbar-brand-container {
    position: absolute; left: 50%; top: calc(-1 * var(--bs-navbar-padding-y, .5rem)); transform: translateX(-50%);
    margin: 0 !important; z-index: 5;
  }
  .navbar .navbar-brand.navbar-brand-logo {
    position: relative; display: block; width: 176px; height: 124px; margin: 0; padding: 0;
    border-radius: 0 0 28px 28px;
    background:
      url("images/brand/fg-compass-stacked-dark.svg") center bottom 26px / 132px auto no-repeat,
      linear-gradient(180deg, #082B42 0%, #0E4963 70%, #155A63 100%);
    box-shadow: 0 0 0 1px rgba(153, 207, 211, .18), 0 22px 40px -16px rgba(0, 0, 0, .65);
  }
  .navbar .navbar-brand.navbar-brand-logo::after {
    content: ""; position: absolute; left: 22px; right: 22px; bottom: 12px;
    height: 3px; border-radius: 3px; background: #F9A73E;
  }
  /* the tag is part of the navbar: when the navbar slides away on scroll,
     slide far enough that the hanging part goes too */
  #quarto-header.headroom--unpinned { transform: translateY(-180px) !important; }
  .navbar .navbar-brand.navbar-brand-logo .navbar-logo {
    position: absolute; width: 1px; height: 1px; max-height: 1px; opacity: 0; overflow: hidden;
  }
  /* each half of the menu stays clear of the logo */
  .navbar-collapse > .navbar-nav.me-auto { padding-right: 104px; }
  .navbar-collapse > .navbar-nav.ms-auto { padding-left: 104px; }
  /* inner pages: leave room under the logo */
  #quarto-content:not(:has(.fh)):not(:has(.fg-hero)) { padding-top: 4rem; }
}
