/* Cover page */
.cover-main > p:last-child a {
  color: var(--theme-color, #42b983);
  border: 1px solid var(--theme-color, #42b983);
  border-radius: 2rem;
  padding: .4em 2em;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.cover-main > p:last-child a:hover {
  background: var(--theme-color, #42b983);
  color: #fff;
}

/* Sidebar tweaks */
.sidebar ul li a {
  font-size: .9rem;
}
.sidebar ul ul li a {
  font-size: .85rem;
}

/* Content tables */
table {
  width: 100%;
}
table td:first-child {
  white-space: nowrap;
}

/* Source link footer */
.source-link {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--mono-tint2, #eee);
  font-size: .85rem;
  color: var(--mono-tint1, #999);
}
.source-link a {
  color: var(--mono-base, #666);
}

/* Theme toggle button */
#theme-toggle {
  position: fixed;
  top: 12px;
  right: 60px;
  z-index: 100;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
  opacity: 0.7;
  transition: opacity var(--duration-fast, 0.25s);
  color: #000;
}
@media (prefers-color-scheme: dark) {
  #theme-toggle { color: #fff; }
}
[data-theme="dark"] #theme-toggle { color: #fff; }
[data-theme="light"] #theme-toggle { color: #000; }
#theme-toggle:hover {
  opacity: 1;
}
