/* Softer, touch-friendly finishing layer for the API-rendered home page. */
#ym-home-root {
  --ym-surface: #fff;
  --ym-line: #dce7ef;
  --ym-display: "Fraunces", Georgia, serif;
  --ym-ui: "Plus Jakarta Sans", "DM Sans", sans-serif;
  --ym-soft-ink: #20384b;
  --ym-muted-ink: #708396;
}

/* A deliberately quiet editorial system: one warm display voice, one clear UI voice. */
#ym-home-root, #ym-home-root button, #ym-home-root input, #ym-home-root select { font-family: var(--ym-ui); }
#ym-home-root .brand, #ym-home-root .brand b { font-family: var(--ym-ui); letter-spacing: -.055em; }
#ym-home-root .brand b { font-size: 18px; font-weight: 800; }
#ym-home-root .site-header nav a { color: #425a6e; font-size: 12px; font-weight: 700; letter-spacing: .005em; }
#ym-home-root .location, #ym-home-root .ym-mobile-login { color: #39566d; font-size: 11px; font-weight: 800; letter-spacing: .015em; }
#ym-home-root .kicker, #ym-home-root .ym-eyebrow { font-family: var(--ym-ui); font-size: 10px; font-weight: 800; letter-spacing: .16em; }
#ym-home-root h1, #ym-home-root h2, #ym-home-root h3, #ym-home-root .finance h2, #ym-home-root .section-head h2 { font-family: var(--ym-display); font-weight: 600; letter-spacing: -.055em; }
#ym-home-root .hero h1 { font-size: clamp(47px,5.75vw,75px); line-height: .93; letter-spacing: -.065em; text-wrap: balance; }
#ym-home-root .hero h1 em { color: #b8e9ff; font-weight: 550; }
#ym-home-root .hero-copy > p:not(.kicker) { color: #d6e9f4; font-family: var(--ym-ui); font-size: 15px; font-weight: 500; line-height: 1.75; letter-spacing: -.012em; }
#ym-home-root .tabs button { font-family: var(--ym-ui); font-size: 11px; font-weight: 800; letter-spacing: .025em; }
#ym-home-root .search-panel label, #ym-home-root .mobile-filter-field > span { color: #466075; font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
#ym-home-root .search-panel input, #ym-home-root .vehicle-input { color: #18364c; font-family: var(--ym-ui); font-size: 13px; font-weight: 600; }
#ym-home-root .search-panel .show-matches, #ym-home-root .search-row button { font-family: var(--ym-ui); font-size: 11px; font-weight: 800; letter-spacing: .015em; }
#ym-home-root .search-note { color: #7890a1; font-family: var(--ym-ui); font-size: 10px; font-weight: 500; line-height: 1.55; }
#ym-home-root .quick-links b, #ym-home-root .category-grid b, #ym-home-root .feature-grid h3 { font-family: var(--ym-display); font-weight: 600; letter-spacing: -.037em; }
#ym-home-root .quick-links b { color: var(--ym-soft-ink); font-size: 18px; }
#ym-home-root .quick-links span, #ym-home-root .category-grid small, #ym-home-root .feature-grid p { color: var(--ym-muted-ink); font-family: var(--ym-ui); font-size: 11px; font-weight: 500; line-height: 1.6; }
#ym-home-root .section-head h2 { color: var(--ym-soft-ink); font-size: clamp(31px,3vw,40px); line-height: 1; }
#ym-home-root .section-head > a, #ym-home-root .feature-grid a { font-family: var(--ym-ui); font-size: 10px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
#ym-home-root .category-grid b { color: #25465d; font-size: 19px; }
#ym-home-root .feature-grid h3 { color: #234359; font-size: 24px; line-height: 1.08; }
#ym-home-root .finance h2 { font-size: clamp(39px,4vw,53px); line-height: .95; }
#ym-home-root .finance p:not(.kicker) { font-family: var(--ym-ui); font-size: 13px; font-weight: 500; line-height: 1.75; }
#ym-home-root .finance a { font-family: var(--ym-ui); font-size: 11px; font-weight: 800; letter-spacing: .015em; }
#ym-home-root footer, #ym-home-root footer p { font-family: var(--ym-ui); font-size: 10px; font-weight: 600; letter-spacing: .01em; }

