/* custom feature for program overview table with set info */

.table-floated-right {
    float: right;
    margin: 0 0 20px 20px;
    border: 1px solid #BBB;
    width: 430px;
    max-width: 50%;
}
.table-floated-right .table-wrapper {
    margin: 0;
}
.table-overview {
    border: 1px solid #ccc;
}

/*  doubled specificity to override theme style */
.table-overview.table-overview caption {
    text-align: center;
    font-size: 1.4rem;
    font-weight: 700;
    padding: 15px 10px;
    background: #00144d;
    color: #fff;
}

/*  doubled specificity to override theme style */
.table-overview.table-overview  th {
    text-align: right;
    color: #011f5b;
    border-right: 1px solid #BBB;
    background-color: white;
}

/* custom feature for horizontal list */
.horizontal-links {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.toc {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
}

.horizontal-links span {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .table-floated-right {
        float: none;
        margin: 0 0 20px 0;
        max-width: 100%;
    }
    .toc::before {
        width: 100%;
    }
    .toc {
        flex-wrap: wrap;
    }
}

@media (max-width: 430px) {
    .table-overview.table-overview caption {
        font-size: 1.1rem;
    }
    
    .table-floated-right tbody {
        font-size: .8rem;
    }
    
    .table-floated-right th, 
    .table-floated-right td {
        padding: 5px;
    }
}