/* Rich HTML from admin editor — restore list/heading styles stripped by global reset */

:is(
    .rich-content,
    .product-detail-tabs__description,
    .page-detail-content,
    .company-about-content,
    .blog-detail__content,
    .consult-prose,
    .cms-job-body,
    .spa-content-team__body
) {
    color: inherit;
    line-height: 1.9;
}

:is(
    .rich-content,
    .product-detail-tabs__description,
    .page-detail-content,
    .company-about-content,
    .blog-detail__content,
    .consult-prose,
    .cms-job-body,
    .spa-content-team__body
) :is(h1, h2, h3, h4, h5, h6) {
    color: var(--text-main, var(--site-text, inherit));
    margin: 1.25rem 0 0.75rem;
    line-height: 1.45;
    font-weight: 700;
}

:is(
    .rich-content,
    .product-detail-tabs__description,
    .page-detail-content,
    .company-about-content,
    .blog-detail__content,
    .consult-prose,
    .cms-job-body,
    .spa-content-team__body
) :is(p, blockquote, pre) {
    margin-bottom: 0.9rem;
}

:is(
    .rich-content,
    .product-detail-tabs__description,
    .page-detail-content,
    .company-about-content,
    .blog-detail__content,
    .consult-prose,
    .cms-job-body,
    .spa-content-team__body
) ul {
    list-style-type: disc;
    list-style-position: outside;
    padding-right: 1.5em;
    padding-left: 0;
    margin: 0 0 0.9rem;
}

:is(
    .rich-content,
    .product-detail-tabs__description,
    .page-detail-content,
    .company-about-content,
    .blog-detail__content,
    .consult-prose,
    .cms-job-body,
    .spa-content-team__body
) ol {
    list-style-type: decimal;
    list-style-position: outside;
    padding-right: 1.5em;
    padding-left: 0;
    margin: 0 0 0.9rem;
}

:is(
    .rich-content,
    .product-detail-tabs__description,
    .page-detail-content,
    .company-about-content,
    .blog-detail__content,
    .consult-prose,
    .cms-job-body,
    .spa-content-team__body
) li {
    display: list-item;
    margin-bottom: 0.4em;
}

:is(
    .rich-content,
    .product-detail-tabs__description,
    .page-detail-content,
    .company-about-content,
    .blog-detail__content,
    .consult-prose,
    .cms-job-body,
    .spa-content-team__body
) ul ul {
    list-style-type: circle;
    margin-top: 0.35em;
    margin-bottom: 0.35em;
}

:is(
    .rich-content,
    .product-detail-tabs__description,
    .page-detail-content,
    .company-about-content,
    .blog-detail__content,
    .consult-prose,
    .cms-job-body,
    .spa-content-team__body
) ol ol {
    list-style-type: lower-alpha;
    margin-top: 0.35em;
    margin-bottom: 0.35em;
}

:is(
    .rich-content,
    .product-detail-tabs__description,
    .page-detail-content,
    .company-about-content,
    .blog-detail__content,
    .consult-prose,
    .cms-job-body,
    .spa-content-team__body
) a {
    color: var(--accent, var(--primary, #3654ff));
    text-decoration: underline;
    text-underline-offset: 2px;
}

:is(
    .rich-content,
    .product-detail-tabs__description,
    .page-detail-content,
    .company-about-content,
    .blog-detail__content,
    .consult-prose,
    .cms-job-body,
    .spa-content-team__body
) img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 0.75rem 0;
}

:is(
    .rich-content,
    .product-detail-tabs__description,
    .page-detail-content,
    .company-about-content,
    .blog-detail__content,
    .consult-prose,
    .cms-job-body,
    .spa-content-team__body
) table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

:is(
    .rich-content,
    .product-detail-tabs__description,
    .page-detail-content,
    .company-about-content,
    .blog-detail__content,
    .consult-prose,
    .cms-job-body,
    .spa-content-team__body
) :is(th, td) {
    border: 1px solid var(--glass-border, rgba(15, 23, 42, 0.12));
    padding: 0.6rem 0.75rem;
}

:is(
    .rich-content,
    .product-detail-tabs__description,
    .page-detail-content,
    .company-about-content,
    .blog-detail__content,
    .consult-prose,
    .cms-job-body,
    .spa-content-team__body
) th {
    color: var(--text-main, var(--site-text, inherit));
    background: var(--landing-surface-soft, rgba(15, 23, 42, 0.04));
}

:is(
    .rich-content,
    .product-detail-tabs__description,
    .page-detail-content,
    .company-about-content,
    .blog-detail__content,
    .consult-prose,
    .cms-job-body,
    .spa-content-team__body
) blockquote {
    border-right: 3px solid var(--accent, var(--primary, #3654ff));
    padding: 0.5rem 1rem;
    margin-right: 0;
    background: rgba(54, 84, 255, 0.06);
    border-radius: 10px;
}
