/* =========================================================
   Fuel Prices Explorer
   App-specific visual identity
   ========================================================= */


/* ---------------------------------------------------------
   Fuel colour system
   --------------------------------------------------------- */

.fuelprices-search-page,
.fuelprices-results-page {
    --explorer-accent: #d97706;
    --explorer-accent-strong: #b45309;
    --explorer-accent-dark: #92400e;

    --explorer-accent-soft: rgba(217, 119, 6, 0.10);
    --explorer-accent-medium: rgba(217, 119, 6, 0.18);
    --explorer-accent-border: rgba(217, 119, 6, 0.28);
}


.fuelprices-search-page > .page-section {
    padding-top: 2rem;
}

.fuelprices-results-page > .page-section {
    padding-top: 2rem;
}


/* ---------------------------------------------------------
   Search page
   --------------------------------------------------------- */

.fuelprices-search-page .eyebrow {
    color: var(--explorer-accent-strong);
}



/* ---------------------------------------------------------
   Fuel search card header
   --------------------------------------------------------- */

.fuelprices-search-card .search-card-header {
    display: block;

    min-height: 0;
    padding: 0;

    overflow: hidden;

    border-bottom: 1px solid #e4e8eb;

    color: #18384d;
    background: #ffffff;
}

.fuelprices-search-card
.search-card-header .eyebrow {
    display: block;

    margin: 0;
    padding: 0.65rem 2.25rem;

    color: #ffffff;
    background: var(--explorer-accent);

    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fuelprices-search-card
.search-card-header h2 {
    max-width: 760px;

    margin:
        1.5rem
        2.25rem
        0.4rem;

    color: #18384d;

    font-size:
        clamp(1.45rem, 2.5vw, 1.85rem);

    line-height: 1.2;
}

.fuelprices-search-card
.search-card-header p:not(.eyebrow) {
    max-width: 760px;

    margin:
        0
        2.25rem
        1.5rem;

    color: #647886;

    line-height: 1.6;
}




/* ---------------------------------------------------------
   Form controls
   --------------------------------------------------------- */


.fuelprices-search-card {
    width: 100%;
    max-width: none;
}

.fuelprices-search-form {
    width: 100%;
}


.fuelprices-primary-fields {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1.5rem;
}

.fuelprices-primary-fields .form-field {
    margin: 0;
}

.fuelprices-primary-fields select {
    width: 100%;
}


.fuelprices-search-form .date-field-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 1.5rem;
}

.fuelprices-search-form
.date-field-grid .form-field {
    margin: 0;
}

.fuelprices-search-form
.date-field-grid input {
    width: 100%;
}

.fuelprices-search-form
.time-range-fieldset {
    max-width: 950px;
}

.fuelprices-search-form
.time-range-options {
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
}






.fuelprices-search-page .form-field input:focus,
.fuelprices-search-page .form-field select:focus {
    border-color: var(--explorer-accent);

    box-shadow:
        0 0 0 3px var(--explorer-accent-soft);
}

.fuelprices-search-page .search-button {
    border-color: var(--explorer-accent);
    background: var(--explorer-accent);
}

.fuelprices-search-page .search-button:hover {
    border-color: var(--explorer-accent-strong);
    background: var(--explorer-accent-strong);
}


/* ---------------------------------------------------------
   Time-range cards
   --------------------------------------------------------- */

.fuelprices-search-page .time-range-option:hover {
    border-color: var(--explorer-accent-border);
    background: var(--explorer-accent-soft);
}

.fuelprices-search-page
.time-range-radio:checked
+ .time-range-option-content {
    color: var(--explorer-accent-dark);
}


/* ---------------------------------------------------------
   Information note
   --------------------------------------------------------- */

.fuelprices-search-page .search-form-note {
    border: 0;
    border-left: 4px solid var(--explorer-accent);

    color: #5b4636;
    background: #fff7ed;
}

.fuelprices-search-card .search-card-header::before,
.fuelprices-search-card .search-card-header::after {
    content: none;
    display: none;
}

