/*-------------------------------------------------------------
	General
-------------------------------------------------------------*/
:root {
    /* Link decoration override, see GDB-9013 before you touch these */
    --link-decoration-thickness: clamp(1px, 0.06em, 10px);
    --link-underline-offset: clamp(1px, 0.06em, 10px);
}

@media (max-width: 1439px) {
    html {
        font-size: 14px;
    }
}

.logo-container {
    align-items: stretch;
}

.main-container a {
    font-weight: 400;
    color: var(--tertiary-color-dark);
}

.main-container a.internal, .main-container a.external {
    text-decoration-line: underline;
    text-decoration-thickness: var(--link-decoration-thickness);
    text-underline-offset: var(--link-underline-offset);
}

.main-container a.external {
    text-decoration-style: solid;
}

.main-container a.internal {
    text-decoration-style: dotted;
}

.main-container .contents a.internal {
    text-decoration: none;
    color: var(--secondary-color);
}

.main-container .toctree-wrapper a.internal {
    text-decoration: none;
    color: var(--secondary-color);
}

.main-container a.download {
    text-decoration: none;
}

.main-container a.download::before {
    content: "\e915";
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
    margin-bottom: 0.2em;
    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.main-container a.reference.internal .std-ref {
    /* TODO: should we have a different style for links to sections? */
}

.main-container a.reference.external::after { /* copied from the icon- classes as we can't use those directly */
    content: "\e916";
    /* use !important to prevent issues with browser extensions that change fonts */
    font-family: 'icomoon' !important;
    speak: none;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    vertical-align: middle;
    display: inline-block;
    margin-bottom: 0.2em;
    /* Better Font Rendering =========== */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
    color: #292b2c !important;
}

[class^="highlight-"], [class*=" highlight-"],
iframe {
    margin-bottom: 1.5rem;
}

img.gdb-icon {
    /* GraphDB icons are slightly smaller than Font Awesome icons */
    height: 1.2em;
}

img.fa-icon {
    /* Font Awesome icons are slightly larger than GraphDB icons */
    height: 1em;
}

/* Fix margin in paragraphs within sphinx lists */
div[role="main"] li > p {
    margin-bottom: 0.5rem;
}


/*-------------------------------------------------------------
	Alerts
-------------------------------------------------------------*/
.alert-warning:before {
    content: "\e90c";
}
.alert {
    overflow: auto;
}


/*-------------------------------------------------------------
	Layout
-------------------------------------------------------------*/
.main-container {
    /* Override values from GraphDB theme below */
    padding: 6rem 0 2rem 0;
    margin-left: 0;
}

.bs-sidenav {
    font-weight: 400;
    z-index: 1010;
    margin: 0;
    padding: 0;
    position: fixed;
    width: 100%;
    background-color: #f7f7f7;
}

.bs-sidenav:has(.show) {
    height: 100%;
}

.sidebar-scroll-parent-container:has(.show) {
    height: 100%;
}

.sidebar-scroll-container {
    height: calc(100% - 4em);
}

.sidebar-scroll {
    overflow-y: auto;
    overflow-x: hidden;
    height: calc(100% - 4em);
}

@media (min-width: 992px) {
    .main-container {
        padding-top: 2rem;
        margin-left: 20%;
    }

    .main-container .container-fluid {
        max-width: 1200px;
        margin-left: 0;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .bs-sidenav {
        width: 20%;
        position: fixed;
        height: 100%;
    }

    .sidebar-scroll-parent-container {
        height: 100%;
    }

    .hidden-mobile-nav.collapse {
        display: block;
    }
}
@media (min-width: 1800px) {
    .main-container {
        margin-left: 14%;
    }
    .bs-sidenav {
        width: 14%;
    }
}

/*-------------------------------------------------------------
	sidebar menu
-------------------------------------------------------------*/
.logo {
    height: 2.4rem;
    width: auto;
    vertical-align: middle;
    pointer-events: none;
}

@media (min-width: 1200px) {
    .logo {
        height: 2.75rem;
        width: auto;
    }
}


.sidebar-menu {

}
.sidebar-menu ul {
    padding: 0;
}
.sidebar-menu li {
    list-style: none;
}
.sidebar-menu > ul > li > a {
    font-weight: 400;
}
.sidebar-menu a {
    display: block;
    padding: 0.5em 1rem 0.5em 1.8rem;
    transition: all 0.18s ease-out;
    position: relative;
    line-height: 1.4;
}
.sidebar-menu a:hover {
    background-color: rgba(0, 0, 0, .1);
    text-decoration: none;
    outline: none;
}
.sidebar-menu a.current {
    background-color: var(--primary-color);
    color: #fff;
}

.sidebar-menu .toctree-l1.current {
    background-color: rgba(0, 0, 0, .1);
}
.sidebar-menu .toctree-l1 > a:before {
    font-family: 'icomoon' !important;
    content: "\e91b";
    color: rgba(0, 0, 0, .5);
    line-height: 1.4;
    position: absolute;
    left: 0.8em;
    display: inline-block;
    transition: all 0.18s ease-out;
}
.sidebar-menu .toctree-l1.current > a.current:before {
    transform: rotate(90deg);
    color: rgba(255, 255, 255, .5);
}
.sidebar-menu .toctree-l3 a {
    padding-left: 2.5rem;
    padding-top: 0.3em;
    padding-bottom: 0.3em;
    font-size: 0.9rem;
}

/* styles for collapsible menu */
.sidebar-menu .toctree-l1 > a[aria-expanded="true"] {
    background-color: var(--primary-color);
    color: #fff;
}
.sidebar-menu .toctree-l1 > a[aria-expanded="true"]:before {
    transform: rotate(90deg);
}


/* mobile menu */
@media (max-width: 991px) {
    .hidden-mobile-nav {
        display: none;
    }

    .latest {
        position: initial !important;
    }
}


/*-------------------------------------------------------------
	ToC lists
-------------------------------------------------------------*/
.contents ul, .toctree-wrapper ul {
    padding-left: 0;
    list-style: none;
}

.contents ul li, .toctree-wrapper ul li {
    margin-bottom: 0.5em;
    padding-left: 1.2em;
    position: relative;
    line-height: 1.3;
}

.contents ul li:before, .toctree-wrapper ul li:before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    left: 3px;
    top: 5px;
}

.contents > ul > li:before, .toctree-wrapper > ul > li:before {
    background-color: var(--primary-color);
}

.contents > ul ul > li:before, .toctree-wrapper > ul ul > li:before {
    width: 8px;
    height: 8px;
    background-color: transparent;
    border: 1px solid var(--primary-color);
}

.contents > ul ul, .toctree-wrapper > ul ul {
    font-weight: 300;
    font-size: 90%;
    margin-bottom: 0.8em;
    margin-top: 0.5em;
}

.contents ul ul a, .toctree-wrapper ul ul a {
    font-weight: 300;
}

.toctree-wrapper:has(ul):not(:has(.caption))::before {
    content: "Topics in this section";
    display: block;
}

div.highlight {
    padding: 0.5em 1em;
}

.highlight {
    background: rgba(0, 0, 0, 0.02);
}


/*-------------------------------------------------------------
	brand
-------------------------------------------------------------*/
.brand {
    display: block;
    position: relative;
    padding: 0.6rem;
}

.brand .version {
    line-height: normal;
    color: #fff;
    font-size: 1rem;
    display: inline-block;
    background-color: rgba(255, 255, 255, .2);
    padding: 0.2em 0.5em;
    margin-left: 0.3em;
    vertical-align: middle;
}



/*
 * basic.css
 * ~~~~~~~~~
 *
 * Sphinx stylesheet -- basic theme.
 *
 * :copyright: Copyright 2007-2017 by the Sphinx team, see AUTHORS.
 * :license: BSD, see LICENSE for details.
 *
 */

/* -- main layout ----------------------------------------------------------- */

div.clearer {
    clear: both;
}

/* -- relbar ---------------------------------------------------------------- */

div.related {
    width: 100%;
    font-size: 90%;
}

div.related h3 {
    display: none;
}

div.related ul {
    margin: 0;
    padding: 0 0 0 10px;
    list-style: none;
}

div.related li {
    display: inline;
}

div.related li.right {
    float: right;
    margin-right: 5px;
}

/* -- sidebar --------------------------------------------------------------- */

div.sphinxsidebarwrapper {
    padding: 10px 5px 0 10px;
}

div.sphinxsidebar {
    float: left;
    width: 230px;
    margin-left: -100%;
    font-size: 90%;
    word-wrap: break-word;
    overflow-wrap : break-word;
}

div.sphinxsidebar ul {
    list-style: none;
}

div.sphinxsidebar ul ul,
div.sphinxsidebar ul.want-points {
    margin-left: 20px;
    list-style: square;
}

div.sphinxsidebar ul ul {
    margin-top: 0;
    margin-bottom: 0;
}

div.sphinxsidebar form {
    margin-top: 10px;
}

div.sphinxsidebar input {
    border: 1px solid #98dbcc;
    font-family: sans-serif;
    font-size: 1em;
}

div.sphinxsidebar #searchbox input[type="text"] {
    width: 170px;
}

