.nav-auth-pending {
    cursor: wait;
    opacity: 0.55;
}

.nav-auth-cluster {
    position: relative;
}

.nav-cloudkit-auth {
    align-items: center;
    display: inline-flex;
    min-height: 40px;
    min-width: 40px;
}

/* CloudKit owns the click handler that opens Apple's authentication popup.
   Keep that real control visible, but make it fit the quiet site navigation. */
.nav-cloudkit-auth > .apple-auth-button {
    align-items: center !important;
    background: none !important;
    border: 0 !important;
    color: #383b38;
    display: inline-flex !important;
    font-family: inherit;
    font-size: 0.89rem;
    font-weight: 500;
    height: auto !important;
    justify-content: center;
    padding: 0;
    width: auto !important;
}

.nav-cloudkit-auth > .apple-auth-button::after {
    content: "Log in";
}

.nav-cloudkit-auth > .apple-auth-button:hover {
    color: var(--accent);
}

.nav-cloudkit-auth > .apple-auth-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.nav-cloudkit-auth .apple-auth-button-text {
    display: none !important;
}

.nav-auth-message {
    background: var(--surface);
    border: 1px solid var(--line-dark);
    border-radius: 7px;
    box-shadow: 0 12px 32px rgba(31, 33, 31, 0.12);
    color: var(--ink-soft);
    font-size: 0.78rem;
    line-height: 1.5;
    padding: 12px 14px;
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: min(330px, calc(100vw - 32px));
}

.nav-auth-message a {
    color: var(--accent);
    display: inline-block;
    font-size: inherit;
    font-weight: 650;
    margin-left: 3px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-handoff-frame {
    border: 0;
    height: 1px;
    left: -10000px;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    width: 1px;
}
