.cp-body {
  --cp-bg: #0f0f13;
  --cp-raised: #151419;
  --cp-raised-2: #1a191f;
  --cp-line: rgba(255, 255, 255, 0.08);
  --cp-line-2: rgba(255, 255, 255, 0.12);
  --cp-line-3: rgba(255, 255, 255, 0.28);
  --cp-text: #f5f5f5;
  --cp-muted: rgba(245, 245, 245, 0.7);
  --cp-faint: rgba(245, 245, 245, 0.54);
  --cp-accent: #f56e0f;
  --cp-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --cp-cut: 16px;
  --cx-fill: var(--cp-bg);
  background: var(--cp-bg);
  color: var(--cp-text);
}

html:has(.cp-body),
.cp-body {
  overflow-x: clip;
}

.cp {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 1312px;
  margin: 0 auto;
  padding: 136px 20px 96px;
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.5;
}

.cp *,
.cp *::before,
.cp *::after {
  box-sizing: border-box;
  border-radius: 0;
}

.cp [hidden] {
  display: none !important;
}

.cp a:focus-visible,
.cp input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.cp-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.cp-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--cp-faint);
  font-size: 13px;
  line-height: 24px;
}

.cp-crumbs li {
  display: flex;
  align-items: center;
  min-width: 0;
}

.cp-crumbs li + li::before {
  content: "/";
  margin: 0 10px;
  color: rgba(245, 245, 245, 0.3);
}

.cp-crumbs a {
  color: var(--cp-muted);
  text-decoration: none;
  transition: color 0.16s var(--cp-ease);
}

.cp-crumbs a:hover {
  color: var(--cp-text);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cp-crumbs [aria-current] {
  color: var(--cp-text);
  overflow-wrap: anywhere;
}

.cp-head {
  margin-top: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--cp-line-2);
}

