html, body {
    background:
        radial-gradient(circle at top left, rgba(244, 162, 97, 0.3), transparent 28%),
        radial-gradient(circle at right 20%, rgba(61, 169, 160, 0.28), transparent 24%),
        linear-gradient(180deg, #07141d 0%, #102732 100%);
    color: #f3f7f0;
    font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    margin: 0;
    min-height: 100%;
}

html {
    overflow-y: scroll;
}

body {
    overflow-x: clip;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

a, .btn-link {
    color: #8de1ce;
}

a:hover {
    color: #ffbf69;
}

h1:focus {
    outline: none;
}

#blazor-error-ui {
    background: #f28482;
    bottom: 0;
    box-shadow: 0 -1px 6px rgba(0, 0, 0, 0.2);
    color: #102028;
    display: none;
    left: 0;
    padding: 0.8rem 1rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

.loading-progress {
    display: block;
    height: 7rem;
    inset: 20vh 0 auto 0;
    margin: 0 auto;
    position: absolute;
    width: 7rem;
}

.loading-progress circle {
    fill: none;
    stroke: rgba(243, 247, 240, 0.24);
    stroke-width: 0.5rem;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.loading-progress circle:last-child {
    stroke: #8de1ce;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    font-weight: 700;
    inset: calc(20vh + 2.8rem) 0 auto 0;
    position: absolute;
    text-align: center;
}

img,
svg,
canvas {
    max-width: 100%;
}


/* Preserve the navigation, sticky header, cards, and search layout from the Blazor app. */
.deal-card,
.filter-bar {
    backdrop-filter: blur(12px);
    background: rgba(10, 27, 36, 0.64);
    border: 1px solid rgba(173, 219, 208, 0.16);
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(4, 12, 16, 0.25);
}

.hero-kicker {
    color: #8de1ce;
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
}

.filter-bar {
    align-items: center;
    display: grid;
    gap: 0.9rem;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(12rem, 1fr)) auto;
    margin-bottom: 1.5rem;
    padding: 1rem;
    position: sticky;
    top: calc(var(--masthead-sticky-height, 0px) + env(safe-area-inset-top, 0px) + 0.75rem);
    z-index: 20;
}

.filter-input,
.filter-select,
.refresh-button {
    border: 0;
    border-radius: 14px;
    font: inherit;
    min-height: 3rem;
    padding: 0.8rem 0.95rem;
}

.filter-input,
.filter-select {
    background: rgba(243, 247, 240, 0.93);
    color: #102028;
    min-width: 0;
}

.refresh-button {
    background: linear-gradient(135deg, #ffbf69, #f28482);
    color: #102028;
    font-weight: 700;
    white-space: nowrap;
}

.refresh-button:disabled {
    opacity: 0.7;
}

.feedback {
    margin: 1rem 0;
}

.site-disclaimer {
    border-top: 1px solid rgba(243, 247, 240, 0.16);
    color: rgba(243, 247, 240, 0.68);
    font-size: 0.88rem;
    line-height: 1.6;
    margin-top: 2rem;
    padding-top: 1rem;
}

.site-disclaimer p {
    margin: 0;
    max-width: 78rem;
}

.error {
    color: #ffb3b8;
}

.card-grid {
    display: grid;
    gap: 1.2rem;
    grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr));
}

.card-grid.has-ads {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card-grid.has-ads > .deal-card {
    max-width: none;
}

.deal-ad {
    grid-column: 1 / -1;
    min-width: 0;
    text-align: center;
}

.deal-ad-label {
    display: block;
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
    opacity: 0.65;
}

.deal-ad-frame {
    border: 0;
    display: block;
    height: 250px;
    margin: 0 auto;
    max-width: 970px;
    width: 100%;
}

@media (max-width: 900px) {
    .card-grid.has-ads {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .card-grid.has-ads {
        grid-template-columns: minmax(0, 1fr);
    }
}

.deal-card {
    min-width: 0;
    padding: 1.4rem;
}

@media (min-width: 641px) {
    article.deal-card {
        max-width: 30vw;
    }
}

.deal-card-header {
    align-items: start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.deal-brand {
    color: #8de1ce;
    letter-spacing: 0.16em;
    margin: 0 0 0.3rem;
    text-transform: uppercase;
}

.deal-brand-row {
    align-items: center;
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.3rem;
}

.deal-brand-row .deal-brand {
    margin-bottom: 0;
}

.price-list-button,
.price-modal-close {
    align-items: center;
    background: rgba(141, 225, 206, 0.12);
    border: 1px solid rgba(141, 225, 206, 0.28);
    color: #8de1ce;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
}

.price-list-button {
    border-radius: 8px;
    height: 1.75rem;
    padding: 0;
    width: 1.75rem;
}

.price-list-button svg {
    fill: none;
    height: 1rem;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 1rem;
}

.price-list-button:hover,
.price-list-button:focus-visible,
.price-modal-close:hover,
.price-modal-close:focus-visible {
    background: rgba(141, 225, 206, 0.24);
    outline: 2px solid #8de1ce;
    outline-offset: 2px;
}

.deal-card h2 {
    margin: 0;
    overflow-wrap: anywhere;
}

.price-pill {
    background: rgba(141, 225, 206, 0.16);
    border: 1px solid rgba(141, 225, 206, 0.24);
    border-radius: 999px;
    font-size: 0.95rem;
    max-width: 60%;
    min-width: 0;
    overflow-wrap: anywhere;
    padding: 0.6rem 0.9rem;
    white-space: normal;
}

.price-pill[data-display-currency="USD"] {
    overflow-wrap: normal;
    white-space: nowrap;
}

.deal-summary {
    color: rgba(243, 247, 240, 0.8);
}

.deal-stats {
    display: grid;
    gap: 0.8rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 1rem 0;
}

.deal-stats div {
    background: rgba(243, 247, 240, 0.06);
    border-radius: 16px;
    padding: 0.8rem;
}

.deal-stats dt {
    color: rgba(243, 247, 240, 0.66);
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
}

.deal-stats dd {
    margin: 0;
}

.deal-stat-tooltip {
    cursor: help;
    outline-offset: 3px;
    position: relative;
    width: max-content;
}

.deal-stat-tooltip:focus-visible {
    border-radius: 4px;
    outline: 2px solid #8de1ce;
}

.deal-stat-tooltip::before,
.deal-stat-tooltip::after {
    opacity: 0;
    pointer-events: none;
    position: absolute;
    transition: opacity 140ms ease, transform 140ms ease;
    visibility: hidden;
    z-index: 10;
}

.deal-stat-tooltip::after {
    background: #f3f7f0;
    border: 1px solid rgba(16, 32, 40, 0.16);
    border-radius: 10px;
    bottom: calc(100% + 0.4rem);
    box-shadow: 0 10px 28px rgba(4, 12, 16, 0.35);
    color: #102028;
    content: attr(data-tooltip);
    font-size: 0.85rem;
    font-weight: 700;
    inset-inline-start: 50%;
    padding: 0.5rem 0.7rem;
    transform: translate(-50%, 0.25rem);
    white-space: nowrap;
}

.deal-stat-tooltip::before {
    border-left: 0.4rem solid transparent;
    border-right: 0.4rem solid transparent;
    border-top: 0.4rem solid #f3f7f0;
    content: "";
    inset-inline-start: 50%;
    top: -0.4rem;
    transform: translate(-50%, 0.25rem);
}

.deal-stat-tooltip:hover::before,
.deal-stat-tooltip:hover::after,
.deal-stat-tooltip:focus-visible::before,
.deal-stat-tooltip:focus-visible::after {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
}

.region-table {
    border-collapse: collapse;
    width: 100%;
}

.region-table th,
.region-table td {
    border-bottom: 1px solid rgba(243, 247, 240, 0.12);
    padding: 0.7rem 0;
}

.region-table th {
    color: rgba(243, 247, 240, 0.66);
    font-size: 0.8rem;
    font-weight: 600;
}

.region-table th:nth-child(2) {
    text-align: left;
}

.region-table th:nth-child(n + 3),
.region-table td:nth-child(n + 3) {
    text-align: right;
}

.deal-card .region-table td:nth-child(4) {
    text-align: left;
}

.region-table th:nth-child(3),
.region-table td.native-price-cell {
    color: rgba(243, 247, 240, 0.64);
    font-variant-numeric: tabular-nums;
    padding-inline-end: 0.9rem;
}

.region-table th:nth-child(4),
.region-table td.selected-price-cell {
    border-inline-start: 1px solid rgba(141, 225, 206, 0.24);
    font-variant-numeric: tabular-nums;
    padding-inline-start: 0.9rem;
}

.region-table td.selected-price-cell {
    color: #a8f0dc;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-weight: 700;
}

.row-number-heading,
.row-number-cell {
    width: 2.5rem;
}

.row-number-cell {
    padding-inline-end: 0.55rem !important;
}

.row-number-badge {
    align-items: center;
    background: linear-gradient(145deg, rgba(141, 225, 206, 0.2), rgba(255, 191, 105, 0.16));
    border: 1px solid rgba(141, 225, 206, 0.38);
    border-radius: 0.65rem;
    box-shadow: inset 0 1px rgba(243, 247, 240, 0.12), 0 3px 10px rgba(4, 12, 16, 0.16);
    color: #a8f0dc;
    display: inline-flex;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    height: 1.75rem;
    justify-content: center;
    line-height: 1;
    width: 1.75rem;
}

.price-modal-table .row-number-cell {
    padding-inline-end: 0.7rem;
    width: 3.2rem;
}

.regional-price {
    cursor: help;
    display: inline-block;
    position: relative;
}

.regional-price-currency-prompt {
    cursor: pointer;
}

.regional-price:focus-visible {
    border-radius: 4px;
    outline: 2px solid #8de1ce;
    outline-offset: 3px;
}

.regional-price-balloon {
    background: #f3f7f0;
    border: 1px solid rgba(16, 32, 40, 0.16);
    border-radius: 10px;
    bottom: calc(100% + 0.65rem);
    box-shadow: 0 10px 28px rgba(4, 12, 16, 0.35);
    color: #102028;
    font-size: 0.85rem;
    font-weight: 700;
    inset-inline-start: 50%;
    opacity: 0;
    padding: 0.5rem 0.7rem;
    pointer-events: none;
    position: absolute;
    transform: translate(-50%, 0.25rem);
    transition: opacity 140ms ease, transform 140ms ease;
    visibility: hidden;
    white-space: nowrap;
    z-index: 10;
}

.regional-price-balloon::after {
    border-left: 0.4rem solid transparent;
    border-right: 0.4rem solid transparent;
    border-top: 0.4rem solid #f3f7f0;
    content: "";
    inset-inline-start: 50%;
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
}

.regional-price:hover .regional-price-balloon,
.regional-price:focus-visible .regional-price-balloon {
    opacity: 1;
    transform: translate(-50%, 0);
    visibility: visible;
}

.price-modal-backdrop {
    align-items: center;
    background: rgba(4, 12, 16, 0.78);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    position: fixed;
    z-index: 1000;
}

.price-modal-backdrop[hidden] {
    display: none;
}

.price-modal {
    background: #10242d;
    border: 1px solid rgba(173, 219, 208, 0.24);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    max-height: min(48rem, calc(100vh - 2rem));
    max-width: 72rem;
    overflow: auto;
    padding: clamp(1rem, 3vw, 1.5rem);
    width: 100%;
}

.currency-prompt {
    max-width: 34rem;
}

.currency-prompt-description {
    line-height: 1.6;
    margin: 0 0 1.25rem;
}

.currency-prompt-picker {
    display: grid;
    gap: 0.45rem;
    max-width: 18rem;
}

.price-modal-header {
    align-items: flex-start;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.price-modal-header h2 {
    margin: 0;
}

.price-modal-close {
    border-radius: 999px;
    flex: 0 0 auto;
    font-size: 1.5rem;
    height: 2.5rem;
    line-height: 1;
    width: 2.5rem;
}

.price-modal-table-wrap {
    overflow-x: auto;
}

.price-modal-mobile-sort,
.price-modal-mobile-list {
    display: none;
}

.price-modal-table {
    border-collapse: collapse;
    min-width: 44rem;
    width: 100%;
}

.price-modal-table th,
.price-modal-table td {
    border-bottom: 1px solid rgba(243, 247, 240, 0.12);
    padding: 0.8rem 1rem 0.8rem 0;
    text-align: start;
}

.price-modal-table th {
    color: rgba(243, 247, 240, 0.66);
    font-size: 0.8rem;
}

.price-modal-table th.row-number-heading {
    text-align: center;
}

.price-modal-table th.modal-sortable-header {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}

.price-modal-table th.modal-sortable-header:hover,
.price-modal-table th.modal-sortable-header:focus-visible {
    color: rgba(243, 247, 240, 0.92);
    outline: 2px solid #8de1ce;
    outline-offset: -2px;
}

.modal-sortable-header .sort-indicator {
    display: inline-block;
    font-size: 0.7rem;
    margin-inline-start: 0.25rem;
    min-width: 0.8rem;
}

.section-heading {
    margin: 2.5rem 0 1rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(243, 247, 240, 0.92);
    letter-spacing: 0.02em;
}

.section-heading:first-of-type {
    margin-top: 1rem;
}

.region-table th.sortable-header {
    cursor: pointer;
    user-select: none;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
}

.region-table th.sortable-header:hover,
.region-table th.sortable-header:focus-visible {
    color: rgba(243, 247, 240, 0.92);
    outline: none;
}

.region-table th.sortable-header .sort-indicator {
    font-size: 0.7rem;
    line-height: 1;
}

@media (max-width: 1100px) {
    .filter-bar {
        grid-template-columns: minmax(0, 1fr) repeat(2, minmax(10rem, 1fr));
    }

    .refresh-button {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

@media (max-width: 900px) {
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .deal-card,
    .filter-bar {
        border-radius: 22px;
    }

    .deal-stats {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
    }
}

@media (max-width: 640px) {
    .price-modal-backdrop {
        align-items: flex-end;
        justify-content: stretch;
        padding: 0;
    }

    .price-modal:not(.currency-prompt) {
        border-radius: 1.35rem 1.35rem 0 0;
        border-bottom: 0;
        display: flex;
        flex-direction: column;
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        max-width: none;
        overflow: hidden;
        padding: 1rem 1rem max(1rem, env(safe-area-inset-bottom));
        width: 100%;
    }

    .price-modal:not(.currency-prompt) .price-modal-header {
        align-items: flex-start;
        flex: 0 0 auto;
        margin: 0 -1rem 0.8rem;
        padding: 0 1rem 0.9rem;
        border-bottom: 1px solid rgba(173, 219, 208, 0.18);
    }

    .price-modal-header h2 {
        font-size: clamp(1.3rem, 6vw, 1.8rem);
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    .price-modal-close {
        height: 2.75rem;
        width: 2.75rem;
    }

    .price-modal-mobile-sort {
        display: flex;
        flex: 0 0 auto;
        gap: 0.45rem;
        margin: 0 -1rem 0.8rem;
        overflow-x: auto;
        padding: 0.15rem 1rem 0.35rem;
        scrollbar-width: none;
    }

    .price-modal-mobile-sort::-webkit-scrollbar {
        display: none;
    }

    .modal-sort-control {
        background: rgba(141, 225, 206, 0.08);
        border: 1px solid rgba(141, 225, 206, 0.2);
        border-radius: 999px;
        color: inherit;
        cursor: pointer;
        flex: 0 0 auto;
        font: inherit;
        font-size: 0.82rem;
        min-height: 2.5rem;
        padding: 0.55rem 0.8rem;
        touch-action: manipulation;
    }

    .modal-sort-control[aria-pressed="true"] {
        background: rgba(141, 225, 206, 0.2);
        border-color: rgba(141, 225, 206, 0.55);
        color: #a8f0dc;
        font-weight: 700;
    }

    .modal-sort-control[aria-pressed="true"]::after {
        content: attr(data-direction);
        font-size: 0.68rem;
        margin-inline-start: 0.35rem;
    }

    .modal-sort-control:focus-visible {
        outline: 2px solid #8de1ce;
        outline-offset: 2px;
    }

    .price-modal-mobile-list {
        display: grid;
        align-content: start;
        flex: 1 1 auto;
        gap: 0.7rem;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0.05rem 0.05rem 0.5rem;
        scrollbar-gutter: stable;
    }

    .price-offer-card {
        background: rgba(243, 247, 240, 0.045);
        border: 1px solid rgba(173, 219, 208, 0.16);
        border-radius: 1rem;
        min-width: 0;
        padding: 0.9rem;
    }

    .price-offer-card-top {
        align-items: center;
        display: flex;
        gap: 0.65rem;
        margin-bottom: 0.85rem;
        min-width: 0;
    }

    .price-offer-region {
        background: transparent;
        border: 0;
        border-radius: 0.35rem;
        color: inherit;
        cursor: pointer;
        font: inherit;
        font-weight: 700;
        min-height: 2.75rem;
        min-width: 0;
        overflow-wrap: anywhere;
        padding: 0.3rem;
        text-align: start;
        touch-action: manipulation;
    }

    .price-offer-region:focus-visible {
        outline: 2px solid #8de1ce;
        outline-offset: 1px;
    }

    .price-offer-card .row-number-badge {
        flex: 0 0 auto;
    }

    .price-offer-prices {
        display: grid;
        gap: 0.65rem;
        grid-template-columns: 1fr 1fr;
    }

    .price-offer-prices > div,
    .price-offer-meta > div {
        display: grid;
        gap: 0.22rem;
        min-width: 0;
    }

    .price-offer-prices strong {
        font-size: clamp(1rem, 4.6vw, 1.25rem);
        font-variant-numeric: tabular-nums;
        overflow-wrap: anywhere;
    }

    .price-offer-converted {
        color: #a8f0dc;
    }

    .price-offer-label {
        color: rgba(243, 247, 240, 0.62);
        font-family: "Avenir Next", "Segoe UI", sans-serif;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .price-offer-meta {
        border-top: 1px solid rgba(243, 247, 240, 0.1);
        display: grid;
        gap: 0.7rem;
        grid-template-columns: 1fr 1fr;
        margin-top: 0.8rem;
        padding-top: 0.7rem;
    }

    .price-offer-meta > div:last-child span:last-child {
        font-size: 0.82rem;
    }

    .price-offer-source {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .price-modal-error {
        margin: 0;
        padding: 0.75rem;
    }

    .price-modal:not(.currency-prompt) .price-modal-table-wrap {
        display: none;
    }

    :root[data-theme="light"] .price-modal:not(.currency-prompt) .price-modal-header {
        border-bottom-color: rgba(54, 100, 98, 0.16);
    }

    :root[data-theme="light"] .modal-sort-control {
        background: rgba(8, 127, 115, 0.06);
        border-color: rgba(8, 127, 115, 0.2);
        color: #243e40;
    }

    :root[data-theme="light"] .modal-sort-control[aria-pressed="true"] {
        background: rgba(8, 127, 115, 0.13);
        border-color: rgba(8, 127, 115, 0.4);
        color: #087f73;
    }

    :root[data-theme="light"] .price-offer-card {
        background: rgba(8, 127, 115, 0.035);
        border-color: rgba(54, 100, 98, 0.16);
    }

    :root[data-theme="light"] .price-offer-converted {
        color: #087f73;
    }

    :root[data-theme="light"] .price-offer-label {
        color: #5a7071;
    }

    :root[data-theme="light"] .price-offer-meta {
        border-top-color: rgba(35, 65, 68, 0.12);
    }

    .deal-card,
    .filter-bar {
        border-radius: 18px;
    }

    .deal-card {
        padding: 1rem;
    }

    .filter-bar {
        gap: 0.75rem;
        margin-bottom: 1rem;
        padding: 0.85rem;
        position: sticky;
        top: calc(var(--masthead-sticky-height, 0px) + 0.35rem);
        z-index: 20;
    }

    .filter-input,
    .filter-select,
    .refresh-button {
        min-height: 2.75rem;
        width: 100%;
    }

    .filter-input,
    .filter-select {
        border-radius: 12px;
        font-size: 1rem;
        padding: 0.65rem 0.75rem;
    }

    .refresh-button {
        border-radius: 12px;
        padding: 0.65rem 0.75rem;
    }

    .refresh-button {
        justify-self: stretch;
    }

    .card-grid {
        gap: 1rem;
        grid-template-columns: 1fr;
    }

    .deal-card-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.75rem;
    }

    .price-pill {
        max-width: 100%;
    }

    .deal-summary {
        font-size: 0.95rem;
    }

    .deal-stats {
        gap: 0.65rem;
        margin: 0.85rem 0;
    }

    .deal-stats div {
        border-radius: 12px;
        padding: 0.65rem 0.75rem;
    }

    .region-table,
    .region-table thead,
    .region-table tbody,
    .region-table tr,
    .region-table th,
    .region-table td {
        display: block;
    }

    .region-table thead {
        display: none;
    }

    .region-table tr {
        align-items: center;
        display: grid;
        gap: 0 0.6rem;
        grid-template-columns: auto minmax(0, 1fr) auto auto;
        border-bottom: 1px solid rgba(243, 247, 240, 0.12);
        padding: 0.7rem 0;
    }

    .region-table tr:first-child {
        padding-top: 0;
    }

    .region-table tr:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .region-table td {
        border-bottom: 0;
        padding: 0.2rem 0;
    }

    .region-table td.region-name-cell {
        color: #f3f7f0;
        font-weight: 700;
    }

    .region-table td.row-number-cell {
        padding-inline-end: 0;
    }

    .region-table td.native-price-cell,
    .region-table td.selected-price-cell {
        white-space: nowrap;
    }
}

@media (min-width: 1400px) {
    .card-grid {
        grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
    }
}

:root[data-theme="light"] {
    color-scheme: light;
}

html[data-theme="light"],
html[data-theme="light"] body {
    background:
        radial-gradient(circle at top left, rgba(244, 162, 97, 0.2), transparent 28%),
        radial-gradient(circle at right 20%, rgba(61, 169, 160, 0.16), transparent 24%),
        linear-gradient(180deg, #f8fbf8 0%, #eaf2ef 100%);
    color: #1d3035;
}

:root[data-theme="light"] a,
:root[data-theme="light"] .btn-link {
    color: #087f73;
}

:root[data-theme="light"] a:hover {
    color: #a94c21;
}

:root[data-theme="light"] .masthead {
    background: rgba(248, 251, 248, 0.94);
    box-shadow: 0 8px 28px rgba(35, 65, 68, 0.08);
}

:root[data-theme="light"] .theme-toggle {
    background: #fff;
    border-color: rgba(54, 100, 98, 0.24);
    color: #20383b;
}

:root[data-theme="light"] .theme-toggle:hover,
:root[data-theme="light"] .theme-toggle:focus-visible {
    background: #e6f2ee;
    outline-color: #087f73;
}

:root[data-theme="light"] .culture-label {
    color: #52686a;
}

:root[data-theme="light"] .nav-home,
:root[data-theme="light"] .nav-home.active {
    color: #183b40;
}

:root[data-theme="light"] .nav-category-links a {
    color: #52686a;
}

:root[data-theme="light"] .nav-category-links a:hover,
:root[data-theme="light"] .nav-category-links a:focus-visible,
:root[data-theme="light"] .nav-category-links a[aria-current="page"] {
    color: #087f73;
}

:root[data-theme="light"] .nav-copy,
:root[data-theme="light"] .site-disclaimer,
:root[data-theme="light"] .deal-summary {
    color: #4c6264;
}

:root[data-theme="light"] .deal-card,
:root[data-theme="light"] .filter-bar {
    background: rgba(255, 255, 255, 0.82);
    border-color: rgba(54, 100, 98, 0.16);
    box-shadow: 0 16px 40px rgba(35, 65, 68, 0.1);
}

:root[data-theme="light"] .hero-kicker,
:root[data-theme="light"] .deal-brand {
    color: #087f73;
}

:root[data-theme="light"] .deal-stats dt,
:root[data-theme="light"] .region-table th,
:root[data-theme="light"] .price-modal-table th {
    color: #5a7071;
}

:root[data-theme="light"] .region-table th:nth-child(3),
:root[data-theme="light"] .region-table td.native-price-cell {
    color: #728585;
}

:root[data-theme="light"] .region-table th:nth-child(4),
:root[data-theme="light"] .region-table td.selected-price-cell {
    border-inline-start-color: rgba(8, 127, 115, 0.24);
}

:root[data-theme="light"] .region-table td.selected-price-cell {
    color: #087f73;
}

:root[data-theme="light"] .filter-input,
:root[data-theme="light"] .filter-select {
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(54, 100, 98, 0.2);
    color: #20383b;
}

:root[data-theme="light"] .refresh-button {
    background: linear-gradient(135deg, #f6b35f, #ed887c);
    color: #26383a;
}

:root[data-theme="light"] .error {
    color: #a52b3d;
}

:root[data-theme="light"] .price-list-button,
:root[data-theme="light"] .price-modal-close {
    background: rgba(8, 127, 115, 0.08);
    border-color: rgba(8, 127, 115, 0.24);
    color: #087f73;
}

:root[data-theme="light"] .price-list-button:hover,
:root[data-theme="light"] .price-list-button:focus-visible,
:root[data-theme="light"] .price-modal-close:hover,
:root[data-theme="light"] .price-modal-close:focus-visible {
    background: rgba(8, 127, 115, 0.16);
    outline-color: #087f73;
}

:root[data-theme="light"] .price-pill {
    background: rgba(8, 127, 115, 0.08);
    border-color: rgba(8, 127, 115, 0.18);
    color: #1d3035;
}

:root[data-theme="light"] .deal-stats div {
    background: rgba(26, 77, 74, 0.055);
}

:root[data-theme="light"] .region-table th,
:root[data-theme="light"] .region-table td,
:root[data-theme="light"] .price-modal-table th,
:root[data-theme="light"] .price-modal-table td {
    border-bottom-color: rgba(35, 65, 68, 0.14);
}

:root[data-theme="light"] .regional-price:focus-visible,
:root[data-theme="light"] .deal-stat-tooltip:focus-visible,
:root[data-theme="light"] .modal-sortable-header:hover,
:root[data-theme="light"] .modal-sortable-header:focus-visible {
    outline-color: #087f73;
}

:root[data-theme="light"] .price-modal-backdrop {
    background: rgba(25, 43, 45, 0.48);
}

:root[data-theme="light"] .price-modal {
    background: #fff;
    border-color: rgba(54, 100, 98, 0.2);
    box-shadow: 0 30px 80px rgba(24, 49, 51, 0.24);
}

:root[data-theme="light"] .price-modal-table th.modal-sortable-header:hover,
:root[data-theme="light"] .price-modal-table th.modal-sortable-header:focus-visible,
:root[data-theme="light"] .section-heading,
:root[data-theme="light"] .region-table td.region-name-cell {
    color: #243e40;
}

:root[data-theme="light"] .row-number-badge {
    background: linear-gradient(145deg, rgba(8, 127, 115, 0.12), rgba(237, 136, 124, 0.12));
    border-color: rgba(8, 127, 115, 0.28);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.8), 0 3px 8px rgba(24, 49, 51, 0.1);
    color: #087f73;
}
