/* =========================================================
   CONTEXT TITLE + HELP BUTTON
   ========================================================= */

.context-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.context-title-row h2 {
    margin: 0;
}

.context-help-button {
    flex: 0 0 auto;

    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #eef1f5;
    color: #152238;

    font-size: 15px;
    font-weight: 900;
    font-family: Georgia, serif;
    line-height: 1;

    cursor: pointer;
}

.context-help-button:hover {
    background: #dfe4eb;
}

.context-help-button:active {
    transform: translateY(1px);
}


/* =========================================================
   HELP OVERLAY
   ========================================================= */

.help-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(7, 15, 30, 0.72);
    backdrop-filter: blur(4px);
}

.help-overlay[hidden] {
    display: none;
}


/* =========================================================
   HELP PANEL
   ========================================================= */

.help-panel {
    position: relative;

    width: 100%;
    max-width: 500px;

    padding: 34px 30px 30px;

    background: #ffffff;
    color: #152238;

    border-radius: 22px;

    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.32);
}


/* =========================================================
   CLOSE
   ========================================================= */

.help-close {
    position: absolute;
    top: 14px;
    right: 16px;

    width: 36px;
    height: 36px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: #eef1f5;
    color: #152238;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;
}

.help-close:hover {
    background: #dfe4eb;
}


/* =========================================================
   HEADER
   ========================================================= */

.help-icon {
    width: 38px;
    height: 38px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 12px;

    border-radius: 50%;

    background: rgba(25, 201, 101, 0.14);
    color: #10984a;

    font-family: Georgia, serif;
    font-size: 23px;
    font-weight: 900;
}

.help-panel h2 {
    margin: 0 44px 24px 0;

    font-size: 27px;
    line-height: 1.2;
}


/* =========================================================
   INTRO
   ========================================================= */

.help-intro {
    margin: -14px 0 22px;

    color: #5b6677;

    font-size: 15px;
    line-height: 1.5;
}


/* =========================================================
   QUESTIONS CONTAINER
   ========================================================= */

.help-questions {
    max-height: 360px;

    overflow-y: auto;
    overscroll-behavior: contain;

    padding-right: 6px;
}


/* =========================================================
   SINGLE QUESTION
   ========================================================= */

.help-item {
    border-bottom: 1px solid #e5e9ef;
}

.help-item:first-child {
    border-top: 1px solid #e5e9ef;
}


/* =========================================================
   SUMMARY
   ========================================================= */

.help-item summary {
    position: relative;

    padding: 17px 38px 17px 2px;

    color: #152238;

    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;

    cursor: pointer;

    list-style: none;
}

.help-item summary::-webkit-details-marker {
    display: none;
}


/* =========================================================
   PLUS / MINUS
   ========================================================= */

.help-item summary::after {
    content: "+";

    position: absolute;
    top: 50%;
    right: 6px;

    width: 26px;
    height: 26px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #eef1f5;
    color: #152238;

    font-size: 20px;
    font-weight: 500;
    line-height: 1;

    transform: translateY(-50%);
}

.help-item[open] summary::after {
    content: "−";

    background: rgba(25, 201, 101, 0.14);
    color: #10984a;
}


/* =========================================================
   ANSWER
   ========================================================= */

.help-answer {
    padding: 0 38px 18px 2px;

    color: #5b6677;

    font-size: 15px;
    line-height: 1.55;
}


/* =========================================================
   HOVER
   ========================================================= */

.help-item summary:hover {
    color: #10984a;
}


/* =========================================================
   SCROLLBAR
   ========================================================= */

.help-questions::-webkit-scrollbar {
    width: 7px;
}

.help-questions::-webkit-scrollbar-track {
    background: transparent;
}

.help-questions::-webkit-scrollbar-thumb {
    border-radius: 10px;

    background: #cfd6df;
}

.help-questions::-webkit-scrollbar-thumb:hover {
    background: #aeb7c4;
}


/* =========================================================
   NOTE
   ========================================================= */

.help-note {
    margin-top: 24px;
    padding: 14px 16px;

    border-radius: 12px;

    background: #f4f6f8;
    color: #5b6677;

    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 520px) {

    .help-overlay {
        align-items: flex-end;
        padding: 12px;
    }

    .help-panel {
        max-width: none;

        padding: 30px 22px 24px;

        border-radius: 20px 20px 14px 14px;
    }

    .context-title-row {
        align-items: flex-start;
    }

}