/* Shared header auth styles.
 *
 * Loaded by /privacy and /terms (legal pages) for their signed-in
 * avatar dropdown. /index3 has the same styles inlined — when you
 * tweak something here, mirror the change in index3.html (search for
 * `.account-menu-` to find the block). Long-term we should fold
 * index3 onto these shared files too.
 */

/* === Account menu (signed-in avatar dropdown) === */
.account-menu-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
}
.account-avatar-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px 2px 2px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 22px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    font-family: inherit;
    /* Match the height of the .landing-btn (Login / Sign up) buttons so
       toggling from signed-out → signed-in doesn't change the header's
       intrinsic height. Without this, the SVG logo re-centers each
       time the auth state resolves on page load → visible jitter on
       every reload for signed-in users. */
    min-height: 42px;
}
.account-avatar-btn:hover,
.account-avatar-btn[aria-expanded="true"] {
    background: #FAF6F2;
    border-color: #EFE6DE;
}
.account-avatar-btn:focus-visible {
    outline: 2px solid #BF3143;
    outline-offset: 2px;
}
.account-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #BF3143;
    color: #FFFFFF;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    overflow: hidden;
    user-select: none;
}
.account-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.account-chevron {
    width: 14px;
    height: 14px;
    color: #6B6B6B;
    flex-shrink: 0;
}

.account-menu-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    width: 240px;
    background: #FFFFFF;
    border: 1px solid #EFE6DE;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(30, 20, 14, 0.10), 0 2px 6px rgba(30, 20, 14, 0.04);
    padding: 6px;
    z-index: 100;
    font-family: 'Inter', sans-serif;
}
.account-menu-panel[hidden] { display: none; }

.account-menu-header { padding: 10px 12px 12px; }
.account-menu-name {
    font-size: 14px;
    font-weight: 600;
    color: #1A1A1A;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.account-menu-email {
    font-size: 12px;
    font-weight: 400;
    color: #6B6B6B;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.account-menu-divider {
    height: 1px;
    background: #EFE6DE;
    margin: 4px 8px;
}
.account-menu-item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
    background: transparent;
    border: none;
    text-decoration: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.12s ease;
}
.account-menu-item:hover,
.account-menu-item:focus-visible {
    background: #FAF6F2;
    outline: none;
}
.account-menu-item-danger { color: #BF3143; }
.account-menu-item-danger:hover,
.account-menu-item-danger:focus-visible {
    background: #FDEEF0;
}
