@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,600;0,700;1,400&family=Roboto+Slab:wght@500;600;700&display=swap");

/**
 * ZJMS identity layer — what makes ZJMS look different from AMJ.
 * Loaded after the theme styles (Appearance > Advanced > Journal style sheet).
 * Remove the upload to fall back to the shared AMJ-derived layout.
 *
 * Signature elements: coral heartbeat line from the logo, teal navigation bar,
 * uncovered hero image, pill tabs, top-ruled panels, dark footer.
 */

/* `html:root` beats the inline :root block printed from the theme options */
html:root {
  --zjms-primary: #0d4f4a;
  --zjms-secondary: #12877f;
  --zjms-accent: #e0452b;
  --zjms-ink: #101c1b;
  --zjms-bg: #f5f8f7;
  --zjms-text: #16211f;
  --zjms-muted: #56686a;
  --zjms-border: #dde7e5;
  --zjms-font-body: "Noto Sans", "Segoe UI", sans-serif;
  --zjms-font-heading: "Roboto Slab", Georgia, serif;
  --zjms-radius: 6px;
  --zjms-pulse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='18' viewBox='0 0 160 18'%3E%3Cpath d='M0 9H62l4-6 5 13 4-11 3 4h82' fill='none' stroke='%23e0452b' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* ---------- Header ---------- */

body.zjms-theme .zjms-utility {
  background: var(--zjms-ink);
}

body.zjms-theme .zjms-brand {
  position: relative;
  padding: 1.1rem 0 1.6rem;
  border-bottom: 0;
}

/* heartbeat line under the logo, echoing the ZJMS mark */
body.zjms-theme .zjms-brand::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 18px;
  background: var(--zjms-pulse) repeat-x left center;
  opacity: 0.9;
}

body.zjms-theme .zjms-brand__title {
  color: var(--zjms-ink);
  letter-spacing: -0.01em;
}

body.zjms-theme .zjms-brand-search__input:focus {
  border-color: var(--zjms-secondary);
  box-shadow: 0 0 0 0.2rem rgba(18, 135, 127, 0.18);
}

/* ---------- Primary navigation: solid teal bar ---------- */

body.zjms-theme .zjms-nav {
  background: var(--zjms-primary);
  border-bottom: 3px solid var(--zjms-accent);
}

body.zjms-theme .zjms-nav .navbar-nav .nav-link,
body.zjms-theme .zjms-nav #navigationPrimary > li > a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
}

body.zjms-theme .zjms-nav #navigationPrimary > li > a:hover,
body.zjms-theme .zjms-nav #navigationPrimary > li > a:focus-visible,
body.zjms-theme .zjms-nav #navigationPrimary > li.current > a,
body.zjms-theme .zjms-nav .navbar-nav .nav-link.active {
  color: #fff;
  text-decoration: none;
  border-bottom-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

body.zjms-theme .zjms-nav #navigationPrimary ul {
  border: 0;
  border-top: 3px solid var(--zjms-accent);
  border-radius: 0 0 var(--zjms-radius) var(--zjms-radius);
  box-shadow: 0 12px 28px rgba(16, 28, 27, 0.18);
}

body.zjms-theme .zjms-nav #navigationPrimary ul a {
  text-transform: none;
  color: var(--zjms-text);
}

body.zjms-theme .zjms-nav #navigationPrimary .dropdown-item:hover,
body.zjms-theme .zjms-nav #navigationPrimary .dropdown-item:focus,
body.zjms-theme .zjms-nav #navigationPrimary ul a:hover,
body.zjms-theme .zjms-nav #navigationPrimary ul a:focus {
  background-color: var(--zjms-secondary) !important;
  color: #fff !important;
}

body.zjms-theme .zjms-nav .btn,
body.zjms-theme .zjms-nav button[type="submit"] {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  background: transparent;
}

body.zjms-theme .zjms-nav .btn:hover,
body.zjms-theme .zjms-nav button[type="submit"]:hover {
  color: var(--zjms-primary);
  background: #fff;
}

body.zjms-theme .zjms-nav .navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
}

body.zjms-theme .zjms-nav .navbar-toggler-icon {
  filter: invert(1);
}

@media (max-width: 991.98px) {
  body.zjms-theme .zjms-nav #navigationPrimary > li > a {
    margin-bottom: 0;
    border-bottom: 0;
    border-inline-start: 3px solid transparent;
  }

  body.zjms-theme .zjms-nav #navigationPrimary > li > a:hover {
    border-inline-start-color: var(--zjms-accent);
  }

  body.zjms-theme .zjms-nav #navigationPrimary ul {
    position: static;
    box-shadow: none;
    border-top: 0;
    background: rgba(255, 255, 255, 0.06);
  }

  body.zjms-theme .zjms-nav #navigationPrimary ul a {
    color: rgba(255, 255, 255, 0.85);
  }

  body.zjms-theme .zjms-user-mobile {
    border-top-color: rgba(255, 255, 255, 0.2) !important;
  }

  body.zjms-theme .zjms-user-mobile a {
    color: #fff !important;
  }
}

/* ---------- Hero: show the ZJMS image instead of a navy wash ---------- */

body.zjms-theme .zjms-hero-wrap {
  padding-top: 1.75rem;
}

body.zjms-theme .zjms-hero {
  padding: 0;
  min-height: 0;
  border-radius: var(--zjms-radius);
  background: var(--zjms-primary) !important;
  box-shadow: 0 10px 30px rgba(13, 79, 74, 0.16) !important;
}

body.zjms-theme .zjms-hero--has-media .zjms-hero__media {
  position: static !important;
  display: block;
  height: auto !important;
  aspect-ratio: 1472 / 704;
}

body.zjms-theme .zjms-hero--has-media .zjms-hero__overlay {
  display: none;
}

body.zjms-theme .zjms-hero__inner {
  padding: 1.75rem 1.5rem;
  gap: 1.5rem;
  border-top: 4px solid var(--zjms-accent);
  background: var(--zjms-primary) var(--zjms-pulse) repeat-x left 0.6rem;
  background-size: 160px 18px;
}

@media (min-width: 992px) {
  body.zjms-theme .zjms-hero__inner {
    padding: 2rem 2.5rem;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) !important;
  }
}

/* the hero image already carries the full journal name; keep the copy short */
body.zjms-theme .zjms-hero__title {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
}

body.zjms-theme .zjms-hero__lead {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.95rem;
}

body.zjms-theme .zjms-hero__btn {
  border-radius: 999px;
}

body.zjms-theme .zjms-hero__btn--primary {
  background: var(--zjms-accent) !important;
  border-color: var(--zjms-accent) !important;
}

body.zjms-theme .zjms-hero__btn--secondary:hover {
  background: #fff !important;
  color: var(--zjms-primary) !important;
}

/* current issue as a compact horizontal card */
body.zjms-theme .zjms-hero__issue {
  width: 100%;
  max-width: 24rem;
}

body.zjms-theme .zjms-hero__issue-link {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  border-radius: var(--zjms-radius);
  background: rgba(255, 255, 255, 0.1);
}

body.zjms-theme .zjms-hero__issue-link:hover {
  background: rgba(255, 255, 255, 0.18);
}

body.zjms-theme .zjms-hero__issue-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

body.zjms-theme .zjms-hero__issue-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  font-size: 0.8rem;
  text-align: start;
}

body.zjms-theme .zjms-hero__issue-id {
  text-align: start;
}

/* ---------- Panels, tabs, issue listing ---------- */

body.zjms-theme .zjms-panel {
  border: 0;
  border-top: 3px solid var(--zjms-primary);
  border-radius: 0 0 var(--zjms-radius) var(--zjms-radius);
  box-shadow: 0 1px 3px rgba(16, 28, 27, 0.08);
}

body.zjms-theme .zjms-panel__title {
  position: relative;
  padding: 0 0 0 0.9rem;
  border-bottom: 0;
}

body.zjms-theme .zjms-panel__title::before {
  content: "";
  position: absolute;
  inset: 0.15em auto 0.15em 0;
  width: 4px;
  border-radius: 2px;
  background: var(--zjms-accent);
}

body.zjms-theme .zjms-tabs .nav-tabs {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 0;
  border-radius: 999px;
  background: var(--zjms-bg);
}

body.zjms-theme .zjms-tabs .nav-link {
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
}

body.zjms-theme .zjms-tabs .nav-link.active {
  color: #fff;
  background: var(--zjms-primary);
}

body.zjms-theme .zjms-issue-section h3,
body.zjms-theme .zjms-issue-toc h3 {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zjms-secondary);
}

/* ---------- Sidebar ---------- */

body.zjms-theme .zjms-cta {
  border-radius: 999px;
  background: var(--zjms-accent);
  letter-spacing: 0.02em;
}

body.zjms-theme .zjms-sidebar .pkp_block,
body.zjms-theme .zjms-sidebar .zjms-block:not(.zjms-block--cta) {
  border-radius: var(--zjms-radius) !important;
  border-inline-start: 3px solid var(--zjms-secondary) !important;
}

body.zjms-theme .zjms-sidebar-partners {
  border-radius: var(--zjms-radius) !important;
}

body.zjms-theme .zjms-sidebar-partners > .pkp_block {
  border-inline-start-width: 1px !important;
  border-inline-start-color: var(--zjms-border) !important;
}

/* ---------- Footer ---------- */

body.zjms-theme .zjms-footer {
  position: relative;
  background: var(--zjms-ink);
  padding-top: 3.5rem;
}

