/* Hide only Zeina's subject container of the row that carries the topic h1;
   the author line after it stays visible. */
.forumseo-title-marker ~ div.post-title {
    display: none !important;
}

h1.forumseo-topic-title,
.postbody h1.forumseo-topic-title {
    font-size: 1.25rem !important;
    line-height: 1.25 !important;
    font-weight: bold !important;
    margin: 0 0 0.3em 0 !important;
    padding: 2px 0 0 0 !important;
    text-transform: none !important;
    border: none !important;
    color: inherit;
}

h1.forumseo-topic-title a {
    font-size: inherit !important;
    font-weight: inherit !important;
}

/* Forum / category name as h1 at the top of the page content. */
h1.forumseo-forum-title {
    margin: 0 0 0.6em 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    font-weight: bold !important;
    text-transform: none !important;
    border: none !important;
    color: inherit;
    font-size: 1.5rem !important;
}

h1.forumseo-forum-title a {
    color: inherit !important;
    text-decoration: none !important;
}

/* Forum h1 placement without JavaScript.
   In the HTML the h1 stays first in the page content (best for SEO). On screen it is
   moved below anything another extension puts in the same spot (the "Recomandările
   noastre" board) and right above the content wrapper (sidebar + new topic buttons). */
.page-body-content:has(> h1.forumseo-forum-title) {
    display: flex;
    flex-direction: column;
}

.page-body-content > h1.forumseo-forum-title {
    order: 1;
}

.page-body-content > h1.forumseo-forum-title ~ div.flex.flex-wrap.gap-4,
.page-body-content > h1.forumseo-forum-title ~ div.flex.flex-wrap.gap-4 ~ * {
    order: 2;
}
