:root {
  --au-blue: #003d73;
  --au-blue-dark: #002546;
  --au-cyan: #37a0cb;
  --au-magenta: #e2007a;
  --au-magenta-dark: #5f0030;
  --au-yellow: #fabb00;
  --au-font-family: "AU Passata", "Helvetica Neue", Arial, sans-serif;
  --bs-body-font-family: var(--au-font-family);
  --bs-font-sans-serif: var(--au-font-family);
}

body.quarto-light {
  --bs-primary: var(--au-blue);
  --bs-primary-rgb: 0, 61, 115;
  --bs-link-color: var(--au-blue);
  --bs-link-color-rgb: 0, 61, 115;
  --bs-link-hover-color: var(--au-blue-dark);
}

body.quarto-dark {
  --bs-primary: var(--au-cyan);
  --bs-primary-rgb: 55, 160, 203;
  --bs-link-color: var(--au-cyan);
  --bs-link-color-rgb: 55, 160, 203;
  --bs-link-hover-color: #fff;
}

#quarto-header .navbar {
  background-color: var(--au-blue-dark);
  border-bottom: 1px solid var(--au-blue);
}

body.quarto-light h1,
body.quarto-light h2,
body.quarto-light h3,
body.quarto-light .quarto-title {
  color: var(--au-blue-dark);
}

body,
button,
input,
select,
textarea,
h1,
h2,
h3,
h4,
h5,
h6,
.navbar,
.sidebar,
.quarto-title {
  font-family: var(--au-font-family);
}

body {
  font-size: 1rem;
  line-height: 1.6;
}

::selection {
  color: #fff;
  background-color: var(--au-blue);
}

.course-summary {
  border-left: 0.35rem solid var(--au-magenta);
  padding: 0.8rem 1rem;
  margin: 1.25rem 0;
  background: var(--bs-tertiary-bg);
}

.textbook-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}

.textbook-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--bs-border-color);
  border-top: 0.35rem solid var(--au-blue);
  border-radius: 0.5rem;
  background: var(--bs-body-bg);
  box-shadow: 0 0.125rem 0.35rem rgba(0, 0, 0, 0.08);
}

.textbook-card:nth-child(2) {
  border-top-color: var(--au-magenta);
}

.textbook-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 360px;
  background: var(--bs-tertiary-bg);
}

.textbook-cover p {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  margin: 0;
}

.textbook-cover img {
  display: block;
  width: calc(100% - 2.5rem);
  height: calc(100% - 2.5rem);
  margin: 0;
  object-fit: contain;
}

.textbook-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.4rem;
}

.textbook-card-body h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.textbook-metadata {
  margin-bottom: 1.25rem;
}

.textbook-card-body > p:last-child {
  margin-top: auto;
  margin-bottom: 0;
}

.book-link {
  align-self: flex-start;
}

.schedule-status {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: 0.25rem;
  color: var(--au-blue-dark);
  background: color-mix(in srgb, var(--au-yellow) 35%, transparent);
  font-weight: 700;
}

.instructor-headshot {
  margin-right: 1.25rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 767.98px) {
  .textbook-grid {
    grid-template-columns: 1fr;
  }
}
