:is(.browse-page, .themes-page, .theme-page, .neighborhood-page, .detail-page, .nearby-page) {
    --inner-field-line: #a69b94;
    --inner-radius: 8px;
    --inner-tint: #fbede8;
    font-family: var(--cook-sans);
}

:is(.browse-page, .themes-page, .theme-page, .neighborhood-page, .detail-page, .nearby-page) :is(h1, h2, h3),
.detail-page .related-restaurant-grid .pick-body strong,
:is(.neighborhood-page, .theme-page) :is(.district-guide-card, .district-restaurant-card) > :is(h3, strong) {
    font-family: var(--cook-sans);
    font-weight: 800;
    letter-spacing: -.045em;
}

:is(.browse-page, .themes-page, .theme-page, .neighborhood-page) .collection-hero,
.nearby-page .nearby-intro {
    border-top-color: var(--brand);
    padding-block: clamp(18px, 3vw, 36px);
}

:is(.browse-page, .themes-page, .theme-page, .neighborhood-page) .collection-copy h1,
.nearby-page .nearby-intro h1 {
    font-size: clamp(32px, 5vw, 58px);
    line-height: 1.15;
}

:is(.browse-page, .themes-page, .theme-page, .neighborhood-page) .collection-copy > p:not(.eyebrow) {
    margin-top: 8px;
}

:is(.browse-page, .theme-page, .neighborhood-page) .collection-links a {
    min-height: 36px;
    border-top-color: var(--line);
}

.browse-page .list-layout {
    gap: clamp(16px, 2.6vw, 30px);
    padding-top: clamp(12px, 2.6vw, 28px);
}

.browse-page .list-filter-bar,
.nearby-page .nearby-toolbar {
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--inner-radius);
    background: var(--surface);
}

.browse-page .list-filter-bar .filter-field,
.nearby-page .nearby-field {
    gap: 3px;
}

.browse-page .filter-field :is(input, select),
.browse-page .region-search-list,
.nearby-page .nearby-field select {
    border-color: var(--inner-field-line);
    border-radius: 5px;
    background-color: var(--surface);
}

.browse-page .filter-field select:not(.region-search-source),
.nearby-page .nearby-field select {
    padding-inline: 7px 18px;
}

.browse-page .region-search-option:is(:hover, [aria-selected="true"]) {
    background: var(--inner-tint);
    color: var(--brand-dark);
}

.browse-page .list-filter-bar .filter-search-button,
.themes-page .app-install-button,
:is(.detail-page, .nearby-page) .btn.primary {
    border-color: var(--brand);
    border-radius: 5px;
    background: var(--brand);
    color: #fff;
}

.browse-page .list-filter-bar .filter-search-button:hover,
.themes-page .app-install-button:hover,
:is(.detail-page, .nearby-page) .btn.primary:hover:not(:disabled) {
    border-color: var(--brand-dark);
    background: var(--brand-dark);
}

.browse-page .list-toolbar {
    gap: 8px;
    border-top-width: 1px;
}

.browse-page .list-toolbar .result-total strong {
    color: inherit;
    font-size: inherit;
    font-variant-numeric: tabular-nums;
}

:is(.browse-page, .theme-page) .restaurant-card {
    gap: 0;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--inner-radius);
    background: var(--surface);
}

:is(.browse-page, .theme-page) .restaurant-card:hover {
    border-color: var(--inner-field-line);
}

:is(.browse-page, .theme-page) .restaurant-card > .restaurant-thumb {
    min-height: 0;
    border-radius: 7px 7px 0 0;
}

:is(.browse-page, .theme-page) .restaurant-card-body {
    align-content: start;
    padding: 12px 14px 15px;
}

:is(.browse-page, .theme-page) .restaurant-card-body .tag {
    width: fit-content;
    border-bottom: 1px solid var(--line);
    padding-bottom: 3px;
    color: var(--brand-dark);
    font-size: 12px;
    line-height: 1.4;
}

