/*
 * Texts of incidents and maintenances rendered from Markdown (.prose,
 * App\Markdown\MarkdownRenderer), shared by the public status page and the
 * backend (history and the preview of the Markdown editor, change of
 * 23.11.2026 (4)). Colours and fonts are tokens, defined for the public site
 * in assets/styles/public.css and for the backend in admin-theme.css (there
 * with the values from before the look of easy-smarthome.de, so that the
 * backend stays as it was); they follow light and dark there. Size and
 * colour of the running text are set by the surrounding element. Included
 * as its own <link> after tokens.css.
 */

.prose > :first-child {
    margin-top: 0;
}

.prose > :last-child {
    margin-bottom: 0;
}

.prose p {
    margin: 0.5em 0;
}

/*
 * The browser defaults of the public page, set explicitly for the backend
 * (Bootstrap). The marker, too: inside the timeline (itself a list) browsers
 * would draw circles, in the preview discs.
 */
.prose ul,
.prose ol {
    margin: 1em 0;
    padding-left: 40px;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose pre {
    overflow-x: auto;
    padding: 0.75rem;
    background: var(--bg);
    border-radius: 8px;
}

.prose code {
    font-size: 0.9em;
}

.prose blockquote {
    margin: 0.5rem 0;
    padding-left: 0.75rem;
    border-left: 3px solid var(--border);
    color: var(--muted);
}

/*
 * The one subheading of a text (MarkdownRenderer::HEADING): barely larger than
 * the text and bold, in the strongest text colour of the scheme. Font, size
 * and spacing are set here, not inherited from the headings of the page.
 */
.prose h5 {
    margin: 1em 0 0.25em;
    font-family: var(--font-body);
    font-size: 1.0625em;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: normal;
    text-transform: none;
    color: var(--text-strong);
}

/*
 * Headings of document mode (MarkdownRenderer::toDocumentHtml(): legal notice
 * and privacy policy) below the h1 of their page. Set explicitly like h5, so
 * that the preview in the backend (Bootstrap) looks like the public page.
 */
.prose h2,
.prose h3,
.prose h4 {
    margin: 1.5em 0 0.5em;
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: normal;
    text-transform: none;
    color: var(--text-strong);
}

.prose h2 {
    font-size: 1.25rem;
}

.prose h3 {
    font-size: 1.0625rem;
}

.prose h4 {
    font-size: 0.9375rem;
}
