.cInlineImage-small {
    display: inline-block;
    text-align: center;
    height: 45% !important;
    width: 30% !important;
    border: 1px solid gray;
}

.cInlineImage-full {
    display: inline-block;
    text-align: center;
    height: 75% !important;
    width: 90% !important;
    border: 1px solid gray;
}

.cInlineImage-threeQuarter {
    display: inline-block;
    text-align: center;
    width: 65%;
    border: 1px solid gray;
}

.cInlineImage-half {
    display: inline-block;
    text-align: center;
    width: 50% !important;
    border: 1px solid gray;
}

.cInlineImage-bordered {
    display: inline-block;
    text-align: center;
    border: 1px solid gray;
}

/* Simple table styling */
.md-typeset th,
.md-typeset td {
    border: none;
    border-bottom: 1px solid var(--md-typeset-table-color);
}

.md-typeset__table {
    line-height: 1.5;
}

.md-typeset table:not([class]) {
    font-size: .74rem;
    border-collapse: collapse;
    width: 100%;
}

.md-typeset table:not([class]) th {
    padding: 0.6rem 0.8rem;
    vertical-align: top;
    background-color: var(--md-code-bg-color);
    font-weight: 600;
}

.md-typeset table:not([class]) td {
    padding: 0.6rem 0.8rem;
    vertical-align: top;
}

/* light mode alternating table row colors */
.md-typeset table:not([class]) tbody tr:nth-child(2n) {
    background-color: #f8f8f8;
}

/* dark mode: no alternating rows — contrast is too harsh */
[data-md-color-scheme="slate"] .md-typeset table:not([class]) tbody tr:nth-child(2n) {
    background-color: unset;
}

/* row hover — must come after alternating rule to override it */
.md-typeset table:not([class]) tbody tr:hover {
    background-color: #ebebeb;
}

[data-md-color-scheme="slate"] .md-typeset table:not([class]) tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.07);
}


hr.rounded {
    border-top: 1px #bbb;
    border-radius: 1px;
}

.custom-admonition {
    background-color: var(--md-code-bg-color);
    border-left: 4px solid #ccc;
    padding: 12px;
    margin: 12px 0;
}

.custom-table-header {
    background-color: var(--md-code-bg-color);
    font-weight: bold;
}

/* Inline icons used within sentence text */
.md-typeset .inline-icon {
    height: 1.5em;
    width: auto;
    vertical-align: middle;
    display: inline-block;
    border: none;
    margin: 0 0.2em;
}

/* Apply white background to images in dark mode ONLY in content area for better visibility of transparent diagrams */
/* Refined to avoid affecting logos or icons (e.g., enterprise support) that might be in the content */
[data-md-color-scheme="slate"] .md-content img:not([alt*="Logo" i]):not([alt*="icon" i]):not([alt*="Support" i]):not(.inline-icon) {
    background-color: #ffffff !important;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 4px;
}

/* Center the work in progress banner */
.md-announce, .md-banner {
    text-align: center !important;
}

.md-announce__inner, .md-banner__inner {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

/* Ensure banner text is black in light mode */
[data-md-color-scheme="default"] .md-announce,
[data-md-color-scheme="default"] .md-banner {
    color: #000 !important;
}