/* Roundup pages (scripts/render-roundup-pages.mjs): ranked lists of cars and trucks. They reuse the price guides'
   stylesheet (buying/price-guide.css) for the header, section bar, tables, plans and FAQ, and add only what a ranked list
   needs: a numbered item with an optional photo, a ruled facts list and a quick-pick list. White page, hairline rules,
   square corners and no cards, as on the price guides. Every class is rp-*. */
.dr .rp-main { padding-block:28px 24px; }
.dr .rp-sub { margin:30px 0 0; font-size:19px; line-height:1.3; }
.dr .rp-main .vp-section > .rp-sub + p { margin-top:8px; }

/* Quick picks: label on the left, the pick on the right, one hairline between rows. */
.dr .rp-quick { margin-top:26px; border-top:1px solid var(--ink); }
.dr .rp-quick li { display:grid; grid-template-columns:minmax(150px,240px) 1fr; gap:16px; padding:12px 0; border-bottom:1px solid var(--line); font-size:15.5px; line-height:1.45; }
.dr .rp-quick li > span { font-weight:600; color:var(--muted); }
.dr .rp-quick li a { font-weight:600; }

/* At-a-glance tables share the price guides' table; these rules number the rows and tighten the cells. */
.dr .rp-table { min-width:720px; font-variant-numeric:tabular-nums; }
.dr .rp-table tbody th { width:auto; min-width:210px; }
.dr .rp-table tbody th span, .dr .rp-offers tbody th span { display:block; margin-top:2px; font-size:13px; font-weight:400; color:var(--muted); }
.dr .rp-table tbody th a { color:var(--ink); }
.dr .rp-offers { min-width:620px; margin-top:6px; font-variant-numeric:tabular-nums; }
.dr .rp-offers tbody th { width:auto; }

/* The ranked list */
.dr .rp-list { display:grid; margin-top:8px; border-top:1px solid var(--ink); }
.dr .rp-item { display:grid; grid-template-columns:minmax(0,300px) minmax(0,1fr); gap:0 36px; padding:30px 0 32px; border-bottom:1px solid var(--line); scroll-margin-top:calc(var(--head) + var(--tabs) + 12px); }
.dr .rp-item--plain { grid-template-columns:minmax(0,1fr); }
.dr .rp-item__photo { align-self:start; }
.dr .rp-item__photo picture { display:block; aspect-ratio:3 / 2; background:var(--sage); }
.dr .rp-item__photo img { display:block; width:100%; height:100%; object-fit:cover; }
.dr .rp-item__body { min-width:0; }
.dr .rp-item h3 { display:flex; flex-wrap:wrap; align-items:baseline; gap:2px 12px; margin:0 0 10px; font-size:clamp(21px,2vw,25px); line-height:1.25; letter-spacing:-.015em; }
.dr .rp-item h3 small { font-size:14px; font-weight:400; letter-spacing:0; color:var(--muted); }
.dr .rp-rank { display:inline-grid; place-items:center; min-width:34px; height:34px; padding:0 6px; border:1px solid var(--ink); font-size:17px; line-height:1; font-variant-numeric:tabular-nums; transform:translateY(-2px); }
.dr .rp-item:first-child .rp-rank { background:var(--ink); color:#fff; }
.dr .rp-item p { max-width:68ch; margin:12px 0 0; font-size:15.5px; line-height:1.6; }
.dr .rp-item p.rp-verdict { margin-top:0; font-size:16.5px; }
.dr .rp-item .rp-buy { color:var(--muted); font-size:14.5px; }
.dr .rp-item .rp-links { font-size:14px; color:var(--muted); }
.dr .rp-item :is(p,dd) a { color:var(--sign); text-decoration:underline; text-underline-offset:3px; }

/* Facts: a ruled two-column list of label over value. */
.dr .rp-facts { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 28px; margin-top:16px; border-top:1px solid var(--line); }
.dr .rp-facts > div { padding:10px 0 11px; border-bottom:1px solid var(--line); }
.dr .rp-facts dt { font-size:12.5px; line-height:1.4; font-weight:600; color:var(--muted); }
.dr .rp-facts dd { margin:2px 0 0; font-size:15px; line-height:1.45; }
.dr .rp-facts dd small { display:block; font-size:12.5px; line-height:1.45; color:var(--muted); }
.dr .rp-facts dd strong { font-variant-numeric:tabular-nums; }

@media (max-width:1000px) {
  .dr .rp-item { grid-template-columns:minmax(0,240px) minmax(0,1fr); gap:0 24px; }
}
@media (max-width:760px) {
  .dr .rp-main { padding-block:20px 16px; }
  .dr .rp-item { grid-template-columns:minmax(0,1fr); padding:24px 0 26px; }
  .dr .rp-item__photo { margin-bottom:16px; }
  .dr .rp-facts { grid-template-columns:minmax(0,1fr); }
  .dr .rp-quick li { grid-template-columns:minmax(0,1fr); gap:2px; }
}
