/* Site touches for the Furo theme. Colours and fonts are set in conf.py. */

html { color-scheme: dark; }

/* The site is dark only. */
.theme-toggle-container { display: none; }

/* The site's animated rainbow rule, across the top of the page */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 3px;
  background: linear-gradient(90deg, #ff3d7f, #ff8a3d, #ffd23d, #4dff8a, #3dc8ff, #6a5cff, #c84dff, #ff3d7f);
  background-size: 200% 100%;
  animation: drift 12s linear infinite;
}

@keyframes drift {
  from { background-position: 0% 0; }
  to { background-position: 200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
}

a { text-underline-offset: 3px; }

.sidebar-site-link {
  display: block;
  padding: 0 var(--sidebar-item-spacing-horizontal) var(--sidebar-item-spacing-vertical);
  color: var(--color-foreground-secondary);
  font-size: var(--sidebar-item-font-size);
  text-decoration: none;
}

.sidebar-site-link:hover { color: var(--color-foreground-primary); }

/* Rounded corners, like the site */
div.highlight,
.highlight pre,
.admonition { border-radius: 10px; }

article code.literal {
  border: 1px solid var(--color-background-border);
  border-radius: 6px;
}

/* Class and function signatures */
dl.py > dt {
  border-radius: 10px;
  border-left: 3px solid #6a5cff;
}
