/*
Theme Name: Car Spec Sheet
Theme URI: https://carspecsheet.com
Author: Car Spec Sheet
Description: Lightweight custom theme for carspecsheet.com. Every spec page leads with the answer and cites the owner's manual page it came from. Main styles live in assets/app.css (ported from the approved mockups).
Version: 0.2.0
Requires at least: 6.5
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: carspecsheet
*/

/* Small additions on top of assets/app.css. */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
[hidden] { display: none !important; }
.plain-content ul, .plain-content ol { color: var(--gray); padding-left: 22px; }
.plain-content li { margin: 8px 0; }
.report-form { margin: 30px 0 10px; }
.report-form .field { margin-bottom: 16px; }
.report-form input, .report-form textarea { width: 100%; border: 1px solid #cdcec9; border-radius: 3px; background: #fff; padding: 11px 13px; color: var(--graphite); }
.report-form textarea { min-height: 130px; resize: vertical; }
.report-form .button { margin-top: 4px; }
/* Vehicle search (homepage hero) */
.site-search { position: relative; margin-top: 34px; max-width: 760px; }
.site-search-row { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #cdcec9; border-radius: 3px; padding: 6px 6px 6px 16px; }
.site-search-row:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(14, 110, 117, .15); }
.site-search-row > svg { width: 20px; height: 20px; color: var(--gray); }
.site-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 18px; height: 46px; color: var(--graphite); }
.site-search .button { min-height: 46px; }
.site-search-results { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 6px); list-style: none; margin: 0; padding: 6px 0; background: #fff; border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 10px 24px rgba(28, 29, 33, .12); }
.site-search-results a { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; color: var(--graphite); font-size: 15px; }
.site-search-results a:hover, .site-search-results li.active a { background: #f6faf9; text-decoration: none; }
.site-search-results .kind { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .8px; color: var(--gray); align-self: center; }
.site-search-results .none { padding: 11px 16px; color: var(--gray); font-size: 14px; }
.picker-alt { margin-top: 26px; font-size: 13px; color: var(--gray); }
.home-hero .picker { margin-top: 12px; }
/* Search results page */
.result-list { list-style: none; margin: 28px 0 0; padding: 0; max-width: 760px; border-top: 1px solid var(--line); }
.result-list li { border-bottom: 1px solid var(--line); }
.result-list a { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 48px; padding: 10px 4px; color: var(--graphite); }
.result-list a:hover { background: #f6faf9; text-decoration: none; }
.result-list .kind, .site-search-results .more a { font: 10px var(--mono); text-transform: uppercase; letter-spacing: .8px; color: var(--gray); }
.site-search-results .more a { color: var(--teal); justify-content: flex-start; border-top: 1px solid var(--line); }
.result-heading { margin-top: 36px; font-size: 22px; }
.result-more, .result-coverage { margin: 22px 0 18px; max-width: 760px; color: var(--gray); font-size: 15px; }
/* Compact search in the header (every page but home) */
.header-search { margin: 0; flex: 1; max-width: 380px; }
.header-search .site-search-row { background: #2d2e32; border-color: #45464b; padding: 0 6px 0 12px; }
.header-search .site-search-row:focus-within { border-color: var(--amber); box-shadow: none; }
.header-search .site-search-row > svg { color: #bbbcc2; }
.header-search input { color: #fff; font-size: 15px; height: 40px; }
.header-search input::placeholder { color: #9a9ba1; }
.header-search .button { display: none; }
@media (max-width: 760px) {
	.site-search { margin-top: 24px; }
	.site-search input { font-size: 16px; height: 42px; }
	.site-search .button { padding-inline: 14px; min-height: 42px; }
	.header-inner { flex-wrap: wrap; }
	.header-search { order: 3; flex-basis: 100%; max-width: none; margin: 0 0 12px; }
	.header-search input { font-size: 16px; }
}
/* Same spec, other years */
.year-strip { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; }
.year-strip > div { display: flex; flex-wrap: wrap; gap: 8px; }
.year-chip { font: 500 14px var(--mono); padding: 7px 12px; border: 1px solid var(--line); border-radius: 3px; background: #fff; color: var(--graphite); }
.year-chip:hover { border-color: var(--teal); text-decoration: none; }
.year-chip.current { border-color: var(--amber); border-width: 2px; padding: 6px 11px; }
.intro-layout .section { margin-top: 36px; }
/* Version-aware answer card: choose engine / key type / tire package; every version is in the page */
[hidden] { display: none !important; }
.config-values.single .answer-value { margin-bottom: 13px; }
.config-values .cell-label { display: block; font-size: 13px; color: var(--gray); }
.config-values.single > .cell-label { margin-top: 14px; }
.value-cells { display: flex; flex-wrap: wrap; gap: 12px 0; margin: 14px 0 6px; }
.value-cells > div { padding-right: 18px; }
.value-cells > div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.value-cells strong { display: block; font: 500 26px/1.3 var(--mono); letter-spacing: -1px; margin-top: 2px; overflow-wrap: anywhere; }
.config-values.single .value-cells strong { font-size: 40px; letter-spacing: -2px; }
.config-choices { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 4px; }
.config-button { min-height: 44px; padding: 9px 14px; border: 1px solid #c8cbc7; background: #fff; color: var(--graphite); border-radius: 3px; font-size: 14px; font-weight: 600; text-align: left; }
.config-button:hover { border-color: var(--teal); }
.config-button[aria-pressed="true"] { border: 2px solid var(--teal); padding: 8px 13px; background: #f1f8f7; color: var(--teal); }
.config-select { margin: 16px 0 4px; max-width: 460px; }
.config-select label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; color: var(--gray); margin-bottom: 6px; }
.config-select select { width: 100%; min-height: 46px; border: 1px solid #c8cbc7; border-radius: 3px; background: #fff; color: var(--graphite); font-size: 15px; padding: 0 10px; }
.config-rows { margin-top: 10px; }
.config-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.config-row:last-child { border-bottom: 0; }
.config-row.selected { background: #f1f8f7; margin-inline: -10px; padding-inline: 10px; }
.config-name { font-size: 15px; font-weight: 600; max-width: 55%; }
.config-row .config-values { text-align: right; }
.config-row .value-cells { margin: 0; justify-content: flex-end; text-align: left; }
.config-row .value-cells > div:last-child { padding-right: 0; }
.config-row .value-cells strong { font-size: 22px; }
.config-value { font: 500 26px/1.3 var(--mono); letter-spacing: -1px; overflow-wrap: anywhere; }
.config-reset { background: none; border: 0; padding: 0; min-height: 44px; color: var(--teal); font-size: 14px; font-weight: 600; }
.spare-line { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--line); margin-top: 12px; padding: 12px 0; font-size: 14px; color: var(--gray); }
.spare-line strong { font: 500 17px var(--mono); color: var(--graphite); }
.answer-source > div { min-width: 0; }
.manual-text summary { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--teal); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.manual-text summary::-webkit-details-marker { display: none; }
.manual-text summary::before { content: '+'; font: 500 17px var(--mono); }
.manual-text[open] summary::before { content: '\2212'; }
.manual-text blockquote { margin: 0 0 8px; padding: 10px 12px; background: #f3f3ed; border-left: 2px solid var(--line); font: 500 13px/1.6 var(--mono); color: var(--graphite); overflow-wrap: anywhere; }
.manual-text .quote-context { font: 12px/1.5 var(--body); color: var(--gray); margin-bottom: 3px; }
.manual-text .quote-note { font-size: 12px; margin: 6px 0 4px; }
.buy-links a > span { display: flex; flex-direction: column; }
.buy-links .fits { font-size: 12px; font-weight: 400; color: var(--gray); }
@media (max-width: 760px) {
	.answer-source { font-size: 12px; }
	.small-label { font-size: 11px; }
	.verified { font-size: 12px; }
	.year-chip { min-height: 44px; display: inline-flex; align-items: center; padding-inline: 14px; }
	.config-row { flex-direction: column; align-items: flex-start; gap: 6px; }
	.config-name { max-width: none; }
	.config-row .config-values { text-align: left; }
	.config-row .value-cells { justify-content: flex-start; }
	.config-values.single .value-cells strong { font-size: 32px; }
}
/* ---- Calmer, denser look (Oct 2026): fewer boxes and labels, real content up front ---- */
.eyebrow { display: none; }
.page-head { margin: 4px 0 28px; }
.page-head h1 { font-size: 46px; letter-spacing: -1px; }
.page-head .subtitle { font-size: 17px; max-width: 640px; }
/* Homepage */
.home-hero { padding: 52px 0 36px; }
.home-hero-top { grid-template-columns: minmax(0, 1fr) 360px; gap: 64px; align-items: start; }
.home-hero h1 { font-size: 54px; line-height: 1.04; max-width: 640px; }
.home-hero .subtitle { font-size: 18px; margin-top: 18px; max-width: 600px; }
.home-hero .site-search { margin-top: 28px; }
.home-example { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 3px; padding: 20px 22px; color: var(--graphite); }
.home-example:hover { text-decoration: none; border-color: var(--teal); border-left-color: var(--amber); }
.home-example-vehicle { font-size: 14px; color: var(--gray); }
.home-example-spec { font-size: 16px; font-weight: 600; }
.home-example-value { font: 500 46px/1.15 var(--mono); letter-spacing: -2px; margin: 6px 0 2px; }
.home-example-note { font-size: 13px; color: var(--gray); }
.home-example-quote { margin-top: 12px; padding: 9px 11px; background: #f3f3ed; font: 500 13px/1.5 var(--mono); }
.home-example-source { margin-top: 10px; font-size: 13px; color: var(--teal); }
.picker { margin-top: 26px; border: 0; background: none; padding: 0; }
.picker .field label { font-size: 13px; letter-spacing: 0; text-transform: none; font-weight: 600; color: var(--graphite); }
.home-content { padding: 8px 0 56px; }
.home-section { margin-top: 40px; }
.home-section h2 { font-size: 26px; margin-bottom: 14px; }
.home-section .section-heading { align-items: baseline; }
.home-section .section-heading .text-link { font-size: 14px; }
.lookup-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.lookup-list li { border-bottom: 1px solid var(--line); }
.lookup-list a { display: block; padding: 12px 0; color: var(--graphite); font-size: 15px; }
.lookup-list a:hover { color: var(--teal); }
.home-how { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--gray); font-size: 15px; max-width: 760px; }
/* Make and model lists */
.make-list, .row-list, .side-list { list-style: none; margin: 0; padding: 0; }
.make-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.make-list .make-card { display: block; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; font: inherit; }
.make-list a, .row-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; color: var(--graphite); }
.make-list a:hover, .row-list a:hover { text-decoration: none; }
.make-list a:hover .make-name, .row-list a:hover .row-name { color: var(--teal); }
.make-name, .row-name { font: 600 21px var(--heading); }
.make-meta, .row-meta { font-size: 13px; color: var(--gray); text-align: right; }
.browse-all .make-list { margin-top: 24px; }
.row-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; border-top: 1px solid var(--line); }
.row-list li { border-bottom: 1px solid var(--line); }
.side-list li + li { margin-top: 10px; }
.side-list a { font-size: 15px; }
.side-card .side-title + .side-list { margin-top: 14px; }
.row-footnote { margin-top: 24px; color: var(--gray); font-size: 15px; }
/* Year and spec cards: lighter */
.year-card { min-height: 58px; padding: 14px 18px; font-size: 20px; }
.spec-card { min-height: 0; padding: 16px 18px; }
.hub-grid .spec-card-value { font-size: 24px; }
@media (max-width: 760px) {
	.page-head h1 { font-size: 34px; }
	.home-hero { padding: 32px 0 24px; }
	.home-hero-top { grid-template-columns: 1fr; gap: 24px; }
	.home-hero h1 { font-size: 36px; }
	.home-hero .subtitle { font-size: 16px; }
	.home-example-value { font-size: 38px; }
	.lookup-list, .make-list, .row-list { grid-template-columns: 1fr; }
	.make-name, .row-name { font-size: 19px; }
}
.hub-grid .spec-card { min-height: 0; }
@media (max-width: 760px) { .home-example { margin-top: 24px; } }
/* ==== Modern direction (Modern-UI-Reference.html, Oct 2026): rules and type instead of cards ==== */
.container { width: min(1120px, calc(100% - 64px)); }
.header-inner { min-height: 64px; }
.brand-mark { background: none; width: auto; height: auto; border-radius: 0; }
.brand-mark svg { width: 31px; height: 31px; }
.wordmark { font-size: 22px; letter-spacing: .35px; }
.header-nav { gap: 26px; font-size: 14px; }
.breadcrumbs { font-size: 12px; padding-block: 22px 0; }
/* Footer: one row */
.site-footer { padding: 26px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 14px 30px; align-items: center; }
.footer-brand { font: 500 16px var(--heading); color: #fff; letter-spacing: .3px; }
.footer-brand strong { font-weight: 700; }
.footer-inner .footer-promise { font-size: 12px; color: #b7b9bf; margin-top: 3px; max-width: none; }
.footer-inner .footer-links { padding-top: 0; gap: 24px; }
.footer-small { grid-column: 1 / -1; font-size: 11px; color: #8d9096; border-top: 1px solid #38393d; padding-top: 14px; }
/* Spec page heading: vehicle line + spec name, both inside the h1 */
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin: 24px 0 26px; }
.page-heading h1 { font-size: 48px; letter-spacing: -.8px; }
.vehicle-line { display: flex; align-items: center; gap: 9px; font: 400 14px var(--body); letter-spacing: 0; color: var(--gray); margin-bottom: 10px; }
.year-mark { font: 500 11px var(--mono); color: var(--graphite); border: 1px solid #d4d5d0; padding: 2px 6px; }
.change-vehicle { display: inline-flex; gap: 8px; align-items: center; border-bottom: 1px solid #c4c8c4; color: var(--gray); padding: 0 0 5px; font-size: 13px; white-space: nowrap; }
.change-vehicle:hover { text-decoration: none; color: var(--graphite); }
.change-vehicle svg { width: 14px; height: 14px; }
.spec-page .spec-layout { display: grid; grid-template-columns: minmax(0, 744px) 1fr; gap: 44px; align-items: start; }
/* The answer */
.spec-page .answer { padding: 24px 28px 0; border: 1px solid var(--line); border-left: 4px solid var(--amber); border-radius: 0; }
.answer-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 3px; background: #f1f2ed; padding: 3px; border-radius: 3px; }
.segmented button { border: 0; background: none; color: var(--gray); font-size: 13px; min-height: 38px; padding: 5px 13px; border-radius: 2px; text-align: left; }
.segmented button[aria-pressed="true"] { background: #fff; color: var(--graphite); box-shadow: 0 1px 2px rgba(0, 0, 0, .07); font-weight: 600; }
.answer-controls .config-select { width: auto; max-width: 100%; min-height: 42px; border: 1px solid #c8cbc7; border-radius: 3px; background: #fff; padding: 0 10px; font-size: 14px; }
.main-value { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 15px; margin: 20px 0 10px; }
.main-value strong { font: 500 86px/1 var(--mono); letter-spacing: -5px; }
.main-value span { font: 500 26px var(--mono); letter-spacing: -1px; color: var(--gray); }
.main-value.long strong { font-size: 44px; letter-spacing: -2px; overflow-wrap: anywhere; }
.spec-page .answer-context { font-size: 15px; color: var(--gray); }
.config-overview .answer-context { margin-top: 18px; }
.also { list-style: none; margin: 14px 0 0; padding: 0; }
.also li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--gray); }
.also b { font: 500 15px var(--mono); color: var(--graphite); }
.value-pair { display: flex; flex-wrap: wrap; gap: 16px 0; margin: 20px 0 6px; }
.value-pair > div { padding-right: 28px; }
.value-pair > div + div { border-left: 1px solid var(--line); padding-left: 28px; }
.pair-label { font-size: 13px; color: var(--gray); }
.pair-value strong { font: 500 52px/1.1 var(--mono); letter-spacing: -2.5px; }
.pair-value span { font: 500 20px var(--mono); color: var(--gray); margin-left: 8px; }
.pair-value.long strong { font-size: 30px; letter-spacing: -1px; }
.ref-rows { list-style: none; margin: 12px 0 0; padding: 0; }
.ref-rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.ref-label { font-size: 15px; }
.ref-value { text-align: right; }
.ref-value b { font: 500 18px var(--mono); letter-spacing: -.5px; }
.ref-value small { font-size: 12px; color: var(--gray); margin-left: 4px; }
.ref-value i { font-style: normal; color: #b9bbb5; margin: 0 8px; }
.spec-page .spare-line { margin-top: 14px; }
.spare-line b { font: 500 17px var(--mono); color: var(--graphite); }
.answer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-top: 20px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 13px; }
.answer-bottom a { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; font-weight: 600; }
.answer-bottom svg { width: 15px; height: 15px; }
.check-date { color: var(--gray); font-size: 12px; }
.mobile-source { display: none; }
.mobile-source .source-excerpt { margin: 4px 0 12px; }
/* Source column */
.source-panel { border-top: 2px solid var(--graphite); padding-top: 15px; }
.source-panel-heading { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--gray); }
.source-panel-heading span:last-child { font: 500 12px var(--mono); color: var(--graphite); text-align: right; }
.source-panel h2 { font-size: 25px; line-height: 1.2; margin-top: 20px; }
.source-excerpt { border-left: 2px solid #cacbc5; padding-left: 16px; margin: 20px 0 0; }
.source-excerpt + .source-excerpt { margin-top: 14px; }
.source-excerpt .context { font-size: 12px; color: var(--gray); margin-bottom: 6px; }
.source-excerpt .quote { font: 500 16px/1.55 var(--mono); letter-spacing: -.4px; overflow-wrap: anywhere; }
.source-panel .source-link { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; font-size: 13px; font-weight: 600; }
.source-meta { font-size: 12px; color: var(--gray); border-top: 1px solid var(--line); padding-top: 14px; margin-top: 8px; }
.source-meta p + p { margin-top: 6px; }
/* Other years, table, shopping, practical note, related */
.spec-page .year-strip { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; font-size: 13px; color: var(--gray); }
.spec-page .year-strip > span:first-child { margin-right: 6px; }
.subsection { margin-top: 38px; }
.section-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-top .meta { font-size: 12px; color: var(--gray); }
.spec-page .table-scroll { border: 0; border-top: 1px solid var(--graphite); border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.spec-page th { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; background: #f5f5f0; }
.active-row { background: #f0f5f2; }
.active-row td:first-child { box-shadow: inset 2px 0 var(--teal); }
.buy-row { margin-top: 28px; border-top: 1px solid var(--line); }
.buy-item { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.buy-name { font: 500 15px var(--mono); }
.buy-item p { font-size: 13px; color: var(--gray); }
.buy-item a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.buy-item a svg { width: 14px; height: 14px; }
.affiliate-note { font-size: 12px; color: var(--gray); margin-top: 8px; }
.practical { display: grid; grid-template-columns: 170px 1fr; gap: 30px; margin-top: 38px; padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.practical h2 { font-size: 23px; line-height: 1.2; }
.practical .steps { border: 0; }
.practical .steps li { display: block; padding: 0 0 10px; border: 0; color: var(--gray); line-height: 1.65; }
.practical .steps li::before { content: counter(steps) '. '; font: inherit; color: var(--graphite); }
.practical .steps strong { display: inline; color: var(--graphite); }
.practical .steps-note { font-size: 13px; color: var(--gray); margin-top: 4px; }
.related { margin-top: 22px; }
.related-title { font-size: 14px; font-weight: 600; }
.related-links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.related-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
.spec-page .confirm-note svg { display: none; }
@media (max-width: 900px) {
	.spec-page .spec-layout { display: block; }
	.source-panel { display: none; }
	.mobile-source { display: block; }
}
@media (max-width: 760px) {
	.container { width: calc(100% - 36px); }
	.page-heading { margin: 14px 0 18px; }
	.page-heading h1 { font-size: 34px; letter-spacing: -.5px; }
	.change-vehicle { display: none; }
	.spec-page .answer { padding: 18px 18px 0; }
	.main-value { margin-top: 14px; }
	.main-value strong { font-size: 64px; letter-spacing: -4px; }
	.main-value span { font-size: 20px; }
	.main-value.long strong { font-size: 34px; }
	.pair-value strong { font-size: 40px; }
	.value-pair > div { padding-right: 18px; }
	.value-pair > div + div { padding-left: 18px; }
	.ref-rows li { flex-direction: column; gap: 2px; }
	.ref-value { text-align: left; }
	.answer-bottom { flex-wrap: wrap; gap: 4px 15px; }
	.practical { grid-template-columns: 1fr; gap: 12px; }
	.footer-inner { grid-template-columns: 1fr; }
	.footer-inner .footer-links { flex-wrap: wrap; gap: 6px 20px; }
}

.ref-value .part { white-space: nowrap; }
.mobile-search { display: none; background: none; border: 0; color: #fff; min-width: 44px; min-height: 44px; padding: 10px; }
.mobile-search svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
	.mobile-search { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
	.header-search { display: none; }
	.header-search.open { display: block; }
	.ref-value { display: flex; flex-wrap: wrap; gap: 2px 0; }
	.ref-value i { margin: 0 10px; }
	.spec-page .year-chip { font-size: 15px; }
}
/* Vehicle page: grouped reference rows */
.vehicle-page .spec-layout { display: grid; grid-template-columns: minmax(0, 744px) 1fr; gap: 44px; align-items: start; }
.h1-suffix { color: var(--gray); font-weight: 500; }
.heading-note { margin-top: 10px; font-size: 14px; color: var(--gray); }
.ref-group { border-top: 2px solid var(--graphite); padding-top: 16px; }
.ref-group + .ref-group { margin-top: 34px; }
.ref-group h2 { font-size: 24px; margin-bottom: 4px; }
.ref-list { list-style: none; margin: 0; padding: 0; }
.ref-list li { border-bottom: 1px solid var(--line); }
.ref-list a { display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 10px 0; color: var(--graphite); }
.ref-list a[href]:hover { text-decoration: none; background: #f4f6f2; }
.ref-list a > svg { width: 15px; height: 15px; color: var(--gray); }
.ref-name { flex: 1; font-size: 16px; }
.ref-name small { display: block; font-size: 12px; color: var(--gray); margin-top: 1px; }
.ref-figure { font: 500 20px var(--mono); letter-spacing: -.5px; text-align: right; }
.ref-varies { font-size: 13px; color: var(--gray); text-align: right; }
.vehicle-page .subsection { margin-top: 44px; }
.vehicle-page .table-scroll { border: 0; border-top: 1px solid var(--graphite); border-bottom: 1px solid var(--line); border-radius: 0; background: none; }
.vehicle-page th { font-size: 12px; font-weight: 400; letter-spacing: 0; text-transform: none; background: #f5f5f0; }
.source-blurb { margin-top: 12px; font-size: 14px; color: var(--gray); }
.vehicle-page .confirm-note svg { display: none; }
@media (max-width: 900px) {
	.vehicle-page .spec-layout { display: block; }
	.vehicle-source { display: block; margin: 8px 0 40px; }
}
@media (max-width: 760px) {
	.ref-figure { font-size: 17px; }
	.ref-varies { max-width: 130px; font-size: 12px; }
}
/* Homepage (modern direction) */
.home-hero { padding: 64px 0 44px; }
.home-hero-top { display: grid; grid-template-columns: minmax(0, 665px) minmax(0, 355px); justify-content: space-between; gap: 56px; align-items: start; }
.home-hero h1 { font-size: 62px; line-height: 1.04; letter-spacing: -1.5px; max-width: 560px; }
.home-hero .subtitle { font-size: 18px; margin-top: 20px; max-width: 520px; }
.compact-picker { margin-top: 26px; }
.picker-label { font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.compact-picker .picker-fields { grid-template-columns: 1fr 1.4fr 1fr auto; gap: 8px; }
.compact-picker select { min-height: 46px; font-size: 15px; }
.compact-picker .button { min-height: 46px; }
.coverage-line { margin-top: 10px; font-size: 13px; color: var(--gray); }
.home-vehicle { border-top: 2px solid var(--graphite); padding-top: 14px; margin-top: 8px; }
.home-vehicle h2 { font-size: 28px; margin: 18px 0 14px; }
.home-vehicle ul { list-style: none; margin: 0; padding: 0; }
.home-vehicle li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.home-vehicle b { font: 500 16px var(--mono); text-align: right; }
.home-vehicle b.varies { font: 400 13px var(--body); color: var(--gray); }
.home-vehicle .text-link { margin-top: 16px; display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }
.home-vehicle .text-link svg { width: 14px; height: 14px; }
.home-content { padding: 40px 0 64px; border-top: 1px solid var(--line); }
.home-split { display: grid; grid-template-columns: minmax(0, 665px) minmax(0, 355px); justify-content: space-between; gap: 56px; }
.list-title { font-size: 13px; color: var(--gray); margin-bottom: 10px; }
.question-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.question-list li { border-bottom: 1px solid var(--line); }
.question-list a { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 58px; padding: 10px 0; color: var(--graphite); font-size: 17px; }
.question-list a:hover { text-decoration: none; color: var(--teal); }
.question-list svg { width: 16px; height: 16px; color: var(--teal); }
.home-content .home-how { margin: 0; padding: 0; border: 0; max-width: none; }
.home-how h2 { font-size: 26px; line-height: 1.15; }
.home-how p { margin: 14px 0 12px; font-size: 15px; color: var(--gray); line-height: 1.6; }
.home-how a { font-size: 14px; }
.home-section { margin-top: 48px; }
@media (max-width: 900px) {
	.home-hero-top, .home-split { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 760px) {
	.home-hero { padding: 30px 0 28px; }
	.home-hero h1 { font-size: 40px; }
	.home-hero .subtitle { font-size: 16px; }
	.compact-picker .picker-fields { grid-template-columns: 1fr 1fr; }
	.compact-picker .button { grid-column: 1 / -1; }
	.question-list a { font-size: 16px; }
}
.compact-picker .picker-fields { align-items: center; }
.compact-picker .field { margin: 0; }
.home-how h2 { color: var(--graphite); }
td.page a { white-space: nowrap; }
/* Homepage heading: "any" in amber (a shade darker than the brand amber so it holds contrast on paper) */
.home-hero h1 .hl { font-style: normal; color: #d97a0f; }
.compact-picker .picker-fields .button { margin: 0; align-self: stretch; min-height: 0; height: auto; }
.compact-picker .picker-fields .field select { margin: 0; }
/* The printed line from the manual (tools/crops.py) */
.crop-scroll { overflow-x: auto; max-width: 100%; margin: 4px 0 8px; border: 1px solid var(--line); background: #fff; scrollbar-width: thin; }
.print-crop { display: block; max-width: none; height: auto; mix-blend-mode: multiply; }
.source-excerpt .print-crop + .quote { font-size: 13px; color: var(--gray); }
/* Vehicle photos (Wikimedia Commons, credited) */
.page-heading.has-photo { align-items: flex-end; }
.heading-side { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; flex-shrink: 0; }
.car-photo { margin: 0; }
.car-photo img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 3px; background: #ecebe5; }
.car-photo-large { width: 340px; }
.car-photo-large img { aspect-ratio: 16 / 9; }
.car-photo-small { width: 200px; }
.car-photo-small img { aspect-ratio: 16 / 9; }
.car-photo figcaption { margin-top: 5px; font-size: 11px; line-height: 1.4; color: var(--gray); text-align: right; }
.car-photo figcaption a { color: var(--gray); text-decoration: underline; text-underline-offset: 2px; }
.model-page-heading .page-head { margin: 0; }
.page-heading .page-head { margin: 0; }
.home-vehicle .car-photo-small { width: 100%; margin: 0 0 14px; }
.home-vehicle .car-photo-small figcaption { text-align: left; }
@media (max-width: 760px) {
	.page-heading.has-photo { flex-direction: column; align-items: stretch; gap: 14px; }
	.heading-side { align-items: stretch; }
	.car-photo-large, .car-photo-small { width: 100%; }
	.car-photo-small img { aspect-ratio: 21 / 9; }
	.car-photo figcaption { text-align: left; }
}
.row-list a { justify-content: flex-start; align-items: center; }
.row-list .row-meta { margin-left: auto; }
.row-thumb { width: 96px; height: 54px; object-fit: cover; border-radius: 2px; background: #ecebe5; flex-shrink: 0; }
@media (max-width: 760px) { .row-thumb { width: 72px; height: 40px; } }
/* Tables fit their column: no fixed minimum width, long names wrap; on phones each row becomes a stacked block */
table { min-width: 0; table-layout: fixed; }
td:first-child, td.value { white-space: normal; overflow-wrap: anywhere; }
td.quote { min-width: 0; overflow-wrap: anywhere; }
th:nth-child(1) { width: 30%; } th:nth-child(2) { width: 27%; } th:nth-child(4) { width: 14%; }
.spec-page .table-scroll, .vehicle-page .table-scroll { overflow-x: visible; }
.table-hint { display: none !important; }
@media (max-width: 760px) {
	.table-scroll table, .table-scroll tbody, .table-scroll tr, .table-scroll td { display: block; width: 100%; }
	.table-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.table-scroll tr { padding: 12px 0; border-top: 1px solid var(--line); }
	.table-scroll tr:first-child { border-top: 0; }
	.table-scroll td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: baseline; }
	.table-scroll td::before { content: attr(data-label); font: 12px var(--body); color: var(--gray); }
	.table-scroll td.value small { display: inline; margin-left: 6px; }
	.active-row td:first-child { box-shadow: none; }
	.active-row { box-shadow: inset 3px 0 var(--teal); padding-left: 10px; }
}
@media (max-width: 760px) { .table-scroll td.value small { grid-column: 2; margin: -6px 0 0; } }
th:nth-child(4) { width: 17%; } th:nth-child(2) { width: 25%; } td.page a { white-space: normal; }

/* Vehicle/spec/model heading beside a photo: title at the top, not floating at the bottom */
.page-heading.has-photo { align-items: flex-start; }
.page-heading.has-photo > div:first-child { padding-top: 6px; }
.heading-intro { margin-top: 14px; max-width: 560px; font-size: 17px; line-height: 1.55; color: var(--gray); }
.page-heading .heading-note { margin-top: 10px; }

/* Vehicle page: photo sits at the top of the right column (desktop), under the title on phones */
.vehicle-page .photo-mobile { display: none; }
.vehicle-aside .car-photo-large { width: 100%; margin-bottom: 24px; }
.vehicle-aside .car-photo figcaption { text-align: left; }
.vehicle-page .page-heading { align-items: flex-start; margin-bottom: 30px; }
@media (max-width: 900px) {
	.vehicle-page .photo-desktop { display: none; }
	.vehicle-page .photo-mobile { display: block; }
	.vehicle-page .page-heading { flex-direction: column; align-items: stretch; gap: 14px; }
	.vehicle-page .heading-side { align-items: stretch; }
}

/* Spare-only tire pages: the road-tire answer is "your door label", the spare is separate */
.partial-title { font-size: 28px; margin-bottom: 10px; }
.partial-answer .answer-context strong { color: var(--graphite); font-weight: 600; }
.partial-links { margin: 10px 0 4px; font-size: 14px; }
.partial-spare { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Roundup cells: one labelled value per line; a muted status when the manual has no value */
td .rv { display: block; }
td .rv small { display: inline; margin-left: 6px; font: 12px var(--body); color: var(--gray); }
td .rv-status { display: block; font: 13px/1.5 var(--body); color: var(--gray); }

.review-note { margin-bottom: 22px; padding: 12px 14px; background: #f1f5f2; border-left: 3px solid var(--teal); font-size: 13px; color: var(--gray); }
.review-note p + p { margin-top: 6px; }
.review-note strong { color: var(--graphite); font-weight: 600; }
.section-top .meta a { font-size: 13px; }
@media (max-width: 900px) { .spec-page .source-panel { display: block; border: 0; padding: 0; } .spec-page .source-panel > .config-proof { display: none; } }

/* Model hub: year-by-year comparison and family note */
.model-compare table th:nth-child(n) { width: auto; }
.model-compare .gap-row td { color: var(--gray); background: #f5f5f0; }
.gap-cell { font-size: 13px; font-style: italic; }
.cmp-link { color: var(--graphite); display: block; }
.cmp-link:hover { text-decoration: none; color: var(--teal); }
.family-note { margin-top: 36px; padding-top: 18px; border-top: 2px solid var(--graphite); max-width: 760px; }
.family-note h2 { font-size: 22px; margin-bottom: 8px; }
.family-note p { color: var(--gray); font-size: 15px; }
.family-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 10px; }
@media (max-width: 760px) { .ref-value .part { white-space: normal; } .ref-value b { overflow-wrap: anywhere; } }

/* Guides */
.plain-content.guide { max-width: 760px; }
.plain-content.guide h2 { font-size: 24px; margin: 30px 0 10px; }
.plain-content.guide p, .plain-content.guide li { font-size: 17px; line-height: 1.65; }
.plain-content.guide ul { padding-left: 20px; }
.plain-content.guide li + li { margin-top: 6px; }
.plain-content.guide table { margin: 12px 0 8px; border-top: 1px solid var(--graphite); }
.plain-content.guide th, .plain-content.guide td { width: auto !important; font-size: 15px; }
.guide-meta { font-size: 13px !important; color: var(--gray); margin-bottom: 18px; }
.guide-figure { margin: 22px 0; }
.guide-figure svg { width: 100%; max-width: 560px; height: auto; display: block; }
.guide-figure figcaption { font-size: 13px; color: var(--gray); margin-top: 8px; }

.guide-toc { margin: 4px 0 22px; padding: 12px 16px; border-left: 3px solid var(--teal); background: #f1f5f2; max-width: 760px; }
.guide-toc p { font-size: 13px !important; font-weight: 600; color: var(--graphite); margin: 0 0 4px; }
.guide-toc ol { margin: 0; padding-left: 20px; }
.guide-toc li { font-size: 15px !important; margin: 2px 0 !important; }
.plain-content .toc { font-size: 15px; }
.data-list { list-style: none; padding: 0 !important; border-top: 1px solid var(--line); }
.data-list li { padding: 8px 0; border-bottom: 1px solid var(--line); margin: 0 !important; font-size: 16px !important; }
.data-list .years { font: 500 14px var(--mono); color: var(--gray); margin-left: 6px; }
.data-list small { color: var(--gray); margin-left: 6px; }

/* Spec pages: on desktop the car photo sits at the top of the source column, so the answer starts right under the
 * title; on narrow screens (source column hidden) it stays under the title. Same pattern as vehicle pages. */
.spec-page .photo-mobile { display: none; }
.spec-aside .car-photo-large { width: 100%; margin-bottom: 24px; }
.spec-aside .car-photo figcaption { text-align: left; }
@media (max-width: 900px) {
	.spec-page .photo-desktop { display: none; }
	.spec-page .photo-mobile { display: block; }
}

/* Model hubs: title and year buttons on the left, photo on the right, so the years start right under the title. */
.model-top { margin: 24px 0 0; }
.model-top .page-head { margin: 0 0 22px; }
.model-top.has-photo { display: grid; grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "head photo" "years photo"; column-gap: 40px; align-items: start; }
.model-top.has-photo .page-head { grid-area: head; }
.model-top.has-photo .model-photo { grid-area: photo; }
.model-top.has-photo .year-grid { grid-area: years; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) {
	.model-top { margin-top: 14px; }
	.model-top.has-photo { display: block; }
	.model-top .model-photo { margin-bottom: 18px; }
	.model-top .car-photo-large { width: 100%; }
	.model-top .car-photo figcaption { text-align: left; }
}

/* Make pages: model names never break at a hyphen ("CR-V"); the year list wraps instead. */
.row-list .row-name { flex: 0 0 auto; max-width: 9.5em; }
.row-list .row-meta { flex: 1 1 auto; min-width: 0; }

.roundup-page td.page a, td.page a { white-space: nowrap; }

/* "All years" spec pages for a model */
.modelspec-table { grid-area: years; }
.modelspec-table table { min-width: 0; }
.modelspec-note { font-size: 13px; color: var(--gray); margin-top: 10px; }
.year-strip .year-all { margin-left: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.modelspec-table th:nth-child(1) { width: 90px; }
.modelspec-table th:nth-child(2) { width: auto; }
.modelspec-table th:nth-child(3) { width: 150px; }
.modelspec-table td.value .rv small { white-space: nowrap; }
@media (max-width: 760px) {
	/* several values in one stacked cell (roundups, all-years pages) stay in the value column */
	.table-scroll td.value .rv, .table-scroll td.value .rv-status { grid-column: 2; }
}
