/* İlçe Atlasım Theme v2.2.3 — V12 responsive content resilience. */

:where(main, section, article, aside, header, footer, nav, form, div) {
    min-width: 0;
}

:where(.ia-container, .container, .site-main, .entry-content, .district-page, .province-page) {
    max-width: 100%;
}

:where(h1, h2, h3, h4, h5, h6, p, li, dd, dt, figcaption, blockquote, a, button, label) {
    overflow-wrap: anywhere;
}

:where(img, picture, video, canvas, svg, iframe) {
    max-width: 100%;
}

:where(img, video, canvas, svg) {
    height: auto;
}

:where(pre, code) {
    overflow-wrap: normal;
    word-break: normal;
}

:where(pre, .entry-content pre, .district-content pre) {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

:where(table) {
    max-width: 100%;
}

:where(.table-scroll, .district-table-wrap, .entry-content:has(> table)) {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

:where(.cards-grid, .archive-grid, .stats-grid, .district-info-grid, .province-grid, .footer-grid) > * {
    min-width: 0;
    max-width: 100%;
}

@media (max-width: 768px) {
    :where(input, select, textarea, button) {
        max-width: 100%;
    }

    :where(.entry-content iframe, .district-content iframe, .map-embed iframe) {
        width: 100%;
    }
}
