/**
 * Public site — styled HTML from rich editor (not admin).
 */
.rich-content,
.service-content {
    line-height: 1.75;
    color: var(--text-primary);
    font-size: 1.05rem;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.service-content h1,
.service-content h2,
.service-content h3,
.service-content h4 {
    margin: 1.75rem 0 0.75rem;
    color: var(--text-primary);
    line-height: 1.3;
    font-family: var(--font-display, Georgia, serif);
    font-weight: 400;
}

.rich-content h1:first-child,
.rich-content h2:first-child,
.service-content h1:first-child,
.service-content h2:first-child {
    margin-top: 0;
}

.rich-content h1,
.service-content h1 {
    font-size: 1.85rem;
}

.rich-content h2,
.service-content h2 {
    font-size: 1.45rem;
}

.rich-content h3,
.service-content h3 {
    font-size: 1.2rem;
}

.rich-content h4,
.service-content h4 {
    font-size: 1.05rem;
    font-family: var(--font-body, sans-serif);
    font-weight: 600;
}

.rich-content p,
.service-content p {
    margin: 0 0 1.1rem;
}

.rich-content ul,
.rich-content ol,
.service-content ul,
.service-content ol {
    margin: 0 0 1.1rem;
    padding-left: 1.35rem;
}

.rich-content li,
.service-content li {
    margin-bottom: 0.4rem;
}

.rich-content a,
.service-content a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.15em;
}

.rich-content a:hover,
.service-content a:hover {
    color: var(--text-primary);
}

.rich-content blockquote,
.service-content blockquote {
    margin: 1.35rem 0;
    padding: 0.85rem 1.1rem;
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    color: var(--text-secondary);
    font-style: italic;
}

.rich-content code,
.service-content code {
    font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
    font-size: 0.9em;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    padding: 0.12em 0.4em;
    border-radius: 3px;
    color: var(--text-primary);
}

.rich-content pre,
.service-content pre {
    margin: 1.15rem 0;
    padding: 1rem 1.1rem;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow-x: auto;
}

html[data-theme="dark"] .rich-content pre,
html[data-theme="dark"] .service-content pre {
    background: rgba(0, 0, 0, 0.35);
}

.rich-content pre code,
.service-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.88em;
    color: var(--text-primary);
}

.rich-content img,
.rich-content-image,
.service-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 1.25rem auto;
    display: block;
    border: 1px solid var(--border);
}

.rich-content hr,
.service-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

.rich-content strong,
.service-content strong {
    font-weight: 650;
}
