:root {
  --brand: #006dae;
  --brand-dark: #00527f;
  --brand-mid: #247fb1;
  --brand-soft: rgba(0, 109, 174, 0.1);
  --ink: #18324a;
  --muted: #4a647b;
  --panel: rgba(255, 255, 255, 0.92);
}

body {
  background:
    radial-gradient(circle at top right, rgba(36, 127, 177, 0.14), transparent 26rem),
    linear-gradient(180deg, #f7fafc 0%, #f2f7fb 100%);
  color: var(--ink);
}

a {
  color: var(--brand);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-dark);
}

strong {
  color: #10283d;
}

code {
  color: #9a2e4f;
  background: rgba(0, 109, 174, 0.08);
  padding: 0.08rem 0.35rem;
  border-radius: 0.35rem;
}

#quarto-header .navbar {
  background: linear-gradient(90deg, var(--brand-dark) 0%, var(--brand) 56%, var(--brand-mid) 100%);
  box-shadow: 0 16px 40px rgba(15, 46, 76, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

#quarto-header .navbar-brand-container {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

#quarto-header.headroom,
#quarto-header.headroom--pinned,
#quarto-header.headroom--unpinned {
  transform: translateY(0) !important;
}

.navbar-brand,
.navbar-nav .nav-link,
.navbar-nav .dropdown-item {
  font-weight: 600;
}

.navbar-brand {
  letter-spacing: 0.01em;
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
}

.navbar-title {
  white-space: nowrap;
}

#quarto-header .navbar-nav .nav-item:not(.compact) > .nav-link > i.bi {
  display: none;
}

#quarto-header .navbar-nav .nav-link {
  padding-inline: 0.7rem;
}

#quarto-header .navbar-nav .menu-text {
  font-size: 0.98rem;
}

.navbar .dropdown-menu {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 18px 44px rgba(11, 35, 58, 0.18);
  padding: 0.55rem;
}

.navbar .dropdown-item {
  border-radius: 0.75rem;
}

#quarto-content {
  padding-top: 2rem;
}

main.content {
  max-width: 1120px;
}

#title-block-header.quarto-title-block.default {
  position: relative;
  overflow: hidden;
  padding: 2.5rem 2.6rem 2rem;
  margin: 0 0 1.2rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.26), transparent 18rem),
    linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, var(--brand-mid) 100%);
  color: #fff;
  box-shadow: 0 24px 48px rgba(13, 48, 79, 0.16);
}

#title-block-header .title {
  margin: 0;
  color: #fff;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 1.08;
}

html[data-course="3231"] [data-course-only="5231"],
html[data-course="5231"] [data-course-only="3231"],
html[data-course="3231"] [data-course-except="3231"],
html[data-course="5231"] [data-course-except="5231"] {
  display: none !important;
}

.course-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.35rem;
  padding: 1rem 1.1rem;
  border-radius: 1.2rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(0, 109, 174, 0.12);
  box-shadow: 0 12px 28px rgba(16, 40, 61, 0.08);
}

