/* One header bar: the search box was moved (in the HTML of every page) from #top-ribbon into #navbar next to the menu.
   Shared by the live skin (prosperity-look.css, --pfs-*) and the design previews (--blue), hence the var() fallbacks. */
#top-ribbon {
  display: none;
}
@media (min-width: 992px) {
  /* logo + menu + search on one vertical centre line (theme floats them, logo sat high) */
  .navbar-default > .container {
    display: flex;
    align-items: center;
  }
  .navbar-default > .container:before,
  .navbar-default > .container:after {
    display: none;
  }
  .navbar-default .logo {
    float: none;
    flex: none;
    padding-top: 0;
    padding-bottom: 0;
  }
  .navbar-default .logo img {
    display: block;
  }
  #navbar {
    float: none;
    flex: 1;
    width: auto;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
  }
}
#navbar #search-bar {
  float: none;
  margin: 0;
}
#navbar #form-search {
  position: relative;
  margin: 0;
}
#navbar #search-bar input {
  width: 180px;
  height: 38px;
  padding: 0 42px 0 16px;
  min-height: 0;
  border: 1px solid #d5dde6 !important;
  border-radius: 30px !important;
  background: #fff !important;
  color: #333 !important;
  font-size: 14px;
}
#navbar #search-bar input:focus {
  border-color: var(--pfs-blue, var(--blue, #0b4fb0));
  outline: none;
}
#navbar #search-bar .btn {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 30px;
  height: 30px;
  padding: 0 !important;
  border-radius: 50% !important;
  box-shadow: none;
  transform: none !important;
  background: var(--pfs-blue, var(--blue, #0b4fb0)) !important;
  border-color: transparent !important;
  color: #fff;
  line-height: 30px;
}
/* glyphicon sat off-centre and oversized in the round button; draw a centred SVG magnifier instead */
#navbar #search-bar .btn .glyphicon {
  display: none;
}
#navbar #search-bar .btn {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 15px 15px !important;
}

/* search results dropdown (assets/site-search.js) */
.acc-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 30px);
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d5dde6;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(8, 26, 48, .18);
  text-align: left;
  z-index: 1100;
  padding: 6px;
}
.acc-search-results[hidden] {
  display: none;
}
.acc-search-results a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #333 !important;
  text-decoration: none !important;
  line-height: 1.4;
}
.acc-search-results a:hover,
.acc-search-results a:focus {
  background: var(--pfs-blue-light, #e8f1fd);
}
.acc-search-results strong {
  display: block;
  color: var(--pfs-navy, #081a30);
  font-size: 14px;
  margin-bottom: 3px;
}
.acc-search-results span {
  display: block;
  font-size: 13px;
  color: #5b6875;
}
.acc-search-results mark {
  background: #fff1b8;
  color: inherit;
  padding: 0 1px;
}
.acc-search-empty {
  padding: 12px;
  font-size: 14px;
  color: #5b6875;
}
#small-search {
  position: relative;
}

/* bootstrap's a:focus ring outlined the logo on every mouse click; keep a ring for keyboard users only */
.navbar .logo a:focus {
  outline: none;
}
.navbar .logo a:focus-visible {
  outline: 2px solid var(--pfs-blue, var(--blue, #0b4fb0));
  outline-offset: 4px;
}
.navbar .logo img {
  transition: transform .2s ease;
}
.navbar .logo a:hover img {
  transform: scale(1.06);
}

/* blue line under the header bar */
.navbar.navbar-default {
  border-bottom: 3px solid var(--pfs-blue, var(--blue, #0b4fb0)) !important;
}
