
/* Course pages share the main site's type, colors, header and theme. */
.teaching-index .teaching-group {margin-top:1.3rem}
.teaching-index .teaching-row {padding:1.1rem 0; border-bottom:1px solid var(--theme-border)}
.teaching-index .course-title {font-size:1.06rem}
.teaching-index .course-description {max-width:830px}
.course-page {max-width:1100px;margin:0 auto 3rem;min-width:0}
.course-header {padding:0 0 1.1rem;border-bottom:1px solid var(--theme-border);margin-bottom:1.6rem}
.course-back {display:inline-block;font-size:.88rem;margin:0 0 1.15rem}
.course-term {font-size:.92rem;color:var(--theme-muted);margin:0 0 .45rem}
.course-header h1 {font-size:clamp(1.7rem,3vw,2.35rem);font-weight:650;line-height:1.25;letter-spacing:-.025em;margin:0 0 1.1rem}
.course-local-nav {display:flex;flex-wrap:wrap;gap:.45rem 1.45rem;font-size:.94rem;line-height:1.55}
.course-body {font-size:1rem;line-height:1.65;overflow-wrap:anywhere}
.course-body h2 {font-size:1.3rem;font-weight:600;line-height:1.35;margin:1.7rem 0 .8rem;scroll-margin-top:110px}
.course-body > h2:first-child {margin-top:0}
.course-body p {margin:0 0 .8rem}
.course-body ul,.course-body ol {padding-left:1.4rem;margin-bottom:1rem}
.course-body li {margin:.25rem 0}
.course-body .course-section {min-width:0}
.course-people {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.1rem 2rem}
.course-person {display:flex;align-items:flex-start;gap:1rem;padding:1rem 0;min-width:0}
.course-person .person-thumbnail {flex:0 0 94px}
.course-person-image {width:94px;height:94px;display:block;object-fit:cover;border-radius:5px}
.course-person-name {font-size:1rem;font-weight:600;line-height:1.4;margin:0 0 .35rem}
.course-person-text {min-width:0;font-size:.9rem;line-height:1.5}
.course-person-text p {margin:.1rem 0}
.course-body .course-person + .course-person {border-left:1px solid var(--theme-border);padding-left:1.2rem}
.course-schedule-wrap {max-width:100%;overflow-x:auto;margin:1rem 0 2rem}
.course-schedule {width:100%;border-collapse:collapse;font-size:.9rem;line-height:1.55;table-layout:fixed;text-align:left}
.course-schedule th,.course-schedule td {text-align:left;padding:.7rem .75rem;vertical-align:top;border-bottom:1px solid var(--theme-border);overflow-wrap:anywhere}
.course-schedule th {font-weight:600;color:var(--global-text-color);background:var(--theme-pill-bg);border-bottom:1px solid var(--theme-border)}
.course-schedule .course-week-label {background:var(--theme-pill-bg);font-size:.9rem;font-weight:600;color:var(--global-theme-color);padding:.55rem .75rem}
.course-schedule .course-week:not(:first-child) .course-week-label {border-top:1px solid var(--theme-border)}
.schedule-625 th:nth-child(1){width:8%}.schedule-625 th:nth-child(2){width:11%}.schedule-625 th:nth-child(3){width:39%}.schedule-625 th:nth-child(4){width:24%}.schedule-625 th:nth-child(5){width:18%}
.schedule-689 th:nth-child(1){width:11%}.schedule-689 th:nth-child(2){width:31%}.schedule-689 th:nth-child(3){width:14%}.schedule-689 th:nth-child(4){width:29%}.schedule-689 th:nth-child(5){width:15%}
.course-schedule details {margin:.35rem 0 0}
.course-schedule summary {cursor:pointer;color:var(--global-theme-color);font-size:.86rem}
.course-schedule summary b {font-weight:500}
.course-detail-toggle {color:var(--global-theme-color)}
.course-note-alert,.course-note-due {color:var(--global-theme-color)}
.course-note-assignment {color:var(--global-text-color)}
@media(max-width:760px){
  .course-header h1{font-size:1.65rem}
  .course-local-nav{gap:.6rem 1rem;font-size:.9rem}
  .course-people{grid-template-columns:1fr;gap:0}
  .course-body .course-person + .course-person {border-left:0;padding-left:0;border-top:1px solid var(--theme-border)}
  .course-schedule,.course-schedule tbody,.course-schedule tr,.course-schedule td{display:block;width:100%}
  .course-schedule thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .course-schedule-wrap{overflow:visible}
  .course-schedule .course-lecture{padding:.7rem 0;border-bottom:1px solid var(--theme-border)}
  .course-schedule .course-lecture td{display:grid;grid-template-columns:minmax(83px,25%) minmax(0,1fr);gap:.5rem;padding:.28rem .4rem;border:0;white-space:normal}
  .course-schedule .course-lecture td:empty{display:none}
  .course-schedule .course-lecture td:before{content:attr(data-label);font-size:.81rem;color:var(--theme-muted);font-weight:500}
  .course-schedule .course-week-label{padding:.6rem .65rem}
}




/* Teaching index: compact list, without card borders or interactive thumbnails. */
.teaching-index .teaching-group {margin-top:1.65rem}
.teaching-index .teaching-group > h2 {font-size:1.06rem;font-weight:600;color:var(--theme-muted);margin:0 0 .3rem}
.teaching-index #courses {display:block}
.teaching-index .teaching-card {display:grid;grid-template-columns:200px minmax(0,1fr);align-items:start;gap:1.25rem;padding:1rem 0;border-top:1px solid var(--theme-border)}
.teaching-index .teaching-card:last-child {border-bottom:1px solid var(--theme-border)}
.teaching-index .course-teaser {width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:5px;display:flex;align-items:center;justify-content:center}
.teaching-index .course-teaser-image {width:100%;height:100%;object-fit:contain;display:block}
.teaching-index .course-card-body {min-width:0;display:flex;flex-direction:column;gap:.35rem}
.teaching-index .course-title {font-size:1.08rem;font-weight:600;line-height:1.4;color:var(--global-text-color)}
.teaching-index .course-description {max-width:none;margin:0;line-height:1.55;color:var(--global-text-color)}
.teaching-index .course-coteaching {margin:0;color:var(--theme-muted)}
.teaching-index .course-term-list {display:flex;align-items:baseline;flex-wrap:wrap;gap:.25rem 1rem;color:var(--theme-muted);font-size:.91rem;font-style:italic;margin-top:.35rem;line-height:1.5}
.teaching-index .course-semester-link {display:inline-block;color:var(--global-theme-color);transition:color 160ms ease,transform 160ms ease}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.teaching-index .course-semester-link:hover{transform:scale(1.035)}}
@media(max-width:760px){.teaching-index .teaching-card{grid-template-columns:minmax(0,1fr);gap:.65rem}.teaching-index .course-teaser{width:min(200px,100%)}.teaching-index .course-title{font-size:1.03rem}}

.teaching-index .course-teaser-link {cursor:pointer;}
.teaching-index .course-teaser-link:focus-visible {outline:2px solid var(--theme-focus);outline-offset:3px;}
@media (hover:hover) and (prefers-reduced-motion:no-preference) {.teaching-index .course-teaser-link .course-teaser-image {transition:transform 180ms ease;}.teaching-index .course-teaser-link:hover .course-teaser-image {transform:scale(1.025);}}
