:root {
  --md-primary-fg-color:        #000000;
  --md-primary-fg-color--light: #000000;
  --md-primary-fg-color--dark:  #000000;
}

body {
  background-color: #ffffff;
  color: #000000;
}

/* Linkit */
p > a, td > a, li > a {
  color: #000000 !important;
}
p > a:hover, td > a:hover, li > a:hover {
  color: #0f0093 !important;
  text-decoration: underline !important;
}
.reference.internal {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* SIVUPALKKI (Material-teema) */
.md-sidebar {
  background-color: #000000 !important;
  color: #ffffff !important;
}
.md-nav__link {
  color: #000000 !important;
}
.md-nav__link:hover {
  color: #0f0093 !important;
}
.md-nav__item .md-nav__link--active {
  font-weight: bold;
  color: #1ac2e8 !important;
}
.md-nav__item ul {
  background-color: #000000 !important;
}

/* VASEN SIVUPALKKI (RTD-teema) */
.wy-nav-side {
  background-color: #000000 !important; /* sidebarin pohja */
}
.wy-nav-side .wy-menu-vertical a {
  color: #ffffff !important; /* linkkiteksti */
}
.wy-nav-side .wy-menu-vertical a.current,
.wy-nav-side .wy-menu-vertical a:hover {
  color: #ffffff !important;
  background-color: #0f0093 !important; /* hover/aktiivinen tausta */
}

/* SIVUPALKIN VIERITYSPALKKI */
.md-sidebar__scrollwrap::-webkit-scrollbar {
  width: 8px;
}
.md-sidebar__scrollwrap::-webkit-scrollbar-track {
  background: #f0f0f0;
}
.md-sidebar__scrollwrap::-webkit-scrollbar-thumb {
  background-color: #888;
  border-radius: 4px;
  border: 2px solid #f0f0f0;
}
.md-sidebar__scrollwrap::-webkit-scrollbar-thumb:hover {
  background-color: #555;
}
.md-sidebar__scrollwrap {
  scrollbar-width: thin;
  scrollbar-color: #888 #f0f0f0;
}

/* SISÄLLÖN KESKITYS */
.md-content {
  max-width: 800px;
  margin: 0 auto;
}

/* LOGO STICKY (Read the Docs -teema) */
.wy-side-nav-search img {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #000000;  /* sama kuin sidebar */
  padding: 10px;
  max-width: 150px;     /* ettei veny liikaa */
  height: auto;
}
