@charset "utf-8";

h3.topics {
  width: 100%;
  max-width: 1240px;
  margin: 35px auto 0;
  padding: 0;
}

.topics {
  width: min(1240px, 100%);
  margin-inline: auto;
  padding: 0 20px;
}

.topics ul {
  width: fit-content;
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  gap: 1em 2em;
  grid-template-areas: "years new  date a";
}

.topics ul li {
  display: grid;
  grid-template-columns: subgrid;
  grid-column: span 4;
  align-items: center;
}

.topics li .years {
  grid-area: years;
  font-size: 3em;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  color: #ddd;
  line-height: 0;
}

.topics li:has(.years:not(:empty)):not(:first-child) {
  margin-top: 2em;
  padding-top: 3em;
  border-top: 1px dashed #ccc;
}

.topics li .new,
.topics li .notice {
  grid-area: new;
  color: #fff;
  background-color: rgba(202, 16, 16, 0.8);
  font-size: 0.68em;
  height: 16px;
  line-height: 16px;
  padding: 0 0.8em;
  display: grid;
  place-content: center;
}

.topics li .new:empty,
.topics li .notice:empty {
  visibility: hidden;
}

.topics li .notice {
  background-color: rgba(16, 112, 202, 0.8);
}

.topics li .date {
  grid-area: date;
}

.topics li a {
  grid-area: a;
}

@media screen and (max-width: 736px) {
  h3.topics {
    width: 100%;
    max-width: inherit;
    margin: 0 auto 0;
  }

  .topics {
    width: 100%;
    max-width: inherit;
    margin: 35px auto 0;
    padding: 0 5vw;
  }
}

.topics ul > li.year.y2025::after {
  content: "2025";
}

.topics ul > li.year.y2024::after {
  content: "2024";
}

.topics ul > li.year.y2023::after {
  content: "2023";
}

.topics ul > li.year.y2022::after {
  content: "2022";
}

.topics ul > li.year.y2021::after {
  content: "2021";
}

.topics ul > li.year.y2020::after {
  content: "2020";
}

@media screen and (min-width: 737px) {
  .topics ul > li a {
    text-decoration: none;
    display: inline-block;
    position: relative;
    width: fit-content;
  }

  .topics ul > li a:hover {
    color: #ff5c00;
    transition: 0.3s;
  }

  .topics ul > li a::after {
    border-bottom: solid 1px #f48c52;
    bottom: 2px;
    content: "";
    display: inline-block;
    position: absolute;
    left: 0;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease;
    width: 0;
  }

  .topics ul > li a:hover::after {
    width: 100%;
  }
}

@media screen and (max-width: 736px) {
  .topics ul {
    display: block;
  }

  .topics ul li {
    grid-template-columns: auto 1fr;
    grid-template-rows: repeat(3, auto);
    gap: 0.5em 1em;
    grid-template-areas:
      "years years"
      "date new"
      "a a";
    margin-bottom: 1rem;
  }

  .topics li .years {
    font-size: 2.4em;
    line-height: 1;
  }

  .topics li:has(.years:not(:empty)):not(:first-child) {
    margin-top: 2em;
    padding-top: 2em;
  }

  .topics li .years:not(:empty) {
    margin-bottom: 0.5rem;
  }

  .topics li .new,
  .topics li .notice {
    width: fit-content;
  }

  .topics li a {
    margin: 0;
  }
}
