/* Shared PlugLater chrome: header, buttons, type floor, rates note. */

header.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.site-header .site-nav-link,
.site-referral,
.site-footer-link,
.nav-toggle {
    min-height: 44px;
}

.site-nav-link {
    display: inline-flex;
    align-items: center;
    color: #cbd5e1;
    font-weight: 600;
    text-decoration: none;
}

.site-nav-link:hover,
.site-nav-link[aria-current="page"] {
    color: #f5911e;
}

.site-nav-link:focus-visible,
.site-referral:focus-visible,
.site-footer-link:focus-visible,
.iog-card:focus-visible,
.btn:focus-visible,
.rates-note summary:focus-visible {
    outline: 2px solid #f5911e;
    outline-offset: 2px;
}

.site-referral {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-sizing: border-box;
    max-width: 100%;
    padding: 0.35rem 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 0.75rem;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.3;
    text-decoration: none;
}

.site-referral:hover {
    border-color: rgba(255, 255, 255, 0.45);
    color: #f8fafc;
}

.site-referral-tag {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0.25rem;
    padding: 0.15rem 0.3rem;
    font-size: 13px;
    line-height: 1.2;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #94a3b8;
}

/* #64748B (slate-500) is too faint for text. !important keeps this colour over the utility in tw.css. */
.text-slate-500 {
    color: #94a3b8 !important;
}

