/* A paper's content sections (Abstract, Introduction, Methods…), one look on
   every page that shows them: the author's paper view and Summary step, the
   revision page, the reviewer's pages, the editor's pages and the admin view.
   Where a section starts: its heading, in the journal's serif with a gold bar.
   Where it ends: a thin line before the next section.

   Markup: the section wrapper gets .mj-sec, its heading .mj-sec__title. The
   `body` prefix outranks the pages' own heading rules (.platform-container
   .section-title, .pv-section h4…), which load after this file.
   The published article keeps its own design (each section is a card), and
   the PDF keeps its print styles. */

body .mj-sec + .mj-sec,
body .mj-sec + * > .mj-sec:first-child {   /* Summary step: Abstract, then a wrapper of the rest */
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e1d6;
}

body .mj-sec .mj-sec__title {
    margin: 0 0 12px;
    padding: 2px 0 2px 12px;
    border-left: 4px solid #d9a03f;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: none;
    color: #1a2c42;
}

/* The reviewer and editor pages wrap the heading in a row with its Edited
   flag; the same gap under it as everywhere else. */
body .mj-sec .section-header-badge { margin-bottom: 12px; }
body .mj-sec .section-header-badge > .mj-sec__title { margin-bottom: 0; }

@media (max-width: 640px) {
    body .mj-sec + .mj-sec,
    body .mj-sec + * > .mj-sec:first-child { margin-top: 22px; padding-top: 18px; }
    body .mj-sec .mj-sec__title { font-size: 1.2rem; }
}
