/* Shared homepage/results layout, search and discovery; hero rules apply only to the homepage hero. */
@media screen {
    html:root .public-portal.portal-discovery {
        --home-content: 1180px;
        --home-overlap: clamp(110px, 10vw, 220px);
        --home-hero-tone: #fff5fb;
        --home-search-tone: linear-gradient(135deg, #fff, #fff3fa);
        --home-search-frame: #dda8ce;
        --home-crown: #a96618;
    }

    html[data-theme="dark"] .public-portal.portal-discovery {
        --paper: #1a0819;
        --home-hero-tone: #1b0719;
        --home-search-tone: radial-gradient(ellipse at top, #3d1635, #240d22 75%);
        --home-search-frame: #c247a3;
        --home-crown: #ffd37e;
    }

    html:root .public-portal.portal-discovery :is(.site-header, .portal-search-heading, .portal-hero-content, .portal-categories, .portal-cuisine-list, .portal-restaurants, .portal-inspiration, .portal-trust, .portal-app, .footer-grid, .portal-footer-invitation) {
        max-width: var(--home-content);
    }

    html[data-theme="dark"] .public-portal .portal-header-shell {
        background: #210a20;
        border-bottom-color: #5a2c4f;
    }

    html:root .public-portal .portal-hero {
        min-height: clamp(500px, 34vw, 1280px);
        overflow: clip;
        background: var(--home-hero-tone);
    }

    html:root .public-portal .portal-hero::before {
        z-index: 0;
        background: linear-gradient(to top, var(--paper), transparent 48px);
        pointer-events: none;
    }

    .portal-hero-art {
        position: absolute;
        z-index: -1;
        inset-block: 0;
        inset-inline: 0;
        inline-size: 100%;
        background: var(--portal-hero) calc(50% + 8vw) top / cover no-repeat;
        mask-image: linear-gradient(90deg, transparent 10%, #000 28%);
        pointer-events: none;
    }

    html:root .public-portal.portal-discovery .portal-hero-content {
        width: min(calc(100% - 2 * clamp(24px, 6.8vw, 144px)), 1920px);
        max-width: 1920px;
        min-height: inherit;
        display: flex;
        flex-direction: column;
        justify-content: center;
        box-sizing: border-box;
        padding-block: clamp(42px, 4.2vw, 110px) calc(var(--home-overlap) + 30px);
    }

    .portal-hero .portal-eyebrow {
        margin-block-end: clamp(10px, 1vw, 17px);
        font-size: clamp(11px, .79vw, 15px);
    }

    .portal-hero h1 {
        max-width: min(48%, 960px);
        margin-block-end: 13px;
        font-size: clamp(42px, 4.4vw, 96px);
        line-height: 1.05;
    }

    .portal-hero h1 :is(.portal-hero-lead, em) {
        display: block;
        text-wrap: pretty;
    }

    .portal-hero h1 em {
        margin-block-start: .14em;
        font-size: 1em;
    }

    .portal-hero .portal-intro {
        max-width: min(43%, 660px);
        margin-block-end: 16px;
        font-size: clamp(16px, 1.25vw, 24px);
        line-height: 1.45;
    }

    .portal-hero .portal-benefits {
        flex-wrap: wrap;
        gap: 8px clamp(13px, 1.3vw, 26px);
        max-width: 56%;
        font-size: clamp(13px, 1.1vw, 18px);
    }

    .portal-hero .portal-benefits .portal-icon {
        width: clamp(19px, 1.7vw, 29px);
        height: auto;
    }

    html:root .public-portal .portal-hero .portal-neon-crown {
        inset: clamp(32px, 4vw, 110px) auto auto 49%;
        color: var(--home-crown);
        filter: drop-shadow(0 0 4px #ff870e) drop-shadow(0 0 10px #e25c1680);
        transform: rotate(-13deg);
    }

    .portal-hero .portal-neon-crown .portal-icon {
        width: clamp(80px, 7.5vw, 180px);
        height: auto;
    }

    .portal-hero .portal-wave {
        bottom: -1px;
        left: 50%;
        width: 100%;
        height: clamp(110px, 11vw, 280px);
        transform: translateX(-50%);
    }

    html:root .public-portal .portal-hero .wave-photo-mask {
        fill: var(--paper);
    }

    /* Layered, tapered light fabric, with a concentrated highlight at the left crest. */
    html:root .public-portal .portal-hero .wave-ribbon {
        fill: url(#portal-wave-body);
        stroke: none;
    }

    html:root .public-portal .portal-hero .wave-ribbon-back {
        opacity: .42;
    }

    html:root .public-portal .portal-hero .wave-flare {
        fill: url(#portal-wave-flare);
        filter: blur(3px);
    }

    html:root .public-portal .portal-hero :is(.wave-halo, .wave-soft, .wave-trail, .wave-edge) {
        fill: none;
        vector-effect: non-scaling-stroke;
        stroke-linecap: round;
    }

    html:root .public-portal .portal-hero .wave-halo {
        stroke: url(#portal-wave-core);
        stroke-width: 36px;
        opacity: .22;
        filter: blur(10px);
    }

    html:root .public-portal .portal-hero .wave-soft {
        stroke: url(#portal-wave-core);
        stroke-width: 9px;
        opacity: .34;
        filter: blur(3px);
    }

    html:root .public-portal .portal-hero .wave-edge {
        stroke: url(#portal-wave-core);
        stroke-width: 2.6px;
        opacity: .85;
        filter: drop-shadow(0 0 4px #fd27c9);
    }

    html:root .public-portal .portal-hero .wave-trail {
        stroke: url(#portal-wave-core);
        stroke-width: 1px;
        opacity: .14;
    }

    html:root .public-portal .portal-hero .wave-trail-lower {
        opacity: .1;
    }

    html[data-theme="light"] .public-portal .portal-hero .wave-flare {
        opacity: .65;
    }

    html:root .public-portal .portal-search-wrap.search-section {
        width: min(calc(100% - 2 * var(--discovery-gutter)), max(660px, 72%), 1280px) !important;
        padding-block: 0;
        margin-bottom: clamp(19px, 2vw, 32px) !important;
    }

    html:root .public-portal .portal-home-search.search-section {
        margin-top: calc(-1 * var(--home-overlap)) !important;
    }

    html:root .public-portal .portal-results-search .search-toggle {
        background: var(--home-search-tone);
        border-color: var(--home-search-frame);
        color: var(--ink);
    }

    html:root .public-portal .portal-search-heading {
        padding-block: clamp(28px, 3vw, 48px) 24px;
    }

    html:root .public-portal .portal-search-heading h1 {
        font-size: clamp(30px, 3vw, 46px);
        font-weight: 800;
    }

    html:root .public-portal .portal-search-wrap .portal-search {
        max-width: none;
        gap: 7px 10px;
        padding: clamp(12px, 1.3vw, 18px) clamp(12px, 1.9vw, 27px) 12px;
        border-color: var(--home-search-frame);
        border-radius: clamp(17px, 1.6vw, 25px);
        background: var(--home-search-tone);
        box-shadow: 0 8px 23px #3e0e3533;
    }

    html[data-theme="dark"] .public-portal .portal-search-wrap .portal-search {
        box-shadow: 0 0 20px #da26845c, inset 0 0 14px #d3378f38;
    }

    html[data-theme="dark"] .public-portal.portal-discovery :is(.search-submit, .card-shop-link, .portal-modes [aria-pressed="true"], .site-header a[aria-current="page"], .portal-register) {
        background: linear-gradient(180deg, #eb0aa0, #a50372 86%);
        border-color: #d841ae;
        box-shadow: inset 0 1px 3px #ffaeeb80, 0 2px 9px #d6158b40;
        color: #fff;
    }

    .portal-search-wrap .portal-modes button {
        min-height: 38px;
        padding-inline: clamp(10px, 1.2vw, 20px);
    }

    html:root .public-portal .portal-search-wrap .search-submit {
        min-width: clamp(190px, 16vw, 258px);
        min-height: 52px;
    }

    html:root .public-portal .portal-search-wrap #search-postal {
        min-height: 52px;
        height: 52px;
    }

    .portal-search-wrap .location-combobox > .portal-icon {
        top: 50%;
        transform: translateY(-50%);
    }

    html:root .public-portal .portal-search-wrap .portal-search-options {
        grid-column: 1 / -1;
        position: static;
        gap: 5px 16px;
        margin: 0;
        min-height: 22px;
    }

    html:root .public-portal .portal-search-wrap .portal-locate {
        min-height: 22px;
        font-weight: 700;
        padding-inline: 3px;
    }

    html:root .public-portal .portal-search-wrap .surprise {
        margin: 9px 0 0;
    }

    html:root .public-portal.portal-discovery :is(.portal-categories, .portal-cuisine-list, .portal-restaurants, .portal-inspiration) {
        --discovery-gap: 16px;
        --discovery-title: 22px;
        --discovery-copy: 15px;
    }

    html:root .public-portal.portal-discovery .portal-categories {
        gap: clamp(9px, 1vw, 14px);
        margin-block-end: clamp(18px, 2vw, 34px) !important;
    }

    html:root .public-portal.portal-discovery .portal-cuisine {
        min-height: clamp(72px, 6.4vw, 86px);
        font-size: 14px;
    }

    html:root .public-portal.portal-discovery .portal-cuisine .portal-icon {
        width: clamp(26px, 2.25vw, 36px);
        height: auto;
    }

    html:root .public-portal.portal-discovery .portal-dish-photo {
        aspect-ratio: 16 / 9;
    }

    html:root .public-portal.portal-discovery .portal-section-heading {
        margin-bottom: 11px;
    }

    html:root .public-portal.portal-discovery .portal-section-heading h2 {
        font-size: clamp(24px, 2vw, 30px);
    }

    html:root .public-portal.portal-discovery .portal-inspiration {
        margin-top: 23px !important;
    }

    html:root .public-portal.portal-discovery .portal-dish-info {
        padding: 9px 49px 11px 12px;
        gap: 2px;
    }

    html:root .public-portal.portal-discovery .portal-dish-info strong {
        font-size: 16px;
    }

    html:root .public-portal.portal-discovery .portal-dish-info > span {
        font-size: 13px;
    }

    html:root .public-portal.portal-discovery .portal-dish-arrow {
        width: 33px;
        height: 33px;
        bottom: 12px;
        right: 10px;
    }

    html[data-theme="dark"] .public-portal.portal-discovery :is(.portal-cuisine, .portal-dish, .portal-restaurants .service-card) {
        background: linear-gradient(158deg, #32162c, #21101f);
        border-color: #6d365c;
    }

    html[data-theme="dark"] .public-portal.portal-discovery :is(.portal-cuisine:is(:hover, .is-selected), .portal-dish:hover, .portal-restaurants .service-card:hover) {
        border-color: #d84bad;
    }

    html[data-theme="dark"] .public-portal.portal-discovery .portal-cuisine.is-selected {
        background: linear-gradient(155deg, #c20b87, #7d075b);
        box-shadow: inset 0 0 14px #ff76d46b, 0 0 12px #d9269b49;
    }

    html[data-theme="dark"] .public-portal.portal-discovery .portal-restaurants .service-card .card-content {
        background: transparent;
    }

    html[data-theme="dark"] .public-portal.portal-discovery .portal-app {
        background: radial-gradient(ellipse at 8% 105%, #ff36c9 0%, transparent 58%), linear-gradient(110deg, #c00084, #80005e 55%, #bd148a);
        border-color: #df43b0;
    }

    .portal-app-crown {
        opacity: .46;
        filter: drop-shadow(0 0 9px #ff6acb);
    }

    html:root .public-portal.portal-discovery .service-card .card-fulfillment {
        font-size: 14px;
    }

    @media (min-width: 1121px) {
        html:root .public-portal .site-header {
            min-height: 62px;
            height: 62px;
        }

        html:root .public-portal.portal-discovery .site-header > nav {
            font-size: 13px;
        }

        html:root .public-portal.portal-discovery .portal-service-grid {
            grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        html:root .public-portal.portal-discovery .portal-dishes {
            grid-template-columns: repeat(5, minmax(0, 1fr));
        }

        html:root .public-portal.portal-discovery .portal-restaurants .service-card .card-media,
        html:root .public-portal.portal-discovery .portal-restaurants .service-card .card-royal-art {
            aspect-ratio: 5 / 2;
        }

        html:root .public-portal.portal-discovery .portal-restaurants .card-content {
            padding: 12px;
        }

        html:root .public-portal.portal-discovery .portal-restaurants .service-card .card-media .service-logo {
            width: 49px;
            height: 49px;
            left: 11px;
            bottom: -41px;
        }

        html:root .public-portal.portal-discovery .portal-restaurants .service-card h3 {
            font-size: 20px;
            margin-bottom: 4px;
        }

        html:root .public-portal.portal-discovery .portal-restaurants .service-card:has(.service-logo) :is(h3, .card-city, .card-categories) {
            padding-inline-start: 56px;
        }

        html:root .public-portal.portal-discovery .portal-restaurants .service-card :is(.card-city, .card-categories) {
            margin-bottom: 5px;
            line-height: 1.35;
        }

        html:root .public-portal.portal-discovery .portal-restaurants .service-card .card-fulfillment {
            margin-bottom: 9px;
        }

        html:root .public-portal.portal-discovery .portal-restaurants .service-card .card-shop-link {
            min-height: 44px;
            padding-block: 7px;
            font-size: 16px;
        }
    }

    @media (min-width: 701px) and (max-width: 1120px) {
        html:root .public-portal.portal-discovery .portal-service-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .portal-hero-art {
            mask-image: linear-gradient(90deg, transparent 10%, #000 45%);
        }

        .portal-hero h1 {
            max-width: 67%;
        }

        html:root .public-portal .portal-hero .portal-neon-crown {
            inset-inline-start: 62%;
        }
    }

    @media (max-width: 700px) {
        html:root .public-portal.portal-discovery {
            --home-overlap: 35px;
        }

        html:root .public-portal .portal-hero {
            min-height: 0;
        }

        .portal-hero-art {
            inset-block: auto 0;
            inset-inline-start: auto;
            inset-inline-end: -8%;
            inline-size: min(142%, 720px);
            block-size: clamp(180px, 58vw, 320px);
            background-size: cover;
            background-position: right center;
            mask-image: linear-gradient(180deg, transparent, #000 28%);
        }

        html:root .public-portal.portal-discovery .portal-hero-content {
            width: calc(100% - 32px);
            min-height: 0;
            padding-block: 26px calc(clamp(140px, 48vw, 260px) + var(--home-overlap));
        }

        .portal-hero .portal-eyebrow {
            font-size: 10px;
        }

        .portal-hero h1 {
            max-width: 100%;
            margin-block-end: 10px;
            font-size: clamp(32px, 8.2vw, 54px);
        }

        .portal-hero .portal-intro {
            max-width: 52ch;
            font-size: 14px;
        }

        .portal-hero .portal-benefits {
            max-width: 100%;
            gap: 6px 11px;
            font-size: 11px;
        }

        .portal-hero .portal-benefits li {
            gap: 4px;
        }

        .portal-hero .portal-benefits .portal-icon {
            width: 17px;
        }

        html:root .public-portal .portal-hero .portal-neon-crown {
            inset: auto auto clamp(99px, calc(28vw + 13px), 152px) 12%;
        }

        .portal-hero .portal-neon-crown .portal-icon {
            width: 41px;
        }

        .portal-hero .portal-wave {
            height: 73px;
        }

        html:root .public-portal .portal-search-wrap :is(.search-submit, #search-postal) {
            min-width: 0;
            min-height: 46px;
        }

        html:root .public-portal .portal-search-wrap #search-postal {
            height: 46px;
        }

        html:root .public-portal .portal-search-wrap .portal-search-options {
            column-gap: 9px;
        }
    }

    /* Expand the complete discovery layout on large monitors, within the
       available document width (which excludes classic browser scrollbars). */
    @media (min-width: 1600px) {
        html:root .public-portal.portal-discovery { --home-content: 3520px; }

        html:root .public-portal.portal-discovery :is(.portal-categories, .portal-cuisine-list, .portal-restaurants, .portal-inspiration) {
            --discovery-gap: clamp(20px, 1vw, 32px);
            --discovery-title: clamp(22px, .8vw, 30px);
            --discovery-copy: clamp(16px, .55vw, 20px);
        }

        html:root .public-portal.portal-discovery .portal-search-wrap.search-section {
            width: min(calc(100% - 2 * var(--discovery-gutter)), 2400px) !important;
        }

        html:root .public-portal.portal-discovery .portal-search-wrap .portal-search {
            padding: clamp(20px, 1vw, 32px);
            gap: 16px;
        }

        html:root .public-portal.portal-discovery .portal-search-wrap :is(#search-postal, .search-submit) {
            height: clamp(60px, 2vw, 76px);
            min-height: clamp(60px, 2vw, 76px);
            font-size: clamp(20px, .7vw, 26px);
        }

        html:root .public-portal.portal-discovery .portal-search-wrap .search-submit { min-width: clamp(280px, 11vw, 400px); }
        html:root .public-portal.portal-discovery .portal-search-wrap .portal-search-options { min-height: 32px; gap: 12px 24px; }
        html:root .public-portal.portal-discovery .portal-search-wrap :is(.remember, .portal-locate, .portal-place-credit) { font-size: clamp(13px, .45vw, 16px); }
        html:root .public-portal.portal-discovery .portal-search-wrap :is(.portal-modes button, .portal-region) { font-size: clamp(16px, .55vw, 20px); min-height: 46px; }
        html:root .public-portal.portal-discovery .portal-search-heading h1 { font-size: clamp(42px, 1.7vw, 64px); }
        html:root .public-portal.portal-discovery .portal-search-heading .portal-eyebrow { font-size: clamp(13px, .45vw, 17px); }

        html:root .public-portal.portal-discovery .site-header { height: clamp(80px, 3vw, 108px); min-height: clamp(80px, 3vw, 108px); gap: 28px; }
        html:root .public-portal.portal-discovery .site-header > .wordmark { flex-basis: clamp(260px, 10vw, 360px); }
        html:root .public-portal.portal-discovery .site-header > .wordmark .site-original-logo { width: clamp(260px, 10vw, 360px); }
        html:root .public-portal.portal-discovery .site-header > nav { font-size: clamp(16px, .6vw, 22px); gap: clamp(8px, .6vw, 22px); margin-inline: auto; }
        html:root .public-portal.portal-discovery .site-header > nav > a { min-height: clamp(48px, 1.8vw, 64px); padding-inline: clamp(12px, .6vw, 22px); }
        html:root .public-portal.portal-discovery .site-header > .site-color-scheme { height: 42px; min-height: 42px; font-size: 16px; }
        html:root .public-portal.portal-discovery .site-header .site-color-scheme select { font-size: 16px; height: 34px; }
        html:root .public-portal.portal-discovery .site-header .portal-icon { width: 24px; height: 24px; }

        html:root .public-portal.portal-discovery .portal-categories { gap: clamp(14px, .7vw, 26px); }
        html:root .public-portal.portal-discovery .portal-cuisine { min-height: clamp(104px, 4vw, 150px); font-size: clamp(16px, .6vw, 22px); }
        html:root .public-portal.portal-discovery .portal-cuisine .portal-icon { width: clamp(36px, 1.5vw, 54px); }
        html:root .public-portal.portal-discovery .portal-cuisine-list { font-size: clamp(16px, .6vw, 22px); }
        html:root .public-portal.portal-discovery .portal-section-heading { margin-block: 22px; }
        html:root .public-portal.portal-discovery .portal-section-heading h2 { font-size: clamp(32px, 1.3vw, 48px); }
        html:root .public-portal.portal-discovery .portal-restaurants .service-card :is(.card-media, .card-royal-art) { aspect-ratio: 16 / 9; }
        html:root .public-portal.portal-discovery .portal-restaurants .card-content { padding: clamp(18px, .7vw, 26px); }
        html:root .public-portal.portal-discovery .portal-restaurants .service-card h3 { font-size: var(--discovery-title); margin-bottom: 10px; }
        html:root .public-portal.portal-discovery .portal-restaurants .service-card .card-media .service-logo { width: clamp(64px, 2.5vw, 88px); height: clamp(64px, 2.5vw, 88px); }
        html:root .public-portal.portal-discovery .portal-restaurants .service-card :is(.card-city, .card-categories, .card-opening) { font-size: var(--discovery-copy); line-height: 1.5; margin-bottom: 10px; }
        html:root .public-portal.portal-discovery .portal-restaurants .service-card .card-fulfillment { font-size: clamp(15px, .5vw, 19px); padding: 6px 10px; margin-bottom: 14px; }
        html:root .public-portal.portal-discovery .portal-restaurants .service-card .card-shop-link { min-height: clamp(50px, 1.8vw, 64px); font-size: clamp(18px, .65vw, 24px); padding-block: 10px; }
        html:root .public-portal.portal-discovery .portal-restaurants .service-card .favorite-button { width: 52px; height: 52px; font-size: 32px; }
        html:root .public-portal.portal-discovery .portal-inspiration { margin-top: clamp(36px, 2vw, 64px) !important; }
        html:root .public-portal.portal-discovery .portal-dish-info { padding: clamp(16px, .7vw, 24px) 76px clamp(16px, .7vw, 24px) clamp(16px, .7vw, 24px); gap: 6px; }
        html:root .public-portal.portal-discovery .portal-dish-info strong { font-size: clamp(22px, .8vw, 30px); }
        html:root .public-portal.portal-discovery .portal-dish-info > span { font-size: clamp(16px, .55vw, 20px); }
        html:root .public-portal.portal-discovery .portal-dish-arrow { width: 48px; height: 48px; bottom: 22px; right: 20px; }
        html:root .public-portal.portal-discovery .portal-trust { padding: clamp(24px, 1vw, 36px); min-height: 120px; }
        html:root .public-portal.portal-discovery .portal-trust strong { font-size: clamp(18px, .65vw, 24px); }
        html:root .public-portal.portal-discovery .portal-trust small { font-size: clamp(14px, .5vw, 18px); }
        html:root .public-portal.portal-discovery .portal-trust > div > .portal-icon { width: 48px; height: 48px; }
        html:root .public-portal.portal-discovery .portal-footer-invitation h2 { font-size: clamp(36px, 1.5vw, 56px); }
        html:root .public-portal.portal-discovery .portal-footer-invitation p { font-size: clamp(16px, .6vw, 22px); }
        html:root .public-portal.portal-discovery .portal-footer-actions { font-size: clamp(16px, .6vw, 22px); }
        html:root .public-portal.portal-discovery .portal-footer-actions .button { min-height: 56px; font-size: inherit; }
        html:root .public-portal.portal-discovery footer.site-footer .footer-group h2 { font-size: clamp(20px, .7vw, 26px); }
        html:root .public-portal.portal-discovery footer.site-footer :is(.footer-group > a, .footer-brand p, .footer-meta) { font-size: clamp(16px, .55vw, 20px); line-height: 1.6; }
        html:root .public-portal.portal-discovery footer.site-footer .site-original-logo { width: clamp(260px, 9vw, 340px); }
    }

    @media (min-width: 2200px) {
        html:root .public-portal.portal-discovery .portal-service-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
    }

    @media (min-width: 3000px) {
        html:root .public-portal.portal-discovery .portal-service-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    }

    @media (min-width: 2200px) {
        html:root .public-portal.portal-discovery .portal-home-search ~ .portal-restaurants .portal-service-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    }

    @media (max-width: 360px) {
        .portal-search-wrap .portal-modes button {
            padding-inline: 7px;
        }
    }
}
