/* Last-Modified: Sat, 1 Jan 2000 10:00:30 GMT [ver: ] */
/* Current-Time:Tue, 24 Nov 2026 20:28:29 -0600*/
/* Ed Walsh — complete custom menu CSS for the current FASO Loft template.
   Replace the earlier Ed Walsh menu CSS with this entire file.
   Preserve any unrelated custom CSS. Paste without <style> tags.
   Desktop: horizontal menu above the logo.
   Mobile: compact header followed by the existing collapsible menu.
*/

/* Shared navigation styling */
.faso-header .main-nav a:focus-visible,
.mobile-nav a:focus-visible {
  outline: 2px solid #173c5e;
  outline-offset: 3px;
}
.faso-header .main-nav .emptynavlink,
.mobile-nav .emptynavlink {
  display: none !important;
}

/* Desktop */
@media (min-width: 1000px) {
  .header.faso-header {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
  }
  .header.faso-header > .hamburger,
  #wrapper > .mobile-nav {
    display: none !important;
  }
  .header.faso-header > nav.main-nav.faso-nav {
    display: block !important;
    order: 0;
    float: none;
    width: 100%;
    margin: 0;
    background: #f7f7f7;
    border-bottom: 1px solid #d8d8d8;
  }
  .header .main-nav .sf-menu {
    display: flex !important;
    float: none !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    list-style: none;
  }
  .header .main-nav .sf-menu > li {
    display: block;
    float: none !important;
    position: relative;
    margin: 0;
  }
  .header .main-nav .sf-menu > li > a {
    display: block;
    padding: 15px 18px;
    color: #173c5e;
    text-decoration: none;
  }
  .header .main-nav .sf-menu > li > a:hover,
  .header .main-nav .sf-menu > li.selectednavlink > a {
    color: #b22222 !important;
  }
  .header .main-nav .sf-menu > li > ul {
    top: 100%;
    left: 0;
    right: auto;
    min-width: 210px;
    padding: 8px 0;
    background: #fff;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .12);
    z-index: 100;
  }
  .header .main-nav .sf-menu ul li { margin: 0; }
  .header .main-nav .sf-menu ul a {
    padding: 12px 16px;
    line-height: 1.5;
    text-align: left;
    color: #173c5e !important;
  }
  .header .main-nav .sf-menu ul a:hover {
    background: #f7f7f7;
    color: #b22222 !important;
  }
  .header .main-nav .sf-menu li:focus-within > ul {
    display: block !important;
  }
  .header.faso-header > .site-title {
    order: 1;
    width: 100%;
    margin: 24px 0 0;
    text-align: center;
  }
}

/* Mobile and smaller tablets */
@media (max-width: 999px) {
  #wrapper {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    padding: 0 18px 20px;
  }
  #wrapper > .header.faso-header {
    order: -1;
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    padding: 16px 0;
    border-bottom: 1px solid #e2e2e2;
  }
  .header.faso-header::before,
  .header.faso-header::after {
    display: none;
  }
  .header.faso-header > .site-title {
    order: 0;
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    float: none;
    margin: 0;
    padding: 0;
    text-align: left;
  }
  .header.faso-header .site-title a {
    display: block;
    line-height: 1;
  }
  .header.faso-header .site-title img {
    display: block;
    width: 190px !important;
    max-width: 100% !important;
    height: auto !important;
    margin: 0;
  }
  .header.faso-header > .hamburger {
    display: flex !important;
    order: 1;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-sizing: border-box;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid #173c5e;
    border-radius: 4px;
    color: #173c5e;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-transform: none;
    cursor: pointer;
  }
  .header.faso-header > .hamburger::before {
    content: "\2630";
    font-size: 18px;
  }
  .header.faso-header > nav.main-nav {
    display: none !important;
  }
  #wrapper > .mobile-nav {
    order: 0;
    width: 100%;
    box-sizing: border-box;
    margin: 0;
    background: #f7f7f7;
    border-bottom: 1px solid #d8d8d8;
  }
  /* FASO's existing script continues to open and close the menu. */
  #wrapper > .mobile-nav ul {
    margin: 0;
    padding: 0;
    text-align: left;
  }
  #wrapper > .mobile-nav ul li a {
    box-sizing: border-box;
    min-height: 44px;
    padding: 11px 16px;
    color: #173c5e !important;
    font-size: 15px;
    line-height: 22px;
    text-transform: none;
    text-decoration: none;
  }
  #wrapper > .mobile-nav > ul > li + li {
    border-top: 1px solid #e6e6e6;
  }
  #wrapper > .mobile-nav ul ul {
    margin: 0;
    padding: 0 0 4px;
  }
  #wrapper > .mobile-nav ul ul li a {
    padding-left: 34px;
    font-size: 14px;
  }
  #wrapper > .mobile-nav a:hover,
  #wrapper > .mobile-nav .selectednavlink > a {
    color: #b22222 !important;
    background: #efefef;
  }
  #wrapper > .main {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-top: 18px;
  }
}
