:root {
    color-scheme: light;
    --grocer-black: #000000;
    --grocer-yellow: #FDDA24;
    --grocer-grey: #F0F2F2;
    --grocer-link: #005689;
    --paper: var(--grocer-grey);
    --paper-raised: #ffffff;
    --paper-muted: var(--grocer-grey);
    --ink: var(--grocer-black);
    --ink-deep: var(--grocer-black);
    --muted: #4d5659;
    --rule: #c7cdcd;
    --teal: var(--grocer-link);
    --teal-deep: var(--grocer-link);
    --amber: var(--grocer-yellow);
    --amber-pale: #fff8cc;
    --rise: #8f241b;
    --rise-pale: #fbece9;
    --fall: #006548;
    --fall-pale: #e5f3ed;
    --flat: #485154;
    --flat-pale: var(--grocer-grey);
    --shadow-board: 0 0 0 1px rgba(0, 0, 0, 0.14);
    --shadow-panel:
        0 0 0 1px rgba(0, 0, 0, 0.09),
        0 2px 5px rgba(0, 0, 0, 0.05);
    --radius-board: 0;
    --radius-panel: 2px;
    --font-body: "unit", Arial, sans-serif;
    --font-display: "ff-meta-serif-web-pro", Georgia, serif;
    --font-data: "unit-slab", "Roboto Slab", Georgia, serif;
    --font-mono: var(--font-data);
}

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

html {
    background: var(--grocer-grey);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--grocer-grey);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.45;
}

a {
    color: inherit;
}

.skip-link {
    position: fixed;
    z-index: 20;
    top: 8px;
    left: 8px;
    padding: 10px 14px;
    color: #ffffff;
    background: var(--ink-deep);
    border-radius: 6px;
    font-weight: 800;
    transform: translateY(-150%);
    transition-property: transform;
    transition-duration: 140ms;
    transition-timing-function: ease-out;
}

.skip-link:focus {
    transform: translateY(0);
}

.grocer-board {
    position: relative;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    overflow: hidden;
    background: var(--paper-raised);
    border-radius: var(--radius-board);
    box-shadow: var(--shadow-board);
}

.grocer-board::after {
    display: none;
}

.board-header {
    position: relative;
    color: #ffffff;
    background: var(--grocer-black);
}

.board-header::before {
    display: none;
}

.brand-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 24px;
    color: var(--grocer-black);
    background: var(--grocer-yellow);
}

.grocer-lockup,
.fuel-finder-lockup {
    display: inline-flex;
    min-width: 0;
    align-items: center;
}

.grocer-lockup {
    gap: 14px;
}

.grocer-logo {
    display: block;
    width: 147px;
    height: auto;
    flex: 0 0 auto;
    aspect-ratio: 725.91 / 197.48;
}

.fuel-finder-lockup {
    min-height: 44px;
    justify-content: flex-end;
    gap: 7px;
    padding: 2px 0;
    color: var(--grocer-black);
    text-align: right;
    text-decoration: none;
}

.collaboration-mark {
    flex: 0 0 auto;
    font-family: var(--font-data);
    font-size: 24px;
    font-weight: 400;
    line-height: 1;
}

.ff-name {
    font-family: var(--font-data);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition-property: color;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
    white-space: nowrap;
}

.fuel-finder-lockup:hover .ff-name {
    color: var(--grocer-link);
}

.fuel-finder-lockup:focus-visible {
    outline: 3px solid var(--grocer-black);
    outline-offset: 3px;
}

.partner-edition,
.kicker,
.freshness-state,
.method-index,
.movement-period,
.movement-count,
.mobile-label,
.tie-note {
    font-family: var(--font-data);
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.partner-edition {
    padding-left: 14px;
    color: var(--grocer-black);
    border-left: 1px solid rgba(0, 0, 0, 0.32);
    font-size: 11px;
    font-weight: 700;
    text-align: left;
}

.headline-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 26px;
    padding: 27px 28px 29px;
}

.headline-copy {
    max-width: 710px;
}

.kicker {
    margin: 0 0 8px;
    color: var(--grocer-yellow);
    font-size: 11px;
    font-weight: 700;
}

h1 {
    max-width: 18ch;
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(30px, 5vw, 54px);
    font-stretch: condensed;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 0.94;
    text-wrap: balance;
}

.dek {
    max-width: 62ch;
    margin: 12px 0 0;
    color: var(--grocer-grey);
    font-size: 15px;
    text-wrap: pretty;
}

