/* ===========================================
   UCSB Brand - Light-touch overrides
   Fonts: https://brand.ucsb.edu/tools-and-templates/web-fonts
   Colors: https://brand.ucsb.edu/visual-identity/color
   =========================================== */

/* --- Typography: Nunito Sans (replaces Docsy-Jekyll defaults) --- */

body {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 400;
  color: #3D4952;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 800;
  color: #003660;
}

.td-navbar .navbar-brand span {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 800;
}

.td-sidebar-nav a,
.td-toc a {
  font-family: "Nunito Sans", sans-serif;
}

code, pre {
  font-family: "Roboto Mono", "SFMono-Regular", Menlo, monospace;
}

/* Override Bootstrap default code color (#e83e8c) with UCSB Navy */
code {
  color: #003660;
}

/* --- Colors --- */

a {
  color: #003660;
}

a:hover {
  color: #047C91; /* UCSB Aqua Web */
}

/* Ensure content-area links are underlined for accessibility (WCAG 1.4.1) */
.td-content a {
  text-decoration: underline;
}

.td-content a:hover {
  text-decoration: underline;
}

/* Sidebar active link — section headings only, not child page links */
.td-sidebar-nav a.active,
.td-sidebar-nav .td-sidebar-link.active > a {
  color: #003660;
  font-weight: 500;
}

.td-sidebar-nav a.td-sidebar-link__page.active {
  color: #3D4952;
  font-weight: 300;
}

/* Footer background to Navy */
footer.bg-dark {
  background-color: #003660 !important;
}