img {
    border: 0;
    max-width: 100%;
}

/* -- search page ----------------------------------------------------------- */

ul.search {
    margin: 10px 0 0 20px;
    padding: 0;
}

ul.search li {
    padding: 5px 0 5px 20px;
    background-image: url(file.png);
    background-repeat: no-repeat;
    background-position: 0 7px;
}

ul.search li a {
    font-weight: bold;
}

ul.search li div.context {
    color: #888;
    margin: 2px 0 0 30px;
    text-align: left;
    font-size: 90%;
    white-space: pre-line;
    line-height: 1.4em;
}

ul.keywordmatches li.goodmatch a {
    font-weight: bold;
}

/* -- index page ------------------------------------------------------------ */

table.contentstable {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
}

table.contentstable p.biglink {
    line-height: 150%;
}

a.biglink {
    font-size: 1.3em;
}

span.linkdescr {
    font-style: italic;
    padding-top: 5px;
    font-size: 90%;
}

/* -- general index --------------------------------------------------------- */

table.indextable {
    width: 100%;
}

table.indextable td {
    text-align: left;
    vertical-align: top;
}

table.indextable ul {
    margin-top: 0;
    margin-bottom: 0;
    list-style-type: none;
}

table.indextable > tbody > tr > td > ul {
    padding-left: 0em;
}

