:root {
  --text: #202124;
  --muted: #5f6368;
  --line: #c9cdd2;
  --soft: #f3f4f5;
  --link: #174ea6;
  --max-width: 1040px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--text); font: 16px/1.55 Georgia, "Times New Roman", serif; }
main { width: min(calc(100% - 40px), var(--max-width)); margin: 0 auto; padding: 52px 0 36px; }
a { color: var(--link); }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .table-wrap:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
.course-header { padding-bottom: 30px; border-bottom: 1px solid var(--line); }
.institution, .term { margin: 0 0 7px; color: var(--muted); font: 14px/1.4 Arial, sans-serif; }
h1 { margin: 9px 0 5px; font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.12; font-weight: normal; }
.course-header > p:not(.institution, .term) { max-width: 760px; }
.course-info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; margin: 28px 0 22px; }
.course-info div { display: grid; grid-template-columns: 78px 1fr; gap: 8px; }
dt { font-weight: bold; }
dd { margin: 0; }
nav { display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: Arial, sans-serif; font-size: 14px; }
section { padding: 34px 0 8px; }
h2 { margin: 0 0 13px; padding-bottom: 5px; border-bottom: 1px solid var(--line); font-size: 1.65rem; font-weight: normal; }
h3 { margin: 24px 0 5px; font-size: 1.08rem; }
p { margin: 0 0 15px; }
.lead { max-width: 820px; }
.table-wrap { overflow-x: auto; margin-top: 18px; }
table { width: 100%; min-width: 780px; border-collapse: collapse; font-size: 14px; line-height: 1.4; }
th, td { padding: 9px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { border-top: 2px solid var(--text); border-bottom: 2px solid var(--text); font-family: Arial, sans-serif; font-size: 13px; }
thead th:first-child { width: 17%; }
thead th:nth-child(2) { width: 16%; }
thead th:nth-child(3) { width: 34%; }
tbody th { font-weight: normal; }
.lecture-no { display: block; font-weight: bold; }
.avatar { display: none; }
.module-row th { padding: 7px 10px; background: var(--soft); font-weight: bold; }
.module-row span { margin-right: 8px; color: var(--muted); }
.event-row { color: var(--muted); }
.tag { display: inline-block; padding: 0 4px; background: var(--soft); border: 1px solid var(--line); font: 12px/1.5 Arial, sans-serif; white-space: nowrap; }
.details { margin: 0; }
.details div { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.details p { margin: 0; }
.syllabus { margin: 12px 0 18px; padding-left: 28px; }
.syllabus li { padding: 2px 0; }
.references { margin: 0; }
.references div { display: grid; grid-template-columns: 78px 1fr; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.references p { margin: 0; }
#policies > div { max-width: 820px; }
#policies h3 { margin-top: 28px; }
.policy-list { margin: 10px 0 20px; padding-left: 24px; }
.policy-list li { margin: 7px 0; padding-left: 3px; }
footer { margin-top: 38px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font: 13px Arial, sans-serif; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 700px) {
  main { width: min(calc(100% - 28px), var(--max-width)); padding-top: 30px; }
  .course-info { grid-template-columns: 1fr; gap: 8px; }
  .details div { grid-template-columns: 110px 1fr; }
  .references div { grid-template-columns: 1fr; gap: 2px; }
  section { padding-top: 28px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