.group:hover .group-hover\:text-cyan-300 { color: #67e8f9 !important; }
.group:hover .group-hover\:text-emerald-300 { color: #6ee7b7 !important; }
.group:hover .group-hover\:text-amber-300 { color: #fcd34d !important; }
.group:hover .group-hover\:text-\[\#f5911e\] { color: #f5911e !important; }

/* 13px is the smallest text size. */
.text-xs,
.text-\[9px\],
.text-\[10px\],
.text-\[11px\],
.text-\[12px\] {
    font-size: 13px !important;
}

table.data-table td::before,
.stephen-charger figcaption {
    font-size: 13px !important;
}

@media (max-width: 767px) {
    body {
        font-size: 16px;
        line-height: 1.5;
    }

    .text-sm {
        font-size: 16px !important;
    }

    /* The #73 owner-review card keeps the text size it shipped with. */
    .owner-review .text-sm {
        font-size: 0.875rem !important;
    }

    /* Body text stays 16px. Labels, links and buttons in the page do not go below 14px. */
    main p,
    main li,
    main label,
    main button,
    main a {
        font-size: 16px;
    }

    main .text-xs,
    main .text-\[9px\],
    main .text-\[10px\],
    main .text-\[11px\],
    main .text-\[12px\] {
        font-size: 14px !important;
    }

    main input,
    main select,
    main textarea {
        min-height: 44px;
        font-size: 16px;
    }
}

/* Larger breakpoint utilities must beat the floor above. */
@media (min-width: 640px) {
    .sm\:text-xs { font-size: 13px !important; }
    .sm\:text-sm { font-size: 0.875rem !important; }
    .sm\:text-base { font-size: 1rem !important; }
    .sm\:text-lg { font-size: 1.125rem !important; }
    .sm\:text-xl { font-size: 1.25rem !important; }
    .sm\:text-2xl { font-size: 1.5rem !important; }
    .sm\:text-3xl { font-size: 1.875rem !important; }
    .sm\:text-4xl { font-size: 2.25rem !important; }
}

@media (min-width: 768px) {
    .md\:text-xs { font-size: 13px !important; }
    .md\:text-sm { font-size: 0.875rem !important; }
    .md\:text-base { font-size: 1rem !important; }
    .md\:text-lg { font-size: 1.125rem !important; }
    .md\:text-xl { font-size: 1.25rem !important; }
}

.btn:not(.hidden) {
    display: inline-flex;
}

.btn[hidden],
[data-show-all][hidden],
[data-show-cars][hidden] {
    display: none !important;
}

.btn {
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    max-width: 100%;
    min-height: 44px;
    padding: 0.7rem 1.15rem;
    border-radius: 0.75rem;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.btn-primary {
    background: rgb(245, 145, 30);
    border: 2px solid rgb(245, 145, 30);
    color: #1b3461;
}

.btn-primary:hover {
    background: #ffb04a;
    border-color: #ffb04a;
    color: #1b3461;
}

.btn-secondary {
    background: transparent;
    border: 2px solid rgb(245, 145, 30);
    color: rgb(245, 145, 30);
}

.btn-secondary:hover {
    background: rgba(245, 145, 30, 0.12);
    color: rgb(245, 145, 30);
}

.rates-note {
    margin-top: 0.75rem;
    max-width: 48rem;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.5;
}

.rates-note summary {
    min-height: 44px;
    cursor: pointer;
    list-style: none;
    color: #e2e8f0;
    font-size: 16px;
    line-height: 1.4;
}

.rates-note summary::-webkit-details-marker {
    display: none;
}

.rates-note summary::before {
    content: "";
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin-right: 0.55rem;
    border-right: 2px solid #f5911e;
    border-bottom: 2px solid #f5911e;
    transform: rotate(-45deg);
    vertical-align: middle;
}

.rates-note[open] summary::before {
    transform: rotate(45deg);
}

.rates-note:not([open]) summary {
    white-space: normal;
    padding-top: 0.55rem;
    padding-bottom: 0.35rem;
}

.rates-note[open] summary {
    white-space: normal;
    padding-top: 0.55rem;
    padding-bottom: 0.35rem;
}

.rates-note-body {
    padding: 0.15rem 0 0.25rem 1.15rem;
}

.rates-note-body p {
    margin-top: 0.35rem;
}

.iog-card {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    box-sizing: border-box;
    max-width: 40rem;
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border: 1px solid #2a4a73;
    border-radius: 1rem;
    background: rgba(21, 42, 74, 0.9);
    text-decoration: none;
}

.iog-card:hover {
    border-color: #f5911e;
}

.iog-card-kicker {
    color: #f5911e;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.iog-card-title {
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
}

.iog-card-text {
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.45;
}

.site-footer-link {
    display: inline-flex;
    align-items: center;
    color: #f5911e;
    font-weight: 600;
    text-decoration: underline;
}

.site-footer-link:hover {
    color: #ffc56a;
}

button.site-footer-link {
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
}

/* Grouped section header. One 64px row; panels sit over the page. */

.site-header-bar {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.5rem;
    height: 63px;
    padding: 0 0.75rem;
    background: rgba(11, 18, 32, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
    min-width: 0;
    min-height: 44px;
    color: #fff;
    text-decoration: none;
}

.site-brand-badge {
    display: none;
}

.site-desktop-nav {
    display: none;
}

.site-icon {
    flex: 0 0 auto;
    display: block;
}

.site-section {
    position: static;
}

.site-section-toggle,
.site-acc-toggle {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    border: 0;
    background: transparent;
    color: #cbd5e1;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.site-section-toggle {
    min-height: 44px;
    padding: 0 0.3rem;
    border-radius: 0.6rem;
    font-size: 13px;
    line-height: 1.2;
    white-space: nowrap;
}

.site-section-toggle:hover,
.site-section-toggle[aria-expanded="true"],
.site-section-toggle.is-current,
.site-acc-toggle:hover,
.site-acc-toggle[aria-expanded="true"],
.site-acc-toggle.is-current {
    color: #f5911e;
}

.site-chevron {
    width: 14px;
    height: 14px;
    transition: transform 0.15s ease;
}

.site-section-toggle[aria-expanded="true"] .site-chevron,
.site-acc-toggle[aria-expanded="true"] .site-chevron {
    transform: rotate(180deg);
}

.site-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 50;
    box-sizing: border-box;
    max-height: calc(100vh - 64px);
    overflow: auto;
    padding: 0.75rem 0.75rem 1rem;
    background: #0B1220 !important;
    background-color: #0B1220 !important;
    opacity: 1;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid #2a4a73;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.site-panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0.25rem;
    max-width: 72rem;
    margin: 0 auto;
}

.site-panel-link,
.site-acc-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0.35rem 0.6rem;
    border-radius: 0.65rem;
    color: #e2e8f0;
    font-weight: 600;
    font-size: 16px;
    line-height: 1.3;
    text-decoration: none;
}

.site-panel-link .site-icon,
.site-acc-link .site-icon,
.site-acc-toggle .site-icon {
    color: #f5911e;
}

.site-panel-link:hover,
.site-acc-link:hover,
.site-panel-link[aria-current="page"],
.site-acc-link[aria-current="page"] {
    background: rgba(245, 145, 30, 0.12);
    color: #fff;
}

.site-panel-referral {
    max-width: 72rem;
    margin: 0.65rem auto 0;
}

a.site-calc {
    flex: 0 0 auto;
    gap: 0.35rem;
    padding: 0 0.7rem;
    white-space: nowrap;
}

a.site-calc .site-icon {
    width: 16px;
    height: 16px;
}

.site-calc-bar {
    margin-left: auto;
}

.site-menu-calc {
    margin: 0.35rem 0.25rem 0.5rem;
    width: calc(100% - 0.5rem);
    justify-content: center;
}

.site-acc + .site-acc,
.site-referral-menu {
    border-top: 1px solid rgba(42, 74, 115, 0.85);
}

.site-acc-toggle {
    width: 100%;
    min-height: 56px;
    padding: 0 0.25rem;
    font-size: 16px;
}

.site-acc-panel {
    padding: 0.15rem 0 0.35rem 0.35rem;
}

.site-referral-menu {
    width: 100%;
    max-width: 100%;
    margin: 0.5rem 0 0.25rem;
    justify-content: flex-start;
    white-space: normal;
}

.site-referral-desktop {
    display: none !important;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.site-section-toggle:focus-visible,
.site-acc-toggle:focus-visible,
.site-panel-link:focus-visible,
.site-acc-link:focus-visible,
.site-brand:focus-visible {
    outline: 2px solid #f5911e;
    outline-offset: 2px;
}

a.site-calc:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.site-footer-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem 1.5rem;
}

.site-footer-col h2 {
    margin: 0 0 0.35rem;
    color: #f5911e;
    font-family: "Space Grotesk", sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
}

.site-footer-col a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}

.site-footer-col a:hover,
.site-footer-col a[aria-current="page"] {
    color: #f5911e;
}

.site-footer-referral {
    display: inline-flex;
}

@media (min-width: 768px) {
    .site-footer-cols {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer-col a {
        min-height: 36px;
        font-size: 14px;
    }
}

@media (min-width: 1024px) {
    .site-desktop-nav {
        display: flex !important;
        flex: 1 1 auto;
        align-items: center;
        justify-content: flex-end;
        flex-wrap: nowrap;
        gap: 0.1rem;
        min-width: 0;
    }

    .site-calc-bar,
    .nav-toggle,
    #site-nav-panel {
        display: none !important;
    }

    .site-referral-desktop {
        display: inline-flex !important;
        flex: 0 0 auto;
        margin-left: 0.35rem;
    }
}

@media (min-width: 1280px) {
    .site-brand-badge {
        display: inline-flex;
    }

    .site-footer-cols {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* Wide tables scroll inside the page. Flex children default to min-width:auto and would otherwise stretch the page. */
main {
    min-width: 0;
}

.section-band,
.section-band-inner,
.overflow-x-auto,
.best-buys-products,
.best-buys-product,
.car-picker,
.icon-tile {
    min-width: 0;
    max-width: 100%;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon-circle {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 176, 74, 0.12);
    color: #ffb04a;
}

.icon-circle svg,
.icon-tile-arrow {
    display: block;
    flex: 0 0 auto;
}

.section-band {
    background: #0b1220;
}

.section-band-alt {
    background: #0f1a2e;
}

.section-band-inner {
    box-sizing: border-box;
    max-width: 64rem;
    margin: 0 auto;
    padding: 1.75rem 1rem 2rem;
}

.section-band-head {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.section-band-head .section-heading {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 20px;
}

.section-band-head .btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.25;
}

.section-heading > span:last-child {
    min-width: 0;
}

.intent-grid,
.section-tile-grid {
    display: grid;
    gap: 0.75rem;
}

.intent-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-tile-grid {
    grid-template-columns: minmax(0, 1fr);
}

.section-tile-grid .icon-tile {
    flex-direction: row;
    align-items: center;
}

.section-tile-grid .icon-tile-copy {
    flex: 1 1 auto;
}

.section-tile-grid .icon-tile-arrow {
    margin-left: auto;
}

.icon-tile {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    box-sizing: border-box;
    min-height: 44px;
    padding: 16px;
    border: 1px solid #2a4a73;
    border-radius: 16px;
    background: #142949;
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.icon-tile:hover {
    border-color: #f5911e;
    transform: translateY(-2px);
}

.icon-tile:focus-visible {
    outline: 2px solid #ffb04a;
    outline-offset: 2px;
}

.icon-tile-copy {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
    max-width: 100%;
}

.icon-tile-title {
    display: block;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: break-word;
}

.icon-tile-desc {
    display: block;
    max-width: 100%;
    overflow: visible;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
}

.icon-tile-arrow {
    color: #ffb04a;
}

.intent-grid .icon-tile {
    min-height: 132px;
}

.key-numbers {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    box-sizing: border-box;
    max-width: 100%;
    margin: 0;
    padding: 20px;
    border: 1px solid #2a4a73;
    border-radius: 16px;
    background: #142949;
}

.key-numbers-value {
    display: block;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.15;
}

.key-numbers-value.is-saving {
    color: #34d399;
}

.key-numbers-label {
    display: block;
    margin-top: 0.2rem;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.35;
}

.car-picker-block,
.site-panel .car-picker,
.site-acc-panel .car-picker {
    box-sizing: border-box;
    max-width: 100%;
    margin: 1.25rem 0 0.5rem;
    padding: 1rem;
    border: 1px solid #2a4a73;
    border-radius: 16px;
    background: #0f1a2e;
}

.site-panel .car-picker,
.site-acc-panel .car-picker {
    max-width: 72rem;
    margin: 0 auto 0.85rem;
}

.car-picker-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.car-picker-title,
.car-picker-intro {
    margin: 0;
}

.car-picker-title {
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

.car-picker-intro {
    margin: 0 0 0.85rem;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.5;
}

.car-picker-label {
    display: block;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
}

.car-picker-search {
    display: block;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    margin-top: 0.35rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid #2a4a73;
    border-radius: 0.75rem;
    background: #0b1220;
    color: #fff;
    font: inherit;
    font-size: 16px;
}

.car-picker-search:focus-visible,
.car-brand:focus-visible,
.table-show-all:focus-visible {
    outline: 2px solid #ffb04a;
    outline-offset: 2px;
}

.car-picker-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.car-brand {
    box-sizing: border-box;
    min-height: 44px;
    margin: 0;
    padding: 0.35rem 0.75rem;
    border: 1px solid #2a4a73;
    border-radius: 999px;
    background: transparent;
    color: #e2e8f0;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.car-brand[aria-pressed="true"] {
    border-color: #ffb04a;
    background: rgba(255, 176, 74, 0.12);
    color: #ffb04a;
}

.car-picker-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 0.25rem;
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
}

.car-picker-list a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-sizing: border-box;
    min-height: 44px;
    padding: 0.35rem 0.5rem;
    border-radius: 0.65rem;
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    overflow-wrap: break-word;
}

.car-picker-list a:hover {
    background: rgba(245, 145, 30, 0.12);
    color: #fff;
}

.car-picker-list a:focus-visible {
    outline: 2px solid #ffb04a;
    outline-offset: 2px;
}

.car-picker-list .site-icon {
    color: #ffb04a;
}

.car-picker-empty {
    margin: 0.75rem 0 0;
    color: #fcd34d;
    font-size: 16px;
}

.site-panel .car-picker.is-enhanced .car-picker-list,
.site-acc-panel .car-picker.is-enhanced .car-picker-list {
    max-height: none;
    overflow: visible;
}

.car-picker-more {
    margin: 0.65rem 0 0;
}

.car-picker-more a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #ffb04a;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.car-picker-more a:focus-visible,
.figures-note summary:focus-visible {
    outline: 2px solid #ffb04a;
    outline-offset: 2px;
}

.car-picker-show-all {
    margin-top: 0.75rem;
}

.figures-note {
    box-sizing: border-box;
    max-width: 48rem;
    margin: 0.75rem 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #cbd5e1;
}

.glass-card .figures-note,
.rate-edit.figures-note {
    max-width: none;
    width: 100%;
    margin: 0.35rem 0 0;
    padding: 0;
}

.figures-note summary {
    display: block;
    min-height: 44px;
    color: #e2e8f0;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
}

.figures-note summary::-webkit-details-marker {
    display: none;
}

.figures-note summary::before {
    content: "";
    display: inline-block;
    width: 0.45rem;
    height: 0.45rem;
    margin-right: 0.55rem;
    border-right: 2px solid #f5911e;
    border-bottom: 2px solid #f5911e;
    transform: rotate(-45deg);
    vertical-align: middle;
}

.figures-note[open] summary::before {
    transform: rotate(45deg);
}

.figures-note p {
    margin: 0.75rem 0 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.5;
}

tr.is-collapsed-row {
    display: none;
}

.table-show-all {
    margin-top: 0.75rem;
}

@media (min-width: 640px) {
    main > .figures-note {
        width: min(64rem, calc(100% - 3rem));
        margin-left: auto;
        margin-right: auto;
    }

    .section-band-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .icon-tile {
        padding: 20px;
    }
}

@media (min-width: 768px) {
    .icon-tile {
        flex-direction: row;
        align-items: center;
    }

    .icon-tile-copy {
        flex: 1 1 auto;
    }

    .key-numbers {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .section-heading,
    .section-band-head .section-heading {
        font-size: 28px;
    }

    .intent-grid,
    .section-tile-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .section-tile-grid .icon-tile {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-tile-grid .icon-tile-arrow {
        margin-left: 0;
    }

    .icon-tile-title {
        font-size: 18px;
    }
}

/* Best buys follows the other bands: stacked rows on a phone, grid from 1024px.
   Each product photo is a 4:3 frame, at most 14rem wide, so it stays contained. */
.best-buys-products,
.best-buys-links,
.best-buys-all {
    margin-top: 1rem;
}

.best-buys-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
    padding: 0;
    list-style: none;
}

.best-buys-products > li {
    display: flex;
    min-width: 0;
    max-width: 100%;
}

.best-buys-product {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: hidden;
    border: 1px solid #2a4a73;
    border-radius: 16px;
    background: #142949;
    color: inherit;
    text-align: center;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}

.best-buys-product:hover {
    border-color: #f5911e;
    transform: translateY(-2px);
}

.best-buys-product:focus-visible {
    outline: 2px solid #ffb04a;
    outline-offset: 2px;
}

.best-buys-product-media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow: hidden;
    background: #fff;
}

.best-buys-product-media img {
    display: block;
    width: min(100%, 14rem);
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff;
}

.best-buys-product-name,
.best-buys-product-cost {
    display: block;
    min-width: 0;
    padding-right: 0.75rem;
    padding-left: 0.75rem;
    overflow-wrap: break-word;
}

.best-buys-product-name {
    padding-top: 0.75rem;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.best-buys-product-cost {
    margin-top: auto;
    padding-top: 0.35rem;
    padding-bottom: 0.85rem;
    color: #94a3b8;
    font-size: 13px;
    line-height: 1.35;
}

.best-buys-all {
    margin-bottom: 0;
}

.best-buys-all .btn {
    width: 100%;
}

@media (min-width: 1024px) {
    .section-tile-grid.best-buys-primary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .best-buys-product-name {
        font-size: 18px;
    }
}

/* Answer first: the figure or verdict, then the detail. Notes stay on the page, closed. */
.answer-lead {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}

p.answer-lead {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(52, 211, 153, 0.5);
    border-radius: 16px;
    background: rgba(16, 185, 129, 0.08);
}

.glass-card.answer-lead,
.calc-result.answer-lead {
    border-color: rgba(52, 211, 153, 0.55);
}

.note-fold {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    margin-top: 0.75rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #cbd5e1;
}

.note-fold > summary {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 44px;
    cursor: pointer;
    list-style: none;
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 600;
}

.note-fold > summary::-webkit-details-marker {
    display: none;
}

.note-fold > summary::before {
    content: "";
    flex: 0 0 auto;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid #f5911e;
    border-bottom: 2px solid #f5911e;
    transform: rotate(-45deg);
}

.note-fold[open] > summary::before {
    transform: rotate(45deg);
}

.note-fold > summary :is(h2, h3) {
    margin: 0;
    padding-top: 0;
    font-size: 1.05rem;
}

.calc-card.calc-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.calc-card.calc-card[class*="grid-cols"],
.calc-card.calc-card[class~="grid"] {
    display: grid;
}

.calc-result.calc-result,
.calc-card > .pl-share-link,
.calc-card > .pl-rate-note {
    order: -1;
}

.calc-card[class*="grid"] > .calc-result,
.calc-card[class*="grid"] > .pl-share-link {
    grid-column: 1 / -1;
}

.page-flow.page-flow {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.page-flow.page-flow > * {
    min-width: 0;
    margin-top: 0;
}

main.tariff-answer {
    display: flex;
    flex-direction: column;
}

main.tariff-answer > * {
    min-width: 0;
    order: 5;
}

main.tariff-answer > :first-child {
    order: 0;
}

main.tariff-answer > h1 {
    order: 1;
}

main.tariff-answer > p.answer-lead {
    order: 2;
}

main.tariff-answer > .rates-note {
    order: 3;
}

main.hub-answer {
    display: flex;
    flex-direction: column;
}

main.hub-answer > * {
    min-width: 0;
    order: 8;
}

main.hub-answer > :first-child {
    order: 0;
}

main.hub-answer > h1 {
    order: 1;
}

main.hub-answer > .rates-note {
    order: 2;
}

main.hub-answer > #picker,
main.hub-answer > #miles-error,
main.hub-answer > #filter-empty {
    order: 3;
}

main.hub-answer > #result {
    order: 4;
}

main.hub-answer > .pl-share-link {
    order: 5;
}

main.hub-answer > .car-picker-block {
    order: 9;
}

main.hub-answer > [id^="email-signup"] {
    order: 10;
}

.range-scale.range-scale {
    position: relative;
    display: block;
    height: 1.7rem;
    margin-top: 0.35rem;
}

.range-scale > span {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    line-height: 1.3;
    font-size: 13px;
}

.range-scale > span:first-child {
    left: 0;
}

.range-scale > span:last-child {
    left: auto;
    right: 0;
}

.range-scale > span:not(:first-child):not(:last-child) {
    transform: translateX(-50%);
}

.rates-used-line {
    margin: 0.55rem 0 0;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.45;
}

.rate-edit.figures-note {
    width: 100%;
    max-width: none;
    margin: 0.35rem 0 0;
}

.calc-card.calc-card > .pl-share-link.pl-share-link {
    margin-bottom: 12px;
}

#standing-charge-note {
    font-size: 13px !important;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
}

table.region-compact {
    width: 100%;
    min-width: 0 !important;
    table-layout: fixed;
}

table.region-compact th,
table.region-compact td {
    white-space: normal;
    overflow-wrap: anywhere;
    vertical-align: top;
    font-size: 13px;
    line-height: 1.3;
    padding: 0.3rem 0.28rem;
}

[role="group"][aria-label="Car version"]:has(> button:nth-child(4)) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
}

[role="group"][aria-label="Car version"]:has(> button:nth-child(4)) > button {
    width: 100%;
    min-width: 0;
    text-align: center;
}

#calculator-hub input[type="range"] {
    display: block;
    width: 100%;
    max-width: 100%;
}

@media (max-width: 639px) {
    #calculator-hub#calculator-hub {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    #calculator-hub#calculator-hub > * {
        min-width: 0;
        margin-top: 0 !important;
    }

    #preset-buttons-container#preset-buttons-container {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        gap: 0.55rem;
        overflow: visible;
    }

    #preset-buttons-container > .preset-btn,
    #preset-buttons-container > .preset-btn > div,
    #preset-buttons-container .eff-note {
        min-width: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    #preset-buttons-container > .preset-btn {
        width: 100%;
        height: auto;
        min-height: 44px;
        align-items: flex-start;
        justify-content: flex-start !important;
        padding: 0.85rem 1rem !important;
    }

    .calc-tabs.calc-tabs {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.45rem;
        padding: 0.45rem !important;
    }

    .calc-tabs .tab-btn {
        min-height: 44px;
        min-width: 0;
        padding: 0.7rem 1rem !important;
        font-size: 14px !important;
        line-height: 1.2;
        white-space: normal;
        text-align: center;
        justify-content: center;
        gap: 0.35rem;
    }

    .calc-tabs .tab-btn > span:first-child {
        display: inline;
    }

    #home-calculator#home-calculator {
        padding: 0.7rem !important;
    }

    #home-calculator > .grid {
        display: flex !important;
        flex-direction: column;
        gap: 0.65rem !important;
    }

    #home-calculator [class*="col-span-5"] {
        order: -1;
        padding: 0.7rem !important;
    }

    #results-subtitle {
        font-size: 14px !important;
        letter-spacing: 0.02em;
        line-height: 1.35;
    }

    #bars-container .bar-meta {
        display: flex;
        justify-content: space-between;
        gap: 0.35rem;
        align-items: baseline;
    }

    #bars-container .bar-meta span:first-child {
        min-width: 0;
    }

    #bars-container .bar-meta span:last-child {
        white-space: normal;
        font-size: 14px;
    }

    #home-calculator [class*="col-span-7"] > * + *,
    #controls-ev > * + *,
    #controls-laundry > * + *,
    #controls-timers > * + * {
        margin-top: 0.55rem !important;
    }

    #controls-ev .glass-subcard,
    #controls-laundry .glass-subcard,
    #controls-timers .glass-subcard {
        padding: 0.7rem !important;
    }

    #controls-ev .eff-grid.eff-grid {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        overflow: visible;
        max-width: 100%;
        gap: 0.45rem;
    }

    #controls-ev .eff-btn,
    #controls-ev .eff-note,
    #controls-ev .eff-title {
        width: auto;
        min-width: 0;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    #controls-ev .eff-btn {
        padding: 0.4rem 0.55rem !important;
    }

    #controls-ev .glass-subcard:has(.eff-grid) {
        padding: 0.45rem !important;
    }

    #calculator-hub > .glass-card > div:first-child > .flex {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        gap: 0.55rem;
        width: 100%;
    }

    #calculator-hub > .glass-card > div:first-child > .flex > .glass-subcard {
        flex-direction: row;
        align-items: center;
        min-width: 0;
        min-height: 44px;
        padding: 0.65rem 0.85rem !important;
        gap: 0.5rem;
    }

    #calculator-hub > .glass-card > div:first-child > .flex input {
        flex: 1 1 auto;
        width: auto !important;
        min-width: 0;
        max-width: 8rem;
        margin-left: auto;
    }

    #calculator-hub > .glass-card > div:first-child > .flex label,
    #calculator-hub > .glass-card > div:first-child > .flex span {
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .calc-share.calc-share {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.55rem;
    }

    #results-hero-amount {
        font-size: 2.15rem !important;
        line-height: 1.05;
    }

    #bars-container#bars-container {
        padding-top: 0.55rem !important;
        padding-bottom: 0.45rem !important;
    }

    #calculator-hub > .next-steps {
        padding: 0.65rem !important;
    }

    #calculator-hub > .next-steps > * + * {
        margin-top: 0.35rem !important;
    }

    #calculator-hub#calculator-hub > .space-y-6 {
        order: -1;
    }

    #calculator-hub > .glass-card {
        padding: 0.65rem !important;
    }

    #calculator-hub > .glass-card h2 {
        font-size: 1.125rem;
        line-height: 1.3;
    }

    #calculator-hub > .glass-card > div:first-child {
        gap: 0.3rem !important;
        padding-bottom: 0.35rem !important;
    }

    #controls-ev > div:first-child h2,
    #controls-laundry > div:first-child h2,
    #controls-timers > div:first-child h2 {
        font-size: 1.05rem !important;
        line-height: 1.2;
    }

    #controls-ev .glass-subcard,
    #controls-laundry .glass-subcard,
    #controls-timers .glass-subcard {
        padding: 0.7rem !important;
    }

    #home-calculator [class*="col-span-5"] .text-center {
        padding-bottom: 0.45rem !important;
    }

    #bars-container#bars-container {
        display: flex;
        flex-direction: column;
        gap: 0.35rem;
    }

    #bars-container#bars-container > * + * {
        margin-top: 0 !important;
    }

    #calculator-hub > .next-steps .flex {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.55rem;
    }

    #calculator-hub > .next-steps a {
        min-height: 44px;
        padding: 0.7rem 1rem !important;
        text-align: center;
    }

    #calculator-hub > .next-steps p {
        font-size: 14px;
        line-height: 1.45;
    }

    #calculator-hub .figures-note,
    #calculator-hub .rates-note,
    #calculator-hub .note-fold {
        margin: 0.35rem 0 0 !important;
        padding: 0 !important;
        border: 0;
        background: transparent;
    }

    #home-calculator#home-calculator {
        padding: 0.4rem !important;
    }

    #home-calculator > .grid {
        gap: 0.4rem !important;
    }

    #bars-container#bars-container {
        padding-top: 0.2rem !important;
        padding-bottom: 0.15rem !important;
        gap: 0.25rem;
    }

    #results-hero-amount {
        font-size: 1.85rem !important;
        margin: 0 !important;
    }

    main .overflow-x-auto:has(table.stack-cards) {
        overflow: visible;
        box-sizing: border-box;
        padding: 0.55rem;
    }

    main table.stack-cards {
        min-width: 0 !important;
        display: block;
        width: 100%;
    }

    main table.stack-cards caption {
        display: block;
        white-space: normal;
        overflow: visible;
        word-break: normal;
    }

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

    main table.stack-cards tbody {
        display: block;
    }

    main table.stack-cards tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        margin: 0.22rem 0;
        padding: 0.32rem 0.55rem;
        line-height: 1.3;
        border: 1px solid rgba(42, 74, 115, 0.95);
        border-radius: 0.75rem;
        background: rgba(11, 18, 32, 0.55);
    }

    main table.stack-cards tr.is-collapsed-row {
        display: none !important;
    }

    main table.stack-cards th,
    main table.stack-cards td {
        display: block;
        width: auto;
        min-width: 0;
        padding: 0.12rem 0;
        border: 0;
        white-space: normal;
        position: static;
    }

    main table.stack-cards th[scope="row"] {
        order: 1;
        font-size: 0.95rem;
        padding-bottom: 0.15rem;
    }

    main table.stack-cards td[data-label] {
        display: grid;
        grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
        column-gap: 0.5rem;
        align-items: baseline;
        order: 3;
    }

    main table.stack-cards td[data-label]::before {
        content: attr(data-label);
        grid-column: 1;
        grid-row: 1;
        font-size: 14px;
        font-weight: 600;
        color: #94a3b8;
        white-space: normal;
    }

    main table.stack-cards td[data-label] > .card-value {
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
    }

    #iog-cars-table.stack-cards tr > td:nth-child(6) {
        order: 2;
    }

    #cost-table.stack-cards tr > td:nth-child(4) {
        order: 2;
    }

    #cost-table.stack-cards tr {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    #cost-table.stack-cards caption {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    [role="group"][aria-label="Car version"]:has(> button:nth-child(4)) {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Related links stay in the article column: one compact card on a phone,
   two equal columns from 640px. Never three, so a row cannot end on one card. */
