/* Custom styles for HybridInference documentation */

/* Increase max-width of content area - remove RTD theme's width restriction */
.wy-nav-content {
    max-width: none !important;
}

/* Give more breathing room to content */
.rst-content {
    max-width: 1400px !important;
    margin: 0 auto;
}

/* Make all code elements in tables display on single line */
table.docutils td code {
    white-space: nowrap !important;
}

/* Ensure first column (Model ID) doesn't wrap */
table.docutils tbody tr td:first-child {
    white-space: nowrap !important;
}

/* Optimize table column widths - give more space to Model ID column */
table.docutils colgroup col:first-child {
    width: 25% !important;
}

/* Better table layout */
table.docutils {
    width: 100%;
    table-layout: auto;
}

/* Better spacing for table cells */
table.docutils td,
table.docutils th {
    padding: 10px 12px;
    vertical-align: top;
}

/* Better readability for tables */
table.docutils thead {
    background-color: #e7f2fa;
}

table.docutils tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

table.docutils tbody tr:hover {
    background-color: #f0f8ff;
}

/* Code blocks styling */
.highlight pre {
    border-radius: 4px;
    padding: 12px;
}

/* Better spacing for lists */
.rst-content ul li, .rst-content ol li {
    margin-bottom: 8px;
}

/* Language switcher (rendered only on a multi-language build; see
   _templates/layout.html). Sits under the project title in the sidebar. */
.wy-side-nav-search .doc-language-switcher {
    margin-top: 0.6em;
    font-size: 85%;
}

.wy-side-nav-search .doc-language-switcher a,
.wy-side-nav-search .doc-language-switcher .current {
    color: #fcfcfc;
    padding: 0 0.4em;
}

.wy-side-nav-search .doc-language-switcher a {
    text-decoration: underline;
    opacity: 0.85;
}

.wy-side-nav-search .doc-language-switcher a:hover {
    opacity: 1;
}

.wy-side-nav-search .doc-language-switcher .current {
    font-weight: bold;
}

.wy-side-nav-search .doc-language-switcher a + a::before,
.wy-side-nav-search .doc-language-switcher .current + a::before,
.wy-side-nav-search .doc-language-switcher a + .current::before {
    content: "\00b7";
    opacity: 0.5;
}
