/* White page canvas. Keep feature illustrations and functional surfaces distinct. */
html,
body {
  color-scheme: light;
  background-color: #fff;
}

body {
  --cream: #fff;
  --paper: #fff;
  background: #fff !important;
}

.fuel-data-page .data-hero,
.fuel-data-page .fuel-next {
  background: #fff;
}

body > footer,
body.homepage-editorial > footer,
body > footer.site-footer {
  background: #fff;
  color: #343a36;
  border-top: 1px solid #e4e7e4;
  font-size: 1rem;
}

body > footer .wrap .foot-top {
  grid-template-columns: minmax(180px, 1fr) minmax(0, 3.5fr);
  gap: clamp(24px, 3vw, 48px);
  margin-bottom: 0;
}

body > footer .foot-top .foot-nav {
  gap: 26px 20px;
}

body > footer .foot-nav .foot-group { min-width: 0; }

body > footer .foot-nav .foot-group .foot-links {
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}

body > footer .foot-brand,
body > footer .foot-group h2 {
  color: #171b18;
  font-family: Inter, system-ui, sans-serif;
}

body > footer .foot-brand { font-size: 1.3rem; }

body > footer .foot-group h2 {
  margin-bottom: 12px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

body > footer .foot-group h3.foot-sub { color: #444c46; font-size: .9rem; }

/* Match or outrank the older dark-footer selectors on article pages. */
body > footer :is(.foot-top .foot-links a, .foot-social .foot-njoy) {
  color: #343a36;
  font-size: .9375rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

body > footer :is(.foot-top .foot-links a, .foot-social .foot-njoy):hover {
  color: #0b3d2e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* The older footer template sets the introductory text colour inline. */
body > footer .foot-brand + p {
  color: #444c46 !important;
  font-size: .9375rem;
  line-height: 1.6;
}

body > footer a.foot-x {
  color: #252a26;
  border-color: #d8dcd8;
}

body > footer a.foot-x:hover { background: #f3f5f3; }
body > footer :is(.foot-top a, a.foot-x):focus-visible {
  outline: 2px solid #0b3d2e;
  outline-offset: 4px;
}

@media (max-width: 860px) {
  body > footer .wrap .foot-top { grid-template-columns: minmax(0, 1fr); }
  body > footer .foot-top .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 380px) {
  body > footer .foot-top .foot-nav { grid-template-columns: minmax(0, 1fr); }
}

.homepage-editorial {
  --ink: #141614;
  --muted: #535b55;
  --line: #e4e7e4;
  font-family: Inter, system-ui, sans-serif;
}

.homepage-editorial :is(h1, h2, h3, .dl-h) {
  font-family: Inter, system-ui, sans-serif;
  text-wrap: balance;
}

.homepage-editorial #motorbook-site-header .mb-download,
.homepage-editorial .btn {
  border-radius: 999px;
}

.homepage-editorial .hero {
  min-height: 0;
  padding: clamp(56px, 8vw, 112px) 0 clamp(40px, 6vw, 76px);
  background: #fff;
}

.homepage-editorial .hero .grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  align-items: start;
  gap: 30px;
}

.homepage-editorial .hero-copy { width: 100%; text-align: center; }

.homepage-editorial .hero h1 {
  margin: 0 auto 22px;
  max-width: 18ch;
  color: var(--ink);
  font: 750 clamp(2.35rem, 6.6vw, 5.5rem)/1.02 Inter, system-ui, sans-serif;
  letter-spacing: -.072em;
}

.homepage-editorial .hero h1 strong {
  display: inline;
  color: inherit;
  font: inherit;
}

.homepage-editorial .hero p.lead {
  max-width: 48ch;
  margin: 0 auto;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.55;
}

.homepage-editorial .hero-icon {
  display: inline-grid;
  vertical-align: .08em;
  place-items: center;
  position: relative;
  width: .84em;
  height: .84em;
  margin-inline: .08em;
  border-radius: .23em;
  color: #234133;
  background: #e3f0e8;
  transform: rotate(-7deg);
}

.homepage-editorial .hero-icon svg {
  grid-area: 1 / 1;
  width: .49em;
  height: .49em;
}

.homepage-editorial .hero-icon-alt { opacity: 0; }

@media (prefers-reduced-motion: no-preference) {
  .homepage-editorial .hero-icon-main { animation: motorbook-icon-swap 3s ease both; }
  .homepage-editorial .hero-icon-alt { animation: motorbook-icon-alternate 3s ease both; }
}

@keyframes motorbook-icon-swap {
  0%, 27%, 78%, 100% { opacity: 1; transform: translateY(0); }
  43%, 62% { opacity: 0; transform: translateY(4px); }
}

@keyframes motorbook-icon-alternate {
  0%, 27%, 78%, 100% { opacity: 0; transform: translateY(-4px); }
  43%, 62% { opacity: 1; transform: translateY(0); }
}

.homepage-editorial .hero .hero-checker {
  box-sizing: border-box;
  width: min(100%, 620px);
  padding: clamp(16px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(12, 25, 16, .06);
}

.homepage-editorial .hero-checker .vc-lookup {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  margin-top: 14px;
}

.homepage-editorial .hero-checker .vc-lookup input {
  width: 100%;
  min-width: 0;
  background: #fafbfa;
}

.homepage-editorial .hero-checker .vc-lookup .btn {
  min-height: 52px;
  justify-content: center;
  text-align: center;
}

.homepage-editorial .hero-checker .vc-lookup :is(input, button):focus-visible {
  outline: 2px solid #0b3d2e;
  outline-offset: 3px;
}

.homepage-editorial main > :is(section.app-trust, section.home-screens, section.winter-driving-link, section.contact) {
  background: #fff;
}

.homepage-editorial .home-screens { padding: clamp(44px, 7vw, 92px) 0; }
.homepage-editorial .home-screens h2 {
  margin: 0 0 24px;
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.home-screens .screen-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
}
.home-screens .screen-grid:focus-visible { outline: 2px solid #0b3d2e; outline-offset: 5px; }

.home-screens figure { margin: 0; min-width: 0; }
.home-screens .screen-frame {
  display: grid;
  justify-items: center;
  overflow: hidden;
  height: clamp(240px, 34vw, 400px);
  padding: 22px 16px 0;
  border: 1px solid #e6e9e6;
  border-radius: 22px;
  background: #f5f7f5;
}

.home-screens .screen-frame img {
  display: block;
  width: min(100%, 220px);
  height: auto;
  border: 4px solid #1a201c;
  border-radius: 21px;
  box-shadow: 0 8px 24px rgba(24, 40, 30, .13);
}

.home-screens figcaption {
  margin-top: 12px;
  font-weight: 650;
  letter-spacing: -.02em;
}

@media (max-width: 650px) {
  .home-screens .screen-grid { grid-template-columns: repeat(3, minmax(185px, 68%)); overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x proximity; }
  .home-screens figure { scroll-snap-align: start; }
}

@media (max-width: 460px) {
  .homepage-editorial .hero-checker .vc-lookup { grid-template-columns: minmax(0, 1fr); }
  .homepage-editorial .hero-checker .vc-lookup .btn { justify-self: stretch; }
}