.fuelprices-search-page .search-form-note > span {
    color: var(--explorer-accent-strong);
}


/* ---------------------------------------------------------
   Results page
   --------------------------------------------------------- */

.fuelprices-results-page .page-heading .eyebrow,
.fuelprices-results-page .section-eyebrow {
    color: var(--explorer-accent-strong);
}

.fuelprices-results-page .results-back-link {
    color: var(--explorer-accent-strong);
}

.fuelprices-results-page .results-back-link:hover {
    color: var(--explorer-accent-dark);
}

.fuelprices-results-page .results-panel {
    border-color: rgba(217, 119, 6, 0.17);
}





/* ---------------------------------------------------------
   Results hero
   --------------------------------------------------------- */

.fuelprices-results-hero {
    position: relative;
    overflow: hidden;

    margin-top: 1rem;

    padding: 1.7rem 2rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;

    border-radius: 14px;

    background:
        radial-gradient(
            circle at 84% 0%,
            rgba(255, 255, 255, 0.10) 0,
            rgba(255, 255, 255, 0.10) 13%,
            transparent 13.5%
        ),
        linear-gradient(
            135deg,
            #92400e 0%,
            #b45309 52%,
            #d97706 100%
        );

    color: #ffffff;

    box-shadow:
        0 14px 30px rgba(120, 53, 15, 0.14);
}

.fuelprices-results-hero-copy {
    min-width: 0;
}

.fuelprices-results-hero-eyebrow {
    margin: 0 0 0.45rem;

    color: #fde68a;

    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fuelprices-results-hero-title {
    margin: 0;

    color: #ffffff;

    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 2.8rem);
    line-height: 1.05;
}

.fuelprices-results-hero-detail {
    margin: 0.55rem 0 0;

    color: rgba(255, 255, 255, 0.92);

    font-size: 0.88rem;
    line-height: 1.5;
}

.fuelprices-results-hero-detail span {
    margin: 0 0.3rem;
    color: #fde68a;
}

.fuelprices-results-report-button {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    gap: 0.45rem;

    padding: 0.7rem 0.9rem;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;

    background: rgba(255, 255, 255, 0.08);

    color: #ffffff;
    text-decoration: none;

    font-size: 0.78rem;
    font-weight: 700;
}

