/* "How to buy a domain name" (domain-buy-how-to.html, site.eu, #291): light step cards on white, same card look as
   the website builder's steps (.wb-howto in website-builder-design.css, #242) without the dark band. */
.dbh-title {
  margin: 0 0 8px;
  font-size: 30px;
  line-height: 38px;
  text-align: center;
}
.dbh-intro {
  margin: 0 auto 32px;
  font-size: 18px;
  line-height: 28px;
  text-align: center;
}
.dbh-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dbh-step {
  --step: #ffd672;
  --step-soft: #fff4d6;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #ecebf2;
  border-top: 6px solid var(--step);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgb(30 30 65 / 6%);
  color: #1e1e41;
}
.dbh-step:nth-child(2) {
  --step: #ff7d81;
  --step-soft: #ffe3e4;
}
.dbh-step:nth-child(3) {
  --step: #cbadf8;
  --step-soft: #f1e8fe;
}
.dbh-step:nth-child(4) {
  --step: #bcefff;
  --step-soft: #e6f9ff;
}
.dbh-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}
/* Icon on a Site shape: square with one round corner, as in the shape set. */
.dbh-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 0 24px 0 0;
  background: var(--step-soft);
}
.dbh-step:nth-child(2) .dbh-icon {
  border-radius: 50%;
}
.dbh-step:nth-child(3) .dbh-icon {
  border-radius: 24px 0 0 0;
}
.dbh-step:nth-child(4) .dbh-icon {
  border-radius: 0 0 24px 0;
}
.dbh-icon svg {
  width: 26px;
  height: 26px;
}
.dbh-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 40px;
  opacity: 0.25;
}
.dbh-step h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 24px;
}
.dbh-step p {
  margin: 0;
  font-size: 16px;
  line-height: 24px;
}
.dbh-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
  color: inherit;
  font-weight: 700;
  text-underline-offset: 2px;
}
.dbh-link:hover,
.dbh-link:focus-visible {
  text-decoration: underline;
}
.dbh-link svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (max-width: 1023px) {
  .dbh-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .dbh-title {
    font-size: 24px;
    line-height: 30px;
  }
  .dbh-intro {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 24px;
  }
  .dbh-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .dbh-step {
    padding: 20px;
  }
}
