/* Shared information tracks keep neighboring restaurant cards aligned. */
@media screen {
    html:root .public-portal.portal-discovery .portal-restaurants .service-card:hover {
        transform: none;
    }

    html:root .public-portal.portal-discovery .portal-restaurants .service-card .card-media .service-logo {
        bottom: 10px;
        left: 10px;
    }

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

    @supports (grid-template-rows: subgrid) {
        @media (min-width: 701px) {
            html:root .public-portal.portal-discovery .portal-service-grid {
                row-gap: 0;
            }

            html:root .public-portal.portal-discovery .portal-restaurants .service-card {
                display: grid;
                grid-row: span 7;
                grid-template-rows: subgrid;
                row-gap: 0;
                align-self: stretch;
                margin-bottom: var(--discovery-gap);
            }

            html:root .public-portal.portal-discovery .portal-restaurants .service-card .card-media {
                grid-row: 1;
                align-self: start;
            }

            html:root .public-portal.portal-discovery .portal-restaurants .service-card .card-content {
                display: grid;
                grid-row: 2 / span 6;
                grid-template-rows: subgrid;
                row-gap: 0;
                align-items: start;
            }

            html:root .public-portal.portal-discovery .portal-restaurants .service-card h3 { grid-row: 1; }
            html:root .public-portal.portal-discovery .portal-restaurants .card-city { grid-row: 2; }
            html:root .public-portal.portal-discovery .portal-restaurants .card-categories { grid-row: 3; }
            html:root .public-portal.portal-discovery .portal-restaurants .card-fulfillment { grid-row: 4; }
            html:root .public-portal.portal-discovery .portal-restaurants .card-opening { grid-row: 5; }

            html:root .public-portal.portal-discovery .portal-restaurants .card-shop-link {
                grid-row: 6;
                align-self: end;
                margin-top: 6px;
            }
        }
    }
}