:is(.browse-page, .theme-page) .restaurant-card h3 {
    font-size: clamp(18px, 2.2vw, 24px);
    line-height: 1.3;
}

.browse-page :is(.chip, [data-list-next]),
.themes-page :is(.u002-btn, .app-install-mark),
.theme-page .theme-hero-photo {
    border-radius: 5px;
}

.themes-page .curation-hub-card {
    border: 1px solid var(--line);
    border-radius: var(--inner-radius);
    background: var(--surface);
}

.themes-page .theme-lead-card {
    gap: 0;
    padding: 0;
}

.themes-page .curation-hub-visual,
.themes-page .theme-lead-card .curation-hub-visual {
    display: grid;
    height: auto;
    min-height: 0;
    aspect-ratio: auto;
    overflow: visible;
    border-radius: 7px 7px 0 0;
    background: var(--surface);
}

.themes-page .curation-hub-visual img {
    position: static;
    width: 100%;
    height: auto;
    aspect-ratio: 40 / 21;
    border-radius: inherit;
    object-fit: cover;
    transform: none;
}

.themes-page .curation-hub-card:hover .curation-hub-visual img {
    transform: none;
}

.themes-page .curation-hub-visual span {
    position: static;
    justify-self: start;
    margin: 12px 14px 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 3px;
    background: transparent;
    color: var(--brand-dark);
    overflow-wrap: anywhere;
}

.themes-page .curation-hub-body {
    padding: 12px 14px 17px;
}

:is(.neighborhood-page, .theme-page) :is(.district-guide-card, .district-restaurant-card),
.neighborhood-page .region-directory-panel {
    border: 1px solid var(--line);
    border-top: 2px solid var(--brand);
    border-radius: var(--inner-radius);
    padding: 13px 15px;
    background: var(--surface);
}

.neighborhood-page .region-directory-links a:hover {
    background: var(--inner-tint);
    color: var(--brand-dark);
}

.detail-page .detail-hero-rich {
    border-top-color: var(--brand);
}

.detail-page .detail-hero-copy {
    min-height: 0;
    gap: 9px;
}

.detail-page .detail-back {
    justify-self: start;
    margin-top: -5px;
}

.detail-page .detail-hero-copy h1 {
    font-size: clamp(34px, 5.1vw, 60px);
    line-height: 1.16;
}

.detail-page .detail-pills span {
    overflow-wrap: anywhere;
}

.detail-page :is(.hero-social-links a, .hero-social-links button, .copy-address-btn, .btn.ghost) {
    border-radius: 5px;
}

.detail-page .share-status:empty {
    margin-top: -9px;
}

.detail-page .detail-jumps {
    border-color: var(--line);
    border-inline: 1px solid var(--line);
    border-radius: 5px;
    background: var(--surface);
}

.detail-page .detail-jumps a {
    flex: 1 1 0;
}

.detail-page .detail-jumps a + a {
    border-left: 1px solid var(--line);
}

.detail-page .detail-hero-media {
    max-height: none;
    aspect-ratio: auto;
    border: 1px solid var(--line);
    border-radius: var(--inner-radius);
    background: var(--surface);
}

.detail-page :is(.detail-hero-media img, .detail-media-placeholder) {
    height: auto;
    aspect-ratio: 1;
    background: var(--soft);
    object-fit: contain;
}

.detail-page .detail-slider {
    display: grid;
    grid-template-columns: 44px 44px max-content minmax(0, 1fr);
    align-items: center;
    column-gap: 7px;
    height: auto;
}

.detail-page .detail-slider > img {
    grid-column: 1 / -1;
}

.detail-page :is(.detail-slider-control, .detail-slider-count, .detail-slider-dots) {
    position: static;
    grid-row: 2;
    max-width: 100%;
    transform: none;
    background: transparent;
    color: var(--ink);
}

.detail-page .detail-slider-control {
    border: 0;
    border-radius: 5px;
}

