/* ============================================================
   GLOBAL RESET & BASE
   ============================================================ */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    max-width: 100%;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    line-height: 1.6;
    color: #222;
    margin: 0;
    padding: 16px;
    padding-top: 0;
    background: #ffffff;
    word-break: break-word;
    overflow-x: hidden;
    max-width: 100%;
}

img, video, canvas, svg {
    max-width: 100%;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1 { font-size: 28px; margin-bottom: 4px; }
h2 { font-size: 22px; margin-top: 32px; margin-bottom: 12px; }
h3 { font-size: 18px; margin-bottom: 6px; }

.muted { color: #666; font-size: 14px; }

/* ============================================================
   LAYOUT
   ============================================================ */

.page-container {
    max-width: 1200px;
    margin: auto;
    padding: 0 20px;
    min-width: 0;
}

.content-narrow {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    min-width: 0;
}

.hero-section + .content-narrow {
    margin-top: 50px;
}

/* ============================================================
   LINKS
   ============================================================ */

a { color: #0066cc; }
a:hover { text-decoration: underline; }

/* ============================================================
   CARDS
   ============================================================ */

.card {
    background: #fff;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    padding: 24px;
    margin: 28px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    min-width: 0;
}

.subtle-card {
    display: block;
    padding: 14px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
}

/* ============================================================
   QUICK FACTS
   ============================================================ */

.quick-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 16px;
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 16px;
    border-radius: 8px;
    margin: 20px 0;
}

.quick-fact span { font-size: 13px; color: #666; }
.quick-fact strong { font-size: 16px; font-weight: 600; }

/* ============================================================
   VARIANT SELECTOR
   ============================================================ */

.variant-selector { margin: 20px 0; }
.variant-selector label { font-weight: 600; margin-right: 10px; }
.variant-selector select { padding: 8px 10px; font-size: 15px; }

/* ============================================================
   PRICE BOX
   ============================================================ */

.price-box {
    display: flex;
    gap: 40px;
    margin: 16px 0;
}

.price { font-size: 32px; font-weight: 700; color: #111; }
.price-label { display: block; font-size: 13px; color: #666; margin-top: 4px; }
.price-main { font-size: 30px; font-weight: 700; line-height: 1.1; }
.price-sub  { font-size: 13px; color: #777; margin-top: 4px; }

/* ============================================================
   CTA / BUTTONS
   ============================================================ */

.cta-box,
.cta {
    background: linear-gradient(135deg, #fff8e8, #fff2d6);
    border: 1px solid #f0d9a6;
    padding: 24px;
    border-radius: 12px;
}

.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: #0b5ed7;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.25s ease;
    border: 1px solid #0b5ed7;
    cursor: pointer;
}

.btn-primary:hover  { background: #084298; border-color: #084298; transform: translateY(-1px); }
.btn-primary:active { background: #06357a; transform: translateY(0); }

.btn-outline {
    display: inline-block;
    padding: 10px 16px;
    border: 2px solid #1f4fd8;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    color: #1f4fd8;
    background: #fff;
    transition: 0.2s ease;
}

.btn-outline:hover { background: #1f4fd8; color: #fff; }

/* ============================================================
   TABLES
   ============================================================ */

table,
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

th, td {
    padding: 10px;
    border: 1px solid #e0e0e0;
    vertical-align: top;
}

th {
    background: #f5f5f5;
    font-weight: 600;
    text-align: left;
}

tr:nth-child(even) td { background: #fafafa; }

/* ============================================================
   VERDICT
   ============================================================ */

.verdict {
    margin: 40px 0;
    background: #f8fbff;
    padding: 28px;
    border-left: 6px solid #0066cc;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

/* ============================================================
   SPEC ACCORDION
   ============================================================ */

.spec-wrapper { max-width: 950px; margin: 40px auto; }

.spec-category {
    border: 1px solid #e6e6e6;
    border-radius: 10px;
    margin-bottom: 14px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s ease;
}

.spec-category:hover { box-shadow: 0 4px 14px rgba(0,0,0,0.08); }

.spec-toggle {
    width: 100%;
    background: #f5f7fb;
    border: none;
    padding: 18px 22px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    border-radius: 10px;
    transition: background 0.2s ease;
}

.spec-toggle:hover { background: #eef2f8; }

.spec-count {
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    color: #333;
}

.spec-content { padding: 0; background: #fff; }
.spec-content[hidden] { display: none; }

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 14px 22px;
    border-top: 1px solid #f1f3f6;
    font-size: 15px;
}

.spec-row:nth-child(even) { background: #fafbfc; }

.spec-name  { color: #555; flex: 1; }
.spec-value { font-weight: 600; color: #111; text-align: right; flex: 1; }

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero-section.card { padding: 40px 50px; }

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 36px;
    align-items: start;
}

.hero-image { display: flex; justify-content: center; }
.hero-image img { width: 100%; max-width: 650px; object-fit: contain; }

/* Model gallery (replaces single hero image) */
.model-gallery {
    display: block;
    width: 100%;
}

/* Gallery type tabs */
.gallery-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}
.gtab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    cursor: pointer;
    transition: all .15s;
}
.gtab.active {
    background: #1e40af;
    border-color: #1e40af;
    color: #fff;
}
.gtab svg { flex-shrink: 0; }

/* Main image wrapper */
.gallery-main-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    min-height: 280px;
    background: #f3f4f6;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
}
.gallery-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity .2s;
}
.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,.45);
    color: #fff;
    border: none;
    font-size: 28px;
    line-height: 1;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 4px;
    z-index: 2;
    transition: background .15s;
    user-select: none;
}
.gallery-arrow:hover { background: rgba(0,0,0,.7); }
.gallery-prev { left: 8px; }
.gallery-next { right: 8px; }
.gallery-counter {
    position: absolute;
    bottom: 8px;
    right: 10px;
    background: rgba(0,0,0,.5);
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    pointer-events: none;
}
.gallery-range-context {
    position: absolute;
    left: 10px;
    bottom: 8px;
    max-width: calc(100% - 84px);
    padding: 4px 8px;
    border-radius: 5px;
    background: rgba(15, 23, 42, .78);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
    pointer-events: none;
}
.gallery-image-caption {
    margin: 7px 2px 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.45;
}

.editorial-review-summary {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    display: flex;
    gap: 12px;
    margin: 0 0 12px;
    padding: 12px;
}
.editorial-review-score {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1;
}
.editorial-review-score span,
.editorial-review-byline {
    color: #64748b;
    font-size: .75rem;
    font-weight: 500;
}
.editorial-review-disclosure {
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    color: #78350f;
    font-size: .85rem;
    padding: 9px 11px;
}
.editorial-score-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 16px 0 12px;
}
.editorial-score-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
}
.editorial-score-label {
    color: #334155;
    display: flex;
    font-size: .78rem;
    font-weight: 700;
    gap: 8px;
    justify-content: space-between;
    margin-bottom: 7px;
}
.editorial-score-row progress {
    accent-color: #0f766e;
    display: block;
    height: 8px;
    width: 100%;
}
.editorial-review-evidence {
    align-items: center;
    color: #475569;
    display: flex;
    flex-wrap: wrap;
    font-size: .78rem;
    gap: 5px;
    margin-top: 8px;
}
.editorial-review-evidence a,
.editorial-methodology-link {
    color: #0f766e;
    font-weight: 650;
}
.editorial-methodology-link {
    display: inline-block;
    font-size: .8rem;
    margin-top: 8px;
}

@media (max-width: 640px) {
    .editorial-score-grid {
        grid-template-columns: 1fr;
    }
}

/* Thumbnail strip */
.gallery-thumbs {
    display: flex;
    gap: 6px;
    margin-top: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.gallery-thumbs::-webkit-scrollbar { display: none; }
.gthumb {
    flex-shrink: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: none;
    transition: border-color .15s;
}
.gthumb.active { border-color: #1e40af; }
.gthumb img { display: block; width: 80px; height: 52px; object-fit: cover; }

.desktop-emi-slot {
    display: none;
}

/* Lightbox */
.gallery-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
}
.gallery-lightbox.open { display: flex; }
.glb-img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
}
@media (min-width: 769px) and (max-width: 1800px) and (hover: hover) and (pointer: fine) {
    .glb-img {
        max-width: 96vw;
        max-height: 88vh;
        max-height: 88dvh;
    }
}
.glb-close {
    position: absolute;
    top: 16px; right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
}
.glb-prev, .glb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 42px;
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 6px;
    transition: background .15s;
}
.glb-prev:hover, .glb-next:hover { background: rgba(255,255,255,.3); }
.glb-prev { left: 16px; }
.glb-next { right: 16px; }
.glb-caption {
    color: #d1d5db;
    font-size: 13px;
    text-align: center;
}

.hero-info { width: 100%; position: relative; }
.hero-info h1 { margin-top: 0; line-height: 1.3; font-size: 28px; }

/* ─── New hero-info v2 components ──────────────────────────── */

/* Trust strip: body / fuel / transmission / drivetrain pills */
.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.htr-pill {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    background: #f1f5f9;
    color: #475569;
    text-transform: uppercase;
}
.htr-body { background: #e0f2fe; color: #075985; }
.htr-fuel-petrol   { background: #fef9c3; color: #854d0e; }
.htr-fuel-diesel   { background: #e0e7ff; color: #3730a3; }
.htr-fuel-hybrid   { background: #dcfce7; color: #166534; }
.htr-fuel-electric { background: #ede9fe; color: #5b21b6; }

/* Title + subtitle */
.hero-title {
    margin: 0 0 4px;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    color: #0f172a;
    letter-spacing: -.01em;
}
.hero-subtitle {
    margin: 0 0 16px;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

/* Repositioned share bar — sits at top right (absolute on desktop) */
.share-bar--inline {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    background: transparent;
    padding: 0;
    gap: 5px;
}
.share-bar--inline .share-bar-label { display: none; }
.share-bar--inline .share-btn {
    width: 32px;
    height: 32px;
}

/* Editorial summary block (replaces old .ai-summary) */
.hero-summary {
    font-size: 14.5px;
    line-height: 1.55;
    color: #334155;
    margin: 0 0 18px;
    padding: 12px 14px;
    background: #f8fafc;
    border-left: 3px solid #1f4fd8;
    border-radius: 0 8px 8px 0;
}

/* Unified variant + price selector row */
.hero-variant-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.hvr-select {
    flex: 1;
    min-width: 0;
    padding: 9px 12px;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    background: #fff;
    cursor: pointer;
    appearance: auto;
}
.hvr-select:focus { outline: none; border-color: #1f4fd8; }
.hvr-price {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: #1f4fd8;
    white-space: nowrap;
}

/* Inverted price hierarchy: on-road LARGE, ex-showroom secondary */
.hero-price-block {
    margin-bottom: 16px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #f0f9ff 0%, #fff 100%);
    border: 1px solid #dbeafe;
    border-radius: 10px;
}
.hpb-onroad { margin-bottom: 8px; }
.hpb-onroad-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 2px;
}
.hpb-onroad-value {
    font-size: 28px;
    font-weight: 800;
    color: #1e40af;
    line-height: 1.1;
    letter-spacing: -.01em;
}
.hpb-city-form { display: inline; margin: 0; }
.hpb-city-select {
    border: none;
    background: transparent;
    padding: 0 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    color: #1f4fd8;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.hpb-city-select:focus { outline: none; }
.hpb-ex {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding-top: 8px;
    border-top: 1px solid #e0e7ef;
}
.hpb-ex-label { font-size: 11px; color: #94a3b8; font-weight: 500; }
.hpb-ex-value { font-size: 13px; color: #475569; font-weight: 600; }

.hero-vehicle-facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    gap: 8px;
    margin: 10px 0 14px;
}
.hvf-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fbff;
}
.hvf-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: #eaf2ff;
    color: #1f4fd8;
    font-size: 13px;
    font-weight: 800;
}
.hvf-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.hvf-label {
    color: #64748b;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    line-height: 1.1;
    text-transform: uppercase;
}
.hvf-value {
    overflow: hidden;
    color: #0f172a;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Quick spec pills (replaces grid) */
.hero-spec-pills {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 14px;
}
.hsp-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    padding: 7px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #f8fafc;
}
.hsp-pill:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}
.hsp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #eef6ff;
    color: #1d4ed8;
    font-size: 13px;
}
.hsp-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 100%;
    gap: 1px;
}
.hsp-label {
    overflow: hidden;
    color: #64748b;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .02em;
    line-height: 1.1;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}
.hsp-line {
    display: flex;
    align-items: baseline;
    gap: 3px;
    min-width: 0;
    white-space: nowrap;
}
.hsp-val { flex-shrink: 0; font-size: 13px; font-weight: 850; color: #0f172a; }
.hsp-unit {
    overflow: hidden;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hsp-unit small { opacity: .72; font-weight: 600; }

@media (max-width: 1180px) {
    .hero-spec-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .hero-spec-pills {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hero-spec-pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 520px) {
    .hero-spec-pills {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 5px;
    }
    .hsp-pill {
        justify-content: flex-start;
        gap: 4px;
        padding: 6px 5px;
    }
    .hsp-icon {
        flex: 0 0 16px;
        width: 16px;
        height: 16px;
        border-radius: 6px;
        font-size: 9px;
    }
    .hsp-label {
        overflow: hidden;
        max-width: 100%;
        font-size: 7.5px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .hsp-line {
        gap: 2px;
    }
    .hsp-val {
        font-size: 9.5px;
    }
    .hsp-unit {
        overflow: hidden;
        font-size: 7.5px;
        text-overflow: ellipsis;
    }
    .hsp-unit small {
        display: none;
    }
}

/* Fuel economy strip — claimed (manufacturer) + city + highway */
.hero-fuel-strip {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 14px;
    margin-bottom: 14px;
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
    border: 1px solid #d1fae5;
    border-radius: 10px;
}
.hfs-head {
    display: flex;
    align-items: center;
    gap: 6px;
}
.hfs-icon { font-size: 16px; }
.hfs-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #166534;
}
.hfs-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.hfs-stat {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 6px 10px;
    background: #ffffff;
    border: 1px solid #d1fae5;
    border-radius: 7px;
}
.hfs-stat--claimed { border-color: #86efac; background: #ecfdf5; }
.hfs-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #4d7c0f;
}
.hfs-value {
    font-size: 15px;
    font-weight: 800;
    color: #14532d;
    line-height: 1.2;
}
.hfs-unit {
    font-size: 10px;
    font-weight: 600;
    color: #65a30d;
}

@media (max-width: 480px) {
    .hero-fuel-strip { padding: 8px 10px; gap: 6px; }
    .hfs-stats { gap: 6px; }
    .hfs-stat { padding: 5px 7px; }
    .hfs-value { font-size: 13px; white-space: nowrap; }
    .hfs-label { font-size: 9px; }
    .hfs-unit { font-size: 9px; }
}

/* Tiny phones (≤360px) — gallery fine-tuning */
@media (max-width: 360px) {
    .gallery-arrow { font-size: 20px; padding: 4px 8px; }
    .gallery-prev { left: 5px; }
    .gallery-next { right: 5px; }
    .gallery-counter { font-size: 10px; padding: 1px 7px; bottom: 6px; right: 8px; }
    .gallery-range-context {
        left: 6px;
        bottom: 6px;
        max-width: calc(100% - 68px);
        padding: 3px 6px;
        font-size: 8px;
    }
    .gthumb img { width: 60px; height: 38px; }
    .gallery-thumbs { gap: 5px; }
    .gtab { padding: 4px 10px; font-size: 12px; gap: 4px; }
    .gtab svg { width: 12px; height: 12px; }
    .glb-prev, .glb-next { font-size: 28px; padding: 6px 11px; }
    .glb-close { font-size: 28px; top: 10px; right: 12px; }
    .glb-caption { font-size: 12px; }
}

/* Tiny phones (≤360px) — hero v2 fine-tuning */
@media (max-width: 360px) {
    .hero-title { font-size: 22px; }
    .hero-subtitle { font-size: 12px; margin-bottom: 10px; }
    .hero-trust-row { gap: 4px; margin-bottom: 8px; }
    .htr-pill { padding: 2px 8px; font-size: 10px; }
    .hero-summary { font-size: 13px; padding: 10px 12px; }
    .hpb-onroad-value { font-size: 22px; }
    .hpb-onroad-label { font-size: 11px; }
    .hpb-ex-value { font-size: 12px; }
    .hero-price-block { padding: 12px 14px; }
    .hsp-pill { padding: 5px 4px; gap: 3px; }
    .hsp-icon { flex: 0 0 16px; width: 16px; height: 16px; font-size: 9px; }
    .hsp-label { font-size: 7px; }
    .hsp-val { font-size: 9px; }
    .hsp-unit { font-size: 7px; }
    .hero-fuel-strip { padding: 7px 9px; }
    .hfs-stat { padding: 4px 6px; }
    .hfs-value { font-size: 12px; }
    .crypto-line { padding: 7px 10px; font-size: 11px; }
    .cl-coins { font-size: 10px; }
    .cl-btn { padding: 4px 8px; font-size: 10px; }
}

/* Very small phones (≤320px) — gallery fine-tuning */
@media (max-width: 320px) {
    .gallery-arrow { font-size: 18px; padding: 3px 7px; }
    .gallery-prev { left: 4px; }
    .gallery-next { right: 4px; }
    .gallery-counter { font-size: 9px; padding: 1px 6px; }
    .gthumb img { width: 52px; height: 33px; }
    .gallery-thumbs { gap: 4px; }
    .gtab { padding: 3px 9px; font-size: 11px; gap: 3px; }
    .gtab svg { width: 11px; height: 11px; }
    .glb-prev, .glb-next { font-size: 24px; padding: 5px 9px; }
    .glb-close { font-size: 24px; top: 8px; right: 10px; }
    .glb-caption { font-size: 11px; padding: 0 8px; }
    .glb-img { max-width: 96vw; max-height: 72vh; }
}

/* Very small phones (≤320px, e.g. iPhone SE 1st gen) — hero v2 */
@media (max-width: 320px) {
    .hero-title { font-size: 20px; line-height: 1.2; }
    .hero-subtitle { font-size: 11px; }
    .hero-trust-row { gap: 3px; }
    .htr-pill { padding: 2px 6px; font-size: 9px; letter-spacing: .02em; }
    .hero-summary { font-size: 12.5px; padding: 9px 10px; line-height: 1.45; }
    .hpb-onroad-value { font-size: 19px; }
    .hpb-onroad-label { font-size: 10px; flex-wrap: wrap; }
    .hpb-city-select { font-size: 11px; }
    .hero-price-block { padding: 10px 11px; }
    .hero-spec-pills { gap: 4px; }
    .hsp-pill { padding: 4px 3px; gap: 3px; }
    .hsp-icon { flex: 0 0 15px; width: 15px; height: 15px; font-size: 8px; }
    .hsp-label { font-size: 6.5px; }
    .hsp-val { font-size: 8.5px; }
    .hsp-unit { font-size: 6.5px; }
    .hero-fuel-strip { padding: 6px 8px; gap: 5px; }
    .hfs-title { font-size: 10px; }
    .hfs-stats { gap: 4px; }
    .hfs-stat { padding: 3px 5px; }
    .hfs-label { font-size: 8px; letter-spacing: 0; }
    .hfs-value { font-size: 11px; }
    .hfs-unit { font-size: 8px; }
    .hvr-select { padding: 7px 10px; font-size: 13px; }
    .hvr-price { font-size: 12px; }
    .crypto-line { padding: 6px 9px; }
    .cl-label { font-size: 11px; }
    .cl-coins { font-size: 9px; }
    .cl-btn { padding: 4px 7px; font-size: 10px; }
}

/* Slim crypto line (replaces tall .crypto-strip block) */
.crypto-line {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    margin-top: 10px;
    background: linear-gradient(90deg, #1e293b, #0f172a);
    border-radius: 8px;
    font-size: 12px;
    color: #cbd5e1;
}
.cl-label { font-weight: 700; color: #fbbf24; flex-shrink: 0; white-space: nowrap; }
.cl-coins { flex: 1; font-size: 11px; color: #94a3b8; letter-spacing: .04em; }
.cl-btn {
    border: none;
    background: rgba(34,197,94,.15);
    color: #4ade80;
    font-size: 11px;
    font-weight: 700;
    padding: 5px 11px;
    border-radius: 6px;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
}
.cl-btn:hover { background: rgba(34,197,94,.25); }

/* Mobile adjustments */
@media (max-width: 768px) {
    .share-bar--inline { position: static; margin-top: 8px; }
    .hero-title { font-size: 24px; }
    .hero-subtitle { font-size: 13px; margin-bottom: 12px; }
    .hpb-onroad-value { font-size: 24px; }
    .hero-variant-row { flex-direction: column; align-items: stretch; gap: 6px; }
    .hvr-price { align-self: flex-end; }
    .crypto-line { flex-wrap: wrap; gap: 6px; }
    .cl-coins { width: 100%; order: 3; }
}

/* ── End hero-info v2 ──────────────────────────────────────── */

.hero-highlights { margin-top: 12px; font-size: 14px; line-height: 1.5; }
.hero-price  { font-size: 20px; font-weight: 800; color: #0f172a; margin-bottom: 6px; }
.hero-price-label { font-size: 11px; font-weight: 500; color: #64748b; margin-left: 4px; }
.hero-spec   { font-size: 13px; color: #475569; margin: 3px 0; }
.spec-secondary { font-size: 11px; color: #94a3b8; font-weight: 400; }

/* Comparison hero — variant name + fuel + transmission row */
.cmp-car-title { margin: 8px 0 4px; font-size: 15px; }
.cmp-variant-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}
.cmp-variant-name {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}
.cmp-fuel-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cmp-fuel-petrol   { background: #fef9c3; color: #854d0e; }
.cmp-fuel-diesel   { background: #e0f2fe; color: #075985; }
.cmp-fuel-hybrid   { background: #dcfce7; color: #166534; }
.cmp-fuel-electric { background: #ede9fe; color: #5b21b6; }
.cmp-trans-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}

/* Variant selector label + dropdown */
.variant-selector-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94a3b8;
    margin-bottom: 3px;
}

/* ============================================================
   VARIANT BADGE & DROPDOWN
   ============================================================ */

.variant-badge {
    display: inline-block;
    background: #eef3ff;
    color: #0b5ed7;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 14px;
    cursor: pointer;
}

.variant-badge:hover { background: #dbe7ff; }

#variantArrow {
    display: inline-block;
    transition: transform 0.25s ease;
}

#variantArrow.rotate { transform: rotate(180deg); }

.hero-variant-dropdown {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-6px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.25s ease;
    margin-bottom: 15px;
}

.hero-variant-dropdown.open {
    max-height: 120px;
    opacity: 1;
    transform: translateY(0);
}

.hero-variant-dropdown select {
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 6px;
    border: 1px solid #d0d7e2;
    width: 100%;
}

/* ============================================================
   QUICK SPECS (HERO)
   ============================================================ */

.hero-quick-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px 40px;
    margin-top: 22px;
    text-align: center;
}

.hero-quick-specs small  { display: block; font-size: 12px; color: #6b7280; margin-bottom: 5px; }
.hero-quick-specs strong { font-size: 15px; font-weight: 600; }

.hero-disclaimer { font-size: 12px; color: #9aa3af; margin-top: 10px; line-height: 1.5; }
.hero-cta { margin-top: 22px; }

/* ============================================================
   PRICING BLOCKS (HERO)
   ============================================================ */

.hero-price-block { margin-top: 15px; }

.hero-onroad-card {
    margin-top: 14px;
    background: linear-gradient(135deg, #f8fbff, #eef4ff);
    border-left: 4px solid #0b5ed7;
    padding: 12px 14px;
    border-radius: 8px;
}

.onroad-title { font-size: 12px; color: #555; }
.onroad-price { font-size: 20px; font-weight: 600; margin-top: 4px; }

.hero-city-selector { margin-top: 12px; }
.city-label { font-size: 12px; display: block; margin-bottom: 4px; color: #666; }
.hero-city-selector select { padding: 6px 10px; border-radius: 6px; border: 1px solid #ddd; font-size: 13px; background: white; }

.hero-pricing .label     { font-size: 13px; color: #6b7280; display: block; }
.hero-pricing .value     { font-size: 20px; font-weight: 600; }
.hero-pricing .highlight { font-size: 24px; font-weight: 700; color: #0b5ed7; }

/* ============================================================
   STICKY BAR
   ============================================================ */

.sticky-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #fff;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    z-index: 9999;
    display: none;
    padding: 12px 20px;
}

.sticky-content {
    max-width: 1200px;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.sticky-left   { font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sticky-middle { font-weight: 700; font-size: 16px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.sticky-right  { display: flex; gap: 12px; align-items: center; min-width: 0; }
.sticky-right select { padding: 6px 10px; font-size: 14px; min-width: 0; max-width: 100%; }
.sticky-btn    { padding: 6px 12px; font-size: 14px; }

/* ============================================================
   NAV
   ============================================================ */

.simple-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 20px;
    gap: 16px;
    flex-wrap: nowrap;
}

.logo {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 9px;
    text-decoration: none !important;
}
.logo img,
.logo-icon {
    width: 38px;
    height: 38px;
    display: block;
    flex-shrink: 0;
}
.logo-wordmark {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.6px;
    line-height: 1;
    white-space: nowrap;
}
.simple-nav a { text-decoration: none; font-weight: 500; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.nav-links a {
    font-size: 14px;
    color: #334155;
    text-decoration: none;
    font-weight: 500;
    padding: 4px 0;
}

.nav-links a:hover { color: #0b5ed7; }

@media (max-width: 600px) {
    .simple-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px 12px;
        padding: 10px 8px;
    }
    .logo {
        margin-right: auto;
    }
    .logo-wordmark {
        font-size: 20px;
    }
    .nav-links {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    .nav-links { gap: 12px; }
    .nav-links a { font-size: 13px; }
    .nav-links a[href="/south-africa/body-type/trucks/"],
    .nav-links a[href="/south-africa/body-type/suvs/"],
    .nav-links a[href="/south-africa/car-prices/"] {
        display: none;
    }
}

@media (max-width: 420px) {
    .nav-links a[href="/south-africa/body-type/trucks/"],
    .nav-links a[href="/south-africa/body-type/suvs/"] { display: none; }
}

/* ============================================================
   TOC
   ============================================================ */

.toc { position: sticky; top: 12px; }
.toc ul  { margin: 8px 0 0; padding-left: 18px; }
.toc li  { margin: 6px 0; }
.toc a   { text-decoration: none; color: #0b5ed7; }
.toc a:hover { text-decoration: underline; }

/* ============================================================
   GRID HELPERS
   ============================================================ */

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    min-width: 0;
}

.model-pros-cons-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.key-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.key-item {
    background: #f9fafc;
    padding: 18px;
    border-radius: 10px;
    border: 1px solid #e6eaf0;
}

.key-item small  { display: block; font-size: 13px; color: #666; margin-bottom: 6px; }
.key-item strong { font-size: 16px; }

/* ============================================================
   MODEL CARDS & GRID
   ============================================================ */

.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.model-card {
    background: #ffffff;
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    position: relative;
    transition: all 0.25s ease;
    text-decoration: none;
    display: block;
}

.model-card:hover { box-shadow: 0 8px 20px rgba(0,0,0,0.08); transform: translateY(-4px); }

.model-card img  { width: 100%; height: 160px; object-fit: contain; margin-bottom: 12px; }
.model-card h3   { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.model-meta      { font-size: 14px; color: #222; font-weight: 600; margin-bottom: 4px; }
.model-mileage   { font-size: 13px; color: #666; margin-bottom: 10px; }

.family-tag,
.budget-tag {
    position: absolute;
    top: 10px;
    font-size: 11px;
    padding: 3px 7px;
    border-radius: 5px;
    font-weight: 600;
    color: white;
}

.family-tag { left: 10px;  background: #16a34a; }
.budget-tag { right: 10px; background: #f59e0b; }

/* ============================================================
   FILTER BAR
   ============================================================ */

.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.fuel-filter { margin-top: 12px; }
.fuel-filter a {
    display: inline-block;
    margin-right: 8px;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f1f5f9;
    text-decoration: none;
    font-size: 13px;
    color: #333;
    transition: 0.2s ease;
}

.fuel-filter a:hover  { background: #e2e8f0; }
.fuel-filter a.active { background: #0b5ed7; color: white; }

.sort-filter a { margin-left: 10px; font-size: 13px; text-decoration: none; color: #0b5ed7; font-weight: 500; }
.sort-filter a:hover { text-decoration: underline; }

/* ============================================================
   PAGINATION
   ============================================================ */

.pagination { margin: 30px 0; text-align: center; }

.page-btn, .page-link {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #e6eaf2;
    border-radius: 6px;
    text-decoration: none;
    background: #fff;
    color: #0b5ed7;
    font-size: 13px;
    transition: 0.2s ease;
}

.page-btn:hover, .page-link:hover { background: #f4f8ff; border-color: #cdddfd; }
.page-current, .page-info { margin: 0 12px; font-weight: 600; font-size: 14px; color: #666; }

/* ============================================================
   CATEGORY / INTRO TEXT
   ============================================================ */

.dynamic-intro    { margin-top: 10px; font-size: 15px; color: #444; }
.category-subtext { margin-top: 6px;  font-size: 14px; color: #666; }
.category-count   { margin-top: 10px; font-size: 13px; color: #0b5ed7; font-weight: 600; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.buying-guide-section { margin-top: 32px; }
.buying-guide-section h2 { font-size: 1.25rem; font-weight: 700; margin-bottom: 14px; }
.buying-guide-body { font-size: 15px; line-height: 1.7; color: #374151; }
.buying-guide-body br + br { display: block; margin-top: 12px; }

.faq-section { margin-top: 40px; }

.faq-item {
    margin-bottom: 20px;
    border-bottom: 1px solid #e6eaf2;
}

.faq-question {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 16px 0;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover { color: #0b5ed7; }

.faq-icon {
    font-size: 18px;
    font-weight: bold;
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 10px;
}

.faq-answer {
    display: none;
    padding-bottom: 16px;
    font-size: 14px;
    color: #555;
    line-height: 1.6;
}

.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-icon   { transform: rotate(45deg); }

/* ============================================================
   COMPARE HERO
   ============================================================ */

.compare-hero { text-align: center; }
.compare-title { margin-bottom: 20px; font-size: 22px; }

.compare-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    min-width: 0;
}

/* 3-car layout: car-A | VS | car-B | + | car-C */
.compare-hero-grid--3 {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
}

/* 3-way badge */
.compare-3way-badge {
    display: inline-block;
    background: #7c3aed;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: .05em;
    vertical-align: middle;
    margin-left: 8px;
}

/* Slim VS divider for 3rd car */
.compare-vs--c .compare-vs-text {
    font-size: 20px;
    color: #cbd5e1;
}

/* 3rd car box */
.compare-car-box--c { position: relative; }

.cmp-remove-c-btn {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    cursor: pointer;
    z-index: 1;
    white-space: nowrap;
}
.cmp-remove-c-btn:hover { background: #b91c1c; }

/* "Add 3rd car" empty slot */
.compare-car-box--add {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.add-car-icon {
    font-size: 32px;
    color: #cbd5e1;
}
.add-car-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    margin: 0;
}
.add-car-go-btn {
    padding: 8px 16px;
    font-size: 13px;
    width: 100%;
}

.compare-car-box {
    text-align: center;
    min-width: 0;
}
.compare-car-box > * {
    min-width: 0;
}
.compare-image-wrapper img { max-width: min(260px, 100%); height: auto; }

.compare-vs {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.compare-vs-text {
    font-size: 28px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 2px;
}

.compare-vs-btn {
    display: inline-block;
    padding: 8px 16px;
    background: #1f4fd8;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s ease;
    white-space: nowrap;
}
.compare-vs-btn:hover { background: #1740b0; }

/* ── Compare Hero Boxes (chb) — redesigned cards ──────────── */
.chb {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.chb--archived {
    border-color: #f2c36b;
    background: linear-gradient(180deg, #fffdf7 0%, #ffffff 58%);
    box-shadow: inset 4px 0 0 #f2c36b;
}
.chb--upcoming {
    border-color: #93c5fd;
    background: linear-gradient(180deg, #eff6ff 0%, #ffffff 58%);
    box-shadow: inset 4px 0 0 #2563eb;
}
.chb--c { position: relative; }

.chb-img-wrap {
    display: block;
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f0f4f8;
    flex-shrink: 0;
    line-height: 0;
}
.chb-img-wrap img {
    width: 100%;
    height: 168px;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
}
.chb-img-wrap:hover img { transform: scale(1.04); }
.chb-img-context {
    position: absolute;
    right: 7px;
    bottom: 7px;
    left: 7px;
    padding: 4px 7px;
    border-radius: 5px;
    background: rgba(15, 23, 42, .86);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .03em;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
}

.chb-body {
    padding: 14px 16px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.chb-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.chb-name a { color: #0f172a; text-decoration: none; }
.chb-name a:hover { color: #1f4fd8; }

.chb-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
}
.chb-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    background: #f1f5f9;
    color: #475569;
}
.chb-badge--gray { background: #f1f5f9; color: #475569; }
.chb-badge--discontinued {
    border: 1px solid #f5d08a;
    background: #fff7e6;
    color: #8a4b0f;
}
.chb-badge--current {
    border: 1px solid #86efac;
    background: #f0fdf4;
    color: #166534;
}
.chb-badge--upcoming {
    border: 1px solid #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}
.chb-badge.chb-fuel-petrol   { background: #fef9c3; color: #854d0e; }
.chb-badge.chb-fuel-diesel   { background: #e0f2fe; color: #075985; }
.chb-badge.chb-fuel-hybrid   { background: #dcfce7; color: #166534; }
.chb-badge.chb-fuel-electric { background: #ede9fe; color: #5b21b6; }

.compare-archive-banner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #f5d08a;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff8e6 0%, #ffffff 68%);
    color: #334155;
    font-size: 13px;
    line-height: 1.45;
}
.compare-archive-banner--all {
    background: linear-gradient(135deg, #fff7e6 0%, #f8fafc 100%);
}
.compare-archive-main {
    min-width: 0;
}
.compare-archive-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #ffedd5;
    color: #9a3412;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.compare-archive-main p {
    margin: 7px 0 0;
    max-width: 760px;
    color: #475569;
}
.compare-archive-chips {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
    min-width: 180px;
}
.compare-archive-chips span {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 26px;
    padding: 4px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    font-size: 11px;
    font-weight: 800;
    overflow-wrap: anywhere;
    white-space: normal;
}
.compare-archive-chips small {
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.compare-archive-chips strong {
    display: inline-flex;
    align-items: center;
    min-height: 18px;
    padding: 1px 6px;
    border-radius: 999px;
    background: #9a3412;
    color: #fff;
    font-size: 10px;
}

.chb-price-row { text-align: center; line-height: 1.2; }
.chb-price {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #0f172a;
}
.chb-price-tag {
    display: inline-block;
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
    margin-top: 1px;
}
.chb-price-na { font-size: 12px; color: #94a3b8; }

.chb-archive-note {
    padding: 8px 10px;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    color: #713f12;
    font-size: 11px;
    line-height: 1.35;
    text-align: left;
}
.chb-archive-note strong {
    display: block;
    margin-bottom: 2px;
    color: #78350f;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.chb-archive-note span {
    display: block;
}
.chb-archive-note--upcoming {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1e3a8a;
}
.chb-archive-note--upcoming strong {
    color: #1d4ed8;
}
.chb-tenure b {
    display: inline-block;
    margin-left: 3px;
    color: #7c2d12;
    font-size: 12px;
}
.chb-tenure em {
    display: inline-flex;
    width: max-content;
    max-width: 100%;
    margin-top: 5px;
    padding: 3px 7px;
    border-radius: 999px;
    background: #9a3412;
    color: #fff;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.chb-specs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px;
}
.chb-spec {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
}
.chb-spec--win {
    background: #dcfce7;
    color: #166534;
}

.chb-controls {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
    padding-top: 2px;
}
.chb-form { margin: 0; }
.chb-select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 12px;
    color: #374151;
    background: #f8fafc;
    cursor: pointer;
    appearance: auto;
}
.chb-select:focus { outline: none; border-color: #1f4fd8; }
.chb-swap {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
    font-weight: 600;
}

/* VS pill between car cards */
.chb-vs-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    font-size: 11px;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 1px;
    flex-shrink: 0;
    align-self: center;
}

/* Remove button on Car C */
.chb-remove-c {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    cursor: pointer;
    z-index: 2;
    white-space: nowrap;
    line-height: 1.4;
}
.chb-remove-c:hover { background: #b91c1c; }

/* Add 3rd car bar — sits below the grid */
.add-third-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 10px 16px;
    background: #f8fafc;
    border: 1.5px dashed #cbd5e1;
    border-radius: 10px;
}
.atb-icon { font-size: 15px; color: #94a3b8; flex-shrink: 0; }
.atb-label {
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
    flex-shrink: 0;
}
.atb-select {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    padding: 6px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    font-size: 13px;
    color: #374151;
    background: #fff;
}
.atb-btn {
    flex-shrink: 0;
    padding: 7px 16px;
    background: #1f4fd8;
    color: #fff;
    border: none;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s;
}
.atb-btn:hover { background: #1740b0; }

.inline-car-switcher {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin: 8px 0 4px;
}

.inline-switcher-label {
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.inline-switcher-select {
    padding: 6px 10px;
    border: 1.5px solid #d0d7e2;
    border-radius: 8px;
    font-size: 12px;
    background: #f8fafc;
    color: #1e293b;
    cursor: pointer;
    max-width: 220px;
    width: 100%;
}
.inline-switcher-select:focus { outline: none; border-color: #3b82f6; }

.compare-images img { max-width: 100%; height: 260px; object-fit: contain; }

.compare-grid-2 {
    display: grid;
    grid-template-columns: 1fr 80px 1fr;
    gap: 20px;
    align-items: center;
    text-align: center;
}

.vs-text { font-size: 28px; font-weight: 700; color: #444; }

.compare-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.compare-link {
    display: block;
    padding: 14px;
    border: 1px solid #e6eaf2;
    border-radius: 8px;
    text-decoration: none;
    background: #fff;
    transition: 0.2s ease;
}

.compare-link:hover { background: #f4f8ff; border-color: #cdddfd; }

/* ============================================================
   SCORE SECTION
   ============================================================ */

.score-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 18px;
}

.score-head h2 { margin-bottom: 4px; }

.score-method-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 6px 12px;
    border: 1px solid #dbeafe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.score-verdict-board {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr);
    gap: 16px;
    align-items: stretch;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 54%, #f0fdf4 100%);
}

.score-verdict-copy {
    min-width: 0;
}

.score-verdict-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.score-verdict-copy h3 {
    margin: 10px 0 6px;
    color: #0f172a;
    font-size: 22px;
    line-height: 1.18;
    overflow-wrap: anywhere;
}

.score-verdict-copy p {
    max-width: 680px;
    margin: 0;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}

.score-verdict-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.score-verdict-metrics div {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 12px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: rgba(255, 255, 255, .86);
}

.score-verdict-metrics span {
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.score-verdict-metrics strong {
    color: #0f172a;
    font-size: 26px;
    line-height: 1;
    font-weight: 950;
}

.score-verdict-metrics small {
    color: #64748b;
    font-size: 11px;
    font-weight: 750;
    line-height: 1.2;
}

.score-rank-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.score-rank-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.score-rank-card {
    position: relative;
    padding: 18px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .045);
    overflow: hidden;
    animation: scoreCardIn .46s ease both;
}

.score-rank-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #cbd5e1;
}

.score-rank-card--winner {
    border-color: #2563eb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 12px 34px rgba(37, 99, 235, .12);
}

.score-rank-card--winner::before { background: #2563eb; }

.score-rank-card:nth-child(2) { animation-delay: .05s; }
.score-rank-card:nth-child(3) { animation-delay: .1s; }

.score-card-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.score-card-copy {
    min-width: 0;
    flex: 1;
}

.score-card-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.score-rank {
    font-size: 12px;
    font-weight: 900;
    color: #64748b;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.score-winner-chip {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #dcfce7;
    color: #15803d;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: normal;
    text-align: center;
}

.score-rank-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 18px;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.score-meter {
    width: 94px;
    height: 94px;
    flex: 0 0 94px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, #fff 0 57%, transparent 58%),
        conic-gradient(#2563eb var(--score), #e2e8f0 0);
    animation: scoreMeterIn .8s ease both;
}

.score-meter span {
    color: #1d4ed8;
    font-size: 30px;
    font-weight: 900;
    letter-spacing: 0;
}

.score-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 12px;
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.score-card-tags {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 14px;
}

.score-card-tags span {
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #eff6ff;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.score-card-tags small {
    display: block;
    margin-bottom: 2px;
    color: #64748b;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.score-card-tags strong {
    color: #0f172a;
    font-weight: 950;
}

.score-card-tags .score-card-tag--watch {
    border-color: #fde68a;
    background: #fffbeb;
    color: #92400e;
}

.score-card-breakdown {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf2f7;
}

.score-mini-row {
    display: grid;
    grid-template-columns: minmax(76px, .85fr) minmax(86px, 1fr) 42px;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.score-mini-label {
    min-width: 0;
    color: #334155;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.score-mini-track {
    position: relative;
    height: 8px;
    min-width: 0;
    overflow: hidden;
    border-radius: 999px;
    background: #e8eef7;
}

.score-mini-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    transform-origin: left;
    animation: scoreBarGrow .8s ease both;
}

.score-mini-value {
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 900;
    text-align: right;
    white-space: nowrap;
}

.score-mini-value::after {
    content: "/100";
    margin-left: 1px;
    color: #64748b;
    font-size: 9px;
    font-weight: 800;
}

.score-lead-line {
    margin-top: 12px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 13px;
    font-weight: 800;
}

.score-weight-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.score-weight-strip span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 12px;
    font-weight: 700;
}

.score-weight-strip strong {
    color: #0f172a;
    font-weight: 900;
}

.score-insight-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.score-insight-head span {
    color: #0f172a;
    font-size: 14px;
    font-weight: 900;
}

.score-insight-head strong {
    color: #64748b;
    font-size: 12px;
    font-weight: 750;
}

.score-insight-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.score-insight-strip span {
    min-width: 0;
    padding: 8px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    color: #475569;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.score-insight-strip strong {
    display: block;
    margin-bottom: 2px;
    color: #0f172a;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.score-insight-strip .is-equal {
    background: #f8fafc;
    color: #64748b;
}

.score-detail-drawer {
    margin-top: 16px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    overflow: hidden;
}

.score-detail-drawer summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 12px 14px;
    cursor: pointer;
    list-style: none;
}

.score-detail-drawer summary::-webkit-details-marker { display: none; }

.score-detail-drawer summary span {
    color: #0f172a;
    font-size: 14px;
    font-weight: 850;
}

.score-detail-drawer summary strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 850;
    white-space: nowrap;
}

.score-detail-drawer[open] summary {
    border-bottom: 1px solid #dbeafe;
}

.category-grid--integrated {
    gap: 12px;
    margin: 0;
    padding: 14px;
}

.category-grid--integrated .category-box {
    padding: 16px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
}

@keyframes scoreMeterIn {
    from { opacity: .35; transform: scale(.92); filter: saturate(.7); }
    to { opacity: 1; transform: scale(1); filter: saturate(1); }
}

@keyframes scoreCardIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Score podium — works for 2 or 3 cars */
.score-podium {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 20px;
    flex-wrap: wrap;
}

.score-podium-item {
    flex: 1;
    min-width: 120px;
    padding: 20px 16px;
    border-radius: 12px;
    background: #f8f9fb;
    text-align: center;
    position: relative;
}

.score-podium--winner {
    border: 2px solid #0b5ed7;
    background: #eef4ff;
    transform: scale(1.04);
    z-index: 1;
}

.score-podium-sep {
    flex: 0 0 60px;
    text-align: center;
    font-size: 12px;
    color: #94a3b8;
}

.podium-rank {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    margin-bottom: 4px;
}
.score-podium--winner .podium-rank { color: #0b5ed7; }

.score-confidence {
    display: block;
    text-align: center;
    margin: 16px auto 0;
    max-width: 360px;
}

/* Keep old selectors working for any remaining refs */
.score-summary-grid {
    display: grid;
    grid-template-columns: 1fr 180px 1fr;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.score-box    { padding: 20px; border-radius: 10px; background: #f8f9fb; text-align: center; }
.winner-box   { border: 2px solid #0b5ed7; background: #eef4ff; }

.big-score      { font-size: 44px; font-weight: 800; color: #0b5ed7; line-height: 1; }
.big-score.muted{ color: #94a3b8; }
.score-outof    { font-size: 12px; color: #94a3b8; margin-top: 2px; }
.winner-badge   { font-size: 13px; font-weight: 700; color: #0b5ed7; margin-bottom: 6px; }

.score-vs  { text-align: center; }
.score-gap { margin-top: 6px; font-size: 14px; }

.confidence-badge {
    font-size: 13px;
    background: #eef4ff;
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-block;
    margin-top: 8px;
    color: #0b5ed7;
    text-align: center;
}

.confidence-subtext { font-size: 12px; color: #666; margin-top: 6px; }

/* ============================================================
   BREADCRUMB
   ============================================================ */

.breadcrumb-nav {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}
.breadcrumb-nav a { color: #64748b; text-decoration: none; }
.breadcrumb-nav a:hover { color: #0b5ed7; text-decoration: underline; }
.breadcrumb-nav span[aria-hidden] { color: #cbd5e1; }

/* ============================================================
   HERO PRICE STATES
   ============================================================ */

.hero-price-na {
    font-size: 13px;
    color: #94a3b8;
    font-style: italic;
    margin-bottom: 6px;
}

/* Compare title VS word */
.compare-title-vs {
    display: inline-block;
    padding: 2px 10px;
    background: #f1f5f9;
    border-radius: 6px;
    font-size: 0.7em;
    color: #64748b;
    vertical-align: middle;
    margin: 0 4px;
}

/* ============================================================
   CATEGORY SCORE BARS
   ============================================================ */

.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 16px;
}

.category-box {
    background: #f8f9fb;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e6eaf2;
}

.cat-winner-badge {
    font-size: 12px;
    font-weight: 700;
    color: #0b5ed7;
    background: #eef4ff;
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 8px;
}

.cat-car-name {
    margin-bottom: 14px;
    font-size: 16px;
}

.score-row       { margin-bottom: 14px; }
.score-label     {
    font-size: 13px;
    margin-bottom: 5px;
    font-weight: 500;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.score-num { font-weight: 700; color: #0b5ed7; font-size: 13px; }

.score-bar-bg {
    background: #e2e8f0;
    height: 12px;
    border-radius: 6px;
    overflow: hidden;
}

.score-bar-fill {
    background: linear-gradient(90deg, #0b5ed7, #3b82f6);
    height: 100%;
    border-radius: 6px;
    transform-origin: left;
    animation: scoreBarGrow .8s ease both;
}

@keyframes scoreBarGrow {
    from { transform: scaleX(0); opacity: .55; }
    to { transform: scaleX(1); opacity: 1; }
}

/* Score gap */
.score-gap-num   { font-size: 36px; font-weight: 800; color: #0b5ed7; line-height: 1; }
.score-gap-label { font-size: 12px; color: #94a3b8; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px; }

/* Quick winner icon */
.winner-icon { font-size: 18px; }

/* Spec toggle icon */
.spec-toggle-icon {
    float: right;
    transition: transform 0.2s ease;
    font-style: normal;
    font-size: 14px;
    color: #94a3b8;
}

/* Diff points badge */
.diff-pts {
    font-size: 11px;
    background: #dcfce7;
    color: #166534;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
    display: block;
    margin-top: 4px;
}

/* ============================================================
   EDITORIAL / PROS & CONS
   ============================================================ */

.editorial-summary { background: #f8f9fb; }
.executive-text    { font-size: 16px; font-weight: 500; line-height: 1.7; }

.pros-cons-box   { background: #f8f9fb; padding: 20px; border-radius: 10px; }
.pros ul, .cons ul { margin: 5px 0 10px; padding-left: 18px; }
.pros li { color: #14532d; }
.cons li { color: #7f1d1d; }

.pros-label { color: #1a7f37 !important; }
.cons-label { color: #c0392b !important; }

.badge { display: inline-block; padding: 4px 10px; font-size: 12px; border-radius: 12px; background: #eef4ff; color: #0b5ed7; margin-right: 6px; margin-top: 4px; }
.badge.muted { background: #e5e7eb; color: #666; }

.final-verdict    { background: #eef4ff; }
.who-should-buy   { background: #f9fbff; }

/* Verdict winner bar */
.verdict-winner-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 16px;
    font-size: 15px;
    color: #1e40af;
    flex-wrap: wrap;
}
.verdict-crown { font-size: 22px; }

/* ============================================================
   ELITE PAGE REFINEMENTS - LIGHTWEIGHT CSS ONLY
   ============================================================ */

.spec-wrapper,
#cmp-full-specs,
.related-comparisons,
.faq-section {
    content-visibility: auto;
    contain-intrinsic-size: 720px;
}

.spec-wrapper {
    max-width: 960px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .045);
}

.spec-wrapper > h2 {
    margin-bottom: 18px;
    color: #0f172a;
    font-size: 22px;
    letter-spacing: 0;
}

.spec-category {
    border-color: #e2e8f0;
    border-radius: 8px;
    box-shadow: none;
    overflow: hidden;
}

.spec-category:hover {
    box-shadow: 0 10px 26px rgba(15, 23, 42, .055);
}

.spec-toggle {
    min-height: 58px;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: #0f172a;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: 0;
}

.spec-toggle:hover {
    background: #eef6ff;
}

.spec-count {
    background: #e8eef6;
    color: #334155;
    font-weight: 800;
    font-size: 12px;
}

.spec-row {
    min-height: 48px;
    align-items: center;
    padding: 13px 22px;
    border-top-color: #edf2f7;
}

.spec-row:nth-child(even) {
    background: #fbfdff;
}

.spec-row:hover {
    background: #f8fbff;
}

.spec-name {
    color: #475569;
    font-weight: 650;
}

.spec-value {
    color: #0f172a;
    font-weight: 850;
    letter-spacing: 0;
}

.cmp-page-nav {
    top: 0;
    border: 1px solid #e2e8f0;
    border-left: 0;
    border-right: 0;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(10px);
}

.cpn-link {
    padding: 12px 18px;
    color: #475569;
    font-weight: 800;
}

.cpn-link:hover {
    color: #1d4ed8;
    background: #f8fbff;
}

.quick-winners,
#cmp-key-specs,
.editorial-summary,
.key-differences,
.who-should-buy,
#cmp-full-specs,
.score-card,
.final-verdict {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.quick-winner-grid {
    justify-content: stretch;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.winner-item {
    min-width: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    padding: 13px 12px;
    align-items: flex-start;
    text-align: left;
}

.winner-icon {
    font-size: 15px;
}

.winner-cat {
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.winner-name,
.winner-item strong {
    color: #0f172a;
    font-size: 14px;
}

.ks-table {
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.ks-table thead th {
    background: #f8fafc;
    color: #334155;
    border-bottom: 1px solid #e2e8f0;
}

.ks-table tbody tr {
    border-bottom: 0;
}

.ks-table td {
    border-bottom: 1px solid #edf2f7;
}

.ks-table tbody tr:last-child td {
    border-bottom: 0;
}

.ks-winner {
    background: #f0fdf4;
    color: #166534;
    border-left: 3px solid #22c55e;
}
.ks-archive-gap {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #92400e;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cmp-empty-specs {
    margin-top: 12px;
    color: #475569;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.45;
}

.difference-item,
.category-box,
.pros-cons-box,
.buy-box {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
}

.difference-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(15, 23, 42, .055);
}

.has-winner {
    border-color: #bfdbfe;
    background: #f8fbff;
}

.category-box {
    padding: 18px;
}

.score-bar-bg {
    height: 9px;
    background: #e8eef6;
}

.score-bar-fill {
    background: linear-gradient(90deg, #1d4ed8, #38bdf8);
}

.score-card {
    background: #fff;
}

.score-rank-card {
    border-radius: 8px;
}

.score-meter {
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.final-verdict {
    background: #f8fbff;
}

.verdict-winner-bar {
    border-color: #dbeafe;
    border-radius: 8px;
    background: #fff;
    color: #1e3a8a;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}

@media (max-width: 900px) {
    .quick-winner-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .score-verdict-board {
        grid-template-columns: 1fr;
    }
    .score-rank-grid,
    .score-rank-grid--3 {
        grid-template-columns: 1fr;
    }
}

.buy-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.buy-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #e6eaf2;
}

.buy-box h3 { margin-bottom: 10px; }
.buy-box ul { padding-left: 18px; }
.buy-box li { margin-bottom: 8px; }

/* ============================================================
   DIFFERENCE GRID
   ============================================================ */

.key-differences { margin-top: 10px; }

.difference-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.difference-item {
    background: #ffffff;
    border: 1px solid #e6eaf2;
    padding: 16px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    transition: transform 0.2s ease;
}

.difference-item:hover  { transform: translateY(-3px); }
.difference-item strong { display: block; margin-bottom: 6px; }
.winner-name            { color: #0b5ed7; font-weight: 600; }
.equal                  { color: #777; font-weight: 500; }
.has-winner             { border-color: #cdddfd; background: #f4f8ff; }

/* ============================================================
   RELATED / COMPARE LINKS
   ============================================================ */

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 15px;
}

.related-item { background: #f8fafc; padding: 10px 12px; border-radius: 8px; }
.related-item a { font-weight: 600; text-decoration: none; color: #0b5ed7; display: block; }
.related-item .sub-text { font-size: 12px; color: #666; }

.related-link {
    display: block;
    padding: 12px;
    border: 1px solid #e6eaf2;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    background: #fff;
    transition: 0.2s ease;
}

.related-link:hover { background: #f4f8ff; border-color: #cdddfd; }

/* ============================================================
   MODEL SUMMARY (ABOUT)
   ============================================================ */

.model-summary-short,
.model-summary-long {
    max-width: 1100px;
    margin: 0 auto;
    box-sizing: border-box;
    border-radius: 14px;
}

.model-summary-short {
    background: linear-gradient(135deg, #f5f9ff, #eef4ff);
    border: 1px solid #e3ecfb;
    border-left: 6px solid #0b5ed7;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.9;
    color: #1e293b;
    padding: 28px 36px;
}

.model-summary-long {
    margin: 20px auto 40px auto;
    padding: 32px 40px;
    background: #ffffff;
    border: 1px solid #e8edf3;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
}

.model-summary-long h2     { margin-top: 0; margin-bottom: 14px; font-size: 22px; font-weight: 700; color: #0f172a; }
.model-summary-long strong { display: block; margin-bottom: 10px; font-size: 16px; color: #1e293b; }
.model-summary-long p      { font-size: 15.5px; line-height: 1.8; color: #475569; max-width: 850px; }

/* ============================================================
   SEO COLLAPSIBLE
   ============================================================ */

.collapsed-content { max-height: 220px; overflow: hidden; transition: max-height 0.4s ease; }
.collapsed-content.expanded { max-height: 2000px; }

.seo-toggle-btn {
    margin-top: 15px;
    background: none;
    border: none;
    color: #1a73e8;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}

.seo-toggle-btn:hover { text-decoration: underline; }

/* ============================================================
   WINNER QUICK BAR
   ============================================================ */

.quick-winners  { margin-top: 20px; }

/* Sticky in-page compare nav */
.cmp-page-nav {
    position: sticky;
    top: 0;
    z-index: 90;
    background: #fff;
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    margin-bottom: 0;
}
.cmp-page-nav::-webkit-scrollbar { display: none; }
.cpn-link {
    flex-shrink: 0;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color .15s, border-color .15s;
}
.cpn-link:hover { color: #1e40af; border-bottom-color: #1e40af; }

.quick-winner-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}
.quick-winner-grid--5 { gap: 8px; }

.winner-item {
    background: #eef7f1;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-align: center;
    min-width: 100px;
}
.winner-cat { font-size: 11px; color: #6b7280; font-weight: 500; }
.winner-name { color: #1a7f37; font-weight: 700; font-size: 13px; }
.winner-item strong { color: #1a7f37; font-weight: 700; }
.spec-winner        { color: #1a7f37; font-weight: 600; }

/* Price gap callout */
.cmp-price-gap {
    margin-top: 18px;
    padding: 12px 16px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cpg-label { font-size: 14px; color: #1e40af; }
.cpg-sub   { font-size: 12px; color: #6b7280; }

/* Key specs quick table */
.ks-table-wrap { overflow-x: auto; margin-top: 12px; }
.ks-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ks-table thead th {
    background: #f3f4f6;
    padding: 10px 14px;
    font-weight: 700;
    font-size: 13px;
    color: #374151;
    text-align: left;
    border-bottom: 2px solid #e5e7eb;
}
.ks-table thead th:first-child { width: 38%; }
.ks-table tbody tr { border-bottom: 1px solid #f3f4f6; }
.ks-table tbody tr:hover { background: #fafafa; }
.ks-table td { padding: 9px 14px; color: #374151; vertical-align: middle; }
.ks-label { font-weight: 500; color: #6b7280; }
.ks-winner {
    background: #f0fdf4;
    color: #15803d;
    font-weight: 700;
    border-left: 3px solid #22c55e;
}
.ks-win-dot {
    display: inline-block;
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 5px;
    vertical-align: middle;
}
.ks-legend {
    font-size: 12px;
    color: #9ca3af;
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */

.page-header { margin-bottom: 16px; }

/* ============================================================
   VARIANT GRID (COMPARE PAGE)
   ============================================================ */

.variant-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.variant-switcher select { width: 100%; padding: 8px; border-radius: 6px; margin-top: 5px; }

/* ============================================================
   SPEC SECTION WRAPPER
   ============================================================ */

.spec-section { margin-top: 36px; }

/* ============================================================
   RESPONSIVE â€” TABLET  (â‰¤1024px)
   ============================================================ */

@media (max-width: 1024px) {
    .hero-section.card { padding: 30px; }

    .difference-grid { grid-template-columns: repeat(3, 1fr); }

    .score-summary-grid { grid-template-columns: 1fr 140px 1fr; }
}

/* ============================================================
   RESPONSIVE â€” TABLET PORTRAIT  (â‰¤768px)
   ============================================================ */

@media (max-width: 768px) {
    body { padding: 12px; padding-top: 0; }

    h1 { font-size: 22px; }
    h2 { font-size: 19px; }
    h3 { font-size: 17px; }

    /* Hero */
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        text-align: center;
    }
    .hero-image { order: 2; }
    .hero-info  { order: 1; text-align: left; }
    .hero-image img { height: 220px; max-width: 100%; object-fit: cover; object-position: center; border-radius: 10px; }
    .model-gallery { max-width: 100%; }
    /* Drop desktop min-height — conflicts with aspect-ratio on narrow viewports */
    .gallery-main-wrap { aspect-ratio: 16/9; min-height: 0; }
    .gallery-arrow { font-size: 24px; padding: 5px 10px; }
    .gthumb img { width: 72px; height: 46px; }
    .glb-prev { left: 6px; font-size: 34px; padding: 8px 14px; }
    .glb-next { right: 6px; font-size: 34px; padding: 8px 14px; }
    .glb-close { font-size: 32px; top: 12px; right: 14px; }
    .glb-img { max-width: 95vw; max-height: 75vh; }

    .hero-quick-specs { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .hero-section.card { padding: 22px; }

    /* Price */
    .price-box { flex-direction: column; gap: 20px; }

    /* Tables â€” horizontal scroll */
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; white-space: nowrap; }

    /* Summary */
    .model-summary-short { font-size: 17px; padding: 22px 20px; }
    .model-summary-long  { padding: 24px 20px; margin: 20px auto 30px auto; }
    .model-summary-long p { font-size: 15px; }

    /* Grids */
    .compare-grid      { grid-template-columns: repeat(2, 1fr); }
    .model-grid        { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .difference-grid   { grid-template-columns: repeat(2, 1fr); }
    .related-grid      { grid-template-columns: repeat(2, 1fr); }
    .category-grid     { grid-template-columns: 1fr; }
    .buy-grid          { grid-template-columns: 1fr; }
    .pros-cons-grid    { grid-template-columns: 1fr; gap: 20px; }
    .variant-grid      { grid-template-columns: 1fr; }

    /* Scores */
    .score-summary-grid { grid-template-columns: 1fr; gap: 16px; }
    .big-score { font-size: 38px; }

    /* ── Compare hero: vertical stack for ALL layouts on mobile ── */
    .compare-hero-grid,
    .compare-hero-grid--3 {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    /* Each car card: horizontal 2-col (image | details) */
    .compare-hero-grid .compare-car-box,
    .compare-hero-grid .compare-car-box--c,
    .compare-hero-grid--3 .compare-car-box,
    .compare-hero-grid--3 .compare-car-box--c {
        display: grid;
        grid-template-columns: 110px 1fr;
        align-items: start;
        gap: 8px;
        padding: 12px 10px;
        border-bottom: 1px solid #e5e8ef;
        text-align: left;
    }

    /* Image spans multiple rows on the left */
    .compare-hero-grid .compare-car-box .compare-image-wrapper,
    .compare-hero-grid--3 .compare-car-box .compare-image-wrapper,
    .compare-hero-grid--3 .compare-car-box--c .compare-image-wrapper {
        grid-column: 1;
        grid-row: 1 / 8;
    }

    /* All other children go in col 2 */
    .compare-hero-grid .compare-car-box > *:not(.compare-image-wrapper),
    .compare-hero-grid--3 .compare-car-box > *:not(.compare-image-wrapper),
    .compare-hero-grid--3 .compare-car-box--c > *:not(.compare-image-wrapper) {
        grid-column: 2;
    }

    /* VS dividers: thin centered badge rows */
    .compare-hero-grid .compare-vs,
    .compare-hero-grid--3 .compare-vs {
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 5px 0;
        background: #f8fafc;
        border-top: 1px solid #e5e8ef;
        border-bottom: 1px solid #e5e8ef;
    }

    /* Hide Compare button in VS — redundant on mobile */
    .compare-hero-grid .compare-vs-btn { display: none; }

    /* "Add 3rd car" slot: compact horizontal row */
    .compare-hero-grid .compare-car-box--add,
    .compare-hero-grid--3 .compare-car-box--add {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 10px;
        padding: 12px 10px;
        border-bottom: 1px solid #e5e8ef;
        border: 1px dashed #cbd5e1;
        border-radius: 10px;
        margin: 8px 10px;
    }

    .compare-hero-grid .compare-car-box--add .add-car-icon,
    .compare-hero-grid--3 .compare-car-box--add .add-car-icon {
        font-size: 22px;
        flex-shrink: 0;
    }

    .compare-hero-grid .compare-car-box--add .add-car-label,
    .compare-hero-grid--3 .compare-car-box--add .add-car-label {
        font-size: 12px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .compare-hero-grid .compare-car-box--add .inline-car-switcher,
    .compare-hero-grid--3 .compare-car-box--add .inline-car-switcher {
        flex: 1;
        margin: 0;
    }

    /* Images */
    .compare-image-wrapper img { height: 90px !important; width: 100% !important; object-fit: contain; }
    .cmp-car-title { font-size: 13px; margin: 0 0 2px; }
    .variant-selector-label { display: none; }
    .cmp-variant-meta { flex-wrap: wrap; gap: 3px; font-size: 11px; }
    .hero-price { font-size: 14px; }
    .hero-highlights { gap: 4px; flex-direction: row; flex-wrap: wrap; }
    .hero-spec { font-size: 11px; }
    .compare-vs-text { font-size: 13px; font-weight: 700; }
    .cmp-remove-c-btn { position: static; margin-bottom: 4px; display: inline-flex; }
    .compare-grid-2 { grid-template-columns: 1fr; gap: 15px; }
    .compare-images img { height: 200px; }
    .inline-car-switcher { align-items: flex-start; }
    .inline-switcher-select { font-size: 12px; width: 100%; }
    /* Spec table on mobile: allow horizontal scroll within the table */
    .spec-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .spec-table-wrap table { min-width: 480px; }

    /* Nav */
    .logo img, .logo-icon { width: 34px; height: 34px; }
    .logo-wordmark { font-size: 20px; }

    /* Sticky bar */
    .sticky-content { flex-wrap: wrap; }
    .sticky-right   { flex-wrap: wrap; }

    /* Spec rows â€” allow wrap */
    .spec-row { flex-wrap: wrap; gap: 4px; }
    .spec-name, .spec-value { flex: 0 0 100%; text-align: left; }
}

/* ============================================================
   RESPONSIVE â€” LARGE PHONES  (â‰¤600px)
   ============================================================ */

@media (max-width: 600px) {
    .page-container { padding: 0 12px; }

    .model-grid      { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .compare-grid    { grid-template-columns: 1fr; }
    .difference-grid { grid-template-columns: repeat(2, 1fr); }
    .quick-winner-grid { grid-template-columns: 1fr 1fr; }
    .score-head { flex-direction: column; align-items: stretch; gap: 8px; }
    .score-method-pill { justify-content: flex-start; width: fit-content; }
    .score-rank-grid,
    .score-rank-grid--3 { grid-template-columns: 1fr; }
    .score-rank-card { padding: 16px; }
    .score-meter { width: 82px; height: 82px; }
    .score-meter { flex-basis: 82px; }
    .score-meter span { font-size: 27px; }
    .score-verdict-board { padding: 14px; gap: 12px; }
    .score-verdict-copy h3 { font-size: 20px; }
    .score-verdict-copy p { font-size: 13px; }
    .score-verdict-metrics div { padding: 10px 8px; }
    .score-verdict-metrics strong { font-size: 23px; }
    .score-card-main { gap: 12px; }
    .score-card-breakdown { gap: 7px; }
    .score-mini-row {
        grid-template-columns: minmax(74px, .9fr) minmax(76px, 1fr) 40px;
        gap: 7px;
    }
    .score-detail-drawer summary { align-items: flex-start; flex-direction: column; gap: 8px; }
    .score-detail-drawer summary strong { white-space: normal; text-align: center; }
    .category-grid--integrated { padding: 12px; }
    .score-insight-head { align-items: flex-start; flex-direction: column; gap: 3px; }
    .score-insight-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .score-weight-strip { gap: 6px; }
    .score-weight-strip span { font-size: 11px; padding: 6px 8px; }

    .hero-quick-specs { gap: 10px; }

    .compare-archive-banner {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .compare-archive-chips {
        justify-content: flex-start;
        min-width: 0;
        max-width: 100%;
    }
    .compare-archive-chips span {
        width: 100%;
        justify-content: flex-start;
    }

    /* Full-width CTA buttons */
    .hero-cta { display: grid; gap: 10px; }
    .btn-primary, .btn-outline { width: 100%; text-align: center; padding: 12px; font-size: 15px; }

    /* Compare hero boxes: horizontal row on mobile */
    .chb {
        flex-direction: row;
        border-radius: 8px;
        text-align: left;
    }
    .chb-img-wrap {
        width: 110px;
        min-width: 110px;
        border-radius: 0;
        flex-shrink: 0;
    }
    .chb-img-wrap img { height: 100%; min-height: 100px; }
    .chb-body { padding: 10px 12px; gap: 4px; }
    .chb-badges, .chb-specs { justify-content: flex-start; }
    .chb-name { font-size: 13px; }
    .chb-price { font-size: 15px; }
    .chb-price-tag { display: inline; }
    .chb-archive-note { padding: 7px 8px; font-size: 10px; }
    .chb-vs-pill {
        width: auto;
        height: 26px;
        border-radius: 13px;
        padding: 0 12px;
        font-size: 10px;
        align-self: center;
    }
    .add-third-bar { flex-wrap: wrap; gap: 8px; }
    .atb-label { flex-shrink: 0; }
    .atb-select { flex: 1; min-width: 140px; }
}

/* ============================================================
   RESPONSIVE â€” STANDARD PHONES  (â‰¤480px)
   ============================================================ */

@media (max-width: 480px) {
    body { padding: 10px; padding-top: 0; }

    h1 { font-size: 20px; line-height: 1.35; }
    h2 { font-size: 17px; }

    /* Very compact comparison on small phones */
    .compare-hero-grid .compare-car-box,
    .compare-hero-grid .compare-car-box--c,
    .compare-hero-grid--3 .compare-car-box,
    .compare-hero-grid--3 .compare-car-box--c {
        grid-template-columns: 90px 1fr;
        gap: 6px;
        padding: 10px 8px;
    }
    .compare-image-wrapper img { height: 75px !important; }
    .cmp-car-title { font-size: 12px; }
    .compare-vs-text { font-size: 12px; }
    .hero-price { font-size: 13px; }
    .hero-spec { font-size: 10px; }
    .chb-img-wrap { width: 90px; min-width: 90px; }
    .chb-name { font-size: 12px; }
    .chb-price { font-size: 13px; }
    .chb-spec { font-size: 10px; padding: 2px 7px; }

    .page-container { padding: 0 10px; }

    /* Hero */
    .hero-section    { padding: 16px; }
    .hero-info h1    { font-size: 19px; line-height: 1.35; margin-bottom: 12px; }
    .hero-image img  { height: 190px; max-width: 100%; object-fit: cover; border-radius: 8px; }

    /* Quick specs */
    .hero-quick-specs { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .hero-quick-specs div {
        background: #f7f9fc;
        border-radius: 8px;
        padding: 10px;
        text-align: center;
    }

    /* Price */
    .price { font-size: 26px; }
    .price-main { font-size: 24px; }

    /* Cards */
    .card { border-radius: 10px; padding: 16px; }

    /* Difference / compare */
    .difference-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .difference-item { padding: 12px 10px; font-size: 13px; }

    /* Score */
    .big-score { font-size: 34px; }
    .score-verdict-board { padding: 12px; }
    .score-verdict-copy h3 { font-size: 18px; }
    .score-verdict-metrics { gap: 6px; }
    .score-verdict-metrics div { padding: 8px 7px; }
    .score-verdict-metrics strong { font-size: 20px; }
    .score-verdict-metrics small { font-size: 10px; }
    .score-card-tags { gap: 6px; }
    .score-card-tags span { padding: 8px; font-size: 11px; }
    .score-mini-row {
        grid-template-columns: minmax(70px, .9fr) minmax(68px, 1fr) 38px;
        gap: 6px;
    }
    .score-mini-label,
    .score-mini-value { font-size: 11px; }
    .score-mini-value::after { font-size: 8px; }
    .score-detail-drawer summary { padding: 11px 12px; }
    .category-grid--integrated .category-box { padding: 14px; }
    .score-insight-strip { gap: 6px; }
    .score-insight-strip span { padding: 7px 8px; font-size: 11px; }
    .score-insight-strip strong { font-size: 10px; }

    /* Model cards */
    .model-card img { height: 130px; }

    /* Spec toggle */
    .spec-toggle { padding: 14px 16px; font-size: 15px; }
    .spec-row    { padding: 12px 16px; font-size: 14px; }
    .spec-name, .spec-value { flex: 0 0 100%; text-align: left; }

    /* FAQ */
    .faq-question { font-size: 14px; }
    .faq-answer   { font-size: 13px; }

    /* Summary */
    .model-summary-short { font-size: 16px; padding: 18px 16px; }
    .model-summary-long  { padding: 18px 16px; }
    .model-summary-long p { font-size: 14.5px; }
}

/* ============================================================
   RESPONSIVE â€” SMALL PHONES  (â‰¤360px)
   ============================================================ */

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

    h1 { font-size: 18px; }
    h2 { font-size: 16px; }
    h3 { font-size: 15px; }

    .page-container { padding: 0 8px; }

    .hero-quick-specs { grid-template-columns: 1fr 1fr; gap: 8px; }
    .hero-quick-specs div { padding: 8px; }

    .hero-pricing .value { font-size: 16px; }
    .hero-pricing .highlight { font-size: 20px; }

    .price { font-size: 22px; }
    .price-main { font-size: 21px; }
    .big-score  { font-size: 30px; }

    .model-grid      { grid-template-columns: 1fr 1fr; gap: 8px; }
    .model-card img  { height: 110px; }
    .model-card      { padding: 10px; }
    .model-card h3   { font-size: 13px; }

    .difference-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
    .difference-item { padding: 10px 8px; font-size: 12px; }

    .card { padding: 14px; }

    .score-rank-card { padding: 14px; }
    .score-meter { width: 76px; height: 76px; flex-basis: 76px; }
    .score-meter span { font-size: 24px; }
    .score-card-tags { grid-template-columns: 1fr; }
    .score-card-breakdown { margin-top: 12px; padding-top: 12px; }
    .score-mini-row {
        grid-template-columns: minmax(66px, .95fr) minmax(56px, 1fr) 36px;
    }
    .score-mini-track { height: 7px; }
    .score-detail-drawer summary span { font-size: 13px; }
    .score-detail-drawer summary strong { font-size: 11px; }
    .category-grid--integrated { padding: 10px; }
    .score-insight-strip { grid-template-columns: 1fr; }

    .btn-primary, .btn-outline { font-size: 14px; padding: 10px; }

    .logo img, .logo-icon { width: 32px; height: 32px; }
    .logo-wordmark { font-size: 18px; }

    /* Keep table scrollable on very small screens */
    table { font-size: 12px; }

    .spec-toggle { font-size: 14px; padding: 12px 14px; }
    .spec-row    { font-size: 13px; padding: 10px 14px; }
}

/* ============================================================
   RESPONSIVE â€” TINY PHONES  (â‰¤320px)
   ============================================================ */

@media (max-width: 320px) {
    h1 { font-size: 16px; }
    h2 { font-size: 15px; }

    body { padding: 6px; }
    .page-container { padding: 0 6px; }

    .hero-quick-specs { grid-template-columns: 1fr; }
    .model-grid       { grid-template-columns: 1fr; }
    .difference-grid  { grid-template-columns: 1fr; }

    .price { font-size: 20px; }
    .big-score { font-size: 28px; }

    .card { padding: 12px; }
    .score-rank-card { padding: 12px; }
    .score-verdict-metrics span { font-size: 9px; letter-spacing: .03em; }
    .score-verdict-metrics strong { font-size: 18px; }
    .score-meter { width: 72px; height: 72px; flex-basis: 72px; }
    .score-meter span { font-size: 22px; }
    .score-mini-row {
        grid-template-columns: minmax(60px, .95fr) minmax(48px, 1fr) 34px;
        gap: 5px;
    }
    .score-mini-label,
    .score-mini-value { font-size: 10px; }
    .score-mini-value::after { font-size: 7px; }
    .score-detail-drawer summary { padding: 10px; }
    .category-grid--integrated { padding: 8px; }
    .category-grid--integrated .category-box { padding: 12px; }
    .btn-primary, .btn-outline { font-size: 13px; }
}

/* ============================================================
   HOME HERO
   ============================================================ */

.home-hero {
    padding: 30px 28px 28px;
}

.home-hero h1 {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.25;
    color: #0f172a;
}

.home-hero-sub {
    font-size: 15px;
    color: #475569;
    margin: 0 0 20px;
    max-width: 640px;
    line-height: 1.6;
}

.home-hero-cta {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* Body-type tiles */
.body-type-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.body-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 16px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.2s ease;
    text-align: center;
}

.body-tile:hover {
    background: #eef4ff;
    border-color: #c3d3f7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11,94,215,0.08);
}

.body-tile-icon { font-size: 28px; line-height: 1; }
.body-tile strong { font-size: 14px; font-weight: 700; color: #0f172a; }
.body-tile span { font-size: 12px; color: #64748b; }

/* ============================================================
   SECTION HEADER (TITLE + "SEE ALL" LINK)
   ============================================================ */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.section-header h2 { margin: 0; }

.section-more {
    font-size: 14px;
    font-weight: 500;
    color: #0b5ed7;
    text-decoration: none;
    white-space: nowrap;
}

.section-more:hover { text-decoration: underline; }

/* ============================================================
   MODEL THUMBNAIL CARDS  (competitor, related, popular)
   ============================================================ */

.model-thumb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 16px;
}

.model-thumb-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.model-thumb-card:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.09);
    transform: translateY(-3px);
}

.model-thumb-img-link {
    display: block;
    background: #f8fafc;
    line-height: 0;
}

.model-thumb-img-link img {
    width: 100%;
    height: 157px;
    object-fit: contain;
    display: block;
    padding: 8px;
    box-sizing: border-box;
    transition: transform 0.25s ease;
}

.model-thumb-card:hover .model-thumb-img-link img { transform: scale(1.03); }

.model-thumb-body {
    padding: 12px 14px 14px;
}

.model-thumb-name {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.model-thumb-name a {
    text-decoration: none;
    color: #0f172a;
}

.model-thumb-name a:hover { color: #0b5ed7; }

.model-thumb-body .muted { margin: 0 0 10px; }

.model-thumb-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Small button variant */
.btn-sm {
    padding: 6px 12px;
    font-size: 13px;
    border-radius: 6px;
}

/* ============================================================
   BRAND LOGO GRID
   ============================================================ */

.brand-logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.brand-logo-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
}

.brand-logo-card:hover {
    border-color: #bfcfee;
    background: #f4f8ff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}

.brand-logo-card img {
    width: 80px;
    height: 40px;
    object-fit: contain;
    filter: grayscale(15%);
    transition: filter 0.2s ease;
}

.brand-logo-card:hover img { filter: grayscale(0%); }

.brand-name {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
}

.brand-count {
    font-size: 11px;
}

/* ============================================================
   WHY HAGALU
   ============================================================ */

.why-hagalu h2 { margin-bottom: 20px; }

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.why-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 18px 16px;
}

.why-icon {
    font-size: 20px;
    margin-bottom: 8px;
}

.why-item strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #0f172a;
}

.why-item p {
    font-size: 13.5px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   COMPARISON DUAL-IMAGE CARDS
   ============================================================ */

.compare-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}

.compare-card-dual {
    display: block;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.compare-card-dual:hover {
    border-color: #bfcfee;
    box-shadow: 0 4px 14px rgba(11,94,215,0.1);
    transform: translateY(-2px);
}

.dual-images {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    padding: 10px 8px;
    gap: 8px;
}

.dual-images img {
    width: 45%;
    max-width: 120px;
    height: 68px;
    object-fit: contain;
}

.dual-vs {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.dual-title {
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
}

/* ============================================================
   COMPARISON PAGE: MODEL NAME LINK
   ============================================================ */

.model-name-link {
    text-decoration: none;
    color: inherit;
}

.model-name-link:hover {
    color: #0b5ed7;
    text-decoration: underline;
}

/* ============================================================
   PAGE UPDATED LINE
   ============================================================ */

.page-updated {
    font-size: 12px;
    color: #94a3b8;
    margin: -14px 0 20px;
    padding: 0 4px;
}

/* ============================================================
   SEO LINKS PARAGRAPH
   ============================================================ */

.seo-links {
    font-size: 14px;
    color: #64748b;
    line-height: 1.7;
    padding: 14px 18px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin: 16px 0;
}

/* ============================================================
   COMPARE HERO IMAGE WRAPPER FIX (now an <a>)
   ============================================================ */

a.compare-image-wrapper {
    display: block;
    line-height: 0;
}

a.compare-image-wrapper img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

a.compare-image-wrapper:hover img { transform: scale(1.03); }

/* ============================================================
   COMPACT CAR CARD  (carwale-style — used on home, competitor, related)
   ============================================================ */

.car-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.car-card {
    display: block;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    color: #0f172a;
}

.car-card:hover {
    box-shadow: 0 8px 24px rgba(11,94,215,0.11);
    transform: translateY(-3px);
    border-color: #c3d3f7;
}

.car-card-img {
    position: relative;
    background: #f8fafc;
    padding: 10px 10px 8px;
    overflow: hidden;
    line-height: 0;
}

.car-card-img img {
    width: 100%;
    height: 120px;
    object-fit: contain;
    display: block;
    transition: transform 0.28s ease;
}

.car-card:hover .car-card-img img { transform: scale(1.05); }

.fuel-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    line-height: 1.4;
}

.fuel-badge.petrol   { background: #fef3c7; color: #92400e; }
.fuel-badge.diesel   { background: #dbeafe; color: #1e40af; }
.fuel-badge.hybrid   { background: #dcfce7; color: #166534; }
.fuel-badge.electric { background: #ede9fe; color: #5b21b6; }
.fuel-badge.multi    { background: #f1f5f9; color: #475569; }

.car-card-body {
    padding: 10px 12px 13px;
    border-top: 1px solid #f1f5f9;
}

.car-card-brand {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: 3px;
}

.car-card-name {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.25;
    margin-bottom: 7px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.car-card-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 9px;
}

.chip {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 500;
    white-space: nowrap;
}

.chip.chip-primary {
    background: #eff6ff;
    color: #1d4ed8;
}

.car-card-price {
    font-size: 15px;
    font-weight: 700;
    color: #0b5ed7;
    margin-bottom: 3px;
    line-height: 1.2;
}

.car-card-price-label {
    font-size: 10px;
    font-weight: 400;
    color: #94a3b8;
    display: block;
    margin-bottom: 1px;
}

.car-card-variants {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* Compact same-brand archive on model detail pages. Historical models remain
   discoverable, while current models keep the dominant full-card treatment. */
.model-archive-panel {
    margin: 20px 0;
    padding: 17px 18px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.model-archive-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 13px;
}

.model-archive-eyebrow {
    display: block;
    margin-bottom: 3px;
    color: #9f1239;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    line-height: 1.2;
    text-transform: uppercase;
}

.model-archive-heading h2 {
    margin: 0 0 3px;
    color: #334155;
    font-size: 17px;
    line-height: 1.3;
}

.model-archive-heading p {
    margin: 0;
    color: #64748b;
    font-size: 12.5px;
    line-height: 1.45;
}

.model-archive-all {
    flex-shrink: 0;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.model-archive-all:hover { color: #0b5ed7; }

.model-archive-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.model-archive-item {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 14px;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 66px;
    padding: 7px;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    color: #334155;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.model-archive-item:hover {
    border-color: #cbd5e1;
    background: #fff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, .06);
}

.model-archive-item:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .28);
    outline-offset: 2px;
}

.model-archive-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 50px;
    overflow: hidden;
    border-radius: 6px;
    background: #f8fafc;
}

.model-archive-image img {
    display: block;
    width: 100%;
    height: 100%;
    padding: 3px;
    object-fit: contain;
    filter: saturate(.72);
}

.model-archive-copy {
    display: block;
    min-width: 0;
}

.model-archive-copy strong {
    display: block;
    overflow: hidden;
    margin-bottom: 5px;
    color: #334155;
    font-size: 12.5px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-archive-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    color: #94a3b8;
    font-size: 9.5px;
    line-height: 1.2;
}

.model-archive-status {
    overflow: hidden;
    padding: 2px 5px;
    border-radius: 999px;
    background: #fff1f2;
    color: #9f1239;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-archive-body {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.model-archive-arrow {
    color: #94a3b8;
    font-size: 19px;
    line-height: 1;
    transition: transform .16s ease, color .16s ease;
}

.model-archive-item:hover .model-archive-arrow {
    color: #475569;
    transform: translateX(2px);
}

.model-archive-more {
    margin: 10px 0 0;
    color: #64748b;
    font-size: 11px;
}

.model-archive-more a {
    color: #1d4ed8;
    font-weight: 700;
}

.car-compare-btn {
    display: inline-block;
    padding: 5px 12px;
    border: 1.5px solid #1f4fd8;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    color: #1f4fd8;
    background: #fff;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease;
    user-select: none;
    white-space: nowrap;
}
.car-compare-btn:hover { background: #1f4fd8; color: #fff; }

/* ============================================================
   CMP-VS-CARD  (model_detail "Compare with Similar X")
   ============================================================ */

.section-sub {
    font-size: 14px;
    color: #64748b;
    margin: -4px 0 16px;
}

/* ── Home page horizontal car row ────────────────────── */
.home-row {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
}
.home-car-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .15s, transform .15s;
    background: #fff;
}
.home-car-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,.10);
    transform: translateY(-2px);
}
.home-car-img {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f8fafc;
}
.home-car-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home-car-body {
    padding: 8px 10px 10px;
}
.home-car-price {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    margin-top: 4px;
}
.home-car-price.muted { color: #94a3b8; font-weight: 400; }
.section-cta-row {
    margin-top: 16px;
    text-align: right;
}
.home-section .section-header h2 { font-size: 18px; }

@media (max-width: 600px) {
    .home-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

.cmp-vs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.cmp-vs-card {
    display: block;
    text-decoration: none;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
    color: inherit;
}

.cmp-vs-card:hover {
    box-shadow: 0 8px 24px rgba(11,94,215,.12);
    border-color: #93c5fd;
    transform: translateY(-3px);
}

.cmp-vs-images {
    display: grid;
    grid-template-columns: 1fr 36px 1fr;
    align-items: center;
    background: #f8fafc;
    padding: 12px 10px;
    gap: 6px;
    border-bottom: 1px solid #f1f5f9;
}

.cmp-vs-car {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cmp-vs-car img {
    width: 100%;
    max-width: 110px;
    height: 65px;
    object-fit: contain;
    display: block;
}

.cmp-vs-badge {
    width: 32px;
    height: 32px;
    background: #1f4fd8;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: .3px;
    box-shadow: 0 2px 6px rgba(31,79,216,.3);
}

.cmp-vs-body {
    padding: 12px 14px 14px;
}

.cmp-vs-names {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-bottom: 10px;
}

.cmp-vs-name {
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cmp-vs-name-right { text-align: right; }

.cmp-vs-sep {
    font-size: 10px;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    flex-shrink: 0;
    padding: 0 4px;
}

.cmp-vs-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.cmp-vs-price {
    font-size: 15px;
    font-weight: 700;
    color: #0b5ed7;
    margin-bottom: 10px;
    line-height: 1.2;
}

.cmp-vs-price-label {
    font-size: 10px;
    font-weight: 400;
    color: #94a3b8;
    display: block;
    margin-bottom: 2px;
}

.cmp-vs-cta {
    font-size: 12px;
    font-weight: 600;
    color: #1f4fd8;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-top: 8px;
    border-top: 1px solid #f1f5f9;
}

.cmp-vs-cta::after { content: " →"; }

/* ============================================================
   RICH-CMP-CARD  (comparison_detail related / people-also)
   ============================================================ */

.rich-cmp-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 16px;
}

.rich-cmp-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
    transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease;
}

.rich-cmp-card:hover {
    box-shadow: 0 6px 20px rgba(11,94,215,.1);
    border-color: #93c5fd;
    transform: translateY(-2px);
}

.rich-cmp-images {
    display: grid;
    grid-template-columns: 1fr 32px 1fr;
    align-items: stretch;
    background: #f8fafc;
}

.rich-cmp-half {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px 10px;
    gap: 6px;
}

.rich-cmp-half img {
    width: 100%;
    max-width: 100px;
    height: 58px;
    object-fit: contain;
}

.rich-cmp-half-name {
    font-size: 11px;
    font-weight: 700;
    color: #334155;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.rich-cmp-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

.rich-cmp-vs {
    width: 26px;
    height: 26px;
    background: #0b5ed7;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: .3px;
}

.rich-cmp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    border-top: 1px solid #f1f5f9;
    background: #fff;
}

.rich-cmp-arrow {
    font-size: 14px;
    color: #0b5ed7;
    transition: transform .18s ease;
}

.rich-cmp-card:hover .rich-cmp-arrow { transform: translateX(3px); }

/* ============================================================
   BRAND DIRECTORY  (home)
   ============================================================ */

.brand-directory-card {
    overflow: hidden;
}

.brand-directory-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: center;
    margin: 4px 0 16px;
}

.brand-search-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    background: #f8fafc;
}

.brand-search-icon {
    flex: 0 0 auto;
    color: #64748b;
    font-size: 15px;
    line-height: 1;
}

.brand-search-input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #0f172a;
    font-size: 14px;
    font-weight: 600;
}

.brand-search-input::placeholder {
    color: #94a3b8;
    font-weight: 500;
}

.brand-search-wrap:focus-within {
    border-color: #93c5fd;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(59,130,246,.12);
}

.brand-directory-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.brand-directory-link:hover {
    background: #dbeafe;
    text-decoration: none;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
}

.brand-grid:not(.is-expanded):not(.is-filtering) .brand-grid-item:nth-child(n+25) {
    display: none;
}

.brand-grid-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 66px;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.brand-grid-item:hover,
.brand-grid-item:focus-visible {
    background: #f4f8ff;
    border-color: #93c5fd;
    box-shadow: 0 6px 18px rgba(37,99,235,.1);
    transform: translateY(-1px);
    text-decoration: none;
    outline: none;
}

.brand-grid-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 42px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}

.brand-grid-logo img {
    width: 42px;
    height: 26px;
    object-fit: contain;
    filter: grayscale(18%);
    transition: filter .16s ease;
}

.brand-grid-item:hover .brand-grid-logo img,
.brand-grid-item:focus-visible .brand-grid-logo img {
    filter: grayscale(0%);
}

.brand-grid-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.brand-grid-name {
    overflow: hidden;
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.brand-grid-count {
    color: #64748b;
    font-size: 11px;
    line-height: 1.2;
}

.brand-grid-arrow {
    color: #2563eb;
    font-size: 16px;
    font-weight: 800;
}

.brand-directory-empty {
    margin: 14px 0 0;
    color: #64748b;
    font-size: 13px;
}

.brand-directory-actions {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.brand-toggle-btn {
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #fff;
    color: #1d4ed8;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.brand-toggle-btn:hover,
.brand-toggle-btn:focus-visible {
    background: #eff6ff;
    border-color: #93c5fd;
    outline: none;
}

/* ============================================================
   RESPONSIVE — HOME HERO
   ============================================================ */

@media (max-width: 1100px) {
    .car-cards-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .body-type-tiles { grid-template-columns: repeat(4, 1fr); }
    .car-cards-grid  { grid-template-columns: repeat(3, 1fr); }
    .model-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
    .home-hero { padding: 24px 20px; }
    .home-hero-text h1 { font-size: 24px; }
    .home-hero-sub { font-size: 15px; }
    .body-type-tiles { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .brand-logo-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
    .model-thumb-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .compare-card-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
    .car-cards-grid  { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}

@media (max-width: 600px) {
    .home-hero { padding: 20px 16px; }
    .home-hero-text h1 { font-size: 21px; }
    .home-hero-sub { font-size: 14px; margin-bottom: 16px; }
    .home-hero-cta { gap: 8px; }
    .home-hero-cta .btn-primary,
    .home-hero-cta .btn-outline { flex: 1; text-align: center; padding: 11px 14px; }
    .home-hero-v2 .home-hero-cta a,
    .home-hero-v2 .home-hero-cta button {
        flex: 1 1 100%;
        text-align: center;
    }
    .home-hero-stats {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 12px;
    }
    .body-type-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .body-tile { padding: 11px 6px; }
    .body-tile-icon { font-size: 22px; }
    .body-tile strong { font-size: 12px; }
    .body-tile span { font-size: 10px; }
    .why-grid { grid-template-columns: 1fr 1fr; }
    .model-thumb-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .brand-logo-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .compare-card-grid { grid-template-columns: repeat(2, 1fr); }
    .section-more { font-size: 13px; }
    /* compact car cards */
    .car-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .car-card-img img { height: 100px; }
    .car-card-name { font-size: 13px; }
    .car-card-price { font-size: 14px; }
    .model-archive-panel { padding: 14px 12px; }
    .model-archive-heading { align-items: flex-start; margin-bottom: 11px; }
    .model-archive-heading h2 { font-size: 15px; }
    .model-archive-heading p { font-size: 11.5px; }
    .model-archive-all { font-size: 11px; }
    .model-archive-item {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 7px;
        min-height: 58px;
        padding: 6px;
    }
    .model-archive-image { width: 56px; height: 42px; }
    .model-archive-copy strong { font-size: 11.5px; margin-bottom: 4px; }
    .model-archive-arrow { display: none; }
    .model-archive-body { display: none; }
}

@media (max-width: 480px) {
    .model-thumb-img-link img { height: 120px; }
    .model-thumb-name { font-size: 13px; }
    .model-thumb-actions { gap: 6px; }
    .btn-sm { padding: 5px 10px; font-size: 12px; }
    .brand-logo-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
    .brand-logo-card { padding: 10px 8px; }
    .brand-logo-card img { width: 60px; height: 30px; }
    .brand-name { font-size: 12px; }
    .body-type-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dual-images img { height: 54px; }
    .dual-title { font-size: 12px; padding: 8px 10px; }
    .car-card-img img { height: 96px; }
    .car-card-chips { gap: 4px; }
    .chip { font-size: 10px; padding: 2px 6px; }
}

@media (max-width: 400px) {
    .body-type-tiles { grid-template-columns: repeat(2, 1fr); }
    .body-tile span { display: none; }
    .car-cards-grid { gap: 8px; }
    .car-card-img img { height: 88px; }
    .car-card-body { padding: 8px 10px 10px; }
    .car-card-name { font-size: 12px; }
    .car-card-price { font-size: 13px; }
    .car-card-variants { font-size: 10px; }
}

@media (max-width: 360px) {
    .model-thumb-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .brand-logo-grid { grid-template-columns: repeat(2, 1fr); }
    .compare-card-grid { grid-template-columns: 1fr; }
    .model-thumb-img-link img { height: 100px; }
    .car-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .car-card-img img { height: 82px; }
}

/* ============================================================
   COMPARE HOME — quick picker + body type tabs
   ============================================================ */

.compare-hero-pick { text-align: center; padding: 32px 24px; }
.compare-hero-pick h1 { font-size: 26px; margin-bottom: 8px; }
.compare-hero-sub { color: #64748b; font-size: 15px; margin-bottom: 24px; }

.quick-compare-picker {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 760px;
    margin: 0 auto;
}
.qcp-group { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 200px; max-width: 280px; }
.qcp-label { font-size: 12px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .5px; }
.qcp-select { padding: 10px 12px; border: 1.5px solid #d0d7e2; border-radius: 8px; font-size: 14px; background: #fff; color: #1e293b; appearance: none; cursor: pointer; }
.qcp-select:focus { outline: none; border-color: #3b82f6; }
.qcp-vs { font-size: 20px; font-weight: 800; color: #94a3b8; padding-bottom: 4px; }
.qcp-btn { padding: 11px 24px; white-space: nowrap; }
.qcp-error { color: #ef4444; font-size: 13px; margin-top: 8px; }

/* BODY TYPE TABS */
.bt-tabs {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    padding: 0 4px;
    margin-bottom: 4px;
}
.bt-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    border: 1.5px solid #d0d7e2;
    border-radius: 24px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all .15s ease;
}
.bt-tab:hover { border-color: #3b82f6; color: #3b82f6; }
.bt-tab.active { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.bt-count {
    background: rgba(0,0,0,.1);
    border-radius: 10px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
}
.bt-tab.active .bt-count { background: rgba(255,255,255,.25); }

/* COMPARE CARD GRID — improved */
.compare-card-dual {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: box-shadow .2s ease, border-color .2s ease, transform .15s ease;
    padding-bottom: 12px;
}
.compare-card-dual:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.1);
    border-color: #3b82f6;
    transform: translateY(-2px);
}
.compare-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.dual-images {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f8fafc;
    width: 100%;
    padding: 12px 8px 8px;
}
.dual-images img { width: 48%; height: 72px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.dual-vs { font-size: 11px; font-weight: 800; color: #94a3b8; white-space: nowrap; }
.dual-vs-text { font-size: 10px; color: #94a3b8; font-weight: 700; text-transform: uppercase; margin: 0; }
.dual-title { font-size: 12px; font-weight: 600; color: #1e293b; text-align: center; padding: 4px 8px 0; line-height: 1.3; }

.compare-loader {
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 72px;
    padding: 18px 12px;
    color: #475569;
    font-size: 13px;
    font-weight: 750;
}

.compare-spinner {
    position: relative;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 50%;
    background: conic-gradient(from 180deg, #2563eb, #38bdf8, #dbeafe 72%, #2563eb);
    animation: compareSpin .9s linear infinite;
}

.compare-spinner::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #fff;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.compare-loader span {
    position: relative;
    line-height: 1.35;
}

.compare-loader span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #2563eb, #38bdf8);
    transform: scaleX(.35);
    transform-origin: left;
    animation: compareLoaderLine 1.15s ease-in-out infinite;
}

@keyframes compareSpin {
    to { transform: rotate(360deg); }
}

@keyframes compareLoaderLine {
    0%, 100% { transform: scaleX(.35); opacity: .55; }
    50% { transform: scaleX(1); opacity: 1; }
}

/* SEGMENT MODEL CHIPS */
.segment-models { margin-top: 20px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.segment-models-label { font-size: 12px; color: #64748b; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.segment-model-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-model { background: #f1f5f9; color: #334155; border-radius: 20px; padding: 5px 12px; font-size: 12px; font-weight: 500; text-decoration: none; transition: background .15s; }
.chip-model:hover { background: #dbeafe; color: #1d4ed8; }

/* WHY COMPARE */
.why-compare h2 { margin-bottom: 16px; }

/* ============================================================
   MODEL SWITCHER — comparison detail
   ============================================================ */
.model-switcher {
    padding: 16px 20px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 4px;
}
.switcher-heading {
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 10px;
}
.switcher-row {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}
.switcher-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 150px; }
.switcher-label { font-size: 11px; font-weight: 600; color: #64748b; text-transform: uppercase; letter-spacing: .4px; }
.switcher-select { padding: 8px 12px; border: 1.5px solid #d0d7e2; border-radius: 8px; font-size: 13px; background: #fff; color: #1e293b; cursor: pointer; }
.switcher-select:focus { outline: none; border-color: #3b82f6; }
.switcher-vs-badge { font-size: 14px; font-weight: 800; color: #94a3b8; padding-bottom: 6px; }
.switcher-btn { padding: 9px 18px; white-space: nowrap; }

/* ============================================================
   RESPONSIVE — compare home + switcher
   ============================================================ */
@media (max-width: 768px) {
    .quick-compare-picker { gap: 8px; }
    .qcp-group { min-width: 160px; }
    .compare-card-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
    .dual-images img { height: 60px; }
    .bt-tab { padding: 7px 12px; font-size: 12px; }
}

@media (max-width: 600px) {
    .quick-compare-picker { flex-direction: column; align-items: stretch; }
    .qcp-group { max-width: 100%; }
    .qcp-vs { text-align: center; }
    .qcp-btn { width: 100%; }
    .compare-card-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .dual-images img { height: 54px; }
    .compare-loader { min-height: 60px; padding: 14px 8px; font-size: 12px; }
    .compare-spinner { width: 24px; height: 24px; flex-basis: 24px; }
    .switcher-row { flex-direction: column; }
    .switcher-group { width: 100%; }
    .switcher-btn { width: 100%; }
}

@media (max-width: 400px) {
    .compare-card-grid { grid-template-columns: repeat(2, 1fr); gap: 7px; }
    .dual-images img { height: 48px; }
    .dual-title { font-size: 11px; }
    .bt-tabs { gap: 4px; }
    .bt-tab { padding: 6px 10px; font-size: 11px; }
}

/* ============================================================
   NAV SEARCH BAR
   ============================================================ */
.nav-search {
    display: flex;
    align-items: center;
    gap: 0;
    margin-left: auto;
}
.nav-search-input {
    padding: 6px 12px;
    border: 1.5px solid #d0d7e2;
    border-right: none;
    border-radius: 20px 0 0 20px;
    font-size: 13px;
    width: 160px;
    background: #f8fafc;
    color: #1e293b;
    transition: border-color .15s, width .2s ease;
}
.nav-search-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #fff;
    width: 200px;
}
.nav-search-btn {
    padding: 6px 12px;
    background: #3b82f6;
    color: #fff;
    border: 1.5px solid #3b82f6;
    border-radius: 0 20px 20px 0;
    font-size: 16px;
    cursor: pointer;
    line-height: 1;
    transition: background .15s;
}
.nav-search-btn:hover { background: #2563eb; border-color: #2563eb; }

.nav-search-wrap { position: relative; }
.nav-ac-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #d0d7e2;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    list-style: none;
    margin: 0;
    padding: 4px 0;
    z-index: 9999;
    min-width: 220px;
}
.nav-ac-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    font-size: 13px;
    color: #1e293b;
    cursor: pointer;
    overflow: hidden;
}
.nav-ac-list li:hover,
.nav-ac-list li.ac-active {
    background: #eff6ff;
    color: #1d4ed8;
}
.nav-ac-list li em {
    font-style: normal;
    font-weight: 700;
    color: #1d4ed8;
}
.ac-thumb {
    width: 54px;
    height: 36px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
    background: #f1f5f9;
}
.ac-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.autocomplete-lifecycle,
.model-lifecycle-badge,
.compare-lifecycle,
.chip-model-lifecycle {
    display: inline-flex;
    align-items: center;
    width: max-content;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.autocomplete-lifecycle {
    flex-shrink: 0;
    padding: 2px 6px;
}
.model-lifecycle-badge {
    padding: 3px 8px;
}
.compare-lifecycle {
    margin: 5px auto 0;
    padding: 2px 6px;
}
.chip-model-lifecycle {
    margin-left: 4px;
    padding: 1px 5px;
}
.autocomplete-lifecycle--upcoming,
.model-lifecycle-badge--upcoming,
.compare-lifecycle--upcoming,
.chip-model-lifecycle--upcoming {
    background: #fff7ed;
    color: #9a3412;
}
.autocomplete-lifecycle--discontinued,
.model-lifecycle-badge--discontinued,
.compare-lifecycle--discontinued,
.chip-model-lifecycle--discontinued {
    background: #fef2f2;
    color: #991b1b;
}
@media (max-width: 680px) { .ac-thumb { display: none; } }

/* ============================================================
   SEARCH PAGE
   ============================================================ */
.search-page { padding: 28px 24px 32px; }
.search-page-title { font-size: 22px; margin-bottom: 16px; }

.search-form-large {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    max-width: 560px;
}
.search-input-wrap { position: relative; flex: 1; }
.search-ac-list {
    position: absolute;
    top: calc(100% + 4px);
    left: 0; right: 0;
    background: #fff;
    border: 1.5px solid #d0d7e2;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
    list-style: none;
    margin: 0; padding: 4px 0;
    z-index: 9999;
}
.search-ac-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 14px;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    overflow: hidden;
}
.search-ac-list li:hover,
.search-ac-list li.ac-active { background: #eff6ff; color: #1d4ed8; }
.search-ac-list li em { font-style: normal; font-weight: 700; color: #1d4ed8; }
.search-input-large {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid #d0d7e2;
    border-radius: 8px;
    font-size: 15px;
    background: #f8fafc;
    color: #1e293b;
}
.search-input-large:focus { outline: none; border-color: #3b82f6; background: #fff; }

.search-count { font-size: 13px; color: #64748b; margin-bottom: 16px; }

.search-empty { padding: 24px 0; color: #475569; }
.search-empty p { margin-bottom: 6px; }

/* ============================================================
   RESPONSIVE — nav search
   ============================================================ */
@media (max-width: 900px) {
    .nav-search-input { width: 130px; }
    .nav-search-input:focus { width: 160px; }
}

@media (max-width: 768px) {
    .nav-search { display: none; }
}

/* ============================================================
   SEARCH PAGE — filter layout
   ============================================================ */

.search-page-header { padding: 20px 24px 16px; }
.search-page-title  { font-size: 20px; margin-bottom: 14px; }

.search-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 16px;
    align-items: start;
}

/* FILTER SIDEBAR */
.filter-sidebar { padding: 18px 16px; position: sticky; top: 12px; }
.filter-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    font-size: 14px;
}
.filter-clear-all { font-size: 12px; color: #ef4444; text-decoration: none; }
.filter-clear-all:hover { text-decoration: underline; }

.filter-group { margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid #f1f5f9; }
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.filter-group-label { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }

.filter-options { display: flex; flex-direction: column; gap: 4px; }
.filter-option {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 8px;
    border-radius: 7px;
    font-size: 13px;
    color: #334155;
    cursor: pointer;
    transition: background .12s;
}
.filter-option input[type="radio"] { display: none; }
.filter-option:hover { background: #f1f5f9; }
.filter-option.active { background: #dbeafe; color: #1d4ed8; font-weight: 600; }
.filter-clear-one { color: #94a3b8; font-size: 12px; }

.filter-select {
    width: 100%;
    padding: 8px 10px;
    border: 1.5px solid #d0d7e2;
    border-radius: 8px;
    font-size: 13px;
    background: #fff;
    color: #1e293b;
    cursor: pointer;
}
.filter-select:focus { outline: none; border-color: #3b82f6; }

.price-range-row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.price-input {
    flex: 1;
    padding: 7px 8px;
    border: 1.5px solid #d0d7e2;
    border-radius: 7px;
    font-size: 13px;
    background: #fff;
    width: 0;
    min-width: 0;
}
.price-input:focus { outline: none; border-color: #3b82f6; }
.price-sep { color: #94a3b8; font-size: 13px; }
.filter-apply-btn { width: 100%; justify-content: center; }

/* ACTIVE FILTER CHIPS */
.active-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.chip-active {
    display: inline-flex;
    align-items: center;
    background: #dbeafe;
    color: #1d4ed8;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background .12s;
}
.chip-active:hover { background: #bfdbfe; }

.search-results { min-width: 0; }
.search-count { font-size: 13px; color: #64748b; margin-bottom: 14px; }
.search-empty { padding: 20px 0; color: #475569; }
.filter-toggle-btn { display: none; }

/* ============================================================
   RESPONSIVE — search layout
   ============================================================ */
@media (max-width: 900px) {
    .search-layout { grid-template-columns: 190px 1fr; }
}

@media (max-width: 680px) {
    .search-layout { grid-template-columns: 1fr; }
    .filter-sidebar {
        position: static;
        /* Collapsible on mobile */
    }
    .filter-sidebar-body { display: none; }
    .filter-sidebar.open .filter-sidebar-body { display: block; }
    .filter-toggle-btn {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        background: none;
        border: none;
        font-size: 14px;
        font-weight: 600;
        cursor: pointer;
        padding: 0;
        color: #1e293b;
    }
}

/* ============================================================
   BUDGET TILES
   ============================================================ */
.budget-tiles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}
.budget-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 18px 12px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #1e293b;
    text-align: center;
    transition: all .18s ease;
}
.budget-tile:hover {
    background: #eff6ff;
    border-color: #3b82f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59,130,246,.12);
}
.budget-icon { font-size: 26px; line-height: 1; margin-bottom: 4px; }
.budget-tile strong { font-size: 14px; font-weight: 700; color: #1e293b; }
.budget-tile span { font-size: 12px; color: #64748b; }

.budget-section { margin-top: 20px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.budget-section-title { font-size: 15px; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; }

/* EV SECTION */
.ev-section { background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%); border-color: #bbf7d0; }
.ev-section h2 { color: #065f46; }
.ev-intro { color: #047857; font-size: 14px; margin-bottom: 16px; }

/* SUBSECTION LABEL */
.subsection-label { font-size: 15px; font-weight: 700; margin: 0 0 12px; color: #334155; }

/* ============================================================
   RESPONSIVE — budget tiles
   ============================================================ */
@media (max-width: 900px) {
    .budget-tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .budget-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .budget-tile { padding: 14px 8px; }
    .budget-icon { font-size: 22px; }
    .budget-tile strong { font-size: 13px; }
    .budget-tile span { font-size: 11px; }
}

/* ============================================================
   RESPONSIVE — comparison detail new elements
   ============================================================ */
@media (max-width: 680px) {
    .category-grid    { grid-template-columns: 1fr; }
    .verdict-winner-bar { font-size: 13px; }
    .score-gap-num    { font-size: 28px; }
    .buy-grid         { grid-template-columns: 1fr; }
    .pros-cons-grid   { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   RESPONSIVE — cmp-vs-card and rich-cmp-card
   ============================================================ */
@media (max-width: 900px) {
    .cmp-vs-grid  { grid-template-columns: repeat(2, 1fr); }
    .rich-cmp-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 680px) {
    .cmp-vs-grid  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .rich-cmp-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cmp-vs-car img { height: 52px; }
    .rich-cmp-half img { height: 48px; }
    .cmp-vs-price { font-size: 13px; }
}

@media (max-width: 420px) {
    .cmp-vs-grid  { grid-template-columns: 1fr; }
    .rich-cmp-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   VARIANTS SECTION — fuel tabs + compare
   ============================================================ */

.variants-section .section-sub {
    font-size: 13px;
    color: #64748b;
    margin: -8px 0 16px;
}

/* Fuel tabs */
.fuel-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.fuel-tab {
    padding: 7px 18px;
    border-radius: 20px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    color: #475569;
    transition: all .15s ease;
}

.fuel-tab:hover {
    border-color: #3b82f6;
    color: #2563eb;
    background: #eff6ff;
}

.fuel-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #fff;
}

/* Fuel panels */
.fuel-panel { display: none; }
.fuel-panel.active { display: block; }

/* Variants table */
.variants-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.variants-table th {
    text-align: left;
    padding: 10px 12px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 2px solid #e2e8f0;
}

.variants-table td {
    padding: 11px 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    vertical-align: middle;
}

.variant-row:last-child td { border-bottom: none; }

.variant-row:hover { background: #f8fafc; }

.variant-row--active { background: #eff6ff !important; }

/* Historical derivatives stay available without competing visually with the
   current range. They remain fully readable and selectable for comparison. */
.variant-row--discontinued:not(.variant-row--active) {
    background: #fffbfb;
}

.variants-table .variant-row--discontinued td {
    padding: 7px 10px;
    color: #64748b;
    font-size: 12.5px;
}

.variants-table .variant-row--discontinued td:first-child {
    border-left: 3px solid #fecaca;
}

.variant-row--discontinued td strong {
    color: #334155;
    font-size: 13px;
}

.variant-row--discontinued .variant-status {
    display: inline-flex;
    margin-top: 3px;
    padding: 1px 6px;
    font-size: 9px;
}

.variant-row--discontinued .trim-badge,
.variant-row--discontinued .fuel-badge {
    padding: 1px 7px;
    font-size: 9.5px;
}

.variant-row--discontinued .btn-specs {
    padding: 3px 9px;
    font-size: 11px;
}

.col-cmp { width: 40px; text-align: center; }
.col-cmp input[type="checkbox"] { width: 16px; height: 16px; cursor: pointer; accent-color: #2563eb; }

.variant-name-cell strong { font-weight: 600; }

.price-cell { font-weight: 700; color: #0f172a; }
.poa-price-label {
    display: inline-block;
    max-width: 16rem;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}
.poa-price-label--upcoming { color: #1d4ed8; }
.poa-price-label--discontinued { color: #9a3412; }
.historical-price-note {
    display: block;
    margin-top: 2px;
    color: #9a3412;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.upcoming-price-note {
    display: block;
    margin-top: 2px;
    color: #1d4ed8;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

/* Trim badges */
.trim-badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.trim-base    { background: #f1f5f9; color: #475569; }
.trim-mid     { background: #dbeafe; color: #1d4ed8; }
.trim-top     { background: #dcfce7; color: #15803d; }
.trim-flagship{ background: #fef3c7; color: #b45309; }

.variant-status {
    display: block;
    width: max-content;
    margin-top: 4px;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 750;
    line-height: 1.35;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.variant-status--upcoming {
    background: #fff7ed;
    color: #9a3412;
}
.variant-status--discontinued {
    background: #fef2f2;
    color: #991b1b;
}

/* Fuel type badge in All-panel table */
.variants-table .fuel-badge {
    position: static;
    bottom: auto;
    left: auto;
    display: inline-block;
    padding: 2px 9px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
    line-height: 1.4;
    white-space: nowrap;
}
.variants-table .fuel-petrol   { background: #fef9c3; color: #854d0e; }
.variants-table .fuel-diesel   { background: #e0f2fe; color: #075985; }
.variants-table .fuel-hybrid   { background: #dcfce7; color: #166534; }
.variants-table .fuel-electric { background: #ede9fe; color: #5b21b6; }

/* Fuel tab count bubble */
.fuel-tab-count {
    display: inline-block;
    background: rgba(0,0,0,.12);
    color: inherit;
    font-size: 10px;
    font-weight: 700;
    border-radius: 8px;
    padding: 0 5px;
    line-height: 16px;
    vertical-align: middle;
    margin-left: 2px;
}
.fuel-tab.active .fuel-tab-count { background: rgba(255,255,255,.25); }

/* Hidden rows (collapsed) */
.variant-row.row-hidden { display: none; }

/* Expand button */
.variants-expand-wrap {
    text-align: center;
    padding: 10px 0 4px;
    border-top: 1px dashed #e2e8f0;
    margin-top: 2px;
}
.variants-expand-btn {
    background: none;
    border: 1.5px solid #cbd5e1;
    border-radius: 20px;
    padding: 6px 20px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    transition: all .15s ease;
}
.variants-expand-btn:hover {
    border-color: #3b82f6;
    color: #2563eb;
    background: #eff6ff;
}

/* Max-3 limit message */
.variant-limit-msg {
    display: none;           /* hidden by default; JS sets display:flex */
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
    background: #fef3c7;
    border: 1.5px solid #fcd34d;
    border-radius: 10px;
    font-size: 13px;
    color: #78350f;
}
.variant-limit-msg.vcmp-msg--show { display: flex; }
.vcmp-info-icon { flex-shrink: 0; margin-top: 2px; color: #d97706; }
.vcmp-limit-text { flex: 1; line-height: 1.5; }
.vcmp-limit-text strong { display: block; margin-bottom: 2px; }
.variant-limit-close {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #92400e;
    padding: 0 2px;
    line-height: 1;
    flex-shrink: 0;
}
.variant-limit-close:hover { color: #ef4444; }

/* Local variant compare bar */
.vcmp-bar {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    padding: 14px 18px;
    background: #eff6ff;
    border: 2px solid #2563eb;
    border-radius: 12px;
    flex-wrap: wrap;
}
.vcmp-bar--show {
    display: flex;
}
.vcmp-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}
.vcmp-bar-label {
    font-size: 13px;
    font-weight: 700;
    color: #1e40af;
    white-space: nowrap;
}
.vcmp-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.vcmp-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #dbeafe;
    border: 1.5px solid #93c5fd;
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: #1e40af;
    max-width: 220px;
}
.vcmp-chip-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vcmp-chip-price {
    font-size: 11px;
    color: #3b82f6;
    white-space: nowrap;
}
.vcmp-chip-remove {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 13px;
    color: #60a5fa;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
}
.vcmp-chip-remove:hover { color: #ef4444; }
.vcmp-go-btn { padding: 10px 20px; white-space: nowrap; flex-shrink: 0; }

/* Column widths for variants table */
.col-cmp   { width: 44px; text-align: center; }
.col-trim  { width: 90px; }
.col-fuel-h{ width: 80px; }
.col-trans { width: 120px; }
.col-price { font-weight: 700; color: #0f172a; }

/* View Specs button */
.btn-specs {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    border: 1.5px solid #3b82f6;
    color: #2563eb;
    background: transparent;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    line-height: 1.4;
    transition: all .15s ease;
}
.btn-specs:hover { background: #2563eb; color: #fff; }
.btn-specs--active { background: #2563eb; color: #fff; }

/* OEM link in hero */
.oem-link {
    font-size: 13px;
    padding: 8px 14px;
}

/* Compare bar */
.cmp-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 16px;
    background: #eff6ff;
    border: 1.5px solid #bfdbfe;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #1e40af;
    flex-wrap: wrap;
}

.cmp-bar .btn-primary { padding: 7px 16px; font-size: 13px; }
.cmp-bar .btn-outline { padding: 7px 16px; font-size: 13px; }
.cmp-bar .btn-primary:disabled { opacity: .5; cursor: not-allowed; }

/* Inline compare table */
.variant-inline-cmp {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
}

.variant-inline-cmp h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1e293b;
}

.inline-cmp-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.inline-cmp-table th {
    padding: 8px 12px;
    background: #e2e8f0;
    font-weight: 700;
    text-align: left;
    border-bottom: 2px solid #cbd5e1;
}

.inline-cmp-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.inline-cmp-label {
    font-weight: 600;
    color: #475569;
    width: 130px;
}

/* ============================================================
   RESPONSIVE — variants section
   ============================================================ */
@media (max-width: 780px) {
    /* Show Fuel column on all sizes */
    .col-trans { width: 100px; }
}

@media (max-width: 620px) {
    .col-trim, .col-trans { display: none; }
    .variants-table th, .variants-table td { padding: 9px 8px; }
    .fuel-tab { padding: 6px 12px; font-size: 12px; }
    .vcmp-bar--show { flex-direction: column; align-items: flex-start; }
    .vcmp-go-btn { width: 100%; justify-content: center; }
}

@media (max-width: 400px) {
    .vcmp-chip { max-width: 150px; }
    .fuel-tab-count { display: none; }
}

/* ============================================================
   GLOBAL COMPARE TRAY
   ============================================================ */
.gcmp-tray {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: #0f172a;
    border-top: 3px solid #2563eb;
    padding: 14px 20px;
    box-shadow: 0 -4px 24px rgba(0,0,0,.35);
}

.gcmp-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.gcmp-slots {
    display: flex;
    gap: 12px;
    flex: 1;
    flex-wrap: wrap;
}

.gcmp-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1e293b;
    border: 1.5px solid #334155;
    border-radius: 10px;
    padding: 8px 12px;
    min-width: 200px;
    flex: 1;
}

.gcmp-card-empty {
    border-style: dashed;
    border-color: #475569;
    justify-content: center;
    flex-direction: column;
    min-height: 64px;
    cursor: default;
    opacity: .6;
}

.gcmp-card-optional { opacity: .4; }

.gcmp-empty-icon { font-size: 20px; color: #94a3b8; }
.gcmp-empty-txt { font-size: 12px; color: #64748b; }

.gcmp-card-img {
    width: 64px;
    height: 36px;
    object-fit: contain;
    border-radius: 4px;
    background: #0f172a;
    flex-shrink: 0;
}

.gcmp-card-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.gcmp-card-model {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gcmp-card-variant {
    font-size: 11px;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gcmp-card-price {
    font-size: 12px;
    font-weight: 700;
    color: #38bdf8;
}

.gcmp-card-remove {
    position: absolute;
    top: 4px;
    right: 6px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.gcmp-card-remove:hover { color: #ef4444; }

.gcmp-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.gcmp-go {
    padding: 10px 22px;
    font-size: 14px;
    white-space: nowrap;
}

.gcmp-go:disabled { opacity: .4; cursor: not-allowed; }

.gcmp-clear {
    padding: 10px 14px;
    font-size: 13px;
    border-color: #475569;
    color: #94a3b8;
}

.gcmp-clear:hover { border-color: #ef4444; color: #ef4444; }

/* OEM source line */
.oem-source-line {
    font-size: 12px;
    color: #94a3b8;
    margin: 8px 0 16px;
    padding: 0 4px;
}
.oem-source-label { color: #64748b; margin-right: 4px; }
.oem-source-link { color: #94a3b8; text-decoration: underline dotted; }
.oem-source-link:hover { color: #3b82f6; }

/* Body padding so content isn't hidden behind tray */
body:has(#globalCmpTray:not([hidden])) .page-container {
    padding-bottom: 110px;
}

/* ── Global tray label ── */
.gcmp-tray-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    align-self: center;
    margin-right: 4px;
    white-space: nowrap;
}

/* Clickable empty slots */
.gcmp-card-link {
    text-decoration: none;
    cursor: pointer;
}
.gcmp-card-link:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}
.gcmp-card-link:hover .gcmp-empty-icon,
.gcmp-card-link:hover .gcmp-empty-txt {
    color: #2563eb;
}

/* Toast notification */
.gcmp-toast {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #1e293b;
    color: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    white-space: nowrap;
    max-width: 90vw;
    text-align: center;
}
.gcmp-toast--show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

/* ─── Responsive compare tray ─── */
@media (max-width: 680px) {
    .gcmp-card { min-width: 140px; }
    .gcmp-card-img { width: 48px; height: 27px; }
    .gcmp-tray { padding: 10px 12px; }
    .gcmp-go { padding: 8px 14px; font-size: 13px; }
}

@media (max-width: 480px) {
    .gcmp-slots { flex-direction: column; }
    .gcmp-card { min-width: unset; }
    .gcmp-card-optional { display: none; }
}

/* ============================================================
   BRAND MODELS PAGE
   ============================================================ */

/* Header */
.brand-page-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}
.brand-logo-img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid #e5e8ef;
    background: #fff;
    padding: 8px;
    flex-shrink: 0;
}
.brand-header-text {
    flex: 1;
}
.brand-page-title {
    font-size: 26px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 4px;
    line-height: 1.2;
}
.brand-page-sub {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
}

/* Price summary strip */
.brand-price-strip {
    display: flex;
    align-items: center;
    gap: 0;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 4px;
}
.bps-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 100px;
    text-align: center;
}
.bps-label {
    font-size: 11px;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 600;
}
.bps-value {
    font-size: 16px;
    font-weight: 800;
    color: #0369a1;
}
.bps-divider {
    width: 1px;
    height: 36px;
    background: #bae6fd;
    margin: 0 8px;
    flex-shrink: 0;
}

/* Status summary strip */
.brand-status-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 14px;
}
.bss-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}
.bss-label {
    font-size: 11px;
    color: #9a3412;
    text-transform: uppercase;
    letter-spacing: .05em;
    font-weight: 700;
}
.bss-value {
    font-size: 20px;
    font-weight: 900;
    color: #9a3412;
}
.brand-order-note {
    margin: 0 0 24px;
    font-size: 13px;
    color: #6b7280;
}
.brand-pricing-disclosure {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: -12px 0 18px;
    padding: 14px 16px;
    border: 1px solid #c7d2fe;
    border-left: 4px solid #4f46e5;
    border-radius: 10px;
    background: #f5f7ff;
    color: #312e81;
    font-size: 13px;
    line-height: 1.55;
}
.brand-pricing-disclosure .bpd-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}
.brand-pricing-disclosure strong {
    display: block;
    margin-bottom: 3px;
    color: #1e1b4b;
    font-size: 14px;
}
.brand-pricing-disclosure p {
    margin: 0;
}
.brand-pricing-disclosure p + p {
    margin-top: 5px;
}
.brand-pricing-disclosure a {
    color: #3730a3;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Status sections */
.brand-status-section {
    margin-bottom: 28px;
}
.brand-status-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.brand-status-heading h2 {
    margin: 0;
    font-size: 20px;
}
.brand-status-count {
    min-width: 42px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: #e0f2fe;
    color: #075985;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 800;
}

/* Grid */
.brand-models-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Card */
.bm-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e8ef;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease;
}
.bm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,.09);
    border-color: #c7d2fe;
}
.bm-card--upcoming {
    border-color: #fdba74;
}
.bm-card--discontinued {
    border-color: #fca5a5;
}

/* Image */
.bm-img-wrap {
    position: relative;
    background: #f8fafc;
    overflow: hidden;
}
.bm-img-wrap img {
    width: 100%;
    height: 185px;
    object-fit: contain;
    display: block;
    padding: 12px 16px;
}
.bm-body-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #1e40af;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: capitalize;
    letter-spacing: .02em;
}

/* Discontinued badge on brand card */
.bm-discontinued-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #7f1d1d;
    color: #fecaca;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.bm-upcoming-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #92400e;
    color: #ffedd5;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* Discontinued banner on model detail page */
.discontinued-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-left: 4px solid #dc2626;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 0 0 16px;
    color: #7f1d1d;
    font-size: 14px;
    line-height: 1.55;
}
.discontinued-banner svg { flex-shrink: 0; margin-top: 2px; color: #dc2626; }
.discontinued-banner a { color: #1e40af; text-decoration: underline; }
.model-tenure {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    gap: 2px 8px;
    width: max-content;
    max-width: 100%;
    margin-top: 8px;
    padding: 7px 9px;
    border-radius: 6px;
    background: #fee2e2;
    color: #7f1d1d;
}
.model-tenure > span {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}
.model-tenure > strong {
    font-size: 15px;
}
.model-tenure > em {
    grid-column: 1 / -1;
    width: max-content;
    max-width: 100%;
    margin-top: 3px;
    padding: 2px 7px;
    border-radius: 999px;
    background: #b91c1c;
    color: #fff;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.upcoming-banner {
    margin: 0 0 16px;
    padding: 12px 16px;
    border: 1px solid #93c5fd;
    border-left: 4px solid #2563eb;
    border-radius: 6px;
    background: #eff6ff;
    color: #1e3a8a;
}

/* Body */
.bm-body {
    padding: 14px 16px 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bm-name {
    font-size: 17px;
    font-weight: 800;
    color: #111827;
}

/* Main price */
.bm-price-main {
    display: flex;
    align-items: baseline;
    gap: 6px;
}
.bm-price-label {
    font-size: 11px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
}
.bm-price-value {
    font-size: 18px;
    font-weight: 800;
    color: #111827;
}
.bm-price-na {
    font-size: 13px;
    color: #9ca3af;
    font-style: italic;
}
.bm-price-guide {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
    padding: 9px 10px;
    border: 1px solid #ddd6fe;
    border-radius: 9px;
    background: #faf9ff;
}
.bm-price-guide-label {
    color: #5b21b6;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .045em;
    line-height: 1.35;
    text-transform: uppercase;
}
.bm-price-guide-amount {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px;
    color: #111827;
    line-height: 1.25;
}
.bm-price-guide-amount strong {
    font-size: 16px;
    font-weight: 900;
}
.bm-price-guide-qualifier {
    color: #4b5563;
    font-size: 11px;
    font-weight: 700;
}
.bm-price-guide-source,
.bm-price-guide-official {
    color: #6b7280;
    font-size: 10px;
    line-height: 1.35;
}
.bm-price-guide-official {
    color: #374151;
    font-weight: 700;
}
.bm-price-guide-poa {
    color: #111827;
    font-size: 14px;
    line-height: 1.35;
}

/* Source-dated price context: never styled as an OEM offer. */
.hero-price-guidance {
    margin-top: 14px;
    padding: 14px 16px;
    border: 1px solid #ddd6fe;
    border-left: 4px solid #6d28d9;
    border-radius: 10px;
    background: linear-gradient(135deg, #faf9ff, #f8fafc);
    color: #1f2937;
}
.hpg-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    gap: 12px;
}
.hpg-evidence,
.hpg-official {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.hpg-official {
    padding-left: 12px;
    border-left: 1px solid #ddd6fe;
}
.hpg-label {
    color: #6b7280;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1.35;
    text-transform: uppercase;
}
.hpg-value,
.hpg-official strong {
    color: #111827;
    font-size: 16px;
    font-weight: 900;
    line-height: 1.3;
}
.hpg-value--poa {
    font-size: 14px;
}
.hero-price-guidance > p {
    margin: 10px 0 0;
    color: #4b5563;
    font-size: 12px;
    line-height: 1.5;
}
.hpg-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 8px;
}
.hpg-sources a {
    color: #5b21b6;
    font-size: 11px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.variant-price-context {
    display: block;
    margin-top: 4px;
    color: #5b21b6;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.35;
}

/* ── Single fuel type: neutral chips ── */
.bm-single-fuel {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 2px;
}
.bm-fd-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid transparent;
}
/* Subtle, unambiguous — not bold highlights */
.bm-fd-petrol  { background: #fefce8; color: #854d0e; border-color: #fde68a; }
.bm-fd-diesel  { background: #f0f9ff; color: #075985; border-color: #bae6fd; }
.bm-fd-hybrid  { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }
.bm-fd-electric{ background: #f5f3ff; color: #5b21b6; border-color: #ddd6fe; }
.bm-fd-neutral { background: #f9fafb; color: #374151; border-color: #e5e7eb; }

/* ── Multi fuel type: neutral dot-row breakdown ── */
.bm-fuel-breakdown {
    border-top: 1px solid #f3f4f6;
    padding-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bm-fbd-header {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #9ca3af;
    margin-bottom: 2px;
}
.bm-fbd-row {
    display: flex;
    align-items: center;
    gap: 7px;
}
/* Small colored dot — identifies fuel type at a glance without overpowering */
.bm-fd-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.bm-fdd-petrol  { background: #f59e0b; }
.bm-fdd-diesel  { background: #3b82f6; }
.bm-fdd-hybrid  { background: #22c55e; }
.bm-fdd-electric{ background: #8b5cf6; }
.bm-fbd-name {
    font-size: 12px;
    font-weight: 500;
    color: #4b5563;
    width: 50px;
    flex-shrink: 0;
}
.bm-fbd-price {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    flex: 1;
}
.bm-fbd-count {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 500;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 20px;
}

/* Meta row */
.bm-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding-top: 4px;
    border-top: 1px solid #f3f4f6;
}
.bm-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #4b5563;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 3px 8px;
    border-radius: 20px;
    font-weight: 500;
}
.bm-colors-chip { color: #7c3aed; border-color: #ddd6fe; background: #faf5ff; }

/* CTA strip */
.bm-cta {
    padding: 10px 16px;
    background: #f0f9ff;
    font-size: 13px;
    font-weight: 700;
    color: #1d4ed8;
    text-align: right;
    border-top: 1px solid #e5e8ef;
}
.bm-card:hover .bm-cta { background: #dbeafe; }

/* Compare chips */
.compare-links-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.compare-chip-link {
    display: inline-block;
    padding: 6px 12px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 20px;
    font-size: 13px;
    color: #1d4ed8;
    text-decoration: none;
    font-weight: 500;
    transition: background .15s ease;
}
.compare-chip-link:hover { background: #dbeafe; }

/* Responsive */
@media (max-width: 640px) {
    .brand-status-strip { grid-template-columns: 1fr; }
    .brand-status-heading { align-items: flex-start; flex-direction: column; }
    .brand-models-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .brand-page-title { font-size: 20px; }
    .bm-img-wrap img { height: 140px; }
    .bm-price-value { font-size: 15px; }
    .bps-divider { display: none; }
    .hpg-grid { grid-template-columns: 1fr; }
    .hpg-official {
        padding: 10px 0 0;
        border-top: 1px solid #ddd6fe;
        border-left: 0;
    }
    .brand-pricing-disclosure { margin-top: -14px; }
}
@media (max-width: 520px) {
    .brand-models-grid { grid-template-columns: 1fr; }
    .bm-img-wrap img { height: 180px; }
}
@media (max-width: 400px) {
    .brand-models-grid { grid-template-columns: 1fr; }
    .bm-img-wrap img { height: 170px; }
}

/* ============================================================
   HOME STATS STRIP
   ============================================================ */

.home-stats-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 16px 24px;
    margin-top: 0;
    border-top: none;
    border-radius: 0 0 12px 12px;
}
.stat-item { text-align: center; }
.stat-num { font-size: 24px; font-weight: 800; color: #1d4ed8; }
.stat-label { font-size: 12px; color: #6b7280; font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: #e5e7eb; }
@media (max-width: 480px) {
    .home-stats-strip { padding: 12px 16px; }
    .stat-num { font-size: 18px; }
    .stat-divider { display: none; }
    .home-stats-strip { flex-wrap: wrap; gap: 16px; }
}

/* ============================================================
   VALUE BADGE (Best Value cars)
   ============================================================ */

.value-badge {
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: #16a34a;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ============================================================
   SPEC HIGHLIGHT (User Mileage)
   ============================================================ */

.spec-highlight-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px 14px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    margin-top: 12px;
}
.spec-h-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #15803d;
}
.spec-h-value {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
.spec-h-sub {
    font-size: 12px;
    color: #64748b;
}

/* ============================================================
   AFFORDABLE OPTIONS GRID
   ============================================================ */

.affordable-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.affordable-col h3 { margin: 0 0 12px; }
.affordable-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.affordable-row:last-child { border-bottom: none; }
.affordable-row:hover { background: #f8fafc; border-radius: 8px; padding-left: 6px; }
.affordable-row img { width: 80px; height: 45px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.affordable-info { flex: 1; min-width: 0; }
.affordable-name { font-size: 13px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.affordable-price { font-size: 12px; color: #0b5ed7; font-weight: 500; margin-top: 2px; }

@media (max-width: 640px) {
    .affordable-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   CAR PRICES GUIDE PAGE (/south-africa/car-prices/)
   ============================================================ */

/* Hero */
.cpg-hero { padding: 28px 28px 24px; }
.cpg-h1 { font-size: 26px; font-weight: 700; margin-bottom: 10px; color: #0f172a; }
.cpg-subtitle { font-size: 15px; color: #475569; margin-bottom: 20px; line-height: 1.6; max-width: 700px; }
.cpg-stats-bar {
    display: flex; flex-wrap: wrap; gap: 0;
    background: #f1f5f9; border-radius: 10px;
    overflow: hidden; margin-bottom: 18px;
}
.cpg-stat {
    flex: 1; min-width: 120px;
    padding: 14px 20px;
    border-right: 1px solid #e2e8f0;
    text-align: center;
}
.cpg-stat:last-child { border-right: none; }
.cpg-stat-value { display: block; font-size: 18px; font-weight: 700; color: #1e40af; }
.cpg-stat-label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #64748b; margin-top: 2px; }
.cpg-cta-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Section headings */
.cpg-section { padding: 24px 28px; }
.cpg-h2 { font-size: 20px; font-weight: 700; margin-bottom: 18px; color: #0f172a; }

/* Budget grid */
.cpg-budget-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cpg-budget-card {
    background: #f8fafc; border: 1.5px solid #e2e8f0;
    border-radius: 10px; padding: 16px;
}
.cpg-budget-label { font-size: 13px; font-weight: 600; color: #1e40af; margin-bottom: 4px; }
.cpg-budget-count { font-size: 12px; color: #64748b; margin-bottom: 12px; }
.cpg-model-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.cpg-model-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cpg-model-list a { font-size: 13px; color: #1e293b; text-decoration: none; }
.cpg-model-list a:hover { color: #1d4ed8; text-decoration: underline; }
.cpg-price-hint { font-size: 12px; color: #64748b; white-space: nowrap; }
.cpg-see-all { display: inline-block; margin-top: 10px; font-size: 12px; color: #1d4ed8; text-decoration: none; font-weight: 600; }

/* Body type grid */
.cpg-bodytype-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.cpg-bt-card {
    display: flex; flex-direction: column; align-items: center;
    gap: 4px; padding: 16px 20px;
    background: #f8fafc; border: 1.5px solid #e2e8f0;
    border-radius: 10px; text-decoration: none;
    transition: border-color .15s, background .15s;
    min-width: 100px;
}
.cpg-bt-card:hover { background: #eff6ff; border-color: #93c5fd; }
.cpg-bt-icon { font-size: 24px; }
.cpg-bt-name { font-size: 13px; font-weight: 600; color: #1e293b; }
.cpg-bt-count { font-size: 11px; color: #64748b; }

/* Brands grid */
.cpg-brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cpg-brand-card {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px;
    background: #f8fafc; border: 1.5px solid #e2e8f0;
    border-radius: 10px; text-decoration: none;
    transition: border-color .15s, background .15s;
}
.cpg-brand-card:hover { background: #eff6ff; border-color: #93c5fd; }
.cpg-brand-logo { width: 36px; height: 36px; object-fit: contain; }
.cpg-brand-name { font-size: 14px; font-weight: 600; color: #1e293b; }
.cpg-brand-meta { font-size: 12px; color: #64748b; margin-top: 2px; }

/* Full table */
.cpg-table-wrap { overflow-x: auto; }
.cpg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cpg-table th {
    text-align: left; padding: 10px 14px;
    background: #f1f5f9; border-bottom: 2px solid #e2e8f0;
    font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #475569;
}
.cpg-table td { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; color: #1e293b; }
.cpg-table tr:hover td { background: #f8fafc; }
.cpg-table-link { color: #1e293b; text-decoration: none; font-weight: 500; }
.cpg-table-link:hover { color: #1d4ed8; text-decoration: underline; }
.cpg-view-link { font-size: 13px; color: #1d4ed8; text-decoration: none; font-weight: 600; white-space: nowrap; }

/* FAQ */
.cpg-faq { display: flex; flex-direction: column; gap: 10px; }
.cpg-faq-item {
    border: 1.5px solid #e2e8f0; border-radius: 8px;
    overflow: hidden;
}
.cpg-faq-q {
    padding: 14px 18px; font-size: 15px; font-weight: 600;
    color: #1e293b; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.cpg-faq-q::-webkit-details-marker { display: none; }
.cpg-faq-q::after { content: '+'; font-size: 18px; color: #94a3b8; }
details[open] .cpg-faq-q::after { content: '−'; }
.cpg-faq-a { padding: 0 18px 14px; font-size: 14px; color: #475569; line-height: 1.7; margin: 0; }

/* Explore grid */
.cpg-explore-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.cpg-explore-card {
    padding: 14px 16px; background: #f8fafc;
    border: 1.5px solid #e2e8f0; border-radius: 8px;
    text-decoration: none; font-size: 14px; font-weight: 500; color: #1e293b;
    transition: border-color .15s, background .15s;
}
.cpg-explore-card:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }

/* Mobile adjustments */
@media (max-width: 680px) {
    .cpg-h1 { font-size: 20px; }
    .cpg-section, .cpg-hero { padding: 18px 16px; }
    .cpg-stat { padding: 10px 12px; min-width: 80px; }
    .cpg-stat-value { font-size: 15px; }
    .cpg-budget-grid { grid-template-columns: 1fr; }
    .cpg-table th:nth-child(3), .cpg-table td:nth-child(3) { display: none; }
}

/* ============================================================
   GUIDE PAGES (/guides/...)
   ============================================================ */
.guide-hero { padding: 28px 28px 20px; }
.guide-hero-badge {
    display: inline-block; font-size: 11px; font-weight: 600;
    text-transform: uppercase; letter-spacing: .08em;
    color: #1d4ed8; background: #eff6ff; border-radius: 20px;
    padding: 3px 12px; margin-bottom: 12px;
}
.guide-h1 { font-size: 26px; font-weight: 800; color: #0f172a; margin-bottom: 10px; line-height: 1.3; }
.guide-subtitle { font-size: 16px; color: #475569; margin-bottom: 18px; line-height: 1.6; }
.guide-toc {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    font-size: 13px; color: #64748b; margin-top: 4px;
}
.guide-toc a { color: #1d4ed8; text-decoration: none; }
.guide-toc a:hover { text-decoration: underline; }

.guide-section { padding: 24px 28px; scroll-margin-top: 70px; }
.guide-h2 { font-size: 21px; font-weight: 700; color: #0f172a; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* Type chips */
.guide-type-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.guide-chip { font-size: 13px; font-weight: 600; padding: 5px 14px; border-radius: 20px; }
.guide-chip-blue   { background: #dbeafe; color: #1e40af; }
.guide-chip-orange { background: #ffedd5; color: #c2410c; }
.guide-chip-green  { background: #dcfce7; color: #15803d; }
.guide-chip-red    { background: #fee2e2; color: #b91c1c; }

/* Figures */
.guide-figure { margin: 20px 0; }
.guide-img-full { width: 100%; height: auto; border-radius: 10px; display: block; }
figcaption { font-size: 12px; color: #64748b; margin-top: 6px; text-align: center; }

/* Pros/cons */
.guide-pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0; }
.guide-pros, .guide-cons {
    padding: 14px 16px; border-radius: 10px;
}
.guide-pros { background: #f0fdf4; border: 1.5px solid #bbf7d0; }
.guide-cons { background: #fef2f2; border: 1.5px solid #fecaca; }
.guide-pros-title { font-weight: 700; color: #15803d; margin-bottom: 8px; font-size: 14px; }
.guide-cons-title { font-weight: 700; color: #b91c1c; margin-bottom: 8px; font-size: 14px; }
.guide-pros ul, .guide-cons ul { margin: 0; padding-left: 18px; }
.guide-pros li, .guide-cons li { font-size: 13px; margin-bottom: 4px; color: #1e293b; }

/* Example + verdict boxes */
.guide-example-box {
    background: #f8fafc; border-left: 3px solid #3b82f6;
    padding: 12px 16px; border-radius: 0 8px 8px 0;
    font-size: 13px; color: #1e293b; margin: 14px 0;
}
.guide-highlight-box {
    background: #fffbeb; border: 1.5px solid #fde68a;
    padding: 14px 16px; border-radius: 8px;
    font-size: 14px; color: #92400e; margin: 14px 0; line-height: 1.6;
}
.guide-verdict { font-size: 14px; color: #1e293b; margin-top: 10px; }

/* Comparison table */
.guide-table-wrap { overflow-x: auto; margin-top: 16px; }
.guide-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.guide-table th {
    padding: 10px 14px; text-align: center; font-size: 12px;
    text-transform: uppercase; letter-spacing: .04em;
    background: #f1f5f9; border-bottom: 2px solid #e2e8f0;
}
.guide-table th:first-child { text-align: left; }
.guide-table td { padding: 9px 14px; border-bottom: 1px solid #f1f5f9; text-align: center; }
.guide-table td:first-child { text-align: left; font-weight: 500; color: #1e293b; }
.guide-table tr:hover td { background: #f8fafc; }
.t-blue  { color: #1e40af; }
.t-orange{ color: #c2410c; }
.t-green { color: #15803d; }
.t-red   { color: #b91c1c; }

/* Choose grid */
.guide-choose-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; margin-top: 6px; }
.guide-choose-card {
    padding: 18px 16px; background: #f8fafc;
    border: 1.5px solid #e2e8f0; border-radius: 10px; text-align: center;
}
.guide-choose-icon { font-size: 28px; margin-bottom: 8px; }
.guide-choose-title { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 6px; }
.guide-choose-rec { font-size: 13px; font-weight: 600; color: #1d4ed8; background: #dbeafe; border-radius: 20px; padding: 3px 10px; display: inline-block; margin-bottom: 8px; }
.guide-choose-desc { font-size: 12px; color: #64748b; line-height: 1.5; }

/* AI note */
.guide-ai-note { border-left: 3px solid #e2e8f0; background: #f8fafc; }

@media (max-width: 680px) {
    .guide-h1 { font-size: 20px; }
    .guide-section, .guide-hero { padding: 18px 16px; }
    .guide-pros-cons { grid-template-columns: 1fr; }
    .guide-choose-grid { grid-template-columns: 1fr 1fr; }
    .guide-toc { font-size: 12px; }
}

/* Guide — live model link pills */
.guide-model-links {
    display: flex; flex-wrap: wrap; align-items: center;
    gap: 8px; margin: 14px 0; padding: 14px 16px;
    background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 10px;
}
.guide-model-links-label {
    font-size: 12px; font-weight: 600; color: #64748b;
    text-transform: uppercase; letter-spacing: .04em;
    width: 100%; margin-bottom: 2px;
}
.guide-model-pill {
    display: inline-block; padding: 5px 13px;
    background: #fff; border: 1.5px solid #cbd5e1;
    border-radius: 20px; font-size: 13px; font-weight: 500;
    color: #1e293b; text-decoration: none;
    transition: border-color .15s, background .15s, color .15s;
}
.guide-model-pill:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; }
.guide-model-pill-blue { border-color: #93c5fd; color: #1e40af; background: #eff6ff; }
.guide-model-pill-red  { border-color: #fca5a5; color: #b91c1c; background: #fef2f2; }
.guide-model-pill-more { border-color: #a3e635; color: #3f6212; background: #f7fee7; font-weight: 700; }
.guide-model-pill-more:hover { background: #ecfccb; border-color: #84cc16; color: #365314; }

/* ═══════════════════════════════════════════════════════════
   SPEC HINT TOOLTIPS
   ═══════════════════════════════════════════════════════════ */
.spec-hint-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 15px; height: 15px; margin-left: 6px;
  background: #f8fafc; color: #64748b;
  border: 1px solid #cbd5e1; border-radius: 50%;
  cursor: pointer; vertical-align: middle;
  flex-shrink: 0;
  padding: 0; transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.spec-hint-btn:hover, .spec-hint-btn:focus {
  background: #eff6ff; border-color: #2563eb; color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
  outline: none;
}
.spec-hint-btn svg { pointer-events: none; }

/* Spec hint modal */
.hint-modal-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(15,23,42,.45); z-index: 9000;
  align-items: center; justify-content: center; padding: 16px;
}
.hint-modal-overlay.is-open { display: flex; }
.hint-modal {
  background: #fff; border-radius: 8px;
  width: min(390px, 100%);
  box-shadow: 0 20px 55px rgba(15,23,42,.24);
  border: 1px solid rgba(226,232,240,.95);
  padding: 21px 22px 24px; position: relative;
  animation: hintModalIn .18s ease;
}
@keyframes hintModalIn { from { opacity:0; transform: scale(.95) translateY(10px); } to { opacity:1; transform: scale(1) translateY(0); } }
.hint-modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px; border-radius: 50%;
  background: #f1f5f9; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; line-height: 1; color: #64748b;
  transition: background .12s, color .12s;
}
.hint-modal-close:hover { background: #e2e8f0; color: #0f172a; }
.hint-modal-title {
  font-size: 16px; font-weight: 800; color: #0f172a;
  margin: 0 36px 16px 0; line-height: 1.3;
}
.hint-tips-label {
  font-size: 11px; font-weight: 800; color: #64748b;
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 8px; display: flex; align-items: center; gap: 5px;
}
.hint-modal-body {
  background: #f8fafc; border-radius: 8px;
  padding: 14px 16px; font-size: 13.5px; line-height: 1.65;
  color: #334155; border: 1px solid #dbeafe;
}

/* spec-name must be relative for tooltip positioning */
.spec-name { position: relative; display: flex; align-items: center; gap: 2px; min-width: 0; }

/* Category icon slot */
.spec-cat-icon { display: inline-flex; align-items: center; margin-right: 6px; opacity: .7; }
.spec-cat-icon--svg { opacity: .85; }

/* Comparison label cell */
.cmp-spec-label { position: relative; display: flex; align-items: center; gap: 4px; white-space: nowrap; }

/* Responsive overflow guards for model and compare detail pages */
.hero-section,
.hero-grid,
.model-gallery,
.spec-wrapper,
.spec-category,
.spec-toggle,
.compare-hero,
.compare-hero-grid,
.compare-hero-grid--3,
.score-card,
.final-verdict,
.quick-winner-grid,
.category-grid,
.difference-grid,
.buy-grid,
.score-rank-grid,
.score-rank-card,
.ks-table-wrap,
.spec-table-wrap {
  min-width: 0;
  max-width: 100%;
}

.spec-name,
.spec-value,
.cmp-spec-label,
.ks-table th,
.ks-table td,
.spec-table-wrap th,
.spec-table-wrap td,
.winner-item,
.score-card-meta,
.score-lead-line,
.score-weight-strip span,
.final-verdict,
.executive-text {
  overflow-wrap: anywhere;
}

.cmp-spec-label {
  white-space: normal;
}

@media (max-width: 768px) {
  table {
    display: table;
    width: 100%;
    white-space: normal;
  }

  .ks-table-wrap,
  .spec-table-wrap {
    overflow-x: visible;
  }

  .ks-table,
  .spec-table-wrap table {
    min-width: 0 !important;
    width: 100%;
    table-layout: fixed;
  }

  .ks-table th,
  .ks-table td,
  .spec-table-wrap th,
  .spec-table-wrap td {
    white-space: normal;
    padding: 8px 9px;
    font-size: 12px;
    line-height: 1.45;
  }

  .ks-table thead th:first-child,
  .spec-table-wrap thead th:first-child {
    width: 36%;
  }

  .sticky-content {
    gap: 8px;
  }

  .sticky-left,
  .sticky-middle {
    flex: 1 1 160px;
  }
}

/* ===== GLOBAL ENGINE-TECHNOLOGY GUIDES ===== */
.engine-guide,
.engine-library,
.image-license-page {
  --engine-ink: #0f172a;
  --engine-text: #334155;
  --engine-muted: #64748b;
  --engine-line: #dbe3ee;
  --engine-blue: #1d4ed8;
  --engine-blue-soft: #eff6ff;
  --engine-orange: #ea580c;
  --engine-orange-soft: #fff7ed;
  --engine-green: #15803d;
  --engine-green-soft: #f0fdf4;
  --engine-red: #b91c1c;
  --engine-red-soft: #fef2f2;
  color: var(--engine-text);
}

.engine-guide-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 2px 0 16px;
  color: #64748b;
  font-size: 13px;
}
.engine-guide-breadcrumb a { color: #1d4ed8; text-decoration: none; }
.engine-guide-breadcrumb a:hover { text-decoration: underline; }

.engine-guide-hero,
.engine-library-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(250px, .65fr);
  gap: 26px;
  align-items: end;
  padding: 38px;
  overflow: hidden;
  border: 1px solid #1e3a5f;
  background:
    radial-gradient(circle at 85% 10%, rgba(59,130,246,.22), transparent 30%),
    linear-gradient(135deg, #0f172a 0%, #172554 58%, #0f4c5c 118%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(15,23,42,.16);
}
.engine-guide-eyebrow,
.engine-section-kicker {
  display: block;
  margin-bottom: 9px;
  color: #2563eb;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.engine-guide-hero .engine-guide-eyebrow,
.engine-library-hero .engine-guide-eyebrow { color: #93c5fd; }
.engine-guide-hero h1,
.engine-library-hero h1 {
  max-width: 820px;
  margin: 0 0 14px;
  color: #fff;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -.035em;
}
.engine-guide-lead,
.engine-library-hero > div > p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 17px;
  line-height: 1.65;
}
.engine-guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.engine-guide-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 999px;
  background: rgba(15,23,42,.34);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 800;
}
.engine-guide-answer,
.engine-library-hero > aside {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 14px;
  background: rgba(15,23,42,.46);
  backdrop-filter: blur(8px);
}
.engine-guide-answer strong,
.engine-library-hero > aside strong {
  display: block;
  margin-bottom: 7px;
  color: #fbbf24;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.engine-guide-answer p,
.engine-library-hero > aside p {
  margin: 0;
  color: #f8fafc;
  font-size: 14px;
  line-height: 1.6;
}

.engine-guide-toc {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 16px 0;
  padding: 12px 14px;
  border-color: #dbeafe;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 22px rgba(15,23,42,.07);
  backdrop-filter: blur(10px);
}
.engine-guide-toc strong { margin-right: 4px; color: #0f172a; font-size: 12px; }
.engine-guide-toc a {
  padding: 7px 9px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.engine-guide-toc a:hover { background: #dbeafe; }

.engine-guide-figure {
  margin: 0 0 24px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15,23,42,.08);
}
.engine-guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  background: #f8fafc;
}
.engine-image-open { position: relative; display: block; text-decoration: none; }
.engine-image-open:focus-visible { outline: 4px solid #f59e0b; outline-offset: -4px; }
.engine-guide-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 15px;
  border-top: 1px solid #e2e8f0;
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
}
.engine-guide-image-credit { flex: 0 0 auto; color: #64748b; text-align: right; }
.engine-guide-image-credit a { color: #1d4ed8; }
.engine-guide-section > .engine-guide-figure--supporting {
  margin: 22px 0;
  border-color: #cbd5e1;
  box-shadow: 0 8px 22px rgba(15,23,42,.07);
}

/* Shared editorial guides: licensed images, status cards and decision tools */
.editorial-image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  background: #eef2f7;
  text-decoration: none;
}
.editorial-image-frame:focus-visible { outline: 4px solid #f59e0b; outline-offset: -4px; }
.engine-guide-figure.editorial-guide-figure img {
  max-height: 700px;
  aspect-ratio: auto;
  object-fit: contain;
}
.guide-image-watermark {
  position: absolute;
  right: 13px;
  bottom: 12px;
  z-index: 2;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 7px;
  background: rgba(2,6,23,.78);
  color: #fff;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(10px, 1.25vw, 15px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  text-shadow: 0 1px 2px #000;
}
.editorial-status-grid,
.editorial-known-unknown,
.editorial-verdict-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 18px 0;
}
.editorial-status-grid.two-column,
.editorial-known-unknown,
.editorial-verdict-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.editorial-status-grid article,
.editorial-known-unknown > div,
.editorial-verdict-grid > div {
  padding: 19px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #f8fafc;
}
.editorial-status-grid article > strong,
.editorial-known-unknown strong,
.editorial-verdict-grid strong {
  display: block;
  margin-bottom: 7px;
  color: #0f172a;
  font-size: 14px;
}
.editorial-status-grid p,
.editorial-known-unknown p,
.editorial-verdict-grid p { margin: 0; color: #526173; font-size: 12px; line-height: 1.6; }
.editorial-status-grid ul,
.editorial-known-unknown ul,
.editorial-verdict-grid ul { margin: 9px 0 0; padding-left: 19px; color: #475569; font-size: 12px; line-height: 1.6; }
.status-confirmed { border-color: #bbf7d0 !important; border-top: 4px solid #16a34a !important; background: #f0fdf4 !important; }
.status-global { border-color: #bfdbfe !important; border-top: 4px solid #2563eb !important; background: #eff6ff !important; }
.status-unconfirmed { border-color: #fed7aa !important; border-top: 4px solid #f97316 !important; background: #fff7ed !important; }
.status-pill {
  display: inline-flex;
  margin-bottom: 9px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #334155;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.editorial-math-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 18px 0;
  padding: 22px;
  border: 2px dashed #93c5fd;
  border-radius: 14px;
  background: #eff6ff;
}
.editorial-math-card span,
.editorial-math-card strong {
  padding: 10px 13px;
  border-radius: 9px;
  background: #fff;
  color: #1e3a8a;
  font-size: 16px;
}
.editorial-math-card strong { background: #1d4ed8; color: #fff; }
.editorial-check-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
ul.engine-checklist { padding: 0; list-style: none; }
ul.engine-checklist li {
  padding: 13px 15px 13px 42px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #fbfdff;
  color: #475569;
  font-size: 12px;
  line-height: 1.55;
}
ul.engine-checklist li::before {
  content: "✓";
  float: left;
  width: 23px;
  height: 23px;
  margin: -2px 0 0 -31px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-weight: 900;
  line-height: 23px;
  text-align: center;
}
.editorial-library-visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  margin-top: 18px;
}
.editorial-library-visual-grid .engine-guide-figure { margin: 0; }
.editorial-library-visual-grid .engine-guide-figure:first-child { grid-column: 1 / -1; }
.editorial-library-visual-grid .engine-guide-figure figcaption {
  display: grid;
  gap: 7px;
  padding: 12px;
}
.editorial-library-visual-grid .engine-guide-image-credit { font-size: 10px; text-align: left; }
.editorial-link-grid { gap: 12px; }
.editorial-guide-link-card {
  display: grid;
  gap: 7px;
  padding: 19px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: linear-gradient(145deg, #fff, #f8fbff);
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.editorial-guide-link-card:hover { transform: translateY(-2px); border-color: #93c5fd; box-shadow: 0 10px 22px rgba(15,23,42,.08); }
.editorial-guide-link-card strong { color: #0f172a; font-size: 16px; }
.editorial-guide-link-card span { color: #64748b; font-size: 12px; line-height: 1.55; }
.editorial-route-grid a { display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 900; text-decoration: none; }

.engine-picture-route {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 15px;
  margin: -6px 0 22px;
  padding: 15px 18px;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  background: #f0fdf4;
}
.engine-picture-route > div { display: flex; align-items: center; gap: 8px; color: #166534; white-space: nowrap; }
.engine-picture-route > div span { font-size: 20px; }
.engine-picture-route strong { font-size: 13px; }
.engine-picture-route p { margin: 0; color: #315b3e; font-size: 12px; line-height: 1.6; }

.engine-quick-check {
  display: grid;
  grid-template-columns: minmax(190px, .72fr) repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 13px;
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
}
.engine-quick-check > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5px 8px;
}
.engine-quick-check > div span {
  margin-bottom: 4px;
  color: #1d4ed8;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.engine-quick-check > div strong { color: #0f172a; font-size: 14px; line-height: 1.35; }
.engine-quick-check details {
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 9px;
  background: #fff;
}
.engine-quick-check summary {
  cursor: pointer;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}
.engine-quick-check details p { margin: 9px 0 0; color: #475569; font-size: 12px; line-height: 1.55; }

.engine-guide-section,
.engine-library-intro,
.image-license-section,
.image-license-summary {
  margin-bottom: 22px;
  padding: 32px;
  scroll-margin-top: 76px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 22px rgba(15,23,42,.045);
}
.engine-guide-section h2,
.engine-library-intro h2,
.image-license-section h2,
.image-license-summary h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.2;
  letter-spacing: -.02em;
}
.engine-guide-section h3,
.image-license-section h3 {
  margin: 24px 0 9px;
  color: #1e293b;
  font-size: 18px;
  line-height: 1.3;
}
.engine-guide-section > p,
.engine-story-copy p,
.engine-source-section > p,
.engine-library-intro > p,
.image-license-section > p,
.image-license-summary p {
  margin: 0 0 13px;
  color: #334155;
  font-size: 15px;
  line-height: 1.78;
}
.engine-guide-section a,
.engine-library a,
.image-license-page a { color: #1d4ed8; }

.engine-story-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(230px, .5fr);
  gap: 22px;
  align-items: start;
}
.engine-kid-card {
  padding: 20px;
  border: 1px solid #bfdbfe;
  border-radius: 14px;
  background: linear-gradient(150deg, #eff6ff, #f8fafc);
}
.engine-kid-card > strong { display: block; color: #1e3a8a; font-size: 14px; }
.engine-kid-card ol {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 14px 0;
  padding: 0;
  counter-reset: none;
  list-style-position: inside;
}
.engine-kid-card li {
  padding: 7px;
  border-radius: 7px;
  background: #fff;
  color: #1e40af;
  font-size: 12px;
  font-weight: 800;
}
.engine-kid-card p { margin: 0; color: #475569; font-size: 12px; line-height: 1.5; }

.engine-definition-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.engine-definition-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.engine-definition-grid > div {
  padding: 17px;
  border: 1px solid #dbeafe;
  border-top: 4px solid #3b82f6;
  border-radius: 10px;
  background: #f8fafc;
}
.engine-definition-grid strong { display: block; margin-bottom: 6px; color: #0f172a; font-size: 14px; }
.engine-definition-grid p { margin: 0; color: #526173; font-size: 12px; line-height: 1.55; }
.engine-truth-note,
.engine-small-note {
  margin: 18px 0 0;
  padding: 15px 17px;
  border-left: 4px solid #f59e0b;
  border-radius: 0 9px 9px 0;
  background: #fffbeb;
  color: #713f12;
  font-size: 13px;
  line-height: 1.65;
}

.engine-flow-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 28px;
}
.engine-flow-list article {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 17px;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  background: #fbfdff;
}
.engine-flow-list article > span,
.engine-cycle-grid > div > span,
.engine-research-steps li > span {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #1e40af;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}
.engine-flow-list h3 { margin: 0 0 5px; font-size: 15px; }
.engine-flow-list p { margin: 0; color: #526173; font-size: 12px; line-height: 1.58; }

.engine-cycle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.engine-cycle-grid > div {
  position: relative;
  min-height: 142px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff, #fff);
}
.engine-cycle-grid > div > span { margin-bottom: 12px; }
.engine-cycle-grid strong { display: block; color: #0f172a; font-size: 14px; }
.engine-cycle-grid p { margin: 6px 0 0; color: #64748b; font-size: 12px; line-height: 1.5; }

.engine-table-wrap,
.image-rights-table-wrap {
  width: 100%;
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.engine-table,
.image-rights-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 13px;
}
.engine-table th,
.engine-table td,
.image-rights-table th,
.image-rights-table td {
  padding: 13px 14px;
  border-right: 1px solid #eef2f7;
  border-bottom: 1px solid #e2e8f0;
  vertical-align: top;
  text-align: left;
  line-height: 1.5;
}
.engine-table thead th,
.image-rights-table thead th {
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.engine-table tbody th,
.image-rights-table tbody th { color: #0f172a; font-weight: 800; }
.engine-table tbody tr:nth-child(even),
.image-rights-table tbody tr:nth-child(even) { background: #f8fafc; }
.engine-table tr:last-child th,
.engine-table tr:last-child td,
.image-rights-table tr:last-child th,
.image-rights-table tr:last-child td { border-bottom: 0; }
.engine-table th:last-child,
.engine-table td:last-child,
.image-rights-table th:last-child,
.image-rights-table td:last-child { border-right: 0; }
.engine-badge-table tr.is-current { background: #eff6ff !important; }

.engine-pros-cons,
.engine-fit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.engine-pros-panel,
.engine-cons-panel,
.engine-fit-good,
.engine-fit-caution {
  padding: 22px;
  border: 1px solid;
  border-radius: 12px;
}
.engine-pros-panel,
.engine-fit-good { border-color: #bbf7d0; background: #f0fdf4; }
.engine-cons-panel { border-color: #fecaca; background: #fef2f2; }
.engine-fit-caution { border-color: #fde68a; background: #fffbeb; }
.engine-pros-panel h3,
.engine-cons-panel h3,
.engine-fit-good h3,
.engine-fit-caution h3 { margin: 0 0 12px; font-size: 17px; }
.engine-pros-panel h3,
.engine-fit-good h3 { color: #15803d; }
.engine-cons-panel h3 { color: #b91c1c; }
.engine-fit-caution h3 { color: #a16207; }
.engine-pros-cons ul,
.engine-fit-grid ul { margin: 0; padding-left: 20px; }
.engine-pros-cons li,
.engine-fit-grid li { margin-bottom: 9px; color: #334155; font-size: 13px; line-height: 1.55; }

.engine-fuel-callout {
  margin: 15px 0 18px;
  padding: 20px;
  border: 1px solid #fed7aa;
  border-radius: 12px;
  background: linear-gradient(135deg, #fff7ed, #fffbeb);
}
.engine-fuel-callout strong { color: #9a3412; font-size: 17px; }
.engine-fuel-callout p { margin: 6px 0 0; color: #7c2d12; font-size: 13px; line-height: 1.6; }
.engine-factor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.engine-factor-grid > div {
  padding: 17px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.engine-factor-grid strong { color: #0f172a; font-size: 13px; }
.engine-factor-grid p { margin: 7px 0 0; color: #64748b; font-size: 12px; line-height: 1.55; }
.engine-formula,
.engine-combustion-join,
.engine-aftertreatment-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin: 19px 0;
  padding: 17px;
  border: 1px dashed #93c5fd;
  border-radius: 12px;
  background: #eff6ff;
}
.engine-formula span,
.engine-combustion-join span,
.engine-aftertreatment-flow span {
  padding: 7px 10px;
  border-radius: 7px;
  background: #fff;
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 800;
}
.engine-formula b,
.engine-combustion-join b,
.engine-aftertreatment-flow b { color: #64748b; }
.engine-formula strong,
.engine-combustion-join strong { color: #0f172a; }

.engine-checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 17px 0 25px;
}
.engine-checklist > div {
  display: flex;
  gap: 11px;
  padding: 15px;
  border: 1px solid #dbe3ee;
  border-radius: 10px;
  background: #fbfdff;
}
.engine-checklist span {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  font-size: 13px;
  font-weight: 900;
}
.engine-checklist p { margin: 0; color: #475569; font-size: 12px; line-height: 1.55; }

.engine-alert-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}
.engine-alert-grid > div { padding: 16px; border: 1px solid; border-radius: 10px; }
.engine-alert-grid strong { display: block; margin-bottom: 6px; font-size: 13px; }
.engine-alert-grid p { margin: 0; font-size: 12px; line-height: 1.55; }
.engine-alert-stop { border-color: #fca5a5 !important; background: #fef2f2; color: #991b1b; }
.engine-alert-soon { border-color: #fde68a !important; background: #fffbeb; color: #854d0e; }
.engine-alert-watch { border-color: #bfdbfe !important; background: #eff6ff; color: #1e40af; }

.engine-myth-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.engine-myth-grid > div {
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}
.engine-myth-grid strong { color: #0f172a; font-size: 12px; }
.engine-myth-grid p { margin: 7px 0 0; color: #64748b; font-size: 11px; line-height: 1.5; }
.engine-verdict-section {
  border-color: #bbf7d0;
  border-left: 5px solid #16a34a;
  background: linear-gradient(135deg, #f0fdf4, #fff);
}

.engine-dual-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 17px;
}
.engine-dual-flow-track { padding: 19px; border: 1px solid; border-radius: 12px; }
.engine-dual-flow-track--air { border-color: #bfdbfe; background: #eff6ff; }
.engine-dual-flow-track--fuel { border-color: #fed7aa; background: #fff7ed; }
.engine-dual-flow-track h3 { margin: 0 0 13px; }
.engine-dual-flow-track--air h3 { color: #1d4ed8; }
.engine-dual-flow-track--fuel h3 { color: #c2410c; }
.engine-dual-flow-track ol { margin: 0; padding: 0; list-style: none; }
.engine-dual-flow-track li { display: flex; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(100,116,139,.16); }
.engine-dual-flow-track li:first-child { border-top: 0; }
.engine-dual-flow-track li > span {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  font-size: 11px;
  font-weight: 900;
}
.engine-dual-flow-track strong { color: #0f172a; font-size: 12px; }
.engine-dual-flow-track p { margin: 4px 0 0; color: #526173; font-size: 11px; line-height: 1.5; }

.engine-faq-list { display: grid; gap: 10px; margin-top: 17px; }
.engine-faq-item { border: 1px solid #dbe3ee; border-radius: 10px; background: #fbfdff; overflow: hidden; }
.engine-faq-item summary {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 17px;
  cursor: pointer;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}
.engine-faq-item summary::-webkit-details-marker { display: none; }
.engine-faq-item summary::after { content: "+"; flex: 0 0 auto; color: #2563eb; font-size: 18px; line-height: 1; }
.engine-faq-item[open] summary::after { content: "−"; }
.engine-faq-item p { margin: 0; padding: 0 17px 17px; color: #475569; font-size: 13px; line-height: 1.7; }

.engine-source-section { background: #f8fafc; }
.engine-source-list { display: grid; gap: 9px; margin: 16px 0; padding: 0; list-style: none; }
.engine-source-list li {
  display: grid;
  grid-template-columns: minmax(210px, .7fr) minmax(0, 1.3fr);
  gap: 15px;
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
  background: #fff;
}
.engine-source-list a { font-size: 12px; font-weight: 800; text-decoration: none; }
.engine-source-list a:hover { text-decoration: underline; }
.engine-source-list span { color: #64748b; font-size: 11px; line-height: 1.55; }
.engine-source-note { color: #64748b !important; font-size: 12px !important; }

.engine-guide-disclaimer {
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid #fecaca;
  border-left: 5px solid #dc2626;
  background: #fff7f7;
  color: #7f1d1d;
  font-size: 13px;
  line-height: 1.65;
}
.engine-guide-disclaimer strong { display: block; margin-bottom: 4px; }
.engine-related-guides {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(0, 1.55fr);
  gap: 20px;
  align-items: start;
  margin-bottom: 32px;
  padding: 26px;
  border-color: #dbeafe;
}
.engine-related-guides h2 { margin: 0; color: #0f172a; font-size: 20px; }
.engine-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.engine-related-grid a {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 9px;
  background: #eff6ff;
  text-decoration: none;
}
.engine-related-grid strong { color: #1e3a8a; font-size: 12px; }
.engine-related-grid span { color: #64748b; font-size: 11px; line-height: 1.45; }

/* Engine library hub */
.engine-library-hero { margin-bottom: 18px; }
.engine-library-intro { text-align: left; }
.engine-library-foundation {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.engine-library-foundation > div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 2px 11px;
  align-items: center;
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 11px;
  background: #f8fbff;
}
.engine-library-foundation span {
  display: grid;
  grid-row: 1 / span 2;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #1d4ed8;
  color: #fff;
  font-weight: 900;
}
.engine-library-foundation strong { color: #0f172a; }
.engine-library-foundation p { margin: 3px 0 0; color: #64748b; font-size: 12px; }
.engine-library-guides { margin-bottom: 22px; }
.engine-library-section-head { margin: 0 0 15px; }
.engine-library-section-head h2 { margin: 0; color: #0f172a; font-size: 27px; }
.engine-library-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.engine-library-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.engine-library-visual-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fff;
}
.engine-library-visual-grid figure > a { display: block; background: #eff6ff; }
.engine-library-visual-grid img { display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941; object-fit: cover; }
.engine-library-visual-grid figcaption { display: grid; gap: 6px; padding: 13px; }
.engine-library-visual-grid figcaption > strong { color: #0f172a; font-size: 14px; line-height: 1.35; }
.engine-library-visual-grid figcaption > span:not(.engine-guide-image-credit) { color: #526173; font-size: 11px; line-height: 1.5; }
.engine-library-visual-grid .engine-guide-image-credit { font-size: 10px; text-align: left; }
.engine-library-card { padding: 0; overflow: hidden; border: 1px solid #dbe3ee; }
.engine-library-card-image { display: block; overflow: hidden; background: #f8fafc; }
.engine-library-card-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1672 / 941;
  object-fit: cover;
  transition: transform .2s ease;
}
.engine-library-card:hover .engine-library-card-image img { transform: scale(1.012); }
.engine-library-card-body { padding: 22px; }
.engine-library-card-body > span { color: #2563eb; font-size: 10px; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.engine-library-card-body h3 { margin: 8px 0; font-size: 22px; }
.engine-library-card-body h3 a { color: #0f172a; text-decoration: none; }
.engine-library-card-body p { margin: 0 0 12px; color: #475569; font-size: 13px; line-height: 1.65; }
.engine-library-card-body ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; padding: 0; list-style: none; }
.engine-library-card-body li { padding: 5px 8px; border-radius: 999px; background: #f1f5f9; color: #526173; font-size: 10px; font-weight: 700; }
.engine-library-card-cta { font-size: 12px; font-weight: 900; text-decoration: none; }
.engine-library-license-note { margin: 10px 0 0; color: #64748b; font-size: 11px; text-align: right; }
.engine-glossary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; }
.engine-glossary > div { padding: 15px; border: 1px solid #e2e8f0; border-radius: 9px; background: #f8fafc; }
.engine-glossary dt { color: #0f172a; font-size: 13px; font-weight: 900; }
.engine-glossary dd { margin: 6px 0 0; color: #64748b; font-size: 11px; line-height: 1.5; }
.engine-research-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.engine-research-steps li { display: flex; gap: 12px; padding: 15px; border: 1px solid #dbe3ee; border-radius: 9px; }
.engine-research-steps strong { color: #0f172a; font-size: 13px; }
.engine-research-steps p { margin: 4px 0 0; color: #64748b; font-size: 11px; line-height: 1.5; }

/* Image licensing policy */
.image-license-hero {
  margin-bottom: 22px;
  padding: 38px;
  border: 1px solid #dbeafe;
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
}
.image-license-hero h1 { margin: 0 0 12px; color: #0f172a; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.035em; }
.image-license-hero > p { max-width: 780px; margin: 0; color: #475569; font-size: 16px; line-height: 1.7; }
.image-license-hero .engine-guide-meta span { border-color: #dbeafe; background: #fff; color: #1e40af; }
.image-license-summary { border-left: 5px solid #2563eb; background: #f8fbff; }
.image-license-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 17px; }
.image-license-grid > div { padding: 17px; border: 1px solid #e2e8f0; border-radius: 10px; background: #f8fafc; }
.image-license-grid h3 { margin: 0 0 7px; color: #0f172a; font-size: 14px; }
.image-license-grid p { margin: 0; color: #64748b; font-size: 12px; line-height: 1.55; }
.image-license-legal-note { margin-top: 18px !important; padding: 14px; border-radius: 8px; background: #fff7ed; color: #7c2d12 !important; font-size: 12px !important; }
.image-metadata-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin: 17px 0; }
.image-metadata-list > div { padding: 14px; border: 1px solid #dbeafe; border-radius: 9px; background: #f8fbff; }
.image-metadata-list dt { color: #1e3a8a; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; font-weight: 900; }
.image-metadata-list dd { margin: 6px 0 0; color: #64748b; font-size: 11px; line-height: 1.5; }
.image-permission-list { margin: 15px 0 20px; padding-left: 22px; }
.image-permission-list li { margin-bottom: 8px; color: #475569; font-size: 13px; line-height: 1.5; }
.image-license-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #1d4ed8;
  color: #fff !important;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.image-license-contact:hover { background: #1e40af; }

@media (max-width: 900px) {
  .engine-definition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engine-myth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engine-glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engine-related-guides { grid-template-columns: 1fr; }
  .engine-quick-check { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engine-library-visual-grid { grid-template-columns: 1fr; }
  .editorial-check-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .engine-guide-hero,
  .engine-library-hero,
  .engine-story-grid,
  .engine-pros-cons,
  .engine-fit-grid,
  .engine-dual-flow,
  .engine-library-card-grid,
  .image-license-grid { grid-template-columns: 1fr; }
  .editorial-status-grid,
  .editorial-status-grid.two-column,
  .editorial-known-unknown,
  .editorial-verdict-grid,
  .editorial-library-visual-grid { grid-template-columns: 1fr; }
  .editorial-library-visual-grid .engine-guide-figure:first-child { grid-column: auto; }
  .engine-guide-hero,
  .engine-library-hero { padding: 28px 23px; }
  .engine-guide-answer,
  .engine-library-hero > aside { max-width: none; }
  .engine-guide-toc { position: static; }
  .engine-guide-figure figcaption { flex-direction: column; }
  .engine-guide-image-credit { text-align: left; }
  .engine-quick-check { grid-template-columns: 1fr; }
  .engine-flow-list,
  .engine-checklist,
  .engine-research-steps { grid-template-columns: 1fr; }
  .engine-cycle-grid,
  .engine-factor-grid,
  .engine-alert-grid,
  .engine-library-foundation { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .engine-related-grid { grid-template-columns: 1fr; }
  .engine-source-list li { grid-template-columns: 1fr; gap: 5px; }
  .engine-library-license-note { text-align: left; }
}

@media (max-width: 520px) {
  .engine-guide-section,
  .engine-library-intro,
  .image-license-section,
  .image-license-summary,
  .image-license-hero { padding: 22px 17px; }
  .engine-guide-hero,
  .engine-library-hero { padding: 25px 18px; }
  .engine-guide-hero h1,
  .engine-library-hero h1,
  .image-license-hero h1 { font-size: 31px; }
  .engine-guide-lead,
  .engine-library-hero > div > p { font-size: 15px; }
  .engine-guide-meta { gap: 6px; }
  .engine-guide-meta span { padding: 5px 8px; font-size: 10px; }
  .engine-guide-toc { gap: 5px; padding: 10px; overflow-x: auto; flex-wrap: nowrap; }
  .engine-guide-toc strong,
  .engine-guide-toc a { flex: 0 0 auto; }
  .engine-guide-figure img { aspect-ratio: auto; }
  .engine-picture-route { grid-template-columns: 1fr; gap: 7px; margin-top: -4px; padding: 14px; }
  .engine-definition-grid,
  .engine-definition-grid--three,
  .engine-cycle-grid,
  .engine-factor-grid,
  .engine-alert-grid,
  .engine-myth-grid,
  .engine-library-foundation,
  .engine-glossary,
  .image-metadata-list { grid-template-columns: 1fr; }
  .editorial-check-grid { grid-template-columns: 1fr; }
  .guide-image-watermark { right: 7px; bottom: 7px; padding: 5px 7px; }
  .engine-kid-card ol { grid-template-columns: 1fr; }
  .engine-formula,
  .engine-combustion-join,
  .engine-aftertreatment-flow { justify-content: flex-start; }
  .engine-related-guides { padding: 20px 16px; }
  .engine-library-card-body { padding: 18px; }
}

@media (max-width: 520px) {
  .page-container,
  .content-narrow {
    padding-left: 12px;
    padding-right: 12px;
  }

  .sticky-bar {
    padding: 9px 10px;
  }

  .sticky-right {
    width: 100%;
    flex: 1 1 100%;
  }

  .sticky-right select {
    flex: 1 1 auto;
  }

  .variants-table {
    table-layout: fixed;
  }

  .variants-table th,
  .variants-table td {
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 12px;
  }

  .variant-name-cell strong {
    display: block;
    line-height: 1.35;
  }

  .price-cell {
    font-size: 12px;
  }

  .btn-specs {
    padding: 5px 8px;
    font-size: 11px;
  }

  .atb-label {
    white-space: normal;
  }
}

/* ═══════════════════════════════════════════════════════════
   BRAND LIST / COUNTRY PAGE  (/south-africa/)
   ═══════════════════════════════════════════════════════════ */

/* Directory header */
.bl-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  color: #64748b;
  font-size: 13px;
}
.bl-breadcrumb a {
  color: #2563eb;
  text-decoration: none;
}
.bl-breadcrumb a:hover {
  color: #1d4ed8;
}
.bl-breadcrumb span {
  margin: 0;
}
.bl-directory-shell {
  margin: 0 0 28px;
  border: 1px solid #d8dee8;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}
.bl-directory-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e2e8f0;
}
.bl-kicker {
  display: block;
  margin-bottom: 6px;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.bl-directory-head h1 {
  margin: 0;
  color: #0f172a;
  font-size: 30px;
  line-height: 1.08;
}
.bl-directory-head p {
  max-width: 640px;
  margin: 8px 0 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}
.bl-directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.bl-directory-actions a,
.bl-section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}
.bl-brand-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
.bl-brand-toolbar label {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}
.bl-brand-searchbox {
  display: flex;
  align-items: center;
  min-width: 280px;
  max-width: 420px;
  width: 42%;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}
.bl-brand-searchbox input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 10px 12px;
  color: #0f172a;
  font: inherit;
  outline: none;
}
.bl-brand-searchbox button {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #64748b;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.bl-brand-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  background: #fff;
}
.bl-brand-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 112px;
  gap: 10px;
  padding: 16px 10px 14px;
  border-right: 1px solid #d8dee8;
  border-bottom: 1px solid #d8dee8;
  color: #0f172a;
  text-align: center;
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
}
.bl-brand-tile:hover,
.bl-brand-tile:focus-visible {
  background: #f8fafc;
  box-shadow: inset 0 0 0 2px #bfdbfe;
  outline: 0;
}
.bl-brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
}
.bl-brand-logo-wrap img {
  display: block;
  max-width: 112px;
  max-height: 52px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.bl-brand-logo-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
}
.bl-brand-tile-name {
  display: block;
  width: 100%;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.bl-brand-tile.is-hidden {
  display: none;
}
.bl-brand-empty {
  margin: 0;
  padding: 18px 24px;
  color: #92400e;
  font-weight: 800;
  border-top: 1px solid #fed7aa;
  background: #fffbeb;
}
.bl-seo-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 28px;
}
.bl-seo-signal,
.bl-seo-copy,
.bl-intent-card,
.bl-path-grid a {
  min-width: 0;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.bl-seo-signal {
  padding: 15px;
}
.bl-seo-signal strong,
.bl-seo-signal span {
  display: block;
}
.bl-seo-signal strong {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.2;
}
.bl-seo-signal span {
  margin-top: 7px;
  color: #64748b;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
}
.bl-seo-copy {
  grid-column: 1 / -1;
  padding: 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.bl-seo-copy h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.2;
}
.bl-seo-copy p {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.65;
}
.bl-intent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.bl-intent-card {
  padding: 16px;
}
.bl-intent-card h3 {
  margin: 0 0 7px;
  color: #0f172a;
  font-size: 17px;
  line-height: 1.25;
}
.bl-intent-card p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
}
.bl-intent-links {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}
.bl-intent-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  text-decoration: none;
}
.bl-intent-links a:hover,
.bl-path-grid a:hover {
  background: #eff6ff;
}
.bl-intent-links span {
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
}
.bl-intent-links em {
  flex-shrink: 0;
  color: #15803d;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}
.bl-path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.bl-path-grid a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 15px;
  color: #0f172a;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.bl-path-grid a:hover {
  border-color: #bfdbfe;
}
.bl-path-grid strong {
  font-size: 15px;
  line-height: 1.25;
}
.bl-path-grid span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

/* Sections */
.bl-section {
  margin-bottom: 34px;
}
.bl-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.bl-section-title {
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0 0 6px;
}
.bl-section-sub {
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Body type quick links */
.bl-bt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 10px;
}
.bl-bt-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  gap: 4px;
  padding: 16px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #1e293b;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.bl-bt-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 14px rgba(59,130,246,.12);
  transform: translateY(-2px);
}
.bl-bt-icon { font-size: 24px; line-height: 1; }
.bl-bt-label { font-size: 14px; font-weight: 800; }
.bl-bt-count { color: #64748b; font-size: 12px; }

/* Featured models grid */
.bl-featured-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px;
  margin-top: 14px;
}
.bl-featured-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden;
  text-decoration: none; color: #1e293b;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.bl-featured-card:hover { border-color: #3b82f6; box-shadow: 0 4px 16px rgba(59,130,246,.12); transform: translateY(-2px); }
.bl-featured-img-wrap { position: relative; height: 130px; overflow: hidden; }
.bl-featured-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.bl-featured-bt-badge {
  position: absolute; top: 8px; left: 8px;
  font-size: 11px; padding: 2px 9px; border-radius: 20px;
  font-weight: 500; text-transform: capitalize;
  background: rgba(255,255,255,.88); color: #1e293b;
  backdrop-filter: blur(2px);
}
.bl-bt-badge--suv { background: rgba(219,234,254,.9); color: #1d4ed8; }
.bl-bt-badge--hatchback { background: rgba(220,252,231,.9); color: #166534; }
.bl-bt-badge--sedan { background: rgba(254,249,195,.9); color: #854d0e; }
.bl-bt-badge--pickup { background: rgba(255,237,213,.9); color: #9a3412; }
.bl-bt-badge--mpv { background: rgba(253,244,255,.9); color: #7e22ce; }
.bl-bt-badge--crossover { background: rgba(236,253,245,.9); color: #065f46; }
.bl-featured-info { padding: 10px 12px; }
.bl-featured-brand-label { font-size: 12px; color: #64748b; display: block; }
.bl-featured-model-name { font-size: 15px; font-weight: 700; display: block; margin-top: 3px; color: #0f172a; }

/* Tools strip */
.bl-tools-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px;
  margin-top: 14px;
}
.bl-tool-card {
  display: flex; flex-direction: column; gap: 4px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 18px; text-decoration: none; color: #1e293b;
  transition: border-color .15s, box-shadow .15s;
}
.bl-tool-card:hover { border-color: #3b82f6; box-shadow: 0 4px 14px rgba(59,130,246,.1); }
.bl-tool-icon { font-size: 24px; margin-bottom: 4px; }
.bl-tool-card strong { font-size: 15px; }
.bl-tool-card span { font-size: 13px; color: #64748b; }

/* Why Hagalu */
.bl-why { background: #f8fafc; border-radius: 8px; padding: 28px 24px; }
.bl-why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 16px; }
.bl-why-card { background: #fff; border-radius: 8px; padding: 18px; border: 1px solid #e5e7eb; }
.bl-why-icon { font-size: 28px; display: block; margin-bottom: 8px; }
.bl-why-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.bl-why-card p { font-size: 13.5px; color: #475569; margin: 0; line-height: 1.5; }

/* FAQ */
.bl-faq-list { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.bl-faq-item {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  overflow: hidden;
}
.bl-faq-item summary {
  padding: 15px 18px; font-size: 15px; font-weight: 600; cursor: pointer;
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  color: #0f172a;
}
.bl-faq-item summary::-webkit-details-marker { display: none; }
.bl-faq-item summary::after { content: '+'; font-size: 18px; color: #64748b; flex-shrink: 0; }
.bl-faq-item[open] summary::after { content: '−'; }
.bl-faq-item p {
  padding: 0 18px 16px; font-size: 14px; line-height: 1.6;
  color: #475569; margin: 0;
}
.bl-faq-item p a { color: #2563eb; }

@media (max-width: 1100px) {
  .bl-brand-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .bl-brand-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .bl-seo-summary,
  .bl-intent-grid,
  .bl-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bl-directory-head,
  .bl-brand-toolbar,
  .bl-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .bl-brand-searchbox {
    width: 100%;
    max-width: none;
  }
}

@media (max-width: 640px) {
  .bl-directory-head {
    padding: 18px 16px 14px;
  }
  .bl-directory-head h1 {
    font-size: 28px;
  }
  .bl-brand-toolbar {
    padding: 12px 16px;
  }
  .bl-brand-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .bl-brand-tile {
    min-height: 102px;
    padding: 13px 8px 12px;
  }
  .bl-brand-logo-wrap {
    height: 48px;
  }
  .bl-brand-logo-wrap img {
    max-width: 92px;
    max-height: 44px;
  }
  .bl-brand-tile-name {
    font-size: 13px;
  }
  .bl-bt-grid,
  .bl-tools-grid,
  .bl-path-grid,
  .bl-why-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .bl-brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bl-brand-searchbox {
    min-width: 0;
  }
  .bl-bt-grid,
  .bl-tools-grid,
  .bl-seo-summary,
  .bl-intent-grid,
  .bl-path-grid,
  .bl-why-grid,
  .bl-featured-grid {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════
   WHATSAPP SHARE BUTTON
   ═══════════════════════════════════════════════════════════ */
.wa-share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #25D366; color: #fff;
  border: none; border-radius: 24px;
  padding: 8px 18px; font-size: 13px; font-weight: 600;
  cursor: pointer; text-decoration: none; line-height: 1;
  transition: background .15s, transform .12s, box-shadow .15s;
  box-shadow: 0 2px 8px rgba(37,211,102,.3);
  white-space: nowrap;
}
.wa-share-btn:hover { background: #1ebe5d; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(37,211,102,.4); color: #fff; }
.wa-share-btn:active { transform: translateY(0); }
.wa-share-btn svg { flex-shrink: 0; }

/* hero variant — inverted for dark backgrounds */
.wa-share-btn--hero {
  background: rgba(255,255,255,.15); color: #fff;
  border: 1.5px solid rgba(255,255,255,.35);
  box-shadow: none;
}
.wa-share-btn--hero:hover { background: #25D366; border-color: #25D366; color: #fff; box-shadow: 0 4px 14px rgba(37,211,102,.4); }

/* ═══════════════════════════════════════════════════════════
   SOCIAL SHARE BAR  (replaces wa-share-btn where used)
   ═══════════════════════════════════════════════════════════ */
.share-bar {
  display: flex; align-items: center; gap: 7px;
  margin-top: 12px; flex-wrap: wrap;
}
.share-bar-label {
  font-size: 11px; font-weight: 700; color: #94a3b8;
  text-transform: uppercase; letter-spacing: .07em; margin-right: 2px;
}
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid transparent; background: #fff;
  color: #fff; cursor: pointer; text-decoration: none;
  transition: background .15s, border-color .15s, color .15s, transform .12s, box-shadow .12s;
  flex-shrink: 0; position: relative; padding: 0;
}
.share-btn svg { pointer-events: none; }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 14px rgba(0,0,0,.22); opacity: .88; }
/* platform colours — always visible */
.share-btn--wa { background:#25D366; border-color:#25D366; }
.share-btn--fb { background:#1877F2; border-color:#1877F2; }
.share-btn--pt { background:#E60023; border-color:#E60023; }
.share-btn--ig { background:linear-gradient(135deg,#f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%); border-color:#dc2743; }
/* Instagram "copied" state */
.share-btn--ig.ig-copied { background:#0f172a; border-color:#0f172a; color:#fff; transform:none; box-shadow:none; opacity:1; }
/* tooltips */
.share-btn::after {
  content: attr(data-tip); position: absolute;
  bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: #1e293b; color: #fff; font-size: 11px; font-weight: 500;
  padding: 4px 9px; border-radius: 6px; white-space: nowrap;
  pointer-events: none; opacity: 0; transition: opacity .15s;
}
.share-btn:hover::after { opacity: 1; }
/* hero dark-bg variant */
.share-bar--hero .share-bar-label { color: rgba(255,255,255,.55); }
.share-bar--hero .share-btn { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
.share-bar--hero .share-btn:hover { border-color: transparent; }

/* ═══════════════════════════════════════════════════════════
   ENHANCED SOCIAL SHARE SECTION (Below Image Gallery)
   ═══════════════════════════════════════════════════════════ */
/* Compact share strip — below gallery thumbnails */
.share-strip {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 2px; margin-top: 10px;
  border-top: 1px solid #e8ecf0;
}
.share-strip-label {
  font-size: .72em; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0;
}
.share-strip-hint {
  font-size: .68em; color: #94a3b8; margin-left: auto; flex-shrink: 0;
}
.share-strip-icons { display: flex; gap: 7px; }
.ssi {
  width: 30px; height: 30px; border: none; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: #fff; flex-shrink: 0;
  transition: transform .15s ease, opacity .15s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.ssi:hover { transform: scale(1.12); }
.ssi:active { transform: scale(0.95); }
.ssi.ig-copied { background: #059669 !important; }
.ssi--wa { background: #25D366; }
.ssi--fb { background: #1877F2; }
.ssi--pt { background: #E60023; }
.ssi--ig { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
@media (max-width: 480px) {
  .share-strip { padding: 7px 0; gap: 8px; }
  .ssi { width: 28px; height: 28px; }
  .share-strip-label { font-size: .68em; }
  .share-strip-hint { font-size: .65em; }
}

/* ═══════════════════════════════════════════════════════════
   COLLAPSIBLE SUMMARY SECTION
   ═══════════════════════════════════════════════════════════ */
.summary-wrap {
  max-height: 9999px;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.summary-wrap.truncated {
  max-height: 120px;
  position: relative;
}

.summary-wrap.truncated::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(transparent, #ffffff);
  pointer-events: none;
}

.summary-toggle {
  display: none;
}

@media (max-width: 768px) {
  .summary-section .summary-toggle {
    margin-top: 10px;
    font-size: .88em;
  }
}

@media (max-width: 480px) {
  .summary-section .summary-toggle {
    font-size: 0.82em;
  }
}

@media (max-width: 360px) {
  .summary-section .summary-toggle {
    font-size: 0.78em;
  }
}

/* ═══════════════════════════════════════════════════════════
   EMI CALCULATOR
   ═══════════════════════════════════════════════════════════ */
.emi-card { overflow: hidden; margin-bottom: 16px; padding: 0; }

.emi-header {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 20px; cursor: pointer; user-select: none;
  background: linear-gradient(90deg, #0f172a 0%, #1e3a5f 100%); color: #fff;
}
.emi-header-icon { flex-shrink: 0; opacity: .85; }
.emi-header-title { font-size: 15px; font-weight: 700; flex: 1; }
.emi-preview {
  font-size: 13px; font-weight: 700; color: #34d399;
  background: rgba(52,211,153,.15); padding: 3px 11px;
  border-radius: 20px; white-space: nowrap;
}
.emi-chevron {
  width: 20px; height: 20px; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0;
  transition: transform .25s; color: #94a3b8;
}
.emi-chevron.open { transform: rotate(180deg); }

.emi-body {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .3s;
  padding: 0 20px;
}
.emi-body.open { max-height: 700px; padding: 20px; }

/* 3-col grid → 1-col on mobile */
.emi-inputs {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px;
  margin-bottom: 18px;
}
@media (max-width: 720px) {
  .emi-inputs { grid-template-columns: 1fr; gap: 12px; }
}

.emi-field > label {
  display: block; font-size: 11px; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px;
}
.emi-num-input {
  width: 100%; padding: 9px 12px;
  border: 1.5px solid #e2e8f0; border-radius: 8px;
  font-size: 15px; font-weight: 700; color: #0f172a; background: #f8fafc;
  box-sizing: border-box; margin-bottom: 7px;
  transition: border-color .15s, background .15s;
}
.emi-num-input:focus { outline: none; border-color: #3b82f6; background: #fff; }
input[type="range"].emi-range { width: 100%; accent-color: #3b82f6; cursor: pointer; }

/* Tenure quick-pick chips */
.emi-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.emi-chip {
  padding: 6px 13px; border: 1.5px solid #e2e8f0; border-radius: 20px;
  background: #fff; font-size: 12px; font-weight: 600; color: #475569;
  cursor: pointer; transition: all .12s;
}
.emi-chip:hover { border-color: #3b82f6; color: #3b82f6; }
.emi-chip.active { background: #3b82f6; border-color: #3b82f6; color: #fff; }

/* Result area */
.emi-results {
  background: #f8fafc; border: 1px solid #e2e8f0;
  border-radius: 12px; padding: 16px 18px;
}
.emi-result-top { display: flex; gap: 20px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.emi-monthly-lbl { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .05em; }
.emi-monthly-val { font-size: 30px; font-weight: 900; color: #0f172a; line-height: 1.1; }
.emi-breakdown { display: flex; gap: 24px; flex-wrap: wrap; }
.emi-bd-item .emi-bd-lbl { font-size: 11px; color: #94a3b8; }
.emi-bd-item .emi-bd-val { font-size: 14px; font-weight: 700; color: #334155; }

.emi-bar { height: 8px; border-radius: 4px; background: #e2e8f0; overflow: hidden; display: flex; margin: 14px 0 6px; }
.emi-bar-p { background: #3b82f6; transition: width .3s ease; }
.emi-bar-i { background: #f59e0b; flex: 1; }

.emi-legend { display: flex; gap: 16px; font-size: 12px; color: #64748b; }
.emi-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: middle; }
.emi-dot--p { background: #3b82f6; }
.emi-dot--i { background: #f59e0b; }

.emi-disclaimer {
  font-size: 11px; color: #94a3b8; font-style: italic;
  margin: 12px 0 0; line-height: 1.5;
}

@media (min-width: 1024px) {
  .desktop-emi-slot {
    display: block;
    margin-top: 12px;
  }
  .emi-card.emi-card--hero-desktop {
    margin: 0;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 10px 28px rgba(15, 23, 42, .05);
  }
  .emi-card.emi-card--hero-desktop .emi-header {
    padding: 12px 14px;
    min-height: auto;
    background: transparent;
  }
  .emi-card.emi-card--hero-desktop .emi-header-title {
    font-size: 13px;
  }
  .emi-card.emi-card--hero-desktop .emi-preview {
    font-size: 12px;
  }
  .emi-card.emi-card--hero-desktop .emi-body.open {
    padding: 0 14px 14px;
  }
  .emi-card.emi-card--hero-desktop .emi-inputs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .emi-card.emi-card--hero-desktop .emi-field:last-child {
    grid-column: 1 / -1;
  }
  .emi-card.emi-card--hero-desktop .emi-num-input {
    padding: 8px 10px;
    font-size: 13px;
  }
  .emi-card.emi-card--hero-desktop .emi-chip {
    padding: 6px 9px;
    font-size: 12px;
  }
  .emi-card.emi-card--hero-desktop .emi-result-top {
    align-items: center;
    gap: 14px;
    margin-bottom: 10px;
  }
  .emi-card.emi-card--hero-desktop .emi-monthly-val {
    font-size: 24px;
  }
  .emi-card.emi-card--hero-desktop .emi-breakdown {
    gap: 14px;
  }
  .emi-card.emi-card--hero-desktop .emi-disclaimer {
    font-size: 12px;
    line-height: 1.45;
  }
}

/* ═══════════════════════════════════════════════════════════
   CRYPTO BUYING + DEDICATED EXECUTIVE CONCIERGE
   ═══════════════════════════════════════════════════════════ */
.crypto-exec-card { padding: 0; overflow: hidden; }

.crypto-exec-grid {
  display: grid; grid-template-columns: 1fr 1fr;
}
@media (max-width: 680px) { .crypto-exec-grid { grid-template-columns: 1fr; } }

/* ── Left: crypto panel ── */
.crypto-panel {
  padding: 28px 26px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #1e293b 100%);
  color: #fff;
}
.crypto-panel-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.crypto-head-icon { font-size: 30px; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.crypto-panel-head h2 { font-size: 17px; font-weight: 700; color: #fff; margin: 0 0 4px; }
.crypto-panel-head p  { font-size: 13px; color: #94a3b8; margin: 0; line-height: 1.5; }

.crypto-coins { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 16px; }
.coin-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 20px;
  font-size: 12px; font-weight: 700; letter-spacing: .02em;
}
.coin-btc  { background: rgba(247,147,26,.14);  color: #f7931a; border: 1px solid rgba(247,147,26,.28); }
.coin-eth  { background: rgba(98,126,234,.14);   color: #8c9eff; border: 1px solid rgba(98,126,234,.28); }
.coin-usdt { background: rgba(38,161,123,.14);   color: #26a17b; border: 1px solid rgba(38,161,123,.28); }
.coin-usdc { background: rgba(39,117,202,.14);   color: #6ea8fe; border: 1px solid rgba(39,117,202,.28); }

.crypto-features { list-style: none; margin: 0 0 0; padding: 0; }
.crypto-features li { font-size: 13px; color: #cbd5e1; padding: 3px 0; display: flex; align-items: center; gap: 7px; }
.crypto-features li::before { content: '✓'; color: #34d399; font-weight: 700; flex-shrink: 0; }

/* ── Right: executive panel ── */
.exec-panel {
  padding: 28px 26px; background: #fff;
  display: flex; flex-direction: column; gap: 10px;
  border-left: 1px solid #e5e7eb;
}
@media (max-width: 680px) { .exec-panel { border-left: none; border-top: 1px solid #e5e7eb; } }

.exec-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 100%);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.exec-panel h3 { font-size: 16px; font-weight: 700; color: #0f172a; margin: 0; }
.exec-panel > p { font-size: 13px; color: #475569; margin: 0; line-height: 1.65; }
.exec-steps { display: flex; flex-direction: column; gap: 6px; }
.exec-step { display: flex; align-items: flex-start; gap: 9px; font-size: 12.5px; color: #475569; }
.exec-step-num {
  width: 20px; height: 20px; border-radius: 50%; background: #eff6ff;
  color: #3b82f6; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.exec-cta-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.exec-wa-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: #25D366; color: #fff; border: none; border-radius: 8px;
  padding: 9px 16px; font-size: 13px; font-weight: 700;
  text-decoration: none; cursor: pointer; transition: background .15s;
}
.exec-wa-btn:hover { background: #1ebe5d; color: #fff; }
.exec-email-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: #3b82f6;
  border: 1.5px solid #bfdbfe; border-radius: 8px;
  padding: 9px 14px; font-size: 13px; font-weight: 600;
  text-decoration: none; transition: background .15s;
}
.exec-email-btn:hover { background: #eff6ff; }

/* ── Compact strip for model page hero ── */
.crypto-strip {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: linear-gradient(90deg, #0f172a, #1e3a5f);
  border-radius: 10px; padding: 11px 16px; margin-top: 10px;
}
.crypto-strip-label { font-size: 12.5px; font-weight: 700; color: #fff; flex-shrink: 0; white-space: nowrap; }
.crypto-strip-coins { display: flex; gap: 5px; flex: 1; flex-wrap: wrap; }
.crypto-strip-coins .coin-badge { padding: 3px 9px; font-size: 11px; }
.crypto-strip-cta {
  display: inline-flex; align-items: center; gap: 6px;
  background: #25D366; color: #fff; border: none; border-radius: 7px;
  padding: 7px 14px; font-size: 12px; font-weight: 700;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
  transition: background .15s;
}
.crypto-strip-cta:hover { background: #1ebe5d; color: #fff; }

/* Extra coin colour variants */
.coin-bnb  { background: rgba(243,186,47,.14);  color: #f3ba2f; border: 1px solid rgba(243,186,47,.28); }
.coin-sol  { background: rgba(153,69,255,.14);  color: #9945ff; border: 1px solid rgba(153,69,255,.28); }
.coin-xrp  { background: rgba(0,136,204,.14);   color: #0088cc; border: 1px solid rgba(0,136,204,.28); }
.coin-pol  { background: rgba(130,71,229,.14);  color: #8247e5; border: 1px solid rgba(130,71,229,.28); }
.coin-ada  { background: rgba(0,51,173,.14);    color: #6ea8fe; border: 1px solid rgba(0,51,173,.28); }
.coin-dai  { background: rgba(250,168,0,.14);   color: #f5a623; border: 1px solid rgba(250,168,0,.28); }

/* "More coins" toggle button */
.coin-more-btn {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 20px;
  font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,.1); color: #94a3b8;
  border: 1px dashed rgba(148,163,184,.4);
  cursor: pointer; transition: all .15s;
}
.coin-more-btn:hover { background: rgba(255,255,255,.18); color: #cbd5e1; }

/* ============================================================
   LEAD CAPTURE MODAL
   ============================================================ */
.lead-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.lead-modal-overlay[hidden] { display: none; }

.lead-modal {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px 32px;
  width: 100%; max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,.22);
  animation: leadModalIn .22s ease;
}
@keyframes leadModalIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.lead-modal-close {
  position: absolute; top: 12px; right: 14px;
  background: none; border: none; cursor: pointer;
  font-size: 22px; color: #94a3b8; line-height: 1;
  padding: 4px 8px; border-radius: 6px;
  transition: color .15s, background .15s;
}
.lead-modal-close:hover { color: #475569; background: #f1f5f9; }

.lead-modal-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #16a34a;
  margin: 0 0 6px;
}
.lead-modal-title {
  font-size: 1.35rem; font-weight: 700; color: #0f172a;
  margin: 0 0 8px; line-height: 1.25;
}
.lead-modal-sub {
  font-size: .875rem; color: #64748b;
  margin: 0 0 22px; line-height: 1.5;
}

.lead-field {
  margin-bottom: 16px;
  position: relative;
}
.lead-field label {
  display: block; font-size: .8rem; font-weight: 600;
  color: #374151; margin-bottom: 5px;
}
.lead-req { color: #ef4444; }
.lead-field input {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid #d1d5db; border-radius: 8px;
  font-size: .9rem; color: #0f172a;
  background: #f9fafb;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.lead-field input:focus {
  outline: none; border-color: #16a34a;
  box-shadow: 0 0 0 3px rgba(22,163,74,.12);
  background: #fff;
}

/* City autocomplete dropdown */
.lead-city-suggestions {
  position: absolute; top: calc(100% + 2px); left: 0; right: 0;
  background: #fff; border: 1.5px solid #d1d5db;
  border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.1);
  list-style: none; margin: 0; padding: 4px 0;
  max-height: 200px; overflow-y: auto;
  z-index: 9010;
}
.lead-city-suggestions[hidden] { display: none; }
.lead-city-suggestions li {
  padding: 8px 13px; font-size: .875rem; color: #1e293b;
  cursor: pointer; transition: background .1s;
}
.lead-city-suggestions li:hover,
.lead-city-suggestions li.active {
  background: #f0fdf4; color: #15803d;
}

.lead-form-error {
  font-size: .82rem; color: #dc2626;
  background: #fef2f2; border: 1px solid #fecaca;
  border-radius: 6px; padding: 8px 12px;
  margin-bottom: 12px;
}
.lead-form-error[hidden] { display: none; }

.lead-submit-btn {
  width: 100%; padding: 12px;
  background: #16a34a; color: #fff;
  border: none; border-radius: 8px;
  font-size: .95rem; font-weight: 700;
  cursor: pointer; transition: background .18s, transform .12s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.lead-submit-btn:hover:not(:disabled) { background: #15803d; transform: translateY(-1px); }
.lead-submit-btn:disabled { opacity: .65; cursor: not-allowed; }

.lead-spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: leadSpin .7s linear infinite;
  display: inline-block;
}
.lead-spinner[hidden] { display: none; }
@keyframes leadSpin { to { transform: rotate(360deg); } }

/* Success state */
.lead-success { text-align: center; padding: 12px 0; }
.lead-success[hidden] { display: none; }
.lead-success-icon {
  width: 56px; height: 56px; border-radius: 50%;
  background: #dcfce7; color: #16a34a;
  font-size: 28px; line-height: 56px;
  margin: 0 auto 18px;
}
.lead-close-btn {
  display: inline-block; margin-top: 18px;
  padding: 10px 28px; background: #f1f5f9;
  color: #475569; border: none; border-radius: 8px;
  font-size: .9rem; font-weight: 600; cursor: pointer;
  transition: background .15s;
}
.lead-close-btn:hover { background: #e2e8f0; }

@media (max-width: 480px) {
  .lead-modal { padding: 28px 20px 24px; }
  .lead-modal-title { font-size: 1.2rem; }
}

/* Button element normalisation (used when <button> replaces <a> for CTAs) */
button.btn-primary,
button.btn-outline,
button.crypto-strip-cta,
button.exec-wa-btn {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* Phone field validation states */
.lead-phone-wrap { position: relative; }
.lead-phone-wrap input { padding-right: 34px; }

.lead-phone-status {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  font-size: 15px; font-weight: 700; pointer-events: none;
  transition: color .15s;
}
.lead-phone-ok  { color: #16a34a; }
.lead-phone-err { color: #dc2626; }

.lead-field input.is-valid  { border-color: #16a34a !important; background: #f0fdf4 !important; }
.lead-field input.is-invalid { border-color: #ef4444 !important; background: #fff5f5 !important; }

.lead-field-hint {
  font-size: .75rem; color: #94a3b8;
  margin: 4px 0 0; line-height: 1.4;
  transition: color .15s;
}
.lead-hint-ok  { color: #16a34a; }
.lead-hint-err { color: #dc2626; }

/* ============================================================
   SA CAR SALES 2025 GUIDE
   ============================================================ */

/* ── Guide shell (shared with drivetrain guide) ── */
.guide-breadcrumb {
  font-size: .82rem; color: #64748b; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.guide-breadcrumb a { color: #16a34a; text-decoration: none; }
.guide-breadcrumb a:hover { text-decoration: underline; }

.guide-hero { padding: 32px 28px 24px; }
.guide-hero-inner { max-width: 680px; margin-bottom: 28px; }
.guide-eyebrow {
  font-size: .75rem; font-weight: 700; letter-spacing: 0;
  text-transform: uppercase; color: #16a34a; margin: 0 0 8px;
}
.guide-h1 { font-size: 2.2rem; font-weight: 800; color: #0f172a; margin: 0 0 12px; line-height: 1.2; }
.guide-lead { font-size: 1.05rem; color: #334155; line-height: 1.6; margin: 0 0 10px; }
.guide-source { font-size: .78rem; color: #94a3b8; margin: 0; }

/* ── Stat cards ── */
.sales-stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.sales-stat-card {
  border-radius: 10px; padding: 16px 14px;
  text-align: center;
}
.sales-stat--total     { background: #0f172a; color: #fff; }
.sales-stat--passenger { background: #1e40af; color: #fff; }
.sales-stat--bakkie    { background: #92400e; color: #fff; }
.sales-stat--commercial{ background: #374151; color: #fff; }
.sales-stat-num  { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: 0; }
.sales-stat-label{ display: block; font-size: .72rem; opacity: .85; margin-top: 4px; line-height: 1.3; }

@media (max-width: 640px) {
  .sales-stat-row { grid-template-columns: repeat(2, 1fr); }
  .sales-stat-num { font-size: 1.35rem; }
}

/* ── Table of contents ── */
.guide-toc { padding: 16px 20px; }
.guide-toc-title { font-weight: 700; color: #0f172a; margin: 0 0 8px; font-size: .9rem; }
.guide-toc ul { margin: 0; padding-left: 18px; display: flex; flex-wrap: wrap; gap: 2px 20px; }
.guide-toc li { font-size: .82rem; }
.guide-toc a { color: #16a34a; text-decoration: none; }
.guide-toc a:hover { text-decoration: underline; }

/* ── Section wrapper ── */
.guide-section { padding: 28px; }
.guide-section h2 { font-size: 1.45rem; font-weight: 800; color: #0f172a; margin: 0 0 14px; border-bottom: 2px solid #e2e8f0; padding-bottom: 10px; }
.guide-section h3 { font-size: 1.1rem; font-weight: 700; color: #1e293b; margin: 22px 0 8px; }
.guide-section p { color: #334155; line-height: 1.7; margin: 0 0 12px; }

/* ── Table ── */
.guide-table-wrap { overflow-x: auto; margin: 16px 0; border-radius: 8px; border: 1px solid #e2e8f0; }
.guide-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.guide-table caption { font-size: .78rem; color: #64748b; padding: 8px 12px; text-align: left; font-style: italic; }
.guide-table th { background: #f8fafc; padding: 10px 12px; text-align: left; font-size: .78rem; font-weight: 700; color: #475569; border-bottom: 1.5px solid #e2e8f0; white-space: nowrap; }
.guide-table td { padding: 9px 12px; border-bottom: 1px solid #f1f5f9; color: #1e293b; vertical-align: middle; }
.guide-table tr:last-child td { border-bottom: none; }
.guide-table tr.row-highlight td { background: #f0fdf4; }
.guide-table a { color: #16a34a; text-decoration: none; font-weight: 600; }
.guide-table a:hover { text-decoration: underline; }
.guide-note { font-size: .78rem; color: #94a3b8; margin-top: 8px; }

.trend-up     { color: #16a34a; font-weight: 600; }
.trend-down   { color: #dc2626; font-weight: 600; }
.trend-neutral{ color: #64748b; }

.trend-up-badge   { display: inline-block; background: #dcfce7; color: #15803d; font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 20px; margin-left: 6px; }
.trend-down-badge { display: inline-block; background: #fee2e2; color: #b91c1c; font-size: .7rem; font-weight: 700; padding: 1px 6px; border-radius: 20px; margin-left: 6px; }

/* ── Segment cards ── */
.sales-segment-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin: 20px 0; }
.sales-seg-card { border: 1.5px solid #e2e8f0; border-radius: 12px; padding: 18px 16px; }
.sales-seg-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.sales-seg-icon { font-size: 1.4rem; }
.sales-seg-name { font-weight: 700; color: #0f172a; text-decoration: none; font-size: .95rem; }
.sales-seg-name:hover { color: #16a34a; }
.sales-seg-units { font-size: 1.8rem; font-weight: 800; color: #0f172a; letter-spacing: 0; }
.sales-seg-share { font-size: .8rem; color: #64748b; margin: 4px 0 10px; }
.sales-seg-bar-wrap { background: #f1f5f9; border-radius: 4px; height: 6px; overflow: hidden; }
.sales-seg-bar { background: #16a34a; height: 6px; border-radius: 4px; }

@media (max-width: 600px) { .sales-segment-cards { grid-template-columns: 1fr; } }

/* ── Brand bar chart ── */
.sales-brand-chart { margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.sales-brand-bar-row { display: grid; grid-template-columns: 130px 1fr 48px; align-items: center; gap: 10px; }
.sales-brand-bar-label { font-size: .82rem; font-weight: 600; }
.sales-brand-bar-label a { color: #0f172a; text-decoration: none; }
.sales-brand-bar-label a:hover { color: #16a34a; }
.sales-brand-bar-track { position: relative; background: #f1f5f9; border-radius: 4px; height: 22px; overflow: hidden; }
.sales-brand-bar-fill { background: linear-gradient(90deg, #16a34a, #4ade80); height: 100%; border-radius: 4px; min-width: 2px; }
.sales-brand-bar-val { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: .72rem; font-weight: 700; color: #475569; }
.sales-brand-bar-pct { font-size: .78rem; color: #64748b; text-align: right; }

@media (max-width: 500px) {
  .sales-brand-bar-row { grid-template-columns: 90px 1fr 40px; }
}

/* ── Brand deep-dive blocks ── */
.brand-dive { border-left: 3px solid #16a34a; padding-left: 16px; margin: 22px 0; }
.brand-dive h3 { margin-top: 0; }
.brand-dive h3 a { color: #0f172a; text-decoration: none; }
.brand-dive h3 a:hover { color: #16a34a; }

/* ── Link lists ── */
.guide-link-list { margin: 8px 0 12px; padding-left: 20px; }
.guide-link-list li { margin-bottom: 5px; }
.guide-link-list a { color: #16a34a; font-weight: 600; text-decoration: none; }
.guide-link-list a:hover { text-decoration: underline; }

.guide-pill-link {
  display: inline-block; padding: 3px 10px;
  background: #f0fdf4; color: #16a34a; border: 1px solid #bbf7d0;
  border-radius: 20px; font-size: .78rem; font-weight: 700;
  text-decoration: none; transition: background .15s;
}
.guide-pill-link:hover { background: #dcfce7; }

/* ── Trend cards ── */
.guide-trends-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 16px 0; }
.guide-trend-card { border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 18px 16px; }
.guide-trend-icon { font-size: 1.6rem; margin-bottom: 8px; }
.guide-trend-card h3 { margin: 0 0 8px; font-size: .95rem; color: #0f172a; }
.guide-trend-card p  { font-size: .855rem; color: #475569; margin: 0; line-height: 1.6; }
.guide-trend-card a  { color: #16a34a; }

@media (max-width: 580px) { .guide-trends-grid { grid-template-columns: 1fr; } }

/* ── FAQ ── */
.guide-faq-item { border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.guide-faq-q {
  padding: 14px 16px; cursor: pointer; font-weight: 700; font-size: .9rem;
  color: #0f172a; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.guide-faq-q::-webkit-details-marker { display: none; }
.guide-faq-q::after { content: "+"; font-size: 1.2rem; color: #16a34a; }
details[open] .guide-faq-q::after { content: "−"; }
.guide-faq-a { padding: 0 16px 14px; font-size: .875rem; color: #475569; margin: 0; line-height: 1.7; }

/* ── Related cards ── */
.guide-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
.guide-related-card {
  border: 1.5px solid #e2e8f0; border-radius: 10px; padding: 16px 14px;
  text-decoration: none; display: flex; flex-direction: column; gap: 4px;
  transition: border-color .15s, box-shadow .15s;
}
.guide-related-card:hover { border-color: #16a34a; box-shadow: 0 4px 12px rgba(22,163,74,.1); }
.guide-related-icon { font-size: 1.5rem; }
.guide-related-title { font-size: .9rem; font-weight: 700; color: #0f172a; }
.guide-related-sub  { font-size: .78rem; color: #64748b; line-height: 1.4; }

@media (max-width: 640px) { .guide-related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 400px) { .guide-related-grid { grid-template-columns: 1fr; } }

/* ── Guides Index Page ─────────────────────────────────── */
.gi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}
.gi-grid--3 { grid-template-columns: repeat(3, 1fr); }

.gi-card {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 16px;
    text-decoration: none;
    background: #fff;
    transition: border-color .15s, box-shadow .15s, transform .15s;
}
.gi-card:hover {
    border-color: #16a34a;
    box-shadow: 0 4px 16px rgba(22,163,74,.1);
    transform: translateY(-1px);
}
.gi-card--featured {
    border-color: #dbeafe;
    background: linear-gradient(135deg, #f0f9ff 0%, #fff 100%);
}
.gi-card--featured:hover { border-color: #3b82f6; box-shadow: 0 4px 16px rgba(59,130,246,.12); }
.gi-card-icon { font-size: 1.8rem; flex-shrink: 0; line-height: 1; margin-top: 2px; }
.gi-card-body { display: flex; flex-direction: column; gap: 5px; }
.gi-card-title { font-size: 14px; font-weight: 700; color: #0f172a; line-height: 1.35; margin: 0; }
.gi-card-desc { font-size: 12.5px; color: #475569; line-height: 1.5; margin: 0; }
.gi-card-meta {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #64748b;
    margin-top: 2px;
}

.gi-market-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.gi-market-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 24px;
    border: 1.5px solid #e2e8f0;
    background: #f8fafc;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    text-decoration: none;
    transition: border-color .15s, background .15s;
}
.gi-market-chip:hover { border-color: #16a34a; background: #f0fdf4; }

@media (max-width: 768px) { .gi-grid, .gi-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .gi-grid, .gi-grid--3 { grid-template-columns: 1fr; } }

/* ── Budget Picks Grid (best-cars-under-400000) ── */
.budget-picks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 16px; }
.budget-pick-card {
  border: 1.5px solid #e2e8f0; border-radius: 12px; overflow: hidden;
  display: flex; flex-direction: column; background: #fff;
  transition: box-shadow .15s, border-color .15s;
}
.budget-pick-card:hover { border-color: #16a34a; box-shadow: 0 6px 20px rgba(22,163,74,.1); }
.bpc-category {
  background: #f0fdf4; color: #15803d; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; padding: 6px 14px;
  border-bottom: 1px solid #dcfce7;
}
.bpc-img-wrap { width: 100%; aspect-ratio: 16/9; overflow: hidden; background: #f8fafc; }
.bpc-img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bpc-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bpc-name { font-size: 1rem; font-weight: 700; color: #0f172a; margin: 0; }
.bpc-price { font-size: .95rem; font-weight: 600; color: #16a34a; }
.bpc-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.bpc-chip {
  font-size: .7rem; font-weight: 600; padding: 2px 9px; border-radius: 20px;
  background: #f1f5f9; color: #475569;
}
.bpc-why { font-size: .85rem; color: #334155; line-height: 1.6; margin: 0; }
.bpc-verdict-row { display: flex; flex-direction: column; gap: 4px; }
.bpc-pro { font-size: .82rem; color: #15803d; }
.bpc-con { font-size: .82rem; color: #b45309; }
.bpc-btn {
  display: inline-block; margin-top: auto; padding: 9px 14px; border-radius: 8px;
  border: 1.5px solid #16a34a; color: #16a34a; font-size: .82rem; font-weight: 600;
  text-decoration: none; text-align: center; transition: background .15s, color .15s;
}
.bpc-btn:hover { background: #16a34a; color: #fff; }
.guide-meta { font-size: .82rem; color: #94a3b8; margin: 4px 0 0; }

@media (max-width: 900px) { .budget-picks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .budget-picks-grid { grid-template-columns: 1fr; } }

/* ── Car Finance Guide Table ── */
.finance-table-wrap { overflow-x: auto; margin: 16px 0; }
.finance-table {
  width: 100%; border-collapse: collapse; font-size: .875rem;
  border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden;
}
.finance-table thead { background: #f8fafc; }
.finance-table th {
  padding: 10px 14px; text-align: left; font-weight: 700;
  color: #0f172a; font-size: .8rem; text-transform: uppercase;
  letter-spacing: .04em; border-bottom: 2px solid #e2e8f0;
}
.finance-table td { padding: 10px 14px; border-bottom: 1px solid #f1f5f9; color: #334155; }
.finance-table tbody tr:last-child td { border-bottom: none; }
.finance-table tbody tr:hover td { background: #f0fdf4; }
.finance-monthly { font-weight: 700; color: #15803d; }
.finance-disclaimer {
  font-size: .8rem; color: #64748b; line-height: 1.6;
  background: #f8fafc; border-left: 3px solid #cbd5e1;
  padding: 10px 14px; border-radius: 0 6px 6px 0; margin-top: 12px;
}
.guide-section-note { font-size: .85rem; color: #64748b; margin: -6px 0 14px; }
.finance-tips-list { margin: 0; padding-left: 0; list-style: none; }
.finance-tips-list li {
  padding: 10px 14px 10px 40px; position: relative;
  border-bottom: 1px solid #f1f5f9; font-size: .9rem; color: #334155; line-height: 1.6;
}
.finance-tips-list li::before {
  content: "✓"; position: absolute; left: 12px; top: 11px;
  color: #16a34a; font-weight: 700; font-size: .9rem;
}
.finance-tips-list li:last-child { border-bottom: none; }

/* ── Body-type index page ──────────────────────────────────────────────── */
.bt-index-hero {
  padding: 28px 0 20px;
}
.bt-index-hero h1 {
  font-size: 1.7rem; font-weight: 800; color: #0f172a; margin: 0 0 8px;
}
.bt-index-hero p {
  color: #475569; font-size: 1rem; max-width: 600px; margin: 0;
}
.bt-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}
.bt-index-card {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 14px;
  padding: 20px 18px; text-decoration: none; color: inherit;
  transition: box-shadow .18s ease, border-color .18s ease, transform .15s ease;
}
.bt-index-card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,.10);
  border-color: #cbd5e1;
  transform: translateY(-2px);
}
.bt-index-icon {
  font-size: 2.2rem; line-height: 1; flex-shrink: 0;
}
.bt-index-info { flex: 1; min-width: 0; }
.bt-index-label {
  font-size: 1.05rem; font-weight: 700; color: #0f172a; margin-bottom: 3px;
}
.bt-index-count {
  font-size: .82rem; color: #64748b;
}
.bt-index-price {
  font-size: .82rem; color: #16a34a; font-weight: 600; margin-top: 4px;
}
.bt-index-arrow {
  font-size: 1.2rem; color: #94a3b8; flex-shrink: 0;
  transition: transform .15s ease, color .15s ease;
}
.bt-index-card:hover .bt-index-arrow {
  transform: translateX(4px); color: #334155;
}

@media (max-width: 768px) {
  .bt-index-hero h1 { font-size: 1.4rem; }
  .bt-index-grid { grid-template-columns: 1fr; gap: 12px; }
  .bt-index-card { padding: 16px 14px; gap: 14px; }
  .bt-index-icon { font-size: 1.9rem; }
}
@media (max-width: 480px) {
  .bt-index-hero h1 { font-size: 1.2rem; }
  .bt-index-card { padding: 14px 12px; }
}

/* ── Body-type hub: hero ──────────────────────────────────────────────── */
.bt-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #334155 100%);
  color: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  margin: 16px 0 20px;
  position: relative;
  overflow: hidden;
}
.bt-hero::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.18), transparent 70%);
  pointer-events: none;
}
.bt-hero-content { position: relative; z-index: 1; }
.bt-hero-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #93c5fd;
  background: rgba(59,130,246,.15);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.bt-hero h1 {
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.2;
}
.bt-hero-intro {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 720px;
}
.bt-hero-stats {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.bt-stat { display: flex; flex-direction: column; gap: 2px; }
.bt-stat-num {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.bt-stat-label {
  font-size: .72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ── Filter bar (sticky) ─────────────────────────────────────────────── */
.bt-filter-bar {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}
.bt-filter-group { display: flex; align-items: center; gap: 10px; }
.bt-filter-label {
  font-size: .75rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.bt-filter-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.bt-chip {
  padding: 6px 14px;
  font-size: .85rem;
  font-weight: 600;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .15s ease;
}
.bt-chip:hover { background: #e2e8f0; }
.bt-chip.active {
  background: #0f172a;
  color: #fff;
  border-color: #0f172a;
}

/* ── Card grid ───────────────────────────────────────────────────────── */
.bt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin: 0 0 28px;
}
.bt-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(15,23,42,.10);
  border-color: #cbd5e1;
}
.bt-card-imgwrap {
  position: relative;
  background: #ffffff;
  width: 100%;
  height: 175px;
  overflow: hidden;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bt-card-img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .35s ease;
}
.bt-card:hover .bt-card-img { transform: scale(1.04); }
.bt-card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 10px;
  border-radius: 999px;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  white-space: nowrap;
}
.bt-card-tag.tag-budget { background: #16a34a; }
.bt-card-tag.tag-family { background: #2563eb; }
.bt-card .fuel-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  bottom: auto;
  left: auto;
  width: auto;
  height: auto;
  padding: 4px 10px;
  font-size: .68rem;
  border-radius: 999px;
  z-index: 3;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}
.bt-card-body {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.bt-card-brand {
  font-size: .72rem;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.bt-card-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 6px;
}
.bt-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 2px;
}
.bt-price-label { font-size: .72rem; color: #64748b; font-weight: 500; }
.bt-price-amount { font-size: 1.15rem; font-weight: 800; color: #16a34a; }
.bt-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  font-size: .8rem;
  color: #64748b;
}
.bt-card-cta { color: #2563eb; font-weight: 600; }

/* ── Loader / end ────────────────────────────────────────────────────── */
.bt-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 24px;
  color: #64748b;
  font-size: .9rem;
}
.bt-spinner {
  width: 22px;
  height: 22px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: btspin 0.8s linear infinite;
}
@keyframes btspin { to { transform: rotate(360deg); } }
.bt-end {
  text-align: center;
  padding: 18px;
  color: #94a3b8;
  font-size: .85rem;
  font-style: italic;
}
.bt-empty {
  background: #fff;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  padding: 36px 20px;
  text-align: center;
  margin: 20px 0;
}
.bt-empty-icon { font-size: 2rem; display: block; margin-bottom: 8px; }
.bt-empty p { color: #64748b; margin: 0 0 14px; }

@media (max-width: 768px) {
  .bt-hero { padding: 24px 18px; border-radius: 12px; }
  .bt-hero h1 { font-size: 1.4rem; }
  .bt-hero-intro { font-size: .9rem; }
  .bt-hero-stats { gap: 16px; }
  .bt-stat-num { font-size: 1.4rem; }
  .bt-filter-bar { padding: 10px 12px; gap: 10px; }
  .bt-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
  .bt-card-name { font-size: 1rem; }
  .bt-price-amount { font-size: 1.05rem; }
  .bt-card-imgwrap { height: 140px; }
}
@media (max-width: 480px) {
  .bt-hero { padding: 20px 14px; }
  .bt-hero h1 { font-size: 1.2rem; }
  .bt-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bt-card-body { padding: 12px 12px 14px; }
  .bt-card-brand { font-size: .65rem; }
  .bt-card-name { font-size: .92rem; }
  .bt-price-amount { font-size: .98rem; }
  .bt-card-meta { font-size: .72rem; }
  .bt-card-imgwrap { height: 115px; }
}
@media (max-width: 360px) {
  .bt-grid { grid-template-columns: 1fr; }
  .bt-card-imgwrap { height: 160px; }
}

/* ── Body-type INDEX page (rich UI) ───────────────────────────────────── */
.bti-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 60%, #312e81 100%);
  color: #fff;
  border-radius: 16px;
  padding: 36px 28px;
  margin: 16px 0 24px;
  position: relative;
  overflow: hidden;
}
.bti-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(59,130,246,.22), transparent 50%),
    radial-gradient(circle at 10% 100%, rgba(168,85,247,.18), transparent 50%);
  pointer-events: none;
}
.bti-hero-content { position: relative; z-index: 1; }
.bti-hero-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #c4b5fd;
  background: rgba(168,85,247,.18);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.bti-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.2;
}
.bti-hero-sub {
  font-size: 1rem;
  color: #cbd5e1;
  line-height: 1.6;
  margin: 0;
  max-width: 720px;
}

.bti-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
  margin: 0 0 32px;
}
.bti-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  padding: 22px 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bti-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59,130,246,0), rgba(59,130,246,.04));
  opacity: 0;
  transition: opacity .25s ease;
}
.bti-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 40px rgba(15,23,42,.10);
  border-color: #3b82f6;
}
.bti-card:hover::before { opacity: 1; }
.bti-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.bti-card-icon {
  font-size: 2.4rem;
  line-height: 1;
}
.bti-card-count {
  font-size: .7rem;
  font-weight: 700;
  color: #3b82f6;
  background: #eff6ff;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.bti-card-body { position: relative; }
.bti-card-label {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px;
  line-height: 1.2;
}
.bti-card-meta {
  font-size: .82rem;
  color: #64748b;
  margin: 0 0 10px;
}
.bti-card-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.bti-price-from { font-size: .72rem; color: #64748b; font-weight: 500; }
.bti-price-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: #16a34a;
}
.bti-card-cta {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid #f1f5f9;
  font-size: .85rem;
  font-weight: 600;
  color: #2563eb;
  position: relative;
}

/* Helper section */
.bti-helper {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 28px 24px;
  margin-bottom: 40px;
}
.bti-helper h2 {
  font-size: 1.4rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 18px;
}
.bti-helper-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.bti-helper-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
}
.bti-helper-icon { font-size: 1.6rem; display: block; margin-bottom: 8px; }
.bti-helper-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}
.bti-helper-item p {
  font-size: .85rem;
  color: #475569;
  line-height: 1.5;
  margin: 0;
}
.bti-helper-item p a { color: #2563eb; font-weight: 600; }

@media (max-width: 768px) {
  .bti-hero { padding: 24px 18px; }
  .bti-hero h1 { font-size: 1.55rem; }
  .bti-hero-sub { font-size: .9rem; }
  .bti-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
  .bti-card { padding: 18px 18px 16px; }
  .bti-card-label { font-size: 1.1rem; }
  .bti-helper { padding: 22px 18px; }
  .bti-helper h2 { font-size: 1.2rem; }
}
@media (max-width: 480px) {
  .bti-hero h1 { font-size: 1.3rem; }
  .bti-grid { grid-template-columns: 1fr; }
}

/* ── Home page v2: new hero ──────────────────────────────────────────── */
.home-hero-v2 {
  background:
    radial-gradient(circle at 10% 90%, rgba(59,130,246,.15), transparent 50%),
    radial-gradient(circle at 95% 10%, rgba(16,185,129,.12), transparent 50%),
    linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  color: #fff;
  border-radius: 18px;
  padding: 44px 36px;
  margin: 14px 0 24px;
  position: relative;
  overflow: hidden;
}
.home-hero-inner { position: relative; z-index: 1; max-width: 900px; }
.home-hero-eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #6ee7b7;
  background: rgba(16,185,129,.15);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.home-hero-v2 h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  margin: 0 0 12px;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.home-hero-v2 .home-hero-sub {
  color: #cbd5e1;
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 720px;
}
.home-hero-v2 .home-hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.home-hero-v2 .btn-primary {
  background: #10b981;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.home-hero-v2 .btn-primary:hover {
  background: #059669;
  transform: translateY(-1px);
}
.btn-outline-inv {
  background: transparent;
  color: #fff;
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.3);
  transition: background .15s ease, border-color .15s ease;
  cursor: pointer;
  font: inherit;
}
.btn-outline-inv:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.5);
}
.home-hero-stats {
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hs-item { display: flex; flex-direction: column; gap: 2px; }
.hs-num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hs-lbl {
  font-size: .72rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: 4px;
}
.home-hero-foot {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
}
.home-hero-allbody {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
  font-size: .9rem;
}
.home-hero-allbody:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .home-hero-v2 { padding: 28px 20px; border-radius: 14px; }
  .home-hero-v2 h1 { font-size: 1.55rem; }
  .home-hero-v2 .home-hero-sub { font-size: .92rem; }
  .home-hero-stats { gap: 22px; padding-top: 18px; }
  .hs-num { font-size: 1.3rem; }
}
@media (max-width: 480px) {
  .home-hero-v2 { padding: 22px 16px; }
  .home-hero-v2 h1 { font-size: 1.3rem; }
  .home-hero-stats { gap: 16px; }
  .hs-num { font-size: 1.15rem; }
}

/* ── Model detail: subtle UX polish ─────────────────────────────────── */
/* Soften the hero section with gradient background */
.hero-section.card {
  background: linear-gradient(to bottom right, #ffffff, #f8fafc 60%, #f1f5f9);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}

/* Price block — give it more emphasis */
.hero-price-block {
  background: linear-gradient(135deg, #f8fafc, #ffffff);
  border: 1px solid #e2e8f0;
  border-left: 4px solid #16a34a;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.hpb-onroad-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: #16a34a;
  line-height: 1.1;
}
.hpb-ex { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.hpb-ex-label {
  font-size: .72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}
.hpb-ex-value {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

/* Trust pills — refined */
.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.htr-pill {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 4px 9px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #334155;
}
.htr-pill.htr-fuel-petrol { background: #fef3c7; color: #92400e; }
.htr-pill.htr-fuel-diesel { background: #dbeafe; color: #1e40af; }
.htr-pill.htr-fuel-hybrid { background: #d1fae5; color: #065f46; }
.htr-pill.htr-fuel-electric { background: #ede9fe; color: #5b21b6; }

/* Hero title — tighter and bolder */
.hero-title {
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.hero-subtitle {
  color: #64748b;
  font-size: .92rem;
  margin: 0 0 14px;
}

/* CTAs in hero */
.hero-cta {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.hero-cta .btn-primary {
  background: #16a34a;
  color: #fff;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.hero-cta .btn-primary:hover {
  background: #15803d;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .hero-section.card { padding: 22px 18px; }
  .hero-title { font-size: 1.35rem; }
  .hpb-onroad-value { font-size: 1.4rem; }
}
@media (max-width: 480px) {
  .hero-title { font-size: 1.2rem; }
  .hpb-onroad-value { font-size: 1.25rem; }
  .hero-price-block { padding: 12px 14px; }
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
  margin: 44px 0 22px;
  padding: 0;
  color: #dbeafe;
  background: #0f172a;
  border: 1px solid #1e293b;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .18);
}

.site-footer a {
  color: #dbeafe;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

.site-footer-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, .28), rgba(15, 23, 42, 0) 48%),
    linear-gradient(90deg, #0f172a, #111827);
  border-bottom: 1px solid rgba(148, 163, 184, .22);
}

.site-footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.site-footer-logo-object {
  display: flex;
  flex: 0 0 auto;
}

.site-footer-logo {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
}

.site-footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1.18rem;
  line-height: 1.1;
}

.site-footer-brand span {
  display: block;
  max-width: 680px;
  margin-top: 4px;
  color: #bfdbfe;
  font-size: .94rem;
  line-height: 1.45;
}

.site-footer-trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.site-footer-trust span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  color: #e0f2fe;
  background: rgba(15, 23, 42, .52);
  border: 1px solid rgba(125, 211, 252, .25);
  border-radius: 999px;
  font-size: .76rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  padding: 24px;
}

.site-footer-col h2 {
  margin: 0 0 10px;
  color: #fff;
  font-size: .78rem;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-footer-col a {
  display: block;
  padding: 5px 0;
  color: #cbd5e1;
  font-size: .9rem;
  line-height: 1.35;
}

.site-footer-guides {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 0 24px 22px;
}

.site-footer-guides strong {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.site-footer-guides a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: #dbeafe;
  background: rgba(30, 41, 59, .72);
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 999px;
  font-size: .82rem;
}

.site-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 24px;
  color: #94a3b8;
  background: rgba(2, 6, 23, .4);
  border-top: 1px solid rgba(148, 163, 184, .18);
  font-size: .82rem;
}

.site-footer-bottom span:last-child {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-footer-bottom a {
  color: #bfdbfe;
}

@media (max-width: 860px) {
  .site-footer-hero {
    grid-template-columns: 1fr;
  }

  .site-footer-trust {
    justify-content: flex-start;
  }

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

@media (max-width: 560px) {
  .site-footer {
    margin: 26px 0 14px;
    border-radius: 10px;
  }

  .site-footer-hero,
  .site-footer-grid,
  .site-footer-bottom {
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-footer-hero {
    padding-top: 14px;
    padding-bottom: 14px;
    gap: 10px;
  }

  .site-footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 8px;
  }

  .site-footer-brand {
    gap: 10px;
  }

  .site-footer-brand strong {
    font-size: 1rem;
  }

  .site-footer-brand span {
    margin-top: 2px;
    font-size: .78rem;
    line-height: 1.35;
  }

  .site-footer-trust {
    display: none;
  }

  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-footer-col h2 {
    margin-bottom: 6px;
    font-size: .66rem;
  }

  .site-footer-col a {
    padding: 3px 0;
    font-size: .78rem;
    line-height: 1.25;
  }

  .site-footer-guides {
    gap: 6px;
    padding: 0 14px 12px;
  }

  .site-footer-guides strong {
    flex-basis: 100%;
    font-size: .68rem;
  }

  .site-footer-guides a {
    min-height: 24px;
    padding: 4px 8px;
    font-size: .72rem;
  }

  .site-footer-guides a:nth-of-type(n+7) {
    display: none;
  }

  .site-footer-bottom {
    flex-direction: column;
    gap: 8px;
    padding-top: 12px;
    padding-bottom: 12px;
    font-size: .72rem;
  }

  .site-footer-bottom span:last-child {
    justify-content: flex-start;
    gap: 10px;
  }
}

@media (max-width: 520px) {
  .brand-directory-toolbar {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .brand-directory-link {
    min-height: 38px;
  }

  .brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .brand-grid:not(.is-expanded):not(.is-filtering) .brand-grid-item:nth-child(n+13) {
    display: none;
  }

  .brand-grid-item {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 58px;
    padding: 8px;
    gap: 8px;
  }

  .brand-grid-logo {
    width: 42px;
    height: 34px;
  }

  .brand-grid-logo img {
    width: 34px;
    height: 22px;
  }

  .brand-grid-name {
    font-size: 12px;
  }

  .brand-grid-count {
    font-size: 10px;
  }

  .brand-grid-arrow {
    display: none;
  }
}

/* Final mobile viewport guard for catalogue and hub pages */
@media (max-width: 600px) {
  body {
    padding-left: 0;
    padding-right: 0;
  }

  .page-container {
    width: min(100%, 390px);
    max-width: 390px;
    margin-left: 0;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    overflow: hidden;
  }

  .home-hero-v2,
  .bt-hero,
  .bl-directory-shell,
  .card {
    width: 100%;
    max-width: 100%;
  }

  .home-hero-v2 h1,
  .home-hero-v2 .home-hero-sub,
  .bt-hero h1,
  .bt-hero-intro,
  .bl-directory-head h1,
  .bl-directory-head p {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .page-container {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Premium car-prices guide refinements */
.cpg-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
  gap: 24px;
  align-items: stretch;
  padding: 34px 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a 0%, #17345a 58%, #0f766e 130%);
  color: #fff;
  margin: 16px 0 18px;
  overflow: hidden;
}
.cpg-hero-main { min-width: 0; }
.cpg-eyebrow,
.cpg-section-kicker,
.cpg-panel-label,
.cpg-insight-kicker {
  display: inline-flex;
  align-items: center;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.cpg-hero .cpg-h1 {
  margin: 12px 0 12px;
  color: #fff;
  font-size: 42px;
  line-height: 1.05;
}
.cpg-hero .cpg-subtitle {
  max-width: 680px;
  color: #dbeafe;
  font-size: 16px;
}
.cpg-hero-panel {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(15,23,42,.42);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}
.cpg-hero-panel strong {
  display: block;
  margin: 10px 0 14px;
  color: #fff;
  font-size: 24px;
  line-height: 1.2;
}
.cpg-range-line {
  height: 8px;
  margin: 12px 0 16px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.16);
}
.cpg-range-line span {
  display: block;
  width: 82%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #60a5fa);
}
.cpg-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.cpg-panel-grid div {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
}
.cpg-panel-grid span {
  display: block;
  color: #9ca3af;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}
.cpg-panel-grid b {
  display: block;
  margin-top: 3px;
  color: #fff;
  font-size: 14px;
}
.cpg-jump-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  margin: 0 0 18px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: rgba(255,255,255,.96);
}
.cpg-jump-nav a,
.cpg-filter-tab {
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.cpg-jump-nav a:hover,
.cpg-filter-tab.is-active {
  border-color: #0f172a;
  background: #0f172a;
  color: #fff;
}
.cpg-insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 22px;
}
.cpg-insight-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  box-shadow: 0 1px 5px rgba(15,23,42,.04);
}
.cpg-insight-card strong {
  font-size: 16px;
  line-height: 1.25;
}
.cpg-insight-card span:last-child {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}
.cpg-insight-card--accent {
  border-color: #bbf7d0;
  background: #f0fdf4;
}
.cpg-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}
.cpg-section-head .cpg-h2 {
  margin: 4px 0 0;
}
.cpg-head-link {
  flex-shrink: 0;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.cpg-budget-card {
  position: relative;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}
.cpg-budget-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.cpg-budget-top span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}
.cpg-budget-meter {
  height: 6px;
  margin: 8px 0 14px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}
.cpg-budget-meter i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #2563eb);
}
.cpg-section-head--table {
  align-items: center;
}
.cpg-table-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: min(100%, 300px);
}
.cpg-table-search span {
  color: #64748b;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
.cpg-table-search input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
}
.cpg-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 14px;
}
.cpg-filter-tab {
  cursor: pointer;
}
.cpg-table-empty {
  margin: 14px 0 0;
  color: #64748b;
  font-weight: 700;
}

/* Finance guide upgrade */
.finance-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr);
  gap: 22px;
  align-items: stretch;
  padding: 34px 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 70%, #065f46 130%);
  color: #fff;
}
.finance-eyebrow,
.finance-warning-label {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.finance-hero h1 {
  margin: 10px 0 12px;
  color: #fff;
  font-size: 40px;
  line-height: 1.05;
}
.finance-hero .guide-lead,
.finance-hero .guide-meta {
  color: #dbeafe;
}
.finance-hero-panel {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(15,23,42,.44);
}
.finance-hero-panel span {
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.finance-hero-panel strong {
  display: block;
  margin: 10px 0;
  color: #fff;
  font-size: 22px;
  line-height: 1.2;
}
.finance-hero-panel p {
  margin: 0;
  color: #cbd5e1;
}
.finance-jump-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 22px;
}
.finance-jump-nav a {
  padding: 8px 12px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.finance-intel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.finance-intel-card {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.finance-intel-card span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.finance-intel-card strong {
  display: block;
  margin: 3px 0 6px;
  color: #0f172a;
  font-size: 24px;
}
.finance-intel-card p {
  margin: 0;
  color: #475569;
  font-size: 13px;
}
.finance-equation {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
}
.finance-equation span,
.finance-equation strong {
  padding: 9px 11px;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
}
.finance-equation b {
  color: #94a3b8;
}
.finance-warning {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(240px, .75fr);
  gap: 20px;
  padding: 22px;
  border: 1px solid #fed7aa;
  border-radius: 8px;
  background: #fff7ed;
}
.finance-warning h2 {
  margin-top: 6px;
}
.finance-warning ul {
  margin: 0;
  padding-left: 20px;
  color: #7c2d12;
  font-weight: 700;
}
.finance-tool-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 18px;
}
.finance-tool-kicker {
  display: inline-block;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.finance-tool-link {
  flex-shrink: 0;
  padding: 9px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.finance-tool-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.05fr);
  gap: 18px;
}
.finance-tool-controls,
.finance-tool-results,
.finance-yearly-wrap {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.finance-tool-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
}
.finance-tool-controls label,
.finance-finder-controls label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.finance-tool-controls label span,
.finance-finder-controls label span {
  color: #475569;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.finance-tool-controls input,
.finance-tool-controls select,
.finance-finder-controls input,
.finance-finder-controls select {
  width: 100%;
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}
.finance-tool-controls input[type="range"] {
  padding: 0;
  accent-color: #16a34a;
}
.finance-tool-controls label strong {
  color: #0f172a;
  font-size: 13px;
}
.finance-tool-results {
  padding: 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}
.finance-result-main {
  padding-bottom: 14px;
  border-bottom: 1px solid #e2e8f0;
}
.finance-result-main span,
.finance-result-grid span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.finance-result-main strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 38px;
  line-height: 1;
}
.finance-result-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}
.finance-result-grid div {
  padding: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.finance-result-grid strong {
  display: block;
  margin-top: 3px;
  color: #0f172a;
  font-size: 15px;
}
.finance-stack-bar {
  display: flex;
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}
.finance-stack-bar span:nth-child(1) { background: #16a34a; }
.finance-stack-bar span:nth-child(2) { background: #f59e0b; }
.finance-stack-bar span:nth-child(3) { background: #1d4ed8; }
.finance-yearly-wrap {
  margin-top: 18px;
  padding: 16px;
}
.finance-yearly-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}
.finance-yearly-head h3 {
  margin: 0;
  color: #0f172a;
}
.finance-yearly-head p {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}
.finance-table-wrap--compact {
  margin: 0;
}
.finance-finder-controls {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(0, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.finance-model-grid,
.budget-live-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.finance-model-card,
.budget-live-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 7px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.finance-model-card:hover,
.budget-live-card:hover {
  border-color: #16a34a;
  box-shadow: 0 8px 22px rgba(15,23,42,.08);
  transform: translateY(-1px);
}
.finance-model-card--stretch {
  border-color: #fed7aa;
  background: #fffaf5;
}
.finance-model-card img,
.budget-live-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #f8fafc;
}
.finance-model-meta,
.budget-live-card span {
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.finance-model-card strong,
.budget-live-card strong {
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
}
.finance-model-card span:not(.finance-model-meta),
.budget-live-card b {
  color: #334155;
  font-size: 13px;
  font-style: normal;
}
.finance-model-card b,
.budget-live-card em {
  color: #15803d;
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
}
.finance-model-empty {
  margin: 12px 0 0;
  color: #92400e;
  font-weight: 800;
}
.finance-keyword-grid,
.finance-calc-capabilities,
.finance-formula-grid,
.finance-computation-steps,
.finance-budget-shortcuts {
  display: grid;
  gap: 12px;
}
.finance-keyword-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.finance-keyword-cluster,
.finance-calc-capabilities div,
.finance-formula-panel,
.finance-computation-steps div,
.finance-budget-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
}
.finance-keyword-cluster strong,
.finance-calc-capabilities strong,
.finance-formula-panel span,
.finance-computation-steps strong,
.finance-budget-card strong {
  display: block;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
}
.finance-keyword-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 10px;
}
.finance-keyword-tags a {
  padding: 6px 9px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}
.finance-calc-capabilities {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}
.finance-calc-capabilities span,
.finance-budget-card > span {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.finance-calc-capabilities p,
.finance-formula-panel p,
.finance-computation-steps span {
  margin: 7px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}
.finance-formula-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 16px;
}
.finance-formula-panel code {
  display: block;
  margin-top: 10px;
  padding: 11px;
  overflow-x: auto;
  border-radius: 8px;
  background: #0f172a;
  color: #dbeafe;
  font-size: 13px;
  line-height: 1.5;
}
.finance-computation-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 12px;
}
.finance-budget-shortcuts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 16px;
}
.finance-budget-card > span {
  margin-top: 5px;
  text-transform: none;
  font-size: 12px;
  line-height: 1.35;
}
.finance-budget-models {
  display: grid;
  gap: 7px;
  margin-top: 11px;
}
.finance-budget-models a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #f8fafc;
  color: #0f172a;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.finance-budget-models em {
  flex-shrink: 0;
  color: #15803d;
  font-style: normal;
  font-weight: 900;
}
.budget-band-grid,
.budget-decision-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.budget-decision-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.budget-band-card,
.budget-decision-grid div {
  padding: 15px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.budget-band-card {
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-decoration: none;
}
.budget-band-card strong,
.budget-decision-grid strong {
  color: #0f172a;
  font-size: 16px;
  line-height: 1.25;
}
.budget-band-card span,
.budget-decision-grid p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}
.budget-band-card b,
.budget-decision-grid span {
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}
.budget-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.budget-link-row a {
  padding: 8px 11px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}
.guide-rail {
  margin: 18px 0 24px;
  padding: 16px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  box-shadow: 0 8px 24px rgba(15,23,42,.05);
}
.guide-rail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}
.guide-rail-head::-webkit-details-marker { display: none; }
.guide-rail-head span {
  display: block;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.guide-rail-head strong {
  display: block;
  margin-top: 2px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.2;
}
.guide-rail-head b {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 900;
}
.guide-rail-head i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dbeafe;
  font-size: 18px;
  font-style: normal;
  line-height: 1;
  transition: transform .15s ease;
}
.guide-rail[open] .guide-rail-head i {
  transform: rotate(45deg);
}
.guide-rail-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.guide-rail-link {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.guide-rail-link:hover {
  border-color: #16a34a;
  box-shadow: 0 8px 20px rgba(15,23,42,.08);
  transform: translateY(-1px);
}
.guide-rail-link.is-active {
  border-color: #0f172a;
  background: #0f172a;
}
.guide-rail-link span {
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.guide-rail-link strong {
  color: inherit;
  font-size: 14px;
  line-height: 1.25;
}
.guide-rail-link em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}
.guide-rail-link.is-active span,
.guide-rail-link.is-active em {
  color: #cbd5e1;
}
.guide-rail-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.guide-rail-tools a {
  padding: 7px 10px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #15803d;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}
.guide-page-hero {
  padding: 30px 28px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 68%, #0f766e 130%);
  color: #fff;
  overflow: hidden;
}
.guide-page-hero h1 {
  color: #fff;
  font-size: 40px;
  line-height: 1.05;
}
.guide-page-hero .muted,
.guide-page-hero p {
  color: #dbeafe;
}
.guide-index-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr);
  gap: 22px;
  align-items: end;
  padding: 32px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 66%, #0f766e 132%);
  color: #fff;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15,23,42,.12);
}
.guide-index-copy {
  min-width: 0;
}
.guide-index-kicker {
  display: inline-flex;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.guide-index-hero h1 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 40px;
  line-height: 1.08;
  letter-spacing: 0;
}
.guide-index-hero p {
  max-width: 760px;
  margin: 0;
  color: #dbeafe;
  font-size: 16px;
  line-height: 1.6;
}
.guide-index-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.guide-index-stats span {
  display: block;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 8px;
  background: rgba(15,23,42,.38);
}
.guide-index-stats strong,
.guide-index-stats em {
  display: block;
}
.guide-index-stats strong {
  color: #fff;
  font-size: 22px;
  line-height: 1;
  letter-spacing: 0;
}
.guide-index-stats em {
  margin-top: 5px;
  color: #cbd5e1;
  font-size: 12px;
  font-style: normal;
  line-height: 1.25;
}

@media (max-width: 760px) {
  .cpg-hero,
  .finance-hero,
  .guide-index-hero,
  .finance-warning {
    grid-template-columns: 1fr;
  }
  .cpg-insight-grid,
  .finance-intel-grid {
    grid-template-columns: 1fr;
  }
  .finance-tool-head,
  .finance-yearly-head {
    flex-direction: column;
  }
  .finance-tool-grid,
  .finance-tool-controls,
  .finance-result-grid,
  .finance-finder-controls,
  .finance-model-grid,
  .finance-keyword-grid,
  .finance-calc-capabilities,
  .finance-formula-grid,
  .finance-computation-steps,
  .finance-budget-shortcuts,
  .budget-live-grid,
  .budget-band-grid,
  .budget-decision-grid,
  .guide-rail-list {
    grid-template-columns: 1fr;
  }
  .guide-rail-head {
    flex-direction: column;
  }
  .cpg-section-head,
  .cpg-section-head--table {
    flex-direction: column;
  }
  .cpg-table-search {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .cpg-hero,
  .finance-hero,
  .guide-page-hero {
    padding: 24px 18px;
    border-radius: 8px;
  }
  .guide-rail {
    padding: 12px;
    border-radius: 8px;
  }
  .cpg-hero .cpg-h1,
  .finance-hero h1,
  .guide-page-hero h1,
  .guide-index-hero h1 {
    font-size: 30px;
  }
  .finance-result-main strong {
    font-size: 32px;
  }
  .guide-index-hero {
    padding: 24px 18px;
  }
  .cpg-panel-grid {
    grid-template-columns: 1fr;
  }
  .cpg-jump-nav {
    position: static;
  }
}

/* ================================================================
   SHARED SOUTH AFRICA BUYING GUIDES
   Namespaced so ranking and calculator layouts cannot leak into
   model, comparison or legacy guide pages.
   ================================================================ */
.home-guide-tiles {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .home-guide-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.buying-guide-toc {
  max-width: 100%;
}

.buying-guide-kid-summary {
  margin: 18px 0 0;
  padding: 19px 21px;
  border: 1px solid #bbf7d0;
  border-left: 5px solid #16a34a;
  background: linear-gradient(145deg, #f0fdf4, #fff);
}

.buying-guide-kid-summary h2 {
  margin: 5px 0 7px;
  color: #14532d;
  font-size: 20px;
}

.buying-guide-kid-summary p {
  margin: 0;
  color: #27553a;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.65;
}

.buying-guide-opening,
.buying-guide-ranking,
.buying-guide-calculator,
.buying-guide-visuals,
.buying-guide-section,
.buying-guide-checklists,
.buying-guide-verdict,
.buying-guide-methodology,
.buying-guide-related {
  min-width: 0;
  overflow: hidden;
}

.buying-guide-fact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
  margin: 18px 0 0;
}

.buying-guide-fact-grid > div {
  min-width: 0;
  padding: 15px;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  background: linear-gradient(145deg, #f8fbff, #fff);
}

.buying-guide-fact-grid dt {
  color: #526173;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .055em;
  line-height: 1.3;
  text-transform: uppercase;
}

.buying-guide-fact-grid dd {
  margin: 7px 0 0;
  color: #0f172a;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.buying-guide-fact-grid p {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.55;
}

.buying-guide-note {
  display: block;
  margin: 16px 0;
  padding: 15px 17px;
  border: 1px solid #bfdbfe;
  border-left: 4px solid #2563eb;
  border-radius: 10px;
  background: #eff6ff;
  color: #1e3a5f;
}

.buying-guide-note > strong {
  display: block;
  margin-bottom: 4px;
  color: #1e3a8a;
  font-size: 13px;
}

.buying-guide-note p,
.buying-guide-note ul {
  margin: 0;
  color: #334e68;
  font-size: 13px;
  line-height: 1.65;
}

.buying-guide-note ul {
  padding-left: 20px;
}

.buying-guide-ranking-disclosure {
  display: block;
  margin: 14px 0 0;
  padding: 14px 16px;
  border: 1px solid #d8e2ee;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
}

.buying-guide-ranking-disclosure strong {
  display: block;
  margin-bottom: 4px;
  color: #0f172a;
  font-size: 13px;
}

.buying-guide-ranking-disclosure p {
  margin: 5px 0 0;
  font-size: 12px;
  line-height: 1.55;
}

.buying-guide-ranking-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.buying-guide-model-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 23, 42, .055);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.buying-guide-model-card[hidden] {
  display: none !important;
}

.buying-guide-glossary .buying-guide-fact-grid dd {
  font-size: 14px;
  font-weight: 650;
  line-height: 1.55;
}

.buying-guide-model-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 10px 26px rgba(30, 64, 175, .11);
  transform: translateY(-2px);
}

.buying-guide-model-card__topline {
  display: flex;
  min-height: 35px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-bottom: 1px solid #e8eef6;
  background: #f8fafc;
}

.buying-guide-model-card__rank {
  display: inline-grid;
  min-width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 999px;
  background: #1e40af;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.buying-guide-model-card__badges {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.buying-guide-model-card__badges span {
  max-width: 100%;
  padding: 4px 7px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .035em;
  line-height: 1.2;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.buying-guide-model-card__figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #f1f5f9;
}

.buying-guide-model-card__figure > a {
  position: relative;
  display: block;
  min-height: 0;
}

.buying-guide-model-card__figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform .18s ease;
}

.buying-guide-model-card:hover .buying-guide-model-card__figure img {
  transform: scale(1.012);
}

.buying-guide-model-card__body {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  padding: 17px;
}

.buying-guide-model-card__eyebrow {
  color: #2563eb;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.buying-guide-model-card__body h3 {
  margin: 6px 0 4px;
  font-size: 19px;
  line-height: 1.2;
}

.buying-guide-model-card__body h3 a {
  color: #0f172a;
  text-decoration: none;
}

.buying-guide-model-card__body h3 a:hover {
  color: #1d4ed8;
}

.buying-guide-model-card__variant,
.buying-guide-model-card__summary,
.buying-guide-model-card__fit,
.buying-guide-model-card__watch {
  margin: 6px 0 0;
  color: #526173;
  font-size: 12px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.buying-guide-model-card__variant strong,
.buying-guide-model-card__fit strong,
.buying-guide-model-card__watch strong {
  color: #243b53;
}

.buying-guide-model-card__price {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 12px 0 4px;
  padding: 10px 11px;
  border-radius: 9px;
  background: #f0fdf4;
}

.buying-guide-model-card__price span {
  color: #52705d;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.buying-guide-model-card__price strong {
  color: #15803d;
  font-size: 17px;
  line-height: 1.15;
  text-align: right;
  overflow-wrap: anywhere;
}

.buying-guide-model-card__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 13px 0 0;
}

.buying-guide-model-card__facts div {
  min-width: 0;
  padding: 8px;
  border: 1px solid #e5eaf1;
  border-radius: 8px;
  background: #fafcff;
}

.buying-guide-model-card__facts dt {
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.buying-guide-model-card__facts dd {
  margin: 3px 0 0;
  color: #1e293b;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.buying-guide-model-card__watch {
  padding: 8px 10px;
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
  background: #fffbeb;
  color: #6b4f12;
}

.buying-guide-model-card__actions {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 12px;
  margin-top: auto;
  padding-top: 15px;
}

.buying-guide-model-card__actions .engine-inline-cta {
  font-size: 11px;
}

.buying-guide-model-card__source {
  color: #64748b;
  font-size: 10px;
  font-weight: 700;
}

.buying-guide-calculator__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  gap: 18px;
  margin-top: 20px;
  align-items: start;
}

.buying-guide-calculator__controls {
  display: grid;
  min-width: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid #dbe3ee;
  border-radius: 13px;
  background: #f8fafc;
}

.buying-guide-calculator__controls label {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 6px;
  color: #334155;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.buying-guide-calculator__controls input,
.buying-guide-calculator__controls select {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  box-sizing: border-box;
  padding: 9px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}

.buying-guide-calculator__controls input:focus,
.buying-guide-calculator__controls select:focus {
  border-color: #2563eb;
  outline: 3px solid rgba(37, 99, 235, .14);
}

.buying-guide-calculator__controls small {
  color: #64748b;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.45;
}

.buying-guide-calculator__results {
  min-width: 0;
  padding: 18px;
  border: 1px solid #bfdbfe;
  border-radius: 13px;
  background: linear-gradient(145deg, #eff6ff, #fff);
}

.buying-guide-calculator__primary {
  padding: 16px;
  border-radius: 11px;
  background: #172554;
  color: #fff;
}

.buying-guide-calculator__primary span {
  display: block;
  color: #bfdbfe;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.buying-guide-calculator__primary output {
  display: block;
  margin-top: 7px;
  color: #fff;
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 950;
  letter-spacing: -.025em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.buying-guide-calculator__results dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.buying-guide-calculator__results dl div {
  min-width: 0;
  padding: 10px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
}

.buying-guide-calculator__results dt {
  color: #64748b;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.buying-guide-calculator__results dd {
  margin: 5px 0 0;
  color: #1e3a8a;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.buying-guide-calculator__message,
.buying-guide-noscript {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fffbeb;
  color: #704d0b;
  font-size: 11px;
  line-height: 1.55;
}

.buying-guide-visuals__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin-top: 18px;
}

.buying-guide-visuals__grid .engine-guide-figure {
  min-width: 0;
  margin: 0;
}

.buying-guide-visuals__grid .engine-guide-figure img {
  width: 100%;
  height: auto;
}

.buying-guide-visuals__grid .engine-guide-image-credit {
  text-align: left;
}

.buying-guide-mobile-image-hint {
  display: none;
}

@media (max-width: 520px) {
  .buying-guide-visuals__grid .editorial-image-frame {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .buying-guide-visuals__grid .editorial-image-frame img {
    width: 900px;
    max-width: none;
  }

  .buying-guide-visuals__grid .guide-image-watermark {
    position: sticky;
    float: right;
    right: 7px;
    bottom: 7px;
    margin-top: -30px;
    margin-right: 7px;
  }

  .buying-guide-visuals__grid .buying-guide-mobile-image-hint {
    display: block;
    color: #1e3a8a;
    font-size: 12px;
    font-weight: 800;
  }
}

.buying-guide-section__lede {
  color: #334e68;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.65;
}

.buying-guide-explainer-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.buying-guide-explainer-list li {
  display: grid;
  min-width: 0;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  color: #526173;
  font-size: 13px;
  line-height: 1.55;
}

.buying-guide-explainer-list strong {
  color: #172554;
}

.buying-guide-table-wrap {
  width: 100%;
  max-width: 100%;
  margin: 18px 0;
  overflow-x: auto;
  border: 1px solid #dbe3ee;
  border-radius: 11px;
  -webkit-overflow-scrolling: touch;
}

.buying-guide-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: #fff;
  font-size: 12px;
}

.buying-guide-table caption {
  padding: 11px 13px;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 850;
  text-align: left;
}

.buying-guide-table th,
.buying-guide-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e8eef6;
  color: #334155;
  line-height: 1.45;
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.buying-guide-table thead th {
  background: #f8fafc;
  color: #172554;
  font-size: 10px;
  letter-spacing: .035em;
  text-transform: uppercase;
}

.buying-guide-table tbody th {
  color: #0f172a;
  font-weight: 850;
}

.buying-guide-table tbody tr:last-child th,
.buying-guide-table tbody tr:last-child td {
  border-bottom: 0;
}

.buying-guide-checklists__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.buying-guide-checklists__grid article {
  min-width: 0;
  padding: 17px;
  border: 1px solid #dbe3ee;
  border-radius: 12px;
  background: #fbfdff;
}

.buying-guide-checklists__grid h3 {
  margin: 0 0 7px;
  color: #172554;
}

.buying-guide-checklists__grid p {
  color: #64748b;
  font-size: 12px;
}

.buying-guide-checklists__grid ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.buying-guide-checklists__grid li {
  position: relative;
  padding-left: 24px;
  color: #405269;
  font-size: 12px;
  line-height: 1.55;
}

.buying-guide-checklists__grid li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  border-radius: 5px;
  background: #dcfce7;
  color: #15803d;
  content: "✓";
  font-size: 10px;
  font-weight: 900;
}

.buying-guide-methodology ol {
  display: grid;
  gap: 10px;
  margin: 16px 0;
  padding: 0;
  counter-reset: buying-method;
  list-style: none;
}

.buying-guide-methodology ol li {
  position: relative;
  display: grid;
  min-width: 0;
  gap: 3px;
  padding: 13px 14px 13px 49px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
  counter-increment: buying-method;
}

.buying-guide-methodology ol li::before {
  position: absolute;
  top: 12px;
  left: 13px;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 50%;
  background: #1e40af;
  color: #fff;
  content: counter(buying-method);
  font-size: 11px;
  font-weight: 900;
}

.buying-guide-methodology ol strong {
  color: #172554;
  font-size: 13px;
}

.buying-guide-methodology ol span {
  color: #526173;
  font-size: 12px;
  line-height: 1.55;
}

.buying-guide-related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.buying-guide-related__grid > a {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 6px;
  padding: 15px;
  border: 1px solid #dbe3ee;
  border-radius: 11px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.buying-guide-related__grid > a:hover {
  border-color: #93c5fd;
  background: #f8fbff;
}

.buying-guide-related__grid strong {
  color: #172554;
  font-size: 14px;
  line-height: 1.35;
}

.buying-guide-related__grid span {
  color: #64748b;
  font-size: 11px;
  line-height: 1.5;
}

.buying-guide-related__grid em {
  margin-top: auto;
  padding-top: 5px;
  color: #1d4ed8;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.buying-guide-source-list li > span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
}

.buying-guide-source-list li > p {
  margin: 5px 0 0;
  color: #526173;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .buying-guide-ranking-grid,
  .buying-guide-related__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .buying-guide-calculator__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .buying-guide-ranking-grid,
  .buying-guide-calculator__controls,
  .buying-guide-calculator__results dl,
  .buying-guide-visuals__grid,
  .buying-guide-explainer-list,
  .buying-guide-checklists__grid,
  .buying-guide-related__grid {
    grid-template-columns: 1fr;
  }

  .buying-guide-model-card:hover {
    transform: none;
  }

  .buying-guide-model-card__figure img {
    aspect-ratio: auto;
  }

  .buying-guide-table {
    min-width: 560px;
  }
}

@media (max-width: 480px) {
  .buying-guide-kid-summary {
    padding: 16px;
  }

  .buying-guide-model-card__body,
  .buying-guide-calculator__controls,
  .buying-guide-calculator__results,
  .buying-guide-checklists__grid article {
    padding: 14px;
  }

  .buying-guide-model-card__price {
    align-items: flex-start;
    flex-direction: column;
  }

  .buying-guide-model-card__price strong {
    text-align: left;
  }

  .buying-guide-model-card__facts {
    grid-template-columns: 1fr;
  }

  .buying-guide-fact-grid {
    grid-template-columns: 1fr;
  }

  .buying-guide-table {
    min-width: 520px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .buying-guide-model-card,
  .buying-guide-model-card__figure img {
    transition: none;
  }
}
