/* file: /assets/css/mdlite-core.css
   Core typography + minimal components for MDLite
   Scope: only rendered nodes (".md--rendered")
*/

.md--rendered{
    color: var(--fg);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

/* Headings (MDLite allows h2..h4) */
.md--rendered h2,
.md--rendered h3,
.md--rendered h4{
    margin: 24px 0 10px 0;
    line-height: 1.25;
}

.md--rendered h2:first-child,
.md--rendered h3:first-child,
.md--rendered h4:first-child{
    margin-top: 0;
}

.md--rendered h2{ font-size: 1.35rem; }
.md--rendered h3{ font-size: 1.15rem; }
.md--rendered h4{ font-size: 1.02rem; }

/* Paragraphs */
.md--rendered p{
    margin: 0 0 12px 0;
}

/* Lists */
.md--rendered ul,
.md--rendered ol{
    margin: 0 0 12px 0;
    padding-left: 1.25rem;
}

.md--rendered li{
    margin: 4px 0;
}

/* Links */
.md--rendered a{
    color: var(--link);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.md--rendered a:hover{
    text-decoration-thickness: 2px;
}

/* Inline code */
.md--rendered code{
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.95em;
    padding: 0.08em 0.35em;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: color-mix(in srgb, var(--bg) 85%, var(--fg) 15%);
}

/* NOTE block: {{note: ...}}
   Minimal editorial note: no box, only left rule.
*/
.md--rendered .md-note{
    margin: 0 0 16px 0;
    padding: 2px 0 2px 14px;
    border-left: 3px solid var(--link);
    color: color-mix(in srgb, var(--fg) 82%, var(--muted, #666) 18%);
    background: transparent;
}

/* Horizontal rule: --- */
.md--rendered .md-hr{
    border: 0;
    border-top: 1px solid var(--border);
    margin: 28px auto;
    width: min(100%, 720px);
}

/* Highlight: ==...== */
.md--rendered .md-hi{
    padding: 0 0.18em;
    border-radius: 4px;
    background: color-mix(in srgb, var(--link) 18%, var(--bg) 82%);
}

/* Optional: soften strong/em a bit */
.md--rendered strong{
    font-weight: 700;
}

.md--rendered em{
    font-style: italic;
}

/* Safety: keep last element clean */
.md--rendered > :last-child{
    margin-bottom: 0;
}