.related-block {
    margin-top: 1.25rem;
    min-width: 0;
    max-width: 100%;
}

.related-block h2 {
    margin-bottom: 0.5rem;
    font-size: 1.125rem;
}

.related-block .section-tile-grid {
    grid-template-columns: minmax(0, 1fr);
    align-items: stretch;
    gap: 0.45rem;
}

.related-block .icon-tile {
    flex-direction: row;
    align-items: center;
    height: 100%;
    gap: 0.45rem;
    padding: 8px 10px;
    border-radius: 12px;
}

.related-block .icon-circle {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
}

.related-block .icon-circle svg {
    width: 16px;
    height: 16px;
}

.related-block .icon-tile-copy {
    flex: 1 1 auto;
}

.related-block .icon-tile-title,
.related-block .icon-tile-desc,
.related-block .iog-card-title,
.related-block .iog-card-text {
    overflow-wrap: break-word;
}

.related-block .icon-tile-title {
    font-size: 14px;
    line-height: 1.25;
}

.related-block .icon-tile-arrow {
    width: 14px;
    height: 14px;
    margin-left: auto;
}

@media (min-width: 640px) {
    .related-block {
        margin-top: 2.5rem;
    }

    .related-block h2 {
        margin-bottom: 0.75rem;
        font-size: 1.25rem;
    }

    .related-block .section-tile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .related-block .icon-tile {
        padding: 16px;
        gap: 0.55rem;
        border-radius: 16px;
    }

    .related-block .icon-circle {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    .related-block .icon-circle svg {
        width: 24px;
        height: 24px;
    }

    .related-block .icon-tile-title {
        font-size: 16px;
        line-height: 1.3;
    }

    .related-block .icon-tile-arrow {
        width: 18px;
        height: 18px;
    }
}

@media (min-width: 1024px) {
    .related-block .section-tile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-block .section-tile-grid .icon-tile {
        flex-direction: row;
        align-items: center;
    }
}

/* Car facts: show every column from 1024px up. The card is wider than the text column and centred on the viewport. */
@media (min-width: 1024px) {
    main .car-facts {
        width: min(1180px, calc(100vw - 2rem));
        max-width: min(1180px, calc(100vw - 2rem));
        margin-left: calc((100% - min(1180px, 100vw - 2rem)) / 2);
        margin-right: 0;
        overflow-x: visible;
    }

    main .car-facts table {
        font-size: 13px;
        width: 100%;
    }

    main .car-facts th,
    main .car-facts td {
        padding: 0.4rem 0.4rem;
        white-space: nowrap;
    }

    main .car-facts th:first-child,
    main .car-facts td:first-child {
        white-space: normal;
        min-width: 7.5rem;
    }
}

/* Versions and cost-per-1,000 tables: labelled cards up to 767px.
   The shared stack-cards rules stop at 639px, so a phone in the 640–767px
   band still saw every column at once. data-label is the field name. */
@media (max-width: 767px) {
    main .car-stack {
        overflow: visible !important;
        max-width: 100%;
        box-sizing: border-box;
    }

    main .car-stack table.stack-cards {
        display: block !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    main .car-stack table.stack-cards caption {
        display: block;
        white-space: normal;
    }

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

    main .car-stack table.stack-cards tbody {
        display: block;
    }

    main .car-stack table.stack-cards tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        margin: 0.35rem 0;
        padding: 0.55rem 0.7rem;
        line-height: 1.35;
        border: 1px solid rgba(42, 74, 115, 0.95);
        border-radius: 0.75rem;
        background: rgba(11, 18, 32, 0.55);
    }

    main .car-stack table.stack-cards th,
    main .car-stack table.stack-cards td {
        display: block;
        width: auto;
        min-width: 0;
        padding: 0.2rem 0;
        border: 0;
        white-space: normal;
    }

    main .car-stack table.stack-cards th[scope="row"] {
        font-size: 1rem;
        padding-bottom: 0.25rem;
    }

    main .car-stack table.stack-cards td[data-label] {
        display: grid;
        grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
        column-gap: 0.65rem;
        align-items: baseline;
    }

    main .car-stack table.stack-cards td[data-label]::before {
        content: attr(data-label);
        font-size: 14px;
        font-weight: 600;
        color: #94a3b8;
        white-space: normal;
    }

    main .car-stack table.stack-cards td[data-label] > .card-value {
        min-width: 0;
    }
}

/* Phone layout guard (scripts/mobile-check). Keeps every page inside the screen width even when the
   Tailwind CDN is slow, blocked or not yet applied: then img width="600"/"400" attributes and long
   <select> options would set a 400-609px layout and the phone zooms the whole page out.
   The first block repeats Tailwind's own base rules, so nothing changes once the CDN has loaded. */
img,
video {
    max-width: 100%;
    height: auto;
}

iframe,
embed,
object,
canvas,
select,
input,
textarea {
    max-width: 100%;
}

/* A fieldset is as wide as its widest <select> by default. */
fieldset {
    min-width: 0;
}

/* Phones only: 14px text floor and 44px tap targets. Desktop and tablet keep the sizes above. */
@media (max-width: 767px) {
    /* Long words and URLs wrap instead of widening the page. Phones only (#112 advisory). */
    body {
        overflow-wrap: break-word;
    }

    /* Calculators and the menu button stay 44px, with a gap between them. The wordmark shrinks first. */
    .site-header-bar {
        gap: 0.75rem;
        max-width: 100%;
        min-width: 0;
    }

    .site-brand {
        flex: 1 1 auto;
        min-width: 0;
    }

    .site-brand .font-display {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    a.site-calc.site-calc-bar,
    .nav-toggle {
        flex: 0 0 auto;
        min-width: 44px;
        min-height: 44px;
    }

    a.site-calc.site-calc-bar {
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    /* One column through the phone floor. The 639px block used to force 2- and 3-column
       grids, and Tailwind sm: rules turn several of these back into columns from 640px. */
    .intent-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .intent-grid .icon-tile {
        flex-direction: row;
        align-items: center;
        gap: 0.75rem;
        min-height: 44px;
        padding: 14px 16px;
    }

    .intent-grid .icon-tile-copy {
        flex: 1 1 auto;
    }

    .intent-grid .icon-tile-arrow {
        margin-left: auto;
        flex: 0 0 auto;
    }

    .intent-grid .icon-tile-title {
        font-size: 16px;
    }

    .intent-grid .icon-tile-desc {
        font-size: 14px;
    }

    .key-numbers,
    .best-buys-products,
    .related-block .section-tile-grid,
    .grid-cols-2,
    .sm\:grid-cols-2 {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #preset-buttons-container#preset-buttons-container,
    .calc-tabs.calc-tabs,
    .calc-share.calc-share {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    #preset-buttons-container > .preset-btn,
    .calc-tabs .tab-btn,
    .calc-share .flex,
    #calculator-hub > .next-steps a {
        min-height: 44px;
    }

    #calculator-hub > .glass-card > div:first-child > .flex,
    #calculator-hub > .next-steps .flex {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
    }

    [role="group"][aria-label="Car version"]:has(> button:nth-child(4)) {
        grid-template-columns: minmax(0, 1fr);
    }

    .text-xs,
    .text-\[9px\],
    .text-\[10px\],
    .text-\[11px\],
    .text-\[12px\],
    table.data-table td::before,
    .stephen-charger figcaption,
    .site-referral,
    .site-referral-tag,
    .iog-card-kicker,
    .site-section-toggle,
    .site-footer-col h2,
    .icon-tile-desc,
    .key-numbers-label,
    .car-picker-label,
    .car-brand,
    .best-buys-product-cost,
    .range-scale > span,
    #standing-charge-note,
    table.region-compact th,
    table.region-compact td,
    main table.stack-cards td[data-label]::before {
        font-size: 14px !important;
    }

    /* Calculator labels set in the 639px block above, and styles injected by consent.js and share-link.js. */
    .calc-tabs .tab-btn,
    #results-subtitle,
    #bars-container .bar-meta span:last-child,
    #calculator-hub > .next-steps p,
    #cookie-banner p,
    #cookie-banner a,
    #overnight-tariff-table .row-note,
    .pl-share-btn {
        font-size: 14px !important;
    }

    .pl-share-btn,
    main a.min-h-8 {
        min-height: 44px !important;
    }

    /* Shop and partner buttons (px-4 py-2): 12px instead of 8px top and bottom makes them 44px high. */
    main a.inline-block.rounded-xl.py-2 {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
    }

    main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
    main select,
    main button,
    main [role="button"],
    main summary,
    .pl-share-btn {
        min-height: 44px;
    }

    /* Links that stand alone in a list item, table cell or card value. Vertical padding on an inline box
       does not move the text or change line spacing; it only enlarges the tap area. Not paragraphs:
       :only-child ignores text nodes, so p > a:only-child also matched links inside running text (#112). */
    li > a:only-child:not([class*="block"]):not([class*="flex"]):not([class*="grid"]),
    th > a:only-child:not([class*="block"]):not([class*="flex"]):not([class*="grid"]),
    td > a:only-child:not([class*="block"]):not([class*="flex"]):not([class*="grid"]),
    dd > a:only-child:not([class*="block"]):not([class*="flex"]):not([class*="grid"]),
    .card-value > a:only-child:not([class*="block"]):not([class*="flex"]):not([class*="grid"]) {
        display: inline-block;
        min-height: 44px;
        min-width: 44px;
    }

    td > a:only-child:not([class*="block"]):not([class*="flex"]):not([class*="grid"]),
    dd > a:only-child:not([class*="block"]):not([class*="flex"]):not([class*="grid"]),
    .card-value > a:only-child:not([class*="block"]):not([class*="flex"]):not([class*="grid"]),
    nav > a:not([class*="block"]):not([class*="flex"]):not([class*="grid"]) {
        padding-top: 11px;
        padding-bottom: 11px;
    }

    /* Short standalone links in the page body (MG4, SUV, Pod). Header and car-picker
       links keep their own flex rules. Desktop is unchanged: this block is phones only. */
    main li > a:only-child:not([class*="block"]):not([class*="flex"]):not([class*="grid"]),
    main th > a:only-child:not([class*="block"]):not([class*="flex"]):not([class*="grid"]),
    main td > a:only-child:not([class*="block"]):not([class*="flex"]):not([class*="grid"]),
    main .card-value > a:only-child:not([class*="block"]):not([class*="flex"]):not([class*="grid"]) {
        display: inline-flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        box-sizing: border-box;
        max-width: 100%;
        min-width: 44px;
        min-height: 44px;
        padding-left: 6px;
        padding-right: 6px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* A link that is the whole line, not a word inside a sentence. */
    a.link-line {
        display: inline-flex;
        flex-wrap: wrap;
        align-items: center;
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
        min-height: 44px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* Phone hit areas. These controls stay their current size from 768px up. */
    .sort-btn {
        box-sizing: border-box;
        min-width: 44px;
        min-height: 44px;
    }

    #cost-table th a,
    main table th > a,
    main table td > a:not([class*="block"]):not([class*="flex"]):not([class*="grid"]) {
        display: inline-flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
        box-sizing: border-box;
        max-width: 100%;
        min-width: 44px;
        min-height: 44px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    a[href="/how-this-site-is-funded/"],
    a[href*="ev-database.org"] {
        display: inline-flex;
        flex-wrap: wrap;
        align-items: center;
        box-sizing: border-box;
        max-width: 100%;
        min-width: 44px;
        min-height: 44px;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    /* Source lines are one link with a date in the same item. The row must be allowed to wrap. */
    main li,
    main details {
        min-width: 0;
        max-width: 100%;
    }

    main li > a,
    main details a {
        flex-wrap: wrap;
        white-space: normal;
        overflow-wrap: anywhere;
        max-width: 100%;
    }

    #ev-mileage {
        box-sizing: border-box;
        height: 44px;
        min-height: 44px;
        margin-top: 0;
        margin-bottom: 0;
    }

    main input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]),
    main select {
        font-size: 16px;
    }
}

.compare-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.compare-tile {
    min-height: 44px;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(42, 74, 115, 0.9);
    background: rgba(11, 18, 32, 0.7);
}

.compare-tile h2 {
    margin: 0 0 0.25rem;
    color: #fff;
    font-size: 1.05rem;
}

.from-chip {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-top: 0.85rem;
    padding: 0 0.9rem;
    border-radius: 999px;
    background: rgba(245, 145, 30, 0.16);
    color: #fff;
    font-weight: 700;
}

.trust-strip {
    margin: 0.85rem 0 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.45;
}

.trust-strip a {
    color: #cbd5e1;
    text-decoration: underline;
}

@media (min-width: 768px) {
    .compare-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Meaco paid buttons. Same size on desktop and phones so the label can wrap. */
a.meaco-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0.65rem 1rem;
    border-radius: 0.75rem;
    background: #f5911e;
    color: #0b1220;
    font-weight: 700;
    font-size: 0.875rem;
    line-height: 1.3;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;
}

@media (min-width: 640px) {
    a.meaco-cta {
        width: auto;
    }
}

a.meaco-cta:hover {
    background: #ffa94d;
    color: #0b1220;
}

a.meaco-more {
    display: inline-flex;
    align-items: center;
    box-sizing: border-box;
    min-height: 44px;
}

@media (max-width: 767px) {
    a.link-line {
        display: inline-flex;
        flex-wrap: wrap;
        align-items: center;
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
        min-height: 44px;
        white-space: normal;
        overflow-wrap: anywhere;
    }
}

.result-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.result-card .result-headline {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
}

.calc-result.result-card .result-headline {
    font-size: 1.5rem;
}

.result-card .result-breakdown {
    margin: 0;
    list-style: none;
}

.result-card ul.result-breakdown {
    padding: 0;
}

.result-card .result-assumptions,
.result-card .result-cta {
    font-size: 14px;
    line-height: 1.45;
}

#home-hero {
    padding-top: 1rem;
    padding-bottom: 0.75rem;
}

#home-hero h1 {
    font-size: 1.7rem;
    line-height: 1.15;
}

#home-hero .hero-answer,
.trust-strip {
    margin: 0.75rem auto 0;
    max-width: 40rem;
    font-size: 16px;
    line-height: 1.45;
}

.trust-strip {
    font-size: 14px;
    color: #94a3b8;
}

#home-hero .hero-cta {
    margin-top: 0.75rem;
}

#ev-mileage {
    box-sizing: border-box;
    height: 44px;
    min-height: 44px;
}

