/* Teaching page specific styles (colors come from the variables in main.css) */

/* Course item styling */
.course-item {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px dotted var(--border-dotted);
}

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

.course-item h3 {
    color: var(--subheading);
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.course-details {
    color: var(--muted);
    font-size: 1.05rem;
    margin-bottom: 12px;
}

.course-details span {
    display: inline-block;
    margin-right: 15px;
}

.institution {
    font-weight: 500;
}

.years, .level, .professor {
    color: var(--muted-2);
}

/* Compact course table (TA positions) */
.course-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.98rem;
}

.course-table th,
.course-table td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.course-table th {
    color: var(--heading);
    font-weight: 600;
}

.course-table td {
    color: var(--muted);
}

.table-wrap {
    overflow-x: auto;
}

.table-note {
    font-size: 0.9rem;
    color: var(--muted-3);
    margin-bottom: 10px;
}

/* Evaluation links: one small pill per discussion section */
.eval-link {
    display: inline-block;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    background-color: var(--topic-bg);
    border-radius: 999px;
    padding: 2px 9px;
    margin: 2px 4px 2px 0;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.eval-link i {
    margin-right: 4px;
    font-size: 0.78rem;
}

.eval-link:hover {
    background-color: var(--accent);
    color: var(--on-accent);
}

.eval-pending {
    font-size: 0.82rem;
    color: var(--muted-3);
    font-style: italic;
}

/* Course resources styling */
.course-description {
    margin: 15px 0;
    line-height: 1.6;
}

.course-resources {
    margin-top: 15px;
}

.resource-link {
    display: inline-block;
    margin-right: 20px;
    color: var(--accent);
    text-decoration: none;
}

.resource-link i {
    margin-right: 5px;
}

.resource-link:hover {
    text-decoration: underline;
}

/* Teaching philosophy section */
.philosophy-content {
    line-height: 1.7;
    color: var(--text);
}

.philosophy-content p {
    margin-bottom: 15px;
}

.quote-list {
    list-style: none;
    padding-left: 0;
}

.quote-list li {
    margin-bottom: 12px;
    padding: 10px 14px;
    background-color: var(--panel);
    border-left: 3px solid var(--accent);
    color: var(--muted);
    font-style: italic;
}

/* Teaching materials: one line per PDF with a short note beneath */
.material-list {
    list-style: none;
    margin-top: 12px;
}

.material-list li {
    margin-bottom: 12px;
}

.material-meta {
    display: block;
    font-size: 0.9rem;
    color: var(--muted-3);
}

/* TA table: click a course row to reveal its catalog description (assets/js/teaching.js) */
.course-table tr.course-row {
    cursor: pointer;
}

.course-table tr.course-row:hover td {
    background-color: var(--panel);
}

.course-table tr.course-row:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.course-table tr.course-row td:nth-child(2)::before {
    content: "\25B8";
    display: inline-block;
    margin-right: 6px;
    color: var(--accent);
    transition: transform 0.2s ease;
}

.course-table tr.course-row[aria-expanded="true"] td:nth-child(2)::before {
    transform: rotate(90deg);
}

.course-table tr.desc-row td {
    background-color: var(--panel);
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
    padding: 10px 14px 12px 28px;
    border-left: 3px solid var(--accent);
}

.placeholder-note {
    color: var(--muted-3);
    font-style: italic;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .course-details span {
        display: block;
        margin-bottom: 5px;
    }
}
