/*
 * account-bar.css — styles for the shared account bar emitted by
 * partials/header.php. Moved out of an inline <style> block (2026-10-27)
 * because a <style> element inside <body> fails W3C validation.
 *
 * Relies on the including page defining --text, --accent and --accent-hv.
 */

.account-bar {
    background: var(--text);
    color: #fff;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.82rem;
}

.account-bar-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.account-bar-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.account-bar-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    text-decoration: none;
    opacity: 1 !important;
    letter-spacing: -0.01em;
}

.account-bar-logo-icon {
    width: 22px;
    height: 22px;
    background: var(--accent);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.account-bar-logo-icon svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: #fff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-bar a {
    color: #fff;
    text-decoration: none;
    opacity: 0.85;
    transition: opacity 0.15s;
}

.account-bar a:hover { opacity: 1; text-decoration: underline; }

.account-credit-badge {
    background: rgba(255,255,255,0.15);
    padding: 3px 12px;
    border-radius: 999px;
    font-weight: 600;
}

.account-signup-btn {
    background: var(--accent);
    padding: 5px 14px;
    border-radius: 5px;
    font-weight: 600;
    opacity: 1 !important;
}

.account-signup-btn:hover { background: var(--accent-hv); text-decoration: none !important; }

/* Matches the 500px breakpoint used by most pages' own media queries.
   This wrap behavior previously existed only in subnetcalc.php (the one
   page that had ever needed it) -- made universal here since every page
   now shares identical account-bar markup via the header partial. */
@media (max-width: 500px) {
    .account-bar {
        flex-wrap: wrap;
        gap: 8px;
    }
}
