/* Public UX additions. Admin tables/forms retain their own layout and scale. */
body.site-public .catalog-controls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
body.site-public .catalog-controls label,
body.site-public .catalog-controls__hint,
body.site-public .catalog-results__note,
body.site-public .vehicle-card__meta,
body.site-public .vehicle-card__price-note,
body.site-public .vehicle-card__docs,
body.site-public .vehicle-card__specs,
body.site-public .vehicle-key-specs dt,
body.site-public .vehicle-summary .price-note,
body.site-public .vehicle-legal-note,
body.site-public .lead-form label,
body.site-public .lead-form__hint,
body.site-public .lead-form .consent-row,
body.site-public .form-reassurance { font-size: 14px; line-height: 1.5; }
body.site-public .catalog-controls :is(input, select),
body.site-public .lead-form :is(input:not([type=checkbox]), select, textarea),
body.site-public .vehicle-key-specs dd { font-size: 16px; line-height: 1.5; }
body.site-public .catalog-controls__hint { grid-column: 1 / -1; }
body.site-public .catalog-controls__reset { min-height: 44px; font-size: 14px; }
body.site-public .catalog-controls :is(input, select) { min-height: 44px; }
body.site-public .vehicle-card__body { gap: 12px; }
body.site-public .vehicle-photo-note { margin: 0; padding: 10px 16px; color: #4b6078; background: #f2f5f8; font-size: 14px; line-height: 1.5; font-weight: 400; }
body.site-public .vehicle-photo-note:empty { display: none; }
body.site-public .vehicle-gallery > .vehicle-photo-note { border-radius: 10px; margin-top: 12px; }
body.site-public .vehicle-gallery__placeholder { display: grid; place-content: center; justify-items: center; gap: 12px; min-height: 280px; padding: 24px; background: #eef3f8; color: #4b6078; text-align: center; }
body.site-public .vehicle-gallery__placeholder svg { width: 72px; height: 72px; }
body.site-public .vehicle-gallery__placeholder p { margin: 0; color: #132d4b; font-size: 20px; font-weight: 650; }
body.site-public .vehicle-gallery__placeholder span { max-width: 30ch; font-size: 16px; }
body.site-public .vehicle-price-scope { margin-top: 20px; padding-top: 20px; border-top: 1px solid #d7e0e9; }
body.site-public .vehicle-price-scope h2 { font-size: 20px; line-height: 1.3; }
body.site-public .vehicle-price-scope dl { display: grid; gap: 14px; margin: 16px 0; }
body.site-public .vehicle-price-scope dt { margin-bottom: 4px; font-size: 14px; color: #4b6078; }
body.site-public .vehicle-price-scope dd { margin: 0; font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
body.site-public .vehicle-price-scope p { font-size: 14px; line-height: 1.5; color: #4b6078; }
body.site-public .vehicle-buying-options { display: grid; gap: 12px; margin-top: 20px; }
body.site-public .vehicle-buying-options a { text-decoration: underline; text-underline-offset: 3px; font-size: 16px; }
body.site-public .vehicle-compare-button { min-height: 44px; width: 100%; padding: 10px 14px; border: 1px solid #b9c8d9; border-radius: 9px; background: #fff; color: #163453; font: inherit; font-size: 14px; font-weight: 650; cursor: pointer; }
body.site-public .vehicle-compare-button[aria-pressed=true] { background: #e8f0f8; border-color: #234b74; }
body.site-public .vehicle-summary > .vehicle-compare-button { margin-block: 12px; }
body.site-public .compare-tray { position: fixed; z-index: 55; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; width: max-content; max-width: calc(100% - 24px); padding: 12px 16px; border: 1px solid #d0dce8; border-radius: 14px; background: #fff; color: #163453; box-shadow: 0 6px 32px #102b4929; }
body.site-public .compare-tray__count { font-size: 14px; white-space: nowrap; }
body.site-public .compare-tray .site-button { min-height: 44px; padding: 10px 20px; font-size: 15px; }
body.site-public .compare-tray__clear { min-height: 44px; border: 0; background: transparent; color: #345472; text-decoration: underline; font: inherit; font-size: 14px; cursor: pointer; }
body.site-public .compare-announcement { position: fixed; z-index: 56; bottom: 94px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100% - 24px); margin: 0; border-radius: 10px; padding: 10px 14px; background: #15314e; color: #fff; font-size: 14px; line-height: 1.5; pointer-events: none; }
body.site-public .compare-announcement:empty { display: none; }
body.site-public .compare-toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
body.site-public .compare-empty { padding: clamp(24px, 5vw, 48px); border: 1px solid #d7e1ec; border-radius: 16px; background: #f4f7fb; }
body.site-public .compare-empty h2 { margin: 0 0 16px; font-size: 26px; }
body.site-public .compare-empty p { max-width: 60ch; font-size: 16px; line-height: 1.6; }
body.site-public .compare-empty .outline-button { margin: 12px 0 0; }
body.site-public :is(.compare-help, .compare-footnote, .compare-feedback, .compare-notice) { font-size: 16px; line-height: 1.6; color: #4b6078; }
body.site-public .compare-notice { padding: 14px 18px; border-left: 3px solid #456b90; background: #edf3f9; }
body.site-public .compare-scroll { max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid #d7e1ec; border-radius: 14px; }
body.site-public .compare-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
body.site-public .compare-table caption { padding: 14px; text-align: left; font-size: 16px; font-weight: 650; color: #15314e; background: #f3f6fa; }
body.site-public .compare-table :is(th, td) { min-width: 220px; width: 260px; padding: 16px; vertical-align: top; text-align: left; font-size: 16px; line-height: 1.5; border-bottom: 1px solid #dce4ec; border-right: 1px solid #dce4ec; overflow-wrap: anywhere; }
body.site-public .compare-table th:first-child { width: 180px; min-width: 180px; background: #f4f7fb; font-weight: 600; }
body.site-public .compare-table th:last-child,
body.site-public .compare-table td:last-child { border-right: 0; }
body.site-public .compare-table tr:last-child > * { border-bottom: 0; }
body.site-public .compare-table thead th { color: #15314e; }
body.site-public .compare-table h2 { margin: 14px 0; font-size: 20px; line-height: 1.3; }
body.site-public .compare-table img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; }
body.site-public .compare-photo-empty { display: grid; place-content: center; min-height: 130px; padding: 16px; aspect-ratio: 16 / 10; border-radius: 8px; background: #eef3f8; color: #4b6078; font-size: 14px; font-weight: 400; text-align: center; }
body.site-public .compare-table .vehicle-photo-note { padding: 8px 0; background: transparent; }
body.site-public .compare-remove { display: inline-block; min-height: 40px; padding-block: 8px; color: #456582; font-size: 14px; font-weight: 400; text-decoration: underline; text-underline-offset: 3px; }
body.site-public .compare-table .site-button { width: 100%; font-size: 14px; padding: 12px; }
body.site-public .profile-legal { margin-top: 32px; padding: clamp(20px, 4vw, 32px); border: 1px solid #d7e1ec; border-radius: 14px; background: #f5f8fb; }
body.site-public .profile-legal h2 { margin: 0 0 20px; color: #15314e; font-size: clamp(22px, 3vw, 28px); line-height: 1.3; }
body.site-public .profile-legal p { font-size: 16px; line-height: 1.6; }
body.site-public .profile-legal dl { display: grid; gap: 0; margin: 20px 0 0; }
body.site-public .profile-legal dl:empty { display: none; }
body.site-public .profile-legal dl > div { display: grid; grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr); gap: 12px 24px; padding-block: 14px; border-top: 1px solid #d9e3ed; }
body.site-public .profile-legal dt { color: #4b6078; font-size: 14px; line-height: 1.6; }
body.site-public .profile-legal dd { margin: 0; color: #15314e; font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
body.site-public #visit > .section { padding-block: 32px 0; }
body.site-public :is(.contact-arrival, #arrival-title + p) { font-size: 16px; line-height: 1.65; }
body.site-public #arrival-title { margin-bottom: 16px; font-size: clamp(24px, 3vw, 32px); }
body.site-public .profile-entrance { display: block; width: min(100%, 900px); height: auto; max-height: 480px; margin-top: 24px; object-fit: contain; object-position: left center; border: 1px solid #d7e1ec; border-radius: 12px; background: #f1f5f9; }
body.site-public :is(.vehicle-compare-button, .compare-tray a, .compare-tray button, .compare-scroll, .compare-remove):focus-visible { outline: 3px solid #3b78b3; outline-offset: 3px; }
body.site-public :is(.vehicle-compare-button, .compare-tray, [data-compare-restore])[hidden] { display: none !important; }
@media (max-width: 1000px) {
  body.site-public .catalog-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body.site-public .catalog-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.site-public .catalog-controls__price { display: contents; }
  body.site-public .catalog-controls label { font-size: 14px; }
  body.site-public .compare-tray { bottom: calc(82px + env(safe-area-inset-bottom)); width: calc(100% - 24px); padding: 10px; gap: 8px; justify-content: space-between; }
  body.site-public .compare-tray__count { white-space: normal; max-width: 80px; }
  body.site-public .compare-tray .site-button { padding: 10px 14px; }
  body.site-public .compare-tray__clear { font-size: 13px; }
  body.site-public .compare-announcement { bottom: calc(158px + env(safe-area-inset-bottom)); }
  body.site-public .compare-table :is(th, td) { width: 230px; min-width: 230px; padding: 14px; }
  body.site-public .compare-table th:first-child { width: 150px; min-width: 150px; }
  body.site-public .vehicle-gallery__placeholder { min-height: 230px; }
  body.site-public .profile-legal dl > div { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  body.site-public .profile-entrance { max-height: 360px; }
}
@media (max-width: 640px) {
  body.site-public .catalog-controls { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  body.site-public .compare-scroll { scroll-behavior: auto; }
}
