/* Shared visual system, October 2026. Loaded after component styles.
   Fuel colours retain their meaning; neutral surfaces separate information
   from actions. Component behaviour and responsive controls stay intact. */
:root {
    --ink: #202f32;
    --ink-2: #46585b;
    --ink-3: #59696b;
    --paper: #f7f7f3;
    --paper-2: #f0f2ee;
    --forest-soft: #edf2ef;
    --line: #dce1dc;
    --line-dark: #82928f;
    --line-strong: #bcc9c3;
    --radius: 8px;
    --radius-sm: 6px;
    --pb-surface-radius: 8px;
    --shadow: 0 3px 12px #203b3208;
    --pb-shadow: none;
    --pb-shadow-hover: 0 3px 12px #203b3208;
}
h1, h2, h3 { letter-spacing: -.025em; }
h2 { font-weight: 650; }
.button { border-radius: 6px; font-weight: 650; }
.button--amber, .hero-search__button { box-shadow: none; }
.site-header__inner { min-height: 80px; }
.main-nav > a:not(.button) { font-weight: 600; }
.main-nav > a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
@media (min-width:1281px) {
    .main-nav > .main-nav__home { display: none; }
}
.header-prices > summary { background: var(--paper-2); }
.header-price-panel { border-radius: 8px; }
.section { padding-block: clamp(40px, 4.5vw, 64px); }
.section-heading { margin-bottom: 26px; }
.section-heading__copy { font-size: .96rem; max-width: 64ch; }

