/* Shared public navigation only; never targets signed-in Trade Shop navigation. */
nav.pw-navigation,
nav.pw-navigation * {
    box-sizing: border-box;
}

nav.pw-navigation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 999;
    display: flex;
    align-items: center;
    font-family: 'Avenir', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    transition: background-color .3s ease;
}

nav.pw-navigation .floating-brand {
    position: absolute;
    top: 50%;
    left: 32px;
    transform: translateY(-50%);
    z-index: 1000;
}

nav.pw-navigation .brand-text {
    font-family: inherit;
    font-size: 17.6px;
    font-weight: 400 !important;
    line-height: 1.5;
    letter-spacing: .2em;
    text-transform: uppercase;
    white-space: nowrap;
    text-decoration: none;
    color: #fff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .5);
}

nav.pw-navigation .floating-nav-menu {
    position: absolute;
    top: 50%;
    right: 32px;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 20px;
    z-index: 1000;
}

nav.pw-navigation .floating-nav-button {
    font-family: inherit;
    font-size: 16px;
    font-weight: 500 !important; /* Legacy per-page hover rules must not shift links. */
    line-height: 1.5;
    letter-spacing: normal;
    padding: 8px 12px;
    border: 0;
    border-radius: 4px;
    background: none;
    white-space: nowrap;
    text-decoration: none;
    text-underline-offset: 6px;
    color: #fff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, .5);
    transition: color .2s ease;
}

nav.pw-navigation .floating-nav-button.active,
nav.pw-navigation .floating-nav-button:hover {
    text-decoration: underline;
}

nav.pw-navigation:hover,
nav.pw-navigation:focus-within {
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(10px);
}

nav.pw-navigation:hover .floating-nav-button,
nav.pw-navigation:hover .brand-text,
nav.pw-navigation:focus-within .floating-nav-button,
nav.pw-navigation:focus-within .brand-text {
    color: #2d5016 !important;
    text-shadow: none;
}

nav.pw-navigation a:focus-visible,
nav.pw-navigation button:focus-visible {
    outline: 2px solid #97ba27;
    outline-offset: 4px;
}

@media (min-width: 769px) and (max-width: 1200px) {
    nav.pw-navigation .floating-brand { left: 20px; }
    nav.pw-navigation .brand-text { font-size: 12.8px; letter-spacing: .12em; }
    nav.pw-navigation .floating-nav-menu { right: 16px; gap: 5px; }
    nav.pw-navigation .floating-nav-button { font-size: 13.6px; padding-inline: 8px; }
}

@media (max-width: 768px) {
    nav.pw-navigation .floating-brand { left: 16px; }
    nav.pw-navigation .brand-text { font-size: 12.8px; letter-spacing: .1em; }
    nav.pw-navigation .floating-nav-button {
        font-size: 16.8px;
        padding: 14px 28px;
        letter-spacing: .05em;
        border-radius: 0;
        border-bottom: 1px solid rgba(45, 80, 22, .12);
        color: #2d5016 !important;
        text-shadow: none;
    }
    nav.pw-navigation .floating-nav-button:last-child { border-bottom: 0; }
}
