/* British Built Cars — public site: shared components.
   Each block owns its own media queries. Breakpoints: 1080 / 900 / 720 / 480. */

/* ─── Top strip ─────────────────────────────────────────────── */

.bbc-strip {
    background: var(--bbc-navy);
    color: var(--bbc-navy-muted);
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bbc-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 9px;
    padding-bottom: 9px;
}

.bbc-strip__social {
    display: flex;
    align-items: center;
    gap: 22px;
}

.bbc-strip__social a,
.bbc-strip__social span {
    color: var(--bbc-white);
}

@media (max-width: 720px) {
    .bbc-strip__inner {
        flex-wrap: wrap;
        gap: 6px 18px;
        font-size: 11px;
    }
}

/* ─── Header & nav ──────────────────────────────────────────── */

.bbc-header {
    background: var(--bbc-dark);
    border-bottom: 3px solid var(--bbc-navy);
}

.bbc-header__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding-top: 18px;
    padding-bottom: 18px;
}

.bbc-header__logo {
    display: block;
    flex: 0 0 auto;
}

/* The logo artwork is dark-on-transparent; screen blending lifts it off the
   near-black header without needing a recoloured asset. */
.bbc-header__logo img {
    display: block;
    height: 78px;
    width: auto;
    mix-blend-mode: screen;
}

.bbc-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    padding: 0 11px;
    background: transparent;
    border: 1px solid var(--bbc-line-dark-btn);
}

.bbc-burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--bbc-page);
}

.bbc-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    gap: 0 2px;
    font-size: 12.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bbc-nav a {
    padding: 10px 11px;
    white-space: nowrap;
    color: var(--bbc-on-dark-dim);
    border-bottom: 2px solid transparent;
}

.bbc-nav a:hover {
    color: var(--bbc-page);
}

.bbc-nav a.is-active {
    color: var(--bbc-page);
    border-bottom-color: var(--bbc-red);
}

@media (max-width: 900px) {
    .bbc-burger {
        display: flex;
        order: 2;
    }

    .bbc-nav {
        display: none;
        order: 3;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-top: 1px solid var(--bbc-line-dark-soft);
        margin-top: 4px;
        padding-top: 6px;
    }

    .bbc-nav[data-open='open'] {
        display: flex;
    }

    .bbc-nav a {
        padding: 13px 2px;
        border-bottom: 1px solid var(--bbc-line-dark-faint);
    }

    .bbc-nav a.is-active {
        border-bottom-color: var(--bbc-red);
    }

    .bbc-header__logo img {
        height: 58px;
    }
}

/* ─── Buttons & inline links ───────────────────────────────── */

.bbc-btn {
    display: inline-block;
    padding: 14px 22px;
    font-family: var(--bbc-font-text);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bbc-white);
    background: var(--bbc-red);
    border: 0;
    text-align: center;
}

.bbc-btn:hover {
    color: var(--bbc-white);
    background: var(--bbc-red-dark);
}

/* Full-width variant in the navy hero search panel. */
.bbc-btn--block {
    display: block;
    width: 100%;
    padding: 15px;
    font-size: 13px;
}

/* Wider variant that submits the contact form. */
.bbc-btn--wide {
    padding: 15px 30px;
    font-size: 12px;
}

/* Outlined variant for "Reset" on the navy filter bar. */
.bbc-btn--reset {
    padding: 13px 22px;
    background: transparent;
    color: var(--bbc-white);
    border: 1px solid var(--bbc-navy-muted-dim);
    font-weight: 600;
    letter-spacing: 0.16em;
}

.bbc-btn--reset:hover {
    background: var(--bbc-navy-light);
    color: var(--bbc-white);
}

/* Outlined variant for the secondary action on a dark detail head. Separate from
   --reset, which carries the navy filter bar's border token. */
.bbc-btn--ghost {
    background: transparent;
    color: var(--bbc-white);
    border: 1px solid var(--bbc-line-dark-btn);
}

.bbc-btn--ghost:hover {
    background: var(--bbc-dark-soft);
    color: var(--bbc-white);
}

/* Uppercase tracked "See all X →" link that closes a section head. */
.bbc-more {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bbc-red);
    white-space: nowrap;
}

