/*
 * CC_Learning.css
 * OnRes Command Center — Phase 03 Tooltip / Learn More / Sidebar styles.
 * Additive only. The learning sidebar reuses the existing `.rsidenav` shell
 * (Site.css) for slide-in positioning and theme; rules here cover the
 * learning-specific affordances and panel content.
 */


/* Phase 10A — persistent global HELP entry (top header) -------------------- */
.cc-global-help-link {
    color: #eee;
    font-weight: 700;
    font-size: 0.85em;
    letter-spacing: 0.03em;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    padding: 4px 8px;
}
.cc-global-help-link:hover,
.cc-global-help-link:focus {
    color: #fff;
    border-color: #fff;
    text-decoration: none;
}

/* Layer 1/2 — inline affordances placed beside a concept ------------------ */
.cc-learn-icon {
    color: #5b9bd5;
    cursor: pointer;
    font-size: 0.85em;
    margin-left: 4px;
    vertical-align: middle;
    outline: none;
}
.cc-learn-icon:hover,
.cc-learn-icon:focus {
    color: #2f6fb0;
}
.cc-learn-icon:focus {
    box-shadow: 0 0 0 2px rgba(91, 155, 213, 0.5);
    border-radius: 50%;
}

.cc-learn-more {
    display: inline-block;
    margin-left: 6px;
    font-size: 0.8em;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
}
.cc-learn-more:hover,
.cc-learn-more:focus {
    text-decoration: underline;
}

/* Layer 3 — reusable learning sidebar ------------------------------------- */
#rsidenav-learning {
    width: 420px;
    max-width: 92vw;
}
#rsidenav-learning .cc-learn-title {
    font-weight: 600;
    font-size: 1.05em;
}
#rsidenav-learning .cc-learn-body {
    padding: 16px 18px;
    overflow-y: auto;
    height: calc(100% - 70px);
    line-height: 1.5;
}
#rsidenav-learning .cc-learn-intro {
    font-size: 1em;
    color: #fff;
    margin-bottom: 14px;
}
#rsidenav-learning .cc-learn-section {
    margin-bottom: 12px;
}
#rsidenav-learning .cc-learn-section-head {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ec5e8;
    margin: 0 0 4px 0;
}
#rsidenav-learning .cc-learn-section-body,
#rsidenav-learning .cc-learn-guidance {
    margin: 0;
    color: #ddd;
}
#rsidenav-learning .cc-learn-caution {
    margin-top: 14px;
    padding: 10px 12px;
    background: rgba(255, 193, 7, 0.12);
    border-left: 3px solid #ffc107;
    color: #ffe9a8;
    font-size: 0.9em;
}
#rsidenav-learning .cc-learn-links {
    margin-top: 16px;
}
#rsidenav-learning .cc-learn-links a {
    color: #9ec5e8;
}
#rsidenav-learning .cc-learn-glossary {
    margin-top: 18px;
    border-top: 1px solid #555;
    padding-top: 10px;
    color: #aaa;
}

/* Smaller viewports — let the panel use most of the screen width ---------- */
@media (max-width: 600px) {
    #rsidenav-learning {
        width: 100%;
        max-width: 100%;
    }
}