#ym-home-root .site-header { min-height: 78px; }
#ym-home-root .location, #ym-home-root .ym-mobile-login { border-radius: 999px; }
#ym-home-root .hero {
  background: radial-gradient(circle at 82% 10%, rgba(65,158,231,.72), transparent 29%), linear-gradient(128deg,#061b31 0%,#0a3b68 58%,#0f609c 100%);
}
#ym-home-root .search-panel { border: 1px solid rgba(255,255,255,.38); border-radius: 22px; box-shadow: 0 24px 54px rgba(0,18,38,.28); }
#ym-home-root .search-panel .tabs { border-radius: 22px 22px 0 0; }
#ym-home-root .vehicle-input, #ym-home-root .search-panel .mobile-filter-stack, #ym-home-root .mobile-search .mobile-filter-stack { border-color: var(--ym-line); border-radius: 14px; box-shadow: 0 8px 20px rgba(20,57,84,.055); }
#ym-home-root .search-panel .mobile-filter-stack, #ym-home-root .mobile-search .mobile-filter-stack { overflow: hidden; }
#ym-home-root .search-panel .mobile-filter-field, #ym-home-root .mobile-search .mobile-filter-field { min-height: 64px; }
#ym-home-root .search-panel .show-matches, #ym-home-root .mobile-search .show-matches { min-height: 52px; border-radius: 0 0 13px 13px; letter-spacing: .015em; }
#ym-home-root .quick-links a, #ym-home-root .category-grid .category-card, #ym-home-root .feature-grid article, #ym-home-root .vehicle-card, #ym-home-root .dealer-ad { border-radius: 18px; }
#ym-home-root .quick-links a { border-color: var(--ym-line); box-shadow: 0 10px 26px rgba(15,52,78,.075); }
#ym-home-root .category-grid .category-card { border-color: var(--ym-line); background: linear-gradient(145deg,#fff,#f3f8fb); box-shadow: 0 8px 20px rgba(16,53,78,.045); }
#ym-home-root .category-grid .category-card .category-photo { border-radius: 12px; }
#ym-home-root .feature-grid article { border: 1px solid rgba(210,226,237,.78); }
#ym-home-root .finance { border-radius: 24px; box-shadow: 0 22px 44px rgba(4,31,57,.15); }

@media (max-width: 650px) {
  #ym-home-root { background: #f6f9fb; }
  #ym-home-root .site-header { min-height: 68px; padding-inline: 16px; }
  #ym-home-root .hero { min-height: 274px; border-radius: 0 0 28px 28px; }
  #ym-home-root .mobile-hero-title { padding: 37px 21px 28px; }
  #ym-home-root .mobile-hero-title h1 { max-width: 310px; font-size: clamp(34px,10.3vw,42px); line-height: 1.02; }
  #ym-home-root .hero h1, #ym-home-root .mobile-hero-title h1 { font-size: clamp(39px,11.2vw,48px); line-height: .96; letter-spacing: -.06em; }
  #ym-home-root .hero-copy > p:not(.kicker) { font-size: 13px; line-height: 1.65; }
  #ym-home-root .mobile-search { margin: -1px 12px 0; padding: 0 14px 20px; border: 1px solid var(--ym-line); border-radius: 20px; background: var(--ym-surface); box-shadow: 0 13px 30px rgba(18,56,84,.10); }
  #ym-home-root .mobile-search .tabs { margin: 0 -14px; padding-inline: 14px; border-radius: 20px 20px 0 0; }
  #ym-home-root .mobile-search .vehicle-input { height: 52px; border-radius: 13px; }
  #ym-home-root .mobile-search .mobile-filter-stack { margin-top: 14px; border-radius: 14px; }
  #ym-home-root .mobile-search .mobile-filter-field { min-height: 62px; }
  #ym-home-root .dealer-ad { margin: 20px 14px 0; border-radius: 18px; box-shadow: 0 12px 28px rgba(13,45,70,.12); }
  #ym-home-root .quick-links { gap: 10px; padding-inline: 14px; }
  #ym-home-root .quick-links a { min-height: 84px; padding: 16px; border-radius: 16px; }
  #ym-home-root .browse, #ym-home-root .featured { padding-inline: 14px; }
  #ym-home-root .section-head { align-items: center; }
  #ym-home-root .section-head h2 { font-size: 31px; line-height: .98; }
  #ym-home-root .quick-links b { font-size: 17px; }
  #ym-home-root .category-grid b { font-size: 18px; }
  #ym-home-root .feature-grid h3 { font-size: 23px; }
  #ym-home-root .category-grid, #ym-home-root .feature-grid { gap: 12px; }
  #ym-home-root .category-grid .category-card, #ym-home-root .feature-grid article { border-radius: 16px; }
  #ym-home-root .finance { margin: 56px 14px; padding: 34px 24px; border-radius: 22px; }
}

@media (max-width: 380px) {
  #ym-home-root .site-header { padding-inline: 13px; }
  #ym-home-root .brand b { font-size: 17px; }
  #ym-home-root .mobile-hero-title { padding-inline: 18px; }
  #ym-home-root .mobile-search { margin-inline: 9px; }
  #ym-home-root .mobile-search .mobile-filter-pair { grid-template-columns: 1fr; }
  #ym-home-root .mobile-search .mobile-filter-pair .mobile-filter-field + .mobile-filter-field { border-top: 1px solid #e2e9ee; border-left: 0; }
}

/* Clear, soft account entry point in the top navigation. */
#ym-home-root .site-header .ym-desktop-nav .ym-nav-login,
#ym-home-root .site-header .ym-desktop-nav .ym-nav-account {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid #cfe2e5;
  border-radius: 999px;
  background: #edf7f7;
  color: #285c69 !important;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-shadow: none;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
#ym-home-root .site-header .ym-desktop-nav .ym-nav-login:hover,
#ym-home-root .site-header .ym-desktop-nav .ym-nav-account:hover {
  border-color: #a8cbd0;
  background: #e1f1f2;
  color: #173f4e !important;
}
#ym-home-root .ym-mobile-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid #cfe2e5;
  border-radius: 999px;
  background: #edf7f7;
  color: #285c69 !important;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}
#ym-home-root .ym-mobile-login:hover { background: #e1f1f2; color: #173f4e !important; }
