/* ---------------------------------------------------------------------------
   "Continue?" dialog — shown when a signed-out visitor tries to run a search.

   Both the scrim and the dialog are `position: fixed`, so the dialog is always
   centred in the viewport. It used to be `position: absolute` with `top: 30%`,
   which resolved against the (very tall) page body and pushed the dialog far
   below the fold — the visitor had to scroll to find out why nothing happened.

   Colours come from the same set as the rest of the site: near-black surface,
   1px hairline border, white primary button, ghost secondary.
   --------------------------------------------------------------------------- */

#card_overlay {
    position: fixed;
    inset: 0;

    /* Above the sticky header (z-index 1000) and the cookie widget, so the
       dialog really is modal rather than sitting under the site chrome. */
    z-index: 2000;
    display: none;
    background: rgba(0, 0, 0, 0.66);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    animation: card-scrim-in 0.18s ease-out;
}

#card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2001;

    display: none; /* toggled to `flex` by the page script */
    flex-direction: column;
    width: 360px;
    max-width: calc(100vw - 32px);

    background: #0a0a0a;
    border: 1px solid hsla(0, 0%, 100%, 0.12);
    border-radius: 14px;
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.3),
        0 16px 48px rgba(0, 0, 0, 0.7);
    animation: card-in 0.18s ease-out;
}

@keyframes card-scrim-in {
    from {
        opacity: 0;
    }
}

@keyframes card-in {
    from {
        opacity: 0;
        transform: translate(-50%, calc(-50% + 8px)) scale(0.98);
    }
}

#card .text {
    box-sizing: border-box;
    width: 100%;
    padding: 24px 24px 20px;
    text-align: left;
}

#card .title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: #ededed;
}

#card .info {
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
    color: #a1a1a1;
}

#card .buttons {
    display: flex;
    gap: 8px;
    width: 100%;
    margin: 0;
    padding: 0 24px 24px;
    box-sizing: border-box;
}

#card .button {
    display: flex;
    flex: 1 1 0;
    min-width: 0;
    align-items: center;
    justify-content: center;
    height: 40px;
    margin: 0;
    padding: 0 14px;

    /* `.button` is also a Webflow class that ships a violet border and wide
       letter-spacing; both are reset here rather than inherited. */
    border: none;
    border-radius: 6px;

    /* Secondary / ghost: same treatment as the site's outline buttons. */
    background: transparent;
    color: #ededed;
    box-shadow: 0 0 0 1px hsla(0, 0%, 100%, 0.14);

    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: normal;
    line-height: 1;
    text-transform: none;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

#card .button:hover {
    background: hsla(0, 0%, 100%, 0.06);
    box-shadow: 0 0 0 1px hsla(0, 0%, 100%, 0.24);
}

/* Primary: the white button used for "Account" / "Start Now" in the top bar. */
#card .button.button-primary {
    background: #ededed;
    color: #0a0a0a;
    box-shadow: none;
}

#card .button.button-primary:hover {
    background: #cccccc;
    box-shadow: none;
}

#card .button:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 2px #0a0a0a,
        0 0 0 4px hsla(0, 0%, 100%, 0.4);
}

/* The speech-bubble artwork behind the title was never animated in (its
   opacity stayed at 0) and does not fit the flat panel style. */
#card .popup-bg,
#card .popup-outline,
#card .popup-text {
    display: none;
}

@media (max-width: 480px) {
    #card .text {
        padding: 20px 20px 16px;
    }

    #card .buttons {
        padding: 0 20px 20px;
    }
}