.course-toggle__label {
  display: inline-block;
  margin-bottom: 0.2rem;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-toggle__summary {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.course-toggle__buttons {
  display: inline-flex;
  padding: 0.25rem;
  border-radius: 999px;
  background: rgba(0, 109, 174, 0.08);
}

.course-toggle__button {
  border: 0;
  padding: 0.62rem 0.95rem;
  border-radius: 999px;
  background: transparent;
  color: var(--brand);
  font-weight: 700;
}

.course-toggle__button.is-active {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 18px rgba(0, 109, 174, 0.18);
}

.course-toggle--nav {
  margin: 0;
  padding: 0 0 0 0.8rem;
  margin-left: 0.15rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.course-toggle--nav .course-toggle__buttons {
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.course-toggle--nav .course-toggle__button {
  padding: 0.45rem 0.72rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.84rem;
  line-height: 1;
}

.course-toggle--nav .course-toggle__button.is-active {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: none;
}

main.content > p:first-of-type {
  max-width: 54rem;
  margin: 0 0 1.75rem;
  font-size: 1.15rem;
  line-height: 1.75;
  color: #35526c;
}

main.content > section.level2 {
  margin: 1.4rem 0;
  padding: 1.6rem 1.7rem;
  background: var(--panel);
  border: 1px solid rgba(20, 67, 107, 0.08);
  border-radius: 1.6rem;
  box-shadow: 0 14px 34px rgba(17, 46, 74, 0.06);
}

main.content > section.level2 > h2 {
  margin-top: 0;
  margin-bottom: 0.95rem;
  font-family: "Merriweather", Georgia, serif;
  font-size: 1.55rem;
  color: #10283d;
}

.week-dashboard {
  margin: 1.4rem 0 1.8rem;
  padding: 1.7rem;
  border-radius: 1.8rem;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 16rem),
    linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 60%, var(--brand-mid) 100%);
  color: #fff;
  box-shadow: 0 22px 42px rgba(13, 48, 79, 0.18);
}

.week-dashboard__header h2 {
  margin: 0.35rem 0 0.55rem;
  color: #fff;
  font-family: "Merriweather", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.week-dashboard__header > p {
  margin: 0;
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.7;
}

.week-dashboard__status,
.week-overview__status {
  display: inline-flex;
  align-items: center;
  padding: 0.36rem 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week-dashboard__status {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.week-dashboard__status--break {
  background: rgba(255, 213, 125, 0.24);
  color: #fff7df;
}

.week-dashboard__grid,
.week-overview__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.week-dashboard__grid {
  margin-top: 1.3rem;
}

.week-dashboard__card,
.week-overview__card {
  padding: 1.05rem 1.1rem;
  border-radius: 1.2rem;
}

.week-dashboard__card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
}

.week-overview {
  margin: 0 0 1.5rem;
  padding: 1.4rem 1.45rem;
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(239, 245, 252, 0.95) 0%, #ffffff 100%);
  border: 1px solid rgba(0, 109, 174, 0.12);
  box-shadow: 0 14px 30px rgba(16, 40, 61, 0.08);
}

.week-overview__header p {
  margin: 0.4rem 0 0;
  color: #35526c;
  font-size: 1.03rem;
  line-height: 1.7;
}

.week-overview__status {
  background: rgba(0, 109, 174, 0.1);
  color: var(--brand);
}

.week-overview__card {
  background: rgba(0, 109, 174, 0.04);
  border: 1px solid rgba(0, 109, 174, 0.08);
}

.week-dashboard__label,
.week-overview__label,
.action-card__kicker,
.resource-card__kicker,
.assessment-card__kicker,
.metric-card__label,
.assignment-cta__label {
  display: inline-block;
  margin-bottom: 0.4rem;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.week-dashboard__label {
  color: rgba(255, 255, 255, 0.76);
}

.week-overview__label,
.action-card__kicker,
.resource-card__kicker,
.assessment-card__kicker,
.metric-card__label,
.assignment-cta__label {
  color: var(--brand);
}

.week-dashboard__card p,
.week-dashboard__focus-list,
.week-dashboard__focus-list li,
.week-dashboard__actions a.button-link--ghost {
  color: #fff;
}

.week-dashboard__card p,
.week-overview__card p {
  margin: 0;
  line-height: 1.65;
}

.week-dashboard__focus-list,
.week-overview__focus-list {
  margin: 0;
  padding-left: 1rem;
}

.week-dashboard__focus-list li + li,
.week-overview__focus-list li + li,
.resource-card li + li,
main.content li + li {
  margin-top: 0.35rem;
}

.week-dashboard__next {
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
}

.quiz-spotlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.15rem;
  padding: 1.15rem 1.2rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 109, 174, 0.16);
  box-shadow: 0 16px 30px rgba(16, 40, 61, 0.08);
}

.quiz-spotlight__kicker {
  display: inline-block;
  margin-bottom: 0.32rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.quiz-spotlight h3 {
  margin: 0;
  color: #10283d;
  font-size: 1.45rem;
}

.quiz-spotlight__due {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: #17324d;
}

.quiz-spotlight__text {
  margin: 0.3rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.quiz-spotlight__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.quiz-spotlight__button {
  flex-shrink: 0;
}

.week-dashboard__actions,
.week-overview__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Keep Workshop Activities as the left-most action across all week pages. */
.week-overview__actions a[href*="activities"] {
  order: -1;
}

.week-dashboard__actions {
  margin-top: 1.3rem;
}

.action-grid,
.metric-grid,
.outcome-grid,
.assessment-grid,
.split-grid {
  display: grid;
  gap: 1rem;
  margin: 1.3rem 0 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.action-card,
.metric-card,
.outcome-card,
.assessment-card,
.resource-card {
  display: block;
  padding: 1.3rem 1.35rem;
  border-radius: 1.35rem;
  background: #fff;
  border: 1px solid rgba(0, 109, 174, 0.12);
  box-shadow: 0 10px 24px rgba(16, 40, 61, 0.06);
}

.action-card,
.assessment-card {
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.action-card:hover,
.assessment-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 109, 174, 0.28);
  box-shadow: 0 18px 32px rgba(16, 40, 61, 0.1);
}

.action-card:focus-visible,
.assessment-card:focus-visible,
.button-link:focus-visible,
.mini-link:focus-visible {
  outline: 3px solid #0a6fb1;
  outline-offset: 3px;
}

.action-card strong,
.assessment-card strong,
.metric-card strong {
  display: block;
  margin: 0.2rem 0 0.45rem;
  font-size: 1.15rem;
}

.action-card span:last-child,
.assessment-card span:last-child,
.metric-card span:last-child,
.resource-card li,
.outcome-card p {
  color: var(--muted);
}

.metric-card,
.outcome-card {
  background: linear-gradient(180deg, rgba(239, 245, 252, 0.85) 0%, #ffffff 100%);
}

.resource-card h3 {
  margin: 0.3rem 0 0.8rem;
  font-size: 1.2rem;
  color: #10283d;
}

.resource-card ul,
.resource-card ol,
main.content ul,
main.content ol {
  padding-left: 1.2rem;
}

.outcome-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.outcome-card p {
  margin: 0.9rem 0 0;
  line-height: 1.6;
}

.table,
.course-table {
  margin: 1rem 0 0;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 1rem;
}

.table thead th,
.course-table thead th {
  background: var(--brand) !important;
  color: #fff !important;
  border: 0;
  padding: 0.95rem 1rem;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table tbody td,
.course-table tbody td {
  padding: 0.95rem 1rem;
  vertical-align: middle;
  border-color: rgba(16, 40, 61, 0.08);
}

.table tbody tr:nth-child(even),
.course-table tbody tr:nth-child(even) {
  background: rgba(239, 245, 252, 0.6);
}

.week-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.2rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 109, 174, 0.12);
  color: var(--brand);
  font-size: 0.82rem;
  font-weight: 700;
}

.week-pill--current {
  background: var(--brand);
  color: #fff;
}

.week-pill--break {
  background: rgba(208, 164, 59, 0.16);
  color: #7d5a00;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(0, 109, 174, 0.12);
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.mini-link:hover {
  background: rgba(0, 109, 174, 0.18);
}

.muted {
  color: #73879a;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.82rem 1.15rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 109, 174, 0.22);
}

.button-link:hover {
  color: #fff;
  background: var(--brand-dark);
}

.button-link--ghost {
  background: rgba(0, 109, 174, 0.1);
  color: var(--brand);
  box-shadow: none;
}

.button-link--ghost:hover {
  color: var(--brand);
  background: rgba(0, 109, 174, 0.16);
}

.week-dashboard .button-link {
  background: #fff;
  color: var(--brand-dark);
  box-shadow: none;
}

.week-dashboard .button-link:hover {
  background: #edf7fd;
  color: var(--brand-dark);
}

.week-dashboard .button-link--ghost {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.resource-actions {
  margin-top: 1rem;
}

.slides-frame {
  width: 100%;
  min-height: 34rem;
  border: 0;
  border-radius: 1.3rem;
  background: #edf3fb;
  box-shadow: inset 0 0 0 1px rgba(0, 109, 174, 0.08);
}

.assignment-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.6rem;
  padding: 1.3rem 1.35rem;
  border-radius: 1.35rem;
  background: linear-gradient(135deg, rgba(0, 109, 174, 0.12) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(0, 109, 174, 0.14);
}

.assignment-cta__due {
  margin: 0.3rem 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: #10283d;
}

.assignment-cta__text {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
}

.assignment-cta__button {
  flex-shrink: 0;
}

.assignment-cta__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.assignment-cta__notice {
  margin-top: 0.7rem;
  font-weight: 600;
  color: #7a4e00;
}

.badge {
  font-size: 12.75px;
  display: inline-block;
  line-height: 1;
  padding: 4px 7px 3px;
  text-align: center;
  font-weight: 400;
  text-transform: uppercase;
  border-radius: 15px;
  opacity: 0.75;
}

.badge-large {
  font-size: 18px !important;
  padding: 5px 5px 3px;
  text-transform: none !important;
}

.badge-small {
  font-size: 11.25px;
  padding: 5px 5px 3px;
}

.badge:hover {
  opacity: 1;
}

.badge-black,
.badge-blue,
.badge-red,
.badge-green,
a.badge.badge-red,
a.badge.badge-blue,
a.badge.badge-green {
  color: #fff !important;
}

.badge-black {
  background: #0f0f0f;
}

.badge-blue {
  background: var(--brand);
}

.badge-red {
  background: #bd666d;
}

.badge-green {
  background: #2c9f42;
}

.badge-yellow {
  background: #ffc800;
}

.badge-white {
  background: #fff;
}

.badge-grey {
  background: #ccc;
}

.d-none {
  display: none !important;
}

@media print {
  .navbar {
    display: block;
    position: absolute;
    top: 0;
    border-width: 0 !important;
    min-height: 0 !important;
    border-bottom: 1px solid #000 !important;
  }

  .navbar-toggle {
    display: none;
  }

  a[href]:after {
    content: none !important;
  }

  .d-print-block {
    display: block !important;
  }
}

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

  #title-block-header.quarto-title-block.default {
    padding: 2rem 1.4rem 1.55rem;
    border-radius: 1.5rem;
  }

  main.content > section.level2 {
    padding: 1.25rem;
    border-radius: 1.25rem;
  }

  .action-grid,
  .metric-grid,
  .outcome-grid,
  .assessment-grid,
  .split-grid,
  .week-dashboard__grid,
  .week-overview__grid {
    grid-template-columns: 1fr;
  }

  .slides-frame {
    min-height: 24rem;
  }

  .assignment-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .course-toggle {
    flex-direction: column;
    align-items: flex-start;
  }

  #quarto-header .navbar-brand-container {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .course-toggle--nav {
    width: 100%;
    padding-left: 0;
    margin-left: 0;
    border-left: 0;
  }

  .course-toggle--nav .course-toggle__buttons {
    width: 100%;
  }

  .assignment-cta__buttons {
    width: 100%;
    justify-content: flex-start;
  }

  .quiz-spotlight {
    flex-direction: column;
    align-items: flex-start;
  }

  .quiz-spotlight__actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  main.content > p:first-of-type {
    font-size: 1.02rem;
  }

  .week-dashboard {
    padding: 1.3rem;
    border-radius: 1.4rem;
  }

  .table tbody td,
  .course-table tbody td,
  .table thead th,
  .course-table thead th {
    padding: 0.75rem 0.7rem;
  }
}
