:root {
  --um-blue: #00274c;
  --um-blue-2: #0b416f;
  --um-maize: #ffcb05;
  --ink: #16324a;
  --muted: #586878;
  --line: #d8e1ea;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --shadow: 0 12px 28px rgba(0, 39, 76, 0.08);
  --radius: 18px;
  --content-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #f6f8fb 0%, #ffffff 260px);
  line-height: 1.55;
}

a { color: var(--um-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: min(calc(100% - 2rem), var(--content-width)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,39,76,0.08);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 1rem;
}

.brand {
  font-weight: 800;
  letter-spacing: 0.02em;
}

.topnav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.topnav a {
  font-weight: 600;
}

.page-grid {
  padding: 2rem 0 4rem;
}

.hero {
  margin-bottom: 1.5rem;
  padding: 2rem;
  border-radius: 28px;
  color: var(--um-blue) 100%;
  background: lightgoldenrodyellow;
  box-shadow: var(--shadow);
}

.hero-topline {
  font-size: 0.98rem;
  color: var(--um-blue) 100%;
  margin-bottom: 0.35rem;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(2rem, 4vw, 3.05rem);
  line-height: 1.08;
}

.dek {
  max-width: 80ch;
  color: var(--um-blue) 100%;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0 1rem;
  color: var(--um-blue) 100%;
}

.utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
  margin: 0.35rem 0 0.9rem;
}

.utility-links a {
  color: var(--um-blue) 100%;
  font-weight: 700;
  border-bottom: 1px solid rgba(255,255,255,0.28);
}

.hero-note {
  margin: 0.25rem 0 0;
  color: var(--um-blue) 100%;
}

.panel {
  margin-bottom: 1.2rem;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 1.55rem;
}

.card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-2);
}

.stack { display: grid; gap: 0.85rem; }
.two-col, .people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.note-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.note-head h3,
.person-card h4 {
  margin: 0;
}

.link-list,
.request-list {
  margin: 0;
  padding-left: 1.1rem;
}

.request-list li { margin-bottom: 0.7rem; }
.request-list span { display: block; color: var(--muted); }
.muted { color: var(--muted); }
.calendar-link { margin-top: 1rem; }

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

.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }

.prose ul {
  margin-top: 0.5rem;
  padding-left: 1.2rem;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.85rem 0.8rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

th {
  background: #eff4f8;
}

.compact-table {
  max-width: 560px;
}

.accordion-stack { display: grid; gap: 0.8rem; }

.accordion {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.accordion summary {
  position: relative;
  padding: 1rem 1.1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

.accordion summary::-webkit-details-marker { display: none; }

.accordion summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--um-blue);
}

.accordion[open] summary::after { content: "–"; }
.accordion-body { padding: 0 1.1rem 1rem; }

.toc-shell {
  position: fixed;
  top: 96px;
  right: max(1rem, calc((100vw - var(--content-width)) / 2));
  width: 220px;
  z-index: 10;
}

.toc-card {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
}

.toc-title {
  font-weight: 800;
  margin-bottom: 0.7rem;
}

#toc {
  display: grid;
  gap: 0.35rem;
}

#toc a {
  display: block;
  padding: 0.35rem 0.45rem;
  border-radius: 10px;
  color: var(--ink);
}

#toc a.active {
  background: rgba(255, 203, 5, 0.25);
  font-weight: 700;
}

@media (min-width: 1280px) {
  .page-grid { padding-right: 260px; }
}

@media (max-width: 1279px) {
  .toc-shell { display: none; }
  .page-grid { padding-right: 0; }
}

@media (max-width: 800px) {
  .topbar,
  .two-col,
  .people-grid,
  .note-head {
    display: block;
  }

  .topnav {
    margin-top: 0.75rem;
  }

  .hero,
  .panel {
    padding: 1rem;
  }
}


.toc {
  position: fixed;
  right: max(1rem, calc((100vw - var(--content-width)) / 2));
  top: 92px;
  width: 220px;
}
#toc { display: grid; gap: 0.45rem; }
#toc a.active { font-weight: 800; color: var(--um-blue-2); }
.page-grid { position: relative; padding-right: 260px; }
.cards-2 { display:grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.cards-3 { display:grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.people-grid-full { display:grid; grid-template-columns: 1fr; gap: 1.25rem; }
.person-top { display:flex; gap: 0.9rem; align-items:center; margin-bottom:0.75rem; }
.avatar-wrap { width: 84px; height: 84px; }
.small-avatar-wrap { width: 56px; height: 56px; }
.avatar, .avatar-fallback { width:100%; height:100%; border-radius: 50%; object-fit: cover; }
.avatar-fallback { display:grid; place-items:center; background:#dbe7f3; color:var(--um-blue); font-weight:800; }
.small-avatar { width:56px; height:56px; }
.small-avatar-fallback { width:56px; height:56px; font-size:0.9rem; }
.assignment-icon { font-size: 1.6rem; }
.small { font-size: 0.92rem; }
.week-badge { display:inline-block; margin-bottom:0.35rem; padding:0.2rem 0.45rem; border-radius:999px; background:#e6eef6; color:var(--um-blue); font-weight:700; }
.schedule-table .week-start td { border-top: 2px solid #aac0d6; }
@media (max-width: 1180px) {
  .toc { position: static; width: auto; margin-bottom: 1.2rem; }
  .page-grid { padding-right: 0; }
}
@media (max-width: 820px) {
  .two-col, .people-grid, .cards-2, .cards-3 { grid-template-columns: 1fr; }
  .hero { padding: 1.4rem; }
}
.schedule-table th:first-child,
.schedule-table td:first-child {
  width: 18%;
  white-space: nowrap;
}