/* ======================================================
   RTM - Revue des Traditions Musicales
   Custom stylesheet for the OJS Default theme
   v12 - COMPLETE FILE, replaces rtm-custom11.css
         Same as v11, but the theme's own content width
         and margins are left untouched.
   ====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;700&display=swap');

:root {
  --ua-blue:      #005BAA;
  --ua-blue-dark: #004886;
  --ua-navy:      #0D2340;
  --ua-grey:      #555555;
  --text-grey:    #555555;
  --utility-h:    36px;
  --brand-h:      72px;
  --banner-h:     440px;
}

/* ------------------------------------------------------
   1. Typography
   ------------------------------------------------------ */
html, body,
.pkp_structure_page,
input, select, textarea, button,
h1, h2, h3, h4, h5, h6,
ul.pkp_navigation_primary > li > a,
ul.pkp_navigation_user > li > a {
  font-family: 'Roboto', 'Noto Naskh Arabic', 'Helvetica Neue', Arial, sans-serif !important;
}

/* Arabic pages: Naskh first. Several hooks so one matches. */
html[lang="ar"] body,
html[lang^="ar"] body,
html[dir="rtl"] body,
body[dir="rtl"],
html[lang^="ar"] .pkp_structure_main,
html[lang^="ar"] ul.pkp_navigation_primary > li > a,
html[lang^="ar"] ul.pkp_navigation_user > li > a {
  font-family: 'Noto Naskh Arabic', 'Segoe UI', Tahoma, 'Roboto', sans-serif !important;
}
html[lang^="ar"] .pkp_structure_main,
body[dir="rtl"] .pkp_structure_main { line-height: 1.9 !important; }
html[lang^="ar"] ul.pkp_navigation_primary > li > a,
body[dir="rtl"] ul.pkp_navigation_primary > li > a { font-size: 1rem !important; }

/* ------------------------------------------------------
   2. Body text in the footer grey
   ------------------------------------------------------ */
body,
.pkp_structure_page,
.pkp_structure_main,
.pkp_structure_main p,
.pkp_structure_main li,
.pkp_structure_main td,
.pkp_structure_main th,
.pkp_structure_main div,
.pkp_structure_main span,
.pkp_structure_main label,
.pkp_structure_main dt,
.pkp_structure_main dd,
.pkp_structure_main strong,
.pkp_structure_main em,
.pkp_structure_main h5,
.pkp_structure_main h6,
.obj_article_summary .authors,
.obj_article_summary .meta,
.obj_issue_toc .section h2,
.cmp_article_list .authors,
.cmp_article_list .meta,
.pkp_block,
.pkp_block .content,
.obj_issue_toc .pub_date,
.published,
.page .description,
.cmp_breadcrumbs,
.cmp_breadcrumbs li,
.obj_galley_link,
.current_issue_title,
.additional_content,
.additional_content p,
.additional_content li {
  color: var(--text-grey) !important;
}

h1, h2, h3, h4,
.pkp_structure_main h1,
.pkp_structure_main h2,
.pkp_structure_main h3 {
  color: var(--ua-blue) !important;
  font-weight: 500;
}

a { color: var(--ua-blue); }

/* ------------------------------------------------------
   3. No horizontal scrollbar
   ------------------------------------------------------ */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* ------------------------------------------------------
   4. HEADER container - symmetric full bleed
   ------------------------------------------------------ */
.pkp_head_wrapper {
  background-image: none !important;
  background-color: var(--ua-blue) !important;
  width: auto !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  position: relative !important;
  overflow: visible !important;
  border: none !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  min-height: 0 !important;
  height: auto !important;
}
.pkp_head_wrapper::after { content: none !important; }

/* ------------------------------------------------------
   5. Flatten header wrappers
   ------------------------------------------------------ */
.pkp_head_wrapper > div:not(.pkp_site_name):not(.pkp_search),
.pkp_head_wrapper > nav:not(.pkp_search),
.pkp_head_wrapper > header:not(.pkp_search),
.pkp_head_wrapper > div:not(.pkp_site_name):not(.pkp_search) > div:not(.pkp_site_name):not(.pkp_search),
.pkp_head_wrapper > div:not(.pkp_site_name):not(.pkp_search) > nav:not(.pkp_search),
.pkp_head_wrapper > nav:not(.pkp_search) > div:not(.pkp_site_name):not(.pkp_search),
.pkp_head_wrapper > div > div:not(.pkp_site_name):not(.pkp_search) > div:not(.pkp_site_name):not(.pkp_search),
.pkp_head_wrapper > div > div:not(.pkp_site_name):not(.pkp_search) > nav:not(.pkp_search),
.pkp_site_nav_wrapper,
.pkp_site_nav_menu,
.pkp_navigation_user_wrapper,
.pkp_navigation_primary_wrapper,
.pkp_site_name_wrapper,
.pkp_navigation_search_wrapper {
  display: contents !important;
  background: transparent !important;
  border: none !important;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
}

/* ------------------------------------------------------
   6. ROW 1 - navy strip
   ------------------------------------------------------ */