.bbc-more:hover {
    color: var(--bbc-red-dark);
}

/* Slightly bolder, tighter call to action inside cards and article footers. */
.bbc-cta {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bbc-red);
}

.bbc-cta:hover {
    color: var(--bbc-red-dark);
}

/* ─── Form controls ────────────────────────────────────────── */

.bbc-label {
    display: block;
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 7px;
}

.bbc-select,
.bbc-input,
.bbc-textarea {
    width: 100%;
    padding: 12px 13px;
    font-family: var(--bbc-font-text);
    font-size: 14px;
    color: var(--bbc-dark-alt);
    background: var(--bbc-white);
    border: 0;
    border-radius: 0;
}

.bbc-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath fill='%2316191b' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 13px center;
    padding-right: 34px;
}

/* Light-surface variants on the contact form. */
.bbc-field .bbc-label {
    font-weight: 600;
    color: var(--bbc-muted);
}

.bbc-field .bbc-input,
.bbc-field .bbc-select,
.bbc-field .bbc-textarea {
    padding: 13px;
    font-size: 15px;
    color: var(--bbc-ink-strong);
    border: 1px solid var(--bbc-line-warm);
}

.bbc-field .bbc-textarea {
    line-height: 1.6;
    resize: vertical;
}

.bbc-field {
    margin-bottom: 18px;
}

.bbc-field--last {
    margin-bottom: 22px;
}

.bbc-error {
    display: block;
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--bbc-red);
}

.bbc-notice {
    padding: 16px 18px;
    margin-bottom: 24px;
    background: var(--bbc-white);
    border-left: 3px solid var(--bbc-red);
    font-size: 15px;
    line-height: 1.6;
    color: var(--bbc-ink-strong);
}

/* ─── Hero slideshow ──────────────────────────────────────── */

.bbc-hero {
    position: relative;
    background: var(--bbc-dark);
}

.bbc-hero__inner {
    display: grid;
    grid-template-columns: 1fr 372px;
    align-items: stretch;
}

.bbc-hero__stage {
    position: relative;
    height: 520px;
    overflow: hidden;
    background: var(--bbc-dark-soft);
}

.bbc-hero__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
}

.bbc-hero__slide.is-active {
    opacity: 1;
    animation: bbcFade 1.1s ease both;
}

.bbc-hero__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(15, 17, 19, 0.92) 0%,
        rgba(15, 17, 19, 0.15) 55%,
        rgba(15, 17, 19, 0.35) 100%
    );
}

.bbc-hero__caption {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    padding: 34px 38px;
}

.bbc-hero__category {
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--bbc-red);
    margin-bottom: 12px;
}

.bbc-hero__title {
    font-family: var(--bbc-font-display);
    font-weight: 800;
    font-size: 44px;
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--bbc-white);
    max-width: 640px;
    text-wrap: balance;
}

.bbc-hero__dots {
    display: flex;
    gap: 9px;
    margin-top: 26px;
}

.bbc-hero__dot {
    width: 34px;
    height: 3px;
    padding: 0;
    border: 0;
    background: rgba(255, 255, 255, 0.3);
}

.bbc-hero__dot.is-active {
    background: var(--bbc-red);
}

@keyframes bbcFade {
    from {
        opacity: 0;
        transform: scale(1.04);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 1080px) {
    .bbc-hero__inner {
        grid-template-columns: 1fr;
    }

    .bbc-hero__stage {
        height: 420px;
    }
}

@media (max-width: 720px) {
    .bbc-hero__stage {
        height: 340px;
    }

    .bbc-hero__caption {
        padding: 26px 24px;
    }

    .bbc-hero__title {
        font-size: 32px;
    }
}

/* ─── Vehicle gallery ─────────────────────────────────────────
   Slideshow that replaces the single hero image on a car detail
   page. Borrows the hero's `bbcFade` crossfade; unlike the hero it
   never advances on its own, since the reader is inspecting it. */

/* The thumb strip is intrinsically wider than the column it sits in on small
   screens. Grid and flex items default to min-width: auto, so without this the
   track inflates to the strip's min-content width and drags the page sideways. */
.bbc-gallery {
    min-width: 0;
}

.bbc-gallery__stage {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--bbc-dark-soft);
    outline-offset: 3px;
}

