.tab-2 {
  display: flex;
  flex-wrap: wrap;
  max-width: 1000px;
}
.tab-2 > label {
  flex: 1 1;
  order: -1;
  min-width: 70px;
  padding: 0.7em 1em 0.5em;
  color: #555;
  font-weight: 600;
  font-size: 0.9em;
  text-align: center;
  cursor: pointer;
  background-color: #ddd;
}
.tab-2 > label:hover {
  opacity: 0.8;
}
.tab-2 input[type="radio"] {
  display: none;
}
.tab-2 > div {
  display: none;
  width: 100%;
}
.tab-2 label:has(:checked) {
  border-top: 4px solid #2589d0;
  color: #000;
  background-color: white;
}
.tab-2 label:has(:checked) + div {
  display: block;
}