.cp-head--logo {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.cp-head__logo {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  background: var(--cp-raised);
  border: 1px solid var(--cp-line-2);
}

.cp-head__logo img {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.cp-head__title {
  max-width: 24em;
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 36px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.cp-head__over {
  display: block;
  margin-bottom: 8px;
  color: var(--cp-muted);
  font-family: var(--font-family);
  font-size: 15px;
  font-weight: 500;
  line-height: 24px;
  letter-spacing: 0;
}

.cp-head__lead {
  max-width: 72ch;
  margin: 16px 0 0;
  color: var(--cp-muted);
  font-size: 16px;
  line-height: 1.6;
}

.cp-tools {
  display: grid;
  gap: 24px;
  padding: 32px 0 24px;
}

.cp-filter {
  display: grid;
  grid-template-columns: minmax(0, 440px) auto;
  gap: 8px 24px;
  align-items: center;
  justify-content: start;
}

.cp-filter__label {
  grid-column: 1 / -1;
  color: var(--cp-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  cursor: default;
}

.cp-filter__field {
  position: relative;
  box-sizing: border-box;
  height: 48px;
  border: 1px solid var(--cp-line-3);
  background: var(--cp-raised);
  transition: border-color 0.16s var(--cp-ease);
}

.cp-filter__field:hover {
  border-color: rgba(255, 255, 255, 0.44);
}

.cp-filter__field:focus-within {
  border-color: #f56e0f;
}

.cp-filter__icon {
  position: absolute;
  top: 14px;
  left: 15px;
  color: var(--cp-faint);
  pointer-events: none;
}

.cp-filter__input {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0 19px 0 45px;
  border: 0;
  background: none;
  color: var(--cp-text);
  font: inherit;
  font-size: 16px;
  appearance: none;
}

.cp .cp-filter__input:focus-visible {
  outline: none;
}

.cp-filter__input::placeholder {
  color: var(--cp-faint);
  opacity: 1;
}

.cp-filter__input::-webkit-search-cancel-button {
  filter: invert(1) grayscale(1);
  cursor: pointer;
}

.cp-filter__count {
  margin: 0;
  color: var(--cp-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cp-az ul,
.cp-jump ul {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-az ul {
  gap: 4px;
}

.cp-az a {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--cp-line-2);
  color: var(--cp-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.16s var(--cp-ease), border-color 0.16s var(--cp-ease), background-color 0.16s var(--cp-ease);
}

.cp-az a:hover {
  border-color: var(--cp-line-3);
  background: var(--cp-raised-2);
  color: #fff;
}

.cp.is-filtered .cp-az,
.cp.is-filtered .cp-jump {
  display: none;
}

.cp-jump ul {
  gap: 8px;
}

.cp-jump a {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid var(--cp-line-2);
  color: var(--cp-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  text-decoration: none;
  transition: border-color 0.16s var(--cp-ease), background-color 0.16s var(--cp-ease);
}

.cp-jump a span {
  color: var(--cp-faint);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.cp-jump a:hover {
  border-color: var(--cp-line-3);
  background: var(--cp-raised-2);
}

.cp-index {
  border-bottom: 1px solid var(--cp-line-2);
}

.cp-index__group {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 12px 0;
  border-top: 1px solid var(--cp-line-2);
  scroll-margin-top: 120px;
}

.cp-index__letter {
  margin: 0;
  padding-top: 10px;
  color: var(--cp-faint);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 32px;
}

.cp-index__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(196px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.cp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 8px 12px 8px 8px;
  color: var(--cp-text);
  font-size: 15px;
  line-height: 20px;
  text-decoration: none;
  transition: background-color 0.16s var(--cp-ease);
}

.cp-brand__logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
}

.cp-brand__logo img {
  display: block;
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.cp-brand__name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cp-brand:hover {
  background: var(--cp-raised-2);
  color: #fff;
}

.cp .cp-brand:focus-visible,
.cp .cp-model:focus-visible {
  outline-offset: -2px;
}

.cp-section {
  margin-top: 56px;
}

.cp-section--flush {
  margin-top: 0;
}

.cp-section__title,
.cp-gen__title,
.cp-panel__title {
  margin: 0;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.cp-section__title {
  font-size: 18px;
  line-height: 28px;
}

.cp-section__lead {
  max-width: 68ch;
  margin: 8px 0 0;
  color: var(--cp-muted);
}

.cp-models {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--cp-line-2);
}

.cp-models > li {
  border-bottom: 1px solid var(--cp-line);
}

.cp-model {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 14px 12px;
  color: var(--cp-text);
  text-decoration: none;
  transition: background-color 0.16s var(--cp-ease);
}

.cp-model__name {
  min-width: 0;
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.cp-model__years {
  flex: none;
  color: var(--cp-faint);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.cp-model:hover {
  background: var(--cp-raised-2);
  color: #fff;
}

.cp-gen {
  margin-top: 48px;
  scroll-margin-top: 120px;
}

.cp-tools + .cp-gen {
  margin-top: 16px;
}

.cp-gen__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--cp-line-3);
}

.cp-gen__title {
  font-size: 18px;
  line-height: 28px;
}

.cp-gen__years {
  color: var(--cp-muted);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.cp-table-wrap {
  overflow-x: auto;
}

.cp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
  font-variant-numeric: tabular-nums lining-nums;
  text-align: left;
}

.cp-table th,
.cp-table td {
  padding: 12px 24px 12px 0;
  border-bottom: 1px solid var(--cp-line);
  font-weight: 400;
  vertical-align: baseline;
}

.cp-table thead th {
  padding-top: 12px;
  padding-bottom: 8px;
  color: var(--cp-faint);
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  white-space: nowrap;
}

.cp-table th:first-child,
.cp-table td:first-child {
  padding-left: 12px;
}

.cp-table th:last-child,
.cp-table td:last-child {
  padding-right: 12px;
}

.cp-table tbody tr {
  transition: background-color 0.16s var(--cp-ease);
}

.cp-table tbody tr:hover {
  background: var(--cp-raised-2);
}

@media (min-width: 768px) {
  .cp-table--engines {
    min-width: 720px;
    table-layout: fixed;
  }
  .cp-table--engines thead th:nth-child(1) {
    width: 32%;
  }
  .cp-table--engines thead th:nth-child(2) {
    width: 12%;
  }
  .cp-table--engines thead th:nth-child(3),
  .cp-table--engines thead th:nth-child(4) {
    width: 13%;
  }
}

.cp-table--engines tbody th a {
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.28);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.16s var(--cp-ease);
}

.cp-table--engines tbody th a:hover {
  text-decoration-color: var(--cp-accent);
}

.cp-table--engines tbody th span {
  display: inline-block;
  color: var(--cp-muted);
  font-size: 13px;
  font-weight: 400;
}

.cp-table--engines td {
  color: var(--cp-muted);
}

.cp-table--engines td[data-label] {
  color: var(--cp-faint);
  white-space: nowrap;
  word-spacing: 4px;
}

.cp-table--engines td i {
  color: var(--cp-muted);
  font-style: normal;
}

.cp-table--engines td b {
  color: #fff;
  font-weight: 600;
}

.cp-table--gain th[scope="row"] {
  color: var(--cp-muted);
}

.cp-table--gain b {
  color: #fff;
  font-weight: 600;
}

.cp-empty {
  margin: 0;
  padding: 32px 0;
  color: var(--cp-muted);
}

.cp-empty--inline {
  padding: 16px 12px;
  border-bottom: 1px solid var(--cp-line);
}

.cp-empty a,
.cp-panel__link {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.16s var(--cp-ease);
}

.cp-empty a:hover,
.cp-panel__link:hover {
  text-decoration-color: var(--cp-accent);
}

.cp-stages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.cp-stages__item {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--cp-line-3);
  color: var(--cp-text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.16s var(--cp-ease);
}

a.cp-stages__item:hover {
  background: var(--cp-raised-2);
}

.cp-stages__item.is-active {
  border-color: #f5f5f5;
  background: #f5f5f5;
  color: #0b0b0c;
}

.cp-engine {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  grid-template-areas:
    "chart aside"
    "details aside";
  column-gap: 40px;
  align-items: start;
  margin-top: 32px;
}

.cp-engine__chart {
  grid-area: chart;
  min-width: 0;
}

.cp-engine__details {
  grid-area: details;
  min-width: 0;
}

.cp-engine__aside {
  grid-area: aside;
  position: sticky;
  top: 120px;
}

.cp-engine .dyno-section {
  margin-top: 0;
}

.cp-panel {
  --cx-cut: var(--cp-cut);
  --cx-line: var(--cp-line-3);
  --cx-fill: var(--cp-raised);
  --cx-border: 0px;
  --cx-inset: 1px;
  padding: 24px;
}

.cp-panel__title {
  font-size: 16px;
  line-height: 24px;
}

.cp-panel__list {
  margin: 16px 0 0;
}

.cp-panel__list > div,
.cp-specs > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--cp-line);
}

.cp-panel__list dt,
.cp-specs dt {
  flex: none;
  color: var(--cp-muted);
  font-size: 13px;
}

.cp-panel__list dd,
.cp-specs dd {
  min-width: 0;
  margin: 0;
  color: var(--cp-text);
  font-size: 14px;
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.cp-panel__note {
  margin: 16px 0 0;
  color: var(--cp-muted);
  font-size: 13px;
}

.cp-panel__btn {
  display: flex;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  text-align: center;
}

.cp-panel__link {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
}

.cp-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 40px;
  margin: 16px 0 0;
  border-top: 1px solid var(--cp-line-2);
}

.cp-specs > div {
  padding: 12px 0;
}

.cp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.cp-tags li {
  padding: 8px 12px;
  border: 1px solid var(--cp-line-2);
  background: var(--cp-raised);
  color: var(--cp-text);
  font-size: 13px;
  line-height: 16px;
}

@media (max-width: 1100px) {
  .cp-engine {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "chart"
      "aside"
      "details";
  }
  .cp-engine__aside {
    position: static;
    margin-top: 24px;
  }
  .cp-models {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .cp {
    padding: 104px 16px 64px;
  }
  .cp-head {
    margin-top: 24px;
    padding-bottom: 24px;
  }
  .cp-head--logo {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 0 16px;
    align-items: center;
  }
  .cp-head__body {
    display: contents;
  }
  .cp-head--logo .cp-head__lead {
    grid-column: 1 / -1;
  }
  .cp-head__logo {
    width: 56px;
    height: 56px;
  }
  .cp-head__logo img {
    width: 40px;
    height: 40px;
  }
  .cp-head__title {
    font-size: 22px;
    line-height: 1.3;
  }
  .cp-tools {
    padding: 24px 0 16px;
  }
  .cp-filter {
    grid-template-columns: minmax(0, 1fr);
  }
  .cp-az a {
    min-width: 40px;
    height: 40px;
  }
  .cp-jump a {
    min-height: 40px;
    padding: 10px 12px;
  }
  .cp-index__group {
    grid-template-columns: 40px minmax(0, 1fr);
    scroll-margin-top: 96px;
  }
  .cp-index__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cp-brand {
    gap: 8px;
    padding: 8px 4px;
    font-size: 14px;
  }
  .cp-brand__logo,
  .cp-brand__logo img {
    width: 28px;
    height: 28px;
  }
  .cp-models {
    grid-template-columns: minmax(0, 1fr);
  }
  .cp-model {
    padding: 14px 4px;
  }
  .cp-gen {
    scroll-margin-top: 96px;
  }
  .cp-table--engines thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .cp-table--engines,
  .cp-table--engines tbody {
    display: block;
  }
  .cp-table--engines tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 16px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--cp-line);
  }
  .cp-table.cp-table--engines tbody :is(th, td) {
    display: block;
    width: auto;
    padding: 0;
    border: 0;
    font-size: 13px;
  }
  .cp-table--engines tbody th,
  .cp-table--engines td:last-child {
    flex: 0 0 100%;
  }
  .cp-table.cp-table--engines td[data-label] {
    font-size: 15px;
  }
  .cp-table--engines td:nth-child(2) {
    order: 1;
  }
  .cp-table--engines td:last-child {
    order: 2;
  }
  .cp-table--engines td:empty {
    display: none;
  }
  .cp-table--engines td:nth-child(3):has(i)::after {
    content: " hp";
    color: var(--cp-faint);
    font-size: 13px;
  }
  .cp-table--engines td:nth-child(4):has(i)::after {
    content: " Nm";
    color: var(--cp-faint);
    font-size: 13px;
  }
  .cp-specs {
    grid-template-columns: minmax(0, 1fr);
  }
  .cp-section {
    margin-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp *,
  .cp *::before,
  .cp *::after {
    transition: none !important;
  }
}

.cp .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.cp-index {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  border-top: 1px solid var(--cp-line-2);
  border-left: 1px solid var(--cp-line-2);
}

.cp-index__group,
.cp-index__list {
  display: contents;
}

.cp-index__list li {
  border-right: 1px solid var(--cp-line-2);
  border-bottom: 1px solid var(--cp-line-2);
}

.cp-index .cp-brand {
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  height: 100%;
  min-height: 132px;
  padding: 18px 16px 16px;
}

.cp-index .cp-brand__logo,
.cp-index .cp-brand__logo img {
  width: 64px;
  height: 64px;
}

.cp-index .cp-empty {
  grid-column: 1 / -1;
  padding: 24px 16px;
}

@media (max-width: 640px) {
  .cp-index {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .cp-index .cp-brand {
    min-height: 116px;
  }
  .cp-index .cp-brand__logo,
  .cp-index .cp-brand__logo img {
    width: 52px;
    height: 52px;
  }
}