table.indextable tr.pcap {
    height: 10px;
}

table.indextable tr.cap {
    margin-top: 10px;
    background-color: #f2f2f2;
}

img.toggler {
    margin-right: 3px;
    margin-top: 3px;
    cursor: pointer;
}

div.modindex-jumpbox {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin: 1em 0 1em 0;
    padding: 0.4em;
}

div.genindex-jumpbox {
    border-top: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
    margin: 1em 0 1em 0;
    padding: 0.4em;
}

/* -- domain module index --------------------------------------------------- */

table.modindextable td {
    padding: 2px;
    border-collapse: collapse;
}

/* -- general body styles --------------------------------------------------- */

div.body p, div.body dd, div.body li, div.body blockquote {
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

a.headerlink {
    visibility: hidden;
}

h1:hover > a.headerlink,
h2:hover > a.headerlink,
h3:hover > a.headerlink,
h4:hover > a.headerlink,
h5:hover > a.headerlink,
h6:hover > a.headerlink,
dt:hover > a.headerlink,
caption:hover > a.headerlink,
p.caption:hover > a.headerlink,
div.code-block-caption:hover > a.headerlink {
    visibility: visible;
}

div.body p.caption {
    text-align: inherit;
}

div.body td {
    text-align: left;
}

.first {
    margin-top: 0 !important;
}

img.align-left, .figure.align-left, object.align-left {
    clear: left;
    float: left;
    margin-right: 1em;
    margin-bottom: 1rem;
}

img.align-right, .figure.align-right, object.align-right {
    clear: right;
    float: right;
    margin-left: 1em;
    margin-bottom: 1rem;
}

img.align-center, .figure.align-center, object.align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem;
}

.align-left {
    text-align: left;
}

.align-center {
    text-align: center;
}

.align-right {
    text-align: right;
}

/* -- sidebars -------------------------------------------------------------- */
@media (min-width: 992px) {
    div.sidebar,
    div.topic {
        margin: 0 0 0.5em 1em;
        width: 40%;
        float: right;
        clear: right;
    }
}

div.sidebar:not(.alert) {
    background-color: var(--color-help-light);
    border: 1px solid rgba(0,0,0,.125);
    padding: 1em;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

p.sidebar-title {
    font-weight: 400;
    font-size: 1.4em;
}

/* -- topics ---------------------------------------------------------------- */

div.topic {
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0,0,0,.125);
    margin-bottom: 1em;
    padding: 1em;
    position: relative;
    z-index: 1;
    background-color: #fff;
}

p.topic-title, .toctree-wrapper .caption, .toctree-wrapper::before {
    font-size: 1.4em;
    font-weight: 400;
    margin-bottom: 0.5rem;
}
p.topic-title cite {
    font-style: normal;
}

/* -- admonitions ----------------------------------------------------------- */
div.admonition dt {
    font-weight: 500;
}

