/* Scale base font size */
:root {
  font-size: 98%
}

h1 {
  font-size: 1.8rem
}

h2 {
  font-size: 1.6rem
}

h3 {
  font-size: 1.2rem
}

h4 {
  font-size: 1.2rem
}

/* Adjust font size for admonition content */
.admonition {
    font-size: 0.9rem; /* Adjust value to your preference */
}

/* Adjust font size for admonition titles */
.admonition-title {
    font-size: 1rem; /* Slightly larger for the title */
}

/* Target inline code elements in Furo */
code.literal {
    font-size: 1em; 
}


@media (min-width: 67em) {

	/* Increase main article width */
    .content {
        width: 60em;
    }

	/* Widen the sidebar drawer */
    .sidebar-drawer {
        width: 22rem;  
    }

    /* Sidebar container fills drawer */
    .sidebar-container {
        width: 100%;
    }

}

.sidebar-logo {
	max-width: 60%;
}

.sidebar-drawer .sidebar-tree .reference.internal {
    font-size: 0.8rem
}

.sidebar-tree .reference {
	padding-top: 0.2rem;
	padding-bottom: 0.2rem;
}

div.highlight-tree pre {
  background-color: var(--color-background-secondary);  
  color: var(--color-foreground-primary);            
}

figure img {
  max-width: 80%;   /* limit width */
  height: auto;
  display: block;
  margin: 1em auto; /* center horizontally */
}

/* Apply to all tables */
table.docutils {
  font-size: 0.85rem; 
  text-align: left;  
}

table.docutils td {
  white-space: nowrap;
}

/* header cells */
table.docutils th {
  text-align: left;
}


/* Add vertical spacing above admonitions that follow a table */
.table-wrapper + .admonition {
    margin-top: 2em;
}


/* Left-align all tables */
article table.docutils {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Move captions below & left-align them */
article table.docutils caption {
  caption-side: bottom;       /* put it below */
  text-align: left !important; 
  font-size: 0.85rem;
  padding-left: 0;            /* remove centering */
  padding-top: 0.5em;         /* space between table and caption */
}


/* Block code (fenced or .. code-block::) */
.highlight pre {
  font-size: 0.9rem;
}

/* General admonition style */
[data-theme="light"] {
  --color-admonition-background: #f2f2f2;
  --color-admonition-title-background: #f2f2f2;
  --color-admonition-title: #626262;
  --color-admonition-border: #f2f2f2;
}
[data-theme="dark"] {
  --color-admonition-background: #626262;
  --color-admonition-title-background: #626262;
  --color-admonition-title: #f2f2f2;
  --color-admonition-border: #626262;
}

.footer-logo {
  display: inline-block;
  vertical-align: middle;
}


/* Hide the view-this-page div */
.view-this-page {
    display: none;
}
