/* document-archive */
.document__archive-list {
  display: grid;
  gap: 2.5rem 1.25rem;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  margin: 0;
  padding: 0;
}

.document__archive-item {
  background-color: rgb(255, 255, 255);
  border-radius: 0.5rem;
  box-shadow: 0.18rem 0.18rem 0.18rem rgb(238, 238, 238);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 1.25rem;

  & > img {
    aspect-ratio: 20 / 11;
    display: block;
    margin-bottom: 1.5rem;
    object-fit: cover;
    width: 100%;
  }
}

.document__archive-item-content {
  margin: 0 auto;
  width: 90%;

  & > h2 {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 1rem;
  }

  & > p {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 1.5rem;
  }
}

.document__archive-item-button {
  align-items: center;
  background-color: rgb(213, 52, 57);
  border-radius: 0.37rem;
  display: flex;
  height: 3.12rem;
  justify-content: center;
  margin: auto auto 0;
  position: relative;
  transition-duration: 0.3s;
  transition-timing-function: ease-in-out;
  width: 100%;

  @media (any-hover: hover) {
    &:hover {
      opacity: 0.6;
    }
  }

  &:disabled {
    cursor: not-allowed;
    opacity: 0.6;
  }

  & > span {
    &:nth-child(1) {
      color: rgb(255, 255, 255);
      font-size: 1rem;
      font-weight: 700;
    }

    &:nth-child(2) {
      align-items: center;
      aspect-ratio: 1 / 1;
      background-color: rgb(255, 255, 255);
      border-radius: 50%;
      display: flex;
      justify-content: center;
      position: absolute;
      right: 6%;
      top: 50%;
      transform: translateY(-50%);
      width: 1rem;

      & > svg {
        aspect-ratio: 1 / 1;
        color: rgb(213, 52, 57);
        width: 50%;
      }
    }
  }
}

@media screen and (max-width: 991px) {
  .document__archive-list {
    gap: 3.75rem 1.87rem;
    grid-template-columns: repeat(2, 1fr);
  }

  .document__archive-item {
    border-radius: 0.75rem;
    box-shadow: 0.27rem 0.27rem 0.27rem rgb(238, 238, 238);
    padding-bottom: 1.87rem;

    & > img {
      margin-bottom: 2.25rem;
    }
  }

  .document__archive-item-content {
    & > h2 {
      font-size: 1.87rem;
      margin: 0 0 1.5rem;
    }

    & > p {
      font-size: 1.5rem;
      margin: 0 0 2.25rem;
    }
  }

  .document__archive-item-button {
    border-radius: 0.55rem;
    height: 4.68rem;

    & > span {
      &:nth-child(1) {
        font-size: 1.5rem;
      }

      &:nth-child(2) {
        width: 1.5rem;
      }
    }
  }
}

/* document-single */
.document__single-container {
  display: flex;
  gap: 3.12rem;
}

.document__single-left {
  width: 100%;

  & > h2 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 2rem;
  }

  & > img {
    aspect-ratio: 20 / 11;
    border-radius: 0.5rem;
    display: block;
    margin-bottom: 4rem;
    object-fit: cover;
    width: 100%;
  }

  & > p {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    margin: 0 0 2rem;
  }
}

.document__single-recommendation {
  border: 0.1rem solid rgb(213, 52, 57);
  border-radius: 0.5rem;
  overflow: hidden;

  & > h3 {
    align-items: center;
    background-color: rgb(213, 52, 57);
    color: rgb(255, 255, 255);
    display: flex;
    font-size: 1rem;
    font-weight: 700;
    height: 2.5rem;
    justify-content: center;
    margin: 0;
  }

  & > p {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
    padding: 1.5rem 2rem;
  }
}

.document__single-right {
  flex-shrink: 0;
  overflow: hidden;
  width: 24rem;

  & > p {
    align-items: center;
    background-color: rgb(213, 52, 57);
    color: rgb(255, 255, 255);
    display: flex;
    font-size: 1.25rem;
    font-weight: 700;
    height: 3rem;
    justify-content: center;
    margin: 0;
  }
}

.document__single-form {
  background-color: rgb(245, 245, 245);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2rem;
}

.document__single-label {
  align-items: center;
  display: flex;
  font-size: 1rem;
  font-weight: 700;
  gap: 1rem;
  margin: 0;

  & > span {
    align-items: center;
    background-color: rgb(213, 52, 57);
    border-radius: 0.3rem;
    color: rgb(255, 255, 255);
    display: flex;
    font-size: 0.8rem;
    height: 1.4rem;
    justify-content: center;
    width: 3rem;
  }
}

.document__single-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;

  & > input {
    background-color: rgb(255, 255, 255);
    border: 0.1rem solid rgb(100, 100, 100);
    border-radius: 0.3rem;
    display: block;
    font-size: 1rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    width: 100%;
  }
}

.document__single-privacy {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: center;

  & > input {
    appearance: checkbox;
  }

  & > label {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    margin: 0;

    & > a {
      font-weight: 700;
      text-decoration: none;

      @media (any-hover: hover) {
        &:hover {
          text-decoration: underline;
        }
      }
    }
  }
}

.document__single-submit {
  & > button {
    align-items: center;
    background-color: rgb(32, 157, 58);
    border-radius: 0.3rem;
    color: rgb(255, 255, 255);
    display: flex;
    font-size: 1rem;
    font-weight: 700;
    height: 3rem;
    justify-content: center;
    letter-spacing: 0.1em;
    width: 100%;

    @media (any-hover: hover) {
      &:hover {
        opacity: 0.6;
      }
    }
  }
}

@media screen and (max-width: 991px) {
  .document__single-container {
    flex-direction: column;
    gap: 4.68rem;
  }

  .document__single-left {
    & > h2 {
      font-size: 3rem;
      margin: 0 0 3rem;
    }

    & > img {
      border-radius: 0.75rem;
      margin-bottom: 6rem;
    }

    & > p {
      font-size: 1.5rem;
      margin: 0 0 3rem;
    }
  }

  .document__single-recommendation {
    border: 0.15rem solid rgb(213, 52, 57);
    border-radius: 0.75rem;

    & > h3 {
      font-size: 1.5rem;
      height: 3.75rem;
    }

    & > p {
      font-size: 1.5rem;
      padding: 2.25rem 3rem;
    }
  }

  .document__single-right {
    width: 100%;

    & > p {
      font-size: 1.87rem;
      height: 4.5rem;
    }
  }

  .document__single-form {
    gap: 2.25rem;
    padding: 3.5rem;
  }

  .document__single-label {
    font-size: 1.5rem;
    gap: 1.5rem;

    & > span {
      border-radius: 0.45rem;
      font-size: 1.2rem;
      height: 2.1rem;
      width: 4.5rem;
    }
  }

  .document__single-input {
    gap: 0.75rem;

    & > input {
      border: 0.15rem solid rgb(100, 100, 100);
      border-radius: 0.45rem;
      font-size: 1.5rem;
      padding: 0.6rem 1.2rem;
    }
  }

  .document__single-privacy {
    gap: 0.75rem;

    & > label {
      font-size: 1.5rem;
    }
  }

  .document__single-submit {
    & > button {
      border-radius: 0.45rem;
      font-size: 1.5rem;
      height: 4.5rem;
    }
  }
}
