/* ============================================================================
   MINEDW Documentation - Custom Styles
   ============================================================================ */

/* ========================================
   EQUATION STYLING
   ======================================== */

/* Math container styling - will be overridden by JS but kept as fallback */
div.math {
    position: relative !important;
    display: block !important;
    margin: 1.5em 0 !important;
    overflow-x: auto !important;
}

/* Equation number styling - will be repositioned by JS */
div.math span.eqno {
    white-space: nowrap !important;
    font-weight: normal !important;
}

/* Hide equation labels and permalinks */
span[id^="equation-"],
span[id^="eq-"],
div.math .headerlink,
span.eqno .headerlink {
    display: none !important;
}

/* ========================================
   SEARCH BOX STYLING
   ======================================== */

/* Position maintop bar - matching itasca-suite */
#maintop {
    position: relative !important;
    background-color: #e6ebe9 !important;
    padding: 1em !important;
    min-height: 40px !important;
    text-align: right !important;
}

/* Search box positioning - force it to stay right */
#maintop #searchbox {
    position: absolute !important;
    right: 1em !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    display: inline-block !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Search input field */
input#sb {
    width: 200px !important;
    padding: 5px 10px !important;
    border: 1px solid #ddd !important;
    background-color: #f8f8f8 !important;
    border-radius: 3px !important;
    font-size: 13px !important;
    font-family: "Lato", sans-serif !important;
    transition: all 0.2s ease !important;
}

input#sb:focus {
    outline: none !important;
    border-color: #4a9eff !important;
    background-color: white !important;
    width: 250px !important;
}

/* ========================================
   NAVIGATION SIDEBAR
   ======================================== */

/* Navigation content container */
#nav-content {
    padding-top: 0 !important;
}

/* Navigation captions styling */
#nav-content > p.caption {
    padding: 10px 10px 8px 10px !important;
    margin: 0 0 5px 0 !important;
    font-weight: 600 !important;
    color: rgba(157, 163, 168, 0.9) !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border-top: 1px solid rgba(157, 163, 168, 0.1) !important;
    display: block !important;
    clear: both !important;
}

/* First caption in nav now starts at top */
#nav-content > p.caption:first-child {
    margin-top: 15px !important;
}



/* Navigation lists */
#nav-content > ul {
    padding: 0 10px !important;
    margin: 0 0 15px 0 !important;
}

/* ========================================
   SPHINX SEARCH HIGHLIGHTING
   ======================================== */

/* Hide "Hide Search Matches" link */
.highlight-link,
p.highlight-link,
#searchbox .highlight-link,
a[href*="hideSearchWords"] {
    display: none !important;
}

/* Keep highlighted search terms visible */
.highlighted {
    background-color: #ffff00;
    padding: 0;
}

/* ========================================
   ADMONITIONS (Notes, Warnings, etc.)
   ======================================== */

body div.admonition {
    margin: 1.5em 0.25em 1.5em 0 !important;
    background-color: #f8f9fa !important;
    font-size: 0.9em !important;
    border: 1px solid #dee2e6 !important;
    border-left: 4px solid #0066cc !important;
    display: block !important;
    width: auto !important;
    padding: 0 !important;
    border-radius: 0.25rem !important;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075) !important;
}

body div.admonition p.admonition-title {
    margin: 0 !important;
    padding: 0.75rem 1rem !important;
    background-color: #0066cc !important;
    color: white !important;
    font-weight: bold !important;
    font-size: 1em !important;
    border-bottom: 1px solid #0056b3 !important;
}

body div.admonition p {
    margin: 1rem !important;
    padding: 0 !important;
}

body div.admonition p:last-child {
    margin-bottom: 1rem !important;
}

/* Warning admonition special styling */
div.warning p.admonition-title {
    color: #88ddff !important;
    font-weight: bold !important;
}

/* ========================================
   RESPONSIVE MEDIA
   ======================================== */

/* Responsive images */
.rst-content img {
    max-width: 100%;
    height: auto;
}

/* Responsive iframes/videos */
.rst-content iframe {
    max-width: 100%;
}

@media screen and (max-width: 768px) {
    .rst-content iframe {
        width: 100%;
        height: 250px;
    }
}

/* ========================================
   CONTENT WIDTH
   ======================================== */

.wy-nav-content {
    max-width: 1200px;
}