.pl-feedback {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 0.75rem;
    padding: 1rem;
    border: 1px solid #2a4a73;
    border-radius: 1rem;
    background: #152a4a;
    color: #e2e8f0;
    font-family: "Plus Jakarta Sans", sans-serif;
}

.pl-feedback * {
    box-sizing: border-box;
}

.pl-feedback-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    min-width: 0;
}

.pl-feedback h2 {
    margin: 0;
    min-width: 0;
    padding-top: 0.55rem;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
}

.pl-feedback-dismiss,
.pl-feedback-send {
    min-width: 44px;
    min-height: 44px;
    border-radius: 0.75rem;
    font-family: "Space Grotesk", sans-serif;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.pl-feedback-dismiss {
    flex: 0 0 auto;
    padding: 0 0.85rem;
    border: 1px solid #cbd5e1;
    background: #1e293b;
    color: #fff;
    line-height: 1;
}

.pl-feedback-form {
    min-width: 0;
}

.pl-feedback label {
    display: block;
    margin-top: 0.75rem;
    color: #e2e8f0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.pl-feedback textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-top: 0.35rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #2a4a73;
    border-radius: 0.75rem;
    background: #0b1220;
    color: #fff;
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 16px;
    line-height: 1.4;
    min-height: 6rem;
    resize: vertical;
}

.pl-feedback-count {
    margin: 0.25rem 0 0;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.4;
    text-align: right;
}

.pl-feedback-send {
    margin-top: 0.75rem;
    padding: 0.7rem 1.15rem;
    border: 2px solid #f5911e;
    background: #f5911e;
    color: #1b3461;
}

.pl-feedback-send:disabled {
    cursor: default;
    opacity: 0.7;
}

.pl-feedback-error,
.pl-feedback-thanks {
    margin: 0.75rem 0 0;
    font-size: 16px;
    line-height: 1.4;
}

.pl-feedback-error {
    color: #fde68a;
}

.pl-feedback-thanks {
    color: #fff;
    font-weight: 700;
}

.pl-feedback-dismiss:focus-visible,
.pl-feedback-send:focus-visible,
.pl-feedback textarea:focus-visible,
.pl-feedback input:focus-visible {
    outline: 2px solid #f5911e;
    outline-offset: 2px;
}
