/* https://codepen.io/renatorib/pen/rlpfj */
/* my notes: weird how tightly coupled with class/id. it's easiest to keep tab1 tab2 etc */
/* Component Needs */
.pc-tab > input, .pc-tab section > div {
    display: none;
}
#tab1:checked ~ section .tab1, #tab2:checked ~ section .tab2, #tab3:checked ~ section .tab3, #tab4:checked ~ section .tab4, #tab5:checked ~ section .tab5 {
    display: block;
}
#tab1:checked ~ nav .tab1, #tab2:checked ~ nav .tab2, #tab3:checked ~ nav .tab3, #tab4:checked ~ nav .tab4, #tab5:checked ~ nav .tab5 {
    color: red;
}
/* Visual Styles */
.pc-tab {
    width: 100%;
    /* max-width: 700px;
    height: 70px; */
}
.pc-tab nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pc-tab nav ul li label {
    float: left;
    padding: 15px 25px;
    border: 1px solid #ddd;
    border-bottom: 0;
    background: #eee;
    color: #aaa;
    cursor: pointer;
    margin: 0;
}
.pc-tab nav ul li label:hover {
    background: #ddd;
}
.pc-tab nav ul li label:active {
    background: #fff;
}
.pc-tab nav ul li:not(:last-child) label {
    border-right-width: 0;
}
.pc-tab section {
    clear: both;
}
.pc-tab section>div {
    padding: 20px;
    width: 100%;
    border: 1px solid #ddd;
    background: #fff;
    line-height: 1.5em;
    letter-spacing: 0.3px;
    color: #444;
    box-sizing: border-box;
}
.pc-tab section>div h2 {
    margin: 0;
    letter-spacing: 1px;
    color: #34495e;
}
#tab1:checked ~ nav .tab1 label, #tab2:checked ~ nav .tab2 label, #tab3:checked ~ nav .tab3 label, #tab4:checked ~ nav .tab4 label, #tab5:checked ~ nav .tab5 label {
    background: white;
    color: #111;
    position: relative;
    font-weight: bold;
}
#tab1:checked ~ nav .tab1 label:after, #tab2:checked ~ nav .tab2 label:after, #tab3:checked ~ nav .tab3 label:after, #tab4:checked ~ nav .tab4 label:after, #tab5:checked ~ nav .tab5 label:after {
    content: '';
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: #fff;
    left: 0;
    bottom: -1px;
}
.grid-tab-wrapper {
    margin-top: 20px;
    height: 4px;
    position: relative;
    z-index: 1;
    font-family: "Segoe UI";
}
@media (max-width: 1100px) {
    .grid-tab-wrapper + * { /* select one wildcard element (grid) after the tab wrap element */
        clear: both; /* clears floater influence (tab labels float left), making it behave like normal block */
    }
}