/* About us (about.html): the title and intro, six tiles with live counts, one row per section with a photo beside the
   text (the side swaps row by row on desktop), then Follow us and the "missing a car?" band. One column on mobile. */

.ab-page {
  padding-bottom: 56px;
}

.ab-head {
  max-width: 860px;
  margin-top: 8px;
}

.ab-title {
  margin: 4px 0 10px;
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  line-height: 1.15;
}

.ab-lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.ab-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 0;
}

.ab-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

/* The number reads first, the label under it; in the markup the label (dt) comes first */
.ab-stat dd {
  order: -1;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.ab-stat dt {
  color: var(--text-muted);
  font-size: .875rem;
}

.ab-rows {
  display: grid;
  gap: 44px;
  margin-top: 44px;
}

.ab-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.ab-row__media {
  display: block;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.ab-row__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform .35s ease;
}

.ab-row:hover .ab-row__media img {
  transform: scale(1.04);
}

.ab-row__text {
  max-width: 62ch;
}

.ab-row__title,
.ab-follow__title,
.ab-cta__title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.ab-row__title a {
  color: var(--text);
  text-decoration: none;
}

.ab-row:hover .ab-row__title a,
.ab-row__title a:hover {
  color: var(--link);
}

.ab-row__text p {
  margin: 0 0 12px;
  color: var(--text);
  font-size: 1.0625rem;
  line-height: 1.7;
}

.ab-row__link {
  margin-top: 6px;
}

.ab-follow {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 16px 32px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.ab-follow p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.7;
}

.ab-social {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.ab-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--control-border);
  border-radius: 999px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.ab-social a:hover {
  border-color: var(--link);
  color: var(--link);
}

.ab-social .icon {
  flex: none;
  width: 20px;
  height: 20px;
}

.ab-cta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 22px;
  border-color: var(--accent);
  background: var(--accent-soft);
}

.ab-cta p {
  max-width: 640px;
  margin: 0;
  color: var(--text-muted);
}

.ab-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

@media (max-width: 767px) {
  .ab-cta__actions > * {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .ab-page {
    padding-bottom: 72px;
  }

  .ab-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .ab-row {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px;
  }

  .ab-row:nth-child(even) .ab-row__media {
    order: 2;
  }

  /* No newest blog cover: the text takes the whole row */
  .ab-row--text {
    grid-template-columns: minmax(0, 1fr);
  }

  .ab-follow {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .ab-follow .ab-social {
    grid-template-columns: repeat(4, auto);
  }
}

@media (min-width: 1024px) {
  .ab-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
