/* JMEDICA 39 — Reduced gap above full-width community banner. Previous Version 38 retained. */
/* JMEDICA 40 - COMPLETE STYLESHEET | VERSION 39 plus final banner gap correction */
/* JMEDICA 38 - FULL STYLESHEET | ALL VERSION 37 RULES PRESERVED */
/* JMEDICA VERSION 35R — COMPLETE CSS (responsive sidebar alignment) */
/* =========================================
   JMEDICA — COMPLETE WEBSITE STYLESHEET
   Header, Layout and Editorial Masthead
   ========================================= */


/* 1. DESKTOP HEADER */

@media (min-width: 768px) {

  .pkp_site_name_wrapper .pkp_site_name,
  .pkp_site_name {
    max-width: none;
  }

  .pkp_site_name .is_img img,
  .pkp_site_name img {
    width: min(780px, 78vw) !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: 140px !important;
    object-fit: contain;
  }
}


/* 2. MOBILE HEADER */

@media (max-width: 767px) {

  .pkp_site_name_wrapper,
  .pkp_site_name,
  .pkp_site_name .is_img {
    height: auto !important;
    min-height: 0 !important;
    max-height: 60px !important;
  }

  .pkp_site_name .is_img img,
  .pkp_site_name img {
    display: block !important;
    width: auto !important;
    max-width: min(220px, 58vw) !important;
    height: auto !important;
    max-height: 42px !important;
    object-fit: contain !important;
  }
}


/* 3. WIDER DESKTOP WEBSITE LAYOUT */

@media (min-width: 992px) {

  .pkp_structure_page {
    max-width: 1440px;
    width: calc(100% - 48px);
    margin-left: auto;
    margin-right: auto;
  }

  .pkp_structure_content {
    max-width: none;
    width: 100%;
  }

  .pkp_structure_main {
    min-width: 0;
  }

  .pkp_page_index .homepage_image img,
  .pkp_page_index .additional_content img,
  .pkp_page_index .homepage_about img {
    max-width: 100%;
    height: auto;
  }
}


/* 4. EDITORIAL MASTHEAD
   Clean section headings and member spacing */

.pkp_page_about .cmp_editors,
.pkp_page_about .cmp_masthead {
  line-height: 1.7;
}

.pkp_page_about .cmp_editors h2,
.pkp_page_about .cmp_editors h3,
.pkp_page_about .cmp_masthead h2,
.pkp_page_about .cmp_masthead h3 {
  color: #19395e;
  font-weight: 700;
  border-bottom: 2px solid #c5a052;
  padding-bottom: 9px;
  margin-top: 28px;
  margin-bottom: 14px;
}

.pkp_page_about .cmp_editors li,
.pkp_page_about .cmp_masthead li {
  margin-bottom: 12px;
  padding-left: 4px;
}

.pkp_page_about .cmp_editors ul,
.pkp_page_about .cmp_masthead ul {
  list-style-type: disc;
  padding-left: 25px;
}


/* 5. MASTHEAD MEMBER NAMES */

.pkp_page_about .cmp_editors li strong,
.pkp_page_about .cmp_masthead li strong {
  color: #19395e;
  font-weight: 600;
}


/* 6. RESPONSIVE EDITORIAL CONTENT */

@media (max-width: 767px) {

  .pkp_page_about .cmp_editors,
  .pkp_page_about .cmp_masthead {
    font-size: 15px;
    line-height: 1.7;
  }

  .pkp_page_about .cmp_editors ul,
  .pkp_page_about .cmp_masthead ul {
    padding-left: 20px;
  }
}

/* =========================================
   7. JMEDICA — OJS 3.5 EDITORIAL MASTHEAD
   Scoped to the public Editorial Masthead page.
   Keeps OJS appointment records unchanged.
   ========================================= */

/* Hide public appointment start/end dates, e.g. 2026–.
   The live HTML uses <span class="date_start"> inside .user_listing. */
.page_masthead .user_listing .date_start,
.page_masthead .user_listing .date_end {
  display: none !important;
}

/* Editorial role headings: navy with a restrained gold underline. */
.page_masthead h2 {
  color: #19395e;
  font-weight: 700;
  border-bottom: 2px solid #c5a052;
  padding-bottom: 8px;
  margin: 28px 0 14px;
}

/* Create readable, properly indented editorial-member lists. */
.page_masthead .user_listing {
  list-style: disc outside !important;
  padding-left: 26px !important;
  margin: 0 0 20px;
}
.page_masthead .user_listing > li {
  display: list-item !important;
  list-style-type: disc !important;
  margin: 0 0 14px;
  padding-left: 5px;
  line-height: 1.6;
}
.page_masthead .user_listing .name {
  color: #19395e;
  font-weight: 600;
}

@media (max-width: 767px) {
  .page_masthead .user_listing {
    padding-left: 22px !important;
  }
  .page_masthead .user_listing > li {
    margin-bottom: 12px;
  }
}

/* V67 maintenance: removed obsolete Asad Noor Mirza affiliation-suppression
   rule so current Senior Journal Editor details display normally. */

/* ===================================================================
   9. JMEDICA HOMEPAGE: BALANCED LEFT / CENTER / RIGHT (VERSION 30)

    DESKTOP (992px and wider, responsive columns):

         LEFT                 CENTER                 RIGHT
         4. Indexing          Original homepage      3. Author Services
         2. Reader Guide                            1. Editorial Board

    This is ONE CSS GRID around the existing OJS main and sidebar.
    The existing sidebar remains in the OJS backend; `display: contents`
    allows its four blocks to occupy the two outer grid columns.

    Below 992px, normal OJS responsive layout remains unchanged.
   =================================================================== */

@media (min-width: 992px) {

  /* Three visual columns. No decorative column borders or pseudo-lines. */
  body.pkp_page_index.pkp_op_index .pkp_structure_content.has_sidebar {
    display: grid !important;
    grid-template-columns: minmax(0, min(258px, 19.5vw)) minmax(0, 1fr) minmax(0, min(258px, 19.5vw)) !important;
    /* The spare third row absorbs tall homepage content, so it does
       not create a giant gap between the two sidebar cards. */
    grid-template-rows: max-content max-content max-content minmax(0, 1fr) !important;
    column-gap: 18px !important;
    row-gap: 12px !important;
    align-items: start !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
  }

  /* OJS clearfix pseudo-elements must not become extra grid children. */
  body.pkp_page_index.pkp_op_index .pkp_structure_content.has_sidebar::before,
  body.pkp_page_index.pkp_op_index .pkp_structure_content.has_sidebar::after,
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left::before,
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left::after {
    content: none !important;
    display: none !important;
  }

  /* MAIN CENTRE: original journal content, with its padding intact. */
  body.pkp_page_index.pkp_op_index .pkp_structure_content.has_sidebar > .pkp_structure_main {
    grid-column: 2 !important;
    grid-row: 1 / 5 !important;
    align-self: start !important;
    justify-self: stretch !important;
    float: none !important;
    flex: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  /* Let the four EXISTING OJS sidebar blocks enter the outer tracks.
     This changes only the public homepage, not admin pages or data. */
  body.pkp_page_index.pkp_op_index .pkp_structure_content.has_sidebar > .pkp_structure_sidebar.left {
    display: contents !important;
  }

  /* Reset default sidebar block gaps; preserve the gold INNER card border. */
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-indexing-roadmap,
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-reader-guide,
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-author-services,
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-editorial-board {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
    align-self: stretch !important;
    height: 100% !important;
    overflow: visible !important;
  }

  /* LEFT: research roadmap on top, reader links immediately below. */
  body.pkp_page_index.pkp_op_index #customblock-jmedica-indexing-roadmap {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }
  body.pkp_page_index.pkp_op_index #customblock-jmedica-reader-guide {
    grid-column: 1 !important;
    grid-row: 2 !important;
  }

  /* RIGHT: author services on top, editorial board immediately below. */
  body.pkp_page_index.pkp_op_index #customblock-jmedica-author-services {
    grid-column: 3 !important;
    grid-row: 1 !important;
  }
  body.pkp_page_index.pkp_op_index #customblock-jmedica-editorial-board {
    grid-column: 3 !important;
    grid-row: 2 !important;
  }

  /* Equal height within each ROW. Preserve all content and links. */
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > .block_custom > .content {
    width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > .block_custom > .content > div {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: 100% !important;
    box-sizing: border-box !important;
  }
  /* Narrow text, emails and URLs should wrap, never force horizontal scroll. */
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left .content {
    overflow-wrap: anywhere;
  }
}

/* ===================================================================
   10. JMEDICA HOMEPAGE — REMOVE OJS THEME DIVIDER (VERSION 31)

   OJS default theme can draw a full-height vertical rule with the
   ::after pseudo-element on .pkp_structure_main. With our custom
   left / center / right CSS grid, that legacy separator can appear
   inside the central homepage, including beside the IMPACT wording.

   Scope to the PUBLIC journal homepage only. This does not change
   the site header, banner image, grid widths, navigation, sidebar
   blocks, editorial masthead, or admin pages.
   =================================================================== */
body.pkp_page_index.pkp_op_index .pkp_structure_main::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
}


/* ===================================================================
   11. JMEDICA HOMEPAGE — TWO MEDICAL GREEN PANELS (VERSION 32)

   New custom blocks (create separately in OJS Custom Block Manager):
     Name: jmedica-journal-scope
     Name: jmedica-get-involved
   Turn OFF "Show Name" for both; the HTML includes its own heading.

   Version 31 divider fix above is retained UNCHANGED.
   The existing four OJS blocks and central homepage are unchanged.
   =================================================================== */

/* Keep these two supplementary panels on the journal homepage only. */
body:not(.pkp_page_index.pkp_op_index) #customblock-jmedica-journal-scope,
body:not(.pkp_page_index.pkp_op_index) #customblock-jmedica-get-involved {
  display: none !important;
}

/* Self-contained color scheme; no dependency on external fonts or icons. */
body.pkp_page_index.pkp_op_index .jmedica-green-card {
  --jmedica-green: #087D53;
  --jmedica-light: #F0FAF3;
  --jmedica-text: #214C36;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  border: 1px solid #C5A052;
  border-radius: 8px;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--jmedica-light);
  color: var(--jmedica-text);
  font-family: inherit;
  box-shadow: 0 2px 7px rgba(14, 54, 40, 0.08);
}
body.pkp_page_index.pkp_op_index .jmedica-green-card--forest {
  --jmedica-green: #245C3B;
  --jmedica-light: #F5FAF0;
  --jmedica-text: #264A34;
}
body.pkp_page_index.pkp_op_index .jmedica-green-card__heading {
  background: var(--jmedica-green);
  color: #FFFFFF !important;
  border-bottom: 3px solid #C5A052;
  padding: 14px 12px 13px;
  text-align: center;
}
body.pkp_page_index.pkp_op_index .jmedica-green-card__title {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #FFFFFF !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}
body.pkp_page_index.pkp_op_index .jmedica-green-card__subtitle {
  margin: 6px 0 0 !important;
  font-size: 11.5px !important;
  line-height: 1.45 !important;
  color: #E6F7EE !important;
}
body.pkp_page_index.pkp_op_index .jmedica-green-card__body {
  padding: 12px 13px 14px;
  background: var(--jmedica-light);
}
body.pkp_page_index.pkp_op_index .jmedica-green-card__list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.pkp_page_index.pkp_op_index .jmedica-green-card__list li {
  margin: 0 !important;
  padding: 9px 0 9px 19px !important;
  position: relative;
  font-size: 13px !important;
  line-height: 1.45 !important;
  color: var(--jmedica-text) !important;
  border-bottom: 1px solid rgba(34, 94, 60, 0.15);
  list-style: none !important;
}
body.pkp_page_index.pkp_op_index .jmedica-green-card__list li:last-child {
  border-bottom: 0;
}
body.pkp_page_index.pkp_op_index .jmedica-green-card__list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 9px;
  color: var(--jmedica-green);
  font-weight: 700;
}
body.pkp_page_index.pkp_op_index .jmedica-green-card__list strong {
  color: var(--jmedica-text) !important;
  font-weight: 700 !important;
}
body.pkp_page_index.pkp_op_index .jmedica-green-card__note {
  margin: 8px 0 0 !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  color: #4A6857 !important;
  text-align: center;
}
body.pkp_page_index.pkp_op_index .jmedica-green-card__contact {
  display: block;
  margin: 13px 0 0;
  padding: 10px 8px;
  border-radius: 5px;
  background: var(--jmedica-green);
  color: #FFFFFF !important;
  text-align: center;
  text-decoration: none !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
}
body.pkp_page_index.pkp_op_index .jmedica-green-card__contact:hover,
body.pkp_page_index.pkp_op_index .jmedica-green-card__contact:focus {
  background: #163E29;
  color: #FFFFFF !important;
  text-decoration: underline !important;
}
body.pkp_page_index.pkp_op_index .jmedica-green-card__contact:focus-visible {
  outline: 2px solid #C5A052;
  outline-offset: 3px;
}

@media (min-width: 992px) {
  /* These are the two NEW grid children: third row, one on each side. */
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-journal-scope,
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-get-involved {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
    align-self: start !important;
    overflow: visible !important;
  }
  body.pkp_page_index.pkp_op_index #customblock-jmedica-journal-scope {
    grid-column: 1 !important;
    grid-row: 3 !important;
  }
  body.pkp_page_index.pkp_op_index #customblock-jmedica-get-involved {
    grid-column: 3 !important;
    grid-row: 3 !important;
  }
  /* Let each added card size naturally; avoids stretching into empty space. */
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-journal-scope > .content,
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-get-involved > .content,
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-journal-scope > .content > div,
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-get-involved > .content > div {
    height: auto !important;
    min-height: 0 !important;
  }
}

/* At narrow widths, blocks follow the theme's normal responsive sidebar. */
@media (max-width: 767px) {
  body.pkp_page_index.pkp_op_index .jmedica-green-card__heading {
    padding: 13px 12px;
  }
  body.pkp_page_index.pkp_op_index .jmedica-green-card__body {
    padding: 12px;
  }
}


/* ===================================================================
   12. JMEDICA HOMEPAGE — TWO COMPACT WALNUT-BROWN CARDS (VERSION 33)

   New Custom Block Manager names:
     jmedica-publication-formats  (LEFT, below emerald Journal Scope)
     jmedica-founding-issue       (RIGHT, below forest Get Involved)

   Preserve the Version 31 separator fix and ALL Version 32 styling.
   On desktop the homepage main column spans 4 rows; the bottom row
   absorbs remaining page height without separating the brown cards
   from the green panels. No new vertical lines are introduced.
   =================================================================== */

/* New cards are limited to the public homepage, matching the green panels. */
body:not(.pkp_page_index.pkp_op_index) #customblock-jmedica-publication-formats,
body:not(.pkp_page_index.pkp_op_index) #customblock-jmedica-founding-issue {
  display: none !important;
}

