/*
Theme Name: Sheshi Desktop Homepage Finish
Version: 0.31.0
Description: Stabilizes category metadata and discovery card rhythm, and removes redundant homepage copy.
*/

body.sheshi-home .sheshi-discovery-grid > .sheshi-result-card--discovery {
  cursor: pointer;
  transition: border-color 160ms ease;
}

body.sheshi-home .sheshi-discovery-card-title {
  height: 50px !important;
  min-height: 50px !important;
  max-height: 50px !important;
}

body.sheshi-home .sheshi-discovery-card-arrow {
  transition: transform 160ms ease;
}

@media (hover: hover) and (pointer: fine) {
  body.sheshi-home .sheshi-result-card--discovery:hover,
  body.sheshi-home .sheshi-result-card--discovery:focus-within {
    border-color: var(--border-strong) !important;
  }

  body.sheshi-home .sheshi-result-card--discovery:hover .sheshi-discovery-card-arrow,
  body.sheshi-home .sheshi-result-card--discovery:focus-within .sheshi-discovery-card-arrow {
    transform: translateX(2px);
  }
}

@media (min-width: 1024px) {
  body.sheshi-home .sheshi-home-categories .sheshi-home-section-head {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.sheshi-home .sheshi-home-category-tile {
    align-items: start !important;
  }

  body.sheshi-home .sheshi-home-category-tile .sheshi-category-icon {
    align-self: start !important;
    justify-self: start !important;
    margin-top: 0 !important;
  }

  body.sheshi-home .sheshi-home-category-copy {
    display: grid !important;
    width: 100%;
    grid-template-columns: minmax(0, 1fr) auto;
    align-self: start !important;
    align-items: start;
    column-gap: 8px;
    padding-top: 0;
  }

  body.sheshi-home .sheshi-home-category-name,
  body.sheshi-home .sheshi-home-category-count {
    display: block !important;
    line-height: 1.25;
  }

  body.sheshi-home .sheshi-home-category-count {
    justify-self: end;
    margin-left: 0 !important;
  }
}

@media (max-width: 767px) {
  body.sheshi-home .sheshi-discovery-card-title {
    height: 47px !important;
    min-height: 47px !important;
    max-height: 47px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.sheshi-home .sheshi-discovery-grid > .sheshi-result-card--discovery,
  body.sheshi-home .sheshi-discovery-card-arrow {
    transition: none;
  }
}
