/* Scoped reading styles: legacy theme resets lists and paragraph spacing. */
#task-content {
    min-width: 0;
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}
#task-content p { margin: 0 0 1em; }
#task-content h1, #task-content h2, #task-content h3,
#task-content h4, #task-content h5, #task-content h6 {
    margin: 1.5em 0 .65em;
    font-weight: 700;
    line-height: 1.4;
    color: inherit;
}
#task-content h1 { font-size: 1.8em; }
#task-content h2 { font-size: 1.5em; }
#task-content h3 { font-size: 1.25em; }
#task-content ul, #task-content ol { margin: 1em 0; padding-left: 1.8em; }
#task-content ul { list-style: disc outside; }
#task-content ol { list-style: decimal outside; }
#task-content li { display: list-item; margin: .4em 0; }
#task-content li > p { margin: .4em 0; }
#task-content a { color: #2563eb; text-decoration: underline; }
html.dark #task-content a { color: #93c5fd; }
#task-content img, #task-content video { max-width: 100%; height: auto; }
#task-content iframe { max-width: 100%; }
#task-content pre {
    overflow-x: auto;
    max-width: 100%;
    padding: 1em;
    margin: 1em 0;
    background: #f1f5f9;
    color: #0f172a;
    border-radius: .5rem;
}
#task-content code { font-family: Consolas, monospace; }
#task-content pre, #task-content pre * { white-space: pre; overflow-wrap: normal; }
html.dark #task-content pre { background: #0f172a; color: #f1f5f9; }
#task-content blockquote { margin: 1em 0; padding-left: 1em; border-left: 3px solid #94a3b8; }
#task-content table { display: block; max-width: 100%; overflow-x: auto; margin: 1em 0; }
#task-content th, #task-content td { padding: .6em; border: 1px solid #94a3b8; min-width: 6rem; }
#task-content hr { margin: 1.5em 0; }
