.cabinet-article__title {
  font-size: 3rem;

  &.is--overview {
    margin-bottom: 1rem;
  }
}

.cabinet-article {
  gap: 1rem;
  flex: 0 0 100%;
  min-width: 100%;
  display: flex;
  flex-flow: column;

  &.is--list {
    border-bottom: 0.125rem solid var(--primary-color);
    padding-bottom: 2rem;
  }
}

.cabinet-article__heading {
  font-size: 2.75rem;

  a {
    color: unset;
    text-decoration: none;
    font-size: unset;

    &:hover {
      text-decoration: underline;
    }
  }
}

.cabinet-article__list {
  display: flex;
  flex-flow: row wrap;
  gap: 3rem;
}

.cabinet-article__content {
  font-size: 1.25rem;
  display: flex;
  flex-flow: column;
  gap: 1rem;

  h1,
  h2,
  h3,
  h4,
  h5,
  h6 {
    font-family: Exo, sans-serif;
    font-weight: 500;
    margin: 0;
  }

  h1 {
    font-size: 2em;
  }

  h2 {
    font-size: 1.75em;
  }

  h3 {
    font-size: 1.5em;
  }

  h4 {
    font-size: 1.25em;
  }

  h5 {
    font-size: 1em;
  }

  h6 {
    font-size: 1em;
  }

  img {
    object-fit: scale-down;
    height: min(30rem, 80vh);
    width: auto;

    @media screen and (width <= 480px) {
      width: 100%;
    }
  }

  p {
    margin-top: 0;
    margin-bottom: 0;
    display: flex;
    flex-flow: row wrap;
    gap: 1rem;
  }

  table {
    border-collapse: collapse;
    width: 100%;

    th,
    td {
      padding: 0.5rem;
    }

    th {
      border-bottom: 0.125rem solid var(--primary-color);
      font-family: 'HVD Bodedo', sans-serif;
    }

    tr:nth-child(even) {
      background-color: var(--background-darker);
    }
  }
}

.cabinet-article__pagination {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  padding-top: 2rem;
}

.cabinet-article__next {
  margin-left: auto;
}

.cabinet-article__next,
.cabinet-article__prev {
  background: var(--primary-color);
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  color: var(--section-background-color);
  text-decoration: none;
  font-size: 1.25rem;
  transition: all 0.3s;

  &:hover {
    background: var(--primary-color-darker);
    color: var(--background-darker);
  }
}

.cabinet-conventions__list {
  display: flex;
  grid-auto-flow: row;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, 1fr);
  flex-flow: row wrap;
}

.cabinet-conventions__item {
  background: var(--background-darker);
  border-radius: 1rem;
  display: flex;
  flex-flow: column;
  overflow: hidden;
  text-decoration: none;
  flex: 1 1 max(20rem, 25rem);
  min-width: 20rem;
}

.cabinet-conventions__thumbnail {
  width: 100%;
  height: 16.875rem;
  object-fit: cover;
}

.cabinet-conventions__title {
  padding: 0.5rem 1rem;
  font-size: 1.5rem;
  color: var(--text-color);
}

.cabinet-conventions__date {
  padding: 0.5rem 1rem;
  font-size: 1.25rem;
  color: var(--text-color);
}
