/* Small transparent illustrations for the homepage documentation cards. */
.home-page .tutorial-feature-art {
  display: block;
  width: 72px;
  height: 72px;
  margin: 0 0 12px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 6px 7px rgba(35, 67, 106, .13));
  pointer-events: none;
  user-select: none;
}

html[data-theme] .home-page .tutorial-item,
html[data-theme] .home-page .tutorial-item:hover {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 17px;
  align-items: center;
  gap: 16px;
  min-height: 102px;
  padding: 16px 22px;
}

.home-page .tutorial-item-art {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 5px 6px rgba(35, 67, 106, .12));
  pointer-events: none;
  user-select: none;
}

.home-page .tutorial-item-copy {
  min-width: 0;
}

.home-page .tutorial-item-copy :is(h4, p) {
  white-space: normal;
  overflow-wrap: anywhere;
}

.home-page .tutorial-item > svg {
  justify-self: end;
}

html[data-theme="dark"] .home-page :is(.tutorial-feature-art, .tutorial-item-art) {
  filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .24));
}

@media (max-width: 800px) {
  .home-page .tutorial-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (max-width: 600px) {
  .home-page .tutorial-feature-art {
    width: 64px;
    height: 64px;
  }

  html[data-theme] .home-page .tutorial-item,
  html[data-theme] .home-page .tutorial-item:hover {
    grid-template-columns: 52px minmax(0, 1fr) 17px;
    gap: 12px;
    min-height: 96px;
    padding: 16px;
  }

  .home-page .tutorial-item-art {
    width: 52px;
    height: 52px;
  }
}

@media (max-width: 380px) {
  html[data-theme] .home-page .tutorial-item,
  html[data-theme] .home-page .tutorial-item:hover {
    grid-template-columns: 48px minmax(0, 1fr) 17px;
    gap: 10px;
    padding-inline: 14px;
  }

  .home-page .tutorial-item-art {
    width: 48px;
    height: 48px;
  }
}