.bbc-gallery[data-bbc-zoomable] .bbc-gallery__stage {
    cursor: zoom-in;
}

.bbc-gallery__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    pointer-events: none;
}

.bbc-gallery__slide.is-active {
    opacity: 1;
    animation: bbcFade 0.7s ease both;
}

.bbc-gallery__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    font-size: 30px;
    line-height: 1;
    color: var(--bbc-white);
    background: rgba(15, 17, 19, 0.55);
    opacity: 0;
    transition: opacity 0.18s ease, background 0.18s ease;
}

.bbc-gallery__stage:hover .bbc-gallery__arrow,
.bbc-gallery__arrow:focus-visible {
    opacity: 1;
}

.bbc-gallery__arrow:hover {
    background: var(--bbc-red);
}

.bbc-gallery__arrow--prev {
    left: 14px;
}

.bbc-gallery__arrow--next {
    right: 14px;
}

.bbc-gallery__count {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 5px 11px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--bbc-white);
    background: rgba(15, 17, 19, 0.65);
}

.bbc-gallery__thumbs {
    display: flex;
    min-width: 0;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: thin;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.bbc-gallery__thumb {
    flex: 0 0 auto;
    width: 84px;
    height: 56px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--bbc-dark-soft);
    opacity: 0.6;
    transition: opacity 0.18s ease, border-color 0.18s ease;
}

.bbc-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bbc-gallery__thumb:hover,
.bbc-gallery__thumb.is-active {
    opacity: 1;
}

.bbc-gallery__thumb.is-active {
    border-color: var(--bbc-red);
}

/* ─── Lightbox ────────────────────────────────────────────────
   Built once by site.js and appended to <body>, so pages without a
   gallery carry none of this markup. */

.bbc-lightbox {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 17, 19, 0.94);
}

.bbc-lightbox[hidden] {
    display: none;
}

.bbc-lightbox__img {
    max-width: 90%;
    max-height: 86%;
    object-fit: contain;
}

.bbc-lightbox__close,
.bbc-lightbox__arrow {
    position: absolute;
    padding: 0;
    border: 0;
    color: var(--bbc-white);
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.18s ease;
}

.bbc-lightbox__close:hover,
.bbc-lightbox__arrow:hover {
    background: var(--bbc-red);
}

.bbc-lightbox__close {
    top: 22px;
    right: 24px;
    width: 44px;
    height: 44px;
    font-size: 24px;
    line-height: 1;
}

.bbc-lightbox__arrow {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 34px;
    line-height: 1;
}

.bbc-lightbox__arrow--prev {
    left: 24px;
}

.bbc-lightbox__arrow--next {
    right: 24px;
}

.bbc-lightbox__count {
    position: absolute;
    left: 0;
    bottom: 26px;
    width: 100%;
    text-align: center;
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--bbc-on-dark-dim);
}

@media (max-width: 720px) {
    /* Touch has no hover, so the arrows have to stay put. */
    .bbc-gallery__arrow {
        opacity: 1;
        width: 38px;
        height: 38px;
        font-size: 24px;
    }

    .bbc-gallery__thumb {
        width: 68px;
        height: 46px;
    }

    .bbc-lightbox__arrow {
        width: 40px;
        height: 40px;
        font-size: 26px;
    }

    .bbc-lightbox__arrow--prev {
        left: 10px;
    }

    .bbc-lightbox__arrow--next {
        right: 10px;
    }
}

/* ─── Sidebar panel ───────────────────────────────────────────
   Card wrapper for the key-details and enquiry blocks beside a
   long article body. */

.bbc-panel {
    padding: 24px 26px;
    background: var(--bbc-page-alt);
    border: 1px solid var(--bbc-line-warm);
}

.bbc-panel--cta {
    background: var(--bbc-band-warm);
}

/* Dark-band variant, for the sidebar inside .bbc-band-dark. */
.bbc-panel--dark {
    background: var(--bbc-dark-soft);
    border-color: var(--bbc-line-dark);
}

.bbc-panel--dark .bbc-panel__title {
    color: var(--bbc-page);
}