body.zjms-theme .zjms-footer::before {
  content: "";
  position: absolute;
  inset: 1rem 0 auto;
  height: 18px;
  background: var(--zjms-pulse) repeat-x left center;
  opacity: 0.6;
}

body.zjms-theme .zjms-footer h2 {
  font-family: var(--zjms-font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f2836d;
}

body.zjms-theme .zjms-footer a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- Login / register page blocks ---------- */

/* the theme's link colour rule otherwise wins and hides the button text */
body.zjms-theme .zjms-auth-partners .block_make_submission_link,
body.zjms-theme .zjms-auth-partners .block_make_submission_link:hover {
  color: #fff !important;
}

body.zjms-theme .zjms-auth-partners .block_web_feed .title {
  margin: 0 0 0.45rem;
  font-family: var(--zjms-font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--zjms-primary);
}

/* ---------- Homepage refinements ---------- */

/* the hero image already shows the journal name; keep the h1 for screen readers and search engines */
body.zjms-theme .zjms-hero--has-media .zjms-hero__title {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

/* a lone partner block (e.g. Journal Indexing) spans the full sidebar width */
body.zjms-theme .zjms-sidebar-partners > .pkp_block:only-child {
  grid-column: 1 / -1;
}

body.zjms-theme .zjms-sidebar-partners .zjms-indexing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.6rem 0.9rem;
}

body.zjms-theme .zjms-sidebar-partners .zjms-indexing h4 {
  flex: 1 0 100%;
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  text-align: center;
}

/* one plain "Subscribe via RSS" link instead of three image badges */
body.zjms-theme .block_web_feed ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* !important: the login page partner grid forces its images visible */
body.zjms-theme .block_web_feed li:not(:first-child),
body.zjms-theme .block_web_feed li img {
  display: none !important;
}

body.zjms-theme .block_web_feed li:first-child a::before {
  content: "Subscribe via RSS";
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9rem;
}

body.zjms-theme .block_web_feed li:first-child a::after {
  content: " \2192";
}

/* ---------- Buttons inside page content ---------- */

/* links an editor styled as buttons (inline background) in journal pages, e.g. Author Guidelines;
   !important beats both the inline styles and the theme's prose link colour */
body.zjms-theme .zjms-prose a[style*="background"] {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0.5rem 0.5rem 0 !important;
  padding: 0.55rem 1.15rem !important;
  border: 2px solid var(--zjms-primary) !important;
  border-radius: 999px !important;
  background: var(--zjms-primary) !important;
  color: #fff !important;
  font-family: var(--zjms-font-body) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.2;
  text-decoration: none !important;
  transition: background var(--zjms-transition), border-color var(--zjms-transition);
}

/* download arrow for file links */
body.zjms-theme .zjms-prose a[style*="background"][href$=".pdf"]::before,
body.zjms-theme .zjms-prose a[style*="background"][href$=".docx"]::before,
body.zjms-theme .zjms-prose a[style*="background"][href$=".doc"]::before {
  content: "\2193";
  font-weight: 700;
}

body.zjms-theme .zjms-prose a[style*="background"]:hover,
body.zjms-theme .zjms-prose a[style*="background"]:focus-visible {
  background: var(--zjms-accent) !important;
  border-color: var(--zjms-accent) !important;
  color: #fff !important;
}

/* second button in a row reads as the secondary action (~: Word HTML often has whitespace between </a> and <a>) */
body.zjms-theme .zjms-prose a[style*="background"] ~ a[style*="background"] {
  background: transparent !important;
  color: var(--zjms-primary) !important;
}

body.zjms-theme .zjms-prose a[style*="background"] ~ a[style*="background"]:hover,
body.zjms-theme .zjms-prose a[style*="background"] ~ a[style*="background"]:focus-visible {
  background: var(--zjms-primary) !important;
  border-color: var(--zjms-primary) !important;
  color: #fff !important;
}


/**
 * ZJMS Theme — production styles (Bootstrap 5 companion)
 * Design tokens match README.md; no demo/marketplace chrome.
 */

:root {
  --zjms-primary: #0d4f4a;
  --zjms-secondary: #12877f;
  --zjms-accent: #e0452b;
  --zjms-bg: #f5f8f7;
  --zjms-surface: #ffffff;
  --zjms-text: #16211f;
  --zjms-muted: #56686a;
  --zjms-border: #dde7e5;
  --zjms-success: #2f6b4f;
  --zjms-logo-height: 64px;
  --zjms-font-body: "Noto Sans", "Segoe UI", sans-serif;
  --zjms-font-heading: "Roboto Slab", Georgia, "Times New Roman", serif;
  --zjms-max: 1140px;
  --zjms-radius: 0.25rem;
  --zjms-transition: 180ms ease;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--zjms-font-body);
  color: var(--zjms-text);
  background: var(--zjms-bg);
  line-height: 1.6;
}

.cmp_skip_to_content {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cmp_skip_to_content:focus-within {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.5rem;
  background: var(--zjms-primary);
  z-index: 10000;
}

.cmp_skip_to_content:focus-within a {
  color: #fff !important;
  text-decoration: underline;
}

a {
  color: var(--zjms-secondary);
  text-decoration: none;
  transition: color var(--zjms-transition);
}

a:hover,
a:focus-visible {
  color: var(--zjms-primary);
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-link:focus-visible {
  outline: 2px solid var(--zjms-accent);
  outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6,
.zjms-heading {
  font-family: var(--zjms-font-heading);
  color: var(--zjms-primary);
  line-height: 1.25;
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
}

.zjms-container {
  width: 100%;
  max-width: var(--zjms-max);
  margin-inline: auto;
  padding-inline: 1rem;
}

/* Desktop utility bar — hidden on mobile via Bootstrap d-none d-lg-block */
.zjms-utility {
  background: var(--zjms-primary);
  color: #fff;
  font-size: 0.875rem;
}

.zjms-utility a {
  color: rgba(255, 255, 255, 0.92);
}

.zjms-utility a:hover,
.zjms-utility a:focus-visible {
  color: #fff;
}

.zjms-utility__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  min-height: 2.25rem;
}

.zjms-utility .zjms-user-desktop {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.85rem;
}

.zjms-utility .zjms-user-desktop > li {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.85rem;
  position: static;
}

.zjms-utility .zjms-user-desktop > li > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.85rem;
  position: static;
  background: transparent;
  box-shadow: none;
  border: 0;
}

.zjms-utility .zjms-user-desktop a {
  white-space: nowrap;
}

.zjms-utility .task_count {
  display: inline-block;
  min-width: 1.15rem;
  height: 1.15rem;
  margin-inline-start: 0.35rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.15rem;
  text-align: center;
  vertical-align: middle;
}

/* Mobile: user menu inside hamburger (Login / Dashboard) */
.zjms-user-mobile {
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--zjms-border);
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

.zjms-user-mobile > li {
  display: block;
  position: static;
}

.zjms-user-mobile > li > a,
.zjms-user-mobile > li > ul a {
  display: block;
  padding: 0.75rem 0.9rem;
  color: var(--zjms-text);
  font-weight: 600;
  font-size: 1em;
}

.zjms-user-mobile > li > a:hover,
.zjms-user-mobile > li > ul a:hover {
  color: var(--zjms-secondary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.zjms-user-mobile > li > ul {
  list-style: none;
  margin: 0;
  padding: 0 0 0 0.75rem;
  display: block;
  position: static;
  background: transparent;
  border: 0;
  box-shadow: none;
  min-width: 0;
}

.zjms-user-mobile .task_count {
  display: inline-block;
  min-width: 1.15rem;
  margin-inline-start: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--zjms-secondary);
  color: #fff;
  font-size: 0.7rem;
  line-height: 1.15rem;
  text-align: center;
  vertical-align: middle;
}

/* Desktop: hide hamburger user menu (utility bar used instead) */
@media (min-width: 992px) {
  .zjms-user-mobile {
    display: none !important;
  }
}

.zjms-brand {
  background: var(--zjms-surface);
  border-bottom: 1px solid var(--zjms-border);
  padding: 1rem 0;
}

.zjms-brand__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.zjms-brand__link {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  color: var(--zjms-primary);
  min-width: 0;
}

.zjms-brand__link:hover {
  color: var(--zjms-secondary);
}

.zjms-brand__logo {
  height: var(--zjms-logo-height);
  width: auto;
  display: block;
}

.zjms-brand__title {
  font-family: var(--zjms-font-heading);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 700;
  margin: 0;
}

.zjms-brand-search {
  gap: 0.5rem;
  flex: 1 1 14rem;
  max-width: 22rem;
  margin-inline-start: auto;
}

.zjms-brand-search__input {
  flex: 1 1 auto;
  min-width: 0;
  border-color: var(--zjms-border);
  border-radius: var(--zjms-radius);
}

.zjms-brand-search__input:focus {
  border-color: var(--zjms-primary);
  box-shadow: 0 0 0 0.2rem rgba(13, 79, 74, 0.15);
}

.zjms-brand-search__btn {
  white-space: nowrap;
  border-radius: var(--zjms-radius);
}

@media (max-width: 575.98px) {
  .zjms-brand-search {
    flex: 1 1 100%;
    max-width: none;
    margin-inline-start: 0;
  }
}

.zjms-nav {
  background: var(--zjms-surface);
  border-bottom: 1px solid var(--zjms-border);
  position: sticky;
  top: 0;
  z-index: 1030;
}

.zjms-nav .navbar {
  padding: 0.35rem 0;
}

.zjms-nav .navbar-nav .nav-link {
  color: var(--zjms-text);
  font-weight: 600;
  padding: 0.75rem 0.9rem;
}

.zjms-nav .navbar-nav .nav-link:hover,
.zjms-nav .navbar-nav .nav-link:focus,
.zjms-nav .navbar-nav .nav-link.active {
  color: var(--zjms-secondary);
}

.zjms-nav .dropdown-menu {
  border-color: var(--zjms-border);
  border-radius: var(--zjms-radius);
  box-shadow: 0 8px 24px rgba(13, 79, 74, 0.08);
}

.zjms-nav .navbar-toggler {
  border-color: var(--zjms-border);
}

.zjms-nav .pkp_navigation_primary,
.zjms-nav #navigationPrimary {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem;
}

.zjms-nav #navigationPrimary > li {
  position: relative;
}

