
@media (prefers-color-scheme: dark) {
  .markdown-body {
    color-scheme: dark;
    --nav-background-color: rgba(16, 24, 30, 0.8);
    --nav-border-color: rgba(115, 130, 140, 0.2);
  }
}

@media (prefers-color-scheme: light) {
  .markdown-body {
    color-scheme: light;
    --nav-background-color: rgba(255, 255, 255, 0.7);
    --nav-border-color: rgba(115, 130, 140, 0.2);
  }
}

#toc div.h1 { margin-left: 0 }
#toc div.h2 { margin-left: 1em }
#toc div.h3 { margin-left: 2em }
#toc div.h4 { margin-left: 3em }

.logo {
  width: 7rem;
  height: 3.5rem;
  display: inline-block;
  background-color: var(--color-fg-default);
  -webkit-mask: url(logo.svg) no-repeat center;
  mask: url(logo.svg) no-repeat center;
}

.sidenav{
  display: none;
  min-width: 15rem;
  position: fixed;
  height: 100vh;
  max-height: calc(100vh - 5.5rem);
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  background-color: var(--color-canvas-subtle);
  box-shadow: 0 0 1px var(--nav-border-color);
  padding: 2rem 1rem 0 1rem;
}

summary.selected{
  color: var(--color-accent-fg);
}

a.selected{
  text-decoration: underline;
  color: var(--color-accent-fg);
}

a.unselected{
  color: var(--color-fg-default);
}

html {
  scroll-behavior: smooth
}

input[type="text"],
input[type="button"],
input[type="submit"] {
      -webkit-appearance: none;
      border-radius: 3px;
      border-width: 1px;
}

button {
  -webkit-appearance: none;
  border-radius: 3px;
  border-width: 1px;
}

body > header {
  z-index: 99;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  width: 100%;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background-color: var(--nav-background-color);
  box-shadow: 0 1px 0 var(--nav-border-color);
  height: 3.5rem;
}

body > header > div > button {
  display: none;
}

body > main {
  padding-top: 2rem;
  padding-right: 1rem;
  padding-left:1rem;
  display: grid;
  grid-template-columns:  minmax(15rem, 1fr) minmax(0, 3fr) minmax(0, 15rem);
  grid-column-gap: 8rem;
  margin-right:auto;
  margin-left:auto;
  max-width: 1450px;
}

body > main > aside {
  display: block;
  grid-template-columns:  minmax(0, 15rem);
}

main > aside nav {
  min-width: 15rem;
  position: fixed;
  max-height: calc(100vh - 5.5rem);
  overflow-x: hidden;
  overflow-y: auto;
}

main > aside details summary {
  font-weight: bold;
  text-transform: uppercase;
}

body > aside details summary {
  font-weight: bold;
  text-transform: uppercase;
}

nav > details ul li{
  list-style: none;
}

@media (max-width: 1280px) {
  body > main {
    grid-template-columns: minmax(0, 15rem) minmax(0, 3fr);
    max-width: 1280px;
  }
  #tablecontent {
    display: none;
  }
} 

@media (max-width: 980px) {
  
  body > main {
    padding-top: 0;
    display: block;
  }

  body > main > aside {
    display: none;
  }

  body > header > div > button{
    display: block;
  }

  .sidenav{
    display: none;
  }

  .responsive {
    display: block;
  }

  main > aside nav {
    padding-top: unset;
    position: initial;
    max-height: unset;
    overflow-x: initial;
    overflow-y: initial;
  }
}