/* Matches the specificity of the .bbc-panel .bbc-panel__text rule below. */
.bbc-panel.bbc-panel--dark .bbc-panel__text {
    color: var(--bbc-on-dark-dim);
}

.bbc-panel__title {
    font-family: var(--bbc-font-display);
    font-size: 19px;
    color: var(--bbc-ink-strong);
    margin-bottom: 8px;
}

.bbc-panel .bbc-panel__text {
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--bbc-muted-dark);
    margin-bottom: 18px;
}

/* ─── Search panel (navy) ──────────────────────────────────── */

.bbc-search {
    background: var(--bbc-navy);
    padding: 32px 30px;
}

.bbc-search h2 {
    font-size: 22px;
    letter-spacing: -0.01em;
    color: var(--bbc-white);
    margin-bottom: 4px;
}

.bbc-search__intro {
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--bbc-navy-muted);
    margin-bottom: 22px;
}

.bbc-search .bbc-label {
    color: var(--bbc-navy-muted);
}

.bbc-search .bbc-select {
    margin-bottom: 18px;
}

.bbc-search .bbc-select:last-of-type {
    margin-bottom: 22px;
}

/* ─── Filter bar (navy, vehicles listing) ─────────────────── */

.bbc-filters {
    background: var(--bbc-navy);
}

.bbc-filters__inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 20px;
    align-items: end;
    padding-top: 26px;
    padding-bottom: 26px;
}

/* Two selects instead of three — the reviews page has no vehicle-type filter. */
.bbc-filters__inner--pair {
    grid-template-columns: 1fr 1fr auto;
}

.bbc-filters .bbc-label {
    color: var(--bbc-navy-muted);
}

@media (max-width: 1080px) {
    .bbc-filters__inner {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .bbc-filters__inner {
        grid-template-columns: 1fr;
    }
}

/* ─── Page head (dark banner above every inner page) ───────── */

.bbc-pagehead {
    background: var(--bbc-dark);
    color: var(--bbc-page);
}

.bbc-pagehead__inner {
    padding-top: 56px;
    padding-bottom: 56px;
}

/* The About page runs a little taller and carries no lede. */
.bbc-pagehead__inner--tall {
    padding-top: 64px;
    padding-bottom: 64px;
}

/* The vehicles listing sits directly above the filter bar. */
.bbc-pagehead__inner--tight {
    padding-bottom: 40px;
}

.bbc-pagehead .bbc-tag {
    margin-bottom: 16px;
}

.bbc-pagehead h1 {
    color: var(--bbc-white);
    max-width: 760px;
    text-wrap: balance;
}

/* Larger heading for a page head that carries no lede beneath it. */
.bbc-pagehead h1.bbc-pagehead__title--lg {
    font-size: 48px;
    line-height: 1.05;
}

.bbc-pagehead__lede {
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--bbc-on-dark-dim);
    max-width: var(--bbc-lede);
    margin-top: 10px;
}

/* On an error page the lede is the message itself, not a subtitle under a
   headline, so it reads at body brightness rather than dim. */
.bbc-pagehead__lede--message {
    color: var(--bbc-on-dark);
}

/* Breadcrumb line at the very top of a dark detail head. */
.bbc-crumb {
    padding-top: 20px;
    font-size: 11.5px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bbc-on-dark-faint);
}

.bbc-crumb a {
    color: var(--bbc-navy-muted);
}

.bbc-crumb a:hover {
    color: var(--bbc-white);
}

.bbc-crumb__sep {
    color: var(--bbc-muted-slate);
}

.bbc-crumb__current {
    color: var(--bbc-page);
}

@media (max-width: 720px) {
    .bbc-pagehead__inner,
    .bbc-pagehead__inner--tall {
        padding-top: 44px;
        padding-bottom: 44px;
        padding-left: 24px;
        padding-right: 24px;
    }

    /* The inline 48px this replaced ignored the breakpoint. */
    .bbc-pagehead h1.bbc-pagehead__title--lg {
        font-size: 34px;
    }
}

/* ─── Section head ─────────────────────────────────────────── */

.bbc-sechead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 2px solid var(--bbc-ink);
    padding-bottom: 14px;
    margin-bottom: 30px;
}

