:root {
  color-scheme: light;
  --text: #252525;
  --muted: #606060;
  --rule: #dcdcdc;
  --accent: #a84908;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  border-top: 5px solid #e77500;
}

.page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 38px 32px 24px;
}

.university {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

h1 {
  margin: 0;
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 600;
  line-height: 1.25;
}

.term {
  margin: 8px 0 24px;
  font-size: 21px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 23px;
  padding: 13px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

a:hover { color: #743105; }

a:focus-visible,
.table-scroll:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.draft-note {
  margin: 24px 0 28px;
  padding: 10px 14px;
  border-left: 3px solid #e77500;
  background: #fff7ed;
  font-size: 14px;
}

section {
  margin: 0 0 34px;
  scroll-margin-top: 20px;
}

h2 {
  margin: 0 0 14px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--rule);
  font-size: 23px;
  font-weight: 500;
  line-height: 1.4;
}

p { margin: 10px 0; }

.placeholder {
  color: #705e4f;
  font-style: italic;
}

.resource-list { margin: 0; padding-left: 23px; }
.resource-list li { margin: 5px 0; }

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}

thead th {
  background: #f4f4f4;
  font-weight: 600;
  white-space: nowrap;
}

tbody th { font-weight: 600; }
tbody tr:nth-child(even) { background: #fafafa; }

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  margin-top: 42px;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 13px;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link:focus {
  display: inline-block;
  margin: 12px;
  padding: 8px;
  background: #fff;
}

@media (max-width: 600px) {
  .page { padding: 24px 18px; }
  nav { gap: 8px 18px; }
  table { min-width: 560px; }
  th, td { padding: 9px 10px; }
}

@media print {
  body { border-top: 0; font-size: 11pt; }
  .page { max-width: none; padding: 0; }
  nav, .skip-link, footer a { display: none; }
  .table-scroll { overflow: visible; }
  table { min-width: 0; }
  tr, h2 { break-inside: avoid; }
  h2 { break-after: avoid; }
  a { color: inherit; }
}
