:root {
  --content-font-size: 1rem;
}

.sidebar-brand-text {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.toctree-wrapper .caption {
  font-weight: 700;
}

table.docutils {
  margin-left: 0;
  margin-right: auto;
}

@media (min-width: 67em) {
  div.content {
    width: 80em;
    max-width: 60vw;
  }
}

.article-container {
  margin-top: 24px;
}

.article-container,
#furo-main-content {
  width: 100%;
  max-width: none;
}

h1 {
  margin-top: 0;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  h1 {
    margin-bottom: 4rem;
  }
}

h2 {
  font-size: 1.75rem;
}

h3 {
  font-size: 1.25rem;
  margin-top: 1.2rem;
}

h4 {
  font-size: 1rem;
  font-weight: 500;
}

/* Furo puts the whole nav in .sidebar-scroll with overflow:auto. Absolute bottom:0 inside that
   box is tied to the full scroll height, so the bar can land in the middle of the viewport while
   scrolling. Only the TOC scrolls here; the repo row stays a normal flex item at the bottom. */
.sidebar-scroll {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  flex-shrink: 1;
  min-height: 0;
  overflow: hidden;
}

.raitap-sidebar-toc-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  scrollbar-color: var(--color-foreground-border) transparent;
  scrollbar-width: thin;
}

.sidebar-tree.raitap-sidebar-repo {
  flex-shrink: 0;
  box-sizing: border-box;
  margin-top: 0;
  margin-bottom: 0;
  padding: 1rem var(--sidebar-item-spacing-horizontal) var(--sidebar-item-spacing-vertical);
  border-top: 1px solid var(--color-sidebar-item-background--hover);
  background-color: var(--color-sidebar-background);
}

.raitap-sidebar-repo .reference.external {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sd-container-fluid {
  padding-left: 0;
}

.sd-card-title {
  margin-bottom: 0;
}

.sd-tab-set {
  margin-top: 0;

  &>label {
    padding-top: 0.5em;
  }

}

.admonition-title {
  padding-block: 8px;
}

.content-icon-container {
  margin-top: 8px;
  gap: 1rem;
}

.sidebar-drawer {
  width: auto;
}