/* ============================================================
   pages.css - the service pages (site/<slug>/index.html).
   They wear the home page's night sheet and reuse its sections,
   plates, clippings and footer; this file is only what those pages
   have that the home page does not: a lede under the h1, a steps
   list, a plain list, and the questions.
   ============================================================ */

/* The masthead's name is a link home here, not a label. */
.masthead__name { text-decoration: none; }

.page-hero .hero__kicker a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* No photograph under the type on these pages, so the header ends
   where the type does. */
.page-hero { padding-bottom: 8px; }

.page-lede {
  margin: -4px 0 18px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink-soft);
}

@media (min-width: 900px) {
  .page-lede { font-size: 21px; }
}

/* A single portrait plate is tipped in, like the home page's. */
.plates--single { display: block; }

/* ---------- How it goes ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  margin-top: 14px;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 14px 0 14px 44px;
  border-top: 1px solid color-mix(in srgb, var(--bark) 45%, transparent);
}

.steps li:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--bark) 45%, transparent);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 12px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--bark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}

/* ---------- A plain list: what it covers, before you call ---------- */

.page-list {
  list-style: none;
  margin-top: 14px;
}

.page-list li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid color-mix(in srgb, var(--bark) 45%, transparent);
}

.page-list li:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--bark) 45%, transparent);
}

.page-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 22px;
  width: 8px;
  height: 8px;
  background: var(--sawdust);
}

/* Safety comes first and is the one list in red. */
.page-list--safety li::before { background: var(--stamp); }

/* ---------- Reviews on a service page ---------- */

.page-reviews { margin-top: 18px; }

/* ---------- Questions ---------- */

.faq__list { margin-top: 14px; }

.faq__item {
  padding: 16px 0 14px;
  border-top: 1px solid color-mix(in srgb, var(--bark) 45%, transparent);
}

.faq__item:last-child {
  border-bottom: 1px solid color-mix(in srgb, var(--bark) 45%, transparent);
}

.faq__item dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
  color: var(--ink);
}

.faq__item dd {
  margin-top: 6px;
  color: var(--ink-soft);
}

/* ---------- The way back ---------- */

.page-back {
  margin-top: 22px;
  text-align: center;
}

.page-back a {
  color: var(--ink);
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
