/*
 * Article content: defaults that Joomla 3's Bootstrap 2 used to give and the articles were written against.
 * Loaded on every outline from templates/rt_xenon/index.php.
 */

/* Several articles wrap paragraphs in <fieldset>; Bootstrap 2 reset them, Joomla 4+ gives them big margins. */
.com-content-article__body fieldset {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}
.com-content-article__body legend {
    float: none;
    width: 100%;
    margin: 0 0 .5em;
    padding: 0;
    border: 0;
    font-size: 1.4em;
    line-height: 1.4;
}

/* Tables never wider than the content column, even with a fixed pixel width typed in the editor,
   and fixed pixel widths become fluid so the table follows the column width. */
.com-content-article__body table {
    max-width: 100%;
}
.com-content-article__body table[style*="width"],
.com-content-article__body table[width] {
    width: 100% !important;
}
.com-content-article__body table td[style*="width"],
.com-content-article__body table th[style*="width"],
.com-content-article__body table col[style*="width"] {
    width: auto !important;
}
.com-content-article__body table img {
    max-width: 100%;
    height: auto;
}

/* Phones: let wide tables scroll sideways inside the column instead of stretching the page. */
@media (max-width: 767px) {
    .com-content-article__body table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* Szakrendelések pages: one .osei-rendeles block per doctor, a light line between doctors. */
.com-content-article__body .osei-rendeles {
    margin: 0 0 1.25em;
}
.com-content-article__body .osei-rendeles p {
    margin: 0 0 .4em;
}
.com-content-article__body .osei-rendeles + .osei-rendeles {
    border-top: 1px solid #dde3e9;
    padding-top: 1.25em;
}
.com-content-article__body h3 + .osei-rendeles {
    margin-top: .5em;
}
