/* Set background color for main content area */
.wy-nav-content {
    background-color: #ffffff !important;
    padding: 20px;
    min-height: 100vh;
}

/* Link colors */
.wy-nav-content a,
.wy-nav-content p a,
.wy-nav-content h1 a,
.wy-nav-content h2 a,
.wy-nav-content h3 a,
.wy-nav-content h4 a,
.wy-nav-content h5 a,
.wy-nav-content h6 a {
    color: #e84328 !important;
}

/* Code block background and borders */
.highlight {
    background-color: #f0f0f0 !important;
}

.highlight pre {
    background-color: #f0f0f0 !important;
}

/* Function signature styling */
.sig {
    background-color: #f0f0f0 !important;
    border-bottom: 1px solid #e84328 !important;
    border-top: 2px solid #e84328 !important;
}

/* Function name and parameter text */
.sig-name,
.sig-param {
    color: #000000 !important;
}

/* Description boxes and field lists */
.field-list {
    background-color: #f0f0f0 !important;
}

.field-list .field {
    border: none !important;
    background-color: #f0f0f0 !important;
}

/* Code highlighting styles (light mode) */
.highlight .c {
    color: #6E6E6E !important;
}

.highlight .err {
    border: 1px solid #FF0000 !important;
}

.highlight .o { color: #666666 }
.highlight .m { color: #666666 }
.highlight .s { color: #BA2121 }
.highlight .p { color: #888888 }

/* Header link icon using custom logo */
a.headerlink {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-repeat: no-repeat;
    background-position: center;
    text-indent: -9999px;
    overflow: hidden;
    background-image: url('Isologo_Kaxanuk.png');
    background-size: contain;
}

/* Override headerlink icon for dark mode */
[data-theme="dark"] a.headerlink {
    background-image: url('Isologo_Kaxanuk_dark.png');
}

/* Dark mode customizations for content boxes */
[data-theme="dark"] .highlight,
[data-theme="dark"] .highlight pre,
[data-theme="dark"] .sig,
[data-theme="dark"] .field-list,
[data-theme="dark"] .field-list .field {
    background-color: #2a2a2a !important;
    color: #f0f0f0 !important;
}

/* Function signature text in dark mode */
[data-theme="dark"] .sig-name,
[data-theme="dark"] .sig-param {
    color: #ffffff !important;
}

/* Code coloring adjustments for dark mode */
[data-theme="dark"] .highlight .c {
    color: #999999 !important;
}

[data-theme="dark"] .highlight .o,
[data-theme="dark"] .highlight .m,
[data-theme="dark"] .highlight .s,
[data-theme="dark"] .highlight .p {
    color: #d0d0d0 !important;
}

[data-theme="dark"] .highlight .err {
    border: 1px solid #ff4d4d !important;
}
