/* FFF Site Refresh v0.3: opt-in text-only header.
   Intentionally confined to Hello Elementor's #site-header, not other site logos.
   The existing WordPress menu supplies all links and submenu content. */
body.fffds-wordmark-active {
  --fffds-header-navy: #14283e;
  --fffds-header-blue: #0d6e9d;
  --fffds-header-pink: #d9477f;
}
body.fffds-wordmark-active #site-header {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: 74px;
  padding: 12px max(20px, calc((100vw - 1320px)/2));
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  position: sticky;
  top: 0;
  z-index: 1100;
  background: #fff;
  border-bottom: 1px solid #e4ebf1;
  box-shadow: 0 3px 16px rgba(20,40,62,.045);
}
body.admin-bar.fffds-wordmark-active #site-header { top: 32px; }
body.fffds-wordmark-active #site-header .header-inner {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  min-width: 0;
  text-align: start;
}
body.fffds-wordmark-active #site-header .site-branding {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 0 0 auto;
  gap: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
  text-align: start;
}
/* When the Hello dynamic header is set to Title, still use our wordmark.
   If the custom-logo hook is absent, leave the theme title visible. */
body.fffds-wordmark-active #site-header .site-branding.show-title .site-logo:has(.fffds-wordmark) { display: block !important; }
body.fffds-wordmark-active #site-header .site-branding:has(.fffds-wordmark) .site-title,
body.fffds-wordmark-active #site-header .site-branding:has(.fffds-wordmark) .site-description { display: none !important; }
body.fffds-wordmark-active #site-header .site-logo,
body.fffds-wordmark-active #site-header .custom-logo-link { margin: 0; padding: 0; }
body.fffds-wordmark-active #site-header .fffds-wordmark {
  display: inline-flex;
  align-items: baseline;
  white-space: nowrap;
  text-decoration: none;
  line-height: 1.05;
  font: 850 27px/1.1 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  letter-spacing: -.055em;
  padding: 4px 0;
}
body.fffds-wordmark-active #site-header .fffds-wordmark-fife { color: #14283e; }
body.fffds-wordmark-active #site-header .fffds-wordmark-football { color: #0d6e9d; }
body.fffds-wordmark-active #site-header .fffds-wordmark-dot { color: #d9477f; }
body.fffds-wordmark-active #site-header .fffds-wordmark:hover { opacity: .87; }
body.fffds-wordmark-active #site-header .fffds-wordmark:focus-visible { outline: 3px solid #d9477f; outline-offset: 5px; border-radius: 3px; }

body.fffds-wordmark-active #site-header .site-navigation {
  display: flex;
  flex: 0 1 auto;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 0 auto;
  padding: 0;
  width: auto;
  min-width: 0;
  max-width: none;
}
body.fffds-wordmark-active #site-header .site-navigation ul.menu {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  list-style: none;
  margin: 0;
  padding: 0;
}
body.fffds-wordmark-active #site-header .site-navigation ul.menu > li { display: flex; margin: 0; padding: 0; }
body.fffds-wordmark-active #site-header .site-navigation ul.menu > li > a {
  display: block;
  color: #31556d;
  font: 700 13px/1.3 system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  padding: 12px 11px;
  transition: background .14s ease, color .14s ease;
}
body.fffds-wordmark-active #site-header .site-navigation a:hover,
body.fffds-wordmark-active #site-header .site-navigation a:focus-visible {
  color: #0d6e9d;
  background: #f2f7fb;
}
body.fffds-wordmark-active #site-header .site-navigation .current-menu-item > a,
body.fffds-wordmark-active #site-header .site-navigation .current-menu-ancestor > a,
body.fffds-wordmark-active #site-header .site-navigation .current_page_item > a {
  color: #c52d68;
  background: #fdebf2;
}
body.fffds-wordmark-active #site-header .site-navigation ul.menu li ul {
  z-index: 1200;
  margin: 0;
  background: #fff;
  border: 1px solid #e4ebf1;
  border-radius: 8px;
  box-shadow: 0 8px 28px rgba(14,34,55,.12);
}
body.fffds-wordmark-active #site-header .site-navigation ul.menu li ul a {
  color: #31556d;
  font-size: 13px;
  padding: 11px 14px;
  text-decoration: none;
}
/* Desktop: Hello's own toggle is not needed. The JS toggle is only for the simple header. */
body.fffds-wordmark-active #site-header .fffds-menu-toggle,
body.fffds-wordmark-active #site-header .site-navigation-toggle-holder { display: none; }

