.tabbed-set {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    margin: 1em 0;
    border-radius: 0.1rem;
  }
  
  .tabbed-set > input {
    display: none;
  }
  
  .tabbed-set label {
    width: auto;
    padding: 0.9375em 1.25em 0.78125em;
    font-weight: 700;
    font-size: 0.84em;
    white-space: nowrap;
    border-bottom: 0.15rem solid transparent;
    border-top-left-radius: 0.1rem;
    border-top-right-radius: 0.1rem;
    cursor: pointer;
    transition: background-color 250ms, color 250ms;
  }
  
  .tabbed-set .tabbed-content {
    width: 100%;
    display: none;
    box-shadow: 0 -.05rem #ddd;
  }
  
  .tabbed-set input {
    position: absolute;
    opacity: 0;
  }
  
  .tabbed-set input:checked:nth-child(n+1) + label {
    color: red;
    border-color: red;
  }
  
  @media screen {
    .tabbed-set input:nth-child(n+1):checked + label + .tabbed-content {
      order: 99;
      display: block;
    }
  }
  
  @media print {
    .tabbed-content {
      display: contents;
    }
  }