.fuelprices-results-report-button:hover {
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

@media (max-width: 700px) {
    .fuelprices-results-hero {
        padding: 1.4rem;

        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .fuelprices-results-hero-title {
        font-size: 2rem;
    }
}



@media (max-width: 700px) {

    .fuelprices-search-card
    .search-card-header .eyebrow {
        padding-inline: 1.5rem;
    }

    .fuelprices-search-card
    .search-card-header h2 {
        margin-inline: 1.5rem;
    }

    .fuelprices-search-card
    .search-card-header p:not(.eyebrow) {
        margin-inline: 1.5rem;
    }


    .fuelprices-primary-fields,
    .fuelprices-search-form .date-field-grid {
        grid-template-columns: 1fr;
    }

    .fuelprices-search-form
    .time-range-options {
        grid-template-columns: 1fr;
    }


}





/* ---------------------------------------------------------
   Tables
   --------------------------------------------------------- */

.fuelprices-results-page
.fuelprices-table thead {
    background: rgba(255, 247, 237, 0.72);
}

.fuelprices-results-page
.fuelprices-table tbody tr:hover {
    background: rgba(255, 251, 235, 0.76);
}


/* ---------------------------------------------------------
   Accessibility
   --------------------------------------------------------- */

.fuelprices-search-page a:focus-visible,
.fuelprices-search-page button:focus-visible,
.fuelprices-results-page a:focus-visible,
.fuelprices-results-page button:focus-visible {
    outline: 3px solid var(--explorer-accent-medium);
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   Fuel summary cards
   --------------------------------------------------------- */

.fuelprices-results-page
.results-summary-section
.summary-card {
    border-left: 4px solid var(--explorer-accent);
}

.fuelprices-results-page
.results-summary-section
.summary-card::before {
    background: var(--explorer-accent);
}

.fuelprices-results-page
.results-summary-section
.summary-card:hover {
    border-color: var(--explorer-accent);
}



/* ---------------------------------------------------------
   Fuel hero
   --------------------------------------------------------- */

.fuelprices-hero {
    margin-bottom: 1.5rem;
    overflow: hidden;

    border-radius: 16px;

    background:
        linear-gradient(
            90deg,
            rgba(146, 64, 14, 0.12) 0%,
            rgba(180, 83, 9, 0.06) 52%,
            rgba(217, 119, 6, 0) 68%
        ),
        url("../images/fuel-prices-hero-1800x600.89daf17699aa.webp")
        center / cover no-repeat;

    color: #ffffff;

    box-shadow:
        0 18px 36px rgba(120, 53, 15, 0.16);
}



.fuelprices-hero-content {
    min-height: 250px;
    padding: 2rem 2.25rem;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}


.fuelprices-hero-copy {
    position: relative;
    z-index: 1;

    width: 58%;
    max-width: 650px;
}


.fuelprices-hero-eyebrow {
    margin: 0 0 0.65rem;

    color: #fde68a;

    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.fuelprices-hero h1 {
    margin: 0;

    color: #ffffff;

    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
}

.fuelprices-hero-introduction {
    max-width: 600px;
    margin: 0.9rem 0 0;

    color: rgba(255, 255, 255, 0.92);

    font-size: 0.96rem;
    line-height: 1.65;
}

.fuelprices-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 1.15rem;

    margin-top: 1.35rem;
}

.fuelprices-hero-badges span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;

    padding: 0;

    border: 0;
    border-radius: 0;

    color: rgba(255, 255, 255, 0.88);
    background: transparent;
    box-shadow: none;

    font-size: 0.82rem;
    font-weight: 600;
}

.fuelprices-hero-badges i {
    color: #fde68a;
}

.fuelprices-hero-badges span:not(:last-child)::after {
    content: "•";

    margin-left: 1.15rem;

    color: rgba(255, 255, 255, 0.32);
}



@media (max-width: 700px) {
    .fuelprices-hero {
        background-position: center;
    }

    .fuelprices-hero-content {
        min-height: auto;
        padding: 1.6rem;
    }

    .fuelprices-hero-copy {
        width: 100%;
        max-width: none;
    }

    .fuelprices-hero h1 {
        font-size: 2.15rem;
    }
}




/* =========================================================
   Fuel Results — Semantic section identities
   ========================================================= */


/* Trend analysis — Fuel orange */

.fuelprices-results-page
.results-panel--fuel-trend
> .section-heading::before {
    background: #d97706;
}

.fuelprices-results-page
.results-panel--fuel-trend
.section-eyebrow {
    color: #b45309;
}


/* Source records — amber */

.fuelprices-results-page
.results-panel--fuel-records
> .section-heading::before {
    background: #f59e0b;
}

.fuelprices-results-page
.results-panel--fuel-records
.section-eyebrow {
    color: #b45309;
}


/* Key insights — teal supporting identity */

.fuelprices-results-page
.results-insights-section
.section-eyebrow {
    color: #0f766e;
}

.fuelprices-results-page
.results-insights-section
.insight-card-icon {
    color: #0f766e;
}

.fuelprices-results-page
.results-insights-section
.insight-card:first-child {
    border-left: 4px solid #0f766e;
}


/* Source information — restrained teal */

.fuelprices-results-page
.results-source-section
.section-eyebrow {
    color: #0f766e;
}


/* =========================================================
   Fuel page canvas
   ========================================================= */

.fuelprices-search-page,
.fuelprices-results-page {
    background: #ffffff !important;
}

.fuelprices-search-page::before,
.fuelprices-results-page::before {
    display: none !important;
}