/* Gabriel home page browse rows — styled to match CarGurus' own card rows. */
:root{
  --g-brand:var(--surface-brand-blue,#0763d3);
  --g-navy:var(--surface-brand-darkest-blue,#05317b);
  --g-ink:var(--text-almost-black,#0c0c11);
  --g-mid:var(--text-mid,#666);
  --g-line:var(--borders-light,#e4e4e5);
  --g-soft:var(--surface-neutral-lighter,#f5f5f5);
  --g-font:Graphik,"Rund Display",Helvetica,Arial,system-ui,sans-serif;
}
.g-home-row{font-family:var(--g-font);color:var(--g-ink);padding:34px 0}
.g-home-row:nth-of-type(2){background:var(--surface-brand-lightest-blue,#e4f5fe)}
.g-home-in{max-width:1480px;margin:0 auto;padding:0 24px;position:relative}
.g-home-h2{margin:0 0 6px;font-size:30px;line-height:1.15;font-weight:700;color:var(--g-navy)}
.g-home-sub{margin:0 0 10px;font-size:15px;color:var(--g-mid)}
.g-home-viewall{display:inline-block;margin-bottom:16px;color:var(--g-brand);
  font-size:14px;font-weight:700;text-decoration:underline}
.g-home-cards{display:flex;gap:16px;overflow-x:auto;padding:4px 2px 12px;scroll-snap-type:x proximity}
.g-home-cards::-webkit-scrollbar{height:8px}
.g-home-cards::-webkit-scrollbar-thumb{background:#0000002e;border-radius:4px}

.g-home-cards > a{flex:0 0 auto;width:188px;scroll-snap-align:start;text-decoration:none;color:inherit}
.g-home-cards ._card_34coh_1{height:100%;background:#fff;border-radius:14px;
  box-shadow:0 1px 3px #0000001a;transition:box-shadow .16s ease,transform .16s ease}
.g-home-cards > a:hover ._card_34coh_1{box-shadow:0 8px 24px #00000024;transform:translateY(-2px)}
.g-home-cards ._cardInner_34coh_8{display:flex;flex-direction:column;align-items:center;
  gap:10px;padding:20px 14px 18px;height:100%}
.g-home-cards ._imageContainer_34coh_42{display:flex;align-items:center;justify-content:center;
  width:146px;height:82px}
.g-home-cards ._image_34coh_42{width:100%;height:100%;object-fit:contain}
.g-home-cards ._content_34coh_73{text-align:center;display:flex;flex-direction:column;gap:2px}
.g-home-cards ._content_34coh_73 p{margin:0;font-size:15px;font-weight:700;color:var(--g-navy)}
.g-card-count{font-size:12.5px;color:var(--g-mid)}

/* make cards have no logo artwork in the capture — use a lettermark */
.g-make-mark{width:146px;height:82px;display:flex;align-items:center;justify-content:center}
.g-make-mark span{display:flex;align-items:center;justify-content:center;width:56px;height:56px;
  border-radius:50%;background:var(--g-soft);color:var(--g-navy);font-size:19px;font-weight:700;
  letter-spacing:.5px}

@media (max-width:620px){
  .g-home-in{padding:0 16px}
  .g-home-h2{font-size:23px}
  .g-home-cards > a{width:158px}
}

/* ------------------------------------------------------------------ shelves
   The four car carousels that replaced the capture's personalised shelves.
   CarGurus' own card classes are kept so their stylesheet still applies; these
   rules only lay the shelf out and cover the bits their CSS hangs on React
   state for (the scroll buttons, the meta line). */
.g-shelf-section{font-family:var(--g-font);color:var(--g-ink);padding:30px 0}
.g-shelf-section:nth-of-type(even){background:var(--surface-neutral-lighter,#f7f7f8)}
.g-shelf{max-width:1480px;margin:0 auto;padding:0 24px;position:relative}
.g-shelf ._shelfTitleSection_d2ogz_48{display:flex;align-items:baseline;gap:16px;margin:0 0 14px}
.g-shelf ._shelfTitle_d2ogz_48{margin:0;font-size:26px;line-height:1.2;font-weight:700;
  color:var(--g-navy)}
.g-shelf-all{color:var(--g-brand);font-size:14px;font-weight:700;text-decoration:underline}
.g-shelf-carousel{position:relative}
.g-shelf-track{display:flex;gap:16px;overflow-x:auto;scroll-behavior:smooth;
  scroll-snap-type:x proximity;padding:4px 2px 14px;scrollbar-width:thin}
.g-shelf-track::-webkit-scrollbar{height:8px}
.g-shelf-track::-webkit-scrollbar-thumb{background:#0000002e;border-radius:4px}

.g-shelf-card{flex:0 0 auto;width:236px;scroll-snap-align:start}
.g-shelf-card-wide{width:272px}
.g-shelf-link{display:block;height:100%;text-decoration:none;color:inherit}
.g-shelf-card ._listingCard_bx7u9_1{height:100%;display:flex;flex-direction:column;
  background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 1px 3px #0000001a;
  transition:box-shadow .16s ease,transform .16s ease}
.g-shelf-link:hover ._listingCard_bx7u9_1{box-shadow:0 8px 24px #00000026;transform:translateY(-2px)}
.g-shelf-card ._cardImageWrapper_bx7u9_34{display:flex;gap:2px;background:var(--g-soft);
  aspect-ratio:4/3;overflow:hidden}
.g-shelf-card ._cardImage_bx7u9_34{width:100%;height:100%;object-fit:cover;display:block}
.g-shelf-pair{aspect-ratio:16/9}
.g-shelf-pair ._cardImage_bx7u9_34{width:50%}
.g-shelf-noimg{width:100%;height:100%;background:var(--g-soft)}
.g-shelf-card ._cardBody_bx7u9_47{padding:12px 14px 14px;display:flex;flex-direction:column;gap:4px}
.g-shelf-card ._listingTitle_bx7u9_53{font-size:15px;font-weight:700;line-height:1.3;
  color:var(--g-ink);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
  overflow:hidden}
.g-shelf-card ._listingPrice_bx7u9_113{font-size:18px;font-weight:700;color:var(--g-navy)}
.g-shelf-meta{font-size:12.5px;color:var(--g-mid)}
.g-shelf-count{font-size:12.5px;font-weight:700;color:var(--g-brand);text-transform:uppercase;
  letter-spacing:.4px}

.g-shelf-nav{position:absolute;top:38%;transform:translateY(-50%);z-index:2;width:40px;height:40px;
  border-radius:50%;border:1px solid var(--g-line);background:#fff;color:var(--g-navy);
  display:flex;align-items:center;justify-content:center;cursor:pointer;
  box-shadow:0 2px 10px #00000024}
.g-shelf-nav:hover{background:var(--g-soft)}
.g-shelf-nav[hidden]{display:none}
.g-shelf-prev{left:-6px}
.g-shelf-next{right:-6px}

@media (max-width:620px){
  .g-shelf{padding:0 16px}
  .g-shelf ._shelfTitle_d2ogz_48{font-size:21px}
  .g-shelf-card{width:200px}
  .g-shelf-card-wide{width:230px}
  .g-shelf-nav{display:none}
}

/* CarGurus' card body stretches to fill the card in their grid; inside a
   fixed-height shelf that leaves a gap between the text and the photos. */
.g-shelf-card ._cardBody_bx7u9_47{flex:0 0 auto;min-height:0}
.g-shelf-card ._listingCard_bx7u9_1{justify-content:flex-start}
.g-shelf-card-wide ._cardBody_bx7u9_47{order:2}
.g-shelf-pair{order:1;height:132px;aspect-ratio:auto}
.g-shelf-card ._cardImageWrapper_bx7u9_34{flex:0 0 auto}

/* CarGurus lay the price row out as a flex row with the deal-rating badge
   beside it; our cards have no badge, so the price and the mileage line sat on
   top of each other. Stack them, and keep every card the same height. */
.g-shelf-card ._detailsAndLocationContainer_bx7u9_73{display:block}
.g-shelf-card ._listingDetailsWrapper_bx7u9_69{display:flex;flex-direction:column;
  align-items:flex-start;gap:2px;width:100%}
.g-shelf-card ._cardImageWrapper_bx7u9_34{height:152px;aspect-ratio:auto}
.g-shelf-card ._listingTitle_bx7u9_53{min-height:2.6em}
.g-shelf-track{align-items:stretch}