/* Home: one deliberate dark masthead, with a quiet contour effect. */
.hero { background: #173c3d; padding-block: clamp(36px, 4.5vw, 64px); }
.hero::before { background: linear-gradient(115deg, #102c30, transparent 75%); animation: none; }
.hero::after {
    background-image: repeating-radial-gradient(ellipse at 0 120%, transparent 0 90px, #d8e8dc0c 91px 92px, transparent 93px 170px);
    background-size: 100% 100%; opacity: .7;
}
.hero__grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 68px); }
.hero h1 { font-size: clamp(2.5rem, 4.4vw, 4rem); font-weight: 650; line-height: 1.08; letter-spacing: -.045em; }
.hero .pb-eyebrow { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: #c7d9d2; }
.hero__accent { color: #b9dece; }
.hero__lead { font-size: 1rem; line-height: 1.7; max-width: 43ch; }
.hero__summary { gap: 24px; margin-block: 30px 18px; }
.hero__summary > span { background: none; border: 0; border-radius: 0; padding: 0; flex: 0 1 auto; }
.hero__summary > span strong, .hero__summary > span:nth-child(n) strong { color: #fff; font-size: 1.45rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hero__content > .text-link { padding-block: 10px; font-size: .85rem; }
.hero-search { border-radius: 8px; box-shadow: none; padding: 28px; gap: 18px; }
.hero-search__heading { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.hero-search__icon { background: none; border-radius: 0; width: 32px; height: 36px; }
.hero-search__heading strong { font-weight: 650; }
.hero-search .location-picker__fields { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.hero-search .fuel-controls { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.hero-search label, .hero-search .fuel-controls label { font-size: .8rem; }
.hero-search .fuel-controls select { min-height: 52px; }

/* Price board: aligned figures rather than five floating promotional cards. */
.section--national-averages { background: #fff; }
.national-average-grid { border-radius: 0; border-inline: 0; box-shadow: none; }
.national-average-card { padding: 24px 20px; position: relative; }
.national-average-card:first-child, .national-average-card:last-child { border-radius: 0; }
.national-average-icon { position: absolute; top: 23px; right: 16px; width: 20px; height: 20px; margin: 0; }
.national-average-icon svg { width: 18px; height: 18px; }
.national-average-card h3 { padding-right: 24px; font-size: .88rem; margin-bottom: 14px; }
.national-average-value strong { font-size: 2.1rem; font-weight: 650; letter-spacing: -.035em; }
.national-average-link { padding-top: 16px; }
.national-average-count, .national-average-note { font-size: .78rem; }
.trip-home-link { border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 24px 0 0; margin-top: 26px; }
.trip-home-link h2 { font-size: 1.2rem; }

/* Local navigation uses rows, leaving cards for station results and tools. */
.section--cities, .section--companies { background: var(--paper); }
.section--categories { background: #fff; }
.section--cities .city-grid { gap: 0 30px; }
.section--cities .city-card { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; min-height: 88px; padding: 18px 0; }
.city-card > svg { background: none; border-radius: 0; padding: 0; }
.city-card__copy b { font-weight: 650; }
.city-card:hover { box-shadow: none; }
.section--cities .city-card:hover .city-card__copy b,
.company-card:hover .city-card__copy b { text-decoration: underline; text-underline-offset: 4px; }
.fuel-category { min-height: 102px; padding: 20px; grid-template-columns: 38px minmax(0,1fr) auto; }
.fuel-category__icon { background: none; border: 0; width: 34px; height: 42px; }
.fuel-category__icon b { font-size: .62rem; border-radius: 3px; right: -3px; bottom: -1px; }
.company-grid { gap: 0 32px; }
.company-card { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; padding: 22px 0; }
.company-card:nth-child(n) .company-card__icon { background: none; color: var(--forest); }
.coverage-layout--prices .state-list { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 30px; }
.state-list--prices > a { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 20px 0; min-height: 126px; gap: 10px; }
.section--coverage { background: #eef5f0; }
.state-list--prices > a:hover, .state-list--prices > a:focus-visible { background: #e1eee6; box-shadow: none; }
.state-list--prices .region-price-name { border: 0; padding-bottom: 0; }
.state-list--prices .region-price-name b { color: #214e4b; }
.state-list--prices .region-price-name > svg {
    color: #70470b; background: #fae5ba; border-radius: 4px;
    box-sizing: content-box; padding: 4px; margin-top: 0;
}
.state-list--prices .region-price-value {
    background: #d6eadd; border-radius: 6px; padding: 7px 12px;
    color: #165646; min-width: 88px;
}
.state-list--prices .region-price-value strong { color: #165646; font-weight: 700; }
.state-list--prices .region-price-value small { color: #365c4e; }
.state-list--prices > a:hover .region-price-name > svg,
.state-list--prices > a:focus-visible .region-price-name > svg { background: #f4ba58; color: #17333a; }
.state-list--prices .region-price-count small, .state-list--prices .region-price-value small { font-size: .72rem; }
.section--nearby { padding-top: 48px; background: var(--paper); }
.nearby-controls { border-radius: 8px; box-shadow: none; }
.nearby-location { background: #edf2ec; }
.nearby-location__icon { background: transparent; padding: 0; justify-content: flex-start; }
.nearby-location .button { width: auto; }
.nearby-location__intro { display: flex; align-items: flex-start; gap: 14px; }
.nearby-location__intro > div { min-width: 0; }
.nearby-location__intro .nearby-location__icon { flex: 0 0 30px; width: 30px; height: 30px; margin: 0; }
.nearby-location__intro h3 { margin: 0 0 12px; }
.nearby-location__intro p { color: var(--ink-2); font-size: .94rem; line-height: 1.7; margin: 0; }
.nearby-controls .nearby-help { font-size: .8rem; line-height: 1.65; }
.nearby-controls .button { min-height: 52px; }
@media (min-width:701px) {
    .nearby-controls { grid-template-rows: auto 52px auto; row-gap: 18px; }
    .nearby-controls > .nearby-location, .nearby-controls > form {
        display: grid; grid-row: 1 / span 3; grid-template-rows: 1fr 52px auto;
        row-gap: 18px; align-items: start;
    }
    @supports (grid-template-rows: subgrid) {
        .nearby-controls > .nearby-location, .nearby-controls > form { grid-template-rows: subgrid; }
    }
    .nearby-controls > .nearby-location { grid-column: 1; }
    .nearby-controls > form { grid-column: 2; }
    .nearby-controls .button { min-height: 52px; height: 52px; margin: 0; }
    .nearby-location .button { justify-self: start; }
    .nearby-controls .nearby-help { margin: 0; }
}

/* Shared content: restrained frames, consistent title weights and surfaces. */
.detail-header, .guide-hero, .directory-hero { background: #eef1eb; }
.thursday-hero { background: #173c3d; }
.directory-search, .filters-panel, .business-card, .detail-card,
.station-comparison, .directory-map-section, .trip-form, .trip-result, .trip-next { border-radius: 8px; box-shadow: none; }
.business-card h2, .nearby-card h3 { font-weight: 650; letter-spacing: -.015em; }
.business-card:hover, .business-card.nearby-card:hover { box-shadow: none; border-color: var(--line-dark); }
.business-card__aside .button--outline { background: #fff; }
.fuel-price, .nearby-card__amount strong { font-weight: 650; font-variant-numeric: tabular-nums; }
.pb-badge { border-radius: 4px; }
.pb-badge--assisted, .pb-badge--neutral { background: #f1f3f0; border-color: #dce1dc; }
.comparison-summary { background: #edf2ec; border-color: var(--line); }
.comparison-summary p { font-size: .9rem; line-height: 1.6; margin-top: 9px; }
.comparison-summary p.muted { font-size: .8rem; }
.home-price-explainer { max-width: 780px; }
.home-price-explainer__context { background: var(--paper); border-color: var(--line); }
.principles-grid article { border-top-width: 1px; }
.principles-grid article:nth-child(n) .principles-grid__icon { background: transparent; color: var(--forest); justify-content: flex-start; }
.section--blog-home { background: #fff; }
.article-card > a, .section--blog-home .article-card > a { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 8px 0 24px; background: none; box-shadow: none; }
.blog-grid { gap: 32px; }
.article-card h3 { font-size: 1.35rem; line-height: 1.35; }
.article-card > a:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.article-reading-time { background: none; border-radius: 0; padding: 0; color: var(--ink-3); }
.section--blog-home { background: #f5f4ed; }
.section--blog-home .blog-grid { gap: 22px; }
.section--blog-home .article-card > a {
    background: #fff; border: 1px solid #dce3da; border-radius: 8px;
    padding: 28px; box-shadow: 0 3px 12px #203b3206;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.section--blog-home .article-card h3 { color: #214e4b; margin-bottom: 16px; }
.section--blog-home .article-card p { color: var(--ink-2); line-height: 1.75; }
.section--blog-home .article-card__footer { gap: 12px; padding-top: 20px; border-color: #e0e7df; }
.section--blog-home .article-card__link {
    background: #fae5ba; color: #17333a; border-radius: 5px;
    padding: 10px 12px; min-height: 44px; font-size: .8rem; gap: 10px;
}
.section--blog-home .article-card__link svg { color: currentColor; }
.section--blog-home .article-reading-time { font-size: .72rem; }
.section--blog-home .article-card > a:hover,
.section--blog-home .article-card > a:focus-visible { border-color: #638d7b; box-shadow: 0 6px 20px #203b320d; }
.section--blog-home .article-card > a:hover .article-card__link,
.section--blog-home .article-card > a:focus-visible .article-card__link { background: #f4ba58; }
@media (max-width:700px) {
    .section--blog-home .article-card > a { padding: 22px; }
    .section--blog-home .article-card h3 { font-size: 1.22rem; }
    .section--blog-home .blog-grid { gap: 16px; }
}
.faq-list summary { font-weight: 600; }

@media (max-width:1100px) {
    .hero__grid { gap: 32px; }
    .hero-search { padding: 24px; }
    .national-average-value strong { font-size: 1.8rem; }
    .national-average-card { padding-inline: 14px; }
    .coverage-layout--prices .state-list { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width:900px) {
    .hero__grid { grid-template-columns: minmax(0,1fr); }
    .hero h1 { max-width: 20ch; }
    .hero__lead { max-width: 60ch; }
    .hero-search { max-width: none; }
}
@media (max-width:700px) {
    .hero h1 { font-size: clamp(2.3rem,8vw,3rem); }
    .hero .pb-eyebrow { font-size: .68rem; letter-spacing: .05em; }
    .hero__summary { gap: 20px; margin-top: 24px; }
    .hero__summary > span { font-size: .7rem; }
    .hero__summary > span strong { font-size: 1.3rem; }
    .hero-search { padding: 22px 20px; }
    .hero-search .location-picker__fields, .hero-search .fuel-controls { grid-template-columns: minmax(0,1fr); }
    .national-average-card { padding: 18px 0; grid-template-columns: 28px minmax(0,1fr) auto; }
    .national-average-icon { position: static; width: 24px; height: 24px; }
    .national-average-card h3 { margin: 0; padding: 0; }
    .national-average-link { padding: 0; }
    .national-average-value strong { font-size: 1.65rem; }
    .section--cities .city-grid, .company-grid { gap: 0; }
    .coverage-layout--prices .state-list { grid-template-columns: minmax(0,1fr); }
    .state-list--prices > a { min-height: 112px; }
    .trip-home-link { padding: 22px 0 0; }
    .nearby-location .button { width: 100%; }
    .nearby-location__intro { margin-bottom: 20px; }
    .blog-grid { gap: 24px; }
    .site-header__inner { min-height: 72px; }
}
