/* Custom CSS for CITE Programs Site */

/* Increase font size for program requirement tables */
.md-typeset table {
    font-size: 0.7rem;
}

/* Specifically target tables in program pages for larger font */
.md-content article table {
    font-size: 0.8rem;
}

.md-content article table td,
.md-content article table th {
    padding: 0.6rem 1.0rem;
    line-height: 1.4;
    font-size: 0.75rem;
}

/* Make course codes in tables stand out with larger, bold text */
.md-content article table td a {
    font-weight: 600;
    font-size: 0.8rem;
    color: var(--md-primary-fg-color);
}

/* Increase font size for course titles and credits */
.md-content article table td:nth-child(2) {
    font-size: 0.75rem;
}

.md-content article table td:nth-child(3) {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Make semester total rows stand out */
.md-content article table tr:has(td:first-child:contains("Semester Total")) {
    font-weight: 600;
    background-color: var(--md-default-bg-color--light);
}

/* Improve table header styling */
.md-typeset table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    background-color: var(--md-primary-fg-color);
    color: var(--md-primary-bg-color);
}

/* Add better spacing between semester tables */
h3 + table {
    margin-top: 1rem;
}

table + h3 {
    margin-top: 2.5rem;
}

/* Responsive adjustments for smaller screens */
@media screen and (max-width: 76.1875em) {
    .md-content article table {
        font-size: 0.7rem;
    }

    .md-content article table td,
    .md-content article table th {
        padding: 0.5rem 0.7rem;
        font-size: 0.65rem;
    }

    .md-content article table td a {
        font-size: 0.7rem;
    }

    .md-content article table td:nth-child(2),
    .md-content article table td:nth-child(3) {
        font-size: 0.65rem;
    }
}