div.admonition dl {
    margin-bottom: 0;
}

p.admonition-title {
    margin: 0px 10px 5px 0px;
    font-weight: 500;
}

div.body p.centered {
    text-align: center;
    margin-top: 25px;
}

/* -- tables ---------------------------------------------------------------- */

table.docutils {
    border: 0;
    border-collapse: collapse;
}

table caption span.caption-number {
    font-style: italic;
}

table caption span.caption-text {
}

table.docutils td, table.docutils th {
    padding: 1px 8px 1px 5px;
    border-top: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 1px solid #aaa;
}

table.footnote td, table.footnote th {
    border: 0 !important;
}

th {
    text-align: left;
    padding-right: 5px;
}

th p:last-child, td p:last-child {
    margin-bottom: 0;
}

table.citation {
    border-left: solid 1px gray;
    margin-left: 1px;
}

table.citation td {
    border-bottom: none;
}

/* -- figures --------------------------------------------------------------- */

div.figure {
    margin: 0.5em;
    padding: 0.5em;
}

div.figure p.caption {
    padding: 0.3em;
    margin-bottom: 0;
}

div.figure p.caption span.caption-number {
    font-style: italic;
}

div.figure p.caption span.caption-text {
}

/* -- field list styles ----------------------------------------------------- */

table.field-list td, table.field-list th {
    border: 0 !important;
}

.field-list ul {
    margin: 0;
    padding-left: 1em;
}

.field-list p {
    margin: 0;
}

.field-name {
    -moz-hyphens: manual;
    -ms-hyphens: manual;
    -webkit-hyphens: manual;
    hyphens: manual;
}

/* -- other body styles ----------------------------------------------------- */

ol.arabic {
    list-style: decimal;
}

ol.loweralpha {
    list-style: lower-alpha;
}

ol.upperalpha {
    list-style: upper-alpha;
}

ol.lowerroman {
    list-style: lower-roman;
}

ol.upperroman {
    list-style: upper-roman;
}

dl {
    margin-bottom: 15px;
}

dd p {
    margin-top: 0px;
}

dd ul, dd table {
    margin-bottom: 10px;
}

dd {
    margin-top: 3px;
    margin-bottom: 10px;
    margin-left: 30px;
}

dt:target, .highlighted {
    background-color: #fbe54e;
}

dl.glossary dt {
    font-weight: bold;
    font-size: 1.1em;
}

.optional {
    font-size: 1.3em;
}

.sig-paren {
    font-size: larger;
}

.versionmodified {
    font-style: italic;
}

.system-message {
    background-color: #fda;
    padding: 5px;
    border: 3px solid red;
}

.footnote:target  {
    background-color: #ffa;
}

.line-block {
    display: block;
    margin-top: 1em;
    margin-bottom: 1em;
}

.line-block .line-block {
    margin-top: 0;
    margin-bottom: 0;
    margin-left: 1.5em;
}

.guilabel, .menuselection {
    font-weight: bolder;
    letter-spacing: 1pt;
}

.accelerator {
    text-decoration: underline;
}

.classifier {
    font-style: oblique;
}

abbr, acronym {
    border-bottom: dotted 1px;
    cursor: help;
}

/* -- code displays --------------------------------------------------------- */

pre {
    overflow: auto;
    overflow-y: hidden;  /* fixes display issues on Chrome browsers */
}

span.pre {
    -moz-hyphens: none;
    -ms-hyphens: none;
    -webkit-hyphens: none;
    hyphens: none;
}

td.linenos pre {
    padding: 5px 0px;
    border: 0;
    background-color: transparent;
    color: #aaa;
}

table.highlighttable {
    margin-left: 0.5em;
}

table.highlighttable td {
    padding: 0 0.5em 0 0.5em;
}

div.code-block-caption {
    padding: 2px 5px;
    font-size: small;
}

div.code-block-caption code {
    background-color: transparent;
}

div.code-block-caption + div > div.highlight > pre {
    margin-top: 0;
}

div.code-block-caption span.caption-number {
    padding: 0.1em 0.3em;
    font-style: italic;
}

div.code-block-caption span.caption-text {
}

div.literal-block-wrapper {
    padding: 1em 1em 0;
}

div.literal-block-wrapper div.highlight {
    margin: 0;
}

code {
    background-color: rgba(0, 0, 0, 0.05);
}

code.descname {
    background-color: transparent;
    font-weight: bold;
    font-size: 1.2em;
}