.bbc-sechead .bbc-tag {
    margin-bottom: 14px;
}

.bbc-sechead h2 {
    color: var(--bbc-ink-strong);
}

/* On a dark band the rule is a hairline and the heading inverts. */
.bbc-sechead--dark {
    border-bottom: 1px solid var(--bbc-line-dark);
}

.bbc-sechead--dark h2 {
    color: var(--bbc-page);
}

/* Plain rule + heading, no tag (vehicle detail column heads). */
.bbc-subhead {
    font-size: 26px;
    color: var(--bbc-ink-strong);
    border-bottom: 2px solid var(--bbc-ink);
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.bbc-subhead--sm {
    font-size: 24px;
    margin-bottom: 20px;
}

/* Result count / filter summary row above the results grid. */
.bbc-resultbar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    border-bottom: 2px solid var(--bbc-ink);
    padding-bottom: 14px;
    margin-bottom: 30px;
}

.bbc-resultbar__count {
    font-family: var(--bbc-font-display);
    font-weight: 700;
    font-size: 20px;
    color: var(--bbc-ink-strong);
}

.bbc-resultbar__summary {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bbc-muted);
}

@media (max-width: 720px) {
    .bbc-sechead {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* ─── Media helpers ────────────────────────────────────────── */

/* Cards are anchors, so their internal structure is spans. Wrapped in :where()
   to keep specificity at zero — any component rule below still wins, which is
   how .bbc-play keeps its flex centring. */
:where(.bbc-vcard, .bbc-newstile, .bbc-videotile, .bbc-reviewrow, .bbc-listrow, .bbc-feature) span {
    display: block;
}

.bbc-media {
    display: block;
    position: relative;
    overflow: hidden;
    background: var(--bbc-line);
}

.bbc-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bbc-media--16x9 {
    aspect-ratio: 16 / 9;
}

.bbc-media--16x10 {
    aspect-ratio: 16 / 10;
}

.bbc-media--4x3 {
    aspect-ratio: 4 / 3;
}

.bbc-media--square {
    aspect-ratio: 1 / 1;
}

.bbc-media--dark {
    background: var(--bbc-ink-strong);
}

/* Play affordance over a video still. */
.bbc-playwrap {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bbc-play {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(200, 16, 46, 0.94);
}

a:hover > .bbc-playwrap > .bbc-play {
    background: var(--bbc-red);
}

.bbc-play--lg {
    width: 78px;
    height: 78px;
}

.bbc-play--xl {
    width: 88px;
    height: 88px;
}

/* CSS triangle, offset to sit optically centred in the circle. */
.bbc-play::after {
    content: '';
    width: 0;
    height: 0;
    margin-left: 5px;
    border-left: 17px solid var(--bbc-white);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
}

.bbc-play--lg::after {
    margin-left: 6px;
    border-left-width: 22px;
    border-top-width: 14px;
    border-bottom-width: 14px;
}

.bbc-play--xl::after {
    margin-left: 7px;
    border-left-width: 25px;
    border-top-width: 16px;
    border-bottom-width: 16px;
}

/* Bare triangle used on the small list thumbnails. */
.bbc-play--bare {
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
}

.bbc-play--bare::after {
    margin-left: 0;
    border-left: 15px solid rgba(255, 255, 255, 0.95);
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
}

a:hover > .bbc-playwrap > .bbc-play--bare {
    background: transparent;
}

.bbc-duration {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 8px;
    background: rgba(15, 17, 19, 0.85);
    color: var(--bbc-white);
    font-size: 11.5px;
    font-weight: 600;
}

/* ─── Feature article (home, Latest Additions) ─────────────── */

.bbc-feature__media {
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
}

.bbc-feature__make {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bbc-ink-strong);
    margin-bottom: 8px;
}

.bbc-feature__title {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--bbc-ink-strong);
    margin-bottom: 8px;
}

.bbc-feature__type {
    font-size: 12.5px;
    color: var(--bbc-muted);
    margin-bottom: 14px;
}

.bbc-feature__blurb {
    font-size: 16px;
    line-height: 1.65;
    color: var(--bbc-muted-dark);
    max-width: 560px;
    margin-bottom: 18px;
}

/* ─── List rows (side columns) ─────────────────────────────── */

.bbc-list {
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--bbc-line-warm-dark);
}