.zjms-nav #navigationPrimary > li > a {
  display: block;
  padding: 0.75rem 0.9rem;
  color: var(--zjms-text);
  font-weight: 600;
}

.zjms-nav #navigationPrimary > li > a:hover {
  color: var(--zjms-secondary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.zjms-nav #navigationPrimary .dropdown-menu,
.zjms-nav #navigationPrimary ul {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0;
  min-width: 14rem;
  background: var(--zjms-surface);
  border: 1px solid var(--zjms-border);
}

.zjms-nav #navigationPrimary ul a {
  display: block;
  padding: 0.4rem 1rem;
  color: var(--zjms-text);
}

.zjms-nav #navigationPrimary .dropdown-item:hover,
.zjms-nav #navigationPrimary .dropdown-item:focus,
.zjms-nav #navigationPrimary .dropdown-item.active,
.zjms-nav #navigationPrimary ul a:hover,
.zjms-nav #navigationPrimary ul a:focus {
  background-color: var(--zjms-primary);
  color: #fff;
}

@media (min-width: 992px) {
  .zjms-nav #navigationPrimary > li > ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1040;
  }

  .zjms-nav #navigationPrimary > li:hover > ul,
  .zjms-nav #navigationPrimary > li:focus-within > ul {
    display: block;
  }
}

.zjms-hero-wrap {
  padding-top: 1.25rem;
}

.zjms-hero {
  --zjms-hero-primary: #0d4f4a;
  --zjms-hero-cta: #e0452b;
  position: relative;
  display: block;
  overflow: hidden;
  color: #fff;
  border-radius: 12px;
  padding: 3rem 1.5rem;
  background: linear-gradient(135deg, #0d4f4a 0%, #12877f 55%, #0d4f4a 100%);
  box-shadow: 0 12px 40px rgba(13, 79, 74, 0.18);
  isolation: isolate;
}

@media (min-width: 768px) {
  .zjms-hero {
    padding: 3.5rem 2.5rem;
  }
}

@media (min-width: 992px) {
  .zjms-hero {
    padding: 4rem 3rem;
  }
}

.zjms-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.zjms-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    120deg,
    rgba(13, 79, 74, 0.82) 0%,
    rgba(13, 79, 74, 0.72) 55%,
    rgba(13, 79, 74, 0.78) 100%
  );
  pointer-events: none;
}

.zjms-hero--has-media .zjms-hero__overlay {
  background: rgba(13, 79, 74, 0.76);
}

.zjms-hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 992px) {
  .zjms-hero__inner {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 2.5rem;
  }
}

.zjms-hero__copy {
  text-align: center;
}

@media (min-width: 768px) {
  .zjms-hero__copy {
    text-align: start;
  }
}

.zjms-hero__title {
  margin: 0 0 0.75rem;
  color: #fff !important;
  font-family: var(--zjms-font-heading);
  font-size: clamp(1.75rem, 3.5vw, 2.65rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.zjms-hero__lead {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.94) !important;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.55;
  max-width: 38rem;
}

@media (min-width: 768px) {
  .zjms-hero__lead {
    margin-inline: 0;
  }
}

@media (max-width: 767.98px) {
  .zjms-hero__lead {
    margin-inline: auto;
  }
}

.zjms-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .zjms-hero__actions {
    justify-content: flex-start;
  }
}

.zjms-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.7rem 1.35rem;
  border-radius: 0.4rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color var(--zjms-transition), color var(--zjms-transition),
    border-color var(--zjms-transition), transform var(--zjms-transition);
}

@media (max-width: 767.98px) {
  .zjms-hero__btn {
    width: 100%;
  }
}

.zjms-hero__btn--primary {
  background: var(--zjms-hero-cta) !important;
  border-color: var(--zjms-hero-cta) !important;
  color: #fff !important;
}

.zjms-hero__btn--primary:hover,
.zjms-hero__btn--primary:focus {
  background: #c23a22 !important;
  border-color: #c23a22 !important;
  color: #fff !important;
  transform: translateY(-1px);
}

.zjms-hero__btn--secondary {
  background: transparent !important;
  border-color: rgba(255, 255, 255, 0.9) !important;
  color: #fff !important;
}

.zjms-hero__btn--secondary:hover,
.zjms-hero__btn--secondary:focus {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: #fff !important;
  color: #fff !important;
}

.zjms-hero__issue {
  justify-self: center;
  width: min(100%, 17.5rem);
}

@media (min-width: 992px) {
  .zjms-hero__issue {
    justify-self: end;
  }
}

.zjms-hero__issue-link {
  display: block;
  color: inherit;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  overflow: hidden;
  backdrop-filter: blur(6px);
  transition: transform var(--zjms-transition), box-shadow var(--zjms-transition);
}

.zjms-hero__issue-link:hover,
.zjms-hero__issue-link:focus {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.zjms-hero__cover {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.zjms-hero__cover--placeholder {
  min-height: 14rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 1.25rem;
  text-align: center;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06));
}

.zjms-hero__cover-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.zjms-hero__cover-vol,
.zjms-hero__cover-num {
  font-family: var(--zjms-font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.zjms-hero__issue-meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.9rem 1rem 1.05rem;
}

.zjms-hero__issue-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.35;
}

.zjms-hero__issue-label {
  color: rgba(255, 255, 255, 0.78) !important;
}

.zjms-hero__issue-value,
.zjms-hero__issue-id {
  color: #fff !important;
  font-weight: 600;
  text-align: end;
}

.zjms-hero__issue-id {
  font-size: 0.9rem;
}

/* Entrance motion — avoid opacity:0 fill that can leave content invisible */
.zjms-hero__copy,
.zjms-hero__issue {
  animation: zjms-hero-rise 520ms ease both;
}

.zjms-hero__issue {
  animation-delay: 90ms;
}

@keyframes zjms-hero-rise {
  from {
    opacity: 0.01;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .zjms-hero__copy,
  .zjms-hero__issue {
    animation: none;
  }
}

.zjms-main {
  padding: 2rem 0 3rem;
}

.zjms-main--home {
  padding-top: 0;
}

.zjms-main--home > .zjms-container:not(.zjms-hero-wrap) {
  padding-top: 2rem;
}

@media (min-width: 992px) {
  .zjms-main {
    padding: 3rem 0 4rem;
  }

  .zjms-main--home {
    padding-top: 0;
  }

  .zjms-main--home > .zjms-container:not(.zjms-hero-wrap) {
    padding-top: 3rem;
  }
}

.zjms-panel {
  background: var(--zjms-surface);
  border: 1px solid var(--zjms-border);
  border-radius: var(--zjms-radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.5rem;
}

.zjms-panel__title {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--zjms-secondary);
}

.zjms-tabs .nav-tabs {
  border-bottom-color: var(--zjms-border);
}

.zjms-tabs .nav-link {
  color: var(--zjms-muted);
  font-weight: 600;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
}

.zjms-tabs .nav-link.active {
  color: var(--zjms-primary);
  background: transparent;
  border-bottom-color: var(--zjms-secondary);
}

.zjms-about-copy {
  max-width: 75ch;
}

.zjms-about-copy p:last-child {
  margin-bottom: 0;
}

.zjms-announcement + .zjms-announcement {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--zjms-border);
}

.zjms-announcement__date {
  display: block;
  font-size: 0.8125rem;
  color: var(--zjms-muted);
  margin-bottom: 0.25rem;
}

.zjms-announcement__title {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}

.zjms-announcement__title a:hover {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.zjms-empty {
  color: var(--zjms-muted);
  margin: 0;
}

.zjms-issue-cover {
  display: block;
  width: 100%;
  max-width: 220px;
  border: 1px solid var(--zjms-border);
  background: #eef2f5;
}

.zjms-issue-meta {
  font-size: 0.875rem;
  color: var(--zjms-muted);
  margin-bottom: 0.75rem;
}

.zjms-article {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--zjms-border);
}

.zjms-article:last-child {
  border-bottom: 0;
}

.zjms-article__title {
  font-family: var(--zjms-font-heading);
  font-size: 1.15rem;
  margin: 0 0 0.35rem;
}

.zjms-article__title a {
  color: var(--zjms-primary);
}

.zjms-article__title a:hover {
  color: var(--zjms-secondary);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.zjms-article__authors {
  color: var(--zjms-muted);
  margin-bottom: 0.35rem;
}

.zjms-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.8125rem;
  color: var(--zjms-muted);
  align-items: center;
}

.zjms-article__galleys .btn {
  --bs-btn-padding-y: 0.2rem;
  --bs-btn-padding-x: 0.65rem;
  --bs-btn-font-size: 0.8125rem;
}

