@import url("photoswipe/photoswipe.css");

/* The user guide: its page, the panel the ? opens, and the viewer a picture opens in. Drawn in the host's colour
   tokens (--color-*, --font-*, --radius-*), so it takes the host's look and its dark theme. */
.help-page { max-width: 48rem; padding-bottom: 3rem; }
.help-back { display: inline-block; margin-top: 1rem; font-size: var(--font-sm); }
.help-section {
    margin: 1.5rem 0 .25rem;
    font-size: var(--font-xs);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--color-text-subtle);
}
.help-entry { padding: .6rem 0; border-bottom: 1px solid var(--color-border); }
.help-entry-summary { margin-top: .1rem; font-size: var(--font-base); color: var(--color-text-muted); }
.help-article { font-size: var(--font-md); line-height: 1.6; color: var(--color-text); }
.help-article h2 { margin: 1.75rem 0 .5rem; font-size: 1.1rem; font-weight: 600; color: var(--color-text-strong); }
.help-article h3 { margin: 1.25rem 0 .4rem; font-size: var(--font-lg); font-weight: 600; color: var(--color-text-strong); }
.help-article p, .help-article ul, .help-article ol { margin: 0 0 .8rem; }
.help-article li { margin-bottom: .3rem; }
/* A label on the screen, written as code in the article, reads as the label it is. */
.help-article code {
    padding: .05rem .35rem;
    font-family: inherit;
    font-size: .92em;
    color: var(--color-text-strong);
    background: var(--color-surface-subtle);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-sm);
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.help-article img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: .75rem 0 1.25rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08);
    cursor: zoom-in;
}
/* Each picture is there twice, taken in each theme; only the one in the theme the app is in shows. */
.help-article img.help-shot-dark { display: none; }
:root[data-theme="dark"] .help-article img.help-shot-light { display: none; }
:root[data-theme="dark"] .help-article img.help-shot-dark { display: block; }
.help-panel.offcanvas { width: min(36rem, 100vw); color: var(--color-text); background: var(--color-surface); }
.help-panel-title { font-size: var(--font-lg); font-weight: 600; color: var(--color-text-strong); }
.help-panel .help-article { font-size: var(--font-base); }
/* A picture's description beneath it, in the viewer. */
.pswp__help-caption {
    position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%);
    max-width: min(90vw, 720px); padding: 6px 12px; border-radius: 6px;
    background: rgba(0, 0, 0, .6); color: #fff; font-size: .9rem; text-align: center;
}
.pswp__help-caption:empty { display: none; }