.detail-page .detail-slider-control.prev { grid-column: 1; }
.detail-page .detail-slider-control.next { grid-column: 2; }
.detail-page .detail-slider-count { grid-column: 3; padding: 0; }
.detail-page .detail-slider-dots { grid-column: 4; }

.detail-page .detail-slider-dot {
    flex-basis: 26px;
    width: 26px;
    height: 32px;
}

.detail-page .detail-slider-control:is(:hover, :focus-visible) {
    transform: none;
    background: var(--inner-tint);
    color: var(--brand-dark);
    outline-color: var(--brand);
    outline-offset: -2px;
}

.detail-page .detail-slider-dot::before { border-color: var(--ink); }
.detail-page .detail-slider-dot.active::before { background: var(--brand); border-color: var(--brand); }
.detail-page .detail-slider-dot:focus-visible { outline-color: var(--brand); }

.detail-page :is(.visit-info-grid, .detail-card, .review-form, .review-item, .review-empty, .map-box) {
    border-radius: var(--inner-radius);
}

.detail-page .editor-recommendation {
    border-radius: 0 5px 5px 0;
    background: var(--inner-tint);
}

.detail-page .related-restaurant-grid .pick-thumb {
    border-radius: 5px;
}

.nearby-page .nearby-toolbar {
    margin-bottom: 12px;
}

.nearby-page :is(.nearby-list-link, .nearby-search-area, .nearby-map-message, .nearby-card-image, .nearby-result > img) {
    border-radius: 5px;
}

.nearby-page :is(.nearby-map, .nearby-results, .nearby-card) {
    border-radius: var(--inner-radius);
}

.nearby-page .nearby-results-heading {
    border-top: 0;
    border-bottom: 1px solid var(--line);
}

.nearby-page .nearby-result[aria-pressed="true"] {
    background: var(--inner-tint);
}

@media (min-width: 761px) {
    .themes-page .theme-lead-card .curation-hub-visual img { border-top-right-radius: 0; }
    .themes-page .theme-lead-card .curation-hub-body { padding: clamp(16px, 2vw, 30px); }
}

@media (max-width: 760px) {
    :is(.browse-page, .themes-page, .theme-page, .neighborhood-page) .collection-hero {
        gap: 9px;
    }

    .detail-page .detail-hero-rich {
        gap: 16px;
    }

    .detail-page .content-source-note {
        flex-wrap: wrap;
        justify-content: start;
        gap: 4px 10px;
    }

    .nearby-page .nearby-field select {
        font-size: 16px;
    }
}

@media (max-width: 640px) {
    .browse-page .list-filter-bar {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        padding: 9px;
    }

    .browse-page .list-filter-bar .filter-field:not(:first-child, .filter-field-search) {
        grid-column: span 3;
    }

    .browse-page .list-filter-bar:has(select[name="district"]) .filter-field:not(:first-child, .filter-field-search) {
        grid-column: span 2;
    }

    #browse-filters .filter-field-search {
        grid-column: 1 / 5;
    }

    #browse-filters .filter-search-button {
        grid-column: 5 / -1;
        padding-inline: 8px;
    }

    :is(.browse-page, .theme-page) .restaurant-card {
        grid-template-columns: minmax(0, 32%) minmax(0, 1fr);
        gap: 9px;
        padding: 9px;
    }

    :is(.browse-page, .theme-page) .restaurant-card > .restaurant-thumb {
        aspect-ratio: 1;
        border-radius: 5px;
    }

    :is(.browse-page, .theme-page) .restaurant-card-body {
        gap: 4px;
        padding: 0;
    }

    :is(.browse-page, .theme-page) .restaurant-card h3 {
        font-size: 17px;
    }
}

@media (max-width: 560px) {
    .nearby-page .nearby-toolbar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 9px;
    }

    .nearby-page .nearby-toolbar .nearby-list-link {
        grid-column: 2 / -1;
    }
}
