/* In-app help overlay (js/help.js). Full-viewport panel above everything. */

.help-overlay {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--fg);
}

.help-overlay header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: var(--bg);
    border-bottom: 1px solid var(--bg2);
}

.help-overlay header .title {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: var(--fg);
}

.help-overlay header .close {
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    color: var(--fg);
    font-size: 20px;
}

.help-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
    line-height: 1.5;
    max-width: 42rem;
    width: 100%;
    margin: 0 auto;
}

.help-body h2 {
    font-size: 16px;
    font-weight: 600;
    margin-top: 1.4em;
    margin-bottom: 0.3em;
    color: var(--fg);
}

.help-body h3 {
    font-size: 14px;
    font-weight: 600;
    margin-top: 1em;
    margin-bottom: 0.2em;
    color: var(--fg-dim);
}

.help-body p {
    font-size: 14px;
    color: var(--fg);
    margin: 0.5em 0;
}

.help-body ul {
    margin: 0.5em 0;
    padding-left: 1.2em;
}

.help-body li {
    font-size: 14px;
    color: var(--fg);
    margin: 0.3em 0;
}
