/*
 * The service pages (parts/service.php). Four things in a row where v3's lists take three: the four benefits as two
 * pairs, the four steps on one line on a wide screen, so no row ends with one left over.
 */

.sv-price {
  margin-top: var(--sp-3);
}

.sv-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3) var(--sp-6);
  margin: var(--sp-5) 0 0;
  padding: 0;
  list-style: none;
}

.sv-stats li {
  display: grid;
  gap: var(--sp-1);
}

.sv-stats b {
  font-size: var(--step-2);
  font-variant-numeric: tabular-nums;
}

.sv-stats span {
  color: var(--ink-2);
  font-size: var(--step--1);
}

@media (min-width: 720px) {
  .sv-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .sv-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sv-steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* The files most bought for the service: the name over its price, four to a row on a wide screen. */
.sv-files {
  display: grid;
  gap: var(--sp-4);
  margin: 0 0 var(--sp-5);
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .sv-files {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .sv-files {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sv-files a {
  display: grid;
  gap: var(--sp-2);
  height: 100%;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line-strong);
  color: inherit;
  text-decoration: none;
}

.sv-files a:hover .sv-files__name {
  text-decoration: underline;
}

.sv-files__price {
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
}

/* The other nine services: their names, three to a row on a wide screen. */
.sv-more {
  display: grid;
  gap: var(--sp-3) var(--sp-6);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 720px) {
  .sv-more {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1040px) {
  .sv-more {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sv-steps .steps__n {
  display: block;
  margin-bottom: var(--sp-2);
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: var(--step--1);
}
