/* CMS HTML içeriği — Tailwind Preflight başlık/liste stillerini sıfırlar.
   Admin TinyMCE ile aynı kurallar kullanılır; editör ve site görünümü eşleşir. */

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    color: #333333;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(h1, h2, h3, h4, h5, h6) {
    font-family: Inter, system-ui, sans-serif;
    color: #1a1a1a;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.4em 0 0.55em;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(h1, h2, h3, h4, h5, h6):first-child {
    margin-top: 0;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(h1) {
    font-size: 1.75rem;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(h2) {
    font-size: 1.5rem;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(h3) {
    font-size: 1.25rem;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(h4) {
    font-size: 1.125rem;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(h5) {
    font-size: 1.05rem;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(h6) {
    font-size: 1rem;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(p) {
    margin: 0 0 1em;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(p:last-child) {
    margin-bottom: 0;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(strong, b) {
    font-weight: 700;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(em, i) {
    font-style: italic;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(a) {
    color: var(--ihlas-blue, #003e92);
    text-decoration: underline;
    text-underline-offset: 2px;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(a:hover) {
    color: var(--ihlas-light-blue, #4779cc);
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(ul) {
    list-style-type: disc;
    padding-left: 1.5em;
    margin: 0 0 1em;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(ol) {
    list-style-type: decimal;
    padding-left: 1.5em;
    margin: 0 0 1em;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(ul ul) {
    list-style-type: circle;
    margin-bottom: 0;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(ol ol) {
    list-style-type: lower-alpha;
    margin-bottom: 0;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(li) {
    margin: 0.2em 0;
    display: list-item;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(blockquote) {
    margin: 1em 0;
    padding: 0.75em 1em;
    border-left: 4px solid var(--ihlas-orange, #ff9d00);
    background: #f8fafc;
    color: #4b5563;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(hr) {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 1.75em 0;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(img) {
    max-width: 100%;
    height: auto;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(figure) {
    margin: 1.25em 0;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(figcaption) {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.4em;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(table) {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(th, td) {
    border: 1px solid #e5e7eb;
    padding: 0.5em 0.75em;
    vertical-align: top;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(th) {
    background: #f8fafc;
    font-weight: 600;
}

:is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(iframe, video) {
    max-width: 100%;
}

@media (max-width: 640px) {
    :is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(h1) {
        font-size: 1.5rem;
    }

    :is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(h2) {
        font-size: 1.3rem;
    }

    :is(.cms-content, .prose, .rich-html, .d-content, .mce-content-body) :where(h3) {
        font-size: 1.15rem;
    }
}
