/* The match workspace leads; the brand story stays below the shopping experience. */
.swipe-workspace { padding-top: 28px; max-width: 1600px; margin: auto; }
.match-intro { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.match-intro h1 { font-size: clamp(2rem, 3.5vw, 3.5rem); line-height: 1.05; margin: 4px 0 5px; }
.match-intro .eyebrow { font-size: .75rem; color: #72756a; }
.match-intro p { color: var(--muted); font-size: .95rem; }
.earl-avatar { flex: 0 0 76px; height: 76px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); background: #48483f url('/assets/earl-hero.png') 69% 20% / 250% auto no-repeat; }
.funnel { background: white; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 26px; box-shadow: 0 6px 24px #24252205; z-index: 12; }
.funnel.is-collapsed { position: sticky; top: 8px; box-shadow: 0 5px 18px #24252212; }
.funnel-steps { display: flex; gap: 7px; padding: 12px 16px; overflow-x: auto; overscroll-behavior-x: contain; border-bottom: 1px solid #e8eae2; scrollbar-width: thin; }
.funnel-steps button { display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: transparent; border-radius: 8px; font-size: .88rem; font-weight: 600; white-space: nowrap; min-height: 44px; }
.funnel-steps button > span { width: 21px; height: 21px; border: 1px solid #aeb2a6; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; }
.funnel-steps button[aria-current] { background: var(--ink); color: #fff; }
.funnel-steps button[aria-current] > span { background: var(--orange); border-color: var(--orange); }
.funnel-steps button:hover { background: #edeFE7; color: var(--ink); }
.funnel-summary-row { display: flex; align-items: center; gap: 14px; padding: 12px 22px; border-bottom: 1px solid #eef0e8; }
.funnel-summary-row > .text-button { white-space: nowrap; flex-shrink: 0; font-size: .8rem; min-height: 30px; }
.funnel-summary { display: flex; gap: 7px; overflow-x: auto; align-items: center; flex: 1; min-width: 0; scrollbar-width: thin; padding: 2px; }
.funnel-summary button { white-space: nowrap; background: #f0f2ea; padding: 7px 11px; border-radius: 5px; font-size: .78rem; font-weight: 500; min-height: 32px; }
.funnel-summary button span { margin-left: 5px; font-size: 1.05rem; }
.no-preferences { color: var(--muted); font-size: .85rem; }
#funnel-panel { padding: 20px 24px 10px; }
.funnel-question h3 { font-family: var(--display); font-size: 1.8rem; line-height: 1.1; font-weight: 700; }
.funnel-question p { margin-top: 7px; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.choice-chips { display: flex; flex-wrap: wrap; gap: 9px; margin: 17px 0 10px; }
.choice-chip { display: flex; align-items: center; gap: 15px; justify-content: space-between; flex-wrap: wrap; background: white; border: 1px solid #cdd2c3; border-radius: 8px; padding: 12px 17px; min-width: 122px; min-height: 49px; text-align: left; }
.choice-chip > span { font-size: .95rem; font-weight: 600; }
.choice-chip > small { background: #f0f2eb; padding: 3px 7px; border-radius: 5px; color: #696e61; font-size: .75rem; }
.choice-chip > em { flex-basis: 100%; font-size: .75rem; font-style: normal; color: var(--muted); margin-top: -6px; }
.choice-chip i { font-style: normal; }
.choice-chip.selected { border-color: var(--orange); background: #fff4ed; color: #ad3517; box-shadow: inset 0 0 0 1px var(--orange); }
.choice-chip.selected small { background: #fbdcca; color: #953617; }
.choice-chip:hover:not(:disabled) { border-color: var(--orange); }
.choice-chip:disabled { opacity: .45; }
.feature-mode { display: inline-flex; padding: 4px; background: #f0f2eb; margin-top: 17px; border-radius: 9px; gap: 4px; }
.feature-mode button { padding: 10px 15px; border-radius: 6px; background: transparent; font-weight: 600; font-size: .88rem; min-height: 42px; }
.feature-mode button[aria-pressed=true] { background: var(--ink); color: #fff; }
.feature-mode button > span { margin-left: 8px; opacity: .7; }
.feature-logic { display: flex; align-items: center; gap: 9px; font-size: .8rem; margin-top: 12px; flex-wrap: wrap; }
.feature-logic > span { color: var(--muted); }
.feature-logic button { background: transparent; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; min-height: 36px; }
.feature-logic button[aria-pressed=true] { color: #ab3415; border-color: var(--orange); background: #fff4ed; }
.funnel-footnote { color: var(--muted); font-size: .75rem; line-height: 1.5; margin-top: 9px; }
.funnel-footer { display: flex; align-items: center; gap: 20px; padding: 13px 24px 17px; }
.funnel-footer > span { color: var(--muted); font-size: .85rem; }
.funnel-footer > div { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.funnel-footer .button { padding: 9px 19px; min-height: 43px; border-radius: 7px; gap: 25px; }
.extra-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 15px; padding: 5px 24px 15px; }
.extra-filters label { font-size: .85rem; font-weight: 600; }
.extra-filters select, .extra-filters input { width: 100%; display: block; min-height: 44px; margin-top: 7px; padding: 10px; border: 1px solid #cdd2c3; border-radius: 6px; background: #fff; color: var(--ink); }
.wide-field { grid-column: 1 / -1; }
#results { scroll-margin-top: 130px; }
.swipe-workspace .results-toolbar { max-width: 1100px; margin: 0 auto 8px; }
.swipe-workspace .availability { max-width: 1100px; margin: 0 auto 18px; }
.swipe-workspace .vehicle-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.swipe-layout { display: grid; grid-template-columns: minmax(0, 570px) minmax(220px, 340px); justify-content: center; align-items: center; gap: clamp(30px, 6vw, 100px); padding: 5px 20px 0; }
.swipe-panel { min-width: 0; }
.deck-topline { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; color: #737768; font-size: .75rem; font-weight: 600; letter-spacing: .04em; }
.card-stack { position: relative; isolation: isolate; }
.card-stack:before, .card-stack:after { content: ''; position: absolute; inset: 6px 7px -6px; border: 1px solid #d9ddcf; border-radius: 14px; background: #e8ece0; z-index: -1; transform: rotate(-1.5deg); }
.card-stack:after { inset: 11px 16px -10px; z-index: -2; transform: rotate(1.2deg); }
.swipe-surface { border-radius: 14px; overflow: hidden; position: relative; touch-action: pan-y; user-select: none; -webkit-user-select: none; will-change: transform; transition: transform .22s ease, opacity .22s ease; box-shadow: 0 12px 35px #27292212; cursor: grab; }
.swipe-surface:hover { transform: none; }
.swipe-surface.dragging { transition: none; cursor: grabbing; }
.swipe-surface .card-photo { aspect-ratio: 1.7; }
.swipe-surface .card-photo img { object-fit: cover; pointer-events: none; }
.swipe-surface:hover .card-photo img { transform: none; }
.swipe-surface .condition-badge { top: 15px; left: 16px; font-size: .75rem; border-radius: 4px; }
.swipe-surface .card-body { padding: 20px 23px 16px; }
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; }
.card-heading > div { min-width: 0; }
.card-heading .card-price { white-space: nowrap; }
.swipe-surface h3 { font-size: 2.1rem; }
.swipe-surface .card-price { font-size: 1.7rem; margin-top: 16px; }
.swipe-surface .card-trim { font-size: .9rem; white-space: normal; }
.swipe-surface .card-year { font-size: .85rem; }
.swipe-surface .card-specs { font-size: .85rem; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.card-features { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.card-features > span { padding: 6px 8px; border-radius: 5px; background: #f0f2eb; color: #5b6353; font-size: .75rem; }
.card-features .need-match { background: #e6efdf; color: #335826; }
.card-features .want-match { background: #fff0db; color: #8c5615; }
.card-disclosure { font-size: .7rem; line-height: 1.4; color: var(--muted); margin-top: 10px; }
.swipe-surface .card-store { font-size: .85rem; margin-top: 12px; align-items: center; min-height: 33px; }
.swipe-surface .card-store .text-button { font-size: .85rem; white-space: nowrap; }
.photo-count { position: absolute; right: 15px; bottom: 12px; color: white; background: #2229; padding: 6px 9px; border-radius: 5px; font-size: .75rem; pointer-events: none; }
.swipe-stamp { position: absolute; top: 45px; z-index: 3; border: 4px solid; border-radius: 7px; padding: 6px 15px; font-family: var(--display); font-weight: 800; font-size: 2.8rem; pointer-events: none; }
.stamp-like { left: 30px; color: #347943; transform: rotate(-16deg); background: #f3ffeee0; opacity: var(--drag-like, 0); }
.stamp-dislike { right: 30px; color: #c9412d; transform: rotate(16deg); background: #fff3eee0; opacity: var(--drag-dislike, 0); }
.swipe-surface.exit-like { transform: translateX(110%) rotate(16deg); opacity: 0; }
.swipe-surface.exit-dislike { transform: translateX(-110%) rotate(-16deg); opacity: 0; }
.exit-like .stamp-like, .exit-dislike .stamp-dislike { opacity: 1; }
.swipe-actions { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 23px 0 0; padding: 10px 0; }
.swipe-actions button { display: flex; flex-direction: column; align-items: center; justify-content: center; background: transparent; border: 0; padding: 0; }
.swipe-actions .decision { flex-direction: row; min-width: 148px; gap: 11px; border-radius: 50px; min-height: 61px; padding: 10px 23px; font-size: .95rem; }
.swipe-actions .dislike { color: #bb3f2e; background: #fff; border: 1px solid #e6c5be; box-shadow: 0 3px 9px #cc482408; }
.swipe-actions .like { color: #fff; background: #387143; border: 1px solid #387143; box-shadow: 0 4px 13px #34744022; }
.swipe-actions .decision > span { font-size: 2rem; line-height: 1; font-weight: 400; }
.swipe-actions .dislike > span { font-size: 2.8rem; }
.swipe-actions .decision:hover:not(:disabled) { filter: brightness(.94); }
.swipe-actions .undo-decision { min-width: 44px; color: #7a7161; min-height: 56px; gap: 3px; }
.undo-decision > span { font-size: 1.65rem; line-height: 1; }
.undo-decision > small { font-size: .75rem; }
.swipe-hint { font-size: .8rem; color: #74796d; margin-top: 7px; }
.deck-companion > .eyebrow { color: #878c7d; font-size: .7rem; }
.deck-companion h2 { font-size: 4rem; margin: 14px 0 20px; }
.deck-companion > p { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.decision-totals { display: flex; gap: 35px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 28px 0 18px; padding: 22px 0; }
.decision-totals button { background: transparent; display: flex; flex-direction: column; align-items: start; gap: 5px; }
.decision-totals strong { font-family: var(--display); font-size: 2.5rem; font-weight: 600; }
.decision-totals span { font-size: .8rem; color: var(--muted); }
.deck-companion > .funnel-footnote { font-size: .8rem; }
.keyboard-hint { margin-top: 25px; color: #8a8e81; font-size: .8rem; display: flex; align-items: center; gap: 10px; }
kbd { font: inherit; background: #e9ece2; border: 1px solid #cdd2c3; padding: 3px 8px; border-radius: 4px; }
.finished-heart { font-size: 3rem; color: var(--orange); }
.finished-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 15px; }
.deck-finished { background: white; border-radius: 12px; max-width: 900px; margin: 20px auto; }
#swipe-deck { border-radius: 12px; }
.swipe-workspace .vehicle-grid .card-heading { display: block; }
.swipe-workspace .vehicle-grid .card-price { margin-top: 15px; }
.swipe-workspace .vehicle-grid .card-store .text-button { font-size: .75rem; }
body { overflow-x: clip; }
@media (max-width: 950px) {
  .swipe-layout { grid-template-columns: minmax(0, 560px); padding: 0 10px; }
  .deck-companion { display: none; }
  .extra-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .swipe-workspace .vehicle-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .header { padding: 14px 18px; gap: 12px; }
  .header nav { padding-top: 10px; font-size: .8rem; }
  .brand { font-size: 1.5rem; }
  .brand-mark { height: 38px; width: 38px; font-size: 1.7rem; }
  .brand-sub { font-size: .85rem; }
  .topline { display: none; }
  .swipe-workspace { padding: 20px 14px 32px; }
  .match-intro { gap: 11px; margin-bottom: 18px; }
  .earl-avatar { flex-basis: 50px; height: 50px; border-width: 2px; }
  .match-intro h1 { font-size: clamp(1.6rem, 6.6vw, 2.1rem); margin: 4px 0; }
  .match-intro .eyebrow { font-size: .6rem; letter-spacing: .06em; }
  .match-intro p { font-size: .78rem; }
  .funnel { border-radius: 10px; margin-bottom: 20px; }
  .funnel.is-collapsed { top: 3px; }
  .funnel-steps { padding: 7px; gap: 2px; }
  .funnel-steps button { padding: 8px 10px; font-size: .8rem; gap: 6px; }
  .funnel-steps button > span { width: 19px; height: 19px; font-size: .7rem; }
  .funnel-summary-row { gap: 10px; padding: 8px 11px; flex-wrap: wrap; }
  .funnel-summary { flex-basis: 100%; }
  .funnel-summary-row > .text-button { font-size: .75rem; min-height: 28px; }
  .funnel-summary-row > .text-button:last-child { margin-left: auto; }
  .funnel.is-collapsed .funnel-summary:has(.no-preferences) { display: none; }
  #funnel-panel { padding: 15px 13px 5px; }
  .funnel-question h3 { font-size: 1.5rem; }
  .funnel-question p { font-size: .8rem; line-height: 1.4; }
  .choice-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
  .choice-chip { min-width: 0; padding: 10px; min-height: 48px; gap: 7px; }
  .choice-chip > span { font-size: .85rem; }
  .choice-chip > small { font-size: .7rem; padding: 2px 5px; }
  .choice-chip > em { font-size: .7rem; line-height: 1.4; margin-top: 0; }
  .choice-chips[aria-label$="features"] { max-height: 230px; overflow-y: auto; padding: 2px; scrollbar-width: thin; overscroll-behavior-y: contain; }
  .feature-mode { display: flex; }
  .feature-mode button { flex: 1; padding: 8px; font-size: .8rem; }
  .feature-mode button > span { margin-left: 4px; }
  .feature-logic { gap: 7px; font-size: .75rem; }
  .feature-logic button { padding: 7px; }
  .funnel-footnote { font-size: .7rem; }
  .funnel-footer { padding: 10px 13px 14px; gap: 10px; flex-wrap: wrap; }
  .funnel-footer > span { font-size: .75rem; margin-left: auto; }
  .funnel-footer > div { width: 100%; justify-content: space-between; gap: 10px; }
  .funnel-footer .text-button { font-size: .8rem; }
  .funnel-footer .button { padding: 8px 20px; font-size: .85rem; }
  .extra-filters { padding: 10px 13px; gap: 13px 10px; }
  .extra-filters label { font-size: .8rem; }
  .extra-filters input, .extra-filters select { font-size: 1rem; }
  #results { scroll-margin-top: 155px; }
  .swipe-workspace .results-toolbar { gap: 9px; margin-bottom: 10px; }
  .swipe-workspace .view-actions { flex-wrap: wrap; gap: 7px 15px; justify-content: flex-start; }
  .swipe-workspace .view-actions .text-button { font-size: .75rem; min-height: 30px; }
  .swipe-workspace .sort-label { margin-left: auto; }
  .swipe-workspace .sort-label select { font-size: .75rem; max-width: 145px; }
  .swipe-workspace .availability { font-size: .7rem; line-height: 1.4; margin-bottom: 14px; }
  .swipe-layout { padding: 0 3px; }
  .deck-topline { font-size: .7rem; margin-bottom: 9px; }
  .swipe-surface .card-photo { aspect-ratio: 1.55; max-height: 34svh; }
  .swipe-surface .card-body { padding: 15px 14px 10px; }
  .swipe-surface h3 { font-size: 1.65rem; }
  .swipe-surface .card-year { font-size: .75rem; }
  .swipe-surface .card-price { font-size: 1.3rem; margin-top: 13px; }
  .swipe-surface .card-trim { font-size: .8rem; }
  .swipe-surface .card-specs { font-size: .75rem; gap: 6px; margin: 10px 0; }
  .card-features { gap: 5px; margin: 7px 0; }
  .card-features > span { font-size: .7rem; padding: 5px 7px; }
  .card-disclosure { font-size: .65rem; }
  .swipe-surface .card-store { font-size: .75rem; margin-top: 8px; }
  .swipe-surface .card-store .text-button { font-size: .75rem; }
  .swipe-actions { position: sticky; bottom: 0; z-index: 9; background: linear-gradient(#f6f5f100, var(--paper) 10%); margin-top: 17px; padding: 14px 0 max(8px, env(safe-area-inset-bottom)); gap: 12px; }
  .swipe-actions .decision { min-width: 0; flex: 1; min-height: 56px; padding: 9px 15px; gap: 8px; font-size: .9rem; }
  .swipe-actions .undo-decision { min-width: 45px; }
  .swipe-actions .decision > span { font-size: 1.7rem; }
  .swipe-actions .dislike > span { font-size: 2.4rem; }
  .swipe-hint { font-size: .7rem; margin-top: 4px; }
  .swipe-stamp { font-size: 2.2rem; top: 33px; }
  .stamp-like { left: 20px; }
  .stamp-dislike { right: 20px; }
  .card-heading { gap: 10px; }
  .finished-actions { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .swipe-surface { transition: none; }
}