.zjms-sidebar .zjms-block {
  background: var(--zjms-surface);
  border: 1px solid var(--zjms-border);
  border-radius: var(--zjms-radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
}

.zjms-sidebar .zjms-block h2,
.zjms-sidebar .zjms-block .title {
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
  color: var(--zjms-primary);
}

.zjms-cta {
  display: block;
  text-align: center;
  background: var(--zjms-accent);
  color: #fff !important;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-radius: var(--zjms-radius);
  transition: filter var(--zjms-transition);
}

.zjms-cta:hover,
.zjms-cta:focus-visible {
  filter: brightness(1.06);
  color: #fff !important;
}

.zjms-info-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zjms-info-list a {
  display: block;
  padding: 0.35rem 0;
}

.zjms-footer {
  background: var(--zjms-primary);
  color: rgba(255, 255, 255, 0.9);
  padding: 2.75rem 0 1.5rem;
  margin-top: auto;
}

.zjms-footer a {
  color: rgba(255, 255, 255, 0.88);
}

.zjms-footer a:hover {
  color: #fff;
}

.zjms-footer h2 {
  color: #fff;
  font-size: 1.05rem;
  margin: 0 0 0.85rem;
}

.zjms-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.zjms-footer li + li {
  margin-top: 0.35rem;
}

.zjms-footer__bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.75);
}

/* Auth / form pages — login, lost password, register, 2FA */
.page_login,
.page_lost_password,
.page_register,
.page_login_change_password {
  max-width: 28rem;
}

.cmp_form .fields > div,
.cmp_form .username,
.cmp_form .password,
.cmp_form .email,
.cmp_form .remember {
  margin-bottom: 1rem;
}

.cmp_form label .label,
.cmp_form .label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--zjms-text);
}

.cmp_form input[type="text"],
.cmp_form input[type="email"],
.cmp_form input[type="password"],
.cmp_form input[type="search"],
.cmp_form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]) {
  display: block;
  width: 100%;
  max-width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--zjms-border);
  border-radius: var(--zjms-radius);
  background: var(--zjms-surface);
  color: var(--zjms-text);
  font: inherit;
  line-height: 1.4;
  transition: border-color var(--zjms-transition), box-shadow var(--zjms-transition);
}

.cmp_form input:focus,
.cmp_form input:focus-visible {
  border-color: var(--zjms-secondary);
  outline: 2px solid rgba(18, 135, 127, 0.35);
  outline-offset: 1px;
}

.cmp_form .buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.25rem;
}

.cmp_form button.submit,
.cmp_form button[type="submit"],
.cmp_form input[type="submit"],
.page_login button.submit,
.page_lost_password button.submit,
.page_register button.submit,
.page_openid_login button.submit,
#openid-provider-list button.submit,
#openid-provider-list .buttons button[type="submit"] {
  -webkit-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.65rem 1.35rem;
  border: 2px solid var(--zjms-primary, #0d4f4a) !important;
  border-radius: var(--zjms-radius, 0.25rem);
  background: var(--zjms-primary, #0d4f4a) !important;
  color: #fff !important;
  font-family: var(--zjms-font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--zjms-transition), border-color var(--zjms-transition),
    color var(--zjms-transition), filter var(--zjms-transition);
}

.cmp_form button.submit:hover,
.cmp_form button.submit:focus-visible,
.cmp_form button[type="submit"]:hover,
.cmp_form button[type="submit"]:focus-visible,
.cmp_form input[type="submit"]:hover,
.cmp_form input[type="submit"]:focus-visible,
.page_openid_login button.submit:hover,
.page_openid_login button.submit:focus-visible,
#openid-provider-list button.submit:hover,
#openid-provider-list button.submit:focus-visible {
  background: var(--zjms-secondary, #12877f) !important;
  border-color: var(--zjms-secondary, #12877f) !important;
  color: #fff !important;
  filter: none;
}

/* Secondary action in the same row (e.g. Resend code) */
.cmp_form .buttons button.submit:not(:first-of-type),
.cmp_form .buttons button[type="submit"]:not(:first-of-type) {
  background: transparent;
  color: var(--zjms-primary);
  border-color: var(--zjms-primary);
}

.cmp_form .buttons button.submit:not(:first-of-type):hover:not(:disabled),
.cmp_form .buttons button.submit:not(:first-of-type):focus-visible:not(:disabled),
.cmp_form .buttons button[type="submit"]:not(:first-of-type):hover:not(:disabled),
.cmp_form .buttons button[type="submit"]:not(:first-of-type):focus-visible:not(:disabled) {
  background: var(--zjms-primary);
  color: #fff;
  border-color: var(--zjms-primary);
}

.cmp_form button:disabled,
.cmp_form button[disabled],
.cmp_form .buttons button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: #e6efed;
  border-color: var(--zjms-border);
  color: var(--zjms-muted);
}

.cmp_form .buttons a.register,
.cmp_form .buttons a {
  font-weight: 600;
}

.pkp_form_error {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--zjms-radius);
  border: 1px solid #f5c2c0;
  background: #fef3f2;
  color: #b42318;
}

.zjms-page-header {
  margin-bottom: 1.5rem;
}

.zjms-page-header h1 {
  margin: 0 0 0.5rem;
}

.zjms-breadcrumbs {
  font-size: 0.875rem;
  color: var(--zjms-muted);
  margin-bottom: 1rem;
}

.zjms-breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}

.zjms-breadcrumbs li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--zjms-border);
}

.zjms-sidebar .pkp_block {
  background: var(--zjms-surface);
  border: 1px solid var(--zjms-border);
  border-radius: var(--zjms-radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
}

.zjms-sidebar .pkp_block .title {
  font-family: var(--zjms-font-heading);
  font-size: 1.05rem;
  color: var(--zjms-primary);
}

.zjms-sidebar .pkp_block .content img {
  display: block;
  max-width: 100%;
  height: auto;
}

.pkp_structure_page,
.pkp_structure_main,
.pkp_structure_content {
  background: transparent;
}

.cmp_notification {
  border-radius: var(--zjms-radius);
}

@keyframes zjms-fade-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.zjms-hero__content,
.zjms-panel,
.zjms-article {
  animation: zjms-fade-up 420ms ease both;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .zjms-hero__content,
  .zjms-hero__copy,
  .zjms-hero__issue,
  .zjms-panel,
  .zjms-article {
    animation: none;
  }
}

[dir="rtl"] .zjms-utility__inner {
  justify-content: flex-start;
}

[dir="rtl"] .zjms-nav #navigationPrimary > li > ul {
  left: auto;
  right: 0;
}

/* ------------------------------------------------------------------
 * PDF galley viewer (pdfJsViewer display.tpl)
 * Default theme styles were not included; without these the iframe
 * only gets min-height:500px and does not fill the viewport.
 * ------------------------------------------------------------------ */
.pkp_screen_reader {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.header_view {
  --zjms-pdf-header-h: 3rem;
  z-index: 2;
  position: relative;
  height: var(--zjms-pdf-header-h);
  background: var(--zjms-primary);
}

.header_view a {
  line-height: var(--zjms-pdf-header-h);
  text-decoration: none;
}

.header_view .return {
  position: absolute;
  top: 0;
  left: 0;
  width: var(--zjms-pdf-header-h);
  height: var(--zjms-pdf-header-h);
  line-height: var(--zjms-pdf-header-h);
  background: var(--zjms-surface);
  color: var(--zjms-primary);
  text-align: center;
}

.header_view .return::before {
  content: "\2190";
  font-size: 1.1rem;
}

.header_view .return:hover,
.header_view .return:focus {
  background: var(--zjms-secondary);
  color: #fff;
}

.header_view .title {
  display: block;
  padding-left: calc(var(--zjms-pdf-header-h) + 1rem);
  padding-right: 8rem;
  max-width: 100%;
  overflow-x: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.95rem;
  color: #fff;
}

.header_view .title:hover,
.header_view .title:focus {
  background: var(--zjms-secondary);
}

.header_view .download {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  min-width: var(--zjms-pdf-header-h);
  padding: 0 1rem;
  background: var(--zjms-surface);
  color: var(--zjms-primary);
  text-align: center;
  font-weight: 600;
}

.header_view .download:hover,
.header_view .download:focus {
  background: var(--zjms-secondary);
  color: #fff;
}

/* Avoid "Download Download PDF" — hide SR label when visible label exists */
.header_view .download .pkp_screen_reader {
  display: none !important;
}

.galley_view {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  background: #525659;
}

.galley_view iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  padding-top: 3rem;
  border: none;
  box-sizing: border-box;
}

.galley_view.galley_view_with_notice iframe {
  padding-top: 9rem;
}

.galley_view .galley_view_notice {
  position: absolute;
  top: 3rem;
  width: 100%;
  height: 6rem;
  background: #c0392b;
  z-index: 1;
}

.galley_view .galley_view_notice_message {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  transform: translate(-50%, -50%);
  color: #fff;
  font-weight: 700;
  text-align: center;
}

.galley_view .galley_view_notice_message a {
  color: #fff;
  text-decoration: underline;
}

[dir="rtl"] .header_view .return {
  left: auto;
  right: 0;
}

[dir="rtl"] .header_view .title {
  padding-left: 8rem;
  padding-right: calc(3rem + 1rem);
}

[dir="rtl"] .header_view .download {
  right: auto;
  left: 0;
}

