html[data-theme] {
  --primary: var(--first-purple-dark);
  --secondary: var(--first-purple-dark);
  --header-bg: var(--first-orange);
  --header-color: var(--first-ink);
  --header-branding-color: var(--first-ink);
  --header-link-color: var(--first-ink);
  --breadcrumbs-bg: #493178;
  --button-bg: var(--first-purple-dark);
  --button-hover-bg: #493178;
  --default-button-bg: #493178;
  --default-button-hover-bg: var(--first-purple-dark);
}

html[data-theme="light"],
html[data-theme="auto"] {
  --link-fg: var(--first-purple-dark);
  --link-hover-color: #493178;
}

html[data-theme="dark"] {
  --link-fg: #cbb4f6;
  --link-hover-color: #e7d8ff;
  --link-selected-fg: #cbb4f6;
}

@media (prefers-color-scheme: dark) {
  html[data-theme="auto"] {
    --link-fg: #cbb4f6;
    --link-hover-color: #e7d8ff;
    --link-selected-fg: #cbb4f6;
  }
}

#branding { align-items: center; }
#site-name { margin: 0; }
#site-name .first-lockup { flex-wrap: wrap; }
#header .theme-toggle { color: var(--first-ink); }

.brand-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: .75rem;
  width: 100%;
}

.brand-role-grid .brand-role-options {
  border: 1px solid var(--border-color);
  border-radius: .45rem;
  padding: .45rem .75rem .75rem;
  min-width: 0;
}

.brand-role-options legend {
  font-weight: 700;
  padding-inline: .25rem;
}

.brand-role-options > div { margin-block: .35rem; }

.brand-role-grid .brand-role-options label {
  width: auto;
  padding: 0;
  float: none;
  font-weight: normal;
}

.course-evaluation-summary { margin-bottom: 1.25rem; }
.course-evaluation-summary > p { padding-inline: .75rem; }
.course-evaluation-summary .results > table { width: 100%; }

.points-report-filter { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin-bottom: 1rem; }
.points-report-filter label { display: block; margin-bottom: .25rem; }
.points-report-results { overflow-x: auto; }
.points-report-results table { width: 100%; }

.landing-banner-preview { display: block; width: min(100%, 34rem); height: auto; border-radius: .5rem; }
