.section-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 18px 0 13px;
}
.section-line h2,
.section-line p {
  margin: 0;
  font-weight: 400;
}
.section-line p {
  color: #7f8587;
}
.teams {
  display: grid;
  grid-template-columns: repeat(11, 1fr);
  gap: 5px;
  padding-bottom: 25px;
}
.team-button {
  position: relative;
  border: 1px solid var(--line);
  background: #1a1c1e;
  min-height: 63px;
  padding: 13px 5px 10px;
  font-size: 11px;
  white-space: nowrap;
  transition: background 0.15s;
}
.team-button:before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 0;
  height: 2px;
  background: var(--color);
}
.team-button small {
  display: block;
  color: #7f8587;
  font: 9px var(--mono);
  margin-top: 6px;
}
.team-button:hover {
  background: #272a2c;
}
.team-button[aria-pressed="true"] {
  border-color: var(--color);
  background: color-mix(in srgb, var(--color) 12%, #17191b);
}
.team-button[aria-pressed="true"] small {
  color: #d4d8d6;
}
.team-heading {
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 25px 0 23px;
}
.team-identity {
  display: flex;
  gap: 15px;
  align-items: center;
}
.team-identity > span {
  width: 4px;
  align-self: stretch;
  background: var(--team);
}
#team-official {
  color: #999fa1;
  margin: 0 0 5px;
  font-size: 9px;
}
#team-title {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
  margin: 0;
}
.status {
  font: 11px var(--mono);
  color: var(--lime);
  padding: 9px 12px;
  border: 1px solid #465336;
  background: #20271c;
}
.status.none {
  color: var(--muted);
  background: #1d2021;
  border-color: var(--line);
}
.explorer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  border: 1px solid var(--line);
}
.visual-column {
  min-width: 0;
  padding: 21px 23px 20px;
  background: #181a1c;
}
.visual-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 16px;
}
.visual-toolbar > .micro {
  color: #adb2b3;
  font-size: 9px;
}
.legend {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #adb2b3;
}
.legend i,
.upgrade-key {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--lime);
  border-radius: 50%;
}
.car-views {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 530px;
  gap: 10px;
}
.view {
  margin: 0;
  min-width: 0;
  background: radial-gradient(ellipse at center, #24292c 0%, #191c1f 64%);
  border: 1px solid #2b3033;
  position: relative;
  overflow: hidden;
}
.view:before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(#a0b0bb07 1px, transparent 1px),
    linear-gradient(90deg, #a0b0bb07 1px, transparent 1px);
  background-size: 28px 28px;
}
.view figcaption {
  position: absolute;
  left: 13px;
  right: 13px;
  top: 12px;
  display: flex;
  justify-content: space-between;
  color: #7f8a90;
  font: 8px var(--mono);
  letter-spacing: 1.2px;
  z-index: 1;
}
.orientation {
  color: #616d73;
}
.end-views {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
}
.view > div {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 25px 8px 10px;
}
.view svg {
  width: 100%;
  height: auto;
  max-height: 485px;
  overflow: visible;
}
.top-view svg {
  max-height: 495px;
}
.diagram-foot {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 9px;
  color: #8b9397;
  line-height: 1.6;
  margin: 13px 0 16px;
}
.diagram-foot > span:last-child {
  white-space: nowrap;
}
.team-key {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--team);
  margin-right: 4px;
}
.upgrade-key {
  margin: 0 4px 0 9px;
}
.region-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 31px;
}
.region-buttons button {
  padding: 7px 9px;
  background: #1b2020;
  border: 1px solid #454d3d;
  color: #b8c6a4;
  font-size: 10px;
}
.region-buttons button[aria-pressed="true"] {
  background: var(--lime);
  color: #1a2210;
  border-color: var(--lime);
}
.show-all {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  margin-top: 17px;
  border: 1px solid #555a5c;
  background: transparent;
  font-size: 12px;
}
.show-all:hover {
  background: #262a2d;
}
.show-all span {
  font-size: 17px;
  color: var(--lime);
}
.details-panel {
  background: #1b1e20;
  border-left: 1px solid var(--line);
  padding: 22px;
}
.panel-label {
  color: #888f93;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
}
#detail-heading {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.6px;
  margin: 22px 0 9px;
}
.detail-intro {
  font-size: 12px;
  line-height: 1.7;
  color: #aeb5b7;
  margin: 0 0 23px;
}
.detail-intro strong {
  color: var(--lime);
  font-weight: 400;
}
.upgrade-card {
  border-top: 1px solid #3c4244;
  padding: 18px 0;
}
.upgrade-index {
  font: 9px var(--mono);
  letter-spacing: 1.1px;
  color: var(--lime);
}
.upgrade-card h4 {
  font-size: 17px;
  margin: 9px 0 12px;
  font-weight: 500;
}
.upgrade-card > p {
  font-size: 12px;
  line-height: 1.8;
  color: #b4bbbe;
  margin: 10px 0;
}
.upgrade-card .reason {
  font: 9px/1.6 var(--mono);
  color: #d3d8d9;
}
.upgrade-card details {
  margin: 16px 0;
}
.upgrade-card summary {
  font-size: 11px;
  cursor: pointer;
  color: #e2e4dd;
}
.original {
  font-size: 11px;
  line-height: 1.8;
  color: #afb7b9;
}
.original dt {
  color: #e0e2dc;
  margin-top: 15px;
  font: 9px var(--mono);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.original dd {
  margin: 5px 0 0;
}
.upgrade-card > a {
  font-size: 10px;
  color: #c5cecf;
}
.annotation {
  font-size: 10px !important;
  border-left: 2px solid #8e9a6d;
  padding-left: 10px;
  color: #c5cbaa !important;
  line-height: 1.7;
}
.no-updates {
  padding: 27px 0;
}
.no-updates .empty-symbol {
  font-size: 40px;
  color: #6c767b;
}
.no-updates h3 {
  font-weight: 400;
  font-size: 24px;
  line-height: 1.3;
}
.no-updates p {
  font-size: 12px;
  line-height: 1.9;
  color: #adb4b6;
}
.no-updates blockquote {
  margin: 25px 0;
  border-left: 2px solid #4a5359;
  padding-left: 15px;
  font-size: 13px;
  line-height: 1.7;
  color: #d4d9d9;
}
.no-updates a {
  font-size: 11px;
}
.all-upgrades {
  margin-top: 30px;
}
.table-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.table-heading p {
  color: var(--muted);
  margin: 0 0 7px;
}
.table-heading h3 {
  font-size: 26px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.7px;
}
.table-heading a {
  font-size: 11px;
}
.table-scroll {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
  min-width: 700px;
}
th {
  font: 9px var(--mono);
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #a5afb3;
  background: #202427;
  padding: 15px;
}
td {
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  padding: 18px 15px;
  line-height: 1.8;
  color: #bac0c2;
}
.table-scroll td:first-child {
  width: 18%;
  color: #f0f0e9;
  font-size: 14px;
}
.table-scroll td:nth-child(2) {
  width: 20%;
}
.table-scroll td:nth-child(3) {
  width: 49%;
}
td p {
  margin: 0 0 12px;
}
td details {
  font-size: 11px;
}
td summary {
  cursor: pointer;
  color: #d0d6d6;
}
td .annotation {
  margin-top: 13px;
}
.source-note {
  border-top: 1px solid var(--line);
  padding: 28px 0 35px;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 200px 1fr 180px;
  gap: 25px;
  align-items: start;
}
.source-note > span {
  font-size: 9px;
  color: #c1c5c3;
}
.source-note p {
  font-size: 11px;
  line-height: 1.9;
  color: #929b9e;
  margin: 0;
  max-width: 640px;
}
.source-note a {
  font-size: 10px;
  text-align: right;
  line-height: 1.8;
}
.no-script {
  padding: 25px;
  border: 1px solid var(--red);
}
/* The same semantic regions are reused in each fixed view. */
.car-svg .paint {
  fill: var(--team);
  stroke: #d1d9dd;
  stroke-opacity: 0.35;
  stroke-width: 1;
}
.car-svg .carbon {
  fill: #171b20;
  stroke: #63717b;
  stroke-width: 1;
}
.car-svg .rubber {
  stroke: #62696d;
  stroke-width: 1.4;
}
.car-svg .line {
  fill: none;
  stroke: #a6b2b9;
  stroke-opacity: 0.5;
  stroke-width: 1;
}
.car-svg .suspension {
  fill: none;
  stroke: #929da3;
  stroke-width: 3;
}
.car-svg .region.active .paint,
.car-svg .region.active .carbon {
  fill: var(--lime);
  fill-opacity: 0.58;
  stroke: var(--lime);
  stroke-opacity: 1;
  stroke-width: 2;
}
.car-svg .region.active {
  cursor: pointer;
}
.car-svg .region.active:hover .paint,
.car-svg .region.active:hover .carbon,
.car-svg .region.selected .paint,
.car-svg .region.selected .carbon {
  fill-opacity: 0.92;
  stroke: #f2ffd3;
  stroke-width: 2.2;
}
.car-svg .region:focus {
  outline: none;
}
.car-svg .region:focus-visible .paint,
.car-svg .region:focus-visible .carbon {
  stroke: white;
  stroke-width: 4;
}
.hotspot-badge {
  pointer-events: none;
}
.hotspot-badge circle {
  fill: #172016;
  stroke: var(--lime);
  stroke-width: 1.4;
}
.hotspot-badge text {
  fill: var(--lime);
  font: 11px var(--mono);
  text-anchor: middle;
  dominant-baseline: central;
}
.car-svg .region.selected .hotspot-badge circle {
  fill: var(--lime);
}
.car-svg .region.selected .hotspot-badge text {
  fill: #16200e;
}
.explorer a:focus-visible,
.explorer button:focus-visible,
.explorer [tabindex]:focus-visible {
  outline-color: var(--lime);
}
.team-button.is-empty {
  opacity: 0.45;
}

.team-button.is-empty:hover,
.team-button.is-empty:focus-visible {
  opacity: 0.75;
}

.team-button.is-empty[aria-pressed="true"] {
  opacity: 1;
}
@media (min-width: 1450px) {
  .car-views {
    min-height: 565px;
  }
}
@media (max-width: 1100px) {
  .explorer-grid {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
  .details-panel {
    padding: 18px;
  }
  .visual-column {
    padding: 18px 15px;
  }
  .car-views {
    min-height: 480px;
  }
  .teams {
    grid-template-columns: repeat(6, 1fr);
  }
  .team-button {
    min-height: 55px;
  }
  .source-note {
    grid-template-columns: 150px 1fr;
  }
  .source-note a {
    grid-column: 2;
    text-align: left;
  }
  .legend {
    font-size: 9px;
  }
  .diagram-foot {
    flex-direction: column;
    gap: 5px;
  }
}
@media (max-width: 760px) {
  .section-line p {
    display: none;
  }
  .teams {
    grid-template-columns: repeat(4, 1fr);
  }
  .team-button {
    font-size: 10px;
  }
  .team-heading {
    gap: 12px;
    align-items: flex-start;
  }
  #team-title {
    font-size: 27px;
  }
  #team-official {
    max-width: 190px;
    font-size: 8px;
    letter-spacing: 0.7px;
  }
  .status {
    font-size: 9px;
    white-space: nowrap;
    padding: 8px;
  }
  .explorer-grid {
    display: block;
  }
  .details-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 22px;
  }
  .car-views {
    min-height: 440px;
  }
  .view svg {
    max-height: 405px;
  }
  .visual-toolbar {
    align-items: flex-start;
  }
  .visual-toolbar > .micro {
    font-size: 8px;
    letter-spacing: 0.8px;
  }
  .legend {
    max-width: 130px;
    line-height: 1.5;
  }
  .view figcaption {
    font-size: 7px;
    left: 8px;
    top: 9px;
    letter-spacing: 0.8px;
  }
  .orientation {
    display: none;
  }
  .view > div {
    padding: 22px 3px 8px;
  }
  .visual-column {
    padding: 18px 12px;
  }
  .diagram-foot {
    font-size: 8px;
  }
  .source-note {
    display: block;
    margin-top: 30px;
  }
  .source-note p {
    margin: 12px 0;
  }
  .source-note a {
    text-align: left;
  }
  .table-heading h3 {
    font-size: 23px;
  }
  .table-heading a {
    font-size: 10px;
  }
  .region-buttons button {
    min-height: 34px;
  }
  .team-button {
    min-height: 54px;
  }
}

/* 3D car explorer (assets/upgrades-3d.js). The flat diagrams below stay as
   the fallback and are shown when the 3D view cannot start (html.no-3d). */
.car-stage {
  position: relative;
  height: clamp(320px, 46vw, 520px);
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 50% 40%, #1d2124, #101214);
  overflow: hidden;
}
.car-canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
}
.car-canvas:active {
  cursor: grabbing;
}
.car-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  font: 11px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.car-hint {
  position: absolute;
  left: 14px;
  bottom: 12px;
  z-index: 1;
  margin: 0;
  font: 10px var(--mono);
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  pointer-events: none;
}
.car-reset {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 1;
  border: 1px solid var(--line);
  background: rgba(20, 22, 24, 0.8);
  padding: 6px 12px;
  font: 11px var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.car-reset:hover {
  border-color: var(--red);
}
html:not(.no-3d) .car-views,
html:not(.no-3d) .diagram-foot > span:last-child,
html.no-3d .car-stage {
  display: none;
}
@media (max-width: 640px) {
  .car-stage {
    height: 340px;
  }
}