.bbc-listrow {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 18px;
    align-items: center;
    padding: 16px 12px;
    border-bottom: 1px solid var(--bbc-line-warm-dark);
    color: inherit;
    background: transparent;
    box-shadow: none;
    transition:
        background 0.18s ease,
        box-shadow 0.18s ease;
}

.bbc-listrow:hover {
    color: inherit;
    background: var(--bbc-white);
    box-shadow: inset 3px 0 0 var(--bbc-red);
}

.bbc-listrow__make {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bbc-ink-strong);
    margin-bottom: 6px;
}

.bbc-listrow__title {
    font-size: 19px;
    font-weight: 600;
    line-height: 1.15;
    color: var(--bbc-ink-strong);
    margin-bottom: 7px;
}

.bbc-listrow__meta {
    font-size: 11.5px;
    line-height: 1.3;
    color: var(--bbc-muted);
}

/* Video rows carry a smaller title and a tracked date. */
.bbc-listrow__title--sm {
    font-size: 15.5px;
    line-height: 1.25;
}

.bbc-listrow__date {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bbc-muted-dark);
}

/* Dark variant, used for "Up next" on the video page. */
.bbc-list--dark {
    border-top-color: var(--bbc-line-dark);
}

.bbc-list--dark .bbc-listrow {
    border-bottom-color: var(--bbc-line-dark);
}

.bbc-list--dark .bbc-listrow:hover {
    background: var(--bbc-dark-alt);
    box-shadow: none;
}

.bbc-list--dark .bbc-listrow__title {
    color: var(--bbc-page);
}

.bbc-list--dark .bbc-listrow__date {
    color: var(--bbc-on-dark-dim);
}

@media (max-width: 480px) {
    .bbc-listrow {
        grid-template-columns: 74px 1fr;
        gap: 14px;
        padding: 14px 8px;
    }

    .bbc-listrow__title {
        font-size: 17px;
    }
}

/* ─── Vehicle card (bordered, 3-up grid) ──────────────────── */

.bbc-vcard {
    display: flex;
    flex-direction: column;
    background: var(--bbc-white);
    border: 1px solid var(--bbc-line);
    color: inherit;
    transition: box-shadow 0.18s ease;
}

.bbc-vcard:hover {
    color: inherit;
    box-shadow: 0 0 0 2px var(--bbc-red);
}

.bbc-vcard__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 20px 22px 24px;
}

.bbc-vcard__make {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bbc-ink-strong);
    margin-bottom: 8px;
}

.bbc-vcard__title {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--bbc-ink-strong);
    margin-bottom: 7px;
}

.bbc-vcard__type {
    font-size: 11.5px;
    color: var(--bbc-muted);
    margin-bottom: 12px;
}

.bbc-vcard__blurb {
    flex: 1;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--bbc-muted-dark);
    margin-bottom: 18px;
}

.bbc-vcard__foot {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--bbc-band-warm-alt);
    padding-top: 14px;
}

.bbc-vcard__price {
    font-size: 14px;
    font-weight: 600;
    color: var(--bbc-ink-strong);
}

/* Compact variant: image, make, model, type only. */
.bbc-vcard--compact .bbc-vcard__body {
    padding: 18px 20px 20px;
}

.bbc-vcard--compact .bbc-vcard__make {
    margin-bottom: 7px;
}

.bbc-vcard--compact .bbc-vcard__title {
    font-size: 19px;
    letter-spacing: normal;
    margin-bottom: 6px;
}

.bbc-vcard--compact .bbc-vcard__type {
    margin-bottom: 0;
}

/* ─── News tile ────────────────────────────────────────────── */

.bbc-newstile {
    display: flex;
    flex-direction: column;
    color: inherit;
}

.bbc-newstile:hover {
    color: inherit;
}

.bbc-newstile__media {
    margin-bottom: 14px;
    background: var(--bbc-line-dark);
}

.bbc-newstile__date {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bbc-on-dark);
    margin-bottom: 8px;
}

