/*
    Page-help surfaces: the help button, the shared help panel, help content typography,
    and the inline section-description pattern. Colors come from the design-system tokens,
    so dark mode follows automatically.
*/

.telpa-help-button {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.625rem;
    border: 1px solid var(--telpa-border);
    border-radius: var(--telpa-radius);
    background: var(--telpa-surface);
    color: var(--telpa-ink-muted);
    font-size: 0.8125rem;
    text-decoration: none;
    white-space: nowrap;
}

.telpa-help-button:hover,
.telpa-help-button:focus-visible {
    border-color: var(--telpa-accent);
    color: var(--telpa-accent);
}

.telpa-help-panel-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1056;
    background: var(--telpa-overlay);
}

.telpa-help-panel {
    position: fixed;
    top: var(--telpa-header-height);
    right: 0;
    bottom: 0;
    z-index: 1060;
    display: flex;
    width: 100%;
    flex-direction: column;
    overflow-y: auto;
    border-left: 1px solid var(--telpa-border-strong);
    background: var(--telpa-surface);
    box-shadow: var(--telpa-shadow-drawer);
}

.telpa-help-panel[hidden],
.telpa-help-panel-backdrop[hidden] {
    display: none;
}

.telpa-help-panel-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.125rem 1.5rem;
    border-bottom: 1px solid var(--telpa-border);
}

.telpa-help-panel-body {
    padding: 1.25rem 1.5rem;
}

.telpa-help-content {
    font-size: 0.875rem;
}

.telpa-help-content h3 {
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--telpa-ink-muted);
}

.telpa-help-content h3:first-child {
    margin-top: 0;
}

.telpa-help-content p,
.telpa-help-content ul {
    margin-bottom: 0.75rem;
}

.telpa-help-content li + li {
    margin-top: 0.375rem;
}

.telpa-section-desc {
    margin-bottom: 0;
    font-size: 0.8125rem;
    color: var(--telpa-ink-muted);
}

.telpa-panel-header .telpa-section-desc {
    flex-basis: 100%;
}

@media (min-width: 62rem) {
    .telpa-help-panel {
        width: var(--telpa-drawer-width);
    }
}
