/* curriculum.css — UG Curriculum subpages */

/* Active sidebar link */
.sidebar-active {
    color: var(--accent) !important;
    border-left-color: var(--accent);
    background: #fff8f0;
}

/* Numbered rules list */
.curri-rules {
    display: grid;
    gap: 0;
    border: 1px solid var(--gray-2);
}

.curri-rule-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0;
    border-bottom: 1px solid var(--gray-2);
    align-items: start;
}

.curri-rule-item:last-child {
    border-bottom: none;
}

.curri-rule-num {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    border-right: 1px solid var(--gray-2);
    align-self: stretch;
}

.curri-rule-item p {
    font-size: 0.88rem;
    color: #333;
    line-height: 1.6;
    padding: 0.6rem 1.1rem;
}

/* Course table wrapper — scrollable on narrow viewports */
.curri-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    min-width: 0;
    width: 100%;
}

/* Course table */
.curri-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.curri-table th {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-3);
    text-align: left;
    padding: 0.5rem 0.85rem;
    border-bottom: 1px solid var(--gray-2);
    background: var(--gray-1);
}

.curri-table td {
    padding: 0.75rem 0.85rem;
    border-bottom: 1px solid var(--gray-2);
    vertical-align: middle;
    color: #333;
}

.curri-table td:nth-child(3),
.curri-table td:nth-child(5),
.curri-table td:nth-child(6) {
    white-space: nowrap;
}

.curri-table td:nth-child(4) {
    white-space: nowrap;
    font-size: 0.82rem;
    color: var(--gray-3);
}

.curri-table tr:last-child td {
    border-bottom: none;
}

.curri-table .curri-section-row td {
    background: var(--navy);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0.5rem 0.85rem;
    border-bottom: none;
}

.curri-table .curri-elective-row td {
    background: #fff8f0;
    font-style: italic;
    color: #555;
}

.curri-table .curri-sem-header th {
    background: var(--navy);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    padding: 0.6rem 0.85rem;
    text-align: left;
    border: none;
}

.curri-credits {
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
}

.curri-code {
    font-family: ui-monospace, "SF Mono", monospace;
    font-size: 0.82rem;
    color: var(--accent);
    white-space: nowrap;
}