.bbc-newstile__title {
    font-size: 15.5px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: normal;
    color: var(--bbc-page);
}

.bbc-newstile:hover .bbc-newstile__title {
    color: var(--bbc-white);
}

/* Light variant on the news index: larger title, standfirst, read link. */
.bbc-newstile--light .bbc-newstile__media {
    margin-bottom: 16px;
    background: var(--bbc-line);
}

.bbc-newstile--light .bbc-newstile__date {
    color: var(--bbc-muted);
    margin-bottom: 9px;
}

.bbc-newstile--light .bbc-newstile__title {
    font-size: 21px;
    font-weight: 700;
    line-height: 1.25;
    color: var(--bbc-ink-strong);
    margin-bottom: 10px;
}

.bbc-newstile--light:hover .bbc-newstile__title {
    color: var(--bbc-red);
}

.bbc-newstile__standfirst {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--bbc-muted-dark);
    margin-bottom: 14px;
}

/* ─── Video tile ───────────────────────────────────────────── */

.bbc-videotile {
    display: flex;
    flex-direction: column;
    background: var(--bbc-white);
    border: 1px solid var(--bbc-line);
    color: inherit;
    transition: box-shadow 0.18s ease;
}

.bbc-videotile:hover {
    color: inherit;
    box-shadow: 0 0 0 2px var(--bbc-red);
}

.bbc-videotile__media {
    position: relative;
}

.bbc-videotile__media img {
    opacity: 0.68;
}

.bbc-videotile__body {
    padding: 18px 20px 22px;
}

.bbc-videotile__title {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: normal;
    color: var(--bbc-ink-strong);
    margin-bottom: 10px;
}

.bbc-videotile__date {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bbc-muted-dark);
}

/* Featured video: still with a caption box beneath. */
.bbc-vfeature__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--bbc-ink-strong);
}

.bbc-vfeature__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.62;
}

.bbc-vfeature__caption {
    background: var(--bbc-white);
    border: 1px solid var(--bbc-line);
    border-top: 0;
    padding: 22px 26px;
}

.bbc-vfeature__title {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--bbc-ink-strong);
    margin-bottom: 10px;
}

.bbc-vfeature__blurb {
    font-size: 15px;
    line-height: 1.65;
    color: var(--bbc-muted-dark);
}

/* ─── Review rows ──────────────────────────────────────────── */

/* Hairline gaps come from the container background showing between rows. */
.bbc-reviewlist {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--bbc-line);
    border: 1px solid var(--bbc-line);
}

.bbc-reviewrow {
    display: grid;
    grid-template-columns: 132px 1fr auto;
    gap: 26px;
    align-items: center;
    padding: 18px 22px;
    background: var(--bbc-white);
    color: inherit;
}

.bbc-reviewrow:hover {
    color: inherit;
    background: var(--bbc-page-alt);
}

.bbc-reviewrow__title {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--bbc-ink-strong);
    margin-bottom: 7px;
}

.bbc-reviewrow__blurb {
    font-size: 14.5px;
    line-height: 1.55;
    color: var(--bbc-muted-dark);
}

.bbc-reviewrow__aside {
    text-align: right;
}

.bbc-reviewrow__source {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bbc-ink-strong);
    margin-bottom: 8px;
}

@media (max-width: 900px) {
    .bbc-reviewrow {
        grid-template-columns: 112px 1fr;
        gap: 18px;
        align-items: start;
    }

    .bbc-reviewrow__aside {
        grid-column: 1 / -1;
        text-align: left;
    }
}

@media (max-width: 720px) {
    .bbc-reviewrow {
        grid-template-columns: 96px 1fr;
        gap: 16px;
    }
}

/* ─── Spec / detail rows ───────────────────────────────────── */

.bbc-specs {
    display: flex;
    flex-direction: column;
}

.bbc-specs__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--bbc-line-warm);
}

.bbc-specs__label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bbc-muted);
}

.bbc-specs__value {
    font-size: 15.5px;
    font-weight: 600;
    color: var(--bbc-ink-strong);
    text-align: right;
}

/* Headline figures in the detail hero. Laid out two-up rather than as stacked
   rows so it does not read as a second copy of the spec table further down. */
