/* AutoStation — ported from the Claude Design handoff (Autostation-Site, "Nocturne" design system).
   The handoff is inline-styled; this file holds what it cannot express inline:
   the design-system base rules, the page <style> block, and the hover/focus states
   (the handoff's style-hover / style-focus attributes only work in Claude Design). */

/* ── Design-system tokens actually used by the pages ─────────────────────── */
:root {
  --color-accent: #9184d9;
  --color-neutral-100: #f3f5fe;
  --color-neutral-200: #e4e7f5;
  --color-neutral-300: #cfd3e5;
  --color-neutral-400: #b2b6ca;
  --color-neutral-500: #9397ab;
  --color-neutral-600: #75798c;
  --color-neutral-700: #595d6c;
  --color-neutral-800: #3f424d;
  --color-neutral-900: #292b31;
  --font-heading: "Inter", system-ui, sans-serif;
  --font-heading-weight: 500;
  --font-body: "Inter", system-ui, sans-serif;
  --space-1: 2.8px;
  --space-2: 5.6px;
  --space-3: 8.4px;
}

/* ── Design-system base (styles.css) ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.55; font-weight: 400; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
p { margin: 0 0 var(--space-3); }
img { display: block; max-width: 100%; }
:focus { outline: none; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* ── Page styles (the handoff's <style> block) ───────────────────────────── */
body{margin:0;background:#F7F8FC;color:#292B31;font-family:var(--font-body)}
a{color:#1F5BD8;text-decoration:none}a:hover{color:#1747AE}
select[data-s]{appearance:none;-webkit-appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' stroke='%23595d6c' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:34px!important;cursor:pointer}
input::placeholder,textarea::placeholder{color:#9397AB}
input[type=range],input[type=checkbox],input[type=radio]{accent-color:#1F5BD8}
summary{list-style:none}summary::-webkit-details-marker{display:none}
:focus-visible{outline:2px solid #1F5BD8;outline-offset:2px}
@media (max-width:900px){[data-m=nav]{display:none!important}[data-m=burger]{display:block!important}[data-m=stack]{grid-template-columns:minmax(0,1fr)!important}[data-m=unstick]{position:static!important}[data-m=fsum]{display:inline-flex!important}}
/* Inventory list rows (Inventory.dc.html only) */
@media (max-width:1180px){[data-m=listrow]{grid-template-columns:minmax(180px,40%) minmax(0,1fr)!important}[data-m=listrow]>div:last-child{grid-column:1/-1;border-left:none!important;border-top:1px solid var(--color-neutral-200);flex-direction:row!important;align-items:center;flex-wrap:wrap}[data-m=listrow]>div:last-child>div:last-child{flex-direction:row!important}[data-m=listrow]>div:last-child a{padding:0 16px}[data-m=listrow]>div:last-child>div:first-child{flex:1 1 200px;min-width:0}}
@media (max-width:600px){[data-m=listrow]{grid-template-columns:minmax(0,1fr)!important}[data-m=listrow]>div:last-child>div:last-child{flex:1 1 100%}[data-m=listrow]>div:last-child>div:last-child a{flex:1}[data-m=px]{padding-left:16px!important;padding-right:16px!important}[data-m=hide-sm]{display:none!important}[data-m=two]{grid-template-columns:minmax(0,1fr)!important}[data-m=row]{grid-template-columns:minmax(0,1fr)!important}}

/* ── style-hover / style-focus → classes (must beat the inline style) ────── */
.as-h-link:hover { color: #1F5BD8 !important; }
.as-h-outline:hover { border-color: #1F5BD8 !important; color: #1747AE !important; }
.as-h-outline-ink:hover { border-color: #1F5BD8 !important; color: #292B31 !important; }
.as-h-primary:hover { background: #1747AE !important; color: #FFFFFF !important; }
.as-h-primary-bg:hover { background: #1747AE !important; }
.as-h-light:hover { background: #E6EEFC !important; color: #292B31 !important; }
.as-h-lift:hover { box-shadow: 0 12px 30px rgba(41,43,49,.10) !important; }
.as-f-field:focus { border-color: #1F5BD8 !important; }

/* ── Additions the handoff did not cover ─────────────────────────────────── */

/* Inventory row photo box is 4:3 on every screen size (inline style in car/_row:
   width:100%; aspect-ratio:4/3; align-self:start — photos are 1440x1080, so nothing
   is cropped; align-self:start stops the grid row from stretching it). */

/* Listing card: spec tags + financing line in the middle column (car/_row) */
.as-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.as-specs:empty { display: none; }
.as-specs span { font-size: 12px; font-weight: 500; line-height: 1; padding: 6px 9px; border-radius: 999px; background: var(--color-neutral-100); color: #3F424D; white-space: nowrap; }

/* Visually hidden, still read by search engines and screen readers */
.as-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Car photos fill the handoff's image-slot boxes */
.as-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Vehicle details gallery: thumbnails scroll sideways, five visible */
.as-thumbs { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 32px) / 5); gap: 8px; overflow-x: auto; scrollbar-width: thin; }
.as-thumb { aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; position: relative; background: var(--color-neutral-100); border: 2px solid transparent; padding: 0; cursor: pointer; }
.as-thumb.is-active { border-color: #1F5BD8; }

/* Pagination, styled like the handoff's filter chips */
.as-pages { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 24px; padding: 20px 0 8px; }
.as-pages a, .as-pages span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 40px; height: 40px; padding: 0 12px; font-size: 14px; font-weight: 600; color: #292B31; background: #FFFFFF; border: 1px solid var(--color-neutral-300); border-radius: 8px; }
.as-pages a:hover { border-color: #1F5BD8; color: #1747AE; }
.as-pages .is-current { background: #1F5BD8; border-color: #1F5BD8; color: #FFFFFF; }
.as-pages .is-disabled { color: #A4A8B5; }
.as-pages .is-gap { min-width: 0; padding: 0 2px; border: none; background: none; color: #595D6C; }

/* AdSense units between inventory rows */
.as-ad { background: #FFFFFF; border: 1px solid var(--color-neutral-200); border-radius: 12px; padding: 12px; overflow: hidden; }
.as-ad:has(ins[data-ad-status="unfilled"]) { display: none; }

/* Search suggestions under the inventory search box (car/index #as-suggest) */
.as-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 40; max-height: min(480px, 70vh); overflow-y: auto; background: #FFFFFF; border: 1px solid var(--color-neutral-200); border-radius: 12px; box-shadow: 0 20px 40px rgba(41,43,49,.12); padding: 6px; }
.as-suggest[hidden] { display: none; }
.as-suggest__item { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: none; font-family: inherit; text-align: left; color: #292B31; cursor: pointer; }
.as-suggest__item:hover, .as-suggest__item.is-active { background: #E6EEFC; color: #292B31; }
.as-suggest__img { position: relative; width: 72px; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; background: var(--color-neutral-100); }
.as-suggest__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.as-suggest__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.as-suggest__title { font-size: 15px; font-weight: 600; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-suggest__meta { font-size: 13px; color: #595D6C; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-suggest__price { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.as-suggest__all { display: block; width: 100%; margin-top: 4px; padding: 12px 8px; border: 0; border-top: 1px solid var(--color-neutral-200); border-radius: 0 0 8px 8px; background: none; font-family: inherit; font-size: 14px; font-weight: 600; color: #1F5BD8; text-align: left; cursor: pointer; }
.as-suggest__all:hover { color: #1747AE; background: #F3F5FE; }
.as-suggest__note { margin-bottom: 4px; padding: 10px 12px; border-radius: 8px; background: #E6EEFC; font-size: 14px; line-height: 1.4; color: #1747AE; }
.as-suggest__note strong { font-weight: 600; }

/* Live-search loading state */
#as-results.is-loading { opacity: .55; transition: opacity .15s ease; }

/* Blog article body (blogs/*.blade.php), same type scale as the handoff pages */
.as-prose h1 { margin: 0 0 16px; font-size: clamp(26px,3vw,34px); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; color: #292B31; }
.as-prose h2 { margin: 30px 0 10px; font-size: 20px; font-weight: 600; letter-spacing: -.01em; color: #292B31; }
.as-prose h3 { margin: 20px 0 8px; font-size: 16px; font-weight: 600; color: #292B31; }
.as-prose p { margin: 0 0 14px; font-size: 15px; line-height: 1.7; color: #3F424D; }
.as-prose ul { margin: 0 0 14px; padding-left: 20px; font-size: 15px; line-height: 1.7; color: #3F424D; }
.as-prose li { margin: 4px 0; }
.as-prose strong { color: #292B31; font-weight: 600; }

/* Small form status line (contact dealer) */
.as-note { margin: 0; font-size: 13px; color: #595D6C; }
.as-note.is-error { color: #B42318; }

/* Car page: sticky bottom bar on phones — price · Call (growth plan 9.4) · Get pre-approved (opens the buy box) */
.as-mbar { display: none; }
@media (max-width:900px) {
  .as-mbar { display: flex; align-items: center; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 1px solid var(--color-neutral-200); box-shadow: 0 -8px 24px rgba(41,43,49,.08); }
  .as-mbar a { flex: none; padding: 0 16px; display: flex; align-items: center; justify-content: center; height: 44px; border-radius: 8px; font-size: 14px; font-weight: 600; white-space: nowrap; color: #292B31; border: 1px solid var(--color-neutral-300); background: #FFFFFF; }
  .as-mbar a.is-primary { flex: 1; color: #FFFFFF; background: #1F5BD8; border-color: #1F5BD8; }
  .as-has-mbar { padding-bottom: 72px; }
  .as-mbar { transition: transform .2s ease; }
  .as-mbar.is-hidden { transform: translateY(110%); pointer-events: none; }
}

/* Header (Claude Design, kit 30e): 72px tall, logo 36px; under 640px 60px tall, no-dots logo 28px. Footer logo 32px */
.as-hbar { height: 72px; }
.as-hmenu { top: 72px; }
@media (max-width: 639px) {
  .as-hbar { height: 60px; }
  .as-hmenu { top: 60px; }
  .as-logo img { height: 28px !important; }
}
footer .as-logo img { height: 32px !important; }

/* Listing card (handoff 2026-11-03): whole card links to the car, financing box, outline button */
.as-cover::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.as-fin-box { display: flex; align-items: center; gap: 12px; margin-top: 4px; padding: 10px 14px; background: #F4F7FD; border: 1px solid #DCE6FA; border-radius: 10px; color: #292B31; max-width: 420px; }
.as-fin-check { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #E3F3EA; color: #17643F; display: grid; place-items: center; }
.as-fin-label { font-size: 11px; font-weight: 600; color: #1747AE; text-transform: uppercase; letter-spacing: .05em; }
.as-h-blue-outline:hover { background: #F4F7FD !important; color: #1747AE !important; }
/* hidden must win over inline display styles */
[hidden] { display: none !important; }

/* Car page buy box (handoff 2026-11-03): tabs, 3-step financing form, full screen on phones */
.as-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--color-neutral-100); border-radius: 10px; }
.as-tabs button { height: 38px; font-family: inherit; font-size: 14px; font-weight: 600; color: #595D6C; background: transparent; border: none; border-radius: 7px; cursor: pointer; }
.as-tabs button[aria-selected="true"] { color: #292B31; background: #FFFFFF; box-shadow: 0 1px 3px rgba(15,42,74,.12); }
.as-steps { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.as-step { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; color: #595D6C; }
.as-step b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: #595D6C; background: #FFFFFF; border: 1px solid var(--color-neutral-300); box-sizing: border-box; }
.as-step.is-on b { color: #FFFFFF; background: #1F5BD8; border-color: #1F5BD8; }
.as-step.is-current { color: #292B31; }
.as-progress { height: 4px; background: var(--color-neutral-200); border-radius: 2px; overflow: hidden; }
.as-progress i { display: block; height: 100%; width: 33.34%; background: #1F5BD8; border-radius: 2px; transition: width .3s; }
.as-chips-set { margin: 0; padding: 0; border: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.as-chips-set legend, .as-wlabel { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: #292B31; }
.as-wlabel { margin-bottom: 0; }
.as-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.as-chip { position: relative; }
.as-chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.as-chip span { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; font-size: 14px; font-weight: 500; color: #292B31; background: #FFFFFF; border: 1px solid var(--color-neutral-300); border-radius: 999px; cursor: pointer; box-sizing: border-box; }
.as-chip span:hover { border-color: #1F5BD8; }
.as-chip input:checked + span { color: #FFFFFF; background: #1F5BD8; border-color: #1F5BD8; }
.as-chip input:focus-visible + span { outline: 2px solid #1F5BD8; outline-offset: 2px; }
.as-wbtn { height: 46px; padding: 0 16px; font-family: inherit; font-size: 15px; font-weight: 600; color: #292B31; background: #FFFFFF; border: 1px solid var(--color-neutral-300); border-radius: 8px; cursor: pointer; }
.as-wbtn:hover { border-color: #1F5BD8; }
.as-wbtn.is-primary { flex: 1; color: #FFFFFF; background: #1F5BD8; border-color: #1F5BD8; }
.as-wbtn.is-primary:hover { background: #1747AE; }
.as-wbtn:disabled { opacity: .6; cursor: default; }
.as-sheet-close { display: none; align-items: center; justify-content: space-between; gap: 12px; }
.as-sheet-close button { width: 44px; height: 44px; display: grid; place-items: center; font-family: inherit; color: #292B31; background: var(--color-neutral-100); border: none; border-radius: 50%; cursor: pointer; }
.as-mbar-price { display: flex; flex-direction: column; min-width: 0; margin-right: 4px; }
.as-mbar-price strong { font-size: 17px; font-weight: 600; color: #292B31; font-variant-numeric: tabular-nums; white-space: nowrap; }
.as-mbar-price span { font-size: 13px; color: #595D6C; white-space: nowrap; }
@media (max-width:900px) {
  .as-buybox.is-sheet { position: fixed !important; inset: 0; z-index: 60; border-radius: 0 !important; border: none !important; overflow-y: auto; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)) !important; }
  .as-buybox.is-sheet .as-sheet-close { display: flex; }
  html.as-sheet-open { overflow: hidden; }
  html.as-sheet-open .as-mbar { display: none; }
}
