/* fgb-header-patch — responsive nav visibility.
 * Replaces the server-side wp_is_mobile() show/hide removed from the header.
 * Desktop: nav inline; mobile: hidden until the theme's .nav-active opens it. */
@media ( min-width: 1025px ) {
    #header #mainNav.nav-bar { display: flex; }
}
@media ( max-width: 1024px ) {
    #header #mainNav.nav-bar { display: none; }
    #wrapper.nav-active #header #mainNav.nav-bar { display: block; }
}

/* Skip-to-content link styling.
 * The plugin INJECTS <a class="fgb-skip-link"> into the header, so it must also
 * ship the styles — visually hidden until focused, then revealed with a
 * high-contrast indicator. (On sites whose theme already styles it this is
 * harmless/duplicate; on old-header sites where we inject it, this is required
 * so it isn't shown as plain text.) */
.fgb-skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect( 1px, 1px, 1px, 1px );
    clip-path: inset( 50% );
    white-space: nowrap;
    background-color: #fff;
    color: #2c2c2c;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: underline;
    border-radius: 0 0 4px 0;
    z-index: 100000;
}
.fgb-skip-link:focus,
.fgb-skip-link:focus-visible,
.fgb-skip-link:active {
    position: fixed;
    left: 0;
    top: 0;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    outline: 3px solid #ed6a00;
    outline-offset: 2px;
    box-shadow: 0 2px 8px rgba( 0, 0, 0, 0.4 );
    text-decoration: underline;
}
