:root {
  --course-sidebar: #9fbfc7;
  --course-sidebar-deep: #26484f;
  --course-accent: #8a3948;
  --course-accent-soft: #f5e9eb;
  --course-ink: #2b3135;
  --course-muted: #5e6a70;
  --course-line: #dfe5e7;
  --course-soft: #f6f8f8;
  --course-white: #ffffff;
}

body {
  color: var(--course-ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.62;
}

main.content {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

#title-block-header {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

h1,
h2,
h3 {
  color: var(--course-ink);
  font-weight: 650;
  letter-spacing: -0.025em;
}

h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

h2 {
  margin-top: 2.5rem;
  font-size: 1.75rem;
}

h3 {
  margin-top: 1.75rem;
  font-size: 1.35rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--course-line);
}

.quarto-title .subtitle {
  color: var(--course-muted);
  font-size: 1.2rem;
  margin-top: 0.35rem;
}

a {
  color: var(--course-accent);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.14em;
}

a:hover {
  color: #642a36;
}

.navbar {
  padding: 0;
  border: 0;
  background: var(--course-sidebar);
  box-shadow: 0 1px 0 rgb(38 72 79 / 18%);
}

.navbar-container {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  padding: 1.15rem max(1.25rem, calc((100vw - 820px) / 4));
  padding-left: max(4.5rem, calc(((100vw - 820px) / 4) + 3.25rem));
}

.navbar-brand-container {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  max-width: 100%;
  margin-right: 0 !important;
  margin-left: 0 !important;
}

.navbar-brand {
  padding: 0;
  width: 100%;
  min-width: 0;
  margin-right: 0;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.navbar-title {
  display: flex;
  flex-direction: column;
  color: var(--course-sidebar-deep);
  font-size: clamp(1.6rem, 3.2vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.navbar-title::after {
  content: "Fall 2026";
  margin-top: 0.3rem;
  color: var(--course-accent);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar-toggler,
#quarto-search,
.quarto-navbar-tools {
  display: none;
}

.navbar-collapse {
  grid-column: 1;
  grid-row: 2;
  display: flex !important;
  flex-basis: 100% !important;
  width: 100%;
}

.navbar-nav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding-top: 1rem;
}

.navbar-nav .nav-link {
  padding: 0.48rem 0.85rem !important;
  border: 1px solid rgb(38 72 79 / 25%);
  border-radius: 0.35rem;
  color: var(--course-sidebar-deep) !important;
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.2;
}

.navbar-nav .nav-link:hover {
  border-color: rgb(138 57 72 / 45%);
  background: rgb(255 255 255 / 38%);
  color: var(--course-accent) !important;
}

.navbar-nav .nav-link.active {
  border-color: var(--course-accent);
  background: var(--course-accent);
  color: var(--course-white) !important;
}

main table {
  width: 100%;
  margin: 1.25rem 0;
  border-collapse: collapse;
  font-size: 0.95rem;
}

main th,
main td {
  padding: 0.7rem 0.65rem;
  border: 0;
  border-bottom: 1px solid var(--course-line);
  text-align: left;
  vertical-align: top;
}

main th {
  color: var(--course-sidebar-deep);
  font-weight: 650;
}

.course-details th {
  width: 11rem;
}

.schedule-scroll {
  width: 100%;
  margin-top: 1rem;
  overflow-x: auto;
  border: 1px solid var(--course-line);
}

table.schedule-table {
  display: table;
  width: 100%;
  min-width: 900px;
  margin: 0;
  border-top: 2px solid var(--course-sidebar-deep);
  font-size: 0.86rem;
  line-height: 1.45;
  table-layout: fixed;
}

.schedule-table thead {
  background: var(--course-sidebar-deep);
  color: var(--course-white);
}

.schedule-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  min-width: 8rem;
  padding: 0.8rem 0.65rem;
  border-bottom-color: var(--course-sidebar-deep);
  background: var(--course-sidebar-deep);
  color: var(--course-white);
}

.schedule-table th:nth-child(2),
.schedule-table th:nth-child(4),
.schedule-table th:nth-child(5) {
  min-width: 0;
}

.schedule-table th:nth-child(1) { width: 12%; }
.schedule-table th:nth-child(2) { width: 18%; }
.schedule-table th:nth-child(3) { width: 14%; }
.schedule-table th:nth-child(4) { width: 28%; }
.schedule-table th:nth-child(5) { width: 28%; }

.schedule-table td:first-child {
  min-width: 8.5rem;
  color: var(--course-sidebar-deep);
  font-weight: 650;
}

.schedule-table tbody tr:nth-child(even) {
  background: var(--course-soft);
}

.callout.callout-note {
  border: 0;
  border-left: 4px solid var(--course-accent);
  border-radius: 0;
  background: var(--course-accent-soft);
}

.nav-page,
.page-footer {
  border-color: var(--course-line);
}

.page-footer {
  color: var(--course-muted);
  font-size: 0.85rem;
}

@media (max-width: 991px) {
  main.content {
    padding-top: 1.25rem;
  }

  .navbar-container {
    padding-right: 1rem;
    padding-left: 1rem;
  }
}

@media (min-width: 992px) {
  .page-layout-article main.content {
    transform: translateX(-35px);
  }
}


@media (max-width: 767px) {
  body {
    font-size: 0.96rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  h3 {
    font-size: 1.25rem;
  }

  .course-details th,
  .course-details td {
    display: block;
    width: 100%;
  }

  .course-details th {
    padding-bottom: 0.05rem;
    border-bottom: 0;
  }

  .course-details td {
    padding-top: 0.05rem;
  }
}
