body {
  font-family: "Inter", sans-serif;
  font-weight: 300;
}

@media (min-width: 992px) {
  .container, .container-sm, .container-md, .container-lg {
    max-width: 960px;
  }
}

a {
  color: mediumblue;
  text-decoration: none;
}

a:hover, a:focus {
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

b, strong {
  font-weight: 500;
}

.navbar {
  font-weight: 400;
  --bs-navbar-brand-font-size: 1rem;
}

.navbar a {
  text-decoration: none;
}

h1, h2, h3, h4, h5 {
  margin-top: 1.5rem;
  margin-bottom: 1rem;
}

.fs-7 {
  font-size: 0.8rem !important;
}

.fs-8 {
  font-size: 0.6rem !important;
}

.list-g-1 > li {
  margin-bottom: 0.25rem;
}

.list-g-1 > li:last-child {
  margin-bottom: 0;
}

.list-g-2 > li {
  margin-bottom: 0.5rem;
}

.list-g-2 > li:last-child {
  margin-bottom: 0;
}

.list-g-3 > li {
  margin-bottom: 0.75rem;
}

.list-g-3 > li:last-child {
  margin-bottom: 0;
}

li > p {
  margin-bottom: 0.5rem;
}

li > p:last-child {
  margin-bottom: 0;
}

.quote {
  border-left: 0.25rem solid var(--quote-border-left);
  padding: 0.25rem 1rem;
}

.quote > :last-child {
  margin-bottom: 0;
}

.quote-primary {
  --quote-border-left: var(--bs-primary);
}

.quote-secondary {
  --quote-border-left: var(--bs-secondary);
}

.quote-success {
  --quote-border-left: var(--bs-success);
}

.quote-info {
  --quote-border-left: var(--bs-info);
}

.quote-warning {
  --quote-border-left: var(--bs-warning);
}

.quote-danger {
  --quote-border-left: var(--bs-danger);
}

.callout {
  border-left: 0.25rem solid var(--bs-warning);
  padding: 0.75rem 1rem;
  background-color: var(--bs-highlight-bg);
}

.children-p-1 > div {
  padding: 0.25rem;
}

.ms-2-5 {
  margin-left: 0.75rem !important;
}

.text-bg-danger-subtle {
  background-color: rgba(248, 215, 216, 0.6);
}

.text-bg-success-subtle {
  background-color: rgba(209, 231, 221, 0.6);
}

.illini-orange {
  color: #FF5F05;
}

.illini-blue {
  color: #13294B;
}

.darkblue {
  color: darkblue;
}

.royalblue {
  color: royalblue;
}

.bell-yellow {
  color: #f1b102;
}

.brown {
  color: brown;
}

.bg-illini-orange {
  background-color: #FF5F05;
}

.bg-illini-blue {
  background-color: #13294B;
}

.border-warning-subtle {
  border-color: #d3be7f !important;
}

#course-jumbotron {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(5, 21, 43, 0.9) 0%, rgba(5, 21, 43, 0.7) 38%, rgba(5, 21, 43, 0.12) 72%),
    url('../images/course-bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  min-height: clamp(15rem, 31vw, 18rem);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 1rem;
  box-shadow: 0 1rem 2.5rem rgba(19, 41, 75, 0.16);
}

#course-jumbotron::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  content: "";
  pointer-events: none;
}

.course-hero-content {
  max-width: 35rem;
  padding: clamp(2rem, 5vw, 3.5rem);
}

#course-title {
  max-width: 15ch;
  margin: 0 0 1.25rem;
  color: #fff;
  font-size: clamp(2.25rem, 5.4vw, 3.75rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
  text-shadow: 0 0.15rem 1.2rem rgba(0, 0, 0, 0.28);
}

.course-title-line {
  display: block;
}

.course-title-line:first-child {
  white-space: nowrap;
}

.course-title-for {
  margin-right: 0.08em;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

#course-subtitle {
  gap: 0.55rem;
  padding: 0.4rem 0.8rem;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.035em;
  background: rgba(255, 255, 255, 0.11);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  backdrop-filter: blur(0.4rem);
  box-shadow: 0 0.35rem 1rem rgba(0, 0, 0, 0.12);
}

#course-subtitle::before {
  width: 0.45rem;
  height: 0.45rem;
  background: #FF5F05;
  border-radius: 50%;
  box-shadow: 0 0 0 0.2rem rgba(255, 95, 5, 0.18);
  content: "";
}

@media (max-width: 575.98px) {
  #course-jumbotron {
    min-height: 16rem;
    background-image:
      linear-gradient(90deg, rgba(5, 21, 43, 0.94) 0%, rgba(5, 21, 43, 0.75) 52%, rgba(5, 21, 43, 0.3) 100%),
      url('../images/course-bg.jpg');
    background-position: 59% center;
  }

  #course-title {
    font-size: clamp(1.85rem, 9vw, 3rem);
  }
}

#course-logo {
  width: 180px;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  margin: 0.25rem 0rem 0.5rem 1.5rem;
}

.anchor-link {
  padding: 0 .175rem;
  font-weight: 400;
  color: rgba(var(--bs-link-color-rgb), 0.5);
  text-decoration: none;
  opacity: 0;
  transition: color 0.15s ease-in-out, opacity 0.15s ease-in-out;
}

@media (prefers-reduced-motion: reduce) {
  .anchor-link {
    transition: none;
  }
}

.anchor-link::after {
  content: "#";
}

.anchor-link:focus, .anchor-link:hover,
:hover > .anchor-link, :target > .anchor-link {
  color: #0d6efd;
  text-decoration: none;
  opacity: 1;
}

.syllabus-toc {
  max-width: 32rem;
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background-color: var(--bs-tertiary-bg);
  border: 1px solid lightgray;
  border-radius: 0.5rem;
}

.syllabus-toc-title {
  margin-bottom: 0.625rem;
  color: var(--bs-secondary-color);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.syllabus-toc ol {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.syllabus-toc li {
  padding-left: 0.25rem;
}

.syllabus-toc li + li {
  margin-top: 0.375rem;
}

#schedule-table thead {
  --bs-table-color: white;
  --bs-table-bg: darkslategray;
}

#schedule-table .week-col {
  width: calc(100% * 0.5 / 12);
  white-space: nowrap;
}

#schedule-table .date-col {
  width: calc(100% / 12);
  white-space: nowrap;
}

#schedule-table .topic-col {
  width: calc(100% * 3.5 / 12);
}

#schedule-table .readings-col {
  width: calc(100% * 7 / 12);
}

#schedule-table .badge {
  --bs-badge-padding-y: 0.2em;
  --bs-badge-font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-class {
  border: 1px solid var(--bs-secondary-border-subtle);
  background-color: var(--bs-secondary-bg-subtle);
  color: var(--bs-secondary-text-emphasis);
}

.badge-required {
  border: 1px solid #d3be7f;
  background-color: var(--bs-warning-bg-subtle);
  color: var(--bs-warning-text-emphasis);
}

.badge-optional {
  border: 1px solid var(--bs-success-border-subtle);
  background-color: var(--bs-success-bg-subtle);
  color: var(--bs-success-text-emphasis);
}

.badge-deadline {
  border: 1px solid var(--bs-danger-border-subtle);
  background-color: var(--bs-danger-bg-subtle);
  color: var(--bs-danger-text-emphasis);
}

.badge-required, .badge-optional, .badge-deadline {
  width: 4rem;
}