.freshness-card {
    display: block;
    min-width: 216px;
    padding: 12px 14px;
    background: #171717;
    border-left: 4px solid var(--grocer-yellow);
    border-radius: 2px;
    box-shadow: none;
}

.freshness-state {
    display: block;
    margin-bottom: 3px;
    color: var(--grocer-grey);
    font-size: 11px;
    font-weight: 700;
}

.freshness-card strong {
    display: block;
    font: 700 12px/1.25 var(--font-mono);
    font-variant-numeric: tabular-nums;
}

.table-section {
    padding: 16px 18px 18px;
    background: var(--paper-raised);
}

.retailer-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    box-shadow: 0 0 0 1px var(--rule);
}

.retailer-table caption {
    padding: 11px 13px 12px;
    color: var(--muted);
    background: var(--grocer-grey);
    border-bottom: 1px solid var(--rule);
    font-size: 13px;
    text-align: left;
    text-wrap: pretty;
}

.col-retailer {
    width: 11.5%;
}

.col-average {
    width: 8.5%;
}

.col-movement {
    width: 24%;
}

.col-trend {
    width: 10%;
}

.col-station {
    width: 18%;
}

.col-sites {
    width: 10%;
}

thead th {
    padding: 11px 9px 10px;
    color: #ffffff;
    background: var(--grocer-black);
    border-right: 1px solid #3b3b3b;
    border-bottom: 3px solid var(--grocer-yellow);
    font: 700 11px/1.2 var(--font-data);
    letter-spacing: 0.045em;
    text-align: left;
    text-transform: uppercase;
}

thead th:last-child {
    border-right: 0;
}

.numeric-heading {
    text-align: right;
}

tbody th,
tbody td {
    padding: 12px 9px;
    color: var(--ink);
    background: #ffffff;
    border-right: 1px solid var(--rule);
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}

tbody tr:nth-child(even) > th,
tbody tr:nth-child(even) > td {
    background: var(--grocer-grey);
}

tbody tr:last-child > th,
tbody tr:last-child > td {
    border-bottom: 0;
}

tbody tr > :last-child {
    border-right: 0;
}

.cell-retailer {
    text-align: left;
}

.retailer-name {
    display: block;
    overflow-wrap: anywhere;
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.08;
    text-wrap: balance;
}

