/* "What if your domain name is taken?" (domain-name-taken.html, site.eu, #297, design A): navy panel like the heroes,
   a drawn search result on the left, the 4 tips as numbered steps on the right. One column below 1024px. */
.dnt {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 56px;
  overflow: hidden;
  padding: 56px;
  border-radius: 8px 40px;
  background: var(--foreground);
  color: #fff;
}
.dnt-shape {
  position: absolute;
}
.dnt-shape-1 {
  top: -40px;
  left: -40px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #2d2b55;
}
.dnt-shape-2 {
  right: 0;
  bottom: 0;
  width: 90px;
  height: 90px;
  border-radius: 90px 0 0;
  background: var(--purple-200);
}
.dnt-shape-3 {
  top: 36px;
  right: 44px;
  width: 22px;
  height: 22px;
  background: rgb(var(--yellow));
  transform: rotate(45deg);
}
.dnt-text,
.dnt-steps {
  position: relative;
}
.dnt-title {
  margin: 0;
  font-size: 36px;
  line-height: 1.15;
}
.dnt-intro {
  margin: 10px 0 0;
  color: rgb(255 255 255 / 85%);
  font-size: 18px;
  line-height: 1.6;
}

/* The drawn search result (decoration, aria-hidden) */
.dnt-pic {
  max-width: 420px;
  margin-top: 36px;
  padding: 20px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 10px 10px 0 var(--purple-200);
  color: var(--foreground);
  transform: rotate(-2deg);
}
.dnt-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}
.dnt-row + .dnt-row {
  margin-top: 6px;
}
.dnt-row-icon {
  flex: none;
  font-size: 20px;
}
.dnt-row-name {
  min-width: 0;
  white-space: nowrap;
}
.dnt-row-tag {
  flex: none;
  margin-left: auto;
  padding: 2px 12px;
  border-radius: 99px;
  font-size: 14px;
  white-space: nowrap;
}
.dnt-row-taken {
  background: #ffe9ea;
}
.dnt-row-taken .dnt-row-icon {
  color: #e8565b;
}
.dnt-row-taken .dnt-row-name {
  text-decoration: line-through 2px #e8565b;
}
.dnt-row-taken .dnt-row-tag {
  background: #e8565b;
  color: #fff;
}
.dnt-pic-ideas {
  margin: 14px 0 4px 14px;
  color: #55557a;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.dnt-row-free {
  background: #f5f4fa;
}
.dnt-row-free .dnt-row-icon {
  color: var(--green-dark);
}
.dnt-row-free .dnt-row-tag {
  background: var(--green);
}

/* The 4 tips */
.dnt-steps {
  display: grid;
  align-content: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dnt-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
}
.dnt-num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgb(var(--yellow));
  color: var(--foreground);
  font-family: var(--font-uni-neue);
  font-size: 20px;
  font-weight: 800;
}
.dnt-step:nth-child(2) .dnt-num {
  background: var(--pink);
}
.dnt-step:nth-child(3) .dnt-num {
  background: var(--purple-200);
}
.dnt-step:nth-child(4) .dnt-num {
  background: var(--aqua);
}
.dnt-step h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.25;
}
.dnt-step p {
  margin: 6px 0 0;
  color: rgb(255 255 255 / 85%);
  font-size: 16px;
  line-height: 1.6;
}
.dnt-step a {
  color: rgb(var(--yellow));
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  outline: none;
}
.dnt-step a:hover {
  text-decoration-thickness: 2px;
}
.dnt-step a:focus-visible {
  border-radius: 2px;
  outline: 2px solid rgb(var(--yellow));
  outline-offset: 2px;
}

@media (max-width: 1023px) {
  .dnt {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
    padding: 36px 20px 44px;
    border-radius: 8px 28px;
  }
  .dnt-pic {
    margin: 28px 10px 0 0;
    padding: 14px;
  }
  .dnt-row {
    gap: 4px 8px;
    padding: 8px 10px;
    font-size: 16px;
  }
  .dnt-row-tag {
    padding: 2px 9px;
  }
  .dnt-steps {
    gap: 24px;
  }
  .dnt-num {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
  .dnt-shape-2 {
    width: 40px;
    height: 40px;
    border-radius: 40px 0 0;
  }
  .dnt-shape-3 {
    top: 20px;
    right: 20px;
    width: 16px;
    height: 16px;
  }
}

@media (max-width: 767px) {
  .dnt-title {
    padding-right: 24px;
    font-size: 28px;
  }
  .dnt-intro {
    font-size: 17px;
  }
  .dnt-step {
    gap: 14px;
  }
}

@media (max-width: 379px) {
  .dnt {
    padding: 32px 16px 44px;
  }
  .dnt-title {
    font-size: 26px;
  }
}
