/* qs.css (spec-qs-landing 8, D-190): the quality score round's three sections under the form
   (the how-it-works panel, the details card, the store card); loaded after landing.css and
   once.css on the form pages; reads landing.css's tokens; every selector a qs- class. */

.qs-card {
  margin: 28px 0 0;
  padding: 20px 16px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 1px 2px rgba(2, 28, 74, .06), 0 4px 14px rgba(2, 28, 74, .08);
  text-align: left;
  min-width: 0;
  overflow-wrap: anywhere;
  scroll-margin-top: 16px;
}

.qs-card + .qs-card {
  margin-top: 16px;
}

.qs-card:target {
  border-color: var(--blue);
}

.qs-h {
  margin: 0 0 10px;
  font: 700 1.5rem/1.15 var(--display);
  color: var(--navy);
}

.qs-lead {
  margin: 0 0 10px;
  font: 500 1rem/1.5 var(--body);
  color: var(--text);
}

.qs-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qs-list > li {
  position: relative;
  padding: 8px 0 8px 28px;
  font: 500 1rem/1.4 var(--body);
  color: var(--text);
}

.qs-list > li + li {
  border-top: 1px solid var(--rule);
}

.qs-list > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 6px;
  height: 11px;
  border: solid var(--red);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

.qs-addr {
  margin: 0 0 4px;
  font: 700 1.05rem/1.4 var(--body);
  color: var(--navy);
}

.qs-hours {
  margin: 0 0 12px;
  font: 500 1rem/1.4 var(--body);
  color: var(--text);
}

.qs-label {
  font-weight: 700;
  color: var(--navy);
}

.qs-valid {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--tint);
  font: 500 .95rem/1.45 var(--body);
  color: var(--text);
}

.qs-steps {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  counter-reset: qs-step;
  display: grid;
  gap: 14px;
}

.qs-steps > li {
  position: relative;
  min-height: 32px;
  padding: 4px 0 0 44px;
  font: 500 1rem/1.45 var(--body);
  color: var(--text);
  counter-increment: qs-step;
}

.qs-steps > li::before {
  content: counter(qs-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font: 700 1.1rem/32px var(--display);
  text-align: center;
}

@media (min-width: 640px) {
  .qs-card {
    padding: 24px 24px 22px;
  }

  .qs-h {
    font-size: 1.65rem;
  }
}

.qs-how { padding: 16px; border-radius: 10px; background: var(--tint); }
.qs-how .qs-h { font-size: 1.3rem; margin: 0 0 12px; }
.qs-how .qs-steps { list-style: none; margin: 0; padding: 0; counter-reset: qs-step; display: grid; gap: 12px; }
.qs-how .qs-steps li { counter-increment: qs-step; position: relative; min-height: 28px; padding: 3px 0 0 40px; line-height: 1.4; color: var(--text); }
.qs-how .qs-steps li::before { content: counter(qs-step); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--white); font: 700 1rem/28px var(--display); text-align: center; }

.qs-how .qs-h { font-size: clamp(1rem, 5.4vw, 1.3rem); white-space: nowrap; letter-spacing: .01em; }
.qs-how .qs-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; align-items: start; min-height: 28px; padding: 0; position: static; line-height: 1.45; }
.qs-how .qs-steps li::before { position: static; display: grid; place-items: center; width: 28px; height: 28px; line-height: 1; }
.qs-how .qs-steps li > span { display: block; padding-top: calc((28px - 1.45em) / 2); }

.qs-how { margin-top: 28px; }
.qs-how + .qs-card, .qs-card + .qs-card { margin-top: 16px; }

.qs-h .qs-offer { color: var(--red); }
