.html-content {
    color: #243447;
    line-height: 1.85;
    font-size: 1.02rem;
    word-break: break-word;
}

.html-content > *:first-child {
    margin-top: 0 !important;
}

.html-content > *:last-child {
    margin-bottom: 0 !important;
}

.html-content h1,
.html-content h2,
.html-content h3,
.html-content h4,
.html-content h5,
.html-content h6 {
    color: var(--eco-heading);
    font-weight: 700;
    line-height: 1.35;
    margin-top: 1.75rem;
    margin-bottom: 0.9rem;
}

.html-content h1 { font-size: 2rem; }
.html-content h2 { font-size: 1.75rem; }
.html-content h3 { font-size: 1.45rem; }
.html-content h4 { font-size: 1.2rem; }

.html-content p,
.html-content ul,
.html-content ol,
.html-content blockquote,
.html-content table,
.html-content pre {
    margin-bottom: 1rem;
}

.html-content a {
    color: var(--eco-primary);
    text-decoration: none;
}

.html-content a:hover {
    text-decoration: underline;
}

.html-content img,
.html-content video,
.html-content iframe {
    max-width: 100%;
    height: auto;
    border-radius: 0.85rem;
    display: block;
    margin: 1rem 0;
}

.html-content ul,
.html-content ol {
    padding-left: 1.3rem;
}

.html-content li + li {
    margin-top: 0.25rem;
}

.html-content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 0.75rem;
    font-size: 0.97rem;
}

.html-content table th,
.html-content table td {
    border: 1px solid var(--eco-border);
    padding: 0.85rem 0.95rem;
    vertical-align: top;
}

.html-content table th {
    background-color: #f6f9fc;
    font-weight: 700;
}

.html-content blockquote {
    border-left: 4px solid var(--eco-secondary);
    padding: 0.85rem 1rem;
    background: #f7fbf8;
    color: var(--eco-text);
    border-radius: 0.6rem;
}

.html-content code {
    background: #f1f5f9;
    padding: 0.15rem 0.35rem;
    border-radius: 0.3rem;
    font-size: 0.92em;
}

.html-content pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 1rem;
    border-radius: 0.75rem;
    overflow-x: auto;
}

.html-content hr {
    border: 0;
    border-top: 1px solid var(--eco-border);
    margin: 1.75rem 0;
}
