/* Help page (generated from Help/help.md). Tokens and shared components live in theme.css. */

.container {
    width: 100%;
    max-width: 900px;
    padding: 40px 20px 48px;
}

/* contents */

/* single column: sections in white, their sub-sections indented and muted */
.help-toc {
    margin: 0 0 32px;
    padding: 18px 22px;
}

.help-toc ul {
    list-style: none;
    margin: 0;
    padding-left: 0;
}

.help-toc > ul > li + li {
    margin-top: 12px;
}

.help-toc > ul > li > a,
.help-toc > ul > li > a:visited {
    font-weight: 500;
    color: var(--text);
}

.help-toc ul ul {
    margin-top: 4px;
    padding-left: 16px;
}

.help-toc ul ul li {
    margin: 3px 0;
    font-size: 14px;
    line-height: 1.5;
}

.help-toc ul ul a,
.help-toc ul ul a:visited {
    color: var(--muted);
}

.help-toc a:hover {
    color: var(--accent);
    text-decoration: none;
}

.help-toc .header-anchor {
    display: none;
}

/* body */

.help-body {
    font-size: 15px;
    line-height: 1.7;
}

.help-body h1,
.help-body h2,
.help-body h3,
.help-body h4 {
    font-weight: 600;
    text-align: left;
    line-height: 1.3;
    scroll-margin-top: 16px;
}

.help-body h1 {
    font-size: 26px;
    margin: 48px 0 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.help-body h2 {
    font-size: 20px;
    margin: 36px 0 10px;
}

.help-body h3 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    margin: 28px 0 8px;
}

.help-body h4 {
    font-size: 15px;
    color: var(--muted);
    margin: 20px 0 6px;
}

.help-body p,
.help-body li {
    color: var(--text);
}

.help-body ul,
.help-body ol {
    padding-left: 22px;
}

.help-body li {
    margin: 4px 0;
}

.help-body strong {
    font-weight: 600;
}

.help-body code {
    color: var(--str);
}

.help-body pre {
    background: var(--pre-bg);
    border: 1px solid var(--border);
    padding: 14px 16px;
    border-radius: 12px;
    overflow-x: auto;
    font-size: 13.5px;
    line-height: 1.6;
}

.help-body pre code {
    background: transparent;
    padding: 0;
    color: var(--text);
}

/* permalink "#" on hover */

.header-anchor::before {
    content: "#";
    color: var(--muted);
}

.header-anchor {
    font-size: 0.8em;
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.header-anchor:hover {
    text-decoration: none;
}

.header-anchor:hover::before {
    color: var(--accent);
}

h1:hover .header-anchor,
h2:hover .header-anchor,
h3:hover .header-anchor,
h4:hover .header-anchor {
    opacity: 1;
}

.header-anchor:focus {
    opacity: 1;
    outline: none;
}

/* callouts */

/* tinted callout with an even hairline border and an info icon; no coloured side stripe */
.note {
    position: relative;
    background: var(--warn-row);
    border: 1px solid var(--warn-border);
    border-radius: 12px;
    padding: 12px 16px 12px 46px;
    margin: 20px 0;
    line-height: 1.6;
}

.note::before {
    content: "info";
    position: absolute;
    left: 16px;
    top: 13px;
    font-family: "Material Symbols Outlined";
    font-size: 20px;
    line-height: 1;
    color: var(--warn);
    -webkit-font-smoothing: antialiased;
}

.example-container {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 6px 18px var(--shadow);
    padding: 4px 20px 12px;
    margin: 16px 0 24px;
}

/* figures */

figure {
    margin: 30px auto;
    text-align: center;
}

.help-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 6px 18px var(--shadow);
}

figcaption {
    margin-top: 10px;
    font-size: 13px;
    color: var(--muted);
}

/* tables */

.help-body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin: 16px 0;
    font-size: 14px;
}

.help-body th,
.help-body td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.help-body thead th {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
    background: var(--surface-2);
}

.help-body tbody tr:last-child td {
    border-bottom: none;
}

@media (max-width: 560px) {
    .container {
        padding: 16px 16px 40px;
    }

    .help-body table {
        display: block;
        overflow-x: auto;
    }
}

/* "Back to SRV Checker" above the page title */

.back-link,
.back-link:visited {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
}

.back-link:hover {
    text-decoration: none;
    color: var(--text);
}

.back-link .material-symbols-outlined {
    font-size: 16px;
}

.back-link:hover .back-link__text {
    text-decoration: underline;
}
