/* The public website (templates/site/). Light and dark follow the visitor's device. */
:root { --site-brand: #1d4ed8; --site-brand-ink: #ffffff; --site-soft: #eef2ff; --site-line: #e3e6eb; }
[data-bs-theme="dark"] { --site-brand: #6f95ff; --site-brand-ink: #0d121b; --site-soft: #1b2440; --site-line: #2a3342; }

body.site { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.6; }
.site .navbar { border-bottom: 1px solid var(--site-line); }
.site .navbar-brand { font-weight: 800; letter-spacing: -.02em; color: var(--site-brand); }
.site .btn-brand { background: var(--site-brand); color: var(--site-brand-ink); border: 0; font-weight: 700; padding: .65rem 1.25rem; min-height: 44px; }
.site .btn-brand:hover { filter: brightness(.92); color: var(--site-brand-ink); }
.site .btn-outline-brand { border: 2px solid var(--site-brand); color: var(--site-brand); font-weight: 700; padding: .6rem 1.2rem; min-height: 44px; }
.site .btn-outline-brand:hover { background: var(--site-brand); color: var(--site-brand-ink); }

.hero { padding: 72px 0 56px; text-align: center; background: var(--site-soft); }
.hero h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.hero .lead { max-width: 680px; margin: 1rem auto 1.75rem; color: var(--bs-secondary-color); }
.section { padding: 56px 0; }
.section h2 { font-weight: 800; letter-spacing: -.01em; text-align: center; margin-bottom: .5rem; }
.section .sub { text-align: center; color: var(--bs-secondary-color); max-width: 640px; margin: 0 auto 2rem; }

.tile { height: 100%; border: 1px solid var(--site-line); border-radius: 16px; padding: 24px; background: var(--bs-body-bg); }
.tile i { font-size: 1.8rem; color: var(--site-brand); }
.tile h3 { font-size: 1.15rem; font-weight: 700; margin: .75rem 0 .35rem; }
.tile p { margin: 0; color: var(--bs-secondary-color); font-size: .95rem; }
.tile.choice { display: flex; flex-direction: column; gap: .75rem; padding: 32px; }
.tile.choice h2 { text-align: left; font-size: 1.5rem; margin: 0; }

.steps { counter-reset: step; list-style: none; padding: 0; display: grid; gap: 16px; }
.steps li { counter-increment: step; display: flex; gap: 16px; align-items: flex-start; }
.steps li::before { content: counter(step); flex: 0 0 36px; height: 36px; border-radius: 50%; background: var(--site-brand); color: var(--site-brand-ink); display: grid; place-items: center; font-weight: 800; }

.cta-band { background: var(--site-brand); color: var(--site-brand-ink); text-align: center; padding: 56px 0; }
.cta-band .btn { background: var(--site-brand-ink); color: var(--site-brand); font-weight: 700; min-height: 44px; }

.site footer { border-top: 1px solid var(--site-line); padding: 32px 0; color: var(--bs-secondary-color); font-size: .9rem; }
.site footer a { color: inherit; }
.site .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.site .faq-item summary { cursor: pointer; font-weight: 600; padding: 1rem 0; }
.site .legal h2 { text-align: left; font-size: 1.25rem; margin-top: 2rem; }

/* the marketplace header is a slim bar: its buttons are small, not the large sales-site buttons */
.site .mp-nav .btn { padding: .3rem .85rem; min-height: 34px; font-size: .9rem; }
.site .mp-nav .btn-outline-brand { border-width: 1px; padding: .28rem .8rem; }

/* the light / dark switch: a sun outline in the light theme, a moon in the dark one */
.theme-toggle { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 1px solid var(--site-line); border-radius: 999px; background: transparent; color: var(--bs-body-color); cursor: pointer; font-size: 1.05rem; }
.theme-toggle:hover { background: rgba(128, 128, 128, .15); }
.theme-toggle .tt-moon { display: none; }
[data-bs-theme="dark"] .theme-toggle .tt-sun { display: none; }
[data-bs-theme="dark"] .theme-toggle .tt-moon { display: inline; }

/* an uploaded body-style icon is a dark drawing: it is light on a dark page */
[data-bs-theme="dark"] .vph-img { mix-blend-mode: screen !important; filter: invert(1) grayscale(1) !important; }

/* the built-in grey vehicle drawing (shown where there is no photo and no uploaded icon): lighter on a dark page so it stays visible */
[data-bs-theme="dark"] svg.vph [fill="#626a72"] { fill: #9aa5b1; }
[data-bs-theme="dark"] svg.vph [fill="#eef1f3"] { fill: #1b2229; }
[data-bs-theme="dark"] svg.vph [stroke="#eef1f3"] { stroke: #1b2229; }

/* a body style can have its own icon for each theme: only the one for the current theme shows */
.vph-dark-only { display: none; }
[data-bs-theme="dark"] .vph-dark-only { display: inline-block; }
[data-bs-theme="dark"] .vph-light-only { display: none; }

/* The theme button's word ("Light" / "Dark") belongs to the header's drop-down only; elsewhere it stays a round icon button. */
.theme-toggle span.tt-sun, .theme-toggle span.tt-moon { display: none; }

/* Header: shorter menu, and language with appearance behind one globe button. */
.nav-pref > summary { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--site-line); border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.nav-pref .nav-drop-menu { left: auto; right: 0; min-width: 220px; }
.nav-pref .pref-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 6px 10px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.fo .nav-pref .pref-row a.nav-language { font-size: 13px; padding: 6px 4px; }
.fo .nav-pref .theme-toggle { width: auto; height: auto; display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 6px 4px; font-size: 13px; }
.fo .nav-pref .theme-toggle i { font-size: 14px; }
.nav-pref .theme-toggle span.tt-sun { display: inline; }
[data-bs-theme="dark"] .nav-pref .theme-toggle span.tt-sun { display: none; }
[data-bs-theme="dark"] .nav-pref .theme-toggle span.tt-moon { display: inline; }
@media (min-width: 992px) {
  .fo .site-header .nav-narrow { display: none; }
  .fo .site-header .nav-shell { gap: 20px; }
  .fo .site-header .nav-links { gap: 6px; justify-content: center; }
  .fo .site-header .nav-links > a, .fo .site-header .nav-links > .nav-drop > summary { font-size: 14px; font-weight: 700; padding: 8px 12px; white-space: nowrap; }
  .fo .site-header .nav-actions { gap: 8px; white-space: nowrap; align-items: center; }
}
@media (max-width: 991.98px) { .nav-pref .nav-drop-menu { position: absolute; padding: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.18); border: 1px solid var(--site-line); } }

.fo .site-header .nav-pref > summary { font-size: 13px; padding: 0 18px; gap: 7px; }
.fo .nav-pref > summary::after { margin-left: 0; }

/* Resources: the panel with all guides on top, the menus placed there as columns, and the questions at the bottom. */
.nav-res .res-panel { width: min(640px, 92vw); left: 50%; transform: translateX(-50%); padding: 0; gap: 0; overflow: hidden; }
.nav-res .res-panel.res-slim { width: min(320px, 92vw); }
.fo .site-header .nav-res .res-panel a { display: block; min-height: 0; padding: 7px 0; border-radius: 6px; font-size: 14px; font-weight: 600; white-space: normal; }
.fo .site-header .nav-res .res-panel a.res-all, .fo .site-header .nav-res .res-panel a.res-faq { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 20px; border-radius: 0; }
.nav-res .res-all { border-bottom: 1px solid var(--site-line); }
.nav-res .res-faq { border-top: 1px solid var(--site-line); background: rgba(127, 127, 127, .08); }
.nav-res .res-all span, .nav-res .res-faq span { font-size: 13px; font-weight: 600; opacity: .75; }
.nav-res .res-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 6px 24px; padding: 14px 20px; max-height: 60vh; overflow-y: auto; }
.nav-res .res-head { margin: 0 0 4px; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; opacity: .65; }
@media (max-width: 991.98px) {
  .nav-res .res-panel, .nav-res .res-panel.res-slim { position: static; transform: none; width: 100%; border: 0; box-shadow: none; }
  .nav-res .res-cols { grid-template-columns: 1fr; max-height: none; }
}
.fo .site-header .nav-res .res-panel a.res-more { font-size: 13px; color: #2f7fe0; }
[data-bs-theme="dark"] .fo .site-header .nav-res .res-panel a.res-more { color: #6fb2ff; }
.nav-res .res-all span { color: #2f7fe0; opacity: 1; }
[data-bs-theme="dark"] .nav-res .res-all span { color: #6fb2ff; }
