/* Smile Lab USA — open step blocks and fact tables.
   Always visible, full width of the content column, two step cards per row
   on desktop and one on a phone.
   Palette: cream #faf7f2, hairline #eee7db, ink #1c1b19, forest #14322b, gold #d8a548 */

.slsteps {
  box-sizing: border-box;
  display: block;
  width: auto;
  max-width: none;
  margin: 26px 0;
  padding: 14px 0 0;
  border: 0;
  border-top: 2px solid #d8a548;
  border-radius: 0;
  background: none;
  color: #1c1b19;
  font-family: inherit;
  text-align: left;
}

/* Full-bleed slots between page-builder sections: hold the same content
   column the neighbouring sections use instead of touching the screen edge. */
.slsteps--pad {
  width: min(1160px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.slsteps .slsteps__title {
  display: block;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  font-family: inherit;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: #14322b;
}

/* ------------------------------------------------------------- steps ---- */

.slsteps .slsteps__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.slsteps .slsteps__list > li {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 13px;
  margin: 0;
  padding: 12px 14px;
  list-style: none;
  background: #faf7f2;
  border: 1px solid #ece2d1;
  border-radius: 12px;
}

.slsteps .slsteps__list > li::before,
.slsteps .slsteps__list > li::marker {
  content: none;
}

.slsteps .slsteps__ico {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  width: 48px;
  height: 48px;
  max-width: none;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  background: #f3ecdf;
  object-fit: contain;
  overflow: hidden;
}

.slsteps .slsteps__list > li b {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  color: #14322b;
}

.slsteps .slsteps__list > li span {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  display: block;
  margin-top: 3px;
  font-size: 13.5px;
  line-height: 1.4;
  color: #4b463f;
  text-wrap: balance;
}

/* ------------------------------------------------------------ tables ---- */

.slsteps__scroll {
  max-width: 100%;
  overflow-x: auto;
  /* Without an explicit overflow-y the browser leaves the axis visible, and a
     table wider than the column adds its overhang to the width of the whole
     page: on a 390 screen the document picked up 8 extra pixels and scrolled
     sideways. Hidden on the vertical axis keeps the overflow inside this box. */
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

/* The article and PDP themes ship their own table rules, so these selectors
   are deliberately specific enough to win without !important. */

section.slsteps.slsteps--table table {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 0;
  box-shadow: none;
  border-collapse: collapse;
  table-layout: auto;
  background: none;
  font-size: 14.5px;
  line-height: 1.4;
}

section.slsteps.slsteps--table caption {
  display: none;
}

section.slsteps.slsteps--table th,
section.slsteps.slsteps--table td {
  padding: 9px 22px 9px 0;
  text-align: left;
  vertical-align: top;
  background: none;
  border: 0;
  border-top: 1px solid #f1ece2;
}

section.slsteps.slsteps--table tr > *:last-child {
  padding-right: 0;
}

section.slsteps.slsteps--table thead th {
  padding-top: 0;
  padding-bottom: 8px;
  border: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #8a8378;
  white-space: nowrap;
}

section.slsteps.slsteps--table tbody th {
  font-weight: 700;
  color: #14322b;
}

section.slsteps.slsteps--table td.i1-n {
  white-space: nowrap;
  font-weight: 700;
  color: #14322b;
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------- note ---- */

.slsteps .slsteps__note {
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid #f1ece2;
  font-size: 13px;
  line-height: 1.5;
  color: #8a8378;
}

/* ------------------------------------------------------------ mobile ---- */

@media (max-width: 749px) {
  .slsteps {
    margin-top: 22px;
    margin-bottom: 22px;
    padding-top: 12px;
  }

  .slsteps .slsteps__title {
    margin-bottom: 10px;
    font-size: 18px;
  }

  .slsteps .slsteps__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .slsteps .slsteps__list > li {
    padding: 11px 12px;
    column-gap: 12px;
  }

  .slsteps .slsteps__ico {
    width: 44px;
    height: 44px;
  }

  .slsteps .slsteps__list > li b {
    font-size: 14.5px;
  }

  .slsteps .slsteps__list > li span {
    font-size: 13px;
  }

  section.slsteps.slsteps--table table {
    font-size: 14px;
  }

  section.slsteps.slsteps--table th,
  section.slsteps.slsteps--table td {
    padding: 8px 16px 8px 0;
  }
}
