/* Compare the models (7 Oct 2026): a segmented control of three groups and one table of three models. Mobile first.
   Tokens come from the page (--orange, --char, --sand, --line, --display ...). Phone: a label column and three equal columns, small type, no sideways scroll at 360 and up.
   Tablet and desktop: the same table at full width. Motion: one curve, 320 ms. The model header stays under the site bar while the rows scroll past. */
#cmp-root{--e:var(--ease);--ms:.34s;--lab:78px;--pad:5px;--cmp-top:66px}
/* a little wider than the rest of the page, so each column's picture is big */
#compare .wrap{--wrap:1360px}
#cmp-root .sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}


/* the panels: the height glides to the new table instead of jumping */
.cmp-panels{position:relative;margin-top:14px}
.cmp-panels.moving{overflow:hidden;transition:height var(--ms) var(--e)}
.cmp-panel[hidden]{display:none}
.cmp-panel{transition:opacity var(--ms) var(--e),transform var(--ms) var(--e)}
.cmp-panel.in{opacity:0;transform:translateY(8px)}
.cmp-panel.out{position:absolute;left:0;right:0;top:0;opacity:0;pointer-events:none}
.cmp-panel:focus-visible{border-radius:var(--r-lg)}

/* the table */
.cmp-scroll{border:1px solid var(--line);border-radius:var(--r-lg);overflow:clip}
table.cmp3{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-size:12px;line-height:1.3;color:var(--ink)}
table.cmp3 th,table.cmp3 td{padding:7px var(--pad);border-bottom:1px solid var(--line-2);text-align:left;vertical-align:middle;overflow-wrap:anywhere}
table.cmp3 thead th{background:var(--char);color:var(--on-dark);vertical-align:bottom;padding:8px var(--pad) 8px;border-bottom:0}
table.cmp3 thead tr.hd>th{padding-bottom:6px}
table.cmp3 thead th.rowh{background:var(--char);width:var(--lab)}
table.cmp3 thead tr:last-child>*{border-bottom:2px solid var(--orange)}
table.cmp3 thead tr.sel>*{border-bottom:0}
/* the strip: the name and the price of each column stay under the site bar while the rows scroll past (the pictures above it scroll away) */
table.cmp3 thead tr.sel>td{position:sticky;top:var(--cmp-top);z-index:3;background:var(--char);color:var(--on-dark);padding:2px var(--pad) 9px;vertical-align:top;box-shadow:0 1px 0 var(--orange)}
table.cmp3 tr.sel .who{display:block;min-height:1.15em;font-family:var(--display);font-weight:800;font-size:15px;line-height:1.15;letter-spacing:.06em;text-transform:uppercase;margin-bottom:4px}
table.cmp3[data-names] tr.sel .who{min-height:2.3em}
table.cmp3 tr.sel .who i{display:block;font-style:normal;font-weight:700;font-size:10.5px;color:var(--on-dark-2);letter-spacing:.05em}
/* the price: excl. VAT first, incl. VAT underneath */
#cmp-root .pr{display:block;line-height:1.2}
#cmp-root .pr b{display:block;font-family:var(--display);font-weight:800;font-size:14.5px;letter-spacing:.01em;white-space:nowrap}
#cmp-root .pr small{display:inline;font-family:var(--sans);font-weight:400;font-size:10.5px;color:var(--on-dark-2)}
#cmp-root .pr small.inc{display:block;margin-top:1px}
/* the swipe row of big heroes (phones only) */
.cmp-rail{display:flex;gap:10px;scroll-padding-left:10px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;padding:10px 10px 14px;background:var(--char);color:var(--on-dark);scrollbar-width:none}
.cmp-rail::-webkit-scrollbar{display:none}
.cmp-rail .slide{flex:0 0 84%;scroll-snap-align:start;display:block;color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}
.cmp-rail .slide:focus-visible{outline:2px solid var(--orange);outline-offset:2px;border-radius:6px}
.cmp-rail img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:6px;background:#0d0d0d}
.cmp-rail .who{display:block;margin:10px 0 4px;font-family:var(--display);font-weight:800;font-size:19px;line-height:1.1;letter-spacing:.06em;text-transform:uppercase}
.cmp-rail .who i{font-style:normal;font-weight:700;color:var(--on-dark-2);margin-left:6px;letter-spacing:.05em}
#cmp-root .cmp-rail .pr b{font-size:21px}
#cmp-root .cmp-rail .pr small{font-size:12px}
@media (max-width:599px){
  table.cmp3 thead tr.hd{display:none}
  table.cmp3 tr.sel .hp{display:none}
  table.cmp3 thead tr.sel>td{padding-top:7px}
}
/* the picture and the name are one link to the trailer's card: no button, a hover and a focus state only */
table.cmp3 a.mv{color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent}
table.cmp3 a.mv.pic{display:block;border-radius:6px;overflow:hidden;background:#0d0d0d}
table.cmp3 a.mv.pic img{transition:transform var(--ms) var(--e),filter var(--ms) var(--e)}
table.cmp3 a.mv .who{transition:color var(--ms) var(--e)}
table.cmp3 a.mv:focus-visible{outline:2px solid var(--orange);outline-offset:3px;border-radius:4px}
@media (hover:hover){
  table.cmp3 thead th:hover a.mv.pic img{transform:scale(1.035);filter:brightness(1.08)}
  table.cmp3 tr.sel td:hover a.mv .who{color:var(--orange)}
}
table.cmp3 thead th img{display:block;width:100%;aspect-ratio:16/10;object-fit:cover;background:#0d0d0d}
table.cmp3 thead th b{display:block;font-family:var(--display);font-weight:800;font-size:17px;text-transform:uppercase;line-height:1;letter-spacing:.01em}
table.cmp3 th.rowh{width:var(--lab);font-weight:600;font-size:12px;line-height:1.25;background:#fff;color:var(--ink)}
table.cmp3 tr.grp th{padding:7px var(--pad);background:var(--sand);font-family:var(--display);font-weight:800;font-size:13px;letter-spacing:.12em;text-transform:uppercase;color:var(--orange-2);width:auto}
table.cmp3 td small{display:block;margin-top:2px;font-weight:400;font-size:11.5px;color:var(--muted)}
table.cmp3 td.c{text-align:center}
table.cmp3 td.same{text-align:center;color:var(--ink-2);background:rgba(244,240,232,.5)}
table.cmp3 tbody tr:last-child th,table.cmp3 tbody tr:last-child td{border-bottom:0}
table.cmp3 .ck{width:20px;height:20px;font-size:11px;line-height:1}
table.cmp3 .dash{font-size:16px;line-height:1}
table.cmp3 .optn{font-size:9.5px;padding:2px 4px;letter-spacing:.04em}

/* the foot: the price note and key, and the PDF for this group */
.cmp-foot{display:flex;flex-direction:column;gap:12px;margin-top:12px}
.cmp-note{margin:0;font-size:12.5px;line-height:1.5;color:var(--muted)}
.cmp-key{display:inline-flex;flex-wrap:wrap;align-items:center;gap:4px 14px;margin-left:6px}
.cmp-key .ck{width:18px;height:18px;font-size:10.5px;margin-right:4px}
.cmp-key .dash{font-size:16px;margin-right:4px}
.cmp-dl{width:100%}

/* the line under the tabs, the four build tiles at the foot of the tab, and the one button that asks for the trailer */
.cmp-intro{margin:0 0 16px;font-size:16px;line-height:1.5;color:var(--ink-2);max-width:62ch;text-wrap:balance}
.cmp-panel .build-k{margin:30px 0 14px}
.cmp-panel .build-k .i{width:26px;height:26px;stroke-width:1.6;margin-right:10px;flex:none}   /* the group's own glyph, the same as on its tab */
.cmp-panel .feats.build4{margin-top:0}
.cmp-go{margin-top:22px;display:flex}
.cmp-go .btn{width:100%;justify-content:center}

@media (min-width:600px){
  .cmp-rail{display:none}
  #cmp-root{--lab:132px;--pad:12px}
  table.cmp3{font-size:14px}
  table.cmp3 th.rowh{font-size:13.5px}
  table.cmp3 thead th b{font-size:20px}
  table.cmp3 th,table.cmp3 td{padding-top:7px;padding-bottom:7px}
  table.cmp3 .ck{width:22px;height:22px;font-size:12px}
  table.cmp3 .optn{font-size:11px;padding:3px 7px}
  table.cmp3[data-names] tr.sel .who,table.cmp3 tr.sel .who{min-height:0}
  table.cmp3 tr.sel .who i{display:inline;font-size:inherit;margin-left:2px}
  #cmp-root .pr b{font-size:17px}
  #cmp-root .pr small{font-size:11.5px}
  .cmp-foot{flex-direction:row;align-items:center;justify-content:space-between;gap:20px}
  .cmp-note{font-size:13px;flex:1}
  .cmp-dl{width:auto;flex:none}
  .cmp-intro{font-size:17px;margin-bottom:18px}
  .cmp-go .btn{width:auto;min-width:280px}
}
@media (min-width:900px){
  #cmp-root{--lab:140px;--pad:10px}
  table.cmp3 tr.sel .who{font-size:17px}
  table.cmp3 tr.sel .hp{font-size:16px}
  table.cmp3 th,table.cmp3 td{padding-top:6px;padding-bottom:6px}
  #cmp-root .pr b{font-size:19px}
}
@media (max-width:359px){#cmp-root{--lab:70px;--pad:4px}table.cmp3{font-size:12px}}
@media (prefers-reduced-motion:reduce){.cmp-panel,.cmp-panels.moving{transition:none!important}}