/* ---------- Article view (match legacy ZJMS / themeSeventeen) ---------- */
.obj_article_details .zjms-article-authors .entry_authors_list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  margin: 0 0 0.35rem;
  padding: 0;
}

.obj_article_details .entry_author_block {
  display: inline;
}

.obj_article_details .art_det_author_name {
  color: var(--zjms-secondary, #12877f) !important;
  font-weight: 600;
  text-decoration: none !important;
}

.obj_article_details .art_det_author_name:hover,
.obj_article_details .art_det_author_name:focus-visible {
  color: var(--zjms-primary, #0d4f4a) !important;
  text-decoration: underline !important;
}

.obj_article_details .art_det_envelope {
  color: var(--zjms-secondary, #12877f);
  text-decoration: none !important;
  margin-left: 0.15rem;
}

.obj_article_details .more-authors-info-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--zjms-accent, #e0452b) !important;
  text-decoration: none !important;
}

.obj_article_details .more-authors-info-button .zjms-author-details-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border: 1px solid #cdd1d4;
  border-radius: 2px;
  background: linear-gradient(to bottom, #e9eef2 0%, #fff 100%);
  color: #626868;
  font-size: 0.875rem;
  line-height: 1;
}

.obj_article_details .more-authors-info-button:not(.collapsed) .zjms-author-details-icon--more {
  display: none;
}

.obj_article_details .more-authors-info-button.collapsed .zjms-author-details-icon--less {
  display: none;
}

.obj_article_details .additional-authors-info {
  margin: 0.25rem 0 1rem;
}

.obj_article_details .additional-author-block {
  margin: 0.65rem 0 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.obj_article_details .additional-author-affiliation {
  color: #555;
}

.obj_article_details .references-list {
  margin: 0;
  padding-left: 1.75rem;
  list-style: decimal;
}

.obj_article_details .references-list > li {
  margin-bottom: 0.65rem;
  padding-left: 0.35rem;
}

.obj_article_details .references-list a {
  color: var(--zjms-secondary, #12877f) !important;
  word-break: break-word;
}

.obj_article_details .item.downloads_chart .label {
  font-family: var(--zjms-font-heading, "Roboto Slab", Georgia, serif);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--zjms-primary, #0d4f4a);
  border-bottom: 1px solid var(--zjms-border, #dde7e5);
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
}

.obj_article_details #paperbuzz {
  max-width: 100%;
}


/* ---------- Article page layout ---------- */

/*
 * The theme prints the article as .main_entry (authors, DOI, keywords, abstract, metrics,
 * references) followed by .entry_details (cover, PDF, dates, issue, licence, citation), so the
 * PDF and citation end up below the references. `display: contents` lets every .item be
 * ordered on its own. Items not listed here (e.g. supplementary files) keep order 50.
 */
body.zjms-theme .obj_article_details > .row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
}

body.zjms-theme .obj_article_details .main_entry,
body.zjms-theme .obj_article_details .entry_details {
  display: contents;
}

body.zjms-theme .obj_article_details .main_entry > .item,
body.zjms-theme .obj_article_details .entry_details > .item {
  order: 50;
  flex: 1 1 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.zjms-theme .obj_article_details .page_title {
  margin-bottom: 0.75rem;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  line-height: 1.2;
}

body.zjms-theme .obj_article_details .item.authors { order: 0; }
body.zjms-theme .obj_article_details .item.cover_image { order: 10; }
body.zjms-theme .obj_article_details .item.doi { order: 11; }
body.zjms-theme .obj_article_details .item.published { order: 12; }
body.zjms-theme .obj_article_details .item.issue { order: 13; }
body.zjms-theme .obj_article_details .item.galleys { order: 20; }
body.zjms-theme .obj_article_details .item.keywords { order: 30; }
body.zjms-theme .obj_article_details .item.abstract { order: 40; }
body.zjms-theme .obj_article_details .item.citation { order: 60; }
body.zjms-theme .obj_article_details .item.copyright { order: 70; }
body.zjms-theme .obj_article_details .item.downloads_chart { order: 80; }
body.zjms-theme .obj_article_details .item.references { order: 90; }

/* section headings: same treatment as homepage panel titles, not full-size h2s */
body.zjms-theme .obj_article_details .item > .label,
body.zjms-theme .obj_article_details .item > .sub_item > .label,
body.zjms-theme .obj_article_details .item.downloads_chart .label {
  position: relative;
  margin: 0.75rem 0 0.6rem;
  padding: 0 0 0 0.8rem;
  border: 0;
  font-family: var(--zjms-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--zjms-primary);
}

body.zjms-theme .obj_article_details .item > .label::before,
body.zjms-theme .obj_article_details .item > .sub_item > .label::before,
body.zjms-theme .obj_article_details .item.downloads_chart .label::before {
  content: "";
  position: absolute;
  inset: 0.2em auto 0.2em 0;
  width: 4px;
  border-radius: 2px;
  background: var(--zjms-accent);
}

/* ---- info row: cover thumbnail + DOI / published / issue / section cards ---- */

body.zjms-theme .obj_article_details .item.cover_image {
  flex: 0 0 4.75rem;
}

body.zjms-theme .obj_article_details .item.cover_image img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--zjms-border);
  border-radius: 4px;
}

body.zjms-theme .obj_article_details .item.doi,
body.zjms-theme .obj_article_details .item.published,
body.zjms-theme .obj_article_details .item.issue {
  flex: 1 1 10rem;
  padding: 0.7rem 0.9rem;
  background: var(--zjms-surface);
  border: 1px solid var(--zjms-border);
  border-top: 3px solid var(--zjms-secondary);
  border-radius: 0 0 var(--zjms-radius) var(--zjms-radius);
  font-size: 0.9rem;
}

body.zjms-theme .obj_article_details .item.issue {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.25rem;
}

body.zjms-theme .obj_article_details .item.doi > .label,
body.zjms-theme .obj_article_details .item.published .label,
body.zjms-theme .obj_article_details .item.issue .label {
  margin: 0 0 0.15rem;
  padding: 0;
  font-family: var(--zjms-font-body);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--zjms-muted);
}

body.zjms-theme .obj_article_details .item.doi > .label::before,
body.zjms-theme .obj_article_details .item.published .label::before,
body.zjms-theme .obj_article_details .item.issue .label::before {
  content: none;
}

body.zjms-theme .obj_article_details .item.doi .value {
  overflow-wrap: anywhere;
}

/* ---- full text button, right under the article info ---- */

body.zjms-theme .obj_article_details .galleys_links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

body.zjms-theme .obj_article_details .obj_galley_link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border: 2px solid var(--zjms-accent);
  border-radius: 999px;
  background: var(--zjms-accent);
  color: #fff !important;
  font-weight: 700;
  text-decoration: none !important;
}

body.zjms-theme .obj_article_details .obj_galley_link.pdf::before {
  content: "Full text";
}

body.zjms-theme .obj_article_details .obj_galley_link:hover,
body.zjms-theme .obj_article_details .obj_galley_link:focus-visible {
  border-color: var(--zjms-primary);
  background: var(--zjms-primary);
}

/* ---- abstract and citation as panels ---- */

body.zjms-theme .obj_article_details .item.abstract {
  padding: 0.25rem 1.5rem 1.25rem;
  background: var(--zjms-surface);
  border-top: 3px solid var(--zjms-primary);
  border-radius: 0 0 var(--zjms-radius) var(--zjms-radius);
  box-shadow: 0 1px 3px rgba(16, 28, 27, 0.08);
}

body.zjms-theme .obj_article_details .item.citation {
  padding: 0.25rem 1.25rem 1rem;
  background: #e9f2f0;
  border-radius: var(--zjms-radius);
  font-size: 0.9rem;
}

body.zjms-theme .obj_article_details .citation_formats {
  border: 0;
  background: transparent;
}

body.zjms-theme .obj_article_details .citation_formats_button {
  display: inline-flex;
  width: auto;
  margin-top: 0.6rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--zjms-secondary);
  border-radius: 999px;
  background: var(--zjms-surface);
  color: var(--zjms-primary);
  font-size: 0.85rem;
  font-weight: 600;
}

body.zjms-theme .obj_article_details .item.copyright {
  font-size: 0.85rem;
  color: var(--zjms-muted);
}

body.zjms-theme .obj_article_details .citation_formats_button::after {
  content: none;
}

/* the empty usage chart otherwise reserves ~400px */
body.zjms-theme .obj_article_details .usageStatsGraph {
  height: 220px !important;
  max-height: 220px;
}

body.zjms-theme .obj_article_details .references-list {
  font-size: 0.875rem;
  color: var(--zjms-muted);
}


/* ---------- Breadcrumbs ---------- */

/* OJS prints .cmp_breadcrumbs; the theme only styled .zjms-breadcrumbs, so they showed as a numbered list */
body.zjms-theme .cmp_breadcrumbs {
  margin: 0 0 1.25rem;
}

body.zjms-theme .cmp_breadcrumbs ol {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0;
  max-width: 100%;
  margin: 0;
  padding: 0.4rem 0.95rem;
  list-style: none;
  background: var(--zjms-surface);
  border: 1px solid var(--zjms-border);
  border-radius: 999px;
  font-size: 0.85rem;
  line-height: 1.4;
}

body.zjms-theme .cmp_breadcrumbs li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

/* replace the "/" with a coral chevron */
body.zjms-theme .cmp_breadcrumbs .separator {
  display: none;
}

