/* Porto — CMS content typography bridge.
   Loaded after Porto's theme.css so editor-inserted content inherits the
   theme's fonts, colours and spacing instead of browser defaults. */

.main :where(h1, h2, h3, h4, h5, h6) {
    font-family: inherit;
    color: inherit;
    line-height: 1.2;
    margin-top: 1.5rem;
    margin-bottom: .75rem;
}

.main p,
.main ul,
.main ol,
.main table {
    margin-bottom: 1rem;
}

/* Links in CMS content pick up the active Porto skin's primary colour. */
.main a:not(.btn) {
    color: var(--porto-primary, #cc9966);
    text-decoration: none;
}
.main a:not(.btn):hover { text-decoration: underline; }

/* Editor images never overflow the content column. */
.main img {
    max-width: 100%;
    height: auto;
}

/* Tables inserted from the editor get light, theme-consistent borders. */
.main table:not([class]) {
    width: 100%;
    border-collapse: collapse;
}
.main table:not([class]) th,
.main table:not([class]) td {
    border: 1px solid #e7e7e7;
    padding: .5rem .75rem;
}

/* ── Public language switcher — dropdown styled theme-independently in cms-content.css ────────── */
.header-language-switcher { display: inline-flex; align-items: center; }
