/* MCU+ SDK Sphinx Documentation - Custom CSS */

/* Color overrides - matches TI processor-sdk-doc theme */
.wy-nav-top {
    background-color: #CC0000; /* TI red */
}
.wy-side-nav-search {
    background-color: #FCFCFC; /* Theme White */
}
.wy-side-nav-search > .icon {
    color: #404040 !important; /* Theme Title Text */
}
.wy-side-nav-search > .version {
    color: #404040 !important; /* Theme Title Text */
}

/* Widen the content area for RTD theme */
.wy-nav-content {
    max-width: 1200px;
}

/* Table: base layout */
table,
table.docutils {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

/* Table: cell styling — override RTD white-space:nowrap and allow wrapping */
table thead,
table.docutils thead {
    white-space: normal;           /* override RTD theme white-space:nowrap on thead */
}

table th,
table td,
table.docutils th,
table.docutils td {
    padding: 8px 12px;
    border: 1px solid #c8cfd5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;           /* prevent horizontal scrollbar on wide tables */
}

/* Table: header cells — distinct color, centered, white text */
table th,
table.docutils th {
    background-color: #2c3e50;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
    border-color: #1a252f;
}

/* Code block improvements */
div.highlight pre {
    font-size: 0.85em;
    line-height: 1.5;
}

/* Note/warning admonition styling */
div.admonition {
    margin: 1em 0;
}

/* Image sizing — constrain content images to 75% width, centered, matching old API guide */
.rst-content .section img,
.rst-content section img {
    max-width: 75%;
    height: auto;
    display: block;
    margin: 0.5em auto;
}

/* Prevent overflow on any img outside content sections */
img {
    max-width: 100%;
    height: auto;
}

/* Compact simple lists — remove the 24px bottom margin the RTD theme puts on every ul,
   so adjacent ul.simple blocks from {only} conditionals render as one continuous list */
.rst-content .section ul.simple,
.rst-content section ul.simple,
.rst-content .toctree-wrapper ul.simple {
    margin-bottom: 0;
    margin-top: 0;
}