body.zjms-theme .cmp_breadcrumbs li + li::before {
  content: "";
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  margin: 0 0.65rem 0 0.55rem;
  border-top: 2px solid var(--zjms-accent);
  border-right: 2px solid var(--zjms-accent);
  transform: rotate(45deg);
}

body.zjms-theme[dir="rtl"] .cmp_breadcrumbs li + li::before {
  transform: rotate(-135deg);
}

body.zjms-theme .cmp_breadcrumbs a {
  color: var(--zjms-secondary);
  font-weight: 600;
  text-decoration: none;
}

body.zjms-theme .cmp_breadcrumbs a:hover,
body.zjms-theme .cmp_breadcrumbs a:focus-visible {
  color: var(--zjms-primary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* house icon in front of "Home" */
body.zjms-theme .cmp_breadcrumbs li:first-child a::before {
  content: "";
  display: inline-block;
  width: 0.95rem;
  height: 0.95rem;
  margin-inline-end: 0.35rem;
  vertical-align: -0.12em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v8h6v-6h2v6h6v-8h3z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3 2 12h3v8h6v-6h2v6h6v-8h3z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* current page: muted, long titles truncated */
body.zjms-theme .cmp_breadcrumbs .current {
  color: var(--zjms-muted);
}

body.zjms-theme .cmp_breadcrumbs .current span {
  overflow: hidden;
  max-width: 22rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}


/* ---------- Header layout (desktop) ---------- */

/*
 * Old-ZJMS arrangement without template changes: no utility bar, search to the right of the
 * logo, Register/Login (or the user menu) at the right end of the teal menu bar.
 * The menu bar already contains a search form and a user menu (#navigationUserMobile) for
 * the hamburger; on desktop they are repositioned instead of using the utility bar copy.
 * Phones keep the current hamburger layout.
 */
@media (min-width: 992px) {
  body.zjms-theme .zjms-header {
    position: relative;
  }

  body.zjms-theme .zjms-utility {
    display: none !important;
  }

  /* the search form is positioned against the header, so the bar must not be a containing block
     (its sticky positioning had no effect: the header ends right after it) */
  body.zjms-theme .zjms-nav {
    position: static;
  }

  body.zjms-theme .zjms-brand {
    padding-inline-end: 0;
  }

  /* keep the title clear of the search box */
  body.zjms-theme .zjms-brand__link {
    max-width: calc(100% - 20rem);
  }

  /* ---- search, vertically centred on the logo row ---- */

  body.zjms-theme .zjms-nav .zjms-nav-search {
    position: absolute;
    top: calc(1.1rem + var(--zjms-logo-height) / 2);
    right: max(1rem, calc((100% - var(--zjms-max)) / 2 + 1rem));
    width: 18rem;
    margin: 0 !important;
    transform: translateY(-50%);
  }

  body.zjms-theme[dir="rtl"] .zjms-nav .zjms-nav-search {
    right: auto;
    left: max(1rem, calc((100% - var(--zjms-max)) / 2 + 1rem));
  }

  body.zjms-theme .zjms-nav-search .form-control {
    height: 2.5rem;
    padding: 0 1.1rem;
    border: 1px solid var(--zjms-border);
    border-inline-end: 0;
    border-radius: 999px 0 0 999px;
    background: var(--zjms-bg);
    color: var(--zjms-text);
    font-size: 0.9rem;
  }

  body.zjms-theme .zjms-nav-search .form-control:focus {
    border-color: var(--zjms-secondary);
    background: var(--zjms-surface);
    box-shadow: 0 0 0 0.2rem rgba(18, 135, 127, 0.18);
  }

  /* icon button; the "Search" text stays for screen readers */
  body.zjms-theme .zjms-nav .zjms-nav-search .btn {
    position: relative;
    flex: none;
    width: 3rem;
    height: 2.5rem;
    margin: 0 !important;
    border: 0;
    border-radius: 0 999px 999px 0;
    background: var(--zjms-primary);
    color: transparent;
    font-size: 0;
  }

  body.zjms-theme .zjms-nav .zjms-nav-search .btn::before {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 1.1rem;
    height: 1.1rem;
    background: #fff;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5'/%3E%3C/svg%3E") center / contain no-repeat;
  }

  body.zjms-theme .zjms-nav .zjms-nav-search .btn:hover,
  body.zjms-theme .zjms-nav .zjms-nav-search .btn:focus-visible {
    background: var(--zjms-accent);
  }

  body.zjms-theme[dir="rtl"] .zjms-nav-search .form-control {
    border-radius: 0 999px 999px 0;
    border-inline-end: 1px solid var(--zjms-border);
    border-inline-start: 0;
  }

  body.zjms-theme[dir="rtl"] .zjms-nav .zjms-nav-search .btn {
    border-radius: 999px 0 0 999px;
  }

  /* ---- Register / Login (or user menu) at the right of the menu bar ---- */

  body.zjms-theme .zjms-nav .zjms-user-mobile {
    display: flex !important;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    width: auto;
    margin: 0 0 0 auto;
    padding: 0;
    border: 0;
  }

  body.zjms-theme .zjms-nav .zjms-user-mobile > li {
    position: relative;
  }

  body.zjms-theme .zjms-nav .zjms-user-mobile > li > a {
    padding: 0.4rem 0.95rem;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #fff !important;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  /* last item (Login, or Logout/user name) as an outlined pill */
  body.zjms-theme .zjms-nav .zjms-user-mobile > li:last-child > a {
    border-color: rgba(255, 255, 255, 0.7);
  }

  body.zjms-theme .zjms-nav .zjms-user-mobile > li > a:hover,
  body.zjms-theme .zjms-nav .zjms-user-mobile > li > a:focus-visible {
    background: #fff;
    color: var(--zjms-primary) !important;
    text-decoration: none;
  }

  body.zjms-theme .zjms-nav .zjms-user-mobile .task_count {
    background: var(--zjms-accent);
  }

  /* logged-in user submenu becomes a dropdown instead of an expanded list */
  body.zjms-theme .zjms-nav .zjms-user-mobile > li > ul {
    display: none !important;
    position: absolute !important;
    top: 100%;
    right: 0;
    z-index: 1040;
    min-width: 12rem;
    padding: 0.4rem 0 !important;
    background: var(--zjms-surface) !important;
    border-top: 3px solid var(--zjms-accent) !important;
    border-radius: 0 0 var(--zjms-radius) var(--zjms-radius);
    box-shadow: 0 12px 28px rgba(16, 28, 27, 0.18) !important;
  }

  body.zjms-theme .zjms-nav .zjms-user-mobile > li:hover > ul,
  body.zjms-theme .zjms-nav .zjms-user-mobile > li:focus-within > ul {
    display: block !important;
  }

  body.zjms-theme .zjms-nav .zjms-user-mobile > li > ul a {
    padding: 0.45rem 1rem;
    color: var(--zjms-text) !important;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
  }

  body.zjms-theme .zjms-nav .zjms-user-mobile > li > ul a:hover,
  body.zjms-theme .zjms-nav .zjms-user-mobile > li > ul a:focus-visible {
    background: var(--zjms-secondary);
    color: #fff !important;
  }
}


/* ---------- Issue archive cards ---------- */

/* the issue description is the same journal blurb on every issue; the old site showed only cover + title */
body.zjms-theme .zjms-issue-card .description,
body.zjms-theme .page_issue_archive .obj_issue_summary .description {
  display: none !important;
}

/* shorter cards fit four per row beside the sidebar */
body.zjms-theme .zjms-issues-grid,
body.zjms-theme .page_issue_archive .issues_archive {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 20px;
}

body.zjms-theme .zjms-issue-card__body {
  justify-content: center;
  padding: 0.7rem 0.6rem 0.8rem;
  text-align: center;
}

body.zjms-theme .zjms-issue-card {
  transition: transform var(--zjms-transition), box-shadow var(--zjms-transition);
}

body.zjms-theme .zjms-issue-card:hover,
body.zjms-theme .zjms-issue-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(13, 79, 74, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  body.zjms-theme .zjms-issue-card:hover,
  body.zjms-theme .zjms-issue-card:focus-within {
    transform: none;
  }
}

body.zjms-theme .zjms-issue-card__date {
  font-size: 0.8125rem;
  color: var(--zjms-muted);
  font-variant-numeric: tabular-nums;
}


/* ---------- Homepage hero: journal facts ---------- */

/* the hero shows the journal description one fact per line (Publisher, ISSN, DOI …);
   the 3-line clamp for the old one-sentence lead must not cut it off */
body.zjms-theme .zjms-hero .zjms-hero__facts {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
  max-width: none;
  margin: 0 0 1.4rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

body.zjms-theme .zjms-hero .zjms-hero__facts p {
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.9) !important;
}

body.zjms-theme .zjms-hero .zjms-hero__facts strong {
  color: #fff;
  font-weight: 700;
}

body.zjms-theme .zjms-hero .zjms-hero__facts a {
  color: #fff !important;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.5);
  text-underline-offset: 0.2em;
}

/* shorter banner: crop the empty space above and below the artwork; the title panel sits in the middle */
body.zjms-theme .zjms-hero--has-media .zjms-hero__media {
  aspect-ratio: 1472 / 480;
  object-fit: cover !important;
  object-position: center 50%;
}

/* current issue card lines up with the first fact instead of floating mid-height */
body.zjms-theme .zjms-hero__inner {
  align-items: start !important;
}

body.zjms-theme .zjms-hero__issue {
  align-self: start;
}

/* publisher link: bold like the labels, underline only on hover */
body.zjms-theme .zjms-hero .zjms-hero__facts a {
  font-weight: 600;
  text-decoration: none;
}

body.zjms-theme .zjms-hero .zjms-hero__facts a:hover,
body.zjms-theme .zjms-hero .zjms-hero__facts a:focus-visible {
  text-decoration: underline;
}


/* ---------- Issue listings: article titles ---------- */

/* the identity layer's small-caps rule for section names (".zjms-issue-toc h3") also caught article titles,
   which are h3 on issue pages; section names keep the small caps, titles get normal case */
body.zjms-theme .zjms-issue-toc .zjms-article__title {
  margin: 0 0 0.3rem;
  font-family: var(--zjms-font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: normal;
  text-transform: none;
  color: var(--zjms-primary);
}

body.zjms-theme .zjms-issue-toc .zjms-article__title a {
  color: inherit;
}

body.zjms-theme .zjms-issue-toc .zjms-article__title a:hover,
body.zjms-theme .zjms-issue-toc .zjms-article__title a:focus-visible {
  color: var(--zjms-secondary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* ---------- Article page: empty download chart ---------- */

/* OJS removes .usageStatsUnavailable once a chart has data, so while it is present the canvas is blank;
   !important beats the inline display Chart.js puts on the canvas */
body.zjms-theme .obj_article_details .downloads_chart:has(.usageStatsUnavailable) .usageStatsGraph {
  display: none !important;
}

body.zjms-theme .obj_article_details .usageStatsUnavailable {
  font-size: 0.875rem;
  color: var(--zjms-muted);
}


/* ---------- Article page: full-width header (2026-11-05) ---------- */

/*
 * Cover / DOI / published / issue row spans the main + sidebar width; sidebar starts
 * beside the article body (PDF row). Article template only (pkp_page_article), no :has().
 */
@media (min-width: 992px) {
  body.zjms-theme.pkp_page_article .zjms-container > .row.g-4 {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    column-gap: 1.5rem;
    align-items: start;
    margin: 0;
  }

  body.zjms-theme.pkp_page_article .zjms-container > .row.g-4 > .col-lg-8,
  body.zjms-theme.pkp_page_article .zjms-container > .row.g-4 > .col-lg-8 > .page_article,
  body.zjms-theme.pkp_page_article .zjms-container > .row.g-4 .page_article > .obj_article_details {
    display: contents;
  }

  body.zjms-theme.pkp_page_article .page_article > .cmp_breadcrumbs,
  body.zjms-theme.pkp_page_article .page_article > .obj_article_details > :not(.row) {
    grid-column: 1 / -1;
    max-width: none;
    width: 100%;
  }

  body.zjms-theme.pkp_page_article .page_article > .obj_article_details > .item.authors {
    margin-bottom: 1.25rem;
  }

  /* .row stays a real box: PDF, keywords, abstract, citation, references stack in the main column.
     .main_entry and .entry_details stay display: contents (zjms-article.css) so their items can be ordered. */
  body.zjms-theme.pkp_page_article .page_article > .obj_article_details > .row {
    grid-column: 1;
    min-width: 0;
  }

  body.zjms-theme.pkp_page_article .zjms-container > .row.g-4 > .zjms-sidebar {
    grid-column: 2;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }
}

/* Info row — horizontal cards (styles from zjms-article.css), one row on desktop */
body.zjms-theme .obj_article_details > .zjms-article-info {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
  margin: 0 0 0.75rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.zjms-theme .obj_article_details > .zjms-article-info > .item {
  min-width: 0;
  margin: 0;
}

body.zjms-theme .obj_article_details > .zjms-article-info > .item.cover_image {
  padding: 0;
}

@media (min-width: 992px) {
  body.zjms-theme .obj_article_details > .zjms-article-info {
    flex-wrap: nowrap;
  }

  body.zjms-theme .obj_article_details > .zjms-article-info > .item.cover_image {
    flex: 0 0 4.75rem;
  }

  body.zjms-theme .obj_article_details > .zjms-article-info > .item.doi,
  body.zjms-theme .obj_article_details > .zjms-article-info > .item.published,
  body.zjms-theme .obj_article_details > .zjms-article-info > .item.issue {
    flex: 1 1 0;
    min-width: 0;
  }

  body.zjms-theme .obj_article_details > .zjms-article-info .value,
  body.zjms-theme .obj_article_details > .zjms-article-info .value a {
    overflow-wrap: anywhere;
  }
}


/* ---------- Site width like the Galata demo (2026-11-05) ---------- */

/*
 * Galata (themes.ojs-services.com, data-width="1440"): .wrap is max 1440px with 28px side padding.
 * ZJMS was 1140px with 1rem padding. Every page container uses --zjms-max, so the header, menu bar,
 * content and footer all widen together. Phones keep the 1rem gutter.
 */
:root {
  --zjms-max: 1440px;
}

@media (min-width: 992px) {
  body.zjms-theme .zjms-container {
    padding-inline: 28px;
  }

  /* header search box is placed against the container edge (zjms-header.css) */
  body.zjms-theme .zjms-nav .zjms-nav-search {
    right: max(28px, calc((100% - var(--zjms-max)) / 2 + 28px));
  }

  body.zjms-theme[dir="rtl"] .zjms-nav .zjms-nav-search {
    right: auto;
    left: max(28px, calc((100% - var(--zjms-max)) / 2 + 28px));
  }
}


/* ---------- Article cards in issue lists / homepage (2026-11-05) ---------- */

/*
 * Card layout like the Galata demo theme: top bar (section pill, date, pages), body (bookmark +
 * title, authors, abstract excerpt), tinted footer (DOI + copy, Details, PDF).
 * Markup: templates/frontend/objects/article_summary.tpl (.zjms-acard).
 */
body.zjms-theme .zjms-acard {
  margin: 0 0 1rem;
  padding: 0;
  background: var(--zjms-surface, #fff);
  border: 1px solid var(--zjms-border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow var(--zjms-transition), border-color var(--zjms-transition);
}

body.zjms-theme .zjms-acard:last-child {
  margin-bottom: 0;
  border-bottom: 1px solid var(--zjms-border);
}

body.zjms-theme .zjms-acard:hover {
  border-color: color-mix(in srgb, var(--zjms-primary) 25%, var(--zjms-border));
  box-shadow: 0 6px 18px rgba(13, 79, 74, 0.08);
}

/* ---- top bar ---- */

body.zjms-theme .zjms-acard__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
  padding: 0.6rem 1.35rem;
  border-bottom: 1px solid var(--zjms-border);
  font-size: 0.85rem;
  color: var(--zjms-muted);
}

body.zjms-theme .zjms-acard__type {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--zjms-primary) 10%, #fff);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--zjms-primary);
}

body.zjms-theme .zjms-acard__when {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1.25rem;
  margin-inline-start: auto;
}

body.zjms-theme .zjms-acard__date {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ---- body ---- */

body.zjms-theme .zjms-acard__body {
  padding: 1.1rem 1.35rem 1.15rem;
}

body.zjms-theme .zjms-issue-toc .zjms-acard__title,
body.zjms-theme .zjms-acard__title {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0;
  font-family: var(--zjms-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: normal;
  text-transform: none;
  color: var(--zjms-primary);
}

body.zjms-theme .zjms-acard__mark {
  flex: 0 0 auto;
  margin-top: 0.15em;
  color: var(--zjms-accent);
}

body.zjms-theme .zjms-acard__title a {
  color: inherit;
  text-decoration: none;
}

body.zjms-theme .zjms-acard__title a:hover,
body.zjms-theme .zjms-acard__title a:focus-visible {
  color: var(--zjms-secondary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body.zjms-theme .zjms-acard__authors {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--zjms-secondary);
}

body.zjms-theme .zjms-acard__person {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--zjms-primary) 8%, #fff);
  color: var(--zjms-primary);
}

body.zjms-theme .zjms-acard__abs {
  max-width: none;
  margin: 0.75rem 0 0;
  padding-inline-start: 0.8rem;
  border-inline-start: 2px solid var(--zjms-border);
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--zjms-muted);
}

/* ---- footer ---- */

body.zjms-theme .zjms-acard__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  padding: 0.6rem 1.15rem 0.6rem 1.35rem;
  border-top: 1px solid var(--zjms-border);
  background: color-mix(in srgb, var(--zjms-primary) 4%, #fff);
}

body.zjms-theme .zjms-acard__doi {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
  font-size: 0.9rem;
}

body.zjms-theme .zjms-acard__doi-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  background: #fcb425;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #231f20;
}

body.zjms-theme .zjms-acard__doi a {
  overflow-wrap: anywhere;
  color: var(--zjms-muted);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body.zjms-theme .zjms-acard__doi a:hover {
  color: var(--zjms-primary);
}

body.zjms-theme .zjms-acard__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  border: 1px solid var(--zjms-border);
  border-radius: 6px;
  background: #fff;
  color: var(--zjms-muted);
  cursor: pointer;
}

body.zjms-theme .zjms-acard__copy:hover {
  color: var(--zjms-primary);
  border-color: var(--zjms-primary);
}

body.zjms-theme .zjms-acard__copy.is-copied {
  color: #fff;
  border-color: var(--zjms-success);
  background: var(--zjms-success);
}

body.zjms-theme .zjms-acard__actions {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-inline-start: auto;
}

body.zjms-theme .zjms-acard__details,
body.zjms-theme .zjms-acard__actions .obj_galley_link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.15rem;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--zjms-border);
  border-radius: 6px;
  background: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  color: var(--zjms-muted);
  text-decoration: none;
}

body.zjms-theme .zjms-acard__actions .obj_galley_link {
  border: 1.5px solid var(--zjms-primary);
  color: var(--zjms-primary);
}

/* download arrow before PDF */
body.zjms-theme .zjms-acard__actions .obj_galley_link.pdf::before {
  content: "";
  width: 0.9rem;
  height: 0.9rem;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10.5l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10.5l5 5 5-5M5 20h14'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.zjms-theme .zjms-acard__details:hover,
body.zjms-theme .zjms-acard__details:focus-visible {
  border-color: var(--zjms-primary);
  color: var(--zjms-primary);
}

body.zjms-theme .zjms-acard__actions .obj_galley_link:hover,
body.zjms-theme .zjms-acard__actions .obj_galley_link:focus-visible {
  background: var(--zjms-primary);
  color: #fff;
}

@media (max-width: 575.98px) {
  body.zjms-theme .zjms-acard__top,
  body.zjms-theme .zjms-acard__body,
  body.zjms-theme .zjms-acard__foot {
    padding-inline: 1rem;
  }

  body.zjms-theme .zjms-acard__title {
    font-size: 1.05rem;
  }

  body.zjms-theme .zjms-acard__when {
    margin-inline-start: 0;
  }
}

/* ---------- Article cards: closer to the Galata colours (2026-11-05) ---------- */

/* title near-black like Galata (was brand teal); hover stays teal */
body.zjms-theme .zjms-issue-toc .zjms-acard__title,
body.zjms-theme .zjms-acard__title {
  color: var(--zjms-text);
}

/* authors in the darker brand teal */
body.zjms-theme .zjms-acard__authors {
  color: var(--zjms-primary);
}

/* footer: neutral grey tint instead of teal tint */
body.zjms-theme .zjms-acard__foot {
  background: #f1f3f2;
}

/* ---------- Homepage: "Latest issue" sidebar card, like Galata (2026-11-05) ---------- */
/* markup: indexJournal.tpl captures it, footer.tpl prints it under Make a Submission */

body.zjms-theme .zjms-sidebar .zjms-block.zjms-latest-issue {
  padding: 1.1rem 1.25rem 1.25rem;
  background: #fff;
  border: 1px solid var(--zjms-border);
  border-radius: 10px !important;
  border-inline-start: 1px solid var(--zjms-border) !important; /* no teal sidebar stripe */
}

body.zjms-theme .zjms-latest-issue__heading {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.9rem;
  padding: 0;
  border: 0;
  font-family: var(--zjms-font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  color: var(--zjms-text);
}

body.zjms-theme .zjms-latest-issue__heading svg {
  flex: 0 0 auto;
  color: var(--zjms-accent);
}

/* the ZJMS sidebar is wider than Galata's, so cap the cover instead of filling the card */
body.zjms-theme .zjms-latest-issue__cover {
  display: block;
  max-width: 240px;
  margin: 0 auto 1rem;
}

body.zjms-theme .zjms-latest-issue__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 10px 24px rgba(16, 33, 31, 0.22);
}

body.zjms-theme .zjms-latest-issue__name {
  margin: 0 0 0.35rem;
  font-family: var(--zjms-font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  text-transform: none;
  letter-spacing: normal;
}

body.zjms-theme .zjms-latest-issue__name a {
  color: var(--zjms-text);
  text-decoration: none;
}

body.zjms-theme .zjms-latest-issue__name a:hover {
  color: var(--zjms-secondary);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

body.zjms-theme .zjms-latest-issue__meta {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--zjms-muted);
}

body.zjms-theme .zjms-latest-issue__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  border-radius: 8px;
  background: var(--zjms-primary);
  font-weight: 600;
  color: #fff !important;
  text-decoration: none !important;
}

body.zjms-theme .zjms-latest-issue__btn:hover,
body.zjms-theme .zjms-latest-issue__btn:focus-visible {
  background: var(--zjms-secondary);
}

/* ---------- Article lists sit on the page background, like Galata (2026-11-05) ---------- */
/* the panel around an issue's article list (homepage "Current Issue") loses its white box,
   so each article card stands on its own on the grey page background */
body.zjms-theme .zjms-panel:has(.zjms-issue-toc) {
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.zjms-theme .zjms-panel:has(.zjms-issue-toc) > .zjms-panel__title {
  margin-bottom: 0.9rem;
}

/* ---------- Homepage masthead in the Galata style (2026-11-05) ---------- */
/*
 * Full-width teal band under the menu bar: issue cover | journal name, abbreviation, tagline,
 * stats row | fact tiles + submit card. Replaces the photo banner hero. A faint ECG line (the
 * ZJMS header motif) stands in for Galata's bookshelf drawing.
 * Markup: templates/frontend/pages/indexJournal.tpl (.zjms-mast).
 */
body.zjms-theme .zjms-mast {
  position: relative;
  overflow: hidden;
  padding: 2.75rem 0 3rem;
  background:
    radial-gradient(120% 140% at 85% 0%, rgba(18, 135, 127, 0.35) 0%, rgba(18, 135, 127, 0) 60%),
    linear-gradient(135deg, var(--zjms-primary) 0%, #0a3d39 100%);
  color: #fff;
}

body.zjms-theme .zjms-mast__pulse {
  position: absolute;
  inset: auto 0 18% 0;
  width: 100%;
  height: 46%;
  color: rgba(255, 255, 255, 0.09);
  pointer-events: none;
}

body.zjms-theme .zjms-mast__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  body.zjms-theme .zjms-mast__inner {
    grid-template-columns: 200px minmax(0, 1fr);
    align-items: start;
  }

  body.zjms-theme .zjms-mast__side {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) {
  body.zjms-theme .zjms-mast__inner {
    grid-template-columns: 230px minmax(0, 1fr) 330px;
    gap: 2.75rem;
  }

  body.zjms-theme .zjms-mast__side {
    grid-column: auto;
  }
}

/* ---- cover ---- */

body.zjms-theme .zjms-mast__cover {
  display: block;
  max-width: 230px;
}

body.zjms-theme .zjms-mast__cover img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 3px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
  transition: transform var(--zjms-transition);
}

body.zjms-theme .zjms-mast__cover:hover img {
  transform: translateY(-3px);
}

/* ---- copy ---- */

body.zjms-theme .zjms-mast__title {
  margin: 0.4rem 0 0;
  font-family: var(--zjms-font-heading);
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: #fff;
}

body.zjms-theme .zjms-mast__sub {
  margin: 0.6rem 0 0;
  font-family: var(--zjms-font-heading);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

body.zjms-theme .zjms-mast__lead {
  max-width: 62ch;
  margin: 1rem 0 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

body.zjms-theme .zjms-mast__stats {
  display: flex;
  flex-wrap: wrap;
  margin: 1.6rem 0 0;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

body.zjms-theme .zjms-mast__stat {
  display: flex;
  flex-direction: column-reverse;
  padding: 0 1.75rem;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.2);
}

body.zjms-theme .zjms-mast__stat:first-child {
  padding-inline-start: 0;
  border-inline-start: 0;
}

body.zjms-theme .zjms-mast__stat dd {
  margin: 0;
  font-family: var(--zjms-font-heading);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
}

body.zjms-theme .zjms-mast__stat dt {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
}

/* ---- fact tiles ---- */

body.zjms-theme .zjms-mast__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  body.zjms-theme .zjms-mast__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

body.zjms-theme .zjms-mast__facts li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.55rem 0.6rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

/* licence and publisher values are long: those tiles span both columns, after the pairs */
body.zjms-theme .zjms-mast__facts li.zjms-mast__fact--wide {
  grid-column: 1 / -1;
  order: 10;
}

body.zjms-theme .zjms-mast__facts li > span:last-child {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow-wrap: anywhere;
}

body.zjms-theme .zjms-mast__facts small {
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.75);
}

body.zjms-theme .zjms-mast__badge {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--zjms-accent);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

/* ---- submit card ---- */

body.zjms-theme .zjms-mast__submit {
  margin-top: 0.75rem;
  padding: 1.25rem 1.35rem;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 6px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
}

body.zjms-theme .zjms-mast__submit p {
  margin: 0.85rem 0 0;
}

body.zjms-theme .zjms-mast__submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  border-radius: 4px;
  background: var(--zjms-accent);
  font-size: 1.02rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  transition: filter var(--zjms-transition);
}

body.zjms-theme .zjms-mast__submit-btn:hover,
body.zjms-theme .zjms-mast__submit-btn:focus-visible {
  filter: brightness(1.08);
}

body.zjms-theme .zjms-mast__submit-links {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

body.zjms-theme .zjms-mast__submit-links a {
  font-weight: 600;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (max-width: 767.98px) {
  body.zjms-theme .zjms-mast {
    padding: 2rem 0 2.25rem;
  }

  body.zjms-theme .zjms-mast__cover {
    max-width: 150px;
  }

  /* stats wrap on phones: two-column grid, no dividers */
  body.zjms-theme .zjms-mast__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1rem;
  }

  body.zjms-theme .zjms-mast__stat {
    padding: 0;
    border-inline-start: 0;
  }

  body.zjms-theme .zjms-mast__stat dd {
    font-size: 1.45rem;
  }
}
