/* TBSZ-cikk: kiegeszito stilusok */

.article-cover,
.article-infographic {
    width: 100%;
    max-width: 100%;
    margin: 32px auto;
}

.article-cover img,
.article-infographic img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.article-infographic .figure-scroll {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.article-infographic img {
    cursor: zoom-in;
}

.article-infographic figcaption {
    margin-top: 10px;
    font-size: 0.9rem;
    line-height: 1.5;
}

@media (max-width: 560px) {
    .article-cover,
    .article-infographic {
        margin: 24px auto;
    }

    .article-infographic img {
        width: 100%;
        min-width: 0;
    }
}

/* TBSZ infografikak nagyitoablaka */

.zoom {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
    background: rgba(8, 18, 38, 0.94);
    overflow: auto;
}

.zoom.open {
    display: flex;
}

.zoom img {
    display: block;
    width: auto;
    max-width: min(95vw, 1600px);
    max-height: 85vh;
    height: auto;
    object-fit: contain;
}

.zoom .close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10001;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: #1b385f;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
}

@media (max-width: 560px) {
    .zoom {
        padding: 48px 8px 20px;
    }

    .zoom img {
        max-width: 98vw;
        max-height: 80vh;
    }
}

/* Nyomtatas es PDF: fejlec ne fedje a cikk tartalmat */
@media print {
    body.v3-preview > header {
        display: none !important;
    }

    body.v3-preview main {
        padding-top: 0 !important;
    }

    .article-cover,
    .article-infographic {
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .zoom {
        display: none !important;
    }
}

/* TBSZ-cikk: mobilon nincs elso soros behuzas */
@media screen and (max-width: 768px) {
    body.v3-preview article.section .container p {
        text-indent: 0 !important;
        text-align: left !important;
    }

    body.v3-preview article.section .container li {
        text-indent: 0 !important;
        text-align: left !important;
    }
}


/* EN TBSZ image sizing fix */
article figure.cover,
article figure.wide,
article figure.article-cover,
article figure.article-infographic {
    max-width: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
}

article figure.cover img,
article figure.wide img,
article figure.article-cover img,
article figure.article-infographic img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    box-sizing: border-box;
}

@media print {
    article figure.cover,
    article figure.wide,
    article figure.article-cover,
    article figure.article-infographic {
        width: 100% !important;
        max-width: 100% !important;
        overflow: visible !important;
        break-inside: avoid;
        page-break-inside: avoid;
    }
}


/* TBSZ bekezdesformazas 2026-11 */

/* Csak a ket TBSZ-cikk szovegtorzsere */
@media screen and (min-width: 769px) {
    body.v3-preview article.section .container > p:not([class]) {
        text-indent: 1em !important;
    }
}

body.v3-preview article.section .container > p:not([class]) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

@media screen and (max-width: 768px) {
    body.v3-preview article.section .container > p:not([class]) {
        text-indent: 0 !important;
    }
}
