/* Caltech HPC docs — theme overrides for sphinx_rtd_theme
 * Author: johnbot (2026-04)
 *
 * Goals:
 *   1. Make the Caltech logo visible on the orange sidebar header
 *      (the white-variant logo is set in conf.py; this file just enforces
 *      full opacity so RTD's hover-fade doesn't hide it).
 *   2. Replace RTD's default green/teal accents (#27ae60, #1abc9c) with
 *      the Caltech orange palette so the docs section harmonizes with
 *      the landing page and the orange header.
 *
 * Caltech palette used here:
 *   --caltech-orange:       #FF6C0C   primary brand
 *   --caltech-orange-dark:  #cc5500   hover/active states
 *   --caltech-orange-tint:  #fff4ec   pale background for tip/hint admonitions
 *   --caltech-orange-edge:  #f4b07a   border accent on tip/hint admonitions
 *
 * Info/note admonitions stay blue intentionally — a cool/warm split is
 * more readable than orange-on-orange.
 */

:root {
    --caltech-orange: #FF6C0C;
    --caltech-orange-dark: #cc5500;
    --caltech-orange-tint: #fff4ec;
    --caltech-orange-edge: #f4b07a;
}

/* -- Sidebar logo: always fully visible, never hover-faded ---------------- */
.wy-side-nav-search > a img.logo,
.wy-side-nav-search .wy-dropdown > a img.logo {
    opacity: 1 !important;
    background: transparent !important;
}
.wy-side-nav-search > a:hover img.logo,
.wy-side-nav-search .wy-dropdown > a:hover img.logo {
    opacity: 1 !important;
}

/* -- Tip / Hint / Important admonitions: green -> Caltech orange ---------- */
.rst-content .hint,
.rst-content .important,
.rst-content .tip,
.rst-content .wy-alert-success.admonition,
.rst-content .wy-alert-success.admonition-todo,
.rst-content .wy-alert-success.attention,
.rst-content .wy-alert-success.caution,
.rst-content .wy-alert-success.danger,
.rst-content .wy-alert-success.error,
.rst-content .wy-alert-success.note,
.rst-content .wy-alert-success.seealso,
.rst-content .wy-alert-success.warning,
.wy-alert.wy-alert-success {
    background: var(--caltech-orange-tint);
    border-left: 4px solid var(--caltech-orange);
}

.rst-content .hint .admonition-title,
.rst-content .hint .wy-alert-title,
.rst-content .important .admonition-title,
.rst-content .important .wy-alert-title,
.rst-content .tip .admonition-title,
.rst-content .tip .wy-alert-title,
.rst-content .wy-alert-success.admonition-todo .admonition-title,
.rst-content .wy-alert-success.admonition-todo .wy-alert-title,
.rst-content .wy-alert-success.admonition .admonition-title,
.rst-content .wy-alert-success.admonition .wy-alert-title,
.rst-content .wy-alert-success.attention .admonition-title,
.rst-content .wy-alert-success.attention .wy-alert-title,
.rst-content .wy-alert-success.caution .admonition-title,
.rst-content .wy-alert-success.caution .wy-alert-title,
.rst-content .wy-alert-success.danger .admonition-title,
.rst-content .wy-alert-success.danger .wy-alert-title,
.rst-content .wy-alert-success.error .admonition-title,
.rst-content .wy-alert-success.error .wy-alert-title,
.rst-content .wy-alert-success.note .admonition-title,
.rst-content .wy-alert-success.note .wy-alert-title,
.rst-content .wy-alert-success.seealso .admonition-title,
.rst-content .wy-alert-success.seealso .wy-alert-title,
.rst-content .wy-alert-success.warning .admonition-title,
.rst-content .wy-alert-success.warning .wy-alert-title,
.rst-content .wy-alert.wy-alert-success .admonition-title,
.wy-alert.wy-alert-success .rst-content .admonition-title,
.wy-alert.wy-alert-success .wy-alert-title {
    background: var(--caltech-orange);
    color: #fff;
}

/* -- Buttons: green -> Caltech orange ------------------------------------- *
 * Only retone the "success"-style call-to-action buttons. Navigation
 * buttons (.btn-neutral, used for Previous/Next at the bottom of every
 * docs page) stay neutral so they don't compete with content for attention.
 */
.btn-success {
    background-color: var(--caltech-orange) !important;
    border-color: var(--caltech-orange-dark);
}
.btn-success:hover {
    background-color: var(--caltech-orange-dark) !important;
}

/* Previous / Next nav buttons: quiet gray, readable, unbranded */
.btn-neutral {
    background-color: #f3f6f6 !important;
    color: #404040 !important;
    border: 1px solid #e1e4e5;
}
.btn-neutral:hover {
    background-color: #e1e4e5 !important;
}
.btn-neutral .fa,
.btn-neutral .icon {
    color: #404040 !important;
}

/* -- Misc green theme leftovers ------------------------------------------- */
.rst-content .viewcode-link {
    color: var(--caltech-orange);
}
.wy-text-success {
    color: var(--caltech-orange) !important;
}
.wy-switch.active:after {
    background: var(--caltech-orange);
}
.wy-tray-container li.wy-tray-item-success {
    background: var(--caltech-orange);
}

/* -- Subtle Caltech-orange accent under the page H1 ----------------------- */
.rst-content h1 {
    border-bottom: 3px solid var(--caltech-orange);
    padding-bottom: 0.3em;
}

/* -- Status pills (used in system-status.md current-status table) --------- */
.rst-content .status-pill {
    display: inline-block;
    padding: 0.15em 0.7em;
    border-radius: 999px;
    font-size: 0.85em;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
}
.rst-content .status-ok {
    background: #d4edda;
    color: #155724;
}
.rst-content .status-warn {
    background: #fff3cd;
    color: #856404;
}
.rst-content .status-down {
    background: #f8d7da;
    color: #721c24;
}