@media (max-width: 1120px) {
  body.fffds-wordmark-active #site-header {
    padding: 12px 22px;
    gap: 12px;
    min-height: 66px;
  }
  body.fffds-wordmark-active #site-header .header-inner { gap: 12px; }
  body.fffds-wordmark-active #site-header .fffds-wordmark { font-size: 25px; }
  body.fffds-wordmark-active #site-header .site-navigation ul.menu > li > a { font-size: 12px; padding: 10px 8px; }
}
@media (max-width: 980px) {
  body.fffds-wordmark-active #site-header { min-height: 64px; padding: 11px 18px; }
  body.fffds-wordmark-active #site-header .fffds-wordmark { font-size: 25px; }
  /* Simple Hello header: JS creates an accessible button; no-JS users see the menu. */
  body.fffds-wordmark-active #site-header.fffds-js-ready:not(.dynamic-header) .fffds-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 42px;
    height: 40px;
    border: 1px solid #d2e0ea;
    border-radius: 9px;
    background: #fff;
    color: #14283e;
    cursor: pointer;
    font-size: 23px;
    font-weight: 500;
  }
  body.fffds-wordmark-active #site-header.fffds-js-ready:not(.dynamic-header) .site-navigation { display: none; }
  body.fffds-wordmark-active #site-header.fffds-mobile-open:not(.dynamic-header) .site-navigation {
    display: block;
    position: absolute;
    left: 12px;
    right: 12px;
    top: 100%;
    z-index: 1200;
    margin: 0;
    width: auto;
    background: #fff;
    border: 1px solid #e4ebf1;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 16px 32px rgba(14,34,55,.14);
  }
  body.fffds-wordmark-active #site-header.fffds-mobile-open:not(.dynamic-header) .site-navigation ul.menu {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }
  body.fffds-wordmark-active #site-header.fffds-mobile-open:not(.dynamic-header) .site-navigation ul.menu > li { display: block; }
  body.fffds-wordmark-active #site-header.fffds-mobile-open:not(.dynamic-header) .site-navigation ul.menu > li > a {
    display: block;
    white-space: normal;
    padding: 12px 14px;
    font-size: 14px;
  }
  body.fffds-wordmark-active #site-header.fffds-mobile-open:not(.dynamic-header) .site-navigation ul.menu ul {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    padding-left: 16px;
  }
  /* Dynamic Hello header: keep its built-in mobile dropdown and toggle behaviour. */
  body.fffds-wordmark-active #site-header.dynamic-header .site-navigation { display: none !important; }
  body.fffds-wordmark-active #site-header.dynamic-header .site-navigation-toggle-holder {
    display: flex !important;
    justify-content: flex-end;
    align-items: center;
    margin-left: auto;
    padding: 0;
  }
  body.fffds-wordmark-active #site-header.dynamic-header .site-navigation-toggle {
    border: 1px solid #d2e0ea;
    background: #fff;
    color: #14283e;
    border-radius: 9px;
  }
  body.fffds-wordmark-active #site-header.dynamic-header .site-navigation-dropdown {
    position: absolute;
    z-index: 1200;
    top: 100%;
    bottom: auto;
    left: 0;
    width: 100%;
    margin: 0;
  }
  body.fffds-wordmark-active #site-header.dynamic-header .site-navigation-dropdown ul.menu { position: relative; }
  body.fffds-wordmark-active #site-header.dynamic-header .site-navigation-dropdown ul.menu li a {
    color: #31556d;
    background: #fff;
    padding: 13px 18px;
    font-size: 14px;
  }
  body.fffds-wordmark-active #site-header.dynamic-header .site-navigation-dropdown ul.menu li.current-menu-item > a {
    color: #c52d68;
    background: #fdebf2;
  }
}
@media (min-width: 981px) {
  body.fffds-wordmark-active #site-header.dynamic-header .site-navigation { display: flex !important; }
  body.fffds-wordmark-active #site-header.dynamic-header .site-navigation-toggle-holder { display: none !important; }
}
@media (max-width: 782px) {
  body.admin-bar.fffds-wordmark-active #site-header { top: 46px; }
}
@media (max-width: 600px) {
  body.fffds-wordmark-active #site-header { padding: 10px 14px; }
  body.fffds-wordmark-active #site-header .fffds-wordmark { font-size: 23px; }
}
@media (prefers-reduced-motion: reduce) {
  body.fffds-wordmark-active #site-header * { transition-duration: 0.01ms !important; }
}