ul.pkp_navigation_user {
  order: 0 !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  height: var(--utility-h) !important;
  min-height: var(--utility-h) !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-inline-end: 1.25rem !important;
  background: var(--ua-navy) !important;
  list-style: none !important;
  float: none !important;
  position: relative !important;
  z-index: 40 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

ul.pkp_navigation_user > li {
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  position: relative !important;
  background: transparent !important;
  border: none !important;
  height: var(--utility-h) !important;
  display: flex !important;
  align-items: center !important;
}

ul.pkp_navigation_user > li > a,
ul.pkp_navigation_user > li > a:visited {
  display: block !important;
  color: #ffffff !important;
  background: transparent !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: .5rem .85rem !important;
  margin: 0 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  border: none !important;
  box-shadow: none !important;
}
ul.pkp_navigation_user > li > a:hover {
  background: rgba(255,255,255,.15) !important;
}

/* ------------------------------------------------------
   7. LANGUAGE SWITCHER - opposite end of the navy strip
   ------------------------------------------------------ */
ul.pkp_navigation_user > li:has(> a[href*="setLocale"]),
ul.pkp_navigation_user > li:has(ul a[href*="setLocale"]),
ul.pkp_navigation_user > li.locale_toggle,
ul.pkp_navigation_user > li[class*="locale"] {
  margin-inline-end: auto !important;
  margin-inline-start: 0 !important;
  padding-inline-start: 1rem !important;
  order: -1 !important;
}

.pkp_head_wrapper [class*="locale"],
.pkp_head_wrapper [class*="language"] {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: auto !important;
  height: auto !important;
  overflow: visible !important;
  align-items: center !important;
  position: relative !important;
  float: none !important;
  background: transparent !important;
  border: none !important;
  list-style: none !important;
}

.pkp_head_wrapper a[href*="setLocale"] {
  display: block !important;
  color: #ffffff !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  padding: .5rem .5rem !important;
  text-decoration: none !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  border: none !important;
  letter-spacing: .03em;
}
.pkp_head_wrapper a[href*="setLocale"]:hover {
  background: rgba(255,255,255,.15) !important;
  border-radius: 3px;
}

.pkp_head_wrapper li:has(> a[href*="setLocale"]) + li:has(> a[href*="setLocale"])::before {
  content: "|";
  color: rgba(255,255,255,.45);
  align-self: center;
  font-size: .7rem;
}

/* ------------------------------------------------------
   8. ROW 2 - logo | menu | search
   ------------------------------------------------------ */
.pkp_head_wrapper .pkp_site_name,
.pkp_site_name {
  order: 1 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  height: var(--brand-h) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-inline-start: 1.25rem !important;
  padding-inline-end: 1.5rem !important;
  overflow: visible !important;
  float: none !important;
  position: relative !important;
  z-index: 30 !important;
  display: flex !important;
  align-items: center !important;
  background: transparent !important;
  border: none !important;
}

.pkp_site_name .is_img,
.pkp_site_name a {
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

.pkp_site_name img {
  display: block !important;
  max-height: 52px !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  clip: auto !important;
  position: static !important;
}

ul.pkp_navigation_primary {
  order: 2 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  height: var(--brand-h) !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  list-style: none !important;
  float: none !important;
  position: relative !important;
  z-index: 20 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: .25rem !important;
}

ul.pkp_navigation_primary > li {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
  position: relative !important;
  background: transparent !important;
  border: none !important;
  width: auto !important;
  height: var(--brand-h) !important;
  display: flex !important;
  align-items: center !important;
}

ul.pkp_navigation_primary > li > a,
ul.pkp_navigation_primary > li > a:visited {
  display: block !important;
  color: #ffffff !important;
  background: transparent !important;
  font-size: .95rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  padding: .6rem 1rem !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  text-shadow: none !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 3px;
  transition: background .18s ease;
}
ul.pkp_navigation_primary > li > a:hover,
ul.pkp_navigation_primary > li > a:focus,
ul.pkp_navigation_primary > li.current > a {
  background: var(--ua-blue-dark) !important;
  color: #ffffff !important;
}

.pkp_search {
  order: 3 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  height: var(--brand-h) !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  padding-inline-start: .75rem !important;
  padding-inline-end: 1.25rem !important;
  background: transparent !important;
  border: none !important;
  float: none !important;
  position: relative !important;
  z-index: 25 !important;
  display: flex !important;
  align-items: center !important;
}
.pkp_search a,
.pkp_search a:visited {
  color: #ffffff !important;
  font-size: .9rem !important;
  font-weight: 600 !important;
  text-shadow: none !important;
  padding: .5rem .7rem !important;
  display: block !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
.pkp_search a > span,
.pkp_search .fa,
.pkp_search [class*="icon"] {
  margin-right: 0 !important;
  margin-inline-end: .35rem !important;
}

/* ------------------------------------------------------
   9. Dropdowns flush under their button
   ------------------------------------------------------ */
ul.pkp_navigation_primary ul,
ul.pkp_navigation_user ul {
  display: none;
  position: absolute !important;
  top: 100% !important;
  bottom: auto !important;
  inset-inline-start: 0 !important;
  inset-inline-end: auto !important;
  margin: 0 !important;
  transform: none !important;
  width: auto !important;
  min-width: 230px !important;
  height: auto !important;
  padding: .3rem 0 !important;
  background: #ffffff !important;
  border: none !important;
  border-top: 3px solid var(--ua-blue) !important;
  box-shadow: 0 6px 18px rgba(0,0,0,.18) !important;
  z-index: 100 !important;
  text-align: start !important;
  list-style: none !important;
}

ul.pkp_navigation_primary > li:hover > ul,
ul.pkp_navigation_primary > li:focus-within > ul,
ul.pkp_navigation_user > li:hover > ul,
ul.pkp_navigation_user > li:focus-within > ul,
ul.pkp_navigation_primary > li > ul.is_visible,
ul.pkp_navigation_user > li > ul.is_visible {
  display: block !important;
}

ul.pkp_navigation_primary ul li,
ul.pkp_navigation_user ul li {
  display: block !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  height: auto !important;
}

ul.pkp_navigation_primary ul li a,
ul.pkp_navigation_user ul li a {
  color: var(--text-grey) !important;
  background: transparent !important;
  text-shadow: none !important;
  font-weight: 500 !important;
  font-size: .92rem !important;
  padding: .55rem 1.1rem !important;
  display: block !important;
  white-space: normal !important;
  text-decoration: none !important;
}
ul.pkp_navigation_primary ul li a:hover,
ul.pkp_navigation_user ul li a:hover {
  background: #eef4fa !important;
  color: var(--ua-blue) !important;
}

/* ------------------------------------------------------
   10. Remove stray borders and vertical rules ONLY.
       Width, margins and padding of the content column
       are deliberately NOT touched here.
   ------------------------------------------------------ */
[class*="pkp_structure"] {
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;
}

.pkp_structure_page,
.pkp_structure_content,
.pkp_structure_main,
.pkp_structure_head,
.pkp_structure_body,
.pkp_structure_sidebar,
.pkp_structure_sidebar.left,
.pkp_structure_sidebar.right {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background-image: none !important;
}

.pkp_structure_content::before,
.pkp_structure_content::after,
.pkp_structure_main::before,
.pkp_structure_main::after,
.pkp_structure_sidebar::before,
.pkp_structure_sidebar::after {
  content: none !important;
  display: none !important;
  border: none !important;
}

/* ------------------------------------------------------
   11. Banner - symmetric full bleed
   ------------------------------------------------------ */
.homepage_image,
.pkp_structure_main .homepage_image {
  width: auto !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: 0 !important;
  margin-bottom: 2rem !important;
  padding: 0 !important;
  line-height: 0;
  position: relative !important;
  z-index: 5 !important;
  border: none !important;
}
.homepage_image img {
  display: block;
  width: 100% !important;
  height: var(--banner-h) !important;
  object-fit: cover;
  object-position: center 55%;
  max-width: none !important;
  margin: 0 !important;
}

/* ------------------------------------------------------
   12. Footer - symmetric full bleed
   ------------------------------------------------------ */
.pkp_structure_footer_wrapper,
.pkp_structure_footer {
  background: var(--ua-grey) !important;
  color: #ffffff !important;
}
.pkp_structure_footer_wrapper {
  width: auto !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  display: block !important;
  clear: both !important;
}
.pkp_structure_footer_wrapper p,
.pkp_structure_footer_wrapper div,
.pkp_structure_footer_wrapper strong,
.pkp_footer_content,
.pkp_footer_content p {
  color: #ffffff !important;
}
.pkp_structure_footer_wrapper a,
.pkp_footer_content a {
  color: #ffffff !important;
  text-decoration: underline;
}
.pkp_structure_footer_wrapper a:hover { color: #e6e6e6 !important; }

.pkp_brand_footer img,
.pkp_footer_brand_image {
  filter: brightness(0) invert(1);
  opacity: .55;
}

/* ------------------------------------------------------
   13. Latin strings inside Arabic text
   ------------------------------------------------------ */
html[lang^="ar"] .published,
body[dir="rtl"] .published,
html[lang^="ar"] .obj_issue_toc .pub_date,
body[dir="rtl"] .obj_issue_toc .pub_date {
  direction: ltr !important;
  unicode-bidi: embed !important;
  display: inline-block !important;
}

/* ------------------------------------------------------
   14. Responsive
   ------------------------------------------------------ */
@media (max-width: 1100px) {
  ul.pkp_navigation_primary > li > a { font-size: .9rem !important; padding: .55rem .7rem !important; }
}

@media (max-width: 991px) {
  :root { --brand-h: 62px; --banner-h: 280px; }
  .pkp_site_name img { max-height: 44px !important; }
  ul.pkp_navigation_primary > li > a { font-size: .86rem !important; padding: .5rem .55rem !important; }
}

@media (max-width: 767px) {
  :root { --banner-h: 190px; }
  .pkp_site_name {
    flex: 0 0 100% !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: .5rem 0 !important;
    height: auto !important;
  }
  ul.pkp_navigation_primary {
    flex: 0 0 100% !important;
    flex-wrap: wrap !important;
    height: auto !important;
    padding: 0 0 .5rem !important;
  }
  ul.pkp_navigation_primary > li { height: auto !important; }
  .pkp_search {
    flex: 0 0 100% !important;
    justify-content: center !important;
    margin: 0 !important;
    height: auto !important;
    padding: 0 0 .5rem !important;
  }
  .pkp_site_name img { max-height: 40px !important; }
}

/* ===== 18. Header logo / search nudge ===== */
.pkp_head_wrapper .pkp_site_name {
	position: relative !important;
	inset-inline-start: 45px;
}

.pkp_head_wrapper .pkp_search {
	position: relative !important;
	inset-inline-end: 45px;
}

/* ===== 18b. Kill the gap reintroduced by the transform ===== */
.pkp_head_wrapper,
.pkp_site_name {
	margin-bottom: 0 !important;
	padding-bottom: 0 !important;
}

.pkp_structure_page,
.pkp_structure_content,
.pkp_structure_body,
.pkp_structure_main {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.homepage_image {
	margin-top: 0 !important;
}



/* ======================================================
   15. MOBILE HEADER  (max-width: 991px)
   v18 addition. Nothing above this line was changed.

   The hamburger route is abandoned. Section 5 flattens
   .pkp_site_nav_menu with display: contents, which is the
   element the three-stripe button shows and hides, so the
   button can never work while the desktop flex row exists.
   Rather than fight that, the menu is laid out as a single
   row in the blue banner:

       Logo   Current   Issues   Submissions   About   Search

   Row 1 = navy strip (Language / Register / Login)
   Row 2 = the single blue row above

   Desktop is untouched — every rule below sits inside a
   max-width query.
   ====================================================== */

@media (max-width: 991px) {

  /* ---- 15.1 two stacked rows ---- */
  .pkp_head_wrapper {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
  }

  /* ---- 15.2 no hamburger — the menu is always visible ---- */
  .pkp_site_nav_toggle,
  .pkp_head_wrapper button[class*="toggle"],
  .pkp_head_wrapper a[class*="toggle"],
  .pkp_navigation_toggle,
  .pkp_site_nav_toggle_wrapper {
    display: none !important;
  }

  /* ---- 15.3 ROW 1: navy strip on top ---- */
  ul.pkp_navigation_user {
    order: 0 !important;
    flex: 0 0 100% !important;
    width: 100% !important;
    height: auto !important;
    min-height: 32px !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    background: var(--ua-navy) !important;
    padding-inline: .5rem !important;
  }

  ul.pkp_navigation_user > li {
    height: auto !important;
    display: flex !important;
    align-items: center !important;
  }

  ul.pkp_navigation_user > li > a,
  .pkp_head_wrapper a[href*="setLocale"] {
    font-size: .68rem !important;
    padding: .4rem .4rem !important;
  }

  /* ---- 15.4 ROW 2: one blue row, six items ---- */
  .pkp_head_wrapper .pkp_site_name,
  .pkp_site_name {
    order: 1 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: .3rem 0 .3rem .5rem !important;
    justify-content: flex-start !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
  }

  .pkp_site_name img {
    max-height: 30px !important;
    width: auto !important;
  }

  ul.pkp_navigation_primary {
    order: 2 !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-evenly !important;
    gap: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  ul.pkp_navigation_primary > li {
    height: auto !important;
    flex: 0 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
  }

  ul.pkp_navigation_primary > li > a {
    font-size: .62rem !important;
    font-weight: 600 !important;
    padding: .35rem .18rem !important;
    white-space: nowrap !important;
    letter-spacing: -.01em !important;
  }

  /* the About caret takes space it does not need */
  ul.pkp_navigation_primary > li > a::after {
    margin-inline-start: .15rem !important;
  }

  .pkp_search {
    order: 3 !important;
    flex: 0 0 auto !important;
    width: auto !important;
    height: auto !important;
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: .3rem .5rem .3rem 0 !important;
    justify-content: flex-end !important;
    inset-inline-start: auto !important;
    inset-inline-end: auto !important;
  }

  .pkp_search a {
    font-size: .62rem !important;
    padding: .35rem .2rem !important;
    white-space: nowrap !important;
  }

  .pkp_search a > span,
  .pkp_search .fa,
  .pkp_search [class*="icon"] {
    margin-inline-end: .2rem !important;
  }

  /* ---- 15.5 dropdowns still open under their item ---- */
  ul.pkp_navigation_primary ul,
  ul.pkp_navigation_user ul {
    min-width: 180px !important;
    inset-inline-start: 0 !important;
  }

  ul.pkp_navigation_primary ul li a,
  ul.pkp_navigation_user ul li a {
    font-size: .82rem !important;
    padding: .5rem .8rem !important;
  }
}

/* ======================================================
   15b. Narrow phones (max-width: 767px)
   Cancels the section 14 rules that forced the logo,
   menu and search onto their own full-width rows, and
   tightens the type so six items still fit one line.
   ====================================================== */
@media (max-width: 767px) {

  .pkp_site_name {
    flex: 0 0 auto !important;
    justify-content: flex-start !important;
    height: auto !important;
    padding: .25rem 0 .25rem .35rem !important;
  }

  .pkp_site_name img {
    max-height: 26px !important;
  }

  ul.pkp_navigation_primary {
    flex: 1 1 auto !important;
    flex-wrap: nowrap !important;
    height: auto !important;
    padding: 0 !important;
  }

  ul.pkp_navigation_primary > li > a {
    font-size: .58rem !important;
    padding: .3rem .12rem !important;
  }

  .pkp_search {
    flex: 0 0 auto !important;
    justify-content: flex-end !important;
    height: auto !important;
    padding: .25rem .35rem .25rem 0 !important;
  }

  .pkp_search a {
    font-size: .58rem !important;
    padding: .3rem .15rem !important;
  }

}

/* ======================================================
   15c. Very narrow phones (max-width: 400px)
   Hides the word "Search" but keeps the magnifier icon so
   all six items still fit on one line.
   ====================================================== */
@media (max-width: 400px) {

  .pkp_search a {
    font-size: 0 !important;
  }

  .pkp_search .fa,
  .pkp_search [class*="icon"] {
    font-size: .9rem !important;
  }

  ul.pkp_navigation_primary > li > a {
    font-size: .55rem !important;
    padding: .3rem .1rem !important;
  }
}


/* ======================================================
   16. LANGUAGE DROPDOWN WIDTH  (all widths)
   v20 addition. Nothing above this line was changed.

   v19 used :has() to single out the locale menu. That did
   not take effect, so this version drops :has() entirely.

   The navy strip only ever holds Language, Register and
   Login, and only Language has a submenu, so every
   descendant <ul> of .pkp_navigation_user can be targeted
   directly. Section 9's min-width: 230px is overridden
   with width: max-content, so the box shrinks to fit
   EN / FR / AR.
   ====================================================== */

ul.pkp_navigation_user ul,
ul.pkp_navigation_user > li > ul,
.pkp_head_wrapper ul.pkp_navigation_user ul {
  min-width: 0 !important;
  width: max-content !important;
  max-width: none !important;
  padding: .2rem 0 !important;
  inset-inline-start: 0 !important;
  inset-inline-end: auto !important;
}

/* Older browsers that do not understand max-content fall
   back to a small fixed width rather than 230px. */
@supports not (width: max-content) {
  ul.pkp_navigation_user ul {
    width: 5.5rem !important;
  }
}

ul.pkp_navigation_user ul li {
  width: auto !important;
}

ul.pkp_navigation_user ul li a {
  padding: .4rem .85rem !important;
  font-size: .85rem !important;
  white-space: nowrap !important;
  text-align: start !important;
  min-width: 0 !important;
}


/* ======================================================
   17. RIGHT SIDEBAR - "Journal Information" block
   v21 addition. Nothing above this line was changed.

   Pairs with a Custom Block Manager block whose content
   is the <div class="rtm-jinfo"> markup supplied with
   this file. Styling only - the block itself is created
   in the OJS admin.
   ====================================================== */

.pkp_block .rtm-jinfo,
.rtm-jinfo {
  font-size: .95rem;
}

.rtm-jinfo h2,
.pkp_block .rtm-jinfo h2 {
  color: #333333 !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  margin: 0 0 .5rem !important;
  padding: 0 0 .5rem !important;
  border-bottom: 1px solid #e3e8ee !important;
  text-transform: none !important;
}

.rtm-jinfo ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.rtm-jinfo li {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #e3e8ee;
}

.rtm-jinfo li:last-child {
  border-bottom: none;
}

.rtm-jinfo li a {
  display: block !important;
  position: relative;
  color: #333333 !important;
  font-size: .95rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  padding: .6rem 0 .6rem 1.25rem !important;
  text-decoration: none !important;
}

.rtm-jinfo li a::before {
  content: "\203A";
  position: absolute;
  inset-inline-start: 0;
  top: .5rem;
  color: #4DA3B5;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.2;
}

.rtm-jinfo li a:hover {
  color: var(--ua-blue) !important;
}

.rtm-jinfo li a:hover::before {
  color: var(--ua-blue);
}

/* RTL: chevron flips to the other side and mirrors */
html[lang^="ar"] .rtm-jinfo li a,
body[dir="rtl"] .rtm-jinfo li a {
  padding: .6rem 1.25rem .6rem 0 !important;
}

html[lang^="ar"] .rtm-jinfo li a::before,
body[dir="rtl"] .rtm-jinfo li a::before {
  content: "\2039";
}

/* Keep the sidebar readable once has_sidebar appears */
.pkp_structure_sidebar .pkp_block {
  margin-bottom: 1.75rem !important;
}

.pkp_structure_sidebar .pkp_block .title {
  color: #333333 !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  padding-bottom: .5rem !important;
  border-bottom: 1px solid #e3e8ee !important;
}


/* ======================================================
   18. CURRENT ISSUE HEADING BLOCK - tighter spacing
   v21 addition.

   "Current Issue", the volume line and the Published line
   sit far apart because each carries a full heading
   margin. This closes the gaps without changing type
   size or colour.
   ====================================================== */

.pkp_structure_main .current_issue_title {
  margin: 0 0 .5rem !important;
  padding: 0 !important;
  line-height: 1.25 !important;
}

.pkp_structure_main .current_issue,
.pkp_structure_main .current_issue .obj_issue_toc {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.pkp_structure_main .current_issue h1,
.pkp_structure_main .current_issue h2,
.pkp_structure_main .current_issue h3,
.pkp_structure_main .current_issue h4,
.pkp_structure_main .obj_issue_toc > h1,
.pkp_structure_main .obj_issue_toc > h2 {
  margin: 0 0 .3rem !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

.pkp_structure_main .current_issue .published,
.pkp_structure_main .obj_issue_toc .published,
.pkp_structure_main .published,
.pkp_structure_main .current_issue .pub_date,
.pkp_structure_main .obj_issue_toc .pub_date {
  margin: 0 0 .3rem !important;
  padding: 0 !important;
  line-height: 1.35 !important;
}

/* the series of empty paragraphs the theme leaves behind */
.pkp_structure_main .current_issue p:empty,
.pkp_structure_main .obj_issue_toc p:empty,
.pkp_structure_main .current_issue br + br {
  display: none !important;
}

.pkp_structure_main .current_issue p {
  margin: 0 0 .3rem !important;
}

/* space before the first section heading, not inside it */
.pkp_structure_main .obj_issue_toc .section:first-of-type > h2 {
  margin-top: 1.5rem !important;
}

.pkp_structure_main .obj_issue_toc .section > h2 {
  margin-bottom: .75rem !important;
}


/* ======================================================
   19. SIDEBAR PLACEMENT - pull it back on screen, right
   v22 addition. Nothing above this line was changed.

   The page source shows:
     <div class="pkp_structure_sidebar left">
   The default theme positions the LEFT sidebar with a
   negative margin / float trick that assumes the theme's
   own container widths. Section 4's full-bleed header and
   Section 3's overflow-x: hidden break that assumption, so
   the sidebar renders off-canvas and is clipped away.

   This neutralises the negative positioning and places the
   sidebar in a normal right-hand column.
   ====================================================== */

.pkp_structure_content.has_sidebar,
.pkp_structure_content {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: flex-start !important;
  overflow: visible !important;
}

.pkp_structure_main {
  order: 1 !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  float: none !important;
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
  left: auto !important;
  right: auto !important;
  position: static !important;
  overflow: visible !important;
}

.pkp_structure_sidebar,
.pkp_structure_sidebar.left,
.pkp_structure_sidebar.right {
  order: 2 !important;
  flex: 0 0 300px !important;
  max-width: 300px !important;
  width: 300px !important;
  float: none !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
  margin: 0 !important;
  padding: 2.5rem 1.5rem 2rem !important;
  box-sizing: border-box !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
}

/* Hide the internal block name OJS prints because
   showName = 1. The block's own <h2> is the real heading. */
#customblock-rtmjinfo > h2.title,
#customblock-rtmjinfo > .title,
.pkp_block.block_custom > h2.title {
  display: none !important;
}

#customblock-rtmjinfo > .content,
.pkp_block.block_custom > .content {
  padding: 0 !important;
  margin: 0 !important;
}

/* Below 991px the sidebar drops under the article list */
@media (max-width: 991px) {
  .pkp_structure_sidebar,
  .pkp_structure_sidebar.left,
  .pkp_structure_sidebar.right {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
    padding: 1.5rem 1.25rem !important;
  }

  .pkp_structure_main {
    flex: 0 0 100% !important;
  }
}


/* ======================================================
   20. SIDEBAR - HOMEPAGE ONLY, LEFT, BELOW THE BANNER
   v23 addition. Nothing above this line was changed.

   Section 19 placed the sidebar on every page. This
   restricts it to the journal homepage, moves it to the
   left of the article list, and pushes it down so it
   starts underneath the full-bleed banner photo rather
   than sitting beside it.

   OJS puts pkp_page_index on <body> for the homepage.
   ====================================================== */

/* --- 1. hide it everywhere except the homepage --- */
body:not(.pkp_page_index) .pkp_structure_sidebar,
body:not(.pkp_page_index) .pkp_structure_sidebar.left,
body:not(.pkp_page_index) .pkp_structure_sidebar.right {
  display: none !important;
}

/* give the main column the full width back on those pages */
body:not(.pkp_page_index) .pkp_structure_main {
  flex: 1 1 100% !important;
  max-width: 100% !important;
}

/* --- 2. on the homepage: left column, under the photo --- */
body.pkp_page_index .pkp_structure_main {
  order: 2 !important;
}

body.pkp_page_index .pkp_structure_sidebar,
body.pkp_page_index .pkp_structure_sidebar.left,
body.pkp_page_index .pkp_structure_sidebar.right {
  order: 1 !important;
  /* banner height + the gap below it, so the block starts
     level with "Research Articles" instead of beside the
     photo */
  padding-top: calc(var(--banner-h) + 3.5rem) !important;
  padding-inline-start: 1.5rem !important;
  padding-inline-end: 1.5rem !important;
}

@media (max-width: 991px) {
  body.pkp_page_index .pkp_structure_sidebar,
  body.pkp_page_index .pkp_structure_sidebar.left,
  body.pkp_page_index .pkp_structure_sidebar.right {
    /* stacked layout below 991px: no banner offset needed */
    padding-top: 0 !important;
    order: 3 !important;
  }

  body.pkp_page_index .pkp_structure_main {
    order: 2 !important;
  }
}


/* ======================================================
   21. ARTICLE SUMMARY ROWS - Luminous-style listing
   v24 addition. Nothing above this line was changed.

   Restyles each row of the issue table of contents:
     left  = section label, title, authors, meta line
     right = galley buttons, separated by a hairline

   Published date and volume/issue are NOT in the OJS
   table-of-contents template, so they cannot be added
   here. That is stage 2 (child theme).
   ====================================================== */

.obj_issue_toc .articles,
.obj_issue_toc .section > ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.obj_article_summary {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 1.25rem !important;
  padding: 1.35rem 0 !important;
  margin: 0 !important;
  border-bottom: 1px solid #e3e8ee !important;
}

.obj_article_summary:last-child {
  border-bottom: none !important;
}

/* cover thumbnail stays small and out of the way */
.obj_article_summary > .cover_image,
.obj_article_summary .cover_image_wrapper {
  flex: 0 0 auto !important;
  max-width: 92px !important;
  margin: 0 !important;
}

.obj_article_summary > .cover_image img,
.obj_article_summary .cover_image img {
  max-width: 92px !important;
  height: auto !important;
  display: block !important;
}

/* ---- left column: all the text ---- */
.obj_article_summary > .title,
.obj_article_summary > .subtitle,
.obj_article_summary > .meta,
.obj_article_summary > .abstract {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.obj_article_summary > .title {
  order: 1 !important;
  margin: 0 0 .2rem !important;
  padding: 0 !important;
  font-size: 1.02rem !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

.obj_article_summary > .title a {
  color: var(--ua-blue) !important;
  text-decoration: none !important;
}

.obj_article_summary > .title a:hover {
  text-decoration: underline !important;
}

.obj_article_summary > .subtitle {
  order: 2 !important;
  margin: 0 0 .3rem !important;
  color: #777777 !important;
  font-size: .92rem !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

.obj_article_summary > .meta {
  order: 3 !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.obj_article_summary .authors {
  display: block !important;
  margin: 0 0 .3rem !important;
  color: #8a8f94 !important;
  font-size: .9rem !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
}

/* pages: inline under the authors, with a label, instead of
   floating far right as the theme does by default */
.obj_article_summary .pages {
  display: inline-block !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: start !important;
  color: #555555 !important;
  font-size: .88rem !important;
  font-weight: 400 !important;
}

.obj_article_summary .pages::before {
  content: "Pages: ";
  font-weight: 600;
  color: #555555;
}

html[lang^="fr"] .obj_article_summary .pages::before {
  content: "Pages : ";
}

html[lang^="ar"] .obj_article_summary .pages::before {
  content: "\0627\0644\0635\0641\062D\0627\062A: ";
}

/* ---- right column: galley buttons ---- */
.obj_article_summary .galleys_links,
.obj_article_summary ul.galleys_links {
  order: 4 !important;
  flex: 0 0 auto !important;
  list-style: none !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: .4rem !important;
  margin: 0 !important;
  padding: 0 0 0 1.25rem !important;
  border-inline-start: 1px solid #e3e8ee !important;
  min-width: 110px !important;
}

html[lang^="ar"] .obj_article_summary .galleys_links,
body[dir="rtl"] .obj_article_summary .galleys_links {
  padding: 0 1.25rem 0 0 !important;
}

.obj_article_summary .galleys_links li {
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
}

.obj_article_summary .galleys_links a,
.obj_article_summary .galleys_links .obj_galley_link {
  display: block !important;
  text-align: center !important;
  background: var(--ua-blue) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 3px !important;
  font-size: .8rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  padding: .45rem .8rem !important;
  text-decoration: none !important;
}

.obj_article_summary .galleys_links a:hover,
.obj_article_summary .galleys_links .obj_galley_link:hover {
  background: var(--ua-blue-dark) !important;
  color: #ffffff !important;
}

/* section heading above each group of articles */
.obj_issue_toc .section > h2,
.obj_issue_toc .section > h3 {
  color: var(--ua-blue) !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  border-bottom: 2px solid var(--ua-blue) !important;
  padding-bottom: .4rem !important;
}

@media (max-width: 767px) {
  .obj_article_summary {
    flex-wrap: wrap !important;
    gap: .75rem !important;
  }

  .obj_article_summary .galleys_links,
  .obj_article_summary ul.galleys_links {
    flex: 0 0 100% !important;
    flex-direction: row !important;
    border-inline-start: none !important;
    padding: .25rem 0 0 !important;
    min-width: 0 !important;
  }
}


/* ======================================================
   22. UNDO THE SITE-WIDE FLEX ON NON-HOMEPAGE PAGES
   v25 addition. Nothing above this line was changed.

   Section 19 turned .pkp_structure_content into a flex
   row on EVERY page so the homepage sidebar could be
   repositioned. On article pages that removed the
   theme's own column widths and margins, which is why
   the article text now runs to the far left edge and
   the right-hand area looks stranded.

   The flex layout is now confined to the homepage; every
   other page is handed back to the theme untouched.
   ====================================================== */

body:not(.pkp_page_index) .pkp_structure_content,
body:not(.pkp_page_index) .pkp_structure_content.has_sidebar {
  display: block !important;
  flex-direction: unset !important;
  flex-wrap: unset !important;
  align-items: unset !important;
}

body:not(.pkp_page_index) .pkp_structure_main {
  order: unset !important;
  flex: unset !important;
  width: auto !important;
  max-width: none !important;
  min-width: 0 !important;
  float: none !important;
  margin-inline-start: auto !important;
  margin-inline-end: auto !important;
}

/* Keep the article page inside a comfortable measure
   instead of running edge to edge */
body:not(.pkp_page_index) .pkp_structure_main {
  max-width: 1200px !important;
  padding-inline-start: 1.5rem !important;
  padding-inline-end: 1.5rem !important;
  box-sizing: border-box !important;
}


/* ======================================================
   23. ARTICLE SIDEBAR (entry_details) - even spacing
   v25 addition.

   Gives every stacked item - How to Cite, cover image,
   Published, Issue - the same padding above and below
   its divider, so the Published block sits symmetrically
   between the two.
   ====================================================== */

.entry_details .item {
  margin: 0 !important;
  padding: 1.1rem 0 !important;
  border-top: 1px solid #e3e8ee !important;
  border-bottom: none !important;
}

.entry_details .item:first-of-type {
  border-top: none !important;
}

.entry_details .item > .label,
.entry_details .item > h2,
.entry_details .item > h3,
.entry_details .item .sub_item > .label {
  display: block !important;
  margin: 0 0 .4rem !important;
  padding: 0 !important;
  color: var(--ua-blue) !important;
  font-size: .92rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

.entry_details .item > .value,
.entry_details .item .sub_item > .value {
  margin: 0 !important;
  padding: 0 !important;
  color: #555555 !important;
  font-size: .9rem !important;
  line-height: 1.5 !important;
}

/* the published date specifically: no stray top offset,
   same rhythm as the blocks above and below it */
.entry_details .item.published,
.entry_details .item.published .value,
.entry_details .item.published .label {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.entry_details .item.published {
  padding: 1.1rem 0 !important;
}

/* cover image block: centre it and match the padding */
.entry_details .item.cover_image,
.entry_details .item.cover_image img {
  margin: 0 !important;
}

.entry_details .item.cover_image img {
  display: block !important;
  max-width: 100% !important;
  height: auto !important;
}


/* ======================================================
   24. ARTICLE SIDEBAR - CORRECTIONS ON SECTION 23
   v26 addition. Nothing above this line was changed.

   Two fixes requested:
   (a) the Published block sat tight against its divider
       line while How to Cite, the cover image and Issue
       all had breathing room. All four now share the
       same generous gap, and Published is stated last
       so it wins on equal specificity.
   (b) the whole entry_details column moves further to
       the right, away from the article text.
   ====================================================== */

/* ---- (b) push the whole right-hand column rightwards ---- */
.entry_details {
  margin-inline-start: 2.75rem !important;
  padding-inline-start: 1.75rem !important;
  padding-inline-end: 0 !important;
  box-sizing: border-box !important;
}

/* ---- (a) equal breathing room on every stacked item ---- */
.entry_details .item,
.entry_details .item.citation,
.entry_details .item.cover_image,
.entry_details .item.issue,
.entry_details .item.published {
  padding-top: 1.6rem !important;
  padding-bottom: 1.6rem !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* the label inside each item keeps clear of the divider */
.entry_details .item > .label,
.entry_details .item.published > .label,
.entry_details .item.issue > .label {
  margin-top: 0 !important;
  margin-bottom: .5rem !important;
  padding-top: 0 !important;
}

/* first item needs no top rule or top padding */
.entry_details .item:first-of-type {
  border-top: none !important;
  padding-top: 0 !important;
}

@media (max-width: 991px) {
  .entry_details {
    margin-inline-start: 0 !important;
    padding-inline-start: 0 !important;
  }
}


/* ======================================================
   25. ARTICLE PAGE - SIDEBAR HARD RIGHT, WIDER ABSTRACT
   v27 addition. Nothing above this line was changed.

   The entry_details column was sitting in the middle of
   the available space, leaving a wide empty strip on the
   right and squeezing the abstract. This floats it to the
   far right so its outer edge lines up with the
   horizontal rule above it, and gives all the reclaimed
   width back to the article text.

   Section 24 set margin-inline-start: 2.75rem on
   .entry_details; that is cancelled here.
   ====================================================== */

.obj_article_details .main_entry,
.page_article .main_entry,
.main_entry {
  float: left !important;
  width: calc(100% - 340px) !important;
  max-width: calc(100% - 340px) !important;
  margin: 0 !important;
  padding-inline-end: 2rem !important;
  box-sizing: border-box !important;
}

.obj_article_details .entry_details,
.page_article .entry_details,
.entry_details {
  float: right !important;
  width: 300px !important;
  max-width: 300px !important;
  margin-inline-start: 0 !important;
  margin-inline-end: 0 !important;
  padding-inline-start: 1.75rem !important;
  padding-inline-end: 0 !important;
  box-sizing: border-box !important;
}

/* the floats need clearing or the footer rides up */
.obj_article_details .row::after,
.page_article .row::after,
.obj_article_details::after {
  content: "" !important;
  display: table !important;
  clear: both !important;
}

@media (max-width: 991px) {
  .obj_article_details .main_entry,
  .page_article .main_entry,
  .main_entry,
  .obj_article_details .entry_details,
  .page_article .entry_details,
  .entry_details {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-inline-start: 0 !important;
    padding-inline-end: 0 !important;
  }
}


/* ======================================================
   26. ARTICLE PAGE - REMOVE THE INNER DIVIDER, SHIFT LEFT
   v28 addition. Nothing above this line was changed.

   (a) The grey vertical rule immediately to the left of
       the sidebar is a border drawn by the theme on
       .entry_details (and/or the right edge of
       .main_entry). Both are removed.
   (b) The column then slides left to where that rule was,
       keeping the existing gap between the rule position
       and the block content. Done by widening the sidebar
       slot by 40px while its right edge stays put, so the
       article column gives up exactly that much.
   ====================================================== */

/* ---- (a) kill the divider, whichever side draws it ---- */
.obj_article_details .entry_details,
.page_article .entry_details,
.entry_details {
  border-inline-start: none !important;
  border-left: none !important;
  border-right: none !important;
  box-shadow: none !important;
}

.obj_article_details .main_entry,
.page_article .main_entry,
.main_entry {
  border-inline-end: none !important;
  border-right: none !important;
  border-left: none !important;
  box-shadow: none !important;
}

.obj_article_details .entry_details::before,
.page_article .entry_details::before,
.entry_details::before,
.obj_article_details .main_entry::after,
.page_article .main_entry::after,
.main_entry::after {
  content: none !important;
  border: none !important;
  background: none !important;
}

/* ---- (b) move the column left onto that line ---- */
.obj_article_details .entry_details,
.page_article .entry_details,
.entry_details {
  width: 340px !important;
  max-width: 340px !important;
  padding-inline-start: 1.75rem !important;
}

.obj_article_details .main_entry,
.page_article .main_entry,
.main_entry {
  width: calc(100% - 380px) !important;
  max-width: calc(100% - 380px) !important;
}

@media (max-width: 991px) {
  .obj_article_details .entry_details,
  .page_article .entry_details,
  .entry_details,
  .obj_article_details .main_entry,
  .page_article .main_entry,
  .main_entry {
    width: 100% !important;
    max-width: 100% !important;
    padding-inline-start: 0 !important;
  }
}


/* ======================================================
   27. ISSUE LISTING - STACK TITLE / ABSTRACT / KEYWORDS
   v29 addition. Nothing above this line was changed.

   Section 21 made .obj_article_summary a flex row, so the
   new abstract and keyword blocks lined up BESIDE the
   title instead of under it. This converts the row to a
   grid with explicit placement:

     col 1 = cover image   (spans all rows)
     col 2 = title, then abstract, then keywords stacked
     col 3 = meta (authors / pages / date)
     col 4 = galley buttons

   Explicit grid placement is used instead of flex-wrap so
   the text column stacks without pushing meta and the
   galley buttons onto their own lines.
   ====================================================== */

.obj_issue_toc .obj_article_summary,
.obj_article_summary {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto auto !important;
  grid-template-rows: auto auto auto !important;
  column-gap: 1.75rem !important;
  row-gap: 0.45rem !important;
  align-items: start !important;
  flex-wrap: nowrap !important;
}

.obj_article_summary > .cover {
  grid-column: 1 !important;
  grid-row: 1 / span 3 !important;
  margin: 0 !important;
}

.obj_article_summary > .title,
.obj_article_summary > h2.title,
.obj_article_summary > h3.title {
  grid-column: 2 !important;
  grid-row: 1 !important;
  margin: 0 !important;
  font-weight: 700 !important;
}

.obj_article_summary > .rtm-sum-abstract-block {
  grid-column: 2 !important;
  grid-row: 2 !important;
}

.obj_article_summary > .rtm-sum-keywords-block {
  grid-column: 2 !important;
  grid-row: 3 !important;
}

.obj_article_summary > .meta {
  grid-column: 3 !important;
  grid-row: 1 / span 3 !important;
  margin: 0 !important;
}

.obj_article_summary > .galleys_links {
  grid-column: 4 !important;
  grid-row: 1 / span 3 !important;
  margin: 0 !important;
}

/* ---- the bold labels ---- */
.obj_article_summary .rtm-sum-label {
  font-family: "Roboto", Arial, sans-serif !important;
  font-size: 0.86rem !important;
  font-weight: 700 !important;
  color: var(--ua-blue, #005baa) !important;
  letter-spacing: 0.01em !important;
  margin: 0 0 0.15rem 0 !important;
}

/* ---- abstract body ---- */
.obj_article_summary .rtm-sum-abstract {
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
  color: var(--text-grey, #555555) !important;
  margin: 0 !important;
}

.obj_article_summary .rtm-sum-more {
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: var(--ua-blue, #005baa) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  margin-inline-start: 0.3rem !important;
}

.obj_article_summary .rtm-sum-more:hover,
.obj_article_summary .rtm-sum-more:focus {
  text-decoration: underline !important;
}

/* ---- keywords body ---- */
.obj_article_summary .rtm-sum-keywords {
  font-size: 0.88rem !important;
  line-height: 1.5 !important;
  color: #8a8f94 !important;
  margin: 0 !important;
}

.obj_article_summary .rtm-sum-block {
  margin: 0 !important;
  padding: 0 !important;
}

/* ---- Arabic: let the stacked blocks read right to left ---- */
[lang="ar"] .obj_article_summary .rtm-sum-abstract,
[lang="ar"] .obj_article_summary .rtm-sum-keywords,
[lang="ar"] .obj_article_summary .rtm-sum-label {
  direction: rtl !important;
  text-align: right !important;
}

/* ---- narrow screens: single column, natural order ---- */
@media (max-width: 767px) {
  .obj_issue_toc .obj_article_summary,
  .obj_article_summary {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
    row-gap: 0.5rem !important;
  }

  .obj_article_summary > .cover,
  .obj_article_summary > .title,
  .obj_article_summary > h2.title,
  .obj_article_summary > h3.title,
  .obj_article_summary > .rtm-sum-abstract-block,
  .obj_article_summary > .rtm-sum-keywords-block,
  .obj_article_summary > .meta,
  .obj_article_summary > .galleys_links {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}


/* ======================================================
   28. ISSUE LISTING - REFERENCES ROW
   v30 addition. Nothing above this line was changed.

   Section 27 built a 3-row grid (title / abstract /
   keywords) in column 2. A fourth row is added here for
   the References block, and the cover, meta and galley
   columns are re-spanned from 3 rows to 4 so they still
   cover the full height of the text column.
   ====================================================== */

.obj_issue_toc .obj_article_summary,
.obj_article_summary {
  grid-template-rows: auto auto auto auto !important;
}

.obj_article_summary > .cover,
.obj_article_summary > .meta,
.obj_article_summary > .galleys_links {
  grid-row: 1 / span 4 !important;
}

.obj_article_summary > .rtm-sum-references-block {
  grid-column: 2 !important;
  grid-row: 4 !important;
}

/* references body - same treatment as the abstract */
.obj_article_summary .rtm-sum-references {
  font-size: 0.92rem !important;
  line-height: 1.55 !important;
  color: var(--text-grey, #555555) !important;
  margin: 0 !important;
}

[lang="ar"] .obj_article_summary .rtm-sum-references {
  direction: rtl !important;
  text-align: right !important;
}

@media (max-width: 767px) {
  .obj_article_summary > .cover,
  .obj_article_summary > .meta,
  .obj_article_summary > .galleys_links,
  .obj_article_summary > .rtm-sum-references-block {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}


/* ======================================================
   29. ISSUE LISTING - FULL-HEIGHT COVER + HARDENED GRID
   v31 addition. Nothing above this line was changed.

   (a) The cover image now stretches to the combined
       height of title + abstract + keywords + references
       so the row reads as one solid block next to the
       meta column and the galley buttons.

   (b) Placement is re-declared with a higher-specificity
       selector that does not depend on the direct-child
       combinator. On rows with no cover image the text
       blocks were free to fall into the empty first
       column; every block is now pinned to column 2.
   ====================================================== */

/* ---- (b) pin every text block to the second column ---- */
.obj_issue_toc .obj_article_summary .rtm-sum-abstract-block,
.obj_article_summary .rtm-sum-abstract-block {
  grid-column: 2 / 3 !important;
  grid-row: 2 / 3 !important;
}

.obj_issue_toc .obj_article_summary .rtm-sum-keywords-block,
.obj_article_summary .rtm-sum-keywords-block {
  grid-column: 2 / 3 !important;
  grid-row: 3 / 4 !important;
}

.obj_issue_toc .obj_article_summary .rtm-sum-references-block,
.obj_article_summary .rtm-sum-references-block {
  grid-column: 2 / 3 !important;
  grid-row: 4 / 5 !important;
}

.obj_issue_toc .obj_article_summary > .title,
.obj_issue_toc .obj_article_summary > h2.title,
.obj_issue_toc .obj_article_summary > h3.title,
.obj_article_summary > .title,
.obj_article_summary > h2.title,
.obj_article_summary > h3.title {
  grid-column: 2 / 3 !important;
  grid-row: 1 / 2 !important;
}

/* keep the first column reserved even when no cover exists,
   so rows with and without a cover stay vertically aligned */
.obj_issue_toc .obj_article_summary,
.obj_article_summary {
  grid-template-columns: 150px minmax(0, 1fr) auto auto !important;
}

/* ---- (a) cover fills the full height of the text column ---- */
.obj_issue_toc .obj_article_summary > .cover,
.obj_article_summary > .cover {
  grid-column: 1 / 2 !important;
  grid-row: 1 / span 4 !important;
  align-self: stretch !important;
  width: 150px !important;
  max-width: 150px !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.obj_article_summary > .cover > a,
.obj_article_summary > .cover > a.file {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.obj_article_summary > .cover img,
.obj_article_summary > .cover .cover_image img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center top !important;
  margin: 0 !important;
  border-radius: 2px !important;
}

/* ---- narrow screens: single column, cover back to natural size ---- */
@media (max-width: 767px) {
  .obj_issue_toc .obj_article_summary,
  .obj_article_summary {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .obj_issue_toc .obj_article_summary .rtm-sum-abstract-block,
  .obj_issue_toc .obj_article_summary .rtm-sum-keywords-block,
  .obj_issue_toc .obj_article_summary .rtm-sum-references-block,
  .obj_article_summary .rtm-sum-abstract-block,
  .obj_article_summary .rtm-sum-keywords-block,
  .obj_article_summary .rtm-sum-references-block,
  .obj_issue_toc .obj_article_summary > .title,
  .obj_article_summary > .title,
  .obj_article_summary > h2.title,
  .obj_article_summary > h3.title,
  .obj_issue_toc .obj_article_summary > .cover,
  .obj_article_summary > .cover {
    grid-column: 1 / 2 !important;
    grid-row: auto !important;
  }

  .obj_issue_toc .obj_article_summary > .cover,
  .obj_article_summary > .cover {
    align-self: start !important;
    height: auto !important;
    width: 130px !important;
    max-width: 130px !important;
  }

  .obj_article_summary > .cover > a,
  .obj_article_summary > .cover > a.file,
  .obj_article_summary > .cover img {
    height: auto !important;
  }
}


/* ======================================================
   30. ISSUE LISTING - AUTHOR UNDER TITLE, 5-ROW GRID
   v32 addition. Nothing above this line was changed.

   The template now emits the author string as its own
   .rtm-sum-authors block instead of leaving it inside
   .meta, so the text column becomes five rows:

     row 1 = title (+ second-language title)
     row 2 = authors
     row 3 = abstract
     row 4 = keywords
     row 5 = references

   .meta (pages / date) and .galleys_links are pulled to
   the top of the row so the title, the pages number and
   the PDF button all sit on one baseline.
   ====================================================== */

.obj_issue_toc .obj_article_summary,
.obj_article_summary {
  grid-template-rows: auto auto auto auto auto !important;
  align-items: start !important;
}

/* ---- row assignments in the text column ---- */
.obj_issue_toc .obj_article_summary > .title,
.obj_issue_toc .obj_article_summary > h2.title,
.obj_issue_toc .obj_article_summary > h3.title,
.obj_article_summary > .title,
.obj_article_summary > h2.title,
.obj_article_summary > h3.title {
  grid-column: 2 / 3 !important;
  grid-row: 1 / 2 !important;
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

.obj_issue_toc .obj_article_summary .rtm-sum-authors,
.obj_article_summary .rtm-sum-authors {
  grid-column: 2 / 3 !important;
  grid-row: 2 / 3 !important;
  margin: 0.25rem 0 0 0 !important;
  padding: 0 !important;
}

.obj_issue_toc .obj_article_summary .rtm-sum-abstract-block,
.obj_article_summary .rtm-sum-abstract-block {
  grid-column: 2 / 3 !important;
  grid-row: 3 / 4 !important;
  margin-top: 0.7rem !important;
}

.obj_issue_toc .obj_article_summary .rtm-sum-keywords-block,
.obj_article_summary .rtm-sum-keywords-block {
  grid-column: 2 / 3 !important;
  grid-row: 4 / 5 !important;
  margin-top: 0.7rem !important;
}

.obj_issue_toc .obj_article_summary .rtm-sum-references-block,
.obj_article_summary .rtm-sum-references-block {
  grid-column: 2 / 3 !important;
  grid-row: 5 / 6 !important;
  margin-top: 0.7rem !important;
}

/* ---- cover, meta and galleys span all five rows ---- */
.obj_issue_toc .obj_article_summary > .cover,
.obj_article_summary > .cover {
  grid-row: 1 / span 5 !important;
}

.obj_issue_toc .obj_article_summary > .meta,
.obj_article_summary > .meta {
  grid-column: 3 / 4 !important;
  grid-row: 1 / span 5 !important;
  align-self: start !important;
  margin: 0 !important;
  padding: 0 !important;
}

.obj_issue_toc .obj_article_summary > .galleys_links,
.obj_article_summary > .galleys_links {
  grid-column: 4 / 5 !important;
  grid-row: 1 / span 5 !important;
  align-self: start !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

/* ---- one baseline for title / pages / PDF ---- */
.obj_article_summary > .meta > .pages,
.obj_article_summary > .meta > .published {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

.obj_article_summary > .galleys_links > li {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.3 !important;
}

/* ---- authors keep the metadata font and colour ---- */
.obj_article_summary .rtm-sum-authors {
  font-family: "Roboto", Arial, sans-serif !important;
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: #8a8f94 !important;
}

/* ---- second-language title: same link, lighter weight ---- */
.obj_article_summary .title .rtm-sum-title-main {
  display: block !important;
}

.obj_article_summary .title .rtm-sum-title-alt {
  display: block !important;
  margin-top: 0.2rem !important;
  font-size: 0.92em !important;
  font-weight: 500 !important;
  color: #4a7fae !important;
}

/* ---- second-language abstract / keywords ---- */
.obj_article_summary .rtm-sum-abstract.rtm-sum-alt,
.obj_article_summary .rtm-sum-keywords.rtm-sum-alt {
  margin-top: 0.4rem !important;
  padding-top: 0.4rem !important;
  border-top: 1px dotted #dfe4ea !important;
}

/* ---- narrow screens: single column, natural order ---- */
@media (max-width: 767px) {
  .obj_issue_toc .obj_article_summary,
  .obj_article_summary {
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto !important;
  }

  .obj_issue_toc .obj_article_summary > .cover,
  .obj_issue_toc .obj_article_summary > .title,
  .obj_issue_toc .obj_article_summary > .meta,
  .obj_issue_toc .obj_article_summary > .galleys_links,
  .obj_issue_toc .obj_article_summary .rtm-sum-authors,
  .obj_issue_toc .obj_article_summary .rtm-sum-abstract-block,
  .obj_issue_toc .obj_article_summary .rtm-sum-keywords-block,
  .obj_issue_toc .obj_article_summary .rtm-sum-references-block,
  .obj_article_summary > .cover,
  .obj_article_summary > .title,
  .obj_article_summary > h2.title,
  .obj_article_summary > h3.title,
  .obj_article_summary > .meta,
  .obj_article_summary > .galleys_links,
  .obj_article_summary .rtm-sum-authors,
  .obj_article_summary .rtm-sum-abstract-block,
  .obj_article_summary .rtm-sum-keywords-block,
  .obj_article_summary .rtm-sum-references-block {
    grid-column: 1 / 2 !important;
    grid-row: auto !important;
  }
}


/* ======================================================
   31. ARTICLE PAGE - SECOND-LANGUAGE TITLE / ABSTRACT /
       KEYWORDS
   v33 addition. Nothing above this line was changed.

   The article_details.tpl override now prints the
   submission locale first and one further language
   beneath it. These rules keep the second language
   visually subordinate so the submission language stays
   the primary reading.
   ====================================================== */

/* ---- second-language title, under the main title ---- */
.obj_article_details .page_title.rtm-alt-title {
  margin: 0.4rem 0 0 0 !important;
  font-size: 1.45rem !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  color: #4a7fae !important;
}

.obj_article_details .subtitle.rtm-alt-subtitle {
  margin: 0.25rem 0 0 0 !important;
  font-size: 1.1rem !important;
  font-weight: 400 !important;
  color: #6b7a88 !important;
}

/* ---- second-language keywords, under the first list ---- */
.obj_article_details .item.keywords .value.rtm-alt-keywords {
  display: block !important;
  margin-top: 0.45rem !important;
  padding-top: 0.45rem !important;
  border-top: 1px dotted #dfe4ea !important;
  color: #555555 !important;
}

/* ---- second-language abstract block ---- */
.obj_article_details .item.abstract.rtm-alt-abstract {
  margin-top: 1.25rem !important;
  padding-top: 1rem !important;
  border-top: 1px dotted #dfe4ea !important;
}

.obj_article_details .item.abstract.rtm-alt-abstract .label {
  color: #4a7fae !important;
}

/* ---- RTL / LTR is handled per block by dir="auto" ---- */
.obj_article_details .page_title[dir="auto"],
.obj_article_details .subtitle[dir="auto"],
.obj_article_details .item.abstract[dir="auto"],
.obj_article_details .item.keywords .value[dir="auto"],
.obj_article_details .item.references .value[dir="auto"] {
  unicode-bidi: plaintext !important;
}


/* ======================================================
   32. ISSUE LISTING - TITLE/PAGES OVERLAP FIX + LARGER
       READING SIZE
   v34 addition. Nothing above this line was changed.

   (a) The title sat in grid column 2 but grid items
       default to min-width:auto, so a long unbroken
       French title pushed past its column and printed
       underneath the "Pages:" block in column 3.
       Forcing min-width:0 makes the title wrap inside
       its own column, and the gutters guarantee clear
       space between the three columns.

   (b) Every listing text size raised by roughly 3px.
   ====================================================== */

/* ---- (a) stop the title bleeding into the meta column ---- */
.obj_issue_toc .obj_article_summary > .title,
.obj_issue_toc .obj_article_summary > h2.title,
.obj_issue_toc .obj_article_summary > h3.title,
.obj_article_summary > .title,
.obj_article_summary > h2.title,
.obj_article_summary > h3.title {
  min-width: 0 !important;
  max-width: 100% !important;
  padding-right: 1.5rem !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
  hyphens: auto !important;
}

.obj_article_summary .title .rtm-sum-title-main,
.obj_article_summary .title .rtm-sum-title-alt,
.obj_article_summary .title > a {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

/* every text cell in column 2 must be allowed to shrink */
.obj_article_summary .rtm-sum-authors,
.obj_article_summary .rtm-sum-abstract-block,
.obj_article_summary .rtm-sum-keywords-block,
.obj_article_summary .rtm-sum-references-block {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-wrap: break-word !important;
}

/* ---- (a) give the meta column its own protected space ---- */
.obj_issue_toc .obj_article_summary > .meta,
.obj_article_summary > .meta {
  min-width: 7.5rem !important;
  padding-left: 1.25rem !important;
  text-align: right !important;
  white-space: normal !important;
}

.obj_issue_toc .obj_article_summary > .galleys_links,
.obj_article_summary > .galleys_links {
  padding-left: 1rem !important;
  white-space: nowrap !important;
}

/* ---- (b) larger reading size across the listing ---- */
.obj_article_summary .title .rtm-sum-title-main {
  font-size: 1.3rem !important;
  line-height: 1.35 !important;
}

.obj_article_summary .title .rtm-sum-title-alt {
  font-size: 1.15rem !important;
  line-height: 1.35 !important;
}

.obj_article_summary .rtm-sum-authors {
  font-size: 1.12rem !important;
}

.obj_article_summary .rtm-sum-abstract,
.obj_article_summary .rtm-sum-keywords,
.obj_article_summary .rtm-sum-references {
  font-size: 1.08rem !important;
  line-height: 1.6 !important;
}

.obj_article_summary .rtm-sum-label {
  font-size: 1.08rem !important;
}

.obj_article_summary .rtm-sum-more {
  font-size: 1.05rem !important;
}

.obj_article_summary > .meta > .pages,
.obj_article_summary > .meta > .published,
.obj_article_summary > .galleys_links > li,
.obj_article_summary > .galleys_links > li > a {
  font-size: 1.05rem !important;
}

/* ---- narrow screens: drop the protective gutters ---- */
@media (max-width: 767px) {
  .obj_issue_toc .obj_article_summary > .title,
  .obj_article_summary > .title,
  .obj_article_summary > h2.title,
  .obj_article_summary > h3.title {
    padding-right: 0 !important;
  }

  .obj_issue_toc .obj_article_summary > .meta,
  .obj_article_summary > .meta {
    min-width: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
  }

  .obj_issue_toc .obj_article_summary > .galleys_links,
  .obj_article_summary > .galleys_links {
    padding-left: 0 !important;
  }
}


/* ======================================================
   33. ISSUE LISTING - REMOVE THE ARTICLE COVER COLUMN
   v35 addition. Nothing above this line was changed.

   Articles carry no cover images (only issues do), so the
   reserved 150px first column left an empty band down the
   left of every entry. Rather than collapsing that column
   to zero - which would leave its 1.75rem column-gap
   behind as a stray indent - the whole grid is shifted one
   column left: text takes column 1, meta column 2, galley
   links column 3.
   ====================================================== */

.obj_issue_toc .obj_article_summary,
.obj_article_summary {
  grid-template-columns: minmax(0, 1fr) auto auto !important;
}

/* ---- the cover is never rendered ---- */
.obj_issue_toc .obj_article_summary > .cover,
.obj_article_summary > .cover {
  display: none !important;
}

/* ---- text column moves to column 1 ---- */
.obj_issue_toc .obj_article_summary > .title,
.obj_issue_toc .obj_article_summary > h2.title,
.obj_issue_toc .obj_article_summary > h3.title,
.obj_article_summary > .title,
.obj_article_summary > h2.title,
.obj_article_summary > h3.title,
.obj_issue_toc .obj_article_summary .rtm-sum-authors,
.obj_article_summary .rtm-sum-authors,
.obj_issue_toc .obj_article_summary .rtm-sum-abstract-block,
.obj_article_summary .rtm-sum-abstract-block,
.obj_issue_toc .obj_article_summary .rtm-sum-keywords-block,
.obj_article_summary .rtm-sum-keywords-block,
.obj_issue_toc .obj_article_summary .rtm-sum-references-block,
.obj_article_summary .rtm-sum-references-block {
  grid-column: 1 / 2 !important;
}

/* ---- meta and galleys shift left by one ---- */
.obj_issue_toc .obj_article_summary > .meta,
.obj_article_summary > .meta {
  grid-column: 2 / 3 !important;
}

.obj_issue_toc .obj_article_summary > .galleys_links,
.obj_article_summary > .galleys_links {
  grid-column: 3 / 4 !important;
}

/* ---- narrow screens stay single-column ---- */
@media (max-width: 767px) {
  .obj_issue_toc .obj_article_summary,
  .obj_article_summary {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .obj_issue_toc .obj_article_summary > .meta,
  .obj_article_summary > .meta,
  .obj_issue_toc .obj_article_summary > .galleys_links,
  .obj_article_summary > .galleys_links {
    grid-column: 1 / 2 !important;
  }
}


/* ======================================================
   34. ISSUE LISTING - ALIGN PAGES / PDF ACROSS ARTICLES
   v36 addition. Nothing above this line was changed.

   Each .obj_article_summary is its own grid container, so
   an "auto" track is sized by that one article's content:
   "Pages: 3-7" produced a narrower column than
   "Pages: 25-41", and the boundary moved from row to row.
   Grid tracks only align within a single grid, never
   between sibling grids.

   Fixed widths on columns 2 and 3 make every article
   resolve to identical boundaries. Text is left-aligned
   inside the meta column so the "Pages:" labels line up
   with each other rather than their values.
   ====================================================== */

.obj_issue_toc .obj_article_summary,
.obj_article_summary {
  grid-template-columns: minmax(0, 1fr) 9rem 9.5rem !important;
}

.obj_issue_toc .obj_article_summary > .meta,
.obj_article_summary > .meta {
  width: 100% !important;
  min-width: 0 !important;
  text-align: left !important;
}

.obj_issue_toc .obj_article_summary > .galleys_links,
.obj_article_summary > .galleys_links {
  width: 100% !important;
  min-width: 0 !important;
  text-align: left !important;
  white-space: normal !important;
}

/* ---- narrow screens: back to one flowing column ---- */
@media (max-width: 767px) {
  .obj_issue_toc .obj_article_summary,
  .obj_article_summary {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .obj_issue_toc .obj_article_summary > .meta,
  .obj_article_summary > .meta,
  .obj_issue_toc .obj_article_summary > .galleys_links,
  .obj_article_summary > .galleys_links {
    width: auto !important;
  }
}


/* ======================================================
   35. ISSUE LISTING - PUSH "PAGES" FURTHER RIGHT
   v37 addition. Nothing above this line was changed.

   The meta column is widened and its content indented
   from the left, rather than right-aligned: an indent
   keeps every "Pages:" label starting at the same x
   position, whereas right-alignment would line up the
   values and leave the labels ragged ("Pages: 3-7" vs
   "Pages: 25-41" differ in width).

   The galley column is untouched, so the PDF button
   stays to the right of the page range.
   ====================================================== */

.obj_issue_toc .obj_article_summary,
.obj_article_summary {
  grid-template-columns: minmax(0, 1fr) 17rem 9.5rem !important;
}

.obj_issue_toc .obj_article_summary > .meta,
.obj_article_summary > .meta {
  padding-left: 8rem !important;
  text-align: left !important;
}

/* ---- narrow screens: no indent, single column ---- */
@media (max-width: 767px) {
  .obj_issue_toc .obj_article_summary,
  .obj_article_summary {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .obj_issue_toc .obj_article_summary > .meta,
  .obj_article_summary > .meta {
    padding-left: 0 !important;
  }
}


/* ======================================================
   36. ISSUE LISTING - "PAGES" TO THE RIGHT EDGE
   v38 addition. Nothing above this line was changed.

   Section 35 indented the meta column but could not reach
   the right edge, because the page range was still in the
   middle track with the galley track to its right.

   The two tracks are therefore swapped: galleys take
   column 2, the page range takes column 3 and is flushed
   to the right edge of the content area. Consequence: the
   PDF button now sits immediately LEFT of the page range
   instead of right of it.

   The meta text is right-aligned so it ends exactly on the
   content edge, which means the "Pages:" labels no longer
   start at an identical x position - the page ranges
   end-align instead. That is unavoidable when flushing to
   an edge with variable-width values.
   ====================================================== */

.obj_issue_toc .obj_article_summary,
.obj_article_summary {
  grid-template-columns: minmax(0, 1fr) auto 8.5rem !important;
}

/* ---- galley links move into the middle track ---- */
.obj_issue_toc .obj_article_summary > .galleys_links,
.obj_article_summary > .galleys_links {
  grid-column: 2 / 3 !important;
  width: auto !important;
  padding-left: 0 !important;
  padding-right: 1.25rem !important;
  text-align: right !important;
  white-space: nowrap !important;
}

/* ---- page range takes the final track, flush right ---- */
.obj_issue_toc .obj_article_summary > .meta,
.obj_article_summary > .meta {
  grid-column: 3 / 4 !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  text-align: right !important;
  justify-self: end !important;
}

.obj_article_summary > .meta > .pages,
.obj_article_summary > .meta > .published {
  text-align: right !important;
  white-space: nowrap !important;
}

/* ---- narrow screens: single column, natural order ---- */
@media (max-width: 767px) {
  .obj_issue_toc .obj_article_summary,
  .obj_article_summary {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .obj_issue_toc .obj_article_summary > .meta,
  .obj_article_summary > .meta,
  .obj_issue_toc .obj_article_summary > .galleys_links,
  .obj_article_summary > .galleys_links {
    grid-column: 1 / 2 !important;
    width: auto !important;
    padding-right: 0 !important;
    text-align: left !important;
    justify-self: stretch !important;
  }

  .obj_article_summary > .meta > .pages,
  .obj_article_summary > .meta > .published {
    text-align: left !important;
  }
}

/* RTM: improve Crossref citation-count readability */
#citation-plugin .citations-count-crossref .badge_total {
    background-color: #005baa !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    min-width: 30px;
    padding: 4px 9px !important;
    border-radius: 6px;
    text-align: center;
}
/* RTM v39: citation count only; preserve all previous layout rules */
#citation-plugin .citations-count-crossref .badge_total {
  background-color: #005baa !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 700 !important;
}
.rtm-crossref-counter:not([hidden]) {
  display: block;
  clear: both;
  margin: 6px 0;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 400;
  color: #444;
  direction: ltr;
  unicode-bidi: isolate;
}
.rtm-crossref-counter[hidden] { display: none !important; }
.rtm-crossref-counter .rtm-crossref-value {
  display: inline-block;
  background: #005baa;
  color: #ffffff;
  font-weight: 700;
  border-radius: 5px;
  padding: 1px 7px;
  margin-inline-start: 4px;
  min-width: 1.5em;
  text-align: center;
}
@media (max-width: 767px) {
  .rtm-crossref-counter:not([hidden]) { font-size: 12px; }
}