code.descclassname {
    background-color: transparent;
}

code.xref, a code {
    background-color: transparent;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
}

code.file {
    background-color: transparent;
    padding: 0 0.2rem;
}

h1 code, h2 code, h3 code, h4 code, h5 code, h6 code {
    background-color: transparent;
}

.viewcode-link {
    float: right;
}

.viewcode-back {
    float: right;
    font-family: sans-serif;
}

div.viewcode-block:target {
    margin: -1px -10px;
    padding: 0 10px;
}

/* -- math display ---------------------------------------------------------- */

img.math {
    vertical-align: middle;
}

div.body div.math p {
    text-align: center;
}

span.eqno {
    float: right;
}

span.eqno a.headerlink {
    position: relative;
    left: 0px;
    z-index: 1;
}

div.math:hover a.headerlink {
    visibility: visible;
}

/* -- printout stylesheet --------------------------------------------------- */

@media print {
    div.document,
    div.documentwrapper,
    div.bodywrapper {
        margin: 0 !important;
        width: 100%;
    }

    div.sphinxsidebar,
    div.related,
    div.footer,
    #top-link {
        display: none;
    }
}

/* -- image scaling on small screens ------------------------------------------ */

img {
    object-fit: scale-down;
}

.tocgroup {
    margin-top: 0.5em;
    margin-left: 1em;
    font-weight: 500;
}

.sidebar-menu .caption {
    margin-top: 0;
    margin-left: 1em;
    margin-bottom: 0;
    font-weight: 500;
}

footer .btn-link {
    text-decoration: none !important;
}

.text-facebook {
    color: #3C5B98 !important;
}

.text-linkedin {
    color: #077CB6 !important;
}

.text-twitter {
    color: #22A3F3 !important;
}

.text-google {
    color: #DC4E41 !important;
}

.text-youtube {
    color: #cd201f !important;
}

@media (max-width: 600px) {
    h1, .h1 { font-size: 2rem }
    h2, .h2 { font-size: 1.8rem }
    h3, .h3 { font-size: 1.6rem }
    h4, .h4 { font-size: 1.4rem }
    h5, .h5 { font-size: 1.2rem }
}

.latest {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: -32px auto 0;
    padding: 12px 12px 12px 30px;
    background-color: palegoldenrod;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 0 12px 0 #a0a0a0;
    .icon-close {
        color: #6C6B6C;
    }
}

.with-latest {
    margin-top: 30px;
}

.dropdown {
    display: inline-block;
    position: relative;
    outline: none;
}

.dropbtn {
    cursor: pointer;
    transition: 0.35s ease-out;
    display: flex;
    align-items: center;
    gap: 0.25em;
}

.dropdown .dropdown-content {
    position: absolute;
    top: 50%;
    background-color: var(--secondary-color-dark);
    min-width: 200px;
    z-index: 1000;
    visibility: hidden;
    opacity: 0;
    transition: 0.35s ease-out;
}

.dropdown-content a {
    color: white;
    padding: 0.75em 1em;
    display: block;
    text-decoration: none !important;
    transition: 0.35s ease-out;
}

.dropdown-content a:hover {
    background-color: var(--secondary-color-light);
}

.dropdown:focus .dropdown-content {
    outline: none;
    transform: translateY(20px);
    visibility: visible;
    opacity: 1;
}

.dropbtn:hover .icon-caret-right {
    transform: scale(1.2);
    /* firefox is weird here */
    -moz-transform-origin: bottom center;
}

.dropdown:focus .dropbtn .icon-caret-right {
    transform: rotate(90deg);
}

/* mask to close menu by clicking on the button */
.dropdown .db2 {
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0; opacity: 0;
    cursor: pointer;
    z-index: 10;
    display: none;
}

.dropdown:focus .db2 {
    display: inline-block;
}

.dropdown .db2:focus .dropdown-content {
    outline: none;
    visibility: hidden;
    opacity: 0;
}

/* remove ligatures from code and code-blocks, and code and code-blocks only */
pre, code {
    font-variant-ligatures: none;
}

/*------------ SEARCH --------------------------------------*/
/* Hide #searchbar on larger screens */
@media (min-width: 768px) {
    #searchbar {
        display: none;
    }
}

/* Hide <search-component> on smaller screens */
@media (max-width: 767px) {
    search-component {
        display: none;
    }
}

/* 2025-01-24 table captions were left-justified and looked like regular text */
caption {
    text-align: center;
    font-style: italic;
}