/* Palette: matching walnut headers, parchment backgrounds, antique gold trim. */
body.pkp_page_index.pkp_op_index .jmedica-brown-card {
  --jb-brown: #704A35;
  --jb-ink: #493426;
  --jb-cream: #FBF7F0;
  --jb-gold: #C5A052;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  border: 1px solid var(--jb-gold);
  border-radius: 8px;
  box-sizing: border-box;
  background: var(--jb-cream);
  color: var(--jb-ink);
  overflow: hidden;
  box-shadow: 0 2px 7px rgba(73, 52, 38, 0.08);
}
body.pkp_page_index.pkp_op_index .jmedica-brown-card__heading {
  padding: 12px 11px 11px;
  background: var(--jb-brown);
  border-bottom: 3px solid var(--jb-gold);
  color: #FFFDF9;
  text-align: center;
}
body.pkp_page_index.pkp_op_index .jmedica-brown-card__title {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: #FFFFFF !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}
body.pkp_page_index.pkp_op_index .jmedica-brown-card__subtitle {
  margin: 5px 0 0 !important;
  color: #F4E4CE !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}
body.pkp_page_index.pkp_op_index .jmedica-brown-card__body {
  flex: 1 1 auto;
  padding: 11px 12px 12px;
  color: var(--jb-ink);
  background: var(--jb-cream);
}
body.pkp_page_index.pkp_op_index .jmedica-brown-card__list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}
body.pkp_page_index.pkp_op_index .jmedica-brown-card__list li {
  margin: 0 !important;
  padding: 7px 0 7px 14px !important;
  position: relative;
  color: var(--jb-ink) !important;
  font-size: 12px !important;
  line-height: 1.4 !important;
  border-bottom: 1px solid #E8DDCE;
  list-style: none !important;
}
body.pkp_page_index.pkp_op_index .jmedica-brown-card__list li:last-child {
  border-bottom: 0;
}
body.pkp_page_index.pkp_op_index .jmedica-brown-card__list li::before {
  content: "\2022";
  position: absolute;
  left: 1px;
  top: 6px;
  color: #99764E;
  font-size: 17px;
  line-height: 1;
}
body.pkp_page_index.pkp_op_index .jmedica-brown-card__list strong {
  color: var(--jb-ink) !important;
  font-weight: 650 !important;
}
body.pkp_page_index.pkp_op_index .jmedica-brown-card__status {
  margin: 2px 0 9px !important;
  padding: 9px 8px;
  border-radius: 5px;
  color: var(--jb-ink) !important;
  background: #F1E8D8;
  text-align: center;
  font-size: 13px !important;
  font-weight: 700 !important;
}
body.pkp_page_index.pkp_op_index .jmedica-brown-card__text {
  margin: 0 0 9px !important;
  color: var(--jb-ink) !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  text-align: center;
}
body.pkp_page_index.pkp_op_index .jmedica-brown-card__note {
  margin: 9px 0 0 !important;
  padding-top: 9px;
  border-top: 1px solid #E8DDCE;
  color: #735D4D !important;
  font-size: 10.5px !important;
  line-height: 1.45 !important;
  text-align: center;
}

@media (min-width: 992px) {
  /* Make both block wrappers real fourth-row grid children. */
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-publication-formats,
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-founding-issue {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    align-self: start !important;
    height: auto !important;
  }
  body.pkp_page_index.pkp_op_index #customblock-jmedica-publication-formats {
    grid-column: 1 !important;
    grid-row: 4 !important;
  }
  body.pkp_page_index.pkp_op_index #customblock-jmedica-founding-issue {
    grid-column: 3 !important;
    grid-row: 4 !important;
  }
  /* Do not inherit full-height rules from OJS or the original four blocks. */
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-publication-formats > .content,
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-founding-issue > .content,
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-publication-formats > .content > div,
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-founding-issue > .content > div {
    height: auto !important;
    min-height: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 767px) {
  body.pkp_page_index.pkp_op_index .jmedica-brown-card__heading {
    padding: 12px;
  }
  body.pkp_page_index.pkp_op_index .jmedica-brown-card__body {
    padding: 12px;
  }
}


/* ===================================================================
   13. JMEDICA HOMEPAGE — MATCH BOTTOM CARD WIDTHS (VERSION 34)

   Both brown cards must occupy the same responsive desktop grid tracks
   as the green panels above them. This does not modify any journal
   content, sidebar links, the center column or the Version 31 fix.
   =================================================================== */
@media (min-width: 992px) {
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-publication-formats,
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-founding-issue {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    justify-self: stretch !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }
  body.pkp_page_index.pkp_op_index #customblock-jmedica-publication-formats > .content,
  body.pkp_page_index.pkp_op_index #customblock-jmedica-founding-issue > .content,
  body.pkp_page_index.pkp_op_index #customblock-jmedica-publication-formats > .content > *,
  body.pkp_page_index.pkp_op_index #customblock-jmedica-founding-issue > .content > *,
  body.pkp_page_index.pkp_op_index #customblock-jmedica-publication-formats .jmedica-brown-card,
  body.pkp_page_index.pkp_op_index #customblock-jmedica-founding-issue .jmedica-brown-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
}


/* ===================================================================
   14. VERSION 35 — FOUNDING ISSUE (BOTTOM RIGHT) ONLY

   Corrects a centered/narrow inner wrapper as well as the card itself,
   even when OJS adds an extra div/p around a Custom Block. Match the
   desktop right-hand sidebar above; do not touch the left brown card,
   green cards, central content, header or the Version 31 divider fix.
   =================================================================== */

