/*
  The page a share link opens (stories 77, 78): the housebuilder's logo on white, then the shared product's items as
  cards that open their files. No design yet, so it's in the workspace's colours and redone when there is one.
*/

.sh {
  min-height: 100vh;
  background: #f1f4f5;
  font-family: "Open Sans", Arial, sans-serif;
  color: #434552;
}

.sh-top {
  display: flex;
  align-items: center;
  min-height: 80px;
  padding: 8px 24px;
  background: #fff;
  box-shadow: inset 0 -1px 0 #482581, 0 3px 6px rgb(0 0 0 / 10%);
}

.sh-top__logo {
  display: block;
  max-width: 260px;
  max-height: 64px;
  object-fit: contain;
}

.sh-top__name {
  font-size: 22px;
  font-weight: 700;
  color: #303b3f;
}

.sh-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 24px 48px;
}

.sh-from {
  margin: 0 0 4px;
  font-size: 14px;
  color: #6b6d7a;
}

.sh-title {
  margin: 0 0 24px;
  font-size: 26px;
  font-weight: 700;
  color: #482581;
}

.sh-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sh-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  height: 100%;
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgb(0 0 0 / 12%);
  color: inherit;
  text-decoration: none;
  transition: box-shadow 200ms ease-out;
}

.sh-item:hover,
.sh-item:focus-visible {
  box-shadow: 0 0 0 2px #482581, 0 4px 10px rgb(0 0 0 / 16%);
  outline: none;
}

.sh-item__picture {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: #f1f4f5;
  object-fit: contain;
}

.sh-item__picture--file {
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 700;
  color: #482581;
}

.sh-item__title {
  font-size: 15px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.sh-item__description {
  font-size: 13px;
  color: #6b6d7a;
}

.sh-item__open {
  margin-top: auto;
  font-size: 13px;
  font-weight: 700;
  color: #087649;
}

.sh-note {
  margin: 24px 0 0;
  font-size: 13px;
  color: #6b6d7a;
}

@media (max-width: 480px) {
  .sh-top {
    padding: 8px 16px;
  }

  .sh-main {
    padding: 24px 16px 40px;
  }

  .sh-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
