/* ---------- Site header: title, search and navigation in one ink band ---------- */
/* Loaded after style.css. The #wrap / #top-nav prefixes outrank the theme's colour options. */

#wrap > header {
  --ink: #16425B;
  --gold: #EDAE49;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  background-color: #16425B;
  color: #fff; }
#wrap > header:after {
  display: none; }

/* title */
#wrap > header #site-title {
  float: none;
  width: auto;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  text-align: left;
  font-family: "Alegreya", serif;
  line-height: 1; }
#wrap > header #site-title:after {
  display: none; }
#wrap > header #site-title a {
  display: inline-flex;
  flex-direction: column;
  color: #fff; }
#site-title .title-main {
  font-size: 18px;
  font-weight: 500; }
#site-title .title-sub {
  margin-top: 3px;
  font-size: 14.5px;
  font-style: italic;
  opacity: .82; }
#site-title a:focus-visible,
#wrap > header .header-actions button:focus-visible {
  outline: 2px solid #EDAE49;
  outline-offset: 3px; }

/* search */
#wrap > header #search-container {
  float: none;
  margin: 0;
  padding: 0; }
#wrap > header #search-container:after {
  display: none; }
#search-form input#query {
  height: 40px;
  padding: 0 92px 0 12px;
  background-color: #fff;
  color: #1c2a33;
  font-size: 15px; }
#search-form input#query::placeholder {
  color: #6d7a82;
  opacity: 1; }
#search-form button#submit_search {
  right: 0;
  width: 44px;
  height: 40px;
  background-color: #EDAE49;
  color: #0F3246; }
#search-form button#submit_search:after {
  width: 44px;
  line-height: 40px; }
#search-form .show-advanced.button {
  right: 44px;
  width: 40px;
  height: 40px;
  box-sizing: border-box;
  background-color: #fff;
  color: #56636B; }
#search-form .show-advanced.button:after {
  content: "\2026";
  font-family: "Open Sans", sans-serif;
  font-size: 18px;
  width: 40px;
  height: 40px;
  line-height: 34px;
  border-left: 1px solid #D9DCD6;
  color: #56636B; }
#search-form #advanced-form {
  top: 40px;
  color: #1c2a33; }

/* search and menu buttons (small screens only) */
#wrap > header .header-actions {
  display: none; }

/* ---------- Wide screens ---------- */
@media screen and (min-width: 900px) {
  #wrap > header {
    padding-top: 26px;
    padding-bottom: 24px; }
  #site-title .title-main {
    font-size: 32px; }
  #site-title .title-sub {
    margin-top: 6px;
    font-size: 19px; }
  #wrap > header #search-container {
    flex: none;
    width: 340px; }

  #top-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.14); }
  #top-nav .nav-item > a {
    padding: 13px 14px;
    border: 0;
    font-size: 15.5px; }
  #top-nav .nav-item > a:link,
  #top-nav .nav-item > a:visited {
    color: #DCE6EC; }
  #top-nav .nav-item > a:hover,
  #top-nav .nav-item > a:focus,
  #top-nav .nav-item > a.open {
    border: 0;
    background-color: rgba(0, 0, 0, 0.18);
    color: #fff; }
  #top-nav .nav-item.active > a {
    box-shadow: inset 0 -3px 0 #EDAE49;
    color: #fff;
    font-weight: 600; }

  /* a small chevron in place of the triangle */
  #top-nav [aria-haspopup="true"]:after,
  #top-nav [aria-haspopup="true"].open:after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-left: 8px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-3px) rotate(45deg);
    opacity: .7; }

  /* drop-down panels */
  #top-nav .sub-nav {
    min-width: 250px;
    padding: 6px 0;
    border: 0;
    border-top: 3px solid #EDAE49;
    background-color: #fff;
    box-shadow: 0 10px 24px rgba(15, 50, 70, 0.22); }
  #top-nav .sub-nav ul {
    margin: 0;
    padding: 0; }
  #top-nav .sub-nav ul a {
    padding: 8px 16px;
    text-indent: 0;
    font-size: 15px; }
  #top-nav .sub-nav ul a:before {
    content: none; }
  #top-nav .sub-nav li > a:link,
  #top-nav .sub-nav li > a:visited,
  #top-nav .nav-item:hover .sub-nav li > a {
    color: #16425B; }
  #top-nav .sub-nav li > a:hover,
  #top-nav .sub-nav li > a:focus {
    background-color: #EEF1ED;
    color: #16425B; }
}

/* ---------- Small screens: one row, search and menu behind two buttons ---------- */
@media screen and (max-width: 899px) {
  #wrap > header {
    gap: 0 6px;
    padding: 9px 4px 9px 14px; }
  #wrap > header .header-actions {
    display: flex;
    flex: none; }
  #wrap > header .header-actions button {
    display: grid;
    place-items: center;
    width: 44px;
    height: 42px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer; }

  #wrap > header #search-container {
    display: none;
    flex: 1 0 100%;
    margin: 9px 10px 3px 0; }
  #wrap > header.search-open #search-container {
    display: block; }

  /* the menu panel */
  nav.top {
    display: none;
    padding: 0; }
  nav.top.nav-open {
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.14); }
  nav.top.nav-open > ul {
    display: block;
    margin: 0;
    padding: 2px 16px 14px;
    list-style: none; }
  nav.top.nav-open > ul > li {
    display: block;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13); }
  nav.top.nav-open > ul > li:last-child {
    border-bottom: 0; }
  nav.top.nav-open > ul > li > a {
    display: block;
    padding: 4px 0;
    font-weight: 600;
    font-size: 16px; }
  #top-nav.nav-open > ul > li > a:link,
  #top-nav.nav-open > ul > li > a:visited {
    color: #fff; }

  /* sub-menus always shown inside the panel */
  nav.top.nav-open ul ul,
  nav.top.nav-open ul.sub-nav {
    display: block !important;
    position: static;
    margin: 2px 0 0;
    padding: 0 0 0 14px;
    list-style: none;
    border: 0;
    background: none; }
  nav.top.nav-open ul ul li {
    display: block; }
  nav.top.nav-open ul ul a {
    display: block;
    padding: 6px 0;
    font-size: 15px; }
  #top-nav.nav-open ul ul a:link,
  #top-nav.nav-open ul ul a:visited {
    color: #DCE6EC; }

  /* the old select is no longer created; hide it if a cached script adds it */
  nav.top select.mobile {
    display: none; }
}
