/* GX470Guide. Layout: charcoal chrome and hero, warm-white reading surface, amber for actions and icons.
   Below 860px the site behaves like an app: compact hero, two-column cards, fixed bottom tab bar. */
@font-face { font-family: "Fira Sans"; src: url("fonts/fira-sans-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("fonts/fira-sans-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("fonts/figtree-latin-wght-normal.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-standard-normal.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }

:root {
  color-scheme: light;
  --charcoal: #1b1c1e;
  --charcoal-2: #27292c;
  --charcoal-3: #3a3d41;
  --ink: #17181a;
  --warm-white: #f8f5ee;
  --paper: #fffdf8;
  --line: #e4ddcf;
  --muted: #5d574c;
  --on-dark: #f6f2e9;
  --on-dark-muted: #c9c3b6;
  --amber: #f0b545;
  --amber-hover: #f6c463;
  --amber-deep: #9a5f06;
  --amber-tint: #faedd0;
  --review: #5b3fa0;
  --review-tint: #efe9fb;
  --font-display: "Fira Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Figtree", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-mark: "Archivo", "Arial Black", "Segoe UI", sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
  --gutter: 16px;
  --tabbar-h: 64px;
  --shadow: 0 1px 2px rgba(27, 28, 30, .06), 0 4px 14px rgba(27, 28, 30, .05);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-bottom: calc(var(--tabbar-h) + 24px); }
body { margin: 0; background: var(--warm-white); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.55; }
.page { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--warm-white); color: var(--ink); font-family: var(--font-body); font-size: 1rem; line-height: 1.55; overflow-wrap: break-word; }
main { flex: 1; }
img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; line-height: 1.12; text-wrap: balance; letter-spacing: -0.01em; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.ico { width: 24px; height: 24px; flex: none; }
.only-desktop { display: none; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; border-radius: 4px; }
.page :focus-visible { box-shadow: 0 0 0 5px var(--charcoal); }
.site-header :focus-visible, .hero :focus-visible, .support-banner :focus-visible, .site-footer :focus-visible, .page-head:not(.page-head-plain) :focus-visible, .review-ribbon :focus-visible { box-shadow: none; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--amber); color: var(--ink); padding: 12px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip:focus { top: 8px; }

/* Review ribbon (review build only) */
.review-ribbon { background: var(--review); color: #fff; font-size: .8125rem; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 0 12px; justify-content: center; text-align: center; }
.review-ribbon a { color: #fff; font-weight: 700; padding: 0 6px; display: inline-flex; align-items: center; min-height: 44px; }
.review-ribbon > span { display: inline-flex; align-items: center; }
.review-tag, .badge-review { display: inline-block; background: var(--review-tint); color: var(--review); font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.review-note { background: var(--review-tint); color: #2d1f55; border-left: 4px solid var(--review); padding: 12px 14px; border-radius: var(--radius-sm); font-size: .9375rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 10px 20px; border: 0; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; cursor: pointer; }
.btn .ico { width: 20px; height: 20px; }
.btn-amber { background: var(--amber); color: var(--ink); }
.btn-amber:hover { background: var(--amber-hover); }
.btn-dark { background: var(--charcoal); color: var(--on-dark); }
.btn-dark:hover { background: var(--charcoal-3); }
.btn-outline { background: var(--paper); color: var(--ink); border: 1.5px solid var(--charcoal); }
.btn-outline[aria-pressed="true"] { background: var(--amber-tint); border-color: var(--amber-deep); }
.btn-outline[aria-pressed="true"] .ico { fill: var(--amber-deep); stroke: var(--amber-deep); }
.text-link { color: var(--amber-deep); font-weight: 700; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; min-width: 44px; }
.text-link .ico { width: 16px; height: 16px; }
.link-btn { background: none; border: 0; padding: 10px 8px; min-height: 44px; color: var(--amber-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Header */
.site-header { background: var(--charcoal); color: var(--on-dark); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 56px; }
.wordmark { font-family: var(--font-mark); font-stretch: 125%; font-weight: 900; font-size: 1.375rem; letter-spacing: .01em; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; line-height: 1; }
.wm-a { color: #fff; }
.wm-b { color: var(--amber); }
.main-nav, .header-actions { display: none; }

/* Hero */
.hero { position: relative; background: var(--charcoal); color: #fff; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; display: block; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 20, 22, .82) 0%, rgba(20, 20, 22, .45) 45%, rgba(20, 20, 22, .78) 100%); }
.hero-inner { padding-block: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.eyebrow { display: none; font-size: .9375rem; color: var(--on-dark); }
.hero h1 { font-size: clamp(2.25rem, 10.5vw, 2.9rem); letter-spacing: -0.02em; text-shadow: 0 2px 16px rgba(0, 0, 0, .45); }
.hero-sub span { display: block; }
.hero-sub { font-size: 1.0625rem; line-height: 1.35; color: var(--on-dark); max-width: 30ch; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

.search { display: flex; align-items: center; background: var(--paper); color: var(--ink); border-radius: 10px; margin-top: 8px; padding: 4px; gap: 4px; max-width: 640px; box-shadow: 0 6px 24px rgba(0, 0, 0, .28); }
.search .search-ico { margin-left: 10px; color: var(--muted); width: 22px; height: 22px; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; min-height: 48px; padding: 0 6px; font-size: 1rem; }
.search input::placeholder { color: var(--muted); opacity: 1; }
.search input:focus-visible { outline: none; box-shadow: none; }
.search:focus-within { outline: 3px solid var(--amber); outline-offset: 2px; }
.search .btn { min-width: 48px; padding-inline: 12px; }
.search .btn-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.search-light { box-shadow: none; border: 1.5px solid var(--charcoal); margin-top: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { position: relative; display: inline-flex; }
.chip select { appearance: none; -webkit-appearance: none; min-height: 44px; max-width: 100%; padding: 8px 34px 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .55); background-color: rgba(27, 28, 30, .78); color: #fff; font-size: .9375rem; font-weight: 500; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; }
.chip select option { color: var(--ink); background: var(--paper); }
.chip select.is-set { background-color: var(--amber); color: var(--ink); border-color: var(--amber); font-weight: 700;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317181a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.chips-light .chip select { background-color: var(--paper); color: var(--ink); border-color: var(--charcoal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317181a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.chips-light .chip select.is-set { background-color: var(--amber); border-color: var(--amber-deep); }
.filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-block: 16px; }
.filter-bar .chips { margin-top: 0; }
.filter-label { font-weight: 700; font-size: .9375rem; width: 100%; }

/* Sections */
.section { padding-block: 28px; }
.section-h { font-size: 1.625rem; margin-bottom: 16px; }
.section-h-sm { font-size: 1.25rem; margin-top: 28px; margin-bottom: 12px; }
.section-cats { background: var(--warm-white); }

.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.cat-card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 12px; text-decoration: none; box-shadow: var(--shadow); }
.cat-card:hover { border-color: var(--amber-deep); }
.cat-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--amber-tint); color: var(--amber-deep); flex: none; }
.cat-ico .ico { width: 26px; height: 26px; }
.cat-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-title { font-family: var(--font-display); font-weight: 700; font-size: 1.0625rem; line-height: 1.2; }
.cat-desc { color: var(--muted); font-size: .875rem; line-height: 1.3; }
.cat-desc-full { display: none; }
.cat-card .chev { position: absolute; right: 10px; top: 26px; width: 20px; height: 20px; color: var(--muted); }

/* Guide cards */
.guide-grid { display: grid; gap: 12px; }
.guide-card { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.guide-link { display: flex; align-items: stretch; gap: 12px; text-decoration: none; min-height: 112px; padding-right: 52px; }
.guide-link:hover .guide-title { text-decoration: underline; text-underline-offset: 3px; }
.thumb { flex: none; width: 104px; display: flex; align-items: center; justify-content: center; color: var(--amber);
  background: radial-gradient(circle at 30% 20%, rgba(240, 181, 69, .22), transparent 55%), repeating-radial-gradient(circle at 80% 120%, transparent 0 14px, rgba(255, 255, 255, .06) 14px 15px), var(--charcoal-2); }
.thumb .ico { width: 40px; height: 40px; stroke-width: 1.5; }
.guide-text { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-block: 12px; min-width: 0; }
.tag { display: inline-block; background: var(--amber-tint); color: var(--amber-deep); font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.guide-title { font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; line-height: 1.2; }
.guide-applies { color: var(--muted); font-size: .8125rem; line-height: 1.3; }
.guide-link .chev { position: absolute; right: 14px; bottom: 14px; width: 20px; height: 20px; color: var(--muted); }
.save { position: absolute; top: 4px; right: 4px; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: transparent; border: 0; border-radius: 50%; cursor: pointer; color: var(--ink); }
.save:hover { background: var(--amber-tint); }
.save[aria-pressed="true"] .ico { fill: var(--amber-deep); stroke: var(--amber-deep); }

/* Empty states */
.empty { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border: 1px dashed #b9b09d; border-radius: var(--radius); padding: 18px 16px; }
.empty > .ico { width: 32px; height: 32px; color: var(--amber-deep); margin-top: 2px; }
.empty > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.empty-h { font-family: var(--font-display); font-weight: 700; font-size: 1.1875rem; line-height: 1.2; }
.empty .btn { margin-right: 12px; }
.filter-empty { margin-top: 12px; }

/* Support banner */
.support-banner { background: radial-gradient(ellipse at 80% 0%, rgba(240, 181, 69, .16), transparent 60%), repeating-radial-gradient(circle at 10% 140%, transparent 0 22px, rgba(255, 255, 255, .035) 22px 23px), var(--charcoal); color: var(--on-dark); }
.support-banner-inner { display: flex; flex-direction: column; gap: 14px; padding-block: 24px; }
.support-banner h2 { font-size: 1.5rem; color: #fff; }
.support-banner p { color: var(--on-dark); }
.support-banner-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.soon-note { font-size: .875rem; color: var(--on-dark-muted); }

/* Newsletter */
.newsletter { background: var(--amber-tint); border-top: 1px solid var(--line); }
.newsletter-inner { display: grid; gap: 14px; padding-block: 24px; }
.newsletter h2 { font-size: 1.25rem; margin-top: 4px; }
.nl-form { display: grid; gap: 10px; min-width: 0; }
.nl-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: end; }
.nl-row label { grid-column: 1 / -1; font-weight: 700; font-size: .9375rem; }
.nl-row input { min-height: 48px; min-width: 0; border: 1.5px solid var(--charcoal); border-radius: var(--radius-sm); padding: 0 12px; background: var(--paper); }
.nl-row input[aria-invalid="true"] { border-color: #a12a1a; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; min-height: 44px; cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: none; margin: 2px 0 0; accent-color: var(--charcoal); }
.nl-msg { font-size: .9375rem; font-weight: 600; min-height: 1.4em; }
.nl-msg.is-error { color: #8a1f12; }
.nl-msg.is-info { color: #2d1f55; }

/* Page heads */
.page-head { background: var(--charcoal); color: var(--on-dark); }
.page-head-inner { display: flex; gap: 14px; align-items: center; padding-block: 22px; }
.page-head h1 { font-size: 1.875rem; color: #fff; }
.page-head p { color: var(--on-dark); margin-top: 4px; max-width: 60ch; }
.cat-ico-lg { width: 56px; height: 56px; background: rgba(240, 181, 69, .16); color: var(--amber); }
.cat-ico-lg .ico { width: 30px; height: 30px; }
.page-head-plain { background: var(--warm-white); color: var(--ink); border-bottom: 1px solid var(--line); }
.page-head-plain .wrap { padding-block: 22px 16px; }
.page-head-plain h1 { color: var(--ink); }
.page-head-plain p { color: var(--muted); }

/* Link rows (menu, search browse) */
.link-rows { display: grid; gap: 8px; }
.link-rows a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.link-rows a:hover { border-color: var(--amber-deep); }
.link-rows a > .ico:first-child { color: var(--amber-deep); }
.link-rows span { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.link-rows strong { font-family: var(--font-display); font-size: 1.0625rem; }
.link-rows small { color: var(--muted); font-size: .875rem; }
.chev { color: var(--muted); }

.result-list { display: grid; gap: 8px; margin-top: 12px; }
.result-list a { display: block; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.result-list a:hover { border-color: var(--amber-deep); }
.result-kind { font-size: .75rem; font-weight: 700; color: var(--amber-deep); text-transform: uppercase; letter-spacing: .05em; }
.result-title { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.125rem; }
.result-desc { display: block; color: var(--muted); font-size: .9375rem; }

/* Guide page */
.guide-wrap { max-width: 780px; padding-block: 16px 32px; display: flex; flex-direction: column; gap: 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: .9375rem; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--amber-deep); font-weight: 700; }
.guide-head { display: flex; flex-direction: column; gap: 10px; }
.guide-head h1 { font-size: clamp(1.75rem, 7vw, 2.5rem); }
.lede { font-size: 1.125rem; color: var(--muted); }
.guide-meta { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.applies { display: flex; gap: 8px; align-items: flex-start; font-size: .9375rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.applies .ico { width: 20px; height: 20px; margin-top: 2px; color: var(--amber-deep); }
.applies-unverified { background: var(--amber-tint); border-color: #e2c98f; }
.guide-body { display: flex; flex-direction: column; gap: 22px; max-width: 65ch; }
.guide-body section, .prose { display: flex; flex-direction: column; gap: 10px; }
.guide-body h2, .prose h2, .parts h2 { font-size: 1.375rem; }
.prose h2 { margin-top: 14px; }
.prose { max-width: 70ch; }
.prose ul, .guide-body ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: 6px; }
.placeholder { color: var(--muted); font-style: italic; border-left: 3px solid var(--line); padding-left: 12px; }

/* Parts and tools, directory */
.parts { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 20px; }
.product-list { display: grid; gap: 12px; margin-top: 6px; }
.product { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.product-head { display: flex; flex-direction: column; gap: 8px; }
.product h3 { font-size: 1.125rem; font-weight: 700; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; }
.badge-rel { background: var(--charcoal); color: var(--on-dark); }
.badge-warn { background: var(--amber); color: var(--ink); }
.product-facts { display: grid; gap: 6px; font-size: .9375rem; }
.product-facts div { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 8px; }
.product-facts dt { color: var(--muted); }
.disclosure { font-size: .875rem; color: var(--ink); background: var(--amber-tint); border-radius: var(--radius-sm); padding: 8px 10px; }
.directory { margin-top: 32px; }
.dir-filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 14px; }
.field { display: flex; flex-direction: column; gap: 4px; font-weight: 700; font-size: .9375rem; min-width: 0; }
.field select { min-height: 48px; border: 1.5px solid var(--charcoal); border-radius: var(--radius-sm); background: var(--paper); padding: 0 10px; font-weight: 400; max-width: 100%; }

/* Support and shop */
.panels { display: grid; gap: 14px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.panel h2 .ico { color: var(--amber-deep); }
.status-pill { display: inline-block; background: var(--amber-tint); color: var(--amber-deep); font-weight: 700; font-size: .875rem; padding: 4px 12px; border-radius: 999px; border: 1px solid #e2c98f; }
.benefits { list-style: disc; padding-left: 1.25rem; display: grid; gap: 4px; }
.price { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; }
.support-notes { margin-top: 24px; }
.shop-item { display: grid; gap: 18px; }
.shop-art { background: var(--charcoal-2); color: var(--amber); border-radius: var(--radius); aspect-ratio: 4 / 3; max-width: 100%; display: flex; align-items: center; justify-content: center; }
.shop-art .ico { width: 72px; height: 72px; stroke-width: 1.25; }
.shop-art img { width: 100%; height: 100%; object-fit: contain; }
.shop-info { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.shop-info h2 { font-size: 1.5rem; }
.label-defs { display: grid; gap: 12px; }
.label-defs div { display: grid; gap: 4px; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; font-size: .9375rem; min-width: 480px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.route-list { list-style: none !important; padding-left: 0 !important; }

/* Footer */
.site-footer { background: var(--charcoal); color: var(--on-dark-muted); font-size: .9375rem; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px); border-top: 1px solid var(--charcoal-3); }
.footer-inner { display: flex; flex-direction: column; gap: 6px; padding-block: 20px 8px; align-items: flex-start; }
.footer-brand { color: var(--on-dark); font-weight: 600; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.footer-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); }
.footer-small { font-size: .8125rem; max-width: 60ch; }

/* Bottom tab bar (mobile app navigation) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(27, 28, 30, .08); padding-bottom: env(safe-area-inset-bottom, 0px); padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--tabbar-h); text-decoration: none; font-size: .8125rem; font-weight: 600; color: #3d3a34; }
.tab .ico { width: 26px; height: 26px; }
.tab[aria-current="page"] { color: var(--amber-deep); }
.tab[aria-current="page"] .ico { fill: var(--amber-tint); }
.tab:focus-visible { outline-offset: -4px; box-shadow: none; }

/* Mobile home: wordmark sits over the hero image, as in the approved mobile reference */
@media (max-width: 859.98px) {
  .page-home .site-header { background: transparent; position: relative; z-index: 5; margin-bottom: -56px; }
  .page-home .hero-inner { padding-top: 76px; }
  .chip select { padding: 8px 28px 8px 12px; font-size: .875rem; background-position: right 9px center; field-sizing: content; }
}
@media (max-width: 399.98px) {
  .search .search-ico { display: none; }
  .search input { padding-left: 12px; }
}
@media (max-width: 859.98px) {
  .review-ribbon .rr-detail { display: none; }
}
@media (max-width: 339.98px) {
  .cat-grid { grid-template-columns: 1fr; }
}

/* Desktop */
@media (min-width: 860px) {
  :root { --gutter: 32px; }
  html { scroll-padding-bottom: 0; }
  .only-desktop { display: inline; }
  .only-mobile { display: none; }
  .tabbar { display: none; }
  .site-footer { padding-bottom: 0; text-align: center; }
  .footer-inner { align-items: center; padding-block: 28px; }
  .footer-nav { justify-content: center; }

  .bar { min-height: 60px; }
  .wordmark { font-size: 1.5rem; }
  .main-nav { display: flex; gap: 2px; flex: 1; margin-left: 12px; }
  .main-nav a, .hdr-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-size: .9375rem; font-weight: 500; border-radius: 6px; white-space: nowrap; }
  .main-nav a:hover, .hdr-link:hover, .hdr-icon:hover { background: var(--charcoal-3); }
  .main-nav a[aria-current="page"], .hdr-link[aria-current="page"] { color: var(--amber); box-shadow: inset 0 -3px 0 var(--amber); border-radius: 0; }
  .header-actions { display: flex; align-items: center; gap: 2px; }
  .hdr-link { color: var(--amber); font-weight: 700; }
  .hdr-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 6px; }

  .hero-bg img { object-position: 50% 62%; }
  .hero::after { background: linear-gradient(90deg, rgba(20, 20, 22, .86) 0%, rgba(20, 20, 22, .6) 42%, rgba(20, 20, 22, .12) 78%), linear-gradient(180deg, rgba(20, 20, 22, .35), transparent 30%); }
  .hero-inner { padding-block: 96px 104px; gap: 14px; }
  .eyebrow { display: block; }
  .hero h1 { font-size: clamp(3.5rem, 6vw, 4.75rem); }
  .hero-sub { font-size: 1.5rem; max-width: none; }
  .search { max-width: 560px; margin-top: 14px; padding: 0; overflow: hidden; }
  .search input { min-height: 60px; font-size: 1.0625rem; }
  .search .search-ico { margin-left: 18px; }
  .search .btn { min-height: 60px; padding-inline: 28px; border-radius: 0; font-size: 1.0625rem; }
  .search .btn-text { position: static; width: auto; height: auto; overflow: visible; clip: auto; }
  .search .btn-ico { display: none; }
  .search-light { padding: 0; }
  .chips { gap: 10px; margin-top: 10px; }
  .filter-label { width: auto; }

  .section { padding-block: 44px; }
  .section-h { font-size: 2.5rem; margin-bottom: 24px; }
  .section-h-sm { font-size: 1.5rem; }
  .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .cat-card { flex-direction: row; align-items: center; gap: 20px; padding: 26px 44px 26px 22px; min-height: 124px; }
  .cat-ico { width: 68px; height: 68px; background: transparent; }
  .cat-ico .ico { width: 56px; height: 56px; stroke-width: 1.25; }
  .cat-ico-lg { width: 72px; height: 72px; background: rgba(240, 181, 69, .16); }
  .cat-ico-lg .ico { width: 38px; height: 38px; stroke-width: 1.75; }
  .cat-title { font-size: 1.3125rem; }
  .cat-desc { font-size: 1rem; }
  .cat-desc-full { display: block; }
  .cat-desc-short { display: none; }
  .cat-card .chev { top: 50%; right: 16px; transform: translateY(-50%); }

  .guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .guide-link { flex-direction: column; gap: 0; padding-right: 0; min-height: 0; height: 100%; }
  .thumb { width: 100%; aspect-ratio: 16 / 9; }
  .thumb .ico { width: 64px; height: 64px; }
  .guide-text { padding: 16px 44px 18px 16px; gap: 6px; }
  .guide-title { font-size: 1.1875rem; }
  .save { background: rgba(255, 253, 248, .94); top: 8px; right: 8px; }
  .save:hover { background: var(--amber-tint); }

  .support-banner-inner { align-items: center; text-align: center; padding-block: 56px; gap: 18px; }
  .support-banner h2 { font-size: 2.375rem; }
  .support-banner p { font-size: 1.1875rem; }
  .support-banner-cta { flex-direction: column; }
  .newsletter-inner { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; padding-block: 36px; }
  .newsletter h2 { font-size: 1.5rem; }

  .page-head-inner { padding-block: 40px; gap: 20px; }
  .page-head h1 { font-size: 2.75rem; }
  .page-head p { font-size: 1.125rem; }
  .page-head-plain .wrap { padding-block: 40px 24px; }
  .link-rows { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panels { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .panel { padding: 24px; }
  .product-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .parts .product-list { grid-template-columns: 1fr; }
  .shop-item { grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 40px; align-items: start; }
  .guide-wrap { padding-block: 28px 56px; }
  .guide-meta { flex-direction: row; align-items: center; justify-content: space-between; }
  .empty { padding: 28px; gap: 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .cat-card, .save, .link-rows a, .main-nav a { transition: background-color .15s, border-color .15s; }
}
@media print {
  .tabbar, .site-header, .support-banner, .newsletter, .review-ribbon, .save, .save-btn { display: none !important; }
}
.section > .wrap > .section-h-sm:first-child { margin-top: 0; }

/* ---- 0.2.0: closer to the approved mockups ---- */
/* Support banner backdrop: dusk treeline (original artwork), as in both references. */
.support-banner { background: linear-gradient(180deg, rgba(20, 20, 22, .9) 0%, rgba(20, 20, 22, .62) 55%, rgba(20, 20, 22, .82) 100%), url("img/banner.svg") center 70% / cover no-repeat, var(--charcoal); }
.hero-credit { position: absolute; right: 10px; bottom: 6px; z-index: 1; font-size: .75rem; color: var(--on-dark-muted); text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
/* A supplied hero image carries its subject on the right (desktop) or upper right (mobile), like the references. */
.hero-subject img { object-position: 100% 55%; }

@media (max-width: 859.98px) {
  /* Mobile section cards: compact rows, icon left, all six above the first guide (mobile reference). */
  .cat-grid { gap: 8px; }
  .cat-card { flex-direction: row; align-items: center; gap: 10px; padding: 10px 26px 10px 10px; min-height: 68px; }
  .cat-ico { width: 40px; height: 40px; border-radius: 10px; }
  .cat-ico .ico { width: 22px; height: 22px; }
  .cat-title { font-size: .9375rem; }
  .cat-desc { font-size: .78125rem; line-height: 1.25; }
  .cat-card .chev { top: 50%; right: 6px; width: 18px; height: 18px; transform: translateY(-50%); }
  .section-cats { padding-bottom: 12px; }
  .section-cats + .section { padding-top: 16px; }
  /* Mobile support banner: an inset dark card with the action beside the copy. */
  .support-banner { margin: 4px var(--gutter) 20px; border-radius: 14px; overflow: hidden; }
  .support-banner .wrap { padding-inline: 16px; }
  .support-banner-inner { padding-block: 18px; gap: 12px; }
  .support-banner h2 { font-size: 1.25rem; }
  .support-banner p { font-size: .9375rem; }
  .page-home .hero-inner { padding-bottom: 22px; }
  /* Phone: the 4:3 crop is a top panel, anchored right so the vehicle is never cut; copy sits over its lower edge. */
  .hero-subject { bottom: auto; aspect-ratio: 4 / 3; }
  .hero-subject img { object-position: 100% 40%; }
  .hero:has(.hero-subject)::after { background: linear-gradient(180deg, rgba(20, 20, 22, .55) 0, rgba(20, 20, 22, 0) 16vw, rgba(20, 20, 22, 0) 38vw, rgba(27, 28, 30, .86) 62vw, var(--charcoal) 75vw); }
  .page-home .hero:has(.hero-subject) .hero-inner { padding-top: max(76px, calc(59vw - 6px)); }
  .hero:has(.hero-subject) .hero-credit { top: 6px; bottom: auto; right: var(--gutter); z-index: 6; font-size: .6875rem; max-width: 42vw; text-align: right; line-height: 1.2; }
}
@media (min-width: 400px) and (max-width: 859.98px) {
  .support-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; }
  .support-banner-cta { flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
  .support-banner-cta .btn { min-height: 44px; padding-inline: 14px; }
}
@media (max-width: 379.98px) {
  .cat-card { padding-right: 10px; }
  .cat-card .chev { display: none; }
}
@media (min-width: 860px) {
  .hero-subject + .hero-credit { right: 16px; bottom: 10px; }
  .hero:has(.hero-subject)::after { background: linear-gradient(90deg, rgba(20, 20, 22, .88) 0%, rgba(20, 20, 22, .62) 34%, rgba(20, 20, 22, 0) 62%), linear-gradient(180deg, rgba(20, 20, 22, .4), transparent 28%); }
}

/* ---- 0.3.0: article pages ---- */
.page-article .guide-wrap { max-width: 760px; }
.byline { font-size: .875rem; color: var(--muted); }
.answer { background: var(--amber-tint); border: 1px solid #e2c98f; border-left: 6px solid var(--amber); border-radius: var(--radius); padding: 14px 16px; }
.answer-label { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 800; font-size: .8125rem; letter-spacing: .06em; text-transform: uppercase; color: var(--amber-deep); margin-bottom: 4px; }
.answer-label .ico { width: 18px; height: 18px; }
.answer-text { font-size: 1.125rem; line-height: 1.5; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.facts li { background: var(--charcoal); color: var(--on-dark); border-radius: var(--radius); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fact-value { font-family: var(--font-display); font-weight: 800; font-size: 1.375rem; line-height: 1.15; color: var(--amber); }
.fact-label { font-size: .8125rem; line-height: 1.3; color: var(--on-dark-muted); }
.applies-strip { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; font-size: .9375rem; }
.applies-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--charcoal); color: #fff; font-weight: 700; font-size: .8125rem; padding: 5px 12px 5px 8px; border-radius: 999px; }
.applies-badge .ico { width: 18px; height: 18px; color: var(--amber); }
.page-article .guide-body { font-size: 1.0625rem; line-height: 1.65; gap: 26px; }
.page-article .guide-body h2 { font-size: 1.4375rem; }
.page-article .guide-body ul { margin-top: 2px; }
.table-wrap { overflow-x: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.spec-table { width: 100%; min-width: 0; font-size: 1rem; }
.spec-table th, .spec-table td { padding: 10px 12px; }
.spec-table thead th { background: var(--charcoal); color: var(--on-dark); font-size: .8125rem; font-weight: 700; letter-spacing: .03em; border-bottom: 0; }
.spec-table tbody th { font-weight: 600; }
.spec-table tbody tr:last-child th, .spec-table tbody tr:last-child td { border-bottom: 0; }
.spec-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cite a { color: var(--amber-deep); font-weight: 700; text-decoration: none; padding: 0 2px; }
.inline-link { color: var(--amber-deep); font-weight: 700; text-underline-offset: 3px; }
.sources { border-top: 1px solid var(--line); padding-top: 20px; font-size: .9375rem; line-height: 1.55; }
.page-article .guide-body .source-list { list-style: none; margin: 0; padding-left: 0; display: grid; gap: 10px; }
.source-list li { scroll-margin-top: 16px; }
.source-list li:target { background: var(--amber-tint); outline: 6px solid var(--amber-tint); border-radius: 4px; }
.source-n { font-weight: 700; color: var(--amber-deep); }
.source-link { display: block; padding-block: 10px; color: var(--amber-deep); font-weight: 600; font-size: .875rem; text-underline-offset: 3px; overflow-wrap: anywhere; }
.source-note { color: var(--muted); }
.related { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.related h2 { font-size: 1.375rem; }
@media (min-width: 860px) {
  .answer { padding: 18px 22px; }
  .answer-text { font-size: 1.25rem; }
  .applies-strip { flex-direction: row; align-items: center; gap: 14px; }
  .applies-badge { flex: none; }
  .related .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Approved photograph thumbnails (timing belt only). Other guides keep the category icon tile. */
.thumb.has-photo { position: relative; overflow: hidden; width: 120px; aspect-ratio: 3 / 4; align-self: center; }
.thumb.has-photo img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: contain; transition: transform .2s ease; }
.guide-link:hover .thumb.has-photo img { transform: scale(1.04); }
.search-result { display: flex !important; align-items: center; gap: 16px; }
.result-thumb { flex: none; width: 90px; height: 120px; border-radius: 10px; object-fit: contain; }
.result-copy { display: flex; flex-direction: column; min-width: 0; }
@media (max-width: 600px) { .result-thumb { width: 72px; height: 96px; } }
@media (prefers-reduced-motion: reduce) { .thumb.has-photo img { transition: none; } .guide-link:hover .thumb.has-photo img { transform: none; } }

/* Article photograph with caption and credit */
.article-figure { margin: 4px 0 0; display: grid; gap: 8px; max-width: 28rem; }
.article-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); background: var(--amber-tint); }
.article-figure figcaption { font-size: .875rem; line-height: 1.45; color: var(--muted, #5b5d61); }

