/* public/app/css/dash-help-modal.css
 * Synopsis: Modale documentation des sections.
 * Objectif: Fenêtre d’aide dédiée, lisible.
 */

.dash .dash-help-modal {
    align-items: center;
    background: color-mix(in srgb, var(--dash-text) 38%, transparent);
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 1rem;
    position: fixed;
    z-index: 140;
}

.dash .dash-help-modal[hidden] {
    display: none;
}

.dash .dash-help-box {
    background: var(--dash-elev);
    border: 1px solid var(--dash-line);
    border-radius: var(--dash-radius);
    box-shadow: 0 16px 48px var(--dash-shadow);
    color: var(--dash-text);
    display: grid;
    gap: .75rem;
    max-height: min(78vh, 34rem);
    max-width: min(32rem, 94vw);
    overflow: auto;
    padding: 1rem 1.05rem;
    width: 100%;
}

.dash .dash-help-top {
    align-items: flex-start;
    display: flex;
    gap: .55rem;
    justify-content: space-between;
}

.dash .dash-help-title {
    font-family: var(--body);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0;
    margin: 0;
    text-transform: none;
}

.dash .dash-help-close {
    background: transparent;
    border: 1px solid var(--dash-line);
    border-radius: var(--dash-radius);
    color: var(--dash-muted);
    cursor: pointer;
    flex: 0 0 auto;
    font-size: 1.1rem;
    line-height: 1;
    min-height: 1.85rem;
    min-width: 1.85rem;
}

.dash .dash-help-body {
    color: var(--dash-muted);
    font-size: .9rem;
    line-height: 1.5;
}

.dash .dash-help-body p {
    margin: 0 0 .65rem;
}

.dash .dash-help-body p:last-child {
    margin-bottom: 0;
}
