/* Additive styles for the homepage preview (lang toggle, fuller footer, VIN camera). */
.lang { display: inline-flex; border: 1px solid #333; border-radius: 999px; overflow: hidden; flex: none; }
.lang button { background: transparent; color: #ccc; border: 0; padding: .35rem .7rem; font: 600 .78rem var(--font-body); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--gold); color: #000; }
@media (max-width: 960px) { #site-nav .lang { margin: .8rem 0 0; align-self: flex-start; } }
.footer-legal, .footer-hours, .footer-areas { margin: 0.55rem 0 0; }
.footer-legal a { margin: 0 0.15rem; }
.vin-scan-cta { width: 100%; margin: 0 0 0.85rem; font-size: 1.05rem; padding: 1.05rem 1.4rem; }
.vin-perm { color: #8e8e8e; font-size: 0.88rem; margin: 0 0 0.9rem; }
.vin-cam-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 0.7rem 0; }
.vin-panel .vin-video-wrap { position: relative; background: #05070c; border: 1px solid #1e3a44; border-radius: 14px; overflow: hidden; min-height: 0; margin: 0 0 0.75rem; }
.vin-panel .vin-video-wrap.idle { display: none; }
.vin-panel .vin-video-wrap video { display: block; width: 100%; max-height: 320px; background: #000; object-fit: cover; }
.vin-panel .vin-guide { pointer-events: none; position: absolute; left: 10%; right: 10%; top: 30%; bottom: 30%; border: 2px dashed #2a4a55; border-radius: 10px; }
.vin-cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.15rem; }
.vin-valid { margin: 0.5rem 0; font-size: 0.9rem; }


/* Hash-scroll: sticky header + content-visibility undershoot (VIN decoder, book, etc.) */
html {
  scroll-padding-top: var(--header-offset, 6.5rem);
}
html.is-anchor-scroll #why-oem,
html.is-anchor-scroll #experience,
html.is-anchor-scroll #diagnostics,
html.is-anchor-scroll #adas,
html.is-anchor-scroll #shop-tires,
html.is-anchor-scroll #batteries,
html.is-anchor-scroll #oem-parts,
html.is-anchor-scroll #shop-modules,
html.is-anchor-scroll #book,
html.is-anchor-scroll #fleet,
html.is-anchor-scroll #vin-decoder,
html.is-anchor-scroll #contact,
html.is-anchor-scroll footer {
  content-visibility: visible !important;
}
@media (max-width: 960px) {
  #vin-decoder { padding-bottom: 5.5rem; }
}
