@font-face {
  font-family: Archivo;
  src: url("archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #172d42;
  --muted: #506579;
  --blue: #184c74;
  --deep: #102d4a;
  --pale: #eaf1f5;
  --rule: #cedae2;
  --paper: #fcfcfa;
  --serif: Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 Archivo, Arial, sans-serif; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 3px solid #a86411; outline-offset: 3px; }
h1, h2, h3, p, ol, ul, dl, figure { margin: 0; }
.wrap { width: 90%; max-width: 1180px; margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: 8px; top: 4px; z-index: 2; padding: 5px 12px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.hero { position: relative; isolation: isolate; overflow: hidden; color: white; background: var(--deep); }
.hero-photo { position: absolute; z-index: 0; top: 0; bottom: 0; left: 40%; right: 0; background: url("shanghai.jpg") 59% 26% / cover no-repeat; }
.hero-photo::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; right: 0; background: linear-gradient(90deg, #102d4a 0%, rgba(16,45,74,.94) 3%, rgba(16,45,74,.38) 29%, rgba(16,45,74,.04) 65%), linear-gradient(0deg, rgba(14,33,53,.35), transparent 32%); }
.hero-inner { position: relative; z-index: 1; padding: 45px 0 43px; }
.term { display: flex; align-items: center; gap: 11px; color: #deebf8; font-size: .94rem; font-weight: 550; }
.term::before { content: ""; width: 28px; height: 2px; background: #f1c56f; }
h1 { font: 400 5.3rem/1.06 var(--serif); letter-spacing: -.055em; margin: 17px 0 9px; }
.institution { font-size: 1.2rem; color: #f1f5f9; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 28px; color: #d7e4f0; font-size: .93rem; }
.hero-meta span + span { padding-left: 16px; border-left: 1px solid #7990a5; }
.next-shortcut { display: none; }
.photo-label { position: absolute; bottom: 14px; right: 0; color: #fff; font-size: .75rem; background: rgba(12,33,54,.78); padding: 2px 7px; border-radius: 2px; text-decoration: none; }
.course-nav { background: #fff; border-bottom: 1px solid var(--rule); }
.nav-inner { display: flex; align-items: center; gap: 36px; gap: clamp(17px, 3vw, 44px); min-height: 54px; }
.nav-inner a { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; padding-block: 12px; text-decoration: none; color: var(--ink); font-size: .92rem; font-weight: 570; }
.nav-inner a:hover { color: var(--blue); text-decoration: underline; }
.nav-inner .syllabus-link { margin-left: auto; color: var(--blue); }
.syllabus-link [aria-hidden] { font-size: 1.15rem; }
.course-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(248px, .9fr); column-gap: 64px; column-gap: clamp(32px, 5vw, 78px); align-items: start; padding: 40px 0 48px; }
h2 { font: 400 2.65rem/1.15 var(--serif); letter-spacing: -.04em; }
.section-intro { margin-top: 6px; color: var(--muted); font-size: .96rem; }
.weeks { display: flex; margin: 23px 0 6px; gap: 5px; padding: 4px; border-radius: 7px; background: #e9eff2; }
.weeks a { flex: 1; display: flex; align-items: baseline; justify-content: center; gap: 9px; padding: 8px 5px; border-radius: 4px; color: #3d5467; text-decoration: none; }
.weeks a:hover { background: #dce6ed; }
.weeks a[aria-current="true"] { color: white; background: var(--deep); }
.weeks strong { font-size: .94rem; font-weight: 620; }
.weeks a span { font-size: .78rem; }
.js-weeks .week-heading { display: none; }
.week-heading { margin: 15px 0 4px; }
.week[hidden] { display: none; }
.day { border-bottom: 1px solid var(--rule); scroll-margin-top: 12px; }
.day summary, .no-class { display: grid; grid-template-columns: 46px 1fr 18px; align-items: center; gap: 18px; gap: clamp(12px, 1.5vw, 24px); padding: 15px 8px 15px 3px; }
.day summary { cursor: pointer; list-style: none; }
.day summary::-webkit-details-marker { display: none; }
.day summary:hover .day-title { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.date-block { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.date-block span { color: var(--muted); font-size: .76rem; margin-bottom: 5px; }
.date-block b { font-family: var(--serif); font-size: 1.8rem; font-weight: 400; }
.day-center { min-width: 0; }
.day-title { display: block; font-weight: 595; line-height: 1.32; font-size: 1.07rem; }
.day-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 5px; color: var(--muted); font-size: .82rem; }
.meeting-time::before { content: "·"; padding-right: 8px; }
.extension { padding: 1px 7px; background: #f8ebcd; color: #724d15; border-radius: 3px; font-size: .72rem; line-height: 1.5; font-weight: 615; }
.chevron { justify-self: center; width: 8px; height: 8px; border: solid #63788a; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform .16s ease-out; }
details[open] .chevron { transform: rotate(225deg); }
.day-plan { margin: 0 0 17px; padding: 14px clamp(12px, 1.5vw, 20px); background: #eef3f6; border-left: 3px solid #7495af; border-radius: 0 4px 4px 0; }
.chapters, .exam-time { color: #41596d; font-size: .86rem; font-weight: 570; }
.periods { margin-top: 8px; padding: 0; list-style: none; }
.periods li { display: grid; grid-template-columns: 94px 1fr; gap: 12px; font-size: .91rem; padding: 6px 0; }
.periods li + li { border-top: 1px solid #d9e3ea; }
.periods .period-time { color: #435d72; white-space: nowrap; font-size: .83rem; font-variant-numeric: tabular-nums; }
.day-note { margin-top: 9px; font-size: .88rem; color: #2e5069; }
.no-class p { color: var(--muted); font-size: .86rem; margin-top: 3px; }
.rail { display: grid; gap: 22px; }
.upcoming { background: var(--pale); border-top: 3px solid #426f90; border-radius: 0 0 5px 5px; padding: 20px 23px; }
.upcoming h2 { font-family: Archivo, Arial, sans-serif; font-size: .89rem; font-weight: 600; line-height: 1.4; color: #3b5a71; letter-spacing: 0; display: flex; align-items: center; gap: 8px; }
.upcoming h2::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #437690; }
.next-date { font-weight: 600; margin-top: 15px; }
.next-time { color: var(--muted); font-size: .88rem; }
.next-topic { font: 400 1.65rem/1.16 var(--serif); letter-spacing: -.025em; margin: 13px 0 17px; }
.next-link { display: inline-flex; gap: 18px; align-items: center; border-radius: 4px; background: var(--deep); color: white; padding: 8px 14px; text-decoration: none; font-weight: 550; font-size: .9rem; }
.next-link:hover { background: #224866; text-decoration: none; }
.key-dates h2 { font-size: 1.55rem; letter-spacing: -.025em; margin-bottom: 5px; }
.key-dates ul { list-style: none; padding: 0; }
.key-dates li + li { border-top: 1px solid var(--rule); }
.key-dates a { display: grid; grid-template-columns: 49px 1fr; column-gap: 12px; align-items: baseline; padding: 8px 2px; color: var(--ink); text-decoration: none; font-size: .9rem; }
.key-dates a:hover > span { text-decoration: underline; }
.key-dates time { color: #42627a; font-size: .83rem; font-weight: 600; }
.key-dates small, .weights small { display: block; color: var(--muted); font-size: .78rem; }
.lower { display: grid; grid-template-columns: minmax(225px, .82fr) minmax(0, 1.6fr); gap: 6%; border-top: 1px solid var(--rule); padding: 34px 0; }
.lower .section-intro { max-width: 36ch; }
.weights > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; }
.weights > div + div, .resources-list > a { border-top: 1px solid var(--rule); }
.weights dd { margin: 0; color: var(--blue); font-size: 1.13rem; font-weight: 625; }
.resources-list > a { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; text-decoration: none; }
.resources-list > a:hover { text-decoration: underline; }
.reading { padding-bottom: 12px; }
footer { background: #ebf0f2; color: #475c6c; padding: 20px 0; font-size: .78rem; }
footer .wrap { display: flex; gap: 8px 20px; justify-content: space-between; flex-wrap: wrap; }
@media (min-width: 741px) and (max-width: 1020px) {
  h1 { font-size: 4.4rem; }
  .weeks a { flex-direction: column; gap: 2px; align-items: center; }
}
@media (max-width: 740px) {
  .wrap { width: 90%; }
  h1 { font-size: 3.7rem; }
  h2 { font-size: 2.1rem; }
  .institution { font-size: 1rem; }
  .hero .next-shortcut { display: inline-block; color: white; margin-top: 14px; font-size: .87rem; }
  .hero-inner { padding: 31px 0 34px; }
  .hero-photo { left: 29%; opacity: .72; }
  .hero-photo::after { background: linear-gradient(90deg, #102d4a, rgba(16,45,74,.8) 32%, rgba(16,45,74,.18)); }
  .photo-label { bottom: 8px; font-size: .65rem; }
  .course-grid { grid-template-columns: 1fr; gap: 30px; padding: 26px 0 32px; }
  .rail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .lower { grid-template-columns: 1fr; gap: 16px; padding: 26px 0; }
  .lower .section-intro { max-width: none; }
  .hero-meta { margin-top: 20px; }
}
@media (max-width: 500px) {
  .hero-inner { padding: 24px 0 36px; }
  .term { font-size: .8rem; }
  .hero-photo { left: 18%; opacity: .55; }
  h1 { font-size: 2.75rem; margin: 16px 0 8px; }
  .hero-meta { gap: 8px; font-size: .78rem; margin-top: 15px; }
  .hero-meta span + span { padding-left: 8px; }
  .nav-inner { gap: 0; justify-content: space-between; min-height: 48px; }
  .nav-inner a { font-size: .8rem; gap: 4px; }
  .nav-inner .syllabus-link { margin-left: 0; }
  .download-word { display: none; }
  .weeks { gap: 2px; margin-top: 16px; }
  .weeks a { flex-direction: column; align-items: center; gap: 0; }
  .day summary, .no-class { grid-template-columns: 35px 1fr 13px; gap: 11px; }
  .day-plan { padding-inline: 10px; }
  .periods li { grid-template-columns: 80px 1fr; gap: 8px; }
  .rail { grid-template-columns: 1fr; gap: 22px; }
  .section-intro { font-size: .9rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
}
@media print {
  .course-nav, .pt-portalbar, .rail, .weeks, .photo-label, .chevron, .hero-photo, .skip { display: none; }
  .hero, body { color: #172d42; background: white; }
  .term, .institution, .hero-meta { color: #263c50; }
  .hero-inner { padding: 12px 0; }
  .course-grid, .lower { display: block; }
  .course-grid { padding: 10px 0; }
  .week[hidden], .js-weeks .week-heading { display: block; }
  .day { break-inside: avoid; }
  .week-heading { margin-top: 16px; }
}

.day-materials { display: flex; align-items: center; gap: 20px; margin-top: 12px; font-size: .94rem; }
.day-materials .deck-link { padding: 6px 12px; border-radius: 4px; background: var(--deep); color: white; text-decoration: none; }
.day-materials .deck-link:hover { background: var(--blue); }
