/* Custom stylesheet for Kandou's documentation */

/* Overide main theme colour*/
:root {
    --colour-sphinx-blue: #174080;
}

/* Override header color */
.pageheader {
    background-color: white;
}

/* Force white background to document body */
body {
    background-color: white;
}

/* Override search bar color */
div.sphinxsidebar input {
    border: 1px solid var(--colour-sphinx-blue);
}

/* Override footer padding */
div.footer {
    padding: 5px 8px 3px 8px;
}

/* Override code (pre) background color */
span.pre {
    background-color: #f8f8f8;
}

/* Table styling */

table.align-default {
    margin-left: 0;
    margin-right: 0;
}

table.docutils, table.docutils td, table.docutils th {
    border: 1px solid;
    padding: 10px 8px 10px 8px;
    font-size: 13px;
}

table.docutils th {
    background-color: #f2f2f2;
    padding-top: 13px;
}

table > caption {
    text-align: left;
    padding-bottom: 15px;
    padding-top: 10px;
    width: max-content;
}

/* Figure styling */

figcaption {
    text-align: left;
    font-size: 13px;
}

figure.align-default {
    margin-left: 0;
    margin-right: 0;
    text-align: left;
}

/* Tablenote styling */

span.tablenote {
    font-style: italic;
    font-size: smaller;
}

/* Shared styles for all version-related directives */
.versionadded,
.versionchanged,
.versionremoved {
    padding: 10px;
    padding-top: 6px;
    margin: 10px 0;
    border-left: 5px solid;
    border-radius: 4px;
}

.versionadded p.first,
.versionchanged p.first,
.versionremoved p.first {
    margin-top: 0;
    font-weight: bold;
}

.versionadded p.last,
.versionchanged p.last,
.versionremoved p.last {
    margin-bottom: 0;
}

/* Specific styles for versionadded */
.versionadded {
    background-color: #e6f3e6;
    border-left-color: #4caf50;
}

/* Specific styles for versionchanged */
.versionchanged {
    background-color: #fff3e0;
    border-left-color: #ff9800;
}

/* Specific styles for versionremoved */
.versionremoved {
    background-color: #ffebee;
    border-left-color: #f44336;
}

/* Specific styles for versionmodified */
.versionmodified {
    font-style: normal;
    font-weight: 500;
}

/* Force line break after span.added */
span.versionmodified::after {
    content: "\A";
    white-space: pre;
}

/* Improve sidebar formatting */
.toctree-l1 {
    padding-bottom: 10px;
}

.toctree-l2, .toctree-l3, .toctree-l4 {
    padding-bottom: 1px;
}

/* Product brief blurb styling */

span.pb-blurb {
    font-style: italic;
    font-size: x-large;
}

body {
    font-family: 'Roboto', sans-serif;
    font-optical-sizing: auto;
    line-height: initial;  /* Increases line height for better readability */
    letter-spacing: 0.125px;  /* Slightly increased letter spacing */
}

small {
    font-size: 0.875rem;  /* Smaller text for footnotes */
}

pre {
    font-family: "Roboto Mono", serif;
    font-size: smaller;  /* Set a larger base font size */
    line-height: initial;  /* Increases line height for better readability */
}

#print-show {
    display: none;
}