/**
 * ZJMS content typography — About and similar prose pages.
 * Brand navy: #0d4f4a
 */
.page_about > h1 {
  margin: 0 0 1.25rem;
  font-family: var(--zjms-font-heading, "Roboto Slab", Georgia, serif);
  font-size: clamp(1.75rem, 2.5vw, 2rem); /* 28–32px */
  font-weight: 700;
  line-height: 1.25;
  color: #0d4f4a;
}

.page_about .cmp_breadcrumbs {
  margin-bottom: 0.75rem;
}

/* Constrained reading column */
.zjms-prose {
  max-width: 740px;
  width: 100%;
  margin: 0;
  font-family: var(--zjms-font-body, "Noto Sans", "Segoe UI", sans-serif);
  font-size: 1rem; /* 16px */
  font-weight: 400;
  line-height: 1.65;
  color: #16211f;
}

.zjms-prose > *:first-child {
  margin-top: 0;
}

/* Kill Word/TinyMCE inline size/color noise inside prose */
.zjms-prose p,
.zjms-prose li,
.zjms-prose td,
.zjms-prose th,
.zjms-prose span,
.zjms-prose font {
  font-family: inherit !important;
  font-size: inherit !important;
  line-height: inherit !important;
  color: inherit !important;
}

.zjms-prose a span {
  color: inherit !important;
}

.zjms-prose a {
  color: #12877f !important;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.zjms-prose a:hover,
.zjms-prose a:focus-visible {
  color: #0d4f4a !important;
}

/* Type scale */
.zjms-prose h1,
.zjms-prose h2.zjms-prose__h2,
.zjms-prose h2 {
  margin: 2rem 0 0.75rem;
  font-family: var(--zjms-font-heading, "Roboto Slab", Georgia, serif) !important;
  font-size: 1.3125rem !important; /* 21px — section */
  font-weight: 600 !important;
  line-height: 1.3 !important;
  color: #0d4f4a !important;
}

/* If any true H1 remains inside CMS blob, treat as section H2 visually */
.zjms-prose h1 {
  font-size: 1.3125rem !important;
  font-weight: 600 !important;
}

.zjms-prose h3,
.zjms-prose h4,
.zjms-prose .zjms-prose__h3 {
  margin: 1.25rem 0 0.5rem;
  font-family: var(--zjms-font-body, "Noto Sans", "Segoe UI", sans-serif) !important;
  font-size: 1.0625rem !important; /* 17px */
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #0d4f4a !important;
}

.zjms-prose h1 span,
.zjms-prose h2 span,
.zjms-prose h3 span,
.zjms-prose h4 span,
.zjms-prose .zjms-prose__h3 span {
  font-size: inherit !important;
  font-weight: inherit !important;
  font-family: inherit !important;
  color: inherit !important;
  line-height: inherit !important;
}

/* Vertical rhythm */
.zjms-prose p {
  margin: 0 0 1rem;
  font-weight: 400 !important;
  text-align: left;
}

/* Information pages (Authors, etc.): match legacy Word layout from production */
.page_information .zjms-prose p {
  text-align: justify !important;
}

.page_information .zjms-prose p strong,
.page_information .zjms-prose p b {
  font-weight: 700 !important;
}

.zjms-prose p.MsoNormal {
  margin-bottom: 1rem !important;
}

.zjms-prose ul,
.zjms-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}

.zjms-prose li {
  margin-bottom: 0.35rem;
}

.zjms-prose hr {
  margin: 1.75rem 0;
  border: 0;
  border-top: 1px solid #dde7e5;
}

/* Pseudo-heading paragraphs (JS adds .zjms-prose__pseudo-h3 when the whole <p> is a label).
   Do not use p:has(> strong:only-child) — labels like "Original Articles:" + body text have
   strong as the only element child but normal text after it, and would all render bold. */
.zjms-prose p.zjms-prose__pseudo-h3 {
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 1.0625rem !important;
  font-weight: 600 !important;
  color: #0d4f4a !important;
  line-height: 1.35 !important;
}

.zjms-prose p.zjms-prose__pseudo-h3 strong,
.zjms-prose p.zjms-prose__pseudo-h3 span {
  font-weight: 600 !important;
  color: #0d4f4a !important;
  font-size: inherit !important;
}

/* Journal Metrics / Word tables */
.zjms-prose table,
.zjms-prose table.MsoTableGrid,
.zjms-prose .zjms-metrics-table {
  display: table !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 1.25rem 0 1.75rem !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  border: 1px solid #dde7e5 !important;
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  font-family: var(--zjms-font-body, "Noto Sans", "Segoe UI", sans-serif) !important;
  font-size: 0.9375rem !important; /* 15px */
  line-height: 1.5 !important;
  float: none !important;
  align: none;
  height: auto !important;
}