.bbc-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 18px 0;
    margin-bottom: 26px;
    border-top: 1px solid var(--bbc-line-dark-mid);
    border-bottom: 1px solid var(--bbc-line-dark-mid);
}

.bbc-facts__label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bbc-on-dark-faint);
    margin-bottom: 7px;
}

.bbc-facts__value {
    font-family: var(--bbc-font-display);
    font-size: 20px;
    font-weight: 600;
    color: var(--bbc-white);
}

/* The primary and secondary calls to action below the facts. */
.bbc-detail__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

@media (max-width: 720px) {
    .bbc-facts {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    /* Side by side these two would each be too narrow to read at this width. */
    .bbc-detail__actions .bbc-btn {
        flex: 1 1 100%;
    }
}

/* Stacked label/value rows, used for the contact details list. */
.bbc-detailrow {
    padding: 16px 0;
    border-bottom: 1px solid var(--bbc-line-warm);
}

.bbc-detailrow__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bbc-muted);
    margin-bottom: 7px;
}

.bbc-detailrow__value {
    font-size: 16px;
    color: var(--bbc-ink-strong);
}

/* ─── Stat rows (dark bands) ───────────────────────────────── */

.bbc-stats {
    display: flex;
    flex-direction: column;
    align-self: stretch;
    border-top: 1px solid var(--bbc-line-dark);
}

.bbc-stats__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--bbc-line-dark);
}

.bbc-stats__label {
    font-size: 11.5px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bbc-on-dark);
}

.bbc-stats__value {
    font-family: var(--bbc-font-display);
    font-weight: 800;
    font-size: 34px;
    line-height: 1;
    color: var(--bbc-red);
}

.bbc-stats__cta {
    margin-top: auto;
    padding-top: 26px;
}

/* ─── Empty state ──────────────────────────────────────────── */

.bbc-empty {
    padding: 60px 0;
    text-align: center;
    font-size: 16px;
    color: var(--bbc-muted);
}

/* ─── Footer ───────────────────────────────────────────────── */

.bbc-footer {
    background: var(--bbc-dark);
    color: var(--bbc-on-dark-faint);
}

.bbc-footer__inner {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 44px;
    padding-top: 52px;
    padding-bottom: 30px;
}

.bbc-footer__logo img {
    display: block;
    height: 48px;
    width: auto;
    margin-bottom: 16px;
    mix-blend-mode: screen;
}

.bbc-footer__about {
    font-size: 14.5px;
    line-height: 1.65;
    max-width: 340px;
}

.bbc-footer__heading {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--bbc-page);
    margin-bottom: 14px;
}

.bbc-footer__links {
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-family: var(--bbc-font-display);
    font-size: 14px;
}

.bbc-footer__links a {
    color: var(--bbc-on-dark-faint);
}

.bbc-footer__links a:hover {
    color: var(--bbc-white);
}

.bbc-footer__links span {
    cursor: default;
}

.bbc-footer__bar {
    border-top: 1px solid var(--bbc-line-dark-soft);
}

.bbc-footer__copy {
    padding-top: 20px;
    padding-bottom: 20px;
    font-family: var(--bbc-font-display);
    font-size: 12px;
    letter-spacing: 0.05em;
    color: var(--bbc-on-dark-fainter);
}

@media (max-width: 1080px) {
    .bbc-footer__inner {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }
}

@media (max-width: 720px) {
    .bbc-footer__inner {
        grid-template-columns: 1fr;
    }
}

/* Contact form honeypot: present in the DOM for bots, invisible to people and
   to screen readers (the field is aria-hidden and out of the tab order). */
.bbc-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* The Turnstile widget renders an iframe Cloudflare sizes itself, and it will
   not go below 300px wide. With a 28px gutter each side that is wider than the
   column on a 320px handset, so it is scaled down there rather than allowed to
   push the page sideways. */
.bbc-turnstile {
    margin-bottom: 22px;
    max-width: 100%;
}

.bbc-turnstile iframe {
    max-width: 100%;
}

@media (max-width: 375px) {
    .bbc-turnstile {
        transform: scale(0.85);
        transform-origin: left top;
        /* Reclaim the space the transform leaves behind. */
        margin-bottom: 12px;
    }
}
