main header {
  padding: 1rem 0 0.5rem 0;
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%);
  z-index: 10;
}

main > .container {
  z-index: 8;
}

#table-of-contents {
  column-width: 162px;
  font-size: 0.8rem;
  margin-right: 15px;
}

ul {
  list-style-position: inside;
  padding-inline-start: 15px;
}

li {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

li.brand {
  margin-bottom: 0.6rem;
}

#table-of-contents .brand > a {
  color: var(--beep-green);
  font-weight: bold;
}

#table-of-contents .model > a {
  color: var(--beep-orange);
}

.car-brand {
  background-color: var(--beep-lightgray);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1rem;
}

.car-brand:last-of-type {
  padding-bottom: 2rem;
}

@media (max-width: 768px) {
  .car-brand {
    justify-content: center;
  }
}

h2 {
  border-bottom: 1px solid var(--beep-green);
  background-color: var(--beep-lightgray);
  flex-basis: 100%;
}
h2 a {
  color: var(--beep-green);
  transition: color 0.2s ease;
}

.car-tile {
  border-radius: 8px;
  display: inline-block;
  position: relative;
  height: 295px;
  width: 230px;
  transition: transform 0.38s ease;
}
.car-tile:hover {
  transform: scale(1.05);
}

.car-tile img {
  border-radius: 8px 8px 0 0;
  object-fit: cover;
  object-position: center;
  height: 198px;
  width: 100%;
}

.car-tile figcaption {
  background-color: var(--beep-white);
  border-radius: 0 0 8px 8px;
  color: var(--beep-black);
  display: block;
  padding: 0.5rem;
  position: absolute;
  bottom: 0;
  height: 97px;
  width: 100%;
}
.car-tile:hover figcaption {
  text-decoration: underline;
}

.car-tile .price {
  color: var(--beep-green);
  position: absolute;
  right: 0.25rem;
  bottom: 0.25rem;
}

.price small {
  font-size: 62%;
}
