/*==================================================

    MentalFluency Framework

    Help Panel

==================================================*/


/*==================================================
    Overlay
==================================================*/

.mf-help-overlay {

    position: fixed;

    inset: 0;

    background: rgba(20, 20, 20, .22);

    opacity: 0;
    visibility: hidden;

    transition:
            opacity .25s ease,
            visibility .25s ease;

    z-index: 9000;

}

.mf-help-overlay.open {

    opacity: 1;
    visibility: visible;

}


/*==================================================
    Sliding Panel
==================================================*/

.mf-help-panel {

    position: fixed;

    top: 0;
    right: -460px;

    width: 460px;
    max-width: 92vw;

    height: 100vh;

    display: flex;
    flex-direction: column;

    background: #faf8f4;

    box-shadow:
            -12px 0 36px rgba(0,0,0,.12);

    transition:
            right .30s ease;

    z-index: 9001;

}

.mf-help-panel.open {

    right: 0;

}


/*==================================================
    Header
==================================================*/

.mf-help-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 28px 30px;

    border-bottom: 1px solid #ebe7df;

    background: #faf8f4;

    flex-shrink: 0;

}


/*==================================================
    Title
==================================================*/

.mf-help-title {

    font-size: 2rem;

    font-weight: 700;

    color: #202124;

    letter-spacing: -.02em;

}


/*==================================================
    Close Button
==================================================*/

.mf-help-close {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border: none;

    border-radius: 999px;

    background: white;

    cursor: pointer;

    transition:
            background .18s ease,
            transform .18s ease;

}

.mf-help-close:hover {

    background: var(--mf-primary-light);

    color: var(--mf-primary);

    transform: scale(1.04);

}

.mf-help-close:active {

    background: var(--mf-primary-light);

    color: var(--mf-primary);

    transform: scale(.96);

}

.mf-help-close {

    width:42px;
    height:42px;

    padding:0;

    display:flex;
    align-items:center;
    justify-content:center;

    background:#ffffff;

    border:none;
    border-radius:999px;

    color:#374151;

    cursor:pointer;

    flex-shrink:0;
}

.mf-help-close svg{

    width:22px;
    height:22px;

    display:block;

    fill:none;

    stroke:currentColor;

    stroke-width:2;
}


/*==================================================
    Body
==================================================*/

.mf-help-body {

    flex: 1;

    overflow-y: auto;

    padding: 28px;

}


/*==================================================
    Footer
==================================================*/

.mf-help-footer {

    padding: 24px 28px;

    border-top: 1px solid #ebe7df;

    background: #faf8f4;

    flex-shrink: 0;

}


/*==================================================
    Scrollbar
==================================================*/

.mf-help-body::-webkit-scrollbar {

    width: 8px;

}

.mf-help-body::-webkit-scrollbar-thumb {

    background: #d8d5cf;

    border-radius: 999px;

}

.mf-help-body::-webkit-scrollbar-track {

    background: transparent;

}


/*==================================================
    Mobile
==================================================*/

@media (max-width: 768px) {

    .mf-help-panel {

        width: 100vw;

        max-width: 100vw;

        right: -100vw;

    }

    .mf-help-header {

        padding: 22px;

    }

    .mf-help-body {

        padding: 22px;

    }

    .mf-help-footer {

        padding: 22px;

    }

    .mf-help-title {

        font-size: 1.75rem;

    }

}