@media (min-width: 992px) {
  /* Match either the standard OJS ID or the actual custom block by
     detecting the unique Founding Issue card within it. */
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-founding-issue,
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > .block_custom:has(.jmedica-brown-card--issue) {
    grid-column: 3 !important;
    grid-row: 4 !important;
    justify-self: stretch !important;
    align-self: start !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
  }

  /* Fix additional containers produced by the OJS rich-text editor.
     This is the important difference from Version 34: it corrects
     NESTED wrappers, not just the direct .content child. */
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > .block_custom:has(.jmedica-brown-card--issue) .content,
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > .block_custom:has(.jmedica-brown-card--issue) .content :is(div, p, section, figure):has(.jmedica-brown-card--issue) {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
  }

  /* The actual visible right-hand card: same width and outer margins
     as the green card directly above. The minimum height is chosen
     to match the natural height of the left Publication Formats card
     at the full desktop column size; the 35R minimum is coordinated. */
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left .jmedica-brown-card--issue {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 261px !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left .jmedica-brown-card--issue > .jmedica-brown-card__body {
    display: block !important;
    flex: 1 1 auto !important;
    padding: 11px 12px 12px !important;
    box-sizing: border-box !important;
  }
}


/* ===================================================================
   VERSION 35R — VIEWPORT-SAFE LOWER ROW

   The three-column grid now applies to laptop viewports from 992px.
   The two outer tracks scale down below 1320px instead of causing
   the Founding Issue card to fall back to OJS's narrow sidebar.
   At >=1323px the tracks are the original 258px exactly.
   Keep both bottom cards on one row and a similar minimum height.
   Homepage only. No change to Additional Content or editorial data.
   =================================================================== */
@media (min-width: 992px) and (max-width: 1319px) {
  body.pkp_page_index.pkp_op_index
    .pkp_structure_sidebar.left .jmedica-brown-card--formats,
  body.pkp_page_index.pkp_op_index
    .pkp_structure_sidebar.left .jmedica-brown-card--issue {
    min-height: 275px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}


/* ===================================================================
   JMEDICA v38 — GLOBAL MEDICAL COMMUNITY: ONE FULL-WIDTH LOWER BANNER
   Based on the user's approved 37.css (Version 35R).
   Existing rules above are retained byte-for-byte.

   Create an OJS Custom Block called jmedica-community-wide,
   disable "Show Name", and enable it in Sidebar Management.
   OJS block ID should be #customblock-jmedica-community-wide.
   A :has() fallback also supports theme variations.

   On desktop the new block alone occupies row 5, columns 1–3.
   No styles or position changes to existing green/brown/center cards.
   =================================================================== */

/* Hide the new ribbon outside the public JMedica homepage. */
body:not(.pkp_page_index.pkp_op_index) #customblock-jmedica-community-wide,
body:not(.pkp_page_index.pkp_op_index) .block_custom:has(.jm-community-banner) {
  display: none !important;
}

@media (min-width: 992px) {
  /* The existing center remains grid rows 1–4, new ribbon is row 5. */
  body.pkp_page_index.pkp_op_index .pkp_structure_content.has_sidebar {
    grid-template-rows: max-content max-content max-content minmax(0, 1fr) max-content !important;
  }

  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-community-wide,
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > .block_custom:has(.jm-community-banner) {
    grid-column: 1 / -1 !important;
    grid-row: 5 !important;
    justify-self: stretch !important;
    align-self: start !important;
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    overflow: visible !important;
    box-sizing: border-box !important;
  }

  /* Undo OJS's height:100% rules on this new block only. */
  body.pkp_page_index.pkp_op_index #customblock-jmedica-community-wide > .content,
  body.pkp_page_index.pkp_op_index .block_custom:has(.jm-community-banner) > .content,
  body.pkp_page_index.pkp_op_index #customblock-jmedica-community-wide > .content > *,
  body.pkp_page_index.pkp_op_index .block_custom:has(.jm-community-banner) > .content > * {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
  }
}

/* Banner appearance: no emoji or external icon fonts required. */
body.pkp_page_index.pkp_op_index .jm-community-banner {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 18px 20px 14px !important;
  border: 1px solid #B89854 !important;
  border-radius: 9px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  color: #F6F9FC !important;
  background: linear-gradient(110deg, #092A51 0%, #123E69 52%, #174B61 100%) !important;
  box-shadow: 0 4px 12px rgba(18, 44, 75, .11) !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

body.pkp_page_index.pkp_op_index .jm-community-banner__intro {
  text-align: center !important;
}
body.pkp_page_index.pkp_op_index .jm-community-banner__eyebrow {
  margin: 0 0 4px !important;
  padding: 0 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: 1.5px !important;
  color: #E6C984 !important;
}
body.pkp_page_index.pkp_op_index .jm-community-banner__intro h2 {
  margin: 0 0 5px !important;
  padding: 0 !important;
  border: 0 !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: clamp(18px, 2vw, 23px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  color: #FFFFFF !important;
  text-align: center !important;
}
body.pkp_page_index.pkp_op_index .jm-community-banner__lead {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  color: #E2ECF4 !important;
  text-align: center !important;
}
body.pkp_page_index.pkp_op_index .jm-community-banner__institutions {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 9px !important;
  margin: 14px 0 10px !important;
  padding: 0 !important;
}
body.pkp_page_index.pkp_op_index .jm-community-banner__institution {
  display: flex !important;
  gap: 9px !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 8px 7px !important;
  border: 1px solid rgba(236, 210, 156, .52) !important;
  border-radius: 7px !important;
  background: rgba(255,255,255,.08) !important;
  color: #FFFFFF !important;
  box-sizing: border-box !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-align: left !important;
}
body.pkp_page_index.pkp_op_index .jm-community-banner__institution > span:last-child {
  color: #FFFFFF !important;
}
body.pkp_page_index.pkp_op_index .jm-community-banner__initial {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  flex: 0 0 28px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  background: #DFC080 !important;
  color: #0F355D !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
}
body.pkp_page_index.pkp_op_index .jm-community-banner__people {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 4px 10px !important;
  align-items: baseline !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 8px 0 0 !important;
  border-top: 1px solid rgba(220, 188, 117, .48) !important;
  text-align: center !important;
  color: #E2EDF6 !important;
  font-size: 11.5px !important;
  line-height: 1.5 !important;
}
body.pkp_page_index.pkp_op_index .jm-community-banner__people strong {
  color: #F1D79A !important;
  font-weight: 700 !important;
}
body.pkp_page_index.pkp_op_index .jm-community-banner__people span {
  color: #E2EDF6 !important;
}
body.pkp_page_index.pkp_op_index .jm-community-banner__people b {
  color: #D2AC62 !important;
  font-weight: 700 !important;
  padding: 0 3px !important;
}

@media (min-width: 768px) and (max-width: 1099px) {
  body.pkp_page_index.pkp_op_index .jm-community-banner__institutions {
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  }
}
@media (max-width: 767px) {
  body.pkp_page_index.pkp_op_index .jm-community-banner {
    padding: 16px 12px 13px !important;
  }
  body.pkp_page_index.pkp_op_index .jm-community-banner__institutions {
    grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    gap: 7px !important;
  }
  body.pkp_page_index.pkp_op_index .jm-community-banner__institution {
    font-size: 11px !important;
    justify-content: flex-start !important;
  }
}


/* ===================================================================
   JMEDICA VERSION 39 — REDUCE GAP ABOVE FULL-WIDTH COMMUNITY BANNER

   Narrowly scoped: changes the new banner wrapper only, not any of
   the original sidebar, middle infographic, editor block, or footer.
   The preceding grid's fourth row reserves more whitespace than the
   visible panels use on desktop; a modest negative top margin draws
   the banner into that unused area. Because this is a grid margin,
   the grid's overall vertical contribution is also reduced.
   Never apply this overlap correction in the stacked/mobile layout.
   =================================================================== */
@media (min-width: 992px) {
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > #customblock-jmedica-community-wide,
  body.pkp_page_index.pkp_op_index .pkp_structure_sidebar.left > .block_custom:has(.jm-community-banner) {
    margin-top: calc(clamp(-78px, -6vw, -44px) - 18px) !important;
    margin-bottom: 0 !important;
  }
}

@media (max-width: 991px) {
  body.pkp_page_index.pkp_op_index #customblock-jmedica-community-wide,
  body.pkp_page_index.pkp_op_index .block_custom:has(.jm-community-banner) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* Version 40 adjusts only the desktop banner top offset by another 18px. */

/* ========================================================================
   JMEDICA 42 — COMPACT EMERALD / GOLD FOOTER
   Based on approved 40.css. Version 41's grid styles are NOT included.
   Corrects the actual OJS DOM order: branding may precede footer content.
   Footer only; no sidebar, infographic, community banner or card changes.
   ======================================================================== */

.pkp_structure_footer_wrapper {
  background: linear-gradient(112deg, #164A42 0%, #1D6358 55%, #267466 100%) !important;
  color: #FFFFFF !important;
  border-top: 3px solid #C8A864 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Important: flex + explicit ordering prevents the OJS brand from taking
   the large left-hand column and squeezing contacts into the right edge. */
.pkp_structure_footer_wrapper .pkp_structure_footer {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 18px !important;
  width: 100% !important;
  max-width: 1320px !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 auto !important;
  padding: 13px 22px !important;
  box-sizing: border-box !important;
  background: transparent !important;
}

.pkp_structure_footer_wrapper .pkp_footer_content {
  order: 1 !important;
  display: block !important;
  float: none !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  text-align: center !important;
  color: #FFFFFF !important;
  font: 12px/1.45 Arial, Helvetica, sans-serif !important;
}

.pkp_structure_footer_wrapper .pkp_footer_content p {
  margin: 0 auto 3px !important;
  padding: 0 !important;
  color: #FFFFFF !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  text-align: center !important;
}
.pkp_structure_footer_wrapper .pkp_footer_content p:last-child {
  margin-bottom: 0 !important;
  color: #F2D69C !important;
  font-size: 11px !important;
}
.pkp_structure_footer_wrapper .pkp_footer_content :is(div,span,strong,b,small) {
  color: inherit !important;
}
.pkp_structure_footer_wrapper .pkp_footer_content :is(a,a:visited) {
  color: #FFE4A8 !important;
  text-decoration: none !important;
  overflow-wrap: anywhere !important;
}
.pkp_structure_footer_wrapper .pkp_footer_content a:hover,
.pkp_structure_footer_wrapper .pkp_footer_content a:focus-visible {
  text-decoration: underline !important;
  color: #FFFFFF !important;
}

.pkp_structure_footer_wrapper .pkp_brand_footer {
  order: 2 !important;
  display: flex !important;
  float: none !important;
  flex: 0 0 138px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 138px !important;
  max-width: 138px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 0 0 15px !important;
  border-left: 1px solid rgba(242,214,156,.65) !important;
  box-sizing: border-box !important;
  background: transparent !important;
}
.pkp_structure_footer_wrapper .pkp_brand_footer a {
  display: block !important;
  float: none !important;
  width: 100% !important;
  max-width: 120px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 0 !important;
}
.pkp_structure_footer_wrapper .pkp_brand_footer img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 65px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
}

@media (max-width: 767px) {
  .pkp_structure_footer_wrapper .pkp_structure_footer {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    padding: 14px 12px 12px !important;
  }
  .pkp_structure_footer_wrapper .pkp_footer_content {
    flex: 0 1 auto !important;
    width: 100% !important;
    font-size: 11.5px !important;
  }
  .pkp_structure_footer_wrapper .pkp_footer_content p {
    font-size: 11.5px !important;
    margin-bottom: 5px !important;
  }
  .pkp_structure_footer_wrapper .pkp_brand_footer {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: none !important;
    padding: 10px 0 0 !important;
    border-left: 0 !important;
    border-top: 1px solid rgba(242,214,156,.65) !important;
  }
  .pkp_structure_footer_wrapper .pkp_brand_footer a {
    max-width: 105px !important;
  }
  .pkp_structure_footer_wrapper .pkp_brand_footer img {
    max-height: 46px !important;
  }
}


/* ================================================================
   JMEDICA 43 — ABOUT THE JOURNAL ONLY
   Based on working Version 41. No homepage/global changes.
   Targets OJS About landing page (/jmedica/about), not subpages.
   ================================================================ */
@media (min-width: 768px) {
  body.pkp_page_about.pkp_op_index .pkp_structure_content.has_sidebar > .pkp_structure_sidebar,
  body.pkp_page_about.pkp_op_index .pkp_structure_content > .pkp_structure_sidebar {
    display: none !important;
  }

  body.pkp_page_about.pkp_op_index .pkp_structure_content.has_sidebar {
    display: block !important;
  }

  body.pkp_page_about.pkp_op_index .pkp_structure_content > .pkp_structure_main {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  body.pkp_page_about.pkp_op_index .pkp_structure_main::after {
    display: none !important;
  }
}

/* Avoid narrow internal content containers on the About landing page. */
body.pkp_page_about.pkp_op_index .page_about,
body.pkp_page_about.pkp_op_index .page_about .description {
  max-width: 100% !important;
  box-sizing: border-box !important;
}

/* ================================================================
   JMEDICA 44 — PREMIUM ABOUT LANDING PAGE
   Additive enhancement to approved 43; only /jmedica/about.
   No changes to homepage, other About subpages, navigation or footer.
   ================================================================ */
body.pkp_page_about.pkp_op_index {
  --jm44-navy: #122c4a;
  --jm44-gold: #b8944f;
  --jm44-ink: #273c53;
  --jm44-muted: #596c80;
}

/* Preserve the full-width layout but give the text room to breathe. */
body.pkp_page_about.pkp_op_index .pkp_structure_main {
  padding-bottom: 42px !important;
}
body.pkp_page_about.pkp_op_index .page_about {
  color: var(--jm44-ink);
  font-family: Arial, Helvetica, sans-serif;
}
body.pkp_page_about.pkp_op_index .page_about > h1,
body.pkp_page_about.pkp_op_index .pkp_structure_main > h1 {
  font-family: Georgia, 'Times New Roman', serif !important;
  color: var(--jm44-navy) !important;
  font-size: clamp(26px, 2.5vw, 37px) !important;
  line-height: 1.22 !important;
  letter-spacing: -.5px;
  padding-bottom: 15px !important;
  margin-bottom: 24px !important;
  border-bottom: 2px solid var(--jm44-gold) !important;
}

/* The existing HTML remains intact: improve its hierarchy, not its wording. */
body.pkp_page_about.pkp_op_index .page_about .description {
  font-size: 15px !important;
  line-height: 1.78 !important;
  color: var(--jm44-ink) !important;
  overflow-wrap: break-word;
}
body.pkp_page_about.pkp_op_index .page_about .description h2,
body.pkp_page_about.pkp_op_index .page_about .description h3 {
  font-family: Georgia, 'Times New Roman', serif !important;
  color: var(--jm44-navy) !important;
  line-height: 1.3 !important;
  letter-spacing: -.25px;
}
body.pkp_page_about.pkp_op_index .page_about .description h2 {
  font-size: clamp(23px, 2.2vw, 31px) !important;
}
body.pkp_page_about.pkp_op_index .page_about .description h3 {
  font-size: clamp(18px, 1.65vw, 23px) !important;
}
body.pkp_page_about.pkp_op_index .page_about .description p,
body.pkp_page_about.pkp_op_index .page_about .description li {
  line-height: 1.75 !important;
}
body.pkp_page_about.pkp_op_index .page_about .description p {
  margin-bottom: 14px !important;
}
body.pkp_page_about.pkp_op_index .page_about .description a {
  color: #145b83 !important;
  text-underline-offset: 3px;
}
body.pkp_page_about.pkp_op_index .page_about .description a:hover {
  color: #0c3559 !important;
}

/* Turn existing inline-styled section panels into restrained editorial cards.
   Only direct content panels are targeted; nested infographic columns remain. */
body.pkp_page_about.pkp_op_index .page_about .description > div[style*="border"],
body.pkp_page_about.pkp_op_index .page_about .description > section {
  border: 1px solid #dce5ed !important;
  border-top: 3px solid var(--jm44-gold) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 8px 25px rgba(20, 44, 73, .065) !important;
  padding: clamp(18px, 2.3vw, 30px) !important;
  margin: 0 0 22px !important;
  box-sizing: border-box !important;
}

/* The introductory panel is a distinguished feature, not another plain box. */
body.pkp_page_about.pkp_op_index .page_about .description > div[style*="border"]:first-child {
  background: linear-gradient(145deg, #f6f9fc 0%, #ffffff 80%) !important;
  border-top: 4px solid var(--jm44-gold) !important;
  box-shadow: 0 12px 32px rgba(20, 44, 73, .085) !important;
}

/* Gentle visual rhythm for headings and scope lists. */
body.pkp_page_about.pkp_op_index .page_about .description ul,
body.pkp_page_about.pkp_op_index .page_about .description ol {
  padding-left: 24px;
  margin-bottom: 16px;
}
body.pkp_page_about.pkp_op_index .page_about .description li {
  padding-left: 3px;
  margin-bottom: 6px;
}
body.pkp_page_about.pkp_op_index .page_about .description strong {
  color: #183c60;
}
body.pkp_page_about.pkp_op_index .page_about .description img {
  max-width: 100% !important;
  height: auto !important;
}

@media (max-width: 767px) {
  body.pkp_page_about.pkp_op_index .page_about > h1,
  body.pkp_page_about.pkp_op_index .pkp_structure_main > h1 {
    margin-bottom: 18px !important;
  }
  body.pkp_page_about.pkp_op_index .page_about .description {
    font-size: 14px !important;
    line-height: 1.65 !important;
  }
  body.pkp_page_about.pkp_op_index .page_about .description > div[style*="border"],
  body.pkp_page_about.pkp_op_index .page_about .description > section {
    padding: 17px 15px !important;
    margin-bottom: 16px !important;
    border-radius: 9px !important;
  }
}

/* ========================================================================
   JMEDICA 45 — PREMIUM INTERNATIONAL EDITORIAL ABOUT PAGE
   Additive to Version 44. Scoped exclusively to About landing page.
   Existing journal content is retained; optional jm45-* classes enable
   true 2-column layouts if the About HTML is edited in OJS later.
   ======================================================================== */
body.pkp_page_about.pkp_op_index {
  --jm45-navy:#102b4c; --jm45-navy2:#1b476c;
  --jm45-gold:#c5a052; --jm45-ink:#23394e;
  --jm45-line:#e1e8ef;
}
/* More usable desktop width; do not change the homepage grid. */
@media (min-width: 992px) {
  body.pkp_page_about.pkp_op_index .pkp_structure_page {
    width:calc(100% - 44px) !important;
    max-width:1440px !important;
    margin-inline:auto !important;
  }
  body.pkp_page_about.pkp_op_index .pkp_structure_content,
  body.pkp_page_about.pkp_op_index .pkp_structure_main,
  body.pkp_page_about.pkp_op_index .page_about,
  body.pkp_page_about.pkp_op_index .page_about .description {
    width:100% !important; max-width:none !important;
    min-width:0 !important; box-sizing:border-box !important;
  }
  body.pkp_page_about.pkp_op_index .pkp_structure_main {
    padding-left:clamp(20px,3vw,52px) !important;
    padding-right:clamp(20px,3vw,52px) !important;
  }
}
body.pkp_page_about.pkp_op_index .page_about .description {
  font-size:16px !important;
  line-height:1.75 !important;
  color:var(--jm45-ink) !important;
}
body.pkp_page_about.pkp_op_index .page_about > h1,
body.pkp_page_about.pkp_op_index .pkp_structure_main > h1 {
  font-size:clamp(29px,3vw,42px) !important;
  letter-spacing:-.025em !important;
  border-bottom:0 !important;
  position:relative;
  padding-bottom:19px !important;
}
body.pkp_page_about.pkp_op_index .page_about > h1::after,
body.pkp_page_about.pkp_op_index .pkp_structure_main > h1::after {
  content:""; position:absolute; left:0; bottom:0;
  width:72px; height:3px; border-radius:3px;
  background:var(--jm45-gold);
}
/* Make panels look like editorial sections, not stacked forms. */
body.pkp_page_about.pkp_op_index .page_about .description > div[style*="border"],
body.pkp_page_about.pkp_op_index .page_about .description > section {
  border:1px solid var(--jm45-line) !important;
  border-top:0 !important;
  border-radius:16px !important;
  background:#fff !important;
  padding:clamp(22px,2.7vw,38px) !important;
  margin-bottom:22px !important;
  box-shadow:0 9px 30px rgba(16,43,76,.065) !important;
}
/* First bordered section becomes a strong journal hero. */
body.pkp_page_about.pkp_op_index .page_about .description > div[style*="border"]:first-child,
body.pkp_page_about.pkp_op_index .page_about .description > section:first-child {
  background:linear-gradient(122deg,#102b4c 0%,#174267 65%,#23526a 100%) !important;
  color:#f5f8fb !important;
  border:1px solid #ad925e !important;
  border-radius:18px !important;
  box-shadow:0 16px 42px rgba(16,43,76,.17) !important;
  padding:clamp(26px,4vw,52px) !important;
}
body.pkp_page_about.pkp_op_index .page_about .description > div[style*="border"]:first-child :is(h2,h3,h4,strong,b),
body.pkp_page_about.pkp_op_index .page_about .description > section:first-child :is(h2,h3,h4,strong,b) {
  color:#f3d99f !important;
}
body.pkp_page_about.pkp_op_index .page_about .description > div[style*="border"]:first-child :is(p,li,span),
body.pkp_page_about.pkp_op_index .page_about .description > section:first-child :is(p,li,span) {
  color:#f2f6fa !important;
}
body.pkp_page_about.pkp_op_index .page_about .description > div[style*="border"]:first-child a,
body.pkp_page_about.pkp_op_index .page_about .description > section:first-child a {
  color:#f3d99f !important;
}
/* A refined rhythm for subsections and discipline lists. */
body.pkp_page_about.pkp_op_index .page_about .description :is(h2,h3) {
  color:var(--jm45-navy) !important;
  letter-spacing:-.018em !important;
}
body.pkp_page_about.pkp_op_index .page_about .description li {
  margin-bottom:9px !important;
}
body.pkp_page_about.pkp_op_index .page_about .description :is(ul,ol) {
  padding-left:1.45em !important;
}
/* Opt-in structural classes for an actual HTML redesign, without
   moving or hiding any existing content automatically. */
body.pkp_page_about.pkp_op_index .jm45-hero {
  background:linear-gradient(125deg,#102b4c,#1b4b70) !important;
  color:#fff !important; padding:clamp(30px,5vw,62px) !important;
  border-radius:18px !important; border:1px solid #c5a052 !important;
}
body.pkp_page_about.pkp_op_index .jm45-hero :is(h2,h3,strong) {color:#f0d393 !important;}
body.pkp_page_about.pkp_op_index .jm45-hero :is(p,span) {color:#f4f7fb !important;}
body.pkp_page_about.pkp_op_index .jm45-two-col {
  display:grid !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:20px !important; margin:0 0 24px !important;
}
body.pkp_page_about.pkp_op_index .jm45-two-col > * {
  min-width:0 !important; margin:0 !important;
  border:1px solid var(--jm45-line) !important;
  border-radius:14px !important; padding:25px !important;
  background:#fff !important; box-shadow:0 8px 24px rgba(16,43,76,.055) !important;
}
body.pkp_page_about.pkp_op_index .jm45-scope-grid {
  display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  gap:12px !important; list-style:none !important; padding:0 !important;
}
body.pkp_page_about.pkp_op_index .jm45-scope-grid > li {
  list-style:none !important; margin:0 !important;
  border:1px solid #e0e9f0 !important; border-radius:10px !important;
  padding:14px 16px !important; background:#f6f9fc !important;
  font-weight:600 !important; color:#173a59 !important;
}
body.pkp_page_about.pkp_op_index .jm45-closing {
  background:linear-gradient(115deg,#102b4c,#174a63) !important;
  border:1px solid #c5a052 !important; border-radius:14px !important;
  padding:24px !important; text-align:center !important; color:#fff !important;
}
body.pkp_page_about.pkp_op_index .jm45-closing :is(h2,h3) {color:#efd59b !important;}
body.pkp_page_about.pkp_op_index .jm45-closing :is(p,span) {color:#fff !important;}
@media (max-width:767px) {
  body.pkp_page_about.pkp_op_index .page_about .description {font-size:15px !important;}
  body.pkp_page_about.pkp_op_index .jm45-two-col,
  body.pkp_page_about.pkp_op_index .jm45-scope-grid {grid-template-columns:1fr !important;}
  body.pkp_page_about.pkp_op_index .page_about .description > div[style*="border"],
  body.pkp_page_about.pkp_op_index .page_about .description > section {padding:20px 17px !important;}
}
@media (min-width:768px) and (max-width:1050px) {
  body.pkp_page_about.pkp_op_index .jm45-scope-grid {grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}



/* ==============================================================
 JMEDICA VERSION 46 — SIGNATURE EDITORIAL ABOUT PAGE
 Opt-in .jm46 only. No homepage / other pages changed.
 =============================================================== */
body.pkp_page_about.pkp_op_index .page_about .description:has(.jm46) {max-width:100%!important;padding:0!important;background:transparent!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 {--navy:#0c2744;--gold:#c7a46a;--ink:#233a50;--pale:#f5f8fb;max-width:1180px;margin:0 auto 36px;font-family:Arial,Helvetica,sans-serif;color:var(--ink);font-size:16px;line-height:1.65}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 *{box-sizing:border-box}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 > section,
body.pkp_page_about.pkp_op_index .page_about .description .jm46 > div{border:0!important;border-radius:0!important;box-shadow:none!important;margin:0!important;background:transparent!important;padding:0!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 h2,
body.pkp_page_about.pkp_op_index .page_about .description .jm46 h3{border:0!important;padding:0!important;margin:0 0 12px!important;line-height:1.2!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 p{margin:0 0 15px!important;font-size:inherit!important;line-height:1.7!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(220px,.8fr);align-items:center;gap:26px;background:linear-gradient(120deg,#081d35,#123b5d 72%,#1a5366)!important;color:white!important;border-radius:22px!important;padding:clamp(30px,5vw,70px)!important;box-shadow:0 22px 55px rgba(10,38,68,.2)!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-hero:before{content:'';position:absolute;right:-100px;top:-180px;width:480px;height:480px;border:1px solid rgba(226,198,139,.16);border-radius:50%;pointer-events:none}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-kicker{display:block;font-size:11px!important;font-weight:700;letter-spacing:2.3px;color:#ead09a!important;text-transform:uppercase;margin-bottom:20px}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-hero h2{font-family:Georgia,serif!important;font-size:clamp(32px,4vw,58px)!important;line-height:1.12!important;color:white!important;letter-spacing:-.035em!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-hero h2 em{font-style:normal;color:#e8c98b!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-hero p{color:#e3ebf3!important;max-width:600px;font-size:16px!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-hero-art{width:100%;max-width:340px;justify-self:center;filter:drop-shadow(0 15px 18px rgba(0,0,0,.15))}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-hero-art svg{width:100%;height:auto;display:block}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:0;background:#f5f7f9!important;border:1px solid #e4e9ee!important;border-radius:0 0 16px 16px!important;margin:-8px 20px 40px!important;padding:24px 18px 18px!important;text-align:center}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-strip span{font-size:12px;color:#506579!important;letter-spacing:.4px;text-transform:uppercase;font-weight:700;border-right:1px solid #d9e2e9;padding:8px}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-strip span:last-child{border:0}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-intro{max-width:830px;margin:0 auto 44px!important;text-align:center}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-eyebrow{font-size:12px!important;letter-spacing:2px;font-weight:700;text-transform:uppercase;color:#a07b43!important;margin:0 0 12px!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-section-title{font-family:Georgia,serif!important;color:#102d4c!important;font-size:clamp(27px,3vw,39px)!important;letter-spacing:-.02em!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin:0 0 54px!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-card{background:#fff!important;border:1px solid #e0e7ee!important;border-radius:16px!important;padding:32px!important;box-shadow:0 10px 28px rgba(17,47,77,.055)!important;min-width:0}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-symbol{width:52px;height:52px;border-radius:14px;background:#f0e7d5!important;color:#775726!important;display:flex;align-items:center;justify-content:center;margin-bottom:22px;font-size:27px;font-weight:700}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-card h3{font-family:Georgia,serif!important;font-size:27px!important;color:#123653!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-scope{background:#f4f7fa!important;border-radius:20px!important;padding:clamp(24px,4vw,50px)!important;margin:0 0 50px!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-scope-head{text-align:center;max-width:750px;margin:0 auto 26px}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-discipline{background:white!important;border:1px solid #e3eaf0!important;border-radius:12px!important;padding:22px!important;min-height:135px}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-discipline .jm46-glyph{display:block;font-size:25px;color:#a17c42!important;margin-bottom:10px}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-discipline strong{display:block;color:#183a58!important;font-size:16px}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-discipline small{display:block;color:#607387!important;font-size:13px;line-height:1.5;margin-top:6px}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-values{display:grid;grid-template-columns:1fr 1fr;gap:36px;align-items:start;margin:0 0 50px!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-values ul{padding-left:21px!important;margin:12px 0!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-values li{padding:5px 0!important;color:#334e65!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-quote{background:#f9f4eb!important;border-left:4px solid #c7a46a!important;border-radius:0 15px 15px 0!important;padding:28px!important;font-family:Georgia,serif;font-size:22px;line-height:1.5;color:#25425b!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-close{background:linear-gradient(120deg,#0c2846,#164764)!important;border-radius:18px!important;padding:38px!important;text-align:center;color:white!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-close h2{font-family:Georgia,serif!important;font-size:32px!important;color:#f2d59a!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-close p{color:#e7edf3!important;max-width:700px;margin:0 auto!important}
@media(max-width:800px){body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-hero{grid-template-columns:1fr!important;text-align:center;padding:30px 22px!important}body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-hero-art{max-width:220px}body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-pair,body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-values{grid-template-columns:1fr!important;gap:15px}body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-strip{margin:-6px 10px 30px!important}}
@media(max-width:480px){body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-grid{grid-template-columns:1fr}body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-strip{grid-template-columns:1fr}body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-strip span{border-right:0;border-bottom:1px solid #d9e2e9}body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-card{padding:24px!important}}

/* ============================================================
   JMEDICA V47 — ABOUT PAGE COLOUR REFRESH ONLY
   Retains all V46 styling and homepage layout unchanged.
   ============================================================ */
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-pair > .jm46-card:first-child {
  background:#E0F2FE!important;border:1px solid #7DD3FC!important;
  box-shadow:0 10px 26px rgba(3,105,161,.08)!important;
}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-pair > .jm46-card:first-child .jm46-symbol {background:#BAE6FD!important;color:#0369A1!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-pair > .jm46-card:first-child h3 {color:#075985!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-pair > .jm46-card:first-child p {color:#164E63!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-pair > .jm46-card:nth-child(2) {
  background:#FFF1CC!important;border:1px solid #E9C46A!important;
  box-shadow:0 10px 26px rgba(154,103,0,.07)!important;
}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-pair > .jm46-card:nth-child(2) .jm46-symbol {background:#FCE3A2!important;color:#9A6700!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-pair > .jm46-card:nth-child(2) h3 {color:#7C5300!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-pair > .jm46-card:nth-child(2) p {color:#624A17!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-scope {background:#E8F7EF!important;border:1px solid #B9E5CD!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-scope .jm46-section-title {color:#166534!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-scope .jm46-eyebrow {color:#177245!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-scope .jm46-discipline {background:#FFFFFF!important;border:1px solid #C5E8D5!important;box-shadow:0 5px 16px rgba(22,101,52,.045)!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-scope .jm46-discipline .jm46-glyph {color:#177245!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-values {background:#F0EAFE!important;border:1px solid #D8C9FA!important;border-radius:20px!important;padding:clamp(22px,3vw,38px)!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-values .jm46-section-title {color:#5B21B6!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-values .jm46-eyebrow {color:#6D28D9!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-values p, body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-values li {color:#45376C!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-values .jm46-quote {background:#FFFFFF!important;border-left:4px solid #A78BFA!important;color:#4C1D95!important;box-shadow:0 5px 20px rgba(91,33,182,.06)!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-close {background:linear-gradient(120deg,#102B58,#174477)!important;border:1px solid #CBA85C!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-close h2 {color:#F4CE78!important}
body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-close p {color:#FFFFFF!important}
@media(max-width:800px){body.pkp_page_about.pkp_op_index .page_about .description .jm46 .jm46-values {padding:22px!important}}

/* ======================================================================
   JMEDICA V64 — ABOUT PAGE RESTORATION
   Removed the unapproved V48 globally scoped .jm46 colour overrides.
   V47 About styling above remains intact, along with all the approved
   editor-page changes through corrected V63 below.
   ====================================================================== */

/* =============================================================
   JMEDICA V49 — FOUNDING EDITOR MESSAGE PAGE ONLY
   Add <div id="jmedica-editor-message"></div> at the beginning
   of the custom page's HTML content. This unique marker prevents
   changes to the homepage and every other journal page.
   ============================================================= */
@supports selector(body:has(#jmedica-editor-message)) {
  body:has(#jmedica-editor-message) .pkp_structure_content > .pkp_structure_sidebar,
  body:has(#jmedica-editor-message) .pkp_structure_sidebar {
    display: none !important;
  }
  body:has(#jmedica-editor-message) .pkp_structure_content,
  body:has(#jmedica-editor-message) .pkp_structure_content.has_sidebar {
    display: block !important;
    max-width: 1180px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body:has(#jmedica-editor-message) .pkp_structure_main {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 28px clamp(16px, 4vw, 55px) 55px !important;
    box-sizing: border-box !important;
  }
  body:has(#jmedica-editor-message) .pkp_structure_main h1 {
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(27px, 3.5vw, 41px) !important;
    color: #102b58 !important;
    line-height: 1.25 !important;
    margin-bottom: 26px !important;
  }
  body:has(#jmedica-editor-message) .pkp_structure_main p {
    font-size: 16px;
    line-height: 1.8;
  }
  body:has(#jmedica-editor-message) .pkp_structure_main img {
    max-width: 100%;
    height: auto;
    border-radius: 15px;
  }
}

/* JMEDICA V50: editorial message design, scoped to its unique content marker */
.jm-editor50 {color:#253449;font-family:Arial,Helvetica,sans-serif;max-width:1100px;margin:0 auto;}
.jm-editor50 .jm-editor50-lead {display:grid;grid-template-columns:minmax(235px,310px) minmax(0,1fr);gap:clamp(22px,3.5vw,48px);align-items:start;}
.jm-editor50 .jm-editor50-profile {background:#f2f6fc;border:1px solid #dce6f2;border-radius:18px;padding:18px;box-shadow:0 10px 28px rgba(12,37,73,.07);}
.jm-editor50 .jm-editor50-profile img {display:block;width:100%;height:auto;max-height:420px;object-fit:cover;object-position:top center;border-radius:12px;}
.jm-editor50 .jm-editor50-profile h2 {font:700 22px/1.3 Georgia,serif;color:#102b58;margin:18px 0 7px;}
.jm-editor50 .jm-editor50-profile p {font-size:14px!important;line-height:1.65!important;margin:8px 0;color:#3b4c60;}
.jm-editor50 .jm-editor50-profile .jm-editor50-role {color:#936a19;font-weight:700;}
.jm-editor50 .jm-editor50-letter {min-width:0;}
.jm-editor50 .jm-editor50-kicker {font-size:12px!important;letter-spacing:1.5px;font-weight:700;color:#9c751f;}
.jm-editor50 .jm-editor50-letter h2 {font:700 clamp(25px,3vw,35px)/1.23 Georgia,serif;color:#102b58;margin:8px 0 23px;}
.jm-editor50 .jm-editor50-letter h3 {font:700 20px/1.35 Georgia,serif;color:#174477;margin:24px 0 9px;}
.jm-editor50 .jm-editor50-letter p {font-size:16px!important;line-height:1.8!important;margin:0 0 16px;}
.jm-editor50 .jm-editor50-emphasis {background:#edf5ff;border-left:4px solid #c9a34c;padding:15px 18px;font-weight:700;color:#102b58;}
.jm-editor50 .jm-editor50-signature {border-top:1px solid #d8e1ec;padding-top:17px;margin-top:24px!important;}
@media(max-width:720px){.jm-editor50 .jm-editor50-lead{grid-template-columns:1fr;}.jm-editor50 .jm-editor50-profile{max-width:420px;margin:auto;}.jm-editor50 .jm-editor50-profile img{max-height:350px;object-fit:contain;background:#e5eaf1;}}

/* V51 — editorial message ONLY: remove legacy OJS column separators and expand width.
   Uses a content marker; no homepage or other-page rules are changed. */
@supports selector(body:has(#jmedica-editor-message)) {
  @media (min-width: 768px) {
    body:has(#jmedica-editor-message) .pkp_structure_page {max-width: 1440px !important; width: calc(100% - 48px) !important; margin-inline: auto !important;}
    body:has(#jmedica-editor-message) .pkp_structure_content,
    body:has(#jmedica-editor-message) .pkp_structure_content.has_sidebar {display: block !important; width: 100% !important; max-width: none !important; border: 0 !important; box-shadow: none !important; background-image: none !important;}
    body:has(#jmedica-editor-message) .pkp_structure_main {float: none !important; display: block !important; width: 100% !important; max-width: none !important; min-width: 0 !important; margin: 0 !important; padding: 30px clamp(20px,4vw,65px) 60px !important; border: 0 !important; box-shadow: none !important; background-image: none !important;}
  }
  body:has(#jmedica-editor-message) .pkp_structure_content::before,
  body:has(#jmedica-editor-message) .pkp_structure_content::after,
  body:has(#jmedica-editor-message) .pkp_structure_main::before,
  body:has(#jmedica-editor-message) .pkp_structure_main::after {content: none !important; display: none !important; border: 0 !important;}
  body:has(#jmedica-editor-message) .pkp_structure_sidebar,
  body:has(#jmedica-editor-message) .pkp_structure_sidebar.left,
  body:has(#jmedica-editor-message) .pkp_structure_sidebar.right {display: none !important;}
  body:has(#jmedica-editor-message) .jm-editor50 {width: 100% !important; max-width: 1180px !important; margin-inline: auto !important;}
}

/* ================================================================
   JMEDICA V54 — FOUNDING EDITOR MESSAGE ONLY
   Enhances the existing V50 profile/letter design. All selectors are
   limited to the unique editor-message page content. Home unchanged.
   ================================================================ */
@supports selector(body:has(#jmedica-editor-message)) {
  body:has(#jmedica-editor-message) .jm-editor50 {
    max-width: 1240px !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-lead {
    display: grid !important;
    grid-template-columns: minmax(245px, 28fr) minmax(0, 72fr) !important;
    gap: clamp(26px, 3.5vw, 48px) !important;
    align-items: start !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile {
    border: 1px solid #d8e3f1 !important;
    border-radius: 20px !important;
    padding: 20px !important;
    background: linear-gradient(180deg,#f3f7fc 0%,#fff 100%) !important;
    box-shadow: 0 10px 28px rgba(16,43,88,.07) !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile img {
    width: 100% !important;
    max-height: 390px !important;
    object-fit: cover !important;
    object-position: center 20% !important;
    border-radius: 12px !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile h2 {
    font-size: clamp(19px,1.7vw,23px) !important;
    margin-top: 18px !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile p {
    font-size: 14px !important;
    line-height: 1.7 !important;
  }
  /* Awards and mentorship panel beneath the existing portrait and biography. */
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile::after {
    content: "AWARDS & INTERNATIONAL RECOGNITION\A\A Recipient of national and international innovation awards, including Gold, Silver and Bronze distinctions.\A\A BEYOND CONVENTIONAL THINKING\A\A Think Beyond Boundaries. Stand Up to Be Counted.\A\A I believe physicians must go beyond treating illness: question assumptions, imagine better solutions and turn original ideas into responsible innovations.\A\A My ambition is to inspire physician-innovators whose work can improve healthcare and help save millions of lives.\A\A RESEARCH • MENTORSHIP • INNOVATION\A\A Imagine boldly. Innovate responsibly. Make an impact.\A\A editorial@jmedica.us";
    white-space: pre-line;
    display: block;
    margin-top: 20px;
    padding: 17px 14px;
    border-top: 3px solid #d1aa54;
    border-radius: 10px;
    background: #102b58;
    color: #fff;
    font: 500 13px/1.65 Arial,Helvetica,sans-serif;
    overflow-wrap: anywhere;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter h2 {
    font-size: clamp(27px,2.7vw,37px) !important;
    line-height: 1.26 !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter h3 {
    font-size: clamp(19px,1.6vw,22px) !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter p {
    font-size: 16.5px !important;
    line-height: 1.85 !important;
  }
  @media(max-width:760px) {
    body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-lead {
      grid-template-columns: 1fr !important;
    }
    body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile {
      width: 100% !important;
      max-width: 420px !important;
      box-sizing: border-box !important;
      margin: 0 auto 10px !important;
    }
    body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile img {
      max-height: 360px !important;
      object-fit: contain !important;
    }
  }
}

/* V56 — replace repeated right-side personal signature with journal contact panel.
   Only on the Founding Editor-in-Chief message page. */
@supports selector(body:has(#jmedica-editor-message)) {
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-signature {
    font-size: 0 !important;
    line-height: 0 !important;
    margin-top: 24px !important;
    border-top: 0 !important;
    padding: 0 !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-signature * {
    display: none !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-signature::after {
    content: "JMEDICA — JOURNAL INFORMATION & CONTACT\A Journal of Medical Innovations & Clinical Advances\A Advancing Medical Knowledge. Inspiring Innovation.\A\A EDITORIAL OFFICE\A editorial@jmedica.us\A contact@jmedica.us\A jmedica.publications@gmail.com\A\A WHATSAPP / PHONE\A +1 929 630 2323   |   +92 370 835 2374\A\A OFFICIAL WEBSITE\A https://journal.jmedica.us/index.php/jmedica";
    display: block !important;
    white-space: pre-line !important;
    background: #102b58 !important;
    color: #fff !important;
    border-left: 4px solid #d1aa54 !important;
    border-radius: 12px !important;
    padding: 22px 26px !important;
    font: 500 15px/1.85 Arial,Helvetica,sans-serif !important;
    overflow-wrap: anywhere !important;
    box-shadow: 0 8px 22px rgba(16,43,88,.12) !important;
  }
}

/* V57 — editorial-page-only contact polish; all earlier styling retained. */
@supports selector(body:has(#jmedica-editor-message)) {
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-lead {
    align-items: stretch !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile {
    height: 100% !important;
    box-sizing: border-box !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter {
    display: flex !important;
    flex-direction: column !important;
    min-width: 0 !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-signature {
    margin-top: auto !important;
    padding-top: 18px !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-signature::after {
    content: "JMEDICA — JOURNAL INFORMATION & CONTACT\A Journal of Medical Innovations & Clinical Advances\A Advancing Medical Knowledge. Inspiring Innovation.\A\A EDITORIAL OFFICE\A editorial@jmedica.us     |     contact@jmedica.us\A jmedica.publications@gmail.com\A\A WHATSAPP\A +1 929 630 2323     |     +92 370 835 2374\A\A OFFICIAL WEBSITE\A https://journal.jmedica.us/index.php/jmedica" !important;
    background: linear-gradient(135deg,#e9f4f5 0%,#f3f7fa 100%) !important;
    color: #143d50 !important;
    border: 1px solid #a8d0d4 !important;
    border-left: 5px solid #b18b43 !important;
    box-shadow: 0 8px 24px rgba(21,80,91,.09) !important;
    font: 600 15px/1.85 Arial,Helvetica,sans-serif !important;
  }
  /* Remove the leftover standalone editorial mail link after the signature. */
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter > a[href^="mailto:"],
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter > p:has(> a[href^="mailto:"]) {
    display: none !important;
  }
  @media(max-width:760px) {
    body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-lead {align-items:start !important;}
    body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile {height:auto !important;}
    body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-signature::after {font-size:13px !important; padding:18px 14px !important;}
  }
}

/* V58 — streamlined editorial contact and balanced columns; editorial page ONLY. */
@supports selector(body:has(#jmedica-editor-message)) {
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile::after {
    content: "AWARDS & INTERNATIONAL RECOGNITION\A\A Recipient of national and international innovation awards, including Gold, Silver and Bronze distinctions.\A\A BEYOND CONVENTIONAL THINKING\A\A Think Beyond Boundaries. Stand Up to Be Counted.\A\A I believe physicians must go beyond treating illness: question assumptions, imagine better solutions and turn original ideas into responsible innovations.\A\A My ambition is to inspire physician-innovators whose work can improve healthcare and help save millions of lives.\A\A RESEARCH • MENTORSHIP • INNOVATION\A\A Imagine boldly. Innovate responsibly. Make an impact." !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-signature::after {
    content: "JMEDICA — EDITORIAL CONTACT\A Journal of Medical Innovations & Clinical Advances\A\A EMAIL\A editorial@jmedica.us   |   contact@jmedica.us\A jmedica.publications@gmail.com\A\A WHATSAPP\A +1 929 630 2323   |   +92 370 835 2374" !important;
    background: linear-gradient(135deg,#f3f0fa,#e9eef9) !important;
    color: #1e3159 !important;
    border: 1px solid #c6c4e5 !important;
    border-left: 5px solid #b58a43 !important;
    border-radius: 14px !important;
    font: 600 15px/1.8 Arial,Helvetica,sans-serif !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter > p:has(a[href^="mailto:"]),
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter > a[href^="mailto:"] {display:none !important;}
  @media (max-width:760px) {
    body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-signature::after {font-size:13px !important;}
  }
}

/* ================================================================
   JMEDICA V59 — COMPLETE STYLESHEET
   Based on the full working V58 stylesheet (all earlier rules retained).
   Founding Editor's Message page ONLY:
   Remove the entire JMEDICA — EDITORIAL CONTACT panel.

   The panel is GENERATED by the V56–V58 ::after CSS rules on
   .jm-editor50-signature; it is not a normal HTML email-link box.
   Hiding that container also removes its margin and border while
   keeping the separate closing slogan and left profile untouched.
   ================================================================ */
@supports selector(body:has(#jmedica-editor-message)) {
  body:has(#jmedica-editor-message)
    .jm-editor50 .jm-editor50-letter .jm-editor50-signature,
  body:has(#jmedica-editor-message)
    .jm-editor50 .jm-editor50-letter .jm-editor50-signature::before,
  body:has(#jmedica-editor-message)
    .jm-editor50 .jm-editor50-letter .jm-editor50-signature::after {
    display: none !important;
    content: none !important;
  }
}

/* ======================================================================
   JMEDICA V61 — FOUNDING EDITOR'S MESSAGE: BALANCED PREMIUM LAYOUT
   COMPLETE STYLESHEET — replaces version 60 (which is included above
   except for its final V60 section, rewritten below as V61).

   ONLY the page containing #jmedica-editor-message is affected.
   - Keep Editorial Contact panel completely hidden (V59 fix).
   - Remove the small "THE JMEDICA PROMISE" heading and its gold divider.
   - Show ONLY the three closing editorial principles in the navy panel.
   - Display "From Any Place" after "Every Researcher" in main heading.
   - Tighten headings/paragraph intervals and equalize card heights.

   NOTE: CSS-generated headline is a PRESENTATION change only. To change
   source HTML, accessibility text and indexing, also edit the OJS page text.
   ====================================================================== */
@supports selector(body:has(#jmedica-editor-message)) {
  /* Match the two columns at top and bottom without modifying the rest
     of the journal. Grid stretches the profile to the letter's height. */
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-lead {
    display: grid !important;
    grid-template-columns: minmax(245px, 28fr) minmax(0, 72fr) !important;
    gap: clamp(24px, 3.2vw, 44px) !important;
    align-items: stretch !important;
  }

  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile {
    align-self: stretch !important;
    height: auto !important;
    min-height: 100% !important;
    box-sizing: border-box !important;
    border: 1px solid #d9e2ed !important;
    border-top: 3px solid #c3a05c !important;
    background: linear-gradient(180deg, #f6f9fd 0%, #ffffff 100%) !important;
    box-shadow: 0 12px 32px rgba(15,41,79,.085) !important;
  }

  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
  }

  /* Main heading: CSS renders the full new wording without changing the
     underlying OJS HTML. This applies to only the main letter's H2. */
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter > h2 {
    font-size: 0 !important;
    line-height: 0 !important;
    margin: 6px 0 15px !important;
    padding: 0 !important;
    letter-spacing: 0 !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter > h2::before {
    content: "Advancing Medical Knowledge. Opening Doors to Every Researcher From Any Place." !important;
    display: block !important;
    color: #102647 !important;
    font: 700 clamp(26px, 2.45vw, 34px)/1.19 Georgia, 'Times New Roman', serif !important;
    letter-spacing: -.025em !important;
    overflow-wrap: normal !important;
  }

  /* Compact, consistent heading rhythm rather than excessive empty gaps.
     No added little gold underlines between sections. */
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter h3 {
    color: #142e53 !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: clamp(18px, 1.62vw, 22px) !important;
    line-height: 1.3 !important;
    letter-spacing: -.012em !important;
    margin: 19px 0 9px !important;
    padding: 0 !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter h3::after {
    content: none !important;
    display: none !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter p:not(.jm-editor50-emphasis) {
    color: #33445c !important;
    font-size: clamp(15px, 1.15vw, 16.5px) !important;
    font-weight: 400 !important;
    line-height: 1.65 !important;
    margin: 0 0 11px !important;
  }

  /* Exactly three statements; no upper title, underline or extra text. */
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-emphasis {
    display: block !important;
    position: relative !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: none !important;
    margin: auto 0 0 !important;
    padding: clamp(20px, 2.4vw, 30px) clamp(18px, 2.5vw, 34px) !important;
    overflow: hidden !important;
    isolation: isolate;
    background: radial-gradient(ellipse at 50% 0%, rgba(49,93,144,.37), transparent 70%),
                linear-gradient(145deg, #071832 0%, #102c53 58%, #071a36 100%) !important;
    border: 2px solid #c9a258 !important;
    border-radius: 15px !important;
    box-shadow: inset 0 0 0 3px rgba(255,255,255,.055),
                0 12px 28px rgba(11,33,65,.15) !important;
    text-align: center !important;
    font-size: 0 !important; /* keep original text in markup, not visually duplicated */
    line-height: 0 !important;
    color: transparent !important;
    letter-spacing: 0 !important;
    text-indent: 0 !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-emphasis::before {
    content: none !important;
    display: none !important;
    border: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-emphasis::after {
    content: "Every Idea Deserves a Fair Hearing.\A Every Researcher Deserves Respect.\A Every Discovery Should Serve Humanity." !important;
    display: block !important;
    white-space: pre-line !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 !important;
    color: #fffaf0 !important;
    font: italic 600 clamp(17px, 1.75vw, 24px)/1.63 Georgia, 'Times New Roman', serif !important;
    letter-spacing: -.012em !important;
    text-align: center !important;
    text-shadow: 0 1px 2px rgba(0,0,0,.32);
    overflow-wrap: normal !important;
    text-indent: 0 !important;
  }

  /* Ensure V56–V58's CSS-generated Editorial Contact box stays gone. */
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-signature,
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-signature::before,
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-signature::after {
    display: none !important;
    content: none !important;
  }

  @media (max-width:760px) {
    body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-lead {
      grid-template-columns: minmax(0, 1fr) !important;
      gap: 27px !important;
      align-items: start !important;
    }
    body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile {
      height: auto !important;
      min-height: 0 !important;
      width: 100% !important;
      max-width: 420px !important;
      margin: 0 auto !important;
    }
    body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter > h2::before {
      font-size: clamp(25px, 5vw, 32px) !important;
      line-height: 1.23 !important;
    }
    body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter h3 {
      margin-top: 20px !important;
    }
    body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-emphasis {
      margin-top: 20px !important;
      padding: 21px 14px !important;
      border-radius: 14px !important;
    }
    body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-emphasis::after {
      font-size: clamp(16px, 4.1vw, 21px) !important;
      line-height: 1.6 !important;
    }
  }
}


/* =====================================================================
   JMEDICA V62 — FOUNDING EDITOR PAGE: STRONGER TYPOGRAPHY
   FULL REPLACEMENT: complete V61 stylesheet remains above this block.
   Limited to the page with #jmedica-editor-message.

   - Main editorial headline fills the right column more confidently.
   - Slightly larger paragraph type improves reading and uses empty space.
   - Section spacing remains measured and consistent.
   - Both columns continue sharing their top/bottom boundaries.
   - Three-line closing slogan preserved, no extra slogan heading.
   - Editorial Contact box stays entirely hidden.
   ===================================================================== */
@supports selector(body:has(#jmedica-editor-message)) {
  /* Larger, balanced headline, at full available right-column width. */
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter > h2 {
    width: 100% !important;
    margin: 4px 0 20px !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter > h2::before {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    font: 700 clamp(30px, 2.85vw, 40px)/1.16 Georgia, 'Times New Roman', serif !important;
    letter-spacing: -0.028em !important;
    text-wrap: balance !important;
    overflow-wrap: normal !important;
  }

  /* Readable body text and consistent four-section rhythm. */
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter h3 {
    font-size: clamp(19px, 1.75vw, 23px) !important;
    line-height: 1.31 !important;
    margin: 22px 0 10px !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter p:not(.jm-editor50-emphasis) {
    font-size: clamp(16.5px, 1.34vw, 18px) !important;
    line-height: 1.72 !important;
    letter-spacing: 0.002em !important;
    margin: 0 0 13px !important;
  }

  /* Preserve the navy, exactly-three-statement motto as the last item. */
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-emphasis {
    margin: auto 0 0 !important;
  }

  /* Preserve complete removal of the earlier CSS-generated contact box. */
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-signature,
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-signature::before,
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-signature::after {
    display: none !important;
    content: none !important;
  }

  /* Keep the full heading legible and avoid horizontal overflow on mobile. */
  @media (max-width: 760px) {
    body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter > h2::before {
      font-size: clamp(26px, 5.25vw, 33px) !important;
      line-height: 1.2 !important;
      letter-spacing: -0.022em !important;
    }
    body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter h3 {
      font-size: clamp(19px, 4vw, 22px) !important;
      margin: 20px 0 9px !important;
    }
    body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter p:not(.jm-editor50-emphasis) {
      font-size: 16.5px !important;
      line-height: 1.7 !important;
    }
    body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-letter .jm-editor50-emphasis {
      margin: 22px 0 0 !important;
    }
  }
}

/* =====================================================================
   JMEDICA V63 — RECREATED: PREMIUM PROFILE / FULL-WIDTH NAME
   Entire V62 stylesheet above is preserved byte-for-byte unchanged.
   ONLY the left founder profile is restyled in this version.
   Name is exactly two lines, slightly reduced to fit the card and centered
   across its inner width; no changes to the right column.

   The name text below is a visual CSS override. For accessible/searchable
   source text, the wording should also match in the OJS HTML.
   ===================================================================== */
@supports selector(body:has(#jmedica-editor-message)) {
  /* Refined editorial card: ivory, pearl, mist-blue and restrained gold. */
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile {
    background: linear-gradient(155deg,
                #fbfcff 0%, #f2f7fc 38%, #fffaf1 74%, #eaf2f9 100%) !important;
    border: 1px solid #bdcbd9 !important;
    border-top: 4px solid #c5a05a !important;
    border-radius: 19px !important;
    box-shadow: 0 16px 34px rgba(8, 35, 68, .13),
                inset 0 0 0 1px rgba(255,255,255,.78) !important;
    overflow: hidden !important;
    /* 1cqi = 1% of the actual card content width. The name therefore
       grows with its own column rather than with the browser viewport. */
    container-type: inline-size;
    container-name: jmedica-founder-profile;
  }

  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile img {
    border: 2px solid rgba(190, 154, 89, .58) !important;
    box-sizing: border-box !important;
    border-radius: 11px !important;
    box-shadow: 0 6px 16px rgba(13, 43, 75, .14) !important;
  }

  /* Hide only original visual glyphs; leave the underlying heading present.
     Each pseudo-element is a single line, nearly card-wide, without overflow. */
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile h2 {
    font-size: 0 !important;
    line-height: 0 !important;
    letter-spacing: 0 !important;
    margin: 15px 0 11px !important;
    padding: 0 0 12px !important;
    text-align: center !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border-bottom: 1px solid rgba(184, 150, 87, .48) !important;
  }

  /* LINE 1: "Dr. Muhammad". Slightly reduced to prevent clipping, centered. */
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile h2::before {
    content: "Dr. Muhammad" !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    white-space: nowrap !important;
    color: #102b4e !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-weight: 700 !important;
    font-size: clamp(22px, 2.7vw, 43px) !important; /* legacy fallback */
    font-size: clamp(21px, 13.5cqi, 52px) !important;
    line-height: 1.17 !important;
    letter-spacing: -.052em !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.8) !important;
  }

  /* LINE 2: "Iftikhar Hanif". Slightly reduced to fit, centered. */
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile h2::after {
    content: "Iftikhar Hanif" !important;
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    white-space: nowrap !important;
    color: #0f6170 !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-weight: 700 !important;
    font-size: clamp(22px, 2.85vw, 46px) !important; /* legacy fallback */
    font-size: clamp(21px, 14.8cqi, 56px) !important;
    line-height: 1.20 !important;
    letter-spacing: -.048em !important;
    text-shadow: 0 1px 0 rgba(255,255,255,.8) !important;
  }

  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile p {
    color: #2d4059 !important;
    line-height: 1.64 !important;
  }
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile .jm-editor50-role {
    color: #94691e !important;
    font-weight: 700 !important;
    letter-spacing: .014em !important;
  }

  /* Premium multitone recognition block: navy / sapphire / deep teal / gold. */
  body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile::after {
    background: linear-gradient(155deg,
                #081b37 0%, #113663 33%, #1b4c75 58%,
                #0d5366 84%, #082c48 100%) !important;
    border: 1px solid rgba(207, 178, 112, .75) !important;
    border-top: 3px solid #d5b16a !important;
    border-left: 4px solid #b9944e !important;
    border-radius: 13px !important;
    padding: 18px 15px !important;
    box-sizing: border-box !important;
    color: #f5f8fe !important;
    font: 500 13px/1.65 Arial, Helvetica, sans-serif !important;
    letter-spacing: .002em !important;
    text-shadow: 0 1px 1px rgba(0, 15, 30, .35) !important;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.07),
                0 10px 25px rgba(10,40,74,.17) !important;
  }

  /* Mobile: the same container-relative name sizing fits the card. */
  @media (max-width: 760px) {
    body:has(#jmedica-editor-message) .jm-editor50 .jm-editor50-profile h2 {
      margin-top: 15px !important;
    }
  }
}


/* ======================================================================
   JMEDICA V65 — PREMIUM ABOUT THE JOURNAL CONTENT COLOUR SYSTEM
   Complete V64 stylesheet above is retained without modification.

   Scope: the unique .jm46 wrapper in the About the Journal HTML.
   This deliberately avoids relying on OJS body/page classes, which
   did not consistently match the actual public About page in V64.

   - Mission: sapphire + glacier blue
   - Vision: warm champagne + restrained antique gold
   - Areas of Interest: sea-glass teal / sage
   - Editorial values: muted violet / pearl
   - Closing statement: midnight navy / gold
   - The banner and embedded six-part infographic are not replaced.
   - Founding Editor page, homepage, masthead and footer are unchanged.
   ====================================================================== */

.jm46 {
  --jm65-ink: #253b51;
  --jm65-navy: #10304f;
  --jm65-gold: #bd9654;
  --jm65-softline: #dce5ec;
  color: var(--jm65-ink) !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 16px !important;
  line-height: 1.68 !important;
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.jm46 * { box-sizing: border-box; }
.jm46 p { line-height: 1.7 !important; }
.jm46 img { max-width: 100% !important; height: auto !important; }
.jm46 :is(.jm46-section-title, h2, h3) {
  font-family: Georgia, 'Times New Roman', serif !important;
  letter-spacing: -0.018em !important;
}
.jm46 .jm46-eyebrow {
  color: #9c7542 !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase;
}

/* Polished introductory text; leave the journal hero/banner itself alone. */
.jm46 .jm46-intro {
  background: linear-gradient(120deg,#fcfcfd 0%,#f3f7fb 100%) !important;
  border: 1px solid #dbe5ee !important;
  border-left: 4px solid var(--jm65-gold) !important;
  border-radius: 13px !important;
  padding: clamp(20px, 2.5vw, 32px) !important;
  margin: 28px auto 26px !important;
  max-width: 100% !important;
  box-shadow: 0 6px 19px rgba(15,49,79,.055) !important;
  text-align: left !important;
}
.jm46 .jm46-intro :is(h2,h3,.jm46-section-title) {
  color: #133854 !important;
}
.jm46 .jm46-intro p { color: #375268 !important; }

/* Separate, coordinated Mission and Vision cards. */
.jm46 .jm46-pair {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  align-items: stretch !important;
  gap: 20px !important;
  margin: 18px 0 30px !important;
}
.jm46 .jm46-pair > .jm46-card {
  width: 100% !important;
  min-width: 0 !important;
  border-radius: 16px !important;
  padding: clamp(22px,2.6vw,32px) !important;
  margin: 0 !important;
  position: relative;
  overflow: hidden;
  box-shadow: 0 9px 25px rgba(20,51,78,.075) !important;
  transition: box-shadow .18s ease;
}
.jm46 .jm46-pair > .jm46-card:first-child {
  background: linear-gradient(145deg,#edf6fc 0%,#dfeefa 100%) !important;
  border: 1px solid #b6d2e5 !important;
  border-top: 4px solid #367799 !important;
}
.jm46 .jm46-pair > .jm46-card:nth-child(2) {
  background: linear-gradient(145deg,#fffcf5 0%,#f8ebd0 100%) !important;
  border: 1px solid #e8d2a9 !important;
  border-top: 4px solid #bd9654 !important;
}
.jm46 .jm46-pair > .jm46-card :is(h2,h3) {
  font-size: clamp(22px,2vw,27px) !important;
  margin: 8px 0 12px !important;
  line-height: 1.26 !important;
}
.jm46 .jm46-pair > .jm46-card:first-child :is(h2,h3) { color: #174d70 !important; }
.jm46 .jm46-pair > .jm46-card:nth-child(2) :is(h2,h3) { color: #74501b !important; }
.jm46 .jm46-pair > .jm46-card p {
  font-size: 16px !important;
  line-height: 1.7 !important;
  margin: 0 !important;
}
.jm46 .jm46-pair > .jm46-card:first-child p { color: #284c60 !important; }
.jm46 .jm46-pair > .jm46-card:nth-child(2) p { color: #614f35 !important; }
.jm46 .jm46-pair > .jm46-card:first-child .jm46-symbol {
  background: #d0e7f5 !important; color: #216584 !important;
  border: 1px solid #a7cddd !important;
}
.jm46 .jm46-pair > .jm46-card:nth-child(2) .jm46-symbol {
  background: #f1deba !important; color: #875f27 !important;
  border: 1px solid #e7cb97 !important;
}
.jm46 .jm46-symbol {
  width: 48px !important;
  height: 48px !important;
  border-radius: 12px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  font-size: 24px !important;
  margin-bottom: 13px !important;
}

/* The infographic stays intact; colour its supporting section only. */
.jm46 .jm46-scope {
  background: linear-gradient(145deg,#eaf6f2 0%,#e4f1f4 100%) !important;
  border: 1px solid #b7dad3 !important;
  border-top: 4px solid #387f79 !important;
  border-radius: 18px !important;
  box-shadow: 0 11px 30px rgba(22,84,83,.08) !important;
  padding: clamp(20px,3vw,37px) !important;
  margin: 6px 0 34px !important;
  overflow: hidden;
}
.jm46 .jm46-scope :is(.jm46-section-title,h2,h3) {
  color: #145451 !important;
}
.jm46 .jm46-scope .jm46-eyebrow {color: #2a7771 !important;}
.jm46 .jm46-scope p {color: #355f61 !important;}
.jm46 .jm46-scope .jm46-grid {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 13px !important;
}
.jm46 .jm46-scope .jm46-discipline {
  background: #fff !important;
  border: 1px solid #c6dfda !important;
  border-radius: 13px !important;
  padding: 17px !important;
  box-shadow: 0 4px 14px rgba(23,83,80,.055) !important;
}
.jm46 .jm46-scope .jm46-discipline:nth-child(3n+1) { border-top: 3px solid #377e88 !important; }
.jm46 .jm46-scope .jm46-discipline:nth-child(3n+2) { border-top: 3px solid #a68b57 !important; }
.jm46 .jm46-scope .jm46-discipline:nth-child(3n+3) { border-top: 3px solid #627fa7 !important; }
.jm46 .jm46-scope .jm46-discipline .jm46-glyph {color: #28786f !important;}
.jm46 .jm46-scope .jm46-discipline strong {color: #174452 !important;}
.jm46 .jm46-scope .jm46-discipline small {color: #526a73 !important;}

/* Editorial principles, independence, transparency, etc. */
.jm46 .jm46-values {
  display: grid !important;
  grid-template-columns: 1.15fr 0.85fr !important;
  align-items: start !important;
  gap: clamp(20px,3vw,34px) !important;
  background: linear-gradient(135deg,#f5f1fa 0%,#eeeaf5 100%) !important;
  border: 1px solid #d8cce7 !important;
  border-top: 4px solid #80719f !important;
  border-radius: 18px !important;
  padding: clamp(22px,3vw,36px) !important;
  margin: 0 0 34px !important;
  box-shadow: 0 9px 25px rgba(70,54,104,.065) !important;
}
.jm46 .jm46-values :is(.jm46-section-title,h2,h3) { color: #51436e !important; }
.jm46 .jm46-values .jm46-eyebrow { color: #77658f !important; }
.jm46 .jm46-values p,
.jm46 .jm46-values li {
  color: #4e4762 !important;
  font-size: 15.8px !important;
  line-height: 1.7 !important;
}
.jm46 .jm46-values ul { padding-left: 21px !important; }
.jm46 .jm46-values .jm46-quote {
  background: #fffdfb !important;
  border: 1px solid #e2d6ea !important;
  border-left: 4px solid #b09bc5 !important;
  border-radius: 10px !important;
  color: #56476d !important;
  padding: 24px !important;
  font: italic 20px/1.6 Georgia,'Times New Roman',serif !important;
  box-shadow: 0 7px 20px rgba(66,53,87,.055) !important;
}

/* Restrained dark closing statement: ties the palette to JMedica brand. */
.jm46 .jm46-close {
  background: linear-gradient(125deg,#0b2642 0%,#153f60 75%,#164d60 100%) !important;
  border: 1px solid #c3a267 !important;
  border-top: 4px solid #d5b476 !important;
  border-radius: 18px !important;
  box-shadow: 0 13px 34px rgba(10,38,69,.16) !important;
  padding: clamp(26px,3.5vw,44px) !important;
  text-align: center !important;
  color: #f5f7fb !important;
  margin-bottom: 25px !important;
}
.jm46 .jm46-close :is(h2,h3) { color: #f3d69b !important; }
.jm46 .jm46-close p { color: #eef3f8 !important; }

/* Tablets and phones: readable boxes, one per row; no sideways overflow. */
@media (max-width: 900px) {
  .jm46 .jm46-pair,
  .jm46 .jm46-values { grid-template-columns: 1fr !important; }
  .jm46 .jm46-scope .jm46-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; }
}
@media (max-width: 560px) {
  .jm46 { font-size: 15.5px !important; }
  .jm46 .jm46-intro,
  .jm46 .jm46-pair > .jm46-card,
  .jm46 .jm46-scope,
  .jm46 .jm46-values,
  .jm46 .jm46-close { padding: 19px 16px !important; border-radius: 12px !important; }
  .jm46 .jm46-pair { gap: 13px !important; }
  .jm46 .jm46-scope .jm46-grid { grid-template-columns: 1fr !important; }
  .jm46 .jm46-values .jm46-quote { font-size: 18px !important; padding: 19px !important; }
}


/* ======================================================================
   JMEDICA VERSION 66 — ABOUT PAGE: TWO DISTINCT NEW CONTENT AREAS
   Full Version 65 above is preserved verbatim.

   1. Within Our Editorial Perspective, fill the previously vacant right
      column with a sea-glass card beneath the existing ivory quotation.
      New message: research + innovation + service (purpose, not duplicate).
   2. In the existing midnight-navy closing band, add a separate inviting
      line of text below "Ideas that advance medicine."

   CSS-generated text was requested as a stylesheet-only modification.
   For accessible, translatable, selectable editorial content, add this
   wording to the OJS page HTML in a later content-editor revision.
   ====================================================================== */

/* Desktop: left editorial principles span the height of both right cards. */
.jm46 .jm46-values {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr) !important;
  grid-template-rows: auto auto !important;
  column-gap: clamp(20px, 3vw, 34px) !important;
  row-gap: 16px !important;
  align-items: start !important;
}
.jm46 .jm46-values > :first-child:not(.jm46-quote) {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  min-width: 0 !important;
}
.jm46 .jm46-values > .jm46-quote {
  grid-column: 2 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  margin: 0 !important;
}

/* A true additional visible card, not a copy of the ivory quotation. */
.jm46 .jm46-values::after {
  content: "WHERE RESEARCH, INNOVATION & SERVICE MEET\A\AJMedica brings scientific evidence, inventive thinking and practical needs into dialogue—connecting ideas with meaningful outcomes for patients and communities.";
  display: block !important;
  white-space: pre-line !important;
  grid-column: 2 !important;
  grid-row: 2 !important;
  align-self: start !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  background: linear-gradient(140deg, #e6f5f1 0%, #f3fbf8 100%) !important;
  color: #20544e !important;
  border: 1px solid #acd4ca !important;
  border-left: 5px solid #2d897a !important;
  border-radius: 12px !important;
  padding: clamp(18px, 2.1vw, 25px) !important;
  font: 600 clamp(15px, 1.25vw, 17px)/1.68 Arial, Helvetica, sans-serif !important;
  letter-spacing: .006em !important;
  box-shadow: 0 8px 21px rgba(19, 95, 83, .10) !important;
}

/* Different treatment for the final panel: an invitation, not another
   research/service explanation or a quotation card. */
.jm46 .jm46-close {
  padding: clamp(30px, 4vw, 50px) clamp(22px, 4vw, 48px) !important;
  overflow: hidden !important;
}
.jm46 .jm46-close::after {
  content: "A place to ask better questions, share knowledge openly, and help the next generation shape tomorrow's medicine.";
  display: block !important;
  max-width: 750px !important;
  margin: 19px auto 0 !important;
  padding: 19px 10px 0 !important;
  border-top: 1px solid rgba(221, 188, 119, .54) !important;
  color: #ebf2f5 !important;
  font: 400 clamp(16px, 1.55vw, 20px)/1.58 Georgia, 'Times New Roman', serif !important;
  letter-spacing: .01em !important;
  text-align: center !important;
}

/* Tablet/mobile: preserve natural reading order and no side overflow. */
@media (max-width: 900px) {
  .jm46 .jm46-values {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    row-gap: 15px !important;
  }
  .jm46 .jm46-values > :first-child:not(.jm46-quote),
  .jm46 .jm46-values > .jm46-quote,
  .jm46 .jm46-values::after {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
  .jm46 .jm46-values::after { font-size: 15.5px !important; }
}
@media (max-width: 560px) {
  .jm46 .jm46-values::after {
    padding: 19px 16px !important;
    border-radius: 11px !important;
    font-size: 15px !important;
  }
  .jm46 .jm46-close::after {
    font-size: 16px !important;
    margin-top: 14px !important;
    padding-top: 15px !important;
  }
}


/* =======================================================================
   JMEDICA VERSION 67 — NATIVE OJS EDITORIAL MASTHEAD, FOUR-COLUMN DESIGN
   The full 66.css is retained above, except one obsolete departed-editor
   affiliation-hiding rule was removed. The changes below affect ONLY the
   public page containing .page_masthead, not Founding Editor or About pages.

   IMPORTANT: This is a genuine reflow of OJS's existing heading / user_listing
   pairs. Names, appointments, affiliations and links are NOT generated or
   hard-coded. CSS multi-columns balance the sections by available height.
   The design will adapt to additions and removals in OJS records.
   ======================================================================= */

/* Give the public masthead the usable width of the journal content area,
   removing the otherwise empty right sidebar ONLY on the masthead page. */
@media (min-width: 1040px) {
  body:has(.page_masthead) .pkp_structure_page {
    width: calc(100% - 40px) !important;
    max-width: 1440px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  body:has(.page_masthead) .pkp_structure_content,
  body:has(.page_masthead) .pkp_structure_content.has_sidebar {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  body:has(.page_masthead) .pkp_structure_sidebar,
  body:has(.page_masthead) .pkp_structure_sidebar.left,
  body:has(.page_masthead) .pkp_structure_sidebar.right {
    display: none !important;
  }
  body:has(.page_masthead) .pkp_structure_main {
    float: none !important;
    clear: both !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-inline: clamp(12px, 2.2vw, 30px) !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
  body:has(.page_masthead) .pkp_structure_main::after,
  body:has(.page_masthead) .pkp_structure_main::before {
    display: none !important;
    content: none !important;
  }
}

/* The native role headings and their <ul class="user_listing"> remain in
   normal document order. CSS columns create a masonry-like, four-column
   arrangement without removing anyone or duplicating any appointments. */
body:has(.page_masthead) .page_masthead {
  --jm67-navy: #0e2c51;
  --jm67-gold: #c5a15b;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  margin-inline: auto !important;
  padding: 0 0 22px !important;
  box-sizing: border-box !important;
  column-count: 4 !important;
  column-gap: clamp(13px, 1.7vw, 22px) !important;
  column-fill: balance !important;
  column-rule: 0 !important;
  color: #24364b !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

/* The masthead title is full-width, never an item in column 1. */
body:has(.page_masthead) .page_masthead > h1 {
  column-span: all !important;
  break-after: avoid !important;
  margin: 0 0 20px !important;
  padding: 0 0 14px !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: clamp(29px, 2.7vw, 39px) !important;
  line-height: 1.15 !important;
  color: var(--jm67-navy) !important;
  letter-spacing: -.025em !important;
  border-bottom: 3px solid var(--jm67-gold) !important;
}

/* Each heading is the top of a card; keep it attached to its actual OJS
   user list. OJS may vary in the number of roles and editorial members. */
body:has(.page_masthead) .page_masthead > h2,
body:has(.page_masthead) .page_masthead > h3 {
  display: block !important;
  break-inside: avoid-column !important;
  break-after: avoid-column !important;
  -webkit-column-break-after: avoid !important;
  margin: 0 !important;
  padding: 14px 13px 12px !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(9, 37, 70, .18) !important;
  border-bottom: 0 !important;
  border-radius: 12px 12px 0 0 !important;
  background: linear-gradient(120deg, #0d315c, #174a76) !important;
  color: #fff !important;
  font-family: Georgia, 'Times New Roman', serif !important;
  font-size: clamp(15px, 1.2vw, 18px) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -.01em !important;
  text-shadow: 0 1px 1px rgba(0,0,0,.13) !important;
}

/* OJS appointment lists are the card bodies, in original sequence. */
body:has(.page_masthead) .page_masthead > ul.user_listing {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  break-inside: avoid-column !important;
  -webkit-column-break-inside: avoid !important;
  padding: 12px 12px 10px !important;
  margin: 0 0 15px !important;
  box-sizing: border-box !important;
  list-style: none !important;
  border: 1px solid #d9e4ec !important;
  border-top: 0 !important;
  border-radius: 0 0 12px 12px !important;
  background: linear-gradient(150deg, #fff, #f5f9fc) !important;
  box-shadow: 0 5px 14px rgba(18, 44, 78, .09) !important;
}

body:has(.page_masthead) .page_masthead .user_listing > li {
  display: block !important;
  list-style: none !important;
  position: relative !important;
  padding: 6px 2px 8px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  line-height: 1.44 !important;
  color: #263f57 !important;
  font-size: clamp(12.7px, .96vw, 14px) !important;
  overflow-wrap: anywhere !important;
  break-inside: avoid-column !important;
}
body:has(.page_masthead) .page_masthead .user_listing > li + li {
  border-top: 1px solid rgba(40, 66, 88, .13) !important;
  padding-top: 10px !important;
}
body:has(.page_masthead) .page_masthead .user_listing :is(.name, strong, a) {
  color: #12385c !important;
  font-weight: 700 !important;
}
body:has(.page_masthead) .page_masthead .user_listing .affiliation {
  display: block !important;
  color: #5e7082 !important;
  font-size: .91em !important;
  font-weight: 400 !important;
  margin-top: 3px !important;
}
body:has(.page_masthead) .page_masthead .user_listing a:hover {
  color: #136b82 !important;
  text-decoration: underline !important;
}
/* Old 35R-era date handling remains: no appointment dates displayed. */
body:has(.page_masthead) .page_masthead .user_listing .date_start,
body:has(.page_masthead) .page_masthead .user_listing .date_end {
  display: none !important;
}

/* Tasteful mixed-color headers; recurring sequence automatically covers all
   real OJS roles, regardless of appointment counts or changes over time. */
body:has(.page_masthead) .page_masthead > h2:nth-of-type(4n + 2) {
  background: linear-gradient(120deg, #074e57, #11747a) !important;
}
body:has(.page_masthead) .page_masthead > h2:nth-of-type(4n + 3) {
  background: linear-gradient(120deg, #413068, #64518c) !important;
}
body:has(.page_masthead) .page_masthead > h2:nth-of-type(4n + 4) {
  background: linear-gradient(120deg, #7a4b19, #a97930) !important;
}
/* Matching subtle card accents, without turning them into bright banners. */
body:has(.page_masthead) .page_masthead > h2:nth-of-type(4n + 2) + ul.user_listing {
  border-color: #cadfdd !important;
  background: linear-gradient(150deg, #fff, #f1f9f7) !important;
}
body:has(.page_masthead) .page_masthead > h2:nth-of-type(4n + 3) + ul.user_listing {
  border-color: #ddd5e9 !important;
  background: linear-gradient(150deg, #fff, #f8f5fd) !important;
}
body:has(.page_masthead) .page_masthead > h2:nth-of-type(4n + 4) + ul.user_listing {
  border-color: #e6d8bc !important;
  background: linear-gradient(150deg, #fff, #fdf9f0) !important;
}

/* A genuinely long role (many section editors or board members) is allowed
   to flow across columns instead of generating huge empty gaps. Each member
   stays intact; section titles still remain attached to their first member. */
body:has(.page_masthead) .page_masthead > ul.user_listing:has(> li:nth-child(9)) {
  break-inside: auto !important;
  -webkit-column-break-inside: auto !important;
}

/* Responsive: four on large monitors, two on ordinary laptops/tablets,
   one on phones. No horizontal scroll or cramped micro-typography. */
@media (min-width: 1040px) and (max-width: 1240px) {
  body:has(.page_masthead) .page_masthead {
    column-count: 3 !important;
  }
}
@media (min-width: 700px) and (max-width: 1039px) {
  body:has(.page_masthead) .page_masthead {
    column-count: 2 !important;
    column-gap: 16px !important;
  }
}
@media (max-width: 699px) {
  body:has(.page_masthead) .page_masthead {
    column-count: 1 !important;
    font-size: 15px !important;
  }
  body:has(.page_masthead) .page_masthead > h1 {
    font-size: 30px !important;
  }
  body:has(.page_masthead) .page_masthead > h2,
  body:has(.page_masthead) .page_masthead > h3 {
    font-size: 18px !important;
  }
  body:has(.page_masthead) .page_masthead .user_listing > li {
    font-size: 14px !important;
  }
}


/* ========================================================================
   JMEDICA 68 — EDITORIAL MASTHEAD: INTACT BOARD + BALANCED FOUR COLUMNS
   Built from the full approved Version 67. All other page rules unchanged.
   Targets the OJS roles in their current public order:
     1 Editor-in-Chief, 2 Senior Journal Editor, 3 Ombudsman,
     4 Journal Editors, 5 Journal Manager, 6 Features & Interviews,
     7 Section Editors, 8 Editorial Board Members,
     9 Student Editorial Board, followed by remaining roles.
   If editorial role ORDER changes, review these nth-of-type anchors.
   ======================================================================== */

/* A slightly taller, distinguished opening card: one readable two-line
   editor name, centered; the original OJS link/name remains in the DOM. */
body:has(.page_masthead) .page_masthead > h2:first-of-type {
  padding: 17px 16px 15px !important;
  font-size: clamp(17px, 1.3vw, 19px) !important;
  background: linear-gradient(115deg, #092a53, #164876) !important;
}
body:has(.page_masthead) .page_masthead > h2:first-of-type + ul.user_listing {
  padding: 20px 14px 19px !important;
  background: linear-gradient(160deg, #fffdf7, #f2f7fc) !important;
  border: 1px solid #d7c39d !important;
  border-top: 0 !important;
  box-shadow: 0 7px 17px rgba(23, 49, 79, .13) !important;
}
body:has(.page_masthead) .page_masthead > h2:first-of-type + ul.user_listing > li:first-child {
  padding: 5px 0 !important;
  text-align: center !important;
}
/* Use the actual OJS name text — do not replace it with CSS-generated text.
   A measured, centered text width makes the existing full name wrap as:
       Dr. Muhammad
       Iftikhar Hanif
   and keeps it copyable, searchable, and accessible. */
body:has(.page_masthead) .page_masthead > h2:first-of-type + ul.user_listing > li:first-child .name {
  display: block !important;
  width: 8.7em !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 0 0 9px !important;
  font: 700 clamp(21px, 1.78vw, 24px)/1.18 Georgia, 'Times New Roman', serif !important;
  letter-spacing: -.025em !important;
  white-space: normal !important;
  overflow-wrap: normal !important;
  text-align: center !important;
  color: #102c52 !important;
}
body:has(.page_masthead) .page_masthead > h2:first-of-type + ul.user_listing > li:first-child .name > * {
  font-size: inherit !important;
  font-family: inherit !important;
  line-height: inherit !important;
  white-space: normal !important;
}
body:has(.page_masthead) .page_masthead > h2:first-of-type + ul.user_listing .affiliation {
  margin: 5px auto 0 !important;
  max-width: 95% !important;
  color: #536477 !important;
  font-size: clamp(12px, 1vw, 13.5px) !important;
  line-height: 1.5 !important;
  text-align: center !important;
}

/* Desktop: keep four natural editorial groupings. A named group begins at
   each of the next 3 columns. This prevents long Editorial Board lists from
   leaking into the Student Editorial Board column. */
@media (min-width: 1241px) {
  body:has(.page_masthead) .page_masthead {
    column-count: 4 !important;
    column-fill: balance !important;
    column-gap: clamp(17px, 1.65vw, 25px) !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7),
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8),
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(9) {
    break-before: column !important;
    -webkit-column-break-before: always !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing,
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing {
    break-inside: avoid-column !important;
    -webkit-column-break-inside: avoid !important;
  }
  /* Board members remain in a SINGLE column, slightly denser but clear. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing {
    padding: 10px 11px 9px !important;
    break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing > li {
    font-size: clamp(11.8px, .92vw, 13.3px) !important;
    line-height: 1.3 !important;
    padding: 4px 2px 5px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing > li + li {
    padding-top: 7px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing .affiliation {
    margin-top: 1px !important;
    line-height: 1.29 !important;
  }
}

/* At narrower widths, let original V67 responsive columns work naturally,
   but still keep the Board list intact when there is room. */
@media (min-width: 700px) and (max-width: 1240px) {
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing {
    break-inside: avoid-column !important;
    -webkit-column-break-inside: avoid !important;
  }
}

@media (max-width: 699px) {
  body:has(.page_masthead) .page_masthead > h2:first-of-type + ul.user_listing > li:first-child .name {
    font-size: clamp(23px, 6vw, 29px) !important;
  }
}


/* ===========================================================================
   JMEDICA VERSION 69 — BALANCED FOUR-COLUMN NATIVE EDITORIAL MASTHEAD
   Full Version 68 preserved above. This addition applies ONLY to the public
   editorial masthead page; it does not replace names, appointments or links.

   On desktop: 1) Leadership; 2) first Section Editors; 3) continuation +
   complete Editorial Board; 4) Student Board and administrative roles.
   NOTE: the 13th Section Editor begins column three. If membership totals
   change significantly, review this anchor to maintain approximate balance.
   =========================================================================== */
@media (min-width: 1241px) {
  body:has(.page_masthead) .page_masthead {
    column-count: 4 !important;
    column-fill: balance !important;
    column-gap: clamp(16px, 1.7vw, 25px) !important;
  }

  /* The short first column gains a more considered vertical rhythm. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(-n+6) {
    padding-top: 17px !important;
    padding-bottom: 15px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(n+2):nth-of-type(-n+6) {
    margin-top: 7px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(-n+6) + ul.user_listing {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    margin-bottom: 17px !important;
  }
  /* Keep the existing two-line name, accent colors and original biography. */

  /* Column two starts with Section Editors. Let only this long list flow
     into column three while each person's name and affiliation stay together. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) {
    break-before: column !important;
    -webkit-column-break-before: always !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing {
    break-inside: auto !important;
    -webkit-column-break-inside: auto !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li {
    break-inside: avoid-column !important;
    -webkit-column-break-inside: avoid !important;
  }
  /* The continuation begins after the first 12 section editors.
     If fewer than 13 are active, the fallback V68 four-column grouping applies. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li:nth-child(13) {
    break-before: column !important;
    -webkit-column-break-before: always !important;
  }
  /* Label the continuation clearly, instead of orphaning names at the top
     of the next column; no additional editor or appointment is invented. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li:nth-child(13)::before {
    content: 'Section Editors (continued)';
    display: block !important;
    margin: -12px -13px 13px !important;
    padding: 13px 12px 12px !important;
    border-radius: 9px 9px 0 0 !important;
    color: #fff !important;
    font: bold 16px/1.25 Georgia, 'Times New Roman', serif !important;
    background: linear-gradient(120deg, #16446e, #236583) !important;
    box-sizing: border-box !important;
  }

  /* The ENTIRE Editorial Board follows the continued section editors in
     column three; do not force it into a separate column or break its list. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) {
    break-before: auto !important;
    -webkit-column-break-before: auto !important;
    margin-top: 17px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing {
    break-inside: avoid-column !important;
    -webkit-column-break-inside: avoid !important;
  }

  /* Column four's lighter membership receives more breathing room, so its
     total visual height approaches the other three columns naturally. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(9) {
    break-before: column !important;
    -webkit-column-break-before: always !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(9) + ul.user_listing {
    padding: 16px 14px 20px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(9) + ul.user_listing > li {
    padding: 14px 3px 15px !important;
    line-height: 1.47 !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(9) + ul.user_listing > li + li {
    padding-top: 15px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(n+10) {
    margin-top: 15px !important;
    padding-block: 16px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(n+10) + ul.user_listing {
    padding: 18px 14px 20px !important;
    margin-bottom: 20px !important;
  }
}

/* Revert seamlessly to the prior responsive layout on smaller displays.
   On mobile, there is one column and no forced Section Editors continuation. */
@media (max-width: 1240px) {
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li:nth-child(13)::before {
    content: none !important;
  }
}

/* Better separated member tiles prevent a split list's background from
   appearing as a single extra-tall blank lavender column. */
@media (min-width: 1241px) {
 body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 9px 0 !important;
 }
 body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li {
  border: 1px solid #d9d9e8 !important;
  border-radius: 9px !important;
  background: linear-gradient(135deg, #ffffff, #f3f3fa) !important;
  box-shadow: 0 2px 6px rgba(34,48,87,.045) !important;
  padding: 10px 12px !important;
  margin: 0 0 9px !important;
 }
 body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li:nth-child(-n+12) {
  padding-block: 16px !important;
  margin-bottom: 11px !important;
 }
 body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li:nth-child(13)::before {
  margin: -10px -12px 13px !important;
 }
 body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing > li {
  padding-top: 7px !important;
  padding-bottom: 8px !important;
 }
 body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing > li + li {
  padding-top: 9px !important;
 }
}

/* Final desktop rhythm: distribute student entries more evenly. */
@media (min-width: 1241px) {
 body:has(.page_masthead) .page_masthead > h2:nth-of-type(9) + ul.user_listing > li {
  padding-top: 17px !important;
  padding-bottom: 18px !important;
 }
 body:has(.page_masthead) .page_masthead > h2:nth-of-type(9) + ul.user_listing > li + li {
  padding-top: 18px !important;
 }
}


/* ==========================================================================
   JMEDICA VERSION 70 — PRECISE MASTHEAD COLUMN ADJUSTMENT
   Base: complete Version 69. Editorial Masthead ONLY.
   Existing people and affiliations remain OJS data, never CSS-generated.
   Move first two names from column 3 to column 2: the 15th Section Editor
   begins the third column instead of the 13th.
   ========================================================================= */
@media (min-width: 1241px) {
  /* Remove the old V69 split and its continuation label. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li:nth-child(13) {
    break-before: auto !important;
    -webkit-column-break-before: auto !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li:nth-child(13)::before {
    content: none !important;
    display: none !important;
  }
  /* Revised precise split: first 14 on column 2, remaining on column 3. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li:nth-child(15) {
    break-before: column !important;
    -webkit-column-break-before: always !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li:nth-child(15)::before {
    content: 'Section Editors (continued)' !important;
    display: block !important;
    margin: -10px -12px 13px !important;
    padding: 13px 12px 12px !important;
    border-radius: 9px 9px 0 0 !important;
    color: #fff !important;
    font: bold 16px/1.25 Georgia, 'Times New Roman', serif !important;
    background: linear-gradient(120deg, #16446e, #236583) !important;
    box-sizing: border-box !important;
  }
  /* Fourteen names in col. 2: moderately tightened gaps prevent overflow. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li:nth-child(-n+14) {
    padding: 14.5px 12px !important;
    margin-bottom: 9px !important;
  }
  /* Column 3: keep Editorial Board together and allow its members comfortable spacing. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing > li {
    padding-top: 10px !important;
    padding-bottom: 11px !important;
    line-height: 1.4 !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing > li + li {
    padding-top: 12px !important;
  }
  /* Column 1: larger readable text and deeper gaps in shorter leadership panels. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(-n+6) {
    padding-top: 20px !important;
    padding-bottom: 18px !important;
    font-size: 17px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(n+2):nth-of-type(-n+6) {
    margin-top: 12px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(-n+6) + ul.user_listing {
    padding-top: 20px !important;
    padding-bottom: 19px !important;
    margin-bottom: 18px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(n+2):nth-of-type(-n+6) + ul.user_listing > li {
    font-size: 14px !important;
    line-height: 1.45 !important;
  }
  /* Preserve existing first-card centered name and its exact two-line wrap. */
  /* Column 4: generous readable student rows and wider gaps between role headings. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(9) + ul.user_listing > li {
    padding-top: 25px !important;
    padding-bottom: 26px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(9) + ul.user_listing > li + li {
    padding-top: 26px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(n+10) {
    margin-top: 23px !important;
    padding-block: 20px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(n+10) + ul.user_listing {
    padding: 23px 14px 25px !important;
    margin-bottom: 24px !important;
  }
}
/* Smaller screens retain the responsive two/one-column design with no split label. */
@media (max-width: 1240px) {
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li:nth-child(15)::before {
    content: none !important;
    display: none !important;
  }
}


/* =======================================================================
   JMEDICA VERSION 71 — CONSISTENT FOUR-COLUMN SPACING
   Full V70 stylesheet preserved above. Only native Editorial Masthead.
   Column 2 retains the first 14 Section Editors; column 3 starts at 15.
   All Editorial Board Members stay together. No OJS content is altered.
   ======================================================================= */
@media (min-width: 1241px) {
  /* Column 3 — shorten excessive padding between continued Section Editors
     while retaining distinct individual member tiles. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li:nth-child(n+15) {
    padding: 10px 12px !important;
    margin-bottom: 8px !important;
    line-height: 1.40 !important;
  }
  /* Keep the continued heading flush with the first member card. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li:nth-child(15)::before {
    margin: -10px -12px 11px !important;
  }
  /* Column 3 — make the Board's internal line spacing closer to the
     individual tiles used in column 2. Readability is preserved. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) {
    margin-top: 10px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing {
    padding: 9px 11px 8px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing > li {
    padding: 9px 2px 10px !important;
    line-height: 1.36 !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing > li + li {
    padding-top: 11px !important;
  }

  /* Column 1 — consistent, restrained spaces BETWEEN role cards. Keep the
     larger Editor-in-Chief name and its centered two-line presentation. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(n+2):nth-of-type(-n+6) {
    margin-top: 10px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(-n+6) + ul.user_listing {
    margin-bottom: 16px !important;
  }

  /* Column 4 — bring administrative role intervals toward column 1/2/3;
     retain readable student names and avoid overly large empty gaps. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(9) + ul.user_listing > li {
    padding-top: 24px !important;
    padding-bottom: 25px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(9) + ul.user_listing > li + li {
    padding-top: 24px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(n+10) {
    margin-top: 19px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(n+10) + ul.user_listing {
    margin-bottom: 21px !important;
  }
}


/* =======================================================================
   JMEDICA VERSION 72 — READABLE, BOTTOM-ALIGNED EDITORIAL MASTHEAD
   Full V71 stylesheet remains intact above this masthead-only override.
   Existing OJS names, role order, 14/remaining Section Editor split, board
   membership and the Founding Editor's two-line name are NOT changed.
   Increase typography carefully across all four columns; keep the outer
   columns' natural vertical rhythm and reduce needless whitespace below.
   ======================================================================= */
@media (min-width: 1241px) {
  body:has(.page_masthead) .page_masthead {
    font-size: 15px !important;
    line-height: 1.5 !important;
    padding-bottom: 5px !important;
  }
  /* Clearer role banners, without altering their established color sequence. */
  body:has(.page_masthead) .page_masthead > h2 {
    font-size: 18px !important;
    line-height: 1.28 !important;
    letter-spacing: -.012em !important;
  }
  /* All names and affiliations gain readable, proportionate type. */
  body:has(.page_masthead) .page_masthead .user_listing > li {
    font-size: 14.35px !important;
    line-height: 1.47 !important;
  }
  body:has(.page_masthead) .page_masthead .user_listing .affiliation {
    font-size: .92em !important;
    line-height: 1.39 !important;
    margin-top: 4px !important;
  }
  /* Column one: fewer entries, so stronger readable text fills it naturally. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(-n+6) {
    font-size: 18px !important;
    padding-block: 20px 18px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(-n+6) + ul.user_listing > li {
    font-size: 15px !important;
    line-height: 1.49 !important;
  }
  /* Name remains an actual OJS field, centered on the same two lines. */
  body:has(.page_masthead) .page_masthead > h2:first-of-type + ul.user_listing > li:first-child .name {
    font-size: clamp(21px,1.78vw,24px) !important;
    line-height: 1.18 !important;
  }
  /* Column 2: keep the original fourteen Section Editors in this column. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li:nth-child(-n+14) {
    font-size: 14.35px !important;
    line-height: 1.46 !important;
    padding: 14.5px 11px !important;
    margin-bottom: 9px !important;
  }
  /* Column 3: slightly larger text but consistent compact card spacing. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li:nth-child(n+15) {
    font-size: 14.35px !important;
    line-height: 1.44 !important;
    padding: 10px 11px !important;
    margin-bottom: 8px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing > li {
    font-size: 14.1px !important;
    line-height: 1.43 !important;
    padding-block: 9px 10px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing > li + li {
    padding-top: 11px !important;
  }
  /* Column 4: readable student and management lines; avoid artificial gaps. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(9) + ul.user_listing > li {
    font-size: 14.9px !important;
    line-height: 1.5 !important;
    padding-block: 24px 25px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(n+10) + ul.user_listing > li {
    font-size: 14.9px !important;
    line-height: 1.5 !important;
  }
  /* Reduce only the masthead page's bottom space; other pages are untouched. */
  body:has(.page_masthead) .pkp_structure_main {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
  }
}

/* V72 final desktop calibration: similar end heights for all four columns,
   without fixed card heights, cropped affiliations, or changed editor order. */
@media (min-width: 1241px) {
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(n+2):nth-of-type(-n+6) {
    margin-top: 12px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing > li {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing > li + li {
    padding-top: 12px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(9) + ul.user_listing > li {
    padding-top: 26px !important;
    padding-bottom: 26px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(n+10) {
    margin-top: 21px !important;
  }
}
/* Final optical balance, desktop only: enlarge the shorter outer role cards
   rather than forcing identical fixed-height columns. */
@media (min-width: 1241px) {
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(-n+6) {
    padding-top: 22px !important;
    padding-bottom: 20px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(8) + ul.user_listing > li {
    padding-top: 11px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(9) + ul.user_listing > li {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }
}


/* =======================================================================
   JMEDICA VERSION 72 — REVISED TYPOGRAPHY CALIBRATION
   Full approved Version 72 retained intact above. Only the native OJS
   Editorial Masthead is adjusted, on four-column desktop layouts.

   COLUMN 1: slightly larger role headings and member names.
   COLUMN 2: slightly larger Section Editors heading and member names.
   COLUMN 3: deliberately unchanged.
   COLUMN 4: ONLY member names slightly enlarged (not headings/affiliations).

   Uses existing OJS text: no member names or editorial appointments modified.
   All unrelated pages and smaller responsive layouts remain unchanged.
   ======================================================================= */
@media (min-width: 1241px) {
  /* First and second columns — clearer role headings. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(-n+7) {
    font-size: 19.2px !important;
    line-height: 1.27 !important;
  }

  /* Keep column 1 balanced after its type increase, without hiding content. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(-n+6) {
    padding-top: 20px !important;
    padding-bottom: 18px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(-n+6)
    + ul.user_listing {
    padding-top: 18px !important;
    padding-bottom: 17px !important;
  }

  /* Column 1: appointments below Editor-in-Chief, leaving affiliations as-is. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(n+2):nth-of-type(-n+6)
    + ul.user_listing > li .name {
    font-size: 16.3px !important;
    line-height: 1.34 !important;
  }

  /* Founding Editor's full name remains centered, readable, exactly two lines. */
  body:has(.page_masthead) .page_masthead > h2:first-of-type
    + ul.user_listing > li:first-child .name {
    font-size: clamp(22px, 1.87vw, 25px) !important;
    line-height: 1.18 !important;
  }

  /* Column 2: enlarge the NAMES of the first 14 Section Editors. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7)
    + ul.user_listing > li:nth-child(-n+14) .name {
    font-size: 15.25px !important;
    line-height: 1.38 !important;
  }

  /* Keep column 2's total height controlled as names become larger. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7)
    + ul.user_listing > li:nth-child(-n+14) {
    padding-top: 12.2px !important;
    padding-bottom: 12.2px !important;
  }

  /* Column 4: names only — student board, marketing, and webmaster.
     The affiliation sizes, header sizes and spacing are not changed. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(n+9)
    + ul.user_listing > li .name {
    font-size: 16.5px !important;
    line-height: 1.38 !important;
  }
}


/* ============================================================================
   JMEDICA 72 (REVISED AGAIN) — MATCH THE TWO LEFT MASTHEAD COLUMNS
   Based on the latest approved 72.css. Do not alter columns 3 and 4.
   Native OJS Editorial Masthead only / desktop four-column viewport.

   Column 1: consistent tall premium role cards; modestly larger other names;
             keep the centered, two-line Editor-in-Chief name untouched.
   Column 2: slightly larger Section Editor names and measured tile height.
   Column 3 / 4: absolutely no new selectors or design changes.
   ============================================================================ */
@media (min-width: 1241px) {
  /* COLUMN 1 — balanced rhythm, roughly one natural extra line of card
     breathing room per role; do not force minimum heights or truncate text. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(-n+6) {
    font-size: 19.35px !important;
    line-height: 1.28 !important;
    padding-top: 21px !important;
    padding-bottom: 19px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(-n+6) + ul.user_listing {
    padding-top: 22px !important;
    padding-bottom: 22px !important;
  }
  /* Other leadership names: scale proportionately to the established design. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(n+2):nth-of-type(-n+6)
    + ul.user_listing > li .name {
    font-size: 16.55px !important;
    line-height: 1.36 !important;
  }
  /* Do not alter the Editor-in-Chief's approved 2-line name size/centering. */

  /* COLUMN 2 — 14 Section Editor tiles gain a little more presence and height.
     The continuation in column 3 (members 15+) is not touched. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) {
    font-size: 19.35px !important;
    line-height: 1.28 !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7)
    + ul.user_listing > li:nth-child(-n+14) {
    padding-top: 13.45px !important;
    padding-bottom: 13.45px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7)
    + ul.user_listing > li:nth-child(-n+14) .name {
    font-size: 15.6px !important;
    line-height: 1.4 !important;
  }
}


/* ============================================================================
   JMEDICA 72 — REQUESTED EDITORIAL MASTHEAD PRECISION REVISION
   Retains ALL existing stylesheet rules above and preserves every OJS member.
   Desktop-only: move the eighteenth Section Editor, Dr. Maryam Qaisar,
   visually to the bottom of column 2 without moving the preceding three.
   Senior Journal Editor receives the same centered, two-line premium treatment
   as the Editor-in-Chief. The column 3/4 styles are otherwise unchanged.

   NOTICE: The targeted move relies on current OJS ordering: Dr. Maryam Qaisar
   is the 18th Section Editor. Recheck this selector if appointments are reordered.
   CSS anchor positioning degrades safely on older browsers.
   ============================================================================ */
@media (min-width: 1241px) {
  /* COLUMN 1: give Senior Journal Editor parity with Founding Editor profile. */
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(2) + ul.user_listing {
    padding: 20px 14px 19px !important;
    background: linear-gradient(160deg, #fffdf7, #f2f7fc) !important;
    border: 1px solid #d7c39d !important;
    border-top: 0 !important;
    box-shadow: 0 7px 17px rgba(23, 49, 79, .13) !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(2) + ul.user_listing > li:first-child {
    padding: 5px 0 !important;
    text-align: center !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(2) + ul.user_listing > li:first-child .name {
    display: block !important;
    width: 9.15em !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    padding: 0 0 9px !important;
    font: 700 clamp(21px, 1.78vw, 24px)/1.18 Georgia, 'Times New Roman', serif !important;
    letter-spacing: -.025em !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    text-align: center !important;
    color: #102c52 !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(2) + ul.user_listing > li:first-child .name > * {
    font-size: inherit !important;
    font-family: inherit !important;
    line-height: inherit !important;
    white-space: normal !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(2) + ul.user_listing .affiliation {
    margin: 5px auto 0 !important;
    max-width: 95% !important;
    color: #536477 !important;
    font-size: clamp(12px, 1vw, 13.5px) !important;
    line-height: 1.5 !important;
    text-align: center !important;
  }
}
/* Only browsers that support native CSS anchor positioning perform this
   individual move; no duplicated/hard-coded member name is ever shown. */
@media (min-width: 1241px) {
  @supports (anchor-name: --jm-col2-end) and (position-anchor: --jm-col2-end) {
    body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li:nth-child(14) {
      anchor-name: --jm-col2-end;
      margin-bottom: 91px !important;
    }
    body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li:nth-child(18) {
      position: absolute !important;
      position-anchor: --jm-col2-end !important;
      left: anchor(left) !important;
      top: anchor(bottom) !important;
      width: anchor-size(width) !important;
      margin: 10px 0 0 !important;
      padding: 10px 11px !important;
      z-index: 1 !important;
      box-sizing: border-box !important;
      background: linear-gradient(150deg, #fff, #f5f9fc) !important;
      border: 1px solid #d9e4ec !important;
      border-radius: 8px !important;
      box-shadow: 0 2px 6px rgba(23, 50, 76, .10) !important;
    }
  }
}

/* Final four-column height calibration — preserve the two premium senior
   name cards while aligning the other leadership sections and Section Editors
   with the unchanged third and fourth columns on wide desktop screens. */
@media (min-width: 1241px) {
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(n+3):nth-of-type(-n+6) {
    padding-top: 16px !important;
    padding-bottom: 14px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(n+3):nth-of-type(-n+6) + ul.user_listing {
    padding-top: 16px !important;
    padding-bottom: 16px !important;
  }
  body:has(.page_masthead) .page_masthead > h2:nth-of-type(7) + ul.user_listing > li:nth-child(-n+14) {
    padding-top: 10.5px !important;
    padding-bottom: 10.5px !important;
  }
}
