div.toctree-wrapper {
    line-height: 1.4;  
}

div.bd-toc-item.navbar-nav.active {
    line-height: 1.2;
}

div.sidebar-secondary-item {
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: #2980b9;
}

a:visited {
    color: #2980b9;
}

.bd-footer-content {
    display: none !important;
}

@media (min-width: 960px) {
  :root {
    --sidebar-min: 17.6rem;
    --sidebar-max: 26rem;
    --article-extra: 6rem;
    --sidebar-w: clamp(var(--sidebar-min), 100vw - 71.5rem - var(--article-extra), var(--sidebar-max));
  }
  .bd-page-width { max-width: calc(70.4rem + var(--article-extra) + var(--sidebar-w)); }
  .bd-sidebar-primary { flex: 0 0 var(--sidebar-w); width: var(--sidebar-w); }
}

html[data-theme="light"] .gs-home-link img {
    filter: none;
}

html[data-theme="dark"] .gs-home-link img {
    filter: invert(1);
}

.gs-home-link {
    display: block;
    padding: 10px;
    text-align: center;
}

.gs-home-link img {
    width: 100%;
    max-width: 180px;
    height: auto;
    margin: 0 auto;
}