@font-face {
    font-family: "Space Grotesk";
    src: url("../fonts/space-grotesk.ttf") format("truetype");
    font-style: normal;
    font-weight: 300 700;
    font-display: swap;
}

@font-face {
    font-family: "Plus Jakarta Sans";
    src: url("../fonts/plus-jakarta-sans.ttf") format("truetype");
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono.ttf") format("truetype");
    font-style: normal;
    font-weight: 100 800;
    font-display: swap;
}

:root {
    color-scheme: light;
    --paper: #f7f6f3;
    --surface: #fff;
    --line: #e2e0da;
    --ink: #141518;
    --muted: #52565e;
    --red: #c82820;
    --green: #1b6b5a;
    --body: "Plus Jakarta Sans", "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
    --display: "Space Grotesk", "Barlow Condensed", "DIN Alternate", "Arial Narrow", sans-serif;
    --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 0; background: var(--paper); color: var(--ink); font: 400 1rem/1.65 var(--body); }
main { min-height: 52vh; }
.shell { width: min(100% - 64px, 1280px); margin-inline: auto; }
img { display: block; width: 100%; height: auto; }
svg { flex: none; width: 1.25em; height: 1.25em; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; letter-spacing: -.035em; }
h1 { font-size: clamp(2.6rem, 6.1vw, 5.7rem); }
h2 { font-size: clamp(1.65rem, 3.1vw, 2.55rem); }
h3 { font-size: clamp(1.25rem, 2.1vw, 1.65rem); }
a { color: inherit; }
a:hover { color: var(--red); }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip-link { position: absolute; z-index: 10; top: 6px; left: 6px; background: #fff; padding: .5rem 1rem; transform: translateY(-130%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 5; border-bottom: 1px solid var(--line); background: var(--surface); }
.header-inner { height: 59px; display: flex; align-items: center; justify-content: space-between; gap: clamp(12px, 2.5vw, 40px); }
.wordmark { display: inline-flex; align-items: center; gap: 7px; font: 800 1.6rem/.9 var(--display); letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.wordmark svg { width: 31px; height: 31px; }
.main-nav { display: flex; gap: clamp(11px, 1.6vw, 26px); align-items: stretch; height: 100%; }
.main-nav a { position: relative; display: flex; align-items: center; text-decoration: none; font-size: .88rem; font-weight: 700; white-space: nowrap; }
.main-nav a[aria-current] { color: var(--red); }
.main-nav a[aria-current]::after { content: ""; position: absolute; height: 3px; background: var(--red); bottom: 0; inset-inline: 0; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; text-decoration: none; }
.icon-button:hover, .icon-button[aria-current], details[open] > .icon-button { color: var(--red); background: var(--paper); }
.icon-button svg { width: 21px; height: 21px; }
.search-panel, .mobile-menu { position: relative; }
.search-popover, .mobile-menu nav { position: absolute; right: 0; top: calc(100% + 10px); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 12px 28px #14151818; }
.search-popover { width: min(380px, calc(100vw - 32px)); padding: 16px; }
.search-popover label { display: block; font-weight: 700; margin-bottom: 7px; }
.search-field { display: flex; align-items: stretch; gap: 8px; }
.search-field input { min-width: 0; flex: 1; }
.quick-results { padding: 0; margin: 12px 0 0; list-style: none; }
.quick-results a { display: block; padding: 7px 5px; text-decoration: none; border-top: 1px solid var(--line); }
.mobile-menu { display: none; }
.mobile-menu nav { min-width: 210px; padding: 8px 0; }
.mobile-menu nav a { display: block; padding: 6px 16px; text-decoration: none; font-weight: 650; }

.ad-slot { display: grid; place-items: center; overflow: hidden; margin-inline: auto; }
.ad-slot--top { width: min(100% - 64px, 970px); min-height: 90px; margin-block: 10px 16px; }
#byg-header { display: grid; place-items: center; min-height: 90px; min-width: 728px; width: min(100% - 32px, 970px); margin: 10px auto 16px; }
#byg-header-mob { display: none; }
.ad-slot--in-article { min-height: 125px; margin-block: 30px; }
.ad-slot--sidebar { min-height: 250px; margin-bottom: 24px; }
.ad-slot--bottom { max-width: min(100% - 64px, 970px); min-height: 100px; margin-block: 30px; }
.ad-slot--preview { border: 1px dashed #aca9a0; background: #efede8; color: var(--muted); font: 600 .65rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 768px) {
    #byg-header { display: none; min-width: 0; }
    #byg-header-mob { display: grid; place-items: center; min-height: 250px; min-width: 300px; width: min(100% - 16px, 336px); margin: 8px auto 12px; }
}

.button { display: inline-flex; justify-content: center; align-items: center; gap: .6rem; min-height: 43px; border: 1px solid transparent; padding: 8px 15px; white-space: nowrap; font-size: .875rem; font-weight: 750; text-decoration: none; line-height: 1.25; }
.button svg { width: 18px; height: 18px; }
.button-dark { background: var(--ink); color: #fff; }
.button-red { background: var(--red); color: #fff; }
.button-dark:hover, .button-red:hover { color: #fff; background: #981e18; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 750; font-size: .9rem; text-decoration: none; line-height: 1.3; }
.text-link svg { width: 18px; height: 18px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; margin-bottom: 18px; color: var(--muted); font-size: .8rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs svg { width: 12px; height: 12px; }
.section-space { margin-top: clamp(42px, 6.3vw, 85px); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; border-top: 3px solid var(--ink); padding-top: 12px; margin-bottom: 18px; }
.section-heading > .text-link { text-align: right; }

.home-hero { display: grid; grid-template-columns: .93fr 1.24fr; min-height: clamp(320px, 34vw, 505px); background: var(--ink); color: #fff; }
.hero-copy { align-self: center; padding: clamp(22px, 4.1vw, 62px); }
.hero-copy h1 { max-width: 10ch; font-size: clamp(2.7rem, 5.6vw, 5.6rem); line-height: .94; }
.hero-copy > p { max-width: 34ch; margin-top: 17px; color: #e0e1e4; }
.hero-copy .button { margin-top: 22px; }
.home-hero--text { grid-template-columns: 1fr; }
.home-hero--text .hero-copy h1 { max-width: 17ch; }
.lead-photo { overflow: hidden; position: relative; min-height: 100%; }
.hero-image { width: 100%; height: 100%; object-fit: cover; }
.lead-photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--ink); }
.lead-photo a { display: inline-flex; gap: 9px; align-items: center; padding: 10px 16px; color: #fff; text-decoration: none; font-size: .82rem; font-weight: 700; }
.lead-photo a:hover { text-decoration: underline; }
.category-strip { margin-top: 35px; }
.category-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 11px; }
.category-tile { background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; text-decoration: none; }
.category-tile span { width: 100%; padding: 10px; display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: .94rem; font-weight: 760; }
.category-tile svg { width: 16px; height: 16px; }
.category-tile-photo { aspect-ratio: 16 / 9; object-fit: cover; }

.page-intro { padding: clamp(20px, 3.4vw, 48px) 0; border-top: 3px solid var(--ink); border-bottom: 1px solid var(--line); }
.page-intro--photo { display: grid; grid-template-columns: 1fr minmax(225px, 38%); gap: 24px; align-items: center; padding-block: 0; }
.page-intro--photo > div { padding-block: clamp(20px, 3.4vw, 48px); }
.page-intro h1 { max-width: 14ch; }
.page-intro p { max-width: 53ch; color: var(--muted); margin-top: 14px; font-size: clamp(.98rem, 1.7vw, 1.2rem); }
.page-intro .article-kicker { margin: 0 0 10px; color: var(--red); }
.category-hero-photo { width: 100%; max-height: 270px; object-fit: cover; aspect-ratio: 16 / 9; }
.page-intro .button { margin-top: 22px; }

.catalog-filters, .compare-form { display: grid; align-items: end; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid var(--line); }
.catalog-filters { grid-template-columns: 1.35fr repeat(5, minmax(0, 1fr)) auto; }
.catalog-filters:has(> :nth-child(6):last-child) { grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr)) auto; }
.catalog-filters > div, .compare-form > div { min-width: 0; }
.catalog-filters label, .compare-form label { display: block; margin-bottom: 5px; color: var(--muted); font-size: .78rem; font-weight: 750; line-height: 1.25; }
input, select { width: 100%; min-height: 43px; color: var(--ink); border: 1px solid #c4c4bf; border-radius: 0; padding: 6px 8px; background: #fff; font-size: .89rem; }
.results-line { display: flex; justify-content: space-between; align-items: baseline; padding-block: 16px 11px; color: var(--muted); font-size: .85rem; }
.results-line a { color: var(--ink); font-weight: 650; text-underline-offset: 2px; }
.car-grid, .guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.car-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.car-card, .guide-card { display: flex; flex-direction: column; min-width: 0; background: var(--surface); border: 1px solid var(--line); }
.car-card--text { border-top: 3px solid var(--ink); }
.car-card:hover, .guide-card:hover { border-color: #aaa7a0; }
.card-image-link { display: block; overflow: hidden; }
.card-image { aspect-ratio: 16 / 9; object-fit: cover; }
.card-body { padding: clamp(11px, 1.55vw, 23px); display: flex; flex-direction: column; flex: 1; }
.card-body h3 { line-height: 1.08; }
.card-body h3 a { text-decoration: none; }
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; color: var(--muted); font: 600 .65rem/1.4 var(--mono); letter-spacing: .025em; text-transform: uppercase; }
.card-meta span + span::before { content: "/"; margin-right: 8px; color: var(--muted); }
.fuel-label { color: var(--green); }
.card-excerpt { margin: 10px 0 15px; color: var(--muted); font-size: .86rem; line-height: 1.53; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-top: 1px solid var(--line); padding-top: 11px; margin-top: auto; }
.price { font: 750 .88rem/1.3 var(--mono); }
.price small { display: block; font: 600 .7rem/1.25 var(--body); color: var(--muted); }
.card-arrow { display: grid; place-items: center; width: 36px; height: 36px; flex: none; margin-left: auto; border: 1px solid var(--line); text-decoration: none; }
.card-arrow:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.guide-card .text-link { align-self: flex-start; margin-top: auto; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; }
.pagination a { display: grid; place-items: center; min-width: 42px; height: 42px; background: var(--surface); border: 1px solid var(--line); font-weight: 750; text-decoration: none; }
.pagination a[aria-current] { background: var(--ink); border-color: var(--ink); color: #fff; }
.message-panel { border: 1px solid var(--line); padding: clamp(16px, 4vw, 40px); background: #fff; }
.message-panel > p { margin-block: 8px 14px; color: var(--muted); }

.review-header { border-top: 3px solid var(--ink); padding-top: 23px; padding-bottom: 18px; }
.article-kicker { color: var(--red); font: 700 .78rem/1.4 var(--mono); letter-spacing: .065em; text-transform: uppercase; }
.review-header h1 { max-width: 23ch; margin-top: 9px; font-size: clamp(2.5rem, 5.2vw, 5rem); line-height: .98; }
.review-deck { max-width: 65ch; color: var(--muted); margin-top: 14px; font-size: clamp(1rem, 1.65vw, 1.2rem); }
.review-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; color: var(--muted); font-size: .8rem; }
.review-meta .text-link { color: var(--ink); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 2.18fr) minmax(0, 1fr); border: 1px solid var(--line); }
.overview-grid--text { grid-template-columns: 1fr; }
.overview-grid--text .quick-brief dl { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.review-photo { display: grid; align-items: center; background: var(--ink); }
.review-image { aspect-ratio: 16 / 9; object-fit: cover; }
.quick-brief { display: flex; flex-direction: column; justify-content: center; background: var(--surface); padding: clamp(14px, 2.4vw, 33px); }
.quick-brief dl { margin: 0 0 12px; }
.quick-brief dl > div { display: grid; gap: 1px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.quick-brief dt { color: var(--muted); font-size: .73rem; font-weight: 750; }
.quick-brief dd { margin: 0; font-size: .87rem; font-weight: 700; line-height: 1.3; }
.quick-brief .major-stat { padding-block: 10px; }
.major-stat dd { font: 700 clamp(1.1rem, 2.1vw, 1.7rem)/1.15 var(--mono); letter-spacing: -.045em; }
.rating { color: var(--red); }
.article-nav { display: flex; flex-wrap: wrap; gap: 8px 17px; padding-block: 12px; border-bottom: 1px solid var(--line); }
.article-nav a { color: var(--muted); font-size: .84rem; font-weight: 700; text-decoration: none; }
.article-nav a:hover { color: var(--red); text-decoration: underline; }
.review-layout { display: grid; grid-template-columns: minmax(0, 770px) minmax(210px, 1fr); gap: clamp(20px, 5vw, 90px); align-items: start; }
.article-copy { min-width: 0; }
.article-section { margin-top: clamp(28px, 4.6vw, 56px); scroll-margin-top: 15px; }
.article-section h2 { margin-bottom: 13px; }
.article-copy p { max-width: 73ch; margin-bottom: 12px; overflow-wrap: anywhere; }
.article-copy p a { font-weight: 650; text-underline-offset: 3px; }
.article-copy li { margin-block: 7px; }
.review-rail { margin-top: 37px; }
.rail-box { border-top: 3px solid var(--ink); padding: 14px; background: var(--surface); }
.rail-box h2 { font-size: 1.35rem; line-height: 1.12; }
.rail-box p { margin-block: 7px; font-size: .88rem; }
.rail-box a { margin-top: 5px; }
.table-wrap { background: var(--surface); overflow-x: auto; max-width: 100%; border: 1px solid var(--line); }
.spec-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.spec-table :is(td, th) { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec-table tbody tr:last-child :is(td, th) { border-bottom: 0; }
.spec-table tbody th { width: 34%; color: var(--muted); }
.spec-table thead { background: #eeeae4; }
.spec-table td { font-variant-numeric: tabular-nums; }
.trims-table { min-width: 385px; }
.verdict-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.verdict-grid > div { background: #fff; border: 1px solid var(--line); padding: clamp(12px, 2vw, 20px); }
.verdict-grid h3 { display: flex; align-items: center; gap: 6px; }
.verdict-grid h3 svg { color: var(--red); }
.verdict-grid > div:first-child h3 svg { color: var(--green); }
.verdict-grid ul { padding-left: 20px; margin-block: 8px 0; font-size: .9rem; }
.faq-item { border-top: 1px solid var(--line); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 10px 0; font-weight: 725; }
.faq-item[open] summary svg { transform: rotate(45deg); }
.source-list { margin: 0; padding-left: 20px; }
.source-list svg { width: .9em; height: .9em; }
.guide-image { border: 1px solid var(--line); }
.legal-copy { max-width: 74ch; }
.compare-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; }
.comparison-table { margin-top: 22px; }
.comparison-table table { min-width: 470px; }
.compare-section .message-panel { margin-top: 16px; }
.error-categories { display: flex; flex-wrap: wrap; gap: 17px 22px; margin: 24px 0; }

.site-footer { margin-top: clamp(46px, 6.8vw, 90px); background: var(--ink); color: #fff; padding-block: 34px 16px; }
.footer-wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 22px; }
.footer-wrap p { margin-top: 8px; color: #c7c9cc; font-size: .87rem; }
.footer-wrap nav { display: flex; align-items: start; flex-wrap: wrap; gap: 9px 15px; }
.footer-wrap nav a { text-decoration: none; font-size: .86rem; font-weight: 650; }
.footer-wrap a:hover { color: #fff; text-decoration: underline; }
.photo-credits { margin-top: 22px; color: #c7c9cc; font-size: .82rem; overflow-wrap: anywhere; }
.photo-credits summary { width: fit-content; cursor: pointer; }
.photo-credits p { margin-top: .7em; }
.photo-credits ul { padding-inline-start: 1.1em; }
.photo-credits li + li { margin-top: .45em; }
.footer-legal { border-top: 1px solid #44464b; color: #c7c9cc; margin-top: 25px; padding-top: 12px; font-size: .75rem; }

@media (max-width: 1070px) {
    .shell { width: calc(100% - 42px); }
    .header-inner { gap: 14px; }
    .main-nav { gap: 14px; }
    .catalog-filters, .catalog-filters:has(> :nth-child(6):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 870px) {
    .header-inner { height: 55px; }
    .main-nav { display: none; }
    .mobile-menu { display: block; }
    .search-popover { right: -39px; }
    .car-grid, .car-grid--related, .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .review-layout { grid-template-columns: minmax(0, 1fr); }
    .review-rail { display: none; }
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .shell { width: calc(100% - 32px); }
    .ad-slot--top { width: calc(100% - 32px); min-height: 80px; margin-block: 8px 12px; }
    .ad-slot--bottom { max-width: calc(100% - 32px); }
    .home-hero, .page-intro--photo { grid-template-columns: minmax(0, 1fr); }
    .page-intro--photo { gap: 0; }
    .hero-copy h1 { max-width: 12ch; }
    .lead-photo { min-height: 0; }
    .hero-image { aspect-ratio: 16 / 9; }
    .overview-grid { grid-template-columns: minmax(0, 1fr); }
    .quick-brief dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
    .catalog-filters, .catalog-filters:has(> :nth-child(6):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px; }
    .filter-query { grid-column: 1 / -1; }
    .car-grid, .guide-grid { gap: 8px; }
    .card-excerpt { font-size: .82rem; }
    .trims-table { min-width: 0; }
    .trims-table :is(td, th) { padding: 8px 8px; font-size: .82rem; }
    .compare-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 360px) {
    .search-field { display: grid; }
    .search-popover { width: calc(100vw - 32px); }
    .car-grid, .guide-grid, .verdict-grid { grid-template-columns: minmax(0, 1fr); }
    .section-heading { gap: 8px; }
    .category-tile span { padding: 8px 5px; }
}
