/*
 * Post Step by Step Box.
 * The :is() prefix beats the theme's global rule in assets/css/single.css:
 * section.single-post .section-inner .post-content * { ... }
 * Mobile: two per row. Desktop (768px+): four per row.
 */
:is(section.single-post .section-inner .post-content, body) .post-step-by-step-box {
  width: 100%;
  box-sizing: border-box;
  display: flex;
  flex-flow: column nowrap;
  gap: 24px;
  margin-top: 20px;
  margin-bottom: 24px;
}

:is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

:is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__step {
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-flow: column nowrap;
  gap: 10px;
  margin: 0;
  padding: 16px 15px;
  background: #fff;
  border: 1px solid #e2ddd3;
  border-radius: 10px;
  list-style: none;
}

:is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__step::before,
:is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__step::marker {
  content: none;
}

:is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__number {
  display: block;
  margin: 0;
  color: #897c50;
  font-family: 'PT Serif', serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 32px;
}

:is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__title {
  margin: 0;
  color: #002345;
  font-family: 'Lato', sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 26px;
  word-break: break-word;
}

:is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__text,
:is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__info-text {
  margin: 0;
  color: #3a3a3b;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  word-break: break-word;
}

:is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__info-text :is(strong, b) {
  font-size: inherit;
  line-height: inherit;
  font-weight: 700;
}

:is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

:is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__info-box {
  box-sizing: border-box;
  min-width: 0;
  display: flex;
  flex-flow: column nowrap;
  gap: 10px;
  margin: 0;
  padding: 20px 15px;
  background: #f6f2eb;
  border-radius: 12px;
}

:is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__info-label {
  margin: 0;
  color: #002345;
  font-family: 'Lato', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  word-break: break-word;
}

@media (min-width: 768px) {
  :is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__step {
    padding: 20px 24px;
    border-radius: 12px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__number {
    font-size: 26px;
    line-height: 36px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__text,
  :is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__info-text {
    font-size: 18px;
    line-height: 26px;
  }

  :is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__info {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  :is(section.single-post .section-inner .post-content, body) .post-step-by-step-box__info-box {
    padding: 20px;
  }
}