.zjms-prose table td,
.zjms-prose table th,
.zjms-prose table.MsoTableGrid td,
.zjms-prose table.MsoTableGrid th {
  width: auto !important;
  height: auto !important;
  padding: 10px 12px !important;
  border: 1px solid #dde7e5 !important;
  vertical-align: top !important;
  font-size: inherit !important;
  font-family: inherit !important;
  color: #16211f !important;
  background: transparent !important;
}

.zjms-prose table tr:first-child td,
.zjms-prose table tr:first-child th,
.zjms-prose table thead td,
.zjms-prose table thead th {
  background: #e9f2f0 !important;
  font-weight: 600 !important;
  color: #0d4f4a !important;
}

.zjms-prose table p {
  margin: 0 !important;
  text-align: left !important;
}

.zjms-prose table span {
  font-size: inherit !important;
  color: inherit !important;
}

/* Drop Word frame wrappers that break flow */
.zjms-prose div[style*="mso-element"],
.zjms-prose p[style*="mso-element"] {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

@media (max-width: 575.98px) {
  .page_about > h1 {
    font-size: 1.625rem;
  }

  .zjms-prose {
    font-size: 0.9375rem; /* 15px on small screens */
  }

  .zjms-prose h1,
  .zjms-prose h2 {
    font-size: 1.2rem !important;
  }

  .zjms-prose table td,
  .zjms-prose table th {
    padding: 8px 10px !important;
  }
}

/* —— Information pages (Reviewers / Authors / Librarians) —— */
.page_information > h1 {
  margin: 0 0 1.25rem;
  font-family: var(--zjms-font-heading, "Roboto Slab", Georgia, serif);
  font-size: clamp(1.75rem, 2.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
  color: #0d4f4a;
}

.page_information .cmp_breadcrumbs {
  margin-bottom: 0.75rem;
}

.page_information .zjms-prose {
  max-width: 740px;
}

/* Explicit H2/H3 scale (match About) */
.zjms-prose h2,
.zjms-prose h2.zjms-prose__h2 {
  margin: 2rem 0 0.75rem !important;
  font-size: 1.3125rem !important; /* 21px */
  font-weight: 600 !important;
  color: #0d4f4a !important;
}

.zjms-prose h3,
.zjms-prose h3.zjms-prose__h3 {
  margin: 1.25rem 0 0.5rem !important;
  font-size: 1.0625rem !important; /* 17px */
  font-weight: 600 !important;
  color: #0d4f4a !important;
}

/* Breathing room between headings and content tables */
.zjms-prose h2 + table,
.zjms-prose h3 + table,
.zjms-prose h2 + .zjms-metrics-table,
.zjms-prose h3 + .zjms-metrics-table,
.zjms-prose h2 + p + table,
.zjms-prose h3 + p + table {
  margin-top: 1rem !important;
}

.zjms-prose table {
  margin-top: 1rem !important;
  margin-bottom: 1.5rem !important;
}

/* Numbered review process steps */
.zjms-steps {
  list-style: none;
  margin: 1.25rem 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  counter-reset: none;
}

.zjms-step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 0.85rem;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 0.95rem 1rem;
  background: #fff;
  border: 1px solid #dde7e5;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(13, 79, 74, 0.04);
  box-sizing: border-box;
}

.zjms-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: #0d4f4a;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.zjms-step__body {
  min-width: 0;
}

.zjms-step__title {
  margin: 0.15rem 0 0.35rem !important;
  font-family: var(--zjms-font-body, "Noto Sans", "Segoe UI", sans-serif) !important;
  font-size: 1.0625rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: #0d4f4a !important;
}

.zjms-step__desc {
  margin: 0 !important;
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
  color: #16211f !important;
}

.zjms-prose__list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.35rem;
}

.zjms-prose__list li {
  margin-bottom: 0.4rem;
}

/* ---------- Buttons inside page content (loads after prose link colours) ---------- */
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, "Noto Sans", "Segoe UI", sans-serif) !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.2;
  text-decoration: none !important;
}

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, #e0452b) !important;
  border-color: var(--zjms-accent, #e0452b) !important;
  color: #fff !important;
}

body.zjms-theme .zjms-prose a[style*="background"] ~ a[style*="background"] {
  background: transparent !important;
  color: var(--zjms-primary, #0d4f4a) !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, #0d4f4a) !important;
  border-color: var(--zjms-primary, #0d4f4a) !important;
  color: #fff !important;
}
