
/* AutoPilot V25.23 — comparison stays inside the page on desktop.
   No nested horizontal scrollbar. Four cars fit into the normal content width. */

html, body{
  overflow-x:hidden!important;
}

.compare-table-wrap,
.compare-table-wrap-v2515{
  width:100%!important;
  max-width:100%!important;
  overflow:visible!important;
  box-sizing:border-box!important;
}

.compare-reference-shell-v2515{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
}

.compare-table-v2515{
  width:100%!important;
  min-width:0!important;
  max-width:100%!important;
  table-layout:fixed!important;
}

/* Compact left label column; remaining width is shared equally by selected cars. */
.compare-table-v2515 .metric-head,
.compare-table-v2515 tbody th{
  width:17%!important;
  min-width:0!important;
  max-width:none!important;
}

.compare-table-v2515 thead th:not(.metric-head),
.compare-table-v2515 tbody td{
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  overflow-wrap:anywhere!important;
  word-break:normal!important;
}

.compare-car-copy-v2515{
  min-width:0!important;
  padding-left:30px!important;
  padding-right:30px!important;
}

.compare-car-copy-v2515 strong,
.compare-car-copy-v2515 small,
.compare-car-copy-v2515 a{
  max-width:100%!important;
  overflow-wrap:anywhere!important;
}

.compare-photo-v2515,
.compare-photo-v2515 img,
.compare-car-head-v2515>img[data-compare-photo]{
  max-width:100%!important;
}

/* Smaller label column when all 4 cars are visible. */
@media(min-width:1100px){
  .compare-table-v2515 .metric-head,
  .compare-table-v2515 tbody th{
    width:16%!important;
  }
}

/* On truly narrow screens allow the document itself to scroll horizontally,
   but never create a second scrollbar inside the comparison block. */
@media(max-width:760px){
  html, body{
    overflow-x:auto!important;
  }
  .compare-reference-shell-v2515{
    width:max-content!important;
    min-width:760px!important;
  }
  .compare-table-v2515{
    width:760px!important;
    min-width:760px!important;
  }
  .compare-table-v2515 .metric-head,
  .compare-table-v2515 tbody th{
    width:155px!important;
  }
}
