/* Shared by the public desktop homepage and design D. */
:root
{
    --gm-max-tool-width: 1248px;
    --gm-header-top-gap: 0px;
    --gm-header-bar-height: 68px;
}

.gm-container
{
    padding-inline: clamp(16px, 3vw, 40px);
}

.gm-header
{
    background: var(--public-header);
}

.gm-header__inner
{
    padding-inline: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.gm-header__identity
{
    gap: 6px;
}

.gm-wordmark
{
    font-size: clamp(18px, 2.4vw, 32px);
}

.gm-header__inner :is(.gm-header__sound, .gm-header__icon-link, .gm-header__login, .gm-header__account-button, .gm-header__menu-button)
{
    border-color: var(--gm-header-icon-color, transparent);
    background: var(--public-header-soft);
    color: var(--public-text);
}

.gm-header__inner .gm-header__menu-button
{
    background: var(--public-secondary);
}

.gm-header__inner :is(.gm-header__sound, .gm-header__icon-link, .gm-header__login, .gm-header__account-button, .gm-header__menu-button):hover
{
    background: var(--public-surface);
}

.gm-main, .flow-main
{
    flex: none;
    padding-block: clamp(40px, 5vw, 76px) clamp(30px, 4vw, 62px);
}

.desktop-home
{
    display: grid;
    grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
    align-items: start;
    gap: clamp(32px, 4vw, 64px);
}

.desktop-home__intro
{
    display: grid;
    justify-items: start;
    align-content: start;
    gap: 18px;
}

.desktop-home__eyebrow, .desktop-home__copy p
{
    margin: 0;
}

.desktop-home__eyebrow
{
    font-weight: 700;
}

.desktop-home__intro h1
{
    margin: 0;
    font-size: clamp(48px, 4.8vw, 70px);
    font-weight: 800;
    letter-spacing: -0.055em;
    line-height: 1.04;
}

.desktop-home__intro em
{
    color: var(--public-primary);
    font-style: normal;
    text-decoration: underline var(--public-secondary) 0.078em;
    text-underline-offset: 0.08em;
}

.desktop-home__copy
{
    color: var(--public-muted-text);
    font-size: clamp(18px, 1.55vw, 23px);
    line-height: 1.45;
}

.desktop-home__portrait
{
    position: relative;
    isolation: isolate;
    width: min(83%, clamp(220px, 22vw, 310px));
    margin: 4px 0 0 4%;
    text-align: center;
}

.desktop-home__portrait::before
{
    position: absolute;
    z-index: -1;
    inset: auto 0 0;
    height: 18%;
    border-radius: 50%;
    background: color-mix(in srgb, var(--public-secondary) 72%, var(--public-background));
    content: '';
}

.desktop-home__portrait img
{
    display: block;
    width: 88%;
    height: auto;
    margin: auto;
    border-radius: 0 0 18% 18%;
}

.desktop-home__jump
{
    display: none;
}

.desktop-home__finder
{
    position: relative;
    min-width: 0;
    scroll-margin-top: 12px;
}

.desktop-home__mascot
{
    position: absolute;
    z-index: 2;
    top: -42px;
    right: -12px;
    width: clamp(82px, 7.4vw, 112px);
    height: auto;
    pointer-events: none;
}

.desktop-home__finder:has(.sd-page--open) .desktop-home__mascot
{
    visibility: hidden;
}

.desktop-home__finder .sd-page
{
    --sd-columns: 3;
    --gf-accent: var(--public-primary);
    --gf-accent-strong: var(--public-primary-strong);
    /* The shared drawer normally aligns its rail to the viewport edge. Keep it in this panel. */
    --sd-edge-offset: 0px !important;
    padding: clamp(16px, 1.8vw, 28px);
    border-radius: 24px;
    background: linear-gradient(145deg, var(--public-surface), color-mix(in srgb, var(--public-surface) 78%, var(--public-soft-accent)));
    box-shadow: 0 10px 32px var(--public-shadow-soft);
}

.desktop-home__finder .sd-intro
{
    padding-inline-end: 58px;
    margin-bottom: 18px;
}

.desktop-home__finder .sd-intro h2
{
    font-size: clamp(24px, 2.2vw, 34px);
}

.desktop-home__finder .sd-overview
{
    gap: 9px;
}

.desktop-home__finder .sd-cell
{
    min-height: clamp(90px, 7.8vw, 116px);
    padding: 8px;
    align-self: stretch;
}

.desktop-home__finder .sd-cell__title
{
    order: 1;
    flex: none;
    font-size: clamp(13px, 1.15vw, 17px);
    line-height: 1.2;
}

.desktop-home__finder .sd-cell__empty img
{
    width: clamp(44px, 4.1vw, 60px);
    height: auto;
    aspect-ratio: 1;
}

.desktop-home__finder .sd-page .gf-footer
{
    padding: 8px 0 0;
    background: transparent;
}

.desktop-home__finder .gf-status
{
    font-size: 13px;
}

.gm-footer
{
    border-top: 1px solid var(--public-border);
}

.gm-footer__frame
{
    padding-inline: 0;
    border: 0;
}

@media (min-width: 960px)
{
    .gift-shortcuts
    {
        display: block;
        background: color-mix(in srgb, var(--public-soft-accent) 58%, var(--public-surface));
        color: var(--public-text);
    }

    .gift-shortcuts__links
    {
        display: flex;
        flex-wrap: wrap;
        column-gap: 1px;
        /* A divider in the gap falls outside the row at a wrapped line's start. */
        overflow: clip;
    }

    .gift-shortcuts a
    {
        position: relative;
        display: flex;
        flex: 1 1 11rem;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        align-content: center;
        gap: clamp(3px, 0.35vw, 6px);
        min-width: 0;
        min-height: 50px;
        padding: 6px clamp(8px, 1.15vw, 20px);
        font-size: clamp(13px, 1.08vw, 16px);
        font-weight: 700;
        text-align: center;
        overflow-wrap: anywhere;
        color: inherit;
        text-decoration: none;
        cursor: pointer;
    }

    .gift-shortcuts a + a::before
    {
        position: absolute;
        inset-block: 11px;
        inset-inline-start: -1px;
        width: 1px;
        background: color-mix(in srgb, var(--public-text) 25%, transparent);
        content: '';
    }

    .gift-shortcuts img
    {
        flex: none;
        width: clamp(18px, 1.6vw, 24px);
        height: auto;
        aspect-ratio: 1;
        object-fit: contain;
    }

    .gift-shortcuts img:first-child
    {
        width: clamp(22px, 2.15vw, 32px);
    }

    @media (hover: hover)
    {
        .gift-shortcuts a:hover
        {
            background: color-mix(in srgb, var(--public-primary) 7%, transparent);
        }
    }

    .gift-shortcuts a:focus-visible
    {
        outline: 2px solid var(--public-primary-strong);
        outline-offset: -3px;
    }

    .flow-main
    {
        position: relative;
        z-index: 1;
    }

    .flow-pink, .flow-mascot-target
    {
        display: none;
    }

    .desktop-home__portrait
    {
        order: 1;
    }

    .desktop-home__finder .sd-page
    {
        --sd-drawer-width: 100%;
    }

    .desktop-home__finder .sd-page--open
    {
        height: auto;
    }

    .desktop-home__finder .sd-drawer-host
    {
        --sd-panel-radius: 24px 24px 0 0;
    }
}

@media (max-width: 959px)
{
    .gm-main
    {
        padding-block: 28px;
    }

    .desktop-home
    {
        max-width: 720px;
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .desktop-home__intro
    {
        grid-template-columns: minmax(90px, 0.65fr) minmax(0, 1.35fr);
        align-items: center;
        gap: 12px;
    }

    .desktop-home__intro h1, .desktop-home__eyebrow
    {
        grid-column: 1 / -1;
    }

    .desktop-home__intro h1
    {
        font-size: clamp(36px, 7.5vw, 54px);
    }

    .desktop-home__portrait
    {
        grid-area: 3 / 1;
        width: min(100%, 146px);
        margin: 0;
    }

    .desktop-home__copy
    {
        grid-area: 3 / 2;
        font-size: 16px;
    }

    .desktop-home__jump
    {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 44px;
        margin-top: 8px;
        padding: 0 16px;
        border-radius: 12px;
        background: var(--public-primary);
        color: var(--public-on-primary);
        font-weight: 700;
        cursor: pointer;
    }

    .desktop-home__jump:hover
    {
        background: var(--public-primary-strong);
    }

    .desktop-home__jump:focus-visible
    {
        outline: 3px solid var(--public-primary-strong);
        outline-offset: 3px;
    }

    .desktop-home__mascot
    {
        top: -25px;
        right: -3px;
        width: 70px;
    }
}

@media (max-width: 479px)
{
    :root
    {
        --gm-header-bar-height: 58px;
    }

    .gm-header > .gm-container
    {
        padding-inline: 10px;
    }

    .gm-header__actions
    {
        gap: 4px;
    }

    .desktop-home__finder .sd-page
    {
        padding: 12px 8px;
    }

    .desktop-home__finder .sd-overview
    {
        gap: 6px;
    }

    .desktop-home__finder .sd-intro
    {
        margin-bottom: 12px;
    }

    .desktop-home__finder .sd-cell
    {
        padding: 6px 3px;
    }
}

@media (max-width: 379px)
{
    .gm-header__identity > .flexicon
    {
        display: none;
    }

    .gm-wordmark
    {
        font-size: 16px;
    }

    .gm-header__inner
    {
        gap: 4px;
    }

    .gm-header__login
    {
        padding-inline: 8px;
    }
}