.cell-average,
.cell-sites {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.price-value {
    display: block;
    font: 800 20px/1 var(--font-data);
    letter-spacing: -0.025em;
}

.price-unit {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font: 700 10px/1.2 var(--font-mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.movement-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
}

.movement-item {
    min-width: 0;
    padding: 7px 6px 6px;
    background: var(--flat-pale);
    border-radius: 7px;
    box-shadow: 0 0 0 1px rgba(66, 90, 96, 0.12);
}

.movement-item.is-up {
    color: var(--rise);
    background: var(--rise-pale);
    box-shadow: 0 0 0 1px rgba(153, 47, 38, 0.15);
}

.movement-item.is-down {
    color: var(--fall);
    background: var(--fall-pale);
    box-shadow: 0 0 0 1px rgba(12, 103, 76, 0.15);
}

.movement-item.is-unavailable {
    color: var(--muted);
    background: var(--grocer-grey);
}

.movement-period,
.movement-value,
.movement-count {
    display: block;
    min-width: 0;
}

.movement-period {
    min-height: 2.2em;
    color: currentColor;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.1;
}

.movement-value {
    margin-top: 4px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.movement-count {
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.025em;
    line-height: 1.1;
}

.sparkline-shell {
    width: 100%;
    min-height: 46px;
    margin: 0;
    padding: 5px;
    overflow: hidden;
    background:
        linear-gradient(rgba(18, 40, 47, 0.08) 1px, transparent 1px) 0 50% / 100% 50%,
        linear-gradient(90deg, rgba(18, 40, 47, 0.035) 1px, transparent 1px) 0 0 / 25% 100%,
        rgba(255, 255, 255, 0.5);
    border-radius: 7px;
    box-shadow: inset 0 0 0 1px rgba(18, 40, 47, 0.1);
}

.sparkline {
    display: block;
    width: 100%;
    height: 38px;
    overflow: visible;
}

.sparkline-path {
    fill: none;
    stroke: var(--teal);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
}

.sparkline-end {
    fill: var(--amber);
    stroke: var(--ink-deep);
    stroke-width: 1.2;
}

.trend-unavailable,
.unavailable {
    color: var(--muted);
    font-size: 10px;
    font-style: normal;
    line-height: 1.3;
}

.station-cell {
    font-variant-numeric: tabular-nums;
}

.station-price,
.station-name,
.station-address,
.tie-note {
    display: block;
}

.station-price {
    margin-bottom: 4px;
    color: var(--ink-deep);
    font: 800 13px/1 var(--font-mono);
}

.station-name {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.station-address {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    line-height: 1.3;
    overflow-wrap: anywhere;
    text-wrap: pretty;
}

.tie-note {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.cell-sites strong,
.cell-sites span {
    display: block;
}

.cell-sites strong {
    font: 800 16px/1 var(--font-mono);
}

.cell-sites > span:not(.mobile-label):not(.unavailable) {
    margin-top: 5px;
    color: var(--muted);
    font: 700 10px/1.2 var(--font-mono);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mobile-label {
    display: none;
}

.empty-row td {
    padding: 34px 20px;
    color: var(--muted);
    font-weight: 700;
    text-align: center;
}

.board-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    padding: 17px 22px 19px;
    background: var(--paper);
    border-top: 1px solid var(--rule);
}

.method-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 9px 12px;
    max-width: 820px;
}

.method-index {
    grid-row: 1 / span 2;
    padding: 5px 6px;
    color: var(--grocer-black);
    background: var(--grocer-yellow);
    border-radius: 1px;
    font-size: 10px;
    font-weight: 700;
}

.method-note p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    text-wrap: pretty;
}

.method-note .stale-note {
    color: #7d3029;
}

.source-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 8px 2px;
    color: var(--grocer-link);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition-property: color, scale;
    transition-duration: 150ms;
    transition-timing-function: ease-out;
}

.source-link:hover {
    color: var(--grocer-black);
}

.source-link:active {
    scale: 0.96;
}

.source-arrow {
    color: currentColor;
    font-family: var(--font-data);
    font-size: 15px;
    line-height: 1;
}

.source-link:focus-visible,
.retailer-table:focus-visible {
    outline: 3px solid var(--grocer-black);
    outline-offset: 3px;
}

.skip-link:focus-visible {
    outline: 3px solid var(--grocer-yellow);
    outline-offset: 3px;
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 980px) and (min-width: 861px) {
    body {
        padding: 0;
    }

    .headline-grid {
        padding-right: 20px;
        padding-left: 20px;
    }

    .table-section {
        padding-right: 10px;
        padding-left: 10px;
    }

    thead th,
    tbody th,
    tbody td {
        padding-right: 6px;
        padding-left: 6px;
    }

    .movement-grid {
        gap: 3px;
    }

    .movement-item {
        padding-right: 4px;
        padding-left: 4px;
    }

    .retailer-name {
        font-size: 15px;
    }

    .station-name,
    .station-address {
        font-size: 11px;
    }
}

@media (max-width: 860px) {
    body {
        padding: 0;
        font-size: 14px;
    }

    .grocer-board {
        border-radius: 0;
    }

    .brand-strip {
        gap: 10px;
        padding: 10px 12px;
    }

    .grocer-lockup {
        gap: 8px;
    }

    .grocer-logo {
        width: 112px;
    }

    .collaboration-mark {
        display: block;
        font-size: 20px;
        line-height: 1;
    }

    .ff-name {
        font-size: 25px;
    }

    .partner-edition {
        max-width: 16ch;
        padding-left: 8px;
        font-size: 10px;
        line-height: 1.2;
    }

    .headline-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
        padding: 20px 15px 18px;
    }

    h1 {
        max-width: 15ch;
        font-size: clamp(29px, 10vw, 42px);
    }

    .dek {
        margin-top: 8px;
        font-size: 11px;
    }

    .freshness-card {
        width: 100%;
        min-width: 0;
        padding: 9px 11px;
    }

    .table-section {
        padding: 8px;
    }

    .retailer-table {
        display: block;
        box-shadow: none;
    }

    .retailer-table caption {
        display: block;
        margin-bottom: 8px;
        padding: 9px 10px;
        border: 0;
        border-radius: 8px;
        box-shadow: var(--shadow-panel);
        font-size: 11px;
    }

    .retailer-table colgroup {
        display: none;
    }

    .retailer-table thead {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .retailer-table tbody {
        display: grid;
        gap: 8px;
    }

    .retailer-table tbody tr:not(.empty-row) {
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        background: var(--paper-raised);
        border-radius: 12px;
        box-shadow: var(--shadow-panel);
    }

    .retailer-table tbody tr:nth-child(even) {
        background: var(--grocer-grey);
    }

    .retailer-table tbody th,
    .retailer-table tbody td {
        display: block;
        min-width: 0;
        padding: 0;
        background: transparent !important;
        border: 0;
    }

    .cell-retailer {
        grid-column: 1 / 4;
        align-self: center;
    }

    .cell-sites {
        display: flex;
        grid-column: 1 / 7;
        align-self: center;
        align-items: baseline;
        gap: 6px;
        text-align: left;
    }

    .cell-average {
        grid-column: 5 / 7;
        align-self: center;
    }

    .cell-movement {
        grid-column: 1 / 5;
    }

    .cell-trend {
        grid-column: 5 / 7;
    }

    .cell-cheapest {
        grid-column: 1 / 4;
    }

    .cell-priciest {
        grid-column: 4 / 7;
    }

    .mobile-label {
        display: block;
        margin-bottom: 4px;
        color: var(--muted);
        font-size: 10px;
        font-weight: 900;
        line-height: 1.1;
    }

    .retailer-name {
        display: inline;
        font-size: 18px;
    }

    .price-value {
        font-size: 18px;
    }

    .price-unit {
        margin-top: 3px;
        font-size: 10px;
    }

    .cell-sites strong {
        font-size: 13px;
    }

    .cell-sites > span:not(.mobile-label):not(.unavailable) {
        margin-top: 0;
        font-size: 10px;
    }

    .movement-grid {
        gap: 4px;
    }

    .movement-item {
        padding: 5px 4px;
        border-radius: 6px;
    }

    .movement-period {
        min-height: auto;
        font-size: 10px;
        white-space: normal;
    }

    .movement-value {
        margin-top: 3px;
        font-size: 11px;
        line-height: 1.15;
    }

    .movement-count {
        margin-top: 3px;
        font-size: 9px;
    }

    .sparkline-shell {
        min-height: 46px;
        padding: 4px;
    }

    .sparkline {
        height: 37px;
    }

    .station-cell {
        min-height: 72px;
        padding: 8px !important;
        background: rgba(0, 0, 0, 0.035) !important;
        border-radius: 2px;
        box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
    }

    .station-price {
        display: inline-block;
        margin: 0 0 3px;
        font-size: 12px;
    }

    .station-name {
        font-size: 12px;
    }

    .station-address {
        margin-top: 2px;
        font-size: 11px;
        line-height: 1.25;
    }

    .tie-note {
        margin-top: 3px;
        font-size: 9px;
    }

    .empty-row {
        display: block;
        background: var(--paper-raised);
        border-radius: 10px;
        box-shadow: var(--shadow-panel);
    }

    .empty-row td {
        display: block;
        padding: 25px 16px !important;
        border: 0 !important;
    }

    .board-footer {
        grid-template-columns: minmax(0, 1fr);
        gap: 13px;
        padding: 14px 13px 15px;
    }

    .method-note {
        gap: 7px 9px;
    }

    .method-note p {
        font-size: 11px;
    }

    .source-link {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .partner-edition {
        display: none;
    }

    .movement-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 5px;
    }

    .movement-item {
        display: grid;
        grid-template-columns: minmax(64px, 0.8fr) minmax(88px, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 7px 8px;
    }

    .movement-value,
    .movement-count {
        margin-top: 0;
    }

    .movement-count {
        text-align: right;
    }

    .cell-movement,
    .cell-trend,
    .cell-cheapest,
    .cell-priciest {
        grid-column: 1 / -1;
    }

    .station-cell {
        min-height: 0;
    }
}

@media (max-width: 360px) {
    body {
        padding: 0;
    }

    .brand-strip {
        align-items: flex-start;
    }

    .grocer-lockup {
        gap: 6px;
    }

    .grocer-logo {
        width: 90px;
    }

    .collaboration-mark {
        font-size: 17px;
    }

    .ff-name {
        font-size: 21px;
    }

    .partner-edition {
        max-width: 13ch;
    }

    .headline-grid {
        padding-right: 12px;
        padding-left: 12px;
    }

    .retailer-table tbody tr:not(.empty-row) {
        gap: 6px;
        padding: 8px;
    }

    .movement-grid {
        gap: 3px;
    }

    .movement-item {
        padding-right: 3px;
        padding-left: 3px;
    }

    .movement-value {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .skip-link,
    .source-link {
        transition-duration: 0.01ms;
    }
}

@media (forced-colors: active) {
    .grocer-board,
    .retailer-table,
    .retailer-table tbody tr,
    .freshness-card,
    .movement-item,
    .station-cell,
    .source-link {
        border: 1px solid CanvasText;
        box-shadow: none;
    }

    .sparkline-end {
        forced-color-adjust: none;
    }
}
