/*!
 * WNJMS Premium Design System (Immersion edition)
 * Western Nigeria Journal of Medical Sciences
 *
 * Target : OJS 3.5.0.6, Immersion theme (Bootstrap 5 markup).
 * Palette: UNIOSUN Teaching Hospital logo (brown ring, sky water, green caduceus, gold dots).
 * Install: use this as the ONLY custom journal stylesheet. Remove earlier copies,
 *          the Pragma file and wnjms-uth-theme.css so nothing loads twice.
 *
 * Quick controls (section 1):
 *   --wnjms-header-height   banner height (raise if the image is cropped)
 *   --wnjms-nav-bg          strip behind the main menu
 *   --wnjms-nav-text        main menu text colour
 *   --wnjms-nav-accent      menu hover / active colour
 *
 * Contents
 *   1  Design tokens          9  Article cards
 *   2  Base                  10  Footer
 *   3  Accessibility         11  Inner page shell
 *   4  Header and banner     12  Archives
 *   5  Primary navigation    13  Login and registration forms
 *   6  Buttons and forms     14  Ethics-style pages
 *   7  About the journal     15  Responsive adjustments
 *   8  Current issue         16  Print
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');


/* ==========================================================================
   1. DESIGN TOKENS
   ========================================================================== */

:root {
  /* Palette */
  --wnjms-brown: #78392B;
  --wnjms-brown-mid: #563427;
  --wnjms-brown-dark: #3B2219;
  --wnjms-sky: #94D6DA;
  --wnjms-sky-tint: #E8F6F7;
  --wnjms-green: #157A51;
  --wnjms-gold: #F9D51D;
  --wnjms-background: #FBF8F0;
  --wnjms-white: #FFFFFF;
  --wnjms-text: #3A3330;
  --wnjms-border: #E8DFD3;

  --wnjms-muted-text: #6B5F59;
  --wnjms-footer-text: #E4D9D2;
  --wnjms-danger: #B42318;

  /* Signature accent: gold, sky and green taken from the logo */
  --wnjms-accent-line: linear-gradient(90deg, var(--wnjms-gold), var(--wnjms-sky) 55%, var(--wnjms-green));

  /* Main menu: no background, so the banner shows through; white text with a soft shadow keeps it legible */
  --wnjms-nav-bg: transparent;
  --wnjms-nav-text: #FFFFFF;
  --wnjms-nav-accent: var(--wnjms-gold);
  --wnjms-nav-divider: rgba(255, 255, 255, 0.2);
  --wnjms-nav-shadow: 0 1px 3px rgba(0, 0, 0, 0.85), 0 0 12px rgba(0, 0, 0, 0.55);

  /* Typography */
  --wnjms-font-heading: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --wnjms-font-body: 'DM Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --wnjms-fs-xs: 0.8125rem;
  --wnjms-fs-sm: 0.9375rem;
  --wnjms-fs-base: 1rem;
  --wnjms-fs-md: 1.0625rem;
  --wnjms-fs-lg: 1.25rem;
  --wnjms-fs-xl: clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
  --wnjms-fs-2xl: clamp(1.75rem, 1.3rem + 2vw, 2.625rem);

  /* Spacing */
  --wnjms-sp-1: 0.25rem;
  --wnjms-sp-2: 0.5rem;
  --wnjms-sp-3: 0.75rem;
  --wnjms-sp-4: 1rem;
  --wnjms-sp-5: 1.5rem;
  --wnjms-sp-6: 2rem;
  --wnjms-sp-7: 3rem;

  /* Shape and depth */
  --wnjms-radius-sm: 8px;
  --wnjms-radius: 12px;
  --wnjms-radius-lg: 16px;
  --wnjms-shadow-sm: 0 1px 2px rgba(59, 34, 25, 0.06);
  --wnjms-shadow: 0 6px 18px rgba(59, 34, 25, 0.08);
  --wnjms-shadow-lg: 0 14px 34px rgba(59, 34, 25, 0.14);
  --wnjms-ease: 0.18s ease;

  /* Layout */
  --wnjms-page-width: 1240px;
  --wnjms-tap: 44px;
  /* Total header height. The banner shows between the account strip (top)
     and the menu strip (bottom). If your banner image is cropped, raise this value. */
  --wnjms-header-height: clamp(260px, 30vw, 430px);
}


/* ==========================================================================
   2. BASE
   ========================================================================== */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--wnjms-font-body);
  font-size: var(--wnjms-fs-base);
  line-height: 1.65;
  color: var(--wnjms-text);
  background-color: var(--wnjms-background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--wnjms-gold);
  color: var(--wnjms-brown-dark);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--wnjms-font-heading);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

main p a:not(.btn) {
  color: var(--wnjms-brown);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

main p a:not(.btn):hover {
  color: var(--wnjms-brown-mid);
  text-decoration-thickness: 2px;
}

main img {
  max-width: 100%;
}


/* ==========================================================================
   3. ACCESSIBILITY
   ========================================================================== */

.cmp_skip_to_content a.visually-hidden:focus {
  position: fixed !important;
  top: var(--wnjms-sp-2);
  left: var(--wnjms-sp-2);
  z-index: 2000;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: var(--wnjms-sp-3) var(--wnjms-sp-4) !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  background: var(--wnjms-brown-dark);
  color: var(--wnjms-white);
  font-weight: 700;
  border-radius: var(--wnjms-radius-sm);
  outline: 3px solid var(--wnjms-gold);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--wnjms-brown);
  outline-offset: 2px;
}

/* Gold focus ring on dark surfaces */
.main-header__admin a:focus-visible,
.journal-description a:focus-visible,
.main-footer a:focus-visible,
.main-footer button:focus-visible {
  outline-color: var(--wnjms-gold);
}

/* The main menu sits directly on the banner, so it uses the gold ring too */
.main-header__nav a:focus-visible,
.main-header__nav button:focus-visible {
  outline-color: var(--wnjms-gold);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ==========================================================================
   4. HEADER AND BANNER
   The banner is an inline background-image on header.main-header.
   Layout: account strip on top, banner visible in the middle, menu strip at the bottom.
   ========================================================================== */

.main-header {
  position: relative;
  display: flex;
  min-height: var(--wnjms-header-height);
  margin: 0;
  padding: 0;
  background-color: var(--wnjms-brown-mid);
  /* visible only while the image loads */
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-bottom: 4px solid;
  border-image: var(--wnjms-accent-line) 1;
}

.main-header>.container-fluid {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  width: 100%;
  height: 400px;
  max-width: none;
  padding: 0;
}

/* Journal name inside the h1 link: hidden visually, still read by screen readers */
.main-header__title {
  height: 0;
  margin: 0;
  padding: 0;
  font-size: 0;
  line-height: 0;
}

.main-header__title a>span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Keyboard users still see where focus is */
.main-header__title a:focus-visible>span {
  position: fixed;
  top: var(--wnjms-sp-2);
  left: var(--wnjms-sp-2);
  z-index: 2000;
  width: auto;
  height: auto;
  margin: 0;
  padding: var(--wnjms-sp-2) var(--wnjms-sp-3);
  clip: auto;
  clip-path: none;
  white-space: normal;
  font-family: var(--wnjms-font-heading);
  font-size: var(--wnjms-fs-sm);
  line-height: 1.3;
  color: var(--wnjms-white);
  background: var(--wnjms-brown-dark);
  border-radius: var(--wnjms-radius-sm);
  outline: 3px solid var(--wnjms-gold);
}

/* Account strip */
.main-header__admin {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0;
  padding: var(--wnjms-sp-2) max(var(--wnjms-sp-4), calc((100% - var(--wnjms-page-width)) / 2 + var(--wnjms-sp-4)));
  background: transparent;
}

#navigationUser {
  display: flex;
  align-items: center;
  gap: var(--wnjms-sp-2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-header__admin-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: var(--wnjms-sp-1) var(--wnjms-sp-4);
  font-family: var(--wnjms-font-heading);
  font-size: var(--wnjms-fs-xs);
  font-weight: 700;
  color: var(--wnjms-white);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background-color var(--wnjms-ease), color var(--wnjms-ease), border-color var(--wnjms-ease);
}

.nmi_type_user_register .main-header__admin-link {
  color: var(--wnjms-gold);
  text-shadow: var(--wnjms-nav-shadow);
  border-color: rgba(249, 213, 29, 0.85);
}

.nmi_type_user_login .main-header__admin-link {
  background: var(--wnjms-gold);
  color: var(--wnjms-brown-dark);
}

.main-header__admin-link:hover {
  text-shadow: none;
  background: var(--wnjms-white);
  border-color: var(--wnjms-white);
  color: var(--wnjms-brown-dark);
}


/* ==========================================================================
   5. PRIMARY NAVIGATION
   Collapse and toggler are Bootstrap JS driven and are not replaced.
   ========================================================================== */

.main-header__nav {
  margin: auto 0 0;
  /* pins the menu to the bottom of the header */
  padding: var(--wnjms-sp-1) max(var(--wnjms-sp-4), calc((100% - var(--wnjms-page-width)) / 2 + var(--wnjms-sp-4)));
  background: var(--wnjms-nav-bg);
  /* transparent */
}

.main-header__nav .navbar-collapse,
#navigationPrimary {
  background: transparent;
}

#navigationPrimary {
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--wnjms-sp-1);
  margin-top: 0;
  margin-bottom: 0;
  padding: 0;
}

.main-header__nav-link {
  display: block;
  padding: var(--wnjms-sp-3) var(--wnjms-sp-4);
  font-family: var(--wnjms-font-heading);
  font-size: var(--wnjms-fs-sm);
  font-weight: 600;
  line-height: 1.3;
  color: var(--wnjms-nav-text);
  text-shadow: var(--wnjms-nav-shadow);
  text-decoration: none;
  background: transparent;
  border-bottom: 3px solid transparent;
  transition: color var(--wnjms-ease), border-color var(--wnjms-ease);
}

.main-header__nav-link:hover {
  color: var(--wnjms-nav-accent);
  border-bottom-color: var(--wnjms-nav-accent);
  background: transparent;
}

/* Active state: the markup carries no active class on the pages supplied; these cover the usual patterns */
.main-header__nav-link[aria-current],
.main-header__nav-link.active,
.nav-item.active>.main-header__nav-link,
.nav-item.current>.main-header__nav-link {
  color: var(--wnjms-nav-accent);
  border-bottom-color: var(--wnjms-gold);
}

/* Mobile toggler */
.main-header__nav .navbar-toggler {
  min-width: var(--wnjms-tap);
  min-height: var(--wnjms-tap);
  margin-top: var(--wnjms-sp-1);
  margin-bottom: var(--wnjms-sp-1);
  background: var(--wnjms-white);
  border: 1px solid var(--wnjms-brown);
  border-radius: var(--wnjms-radius-sm);
}

.main-header__nav .hamburger__icon,
.main-header__nav .hamburger__icon::before,
.main-header__nav .hamburger__icon::after {
  background-color: var(--wnjms-brown-dark);
}

@media (max-width: 575.98px) {
  #navigationPrimary {
    flex-direction: column;
    flex-wrap: nowrap;
    padding-bottom: var(--wnjms-sp-2);
  }

  /* Opened mobile menu gets a dark panel so the links stay readable over the image */
  .main-header__nav .navbar-collapse.show,
  .main-header__nav .navbar-collapse.collapsing {
    background: rgba(59, 34, 25, 0.92);
    border-radius: var(--wnjms-radius-sm);
  }

  .main-header__nav-link {
    min-height: var(--wnjms-tap);
    padding: var(--wnjms-sp-3) var(--wnjms-sp-2);
    text-align: center;
    border-bottom: 1px solid var(--wnjms-nav-divider);
  }
}


/* ==========================================================================
   6. BUTTONS AND FORM CONTROLS (scoped, Bootstrap core classes are not redefined)
   ========================================================================== */

:is(main, .main-footer, .modal-content) .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wnjms-sp-2);
  min-height: var(--wnjms-tap);
  padding: var(--wnjms-sp-3) var(--wnjms-sp-5);
  font-family: var(--wnjms-font-heading);
  font-size: var(--wnjms-fs-sm);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border-radius: var(--wnjms-radius-sm);
  transition: background-color var(--wnjms-ease), color var(--wnjms-ease), border-color var(--wnjms-ease), box-shadow var(--wnjms-ease);
}

:is(main, .modal-content) .btn-primary {
  background: var(--wnjms-brown);
  border: 1px solid var(--wnjms-brown);
  color: var(--wnjms-white);
}

:is(main, .modal-content) .btn-primary:hover,
:is(main, .modal-content) .btn-primary:active {
  background: var(--wnjms-brown-mid);
  border-color: var(--wnjms-brown-mid);
  color: var(--wnjms-white);
  box-shadow: var(--wnjms-shadow);
}

:is(main, .modal-content) .btn-secondary {
  background: var(--wnjms-white);
  border: 1px solid var(--wnjms-brown);
  color: var(--wnjms-brown-mid);
}

:is(main, .modal-content) .btn-secondary:hover {
  background: var(--wnjms-sky-tint);
  color: var(--wnjms-brown-mid);
}

.modal-content {
  border: 1px solid var(--wnjms-border);
  border-radius: var(--wnjms-radius-lg);
  box-shadow: 0 20px 50px rgba(59, 34, 25, 0.25);
}

:is(main, .modal-content) label {
  font-weight: 600;
  color: var(--wnjms-brown-dark);
}

:is(main, .modal-content) .required {
  color: var(--wnjms-danger);
}

:is(main, .modal-content) .form-control {
  min-height: var(--wnjms-tap);
  padding: var(--wnjms-sp-2) var(--wnjms-sp-3);
  color: var(--wnjms-text);
  background-color: var(--wnjms-white);
  border: 1px solid #9C8A7E;
  border-radius: var(--wnjms-radius-sm);
}

:is(main, .modal-content) .form-control:focus {
  border-color: var(--wnjms-brown);
  box-shadow: 0 0 0 3px rgba(120, 57, 43, 0.2);
}

:is(main, .modal-content) input[type="checkbox"],
:is(main, .modal-content) input[type="radio"] {
  accent-color: var(--wnjms-brown);
}


/* ==========================================================================
   7. ABOUT THE JOURNAL
   section.journal-description has an inline black background-color,
   so !important is required for that one property.
   ========================================================================== */

.journal-description {
  padding: var(--wnjms-sp-7) 0;
  background-color: var(--wnjms-brown-dark) !important;
  background-image:
    radial-gradient(60% 120% at 100% 0%, rgba(148, 214, 218, 0.16), transparent 60%),
    radial-gradient(50% 100% at 0% 100%, rgba(120, 57, 43, 0.55), transparent 60%);
  border-bottom: 4px solid var(--wnjms-gold);
  color: #F1E8E2;
}

.journal-description h3 {
  margin: 0 0 var(--wnjms-sp-4);
  padding-left: var(--wnjms-sp-3);
  font-size: var(--wnjms-fs-xl);
  font-weight: 800;
  color: var(--wnjms-white);
  border-left: 4px solid var(--wnjms-gold);
}

.journal-description p {
  max-width: 70ch;
  color: #F1E8E2;
}

.journal-description p a:not(.btn) {
  color: var(--wnjms-gold);
}

.journal-description p a:not(.btn):hover {
  color: var(--wnjms-white);
}

.journal-description .btn-primary {
  background: var(--wnjms-brown);
  border: 2px solid rgba(255, 255, 255, 0.45);
  color: var(--wnjms-white);
}

.journal-description .btn-primary:hover {
  background: var(--wnjms-gold);
  border-color: var(--wnjms-gold);
  color: var(--wnjms-brown-dark);
}


/* ==========================================================================
   8. CURRENT ISSUE
   ========================================================================== */

.issue {
  padding: var(--wnjms-sp-7) 0 var(--wnjms-sp-6);
  background: var(--wnjms-background);
}

.issue__header {
  margin: 0 0 var(--wnjms-sp-5);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: linear-gradient(135deg, var(--wnjms-white) 62%, var(--wnjms-sky-tint));
  border: 1px solid var(--wnjms-border);
  border-bottom: 4px solid var(--wnjms-gold);
  border-radius: var(--wnjms-radius-lg);
  box-shadow: var(--wnjms-shadow);
}

/* "Current Issue" label (absent on the issue archive view) */
.issue__header>.issue__meta:first-child:not(:last-child) {
  display: flex;
  align-items: center;
  gap: var(--wnjms-sp-3);
  margin: 0 0 var(--wnjms-sp-2);
  font-family: var(--wnjms-font-heading);
  font-size: var(--wnjms-fs-sm);
  font-weight: 700;
  color: var(--wnjms-brown-mid);
}

.issue__header>.issue__meta:first-child:not(:last-child)::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--wnjms-green);
  border-radius: 2px;
}

.issue__title {
  margin: 0 0 var(--wnjms-sp-4);
  font-size: var(--wnjms-fs-2xl);
  font-weight: 800;
  line-height: 1.15;
  color: var(--wnjms-brown);
}

.issue__localized_name {
  display: block;
  margin-top: var(--wnjms-sp-2);
  font-size: var(--wnjms-fs-lg);
  font-weight: 600;
  line-height: 1.3;
  color: var(--wnjms-brown-dark);
}

/* Published date pill */
.issue__header>.issue__meta:last-child {
  display: inline-block;
  margin: 0;
  padding: var(--wnjms-sp-1) var(--wnjms-sp-3);
  font-size: var(--wnjms-fs-xs);
  font-weight: 700;
  color: var(--wnjms-brown-mid);
  background: var(--wnjms-white);
  border: 1px solid var(--wnjms-sky);
  border-radius: 999px;
}

.issue-section__header {
  --bs-gutter-x: 0;
  align-items: center;
  gap: var(--wnjms-sp-4);
  margin: var(--wnjms-sp-6) 0 var(--wnjms-sp-4);
}

.issue-section__header .issue-section__title {
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 0 0 0 var(--wnjms-sp-3);
  font-size: var(--wnjms-fs-lg);
  font-weight: 700;
  color: var(--wnjms-brown-dark);
  border-left: 4px solid var(--wnjms-gold);
}

.issue-section__header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--wnjms-sky), transparent);
}

.issue-section__toc {
  display: grid;
  gap: var(--wnjms-sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.issue-section__toc-item {
  margin: 0;
  padding: 0;
}


/* ==========================================================================
   9. ARTICLE CARDS
   Markup: li > article.article > .row > (.col-md-4 figure.article__img)? + .col-md-8
   Articles without a cover use .offset-md-4, so their text stays aligned.
   ========================================================================== */

.issue-section__toc-item>.article {
  padding: var(--wnjms-sp-5);
  background: var(--wnjms-white);
  border: 1px solid var(--wnjms-border);
  border-radius: var(--wnjms-radius);
  box-shadow: var(--wnjms-shadow-sm);
  transition: border-color var(--wnjms-ease), box-shadow var(--wnjms-ease), transform var(--wnjms-ease);
}

.issue-section__toc-item>.article:hover,
.issue-section__toc-item>.article:focus-within {
  border-color: var(--wnjms-sky);
  box-shadow: inset 4px 0 0 var(--wnjms-gold), var(--wnjms-shadow-lg);
  transform: translateY(-2px);
}

.article__img {
  margin: 0;
}

.article__img img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--wnjms-radius-sm);
  box-shadow: var(--wnjms-shadow);
}

.article__meta {
  margin: 0 0 var(--wnjms-sp-2);
  font-size: var(--wnjms-fs-sm);
  font-weight: 500;
  line-height: 1.5;
  color: var(--wnjms-muted-text);
}

.article__title {
  margin: 0 0 var(--wnjms-sp-3);
  font-size: var(--wnjms-fs-lg);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.article__title a {
  color: var(--wnjms-brown-dark);
  text-decoration: none;
}

.article__title a:hover {
  color: var(--wnjms-brown);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.article__btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wnjms-sp-2);
  margin: 0 0 var(--wnjms-sp-3);
  padding: 0;
  list-style: none;
}

.article__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wnjms-sp-2);
  min-width: 104px;
  min-height: var(--wnjms-tap);
  padding: var(--wnjms-sp-2) var(--wnjms-sp-4);
  font-family: var(--wnjms-font-heading);
  font-size: var(--wnjms-fs-sm);
  font-weight: 700;
  color: var(--wnjms-white);
  text-decoration: none;
  background: var(--wnjms-brown);
  border: 1px solid var(--wnjms-brown);
  border-radius: var(--wnjms-radius-sm);
  transition: background-color var(--wnjms-ease), color var(--wnjms-ease), border-color var(--wnjms-ease);
}

.article__btn.pdf::before {
  content: "";
  width: 1.1em;
  height: 1.1em;
  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' stroke-linejoin='round'%3E%3Cpath d='M6 2h8l6 6v14H6z'/%3E%3Cpath d='M14 2v6h6'/%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' stroke-linejoin='round'%3E%3Cpath d='M6 2h8l6 6v14H6z'/%3E%3Cpath d='M14 2v6h6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.article__btn:hover,
.article__btn:active {
  background: var(--wnjms-gold);
  border-color: var(--wnjms-gold);
  color: var(--wnjms-brown-dark);
}

/* The abstract keeps the theme's own fade-out; only text styling changes */
.article__abstract-fadeout {
  font-size: var(--wnjms-fs-sm);
  color: var(--wnjms-text);
}

@media (max-width: 767.98px) {
  .article__img {
    max-width: 240px;
    margin-bottom: var(--wnjms-sp-4);
  }
}


/* ==========================================================================
   10. FOOTER
   Blocks render inside footer.main-footer > .sidebar_wrapper and are placed on a named grid.
   ========================================================================== */

.main-footer {
  margin: 0;
  padding: var(--wnjms-sp-7) 0 var(--wnjms-sp-5);
  background: var(--wnjms-brown-dark);
  background-image: radial-gradient(70% 90% at 100% 0%, rgba(148, 214, 218, 0.08), transparent 60%);
  border-top: 4px solid;
  border-image: var(--wnjms-accent-line) 1;
  color: var(--wnjms-footer-text);
}

.main-footer>.container {
  max-width: var(--wnjms-page-width);
}

.main-footer .sidebar_wrapper {
  --bs-gutter-x: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "submit"
    "info"
    "editorial"
    "announcements"
    "webfeed"
    "browse"
    "developed";
  gap: var(--wnjms-sp-6);
  margin: 0;
}

@media (min-width: 576px) {
  .main-footer .sidebar_wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "submit submit"
      "info editorial"
      "announcements webfeed"
      "browse developed";
  }
}

@media (min-width: 992px) {
  .main-footer .sidebar_wrapper {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "info editorial announcements submit"
      "webfeed browse developed developed";
    gap: var(--wnjms-sp-6) var(--wnjms-sp-7);
  }
}

/* Cancel Bootstrap's .col-md-3 / .row > * sizing inside the grid */
.main-footer .sidebar_wrapper>.pkp_block {
  width: auto;
  max-width: none;
  margin: 0;
  padding: 0;
}

.main-footer .block_information {
  grid-area: info;
}

.main-footer #customblock-editorial-board {
  grid-area: editorial;
}

.main-footer .block_announcements {
  grid-area: announcements;
}

.main-footer .block_make_submission {
  grid-area: submit;
}

.main-footer .block_web_feed {
  grid-area: webfeed;
}

.main-footer .block_browse {
  grid-area: browse;
}

.main-footer .block_developed_by {
  grid-area: developed;
}

/* Browse block is left out while no categories exist (it would show a heading and an empty label).
   Supported browsers only; elsewhere it simply stays visible. */
.main-footer .block_browse:not(:has(.has_submenu li)) {
  display: none;
}

.main-footer .pkp_block h2 {
  margin: 0 0 var(--wnjms-sp-3);
  padding-bottom: var(--wnjms-sp-2);
  font-size: var(--wnjms-fs-md);
  font-weight: 700;
  color: var(--wnjms-gold);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

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

.main-footer li {
  margin: 0 0 var(--wnjms-sp-2);
  line-height: 1.5;
}

.main-footer a:not(.btn) {
  color: #F1E8E2;
  text-decoration: none;
}

.main-footer a:not(.btn):hover {
  color: var(--wnjms-gold);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Information links as navigation rows */
.main-footer .block_information li {
  margin: 0;
}

.main-footer .block_information li a {
  display: block;
  padding: var(--wnjms-sp-2) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Editorial board: neutralise pasted inline sizes (inline height needs !important) */
#customblock-editorial-board table {
  width: 100%;
  height: auto !important;
  margin: 0 0 var(--wnjms-sp-3);
  border-collapse: separate;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--wnjms-radius-sm);
}

#customblock-editorial-board td {
  width: auto;
  padding: var(--wnjms-sp-3) var(--wnjms-sp-4);
  border-left: 3px solid var(--wnjms-gold);
}

#customblock-editorial-board td p {
  margin: 0;
  font-family: var(--wnjms-font-heading);
  font-weight: 600;
  color: var(--wnjms-white);
}

/* Feed icons on white tiles so the coloured icons stay visible */
.main-footer .block_web_feed ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wnjms-sp-2);
}

.main-footer .block_web_feed li {
  margin: 0;
}

.main-footer .block_web_feed a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: var(--wnjms-tap);
  min-height: var(--wnjms-tap);
  padding: var(--wnjms-sp-2);
  background: var(--wnjms-white);
  border-radius: var(--wnjms-radius-sm);
  transition: transform var(--wnjms-ease), box-shadow var(--wnjms-ease);
}

.main-footer .block_web_feed a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

.main-footer .block_web_feed img {
  display: block;
  width: auto;
  max-width: none;
  height: 24px;
}

/* Make a Submission: green panel with a white button.
   The extra .sidebar_wrapper in the selector lets this beat the grid reset above without !important. */
.main-footer .sidebar_wrapper>.block_make_submission {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--wnjms-sp-5);
  background: linear-gradient(135deg, var(--wnjms-green), #0F5C3E);
  border-radius: var(--wnjms-radius);
  box-shadow: var(--wnjms-shadow-lg);
}

.main-footer .block_make_submission .content {
  width: 100%;
  text-align: center;
}

.main-footer .block_make_submission .btn-primary {
  width: 100%;
  min-height: 52px;
  background: var(--wnjms-white);
  border: 2px solid var(--wnjms-white);
  color: var(--wnjms-brown-mid);
  font-size: var(--wnjms-fs-md);
}

.main-footer .block_make_submission .btn-primary:hover,
.main-footer .block_make_submission .btn-primary:active {
  background: var(--wnjms-gold);
  border-color: var(--wnjms-gold);
  color: var(--wnjms-brown-dark);
}

@media (min-width: 992px) {
  .main-footer .sidebar_wrapper>.block_make_submission {
    align-self: start;
  }
}

/* Browse: nested menu structure is left as the theme builds it */
.main-footer .block_browse ul ul {
  margin-top: var(--wnjms-sp-2);
  padding-left: var(--wnjms-sp-4);
}

/* The announcements block prints its own <style> after this file,
   so the id and extra class are needed to win. */
.main-footer .block_announcements #show-all {
  font-style: normal;
  font-weight: 600;
}

.main-footer .block_announcements .block_announcements_article:not(:last-child) {
  border-bottom-color: rgba(255, 255, 255, 0.2);
}

@media (min-width: 992px) {
  .main-footer .block_developed_by {
    align-self: end;
    text-align: right;
  }
}

/* Bottom bar: the OJS attribution stays visible and linked */
.main-footer .container>hr {
  margin: var(--wnjms-sp-6) 0 var(--wnjms-sp-4);
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  opacity: 1;
}

.main-footer .container>hr+.row {
  --bs-gutter-x: 0;
  justify-content: flex-end;
  margin: 0;
}

.main-footer .container>hr+.row>[role="complementary"] {
  flex: 0 0 auto;
  width: auto;
  margin-left: 0;
  padding: 0;
}

.main-footer .container>hr+.row img {
  display: block;
  width: auto;
  height: 44px;
  padding: var(--wnjms-sp-2) var(--wnjms-sp-3);
  background: var(--wnjms-white);
  border-radius: var(--wnjms-radius-sm);
}

@media (max-width: 575.98px) {
  .main-footer .container>hr+.row {
    justify-content: flex-start;
  }
}


/* ==========================================================================
   11. INNER PAGE SHELL (Information, Ethics, Archives, any main.main__content page)
   Markup: main.container.main__content > header.main__header > h1.main__title
           and .content-body for plain text pages.
   ========================================================================== */

.main__content.container {
  max-width: var(--wnjms-page-width);
  padding-top: var(--wnjms-sp-6);
  padding-bottom: var(--wnjms-sp-7);
}

.main__header {
  margin-bottom: var(--wnjms-sp-5);
}

.main__header::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: var(--wnjms-sp-3);
  background: var(--wnjms-accent-line);
  border-radius: 2px;
}

.main__title {
  margin: 0;
  font-size: var(--wnjms-fs-2xl);
  font-weight: 800;
  line-height: 1.15;
  color: var(--wnjms-brown-dark);
}

.content-body {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--wnjms-white);
  border: 1px solid var(--wnjms-border);
  border-radius: var(--wnjms-radius);
  box-shadow: var(--wnjms-shadow-sm);
}

.content-body p {
  max-width: 70ch;
}

.content-body> :last-child {
  margin-bottom: 0;
}

.content-body h2,
.content-body h3 {
  margin-top: var(--wnjms-sp-5);
  color: var(--wnjms-brown-dark);
}

.content-body ul,
.content-body ol {
  max-width: 70ch;
}


/* ==========================================================================
   12. ARCHIVES (body.page_issue.op_archive)
   Each issue is an equal-height card, with or without a cover image.
   ========================================================================== */

.op_archive .main__content>.row {
  --bs-gutter-x: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: var(--wnjms-sp-5);
  margin: 0;
}

.op_archive .main__content>.row>.archived-issue {
  display: flex;
  flex-direction: column;
  gap: var(--wnjms-sp-2);
  width: auto;
  max-width: none;
  margin: 0;
  padding: var(--wnjms-sp-4);
  background: var(--wnjms-white);
  border: 1px solid var(--wnjms-border);
  border-radius: var(--wnjms-radius);
  box-shadow: var(--wnjms-shadow-sm);
  transition: border-color var(--wnjms-ease), box-shadow var(--wnjms-ease), transform var(--wnjms-ease);
}

.op_archive .main__content>.row>.archived-issue:hover,
.op_archive .main__content>.row>.archived-issue:focus-within {
  border-color: var(--wnjms-sky);
  box-shadow: var(--wnjms-shadow-lg);
  transform: translateY(-2px);
}

.op_archive .main__content>.row>.issue__pagination {
  grid-column: 1 / -1;
  width: auto;
  max-width: none;
  padding: 0;
}

.archived-issue .img-wrapper {
  display: block;
}

.archived-issue img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: var(--wnjms-shadow);
}

.archived-issue .issue-summary__link {
  text-decoration: none;
}

.archived-issue__title {
  margin: var(--wnjms-sp-2) 0 0;
  font-size: var(--wnjms-fs-sm);
  font-weight: 700;
  line-height: 1.4;
  color: var(--wnjms-brown-dark);
}

.archived-issue .issue-summary__link:hover .archived-issue__title {
  color: var(--wnjms-brown);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.archived-issue .series {
  font-size: var(--wnjms-fs-sm);
  font-weight: 700;
  color: var(--wnjms-brown);
}

.archived-issue p {
  margin: 0;
}


/* ==========================================================================
   13. LOGIN AND REGISTRATION FORMS (form.cmp_form)
   Fieldsets become clean cards; the modal login form is styled in section 6.
   ========================================================================== */

.cmp_form fieldset {
  margin: 0 0 var(--wnjms-sp-5);
  padding: var(--wnjms-sp-5);
  background: var(--wnjms-white);
  border: 1px solid var(--wnjms-border);
  border-radius: var(--wnjms-radius);
  box-shadow: var(--wnjms-shadow-sm);
}

.cmp_form legend {
  float: none;
  width: auto;
  margin: 0 0 var(--wnjms-sp-4);
  padding: 0 0 0 var(--wnjms-sp-3);
  font-family: var(--wnjms-font-heading);
  font-size: var(--wnjms-fs-lg);
  font-weight: 700;
  color: var(--wnjms-brown-dark);
  border-left: 4px solid var(--wnjms-gold);
}

.cmp_form .form-group {
  margin-bottom: var(--wnjms-sp-4);
}

.cmp_form .form-group:last-child {
  margin-bottom: 0;
}

.cmp_form a:not(.btn) {
  color: var(--wnjms-brown);
  font-weight: 600;
}

.cmp_form a:not(.btn):hover {
  color: var(--wnjms-brown-mid);
}

.cmp_form .reviewer_interests {
  margin-top: var(--wnjms-sp-3);
}


/* ==========================================================================
   14. ETHICS PAGE AND ETHICS-STYLE PAGES (body.page_Ethis, or any page with div.wnjms-ethics-page)
   Carries its own wnjms-ethics-* markup inside OJS's narrow content column,
   so the column is widened here. The theme's own page heading repeats the
   hero h1, so it is hidden visually but kept for screen readers.
   (Selector matches the page URL as spelled in OJS: "Ethis".)
   ========================================================================== */

.page_Ethis .main__content>.row>[class*="col-"] {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
}

.page_Ethis .main__content .main__header {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.wnjms-ethics-container {
  width: 100%;
  margin: 0 auto;
}

/* Hero */
.wnjms-ethics-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  background: var(--wnjms-brown-dark);
  border-bottom: 4px solid var(--wnjms-gold);
  border-radius: var(--wnjms-radius-lg);
  color: #F1E8E2;
}

.wnjms-ethics-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(55% 120% at 100% 0%, rgba(148, 214, 218, 0.2), transparent 60%),
    linear-gradient(120deg, rgba(120, 57, 43, 0.7), rgba(120, 57, 43, 0) 65%);
  pointer-events: none;
}

.wnjms-ethics-hero-content {
  position: relative;
}

.wnjms-ethics-eyebrow {
  margin-bottom: var(--wnjms-sp-3);
  font-family: var(--wnjms-font-heading);
  font-size: var(--wnjms-fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--wnjms-gold);
}

.wnjms-ethics-hero h1 {
  margin: 0 0 var(--wnjms-sp-2);
  font-size: var(--wnjms-fs-2xl);
  font-weight: 800;
  line-height: 1.15;
  color: var(--wnjms-white);
}

.wnjms-ethics-hero p {
  margin: 0;
  font-size: var(--wnjms-fs-lg);
  color: #F1E8E2;
}

/* Layout: content and sidebar */
.wnjms-ethics-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--wnjms-sp-6);
  margin-top: var(--wnjms-sp-6);
}

@media (min-width: 992px) {
  .wnjms-ethics-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    align-items: start;
  }
}

.wnjms-ethics-main {
  display: grid;
  gap: var(--wnjms-sp-5);
  margin: 0;
  padding: 0;
  background: none;
}

/* Cards */
.wnjms-ethics-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--wnjms-white);
  border: 1px solid var(--wnjms-border);
  border-radius: var(--wnjms-radius);
  box-shadow: var(--wnjms-shadow-sm);
  scroll-margin-top: var(--wnjms-sp-5);
}

.wnjms-ethics-card p {
  max-width: 72ch;
  margin: 0 0 var(--wnjms-sp-3);
}

.wnjms-ethics-card p:last-child {
  margin-bottom: 0;
}

.wnjms-ethics-section-heading {
  display: flex;
  align-items: center;
  gap: var(--wnjms-sp-4);
  margin-bottom: var(--wnjms-sp-4);
}

.wnjms-ethics-section-number {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  font-family: var(--wnjms-font-heading);
  font-weight: 800;
  color: var(--wnjms-white);
  background: var(--wnjms-brown);
  border-radius: 50%;
}

.wnjms-ethics-kicker {
  display: block;
  margin-bottom: 2px;
  font-size: var(--wnjms-fs-xs);
  font-weight: 700;
  color: var(--wnjms-muted-text);
}

.wnjms-ethics-section-heading h2 {
  margin: 0;
  font-size: var(--wnjms-fs-xl);
  font-weight: 800;
  color: var(--wnjms-brown-dark);
}

.wnjms-ethics-list {
  display: grid;
  gap: var(--wnjms-sp-3);
  margin: var(--wnjms-sp-4) 0 0;
  padding: 0;
  list-style: none;
}

.wnjms-ethics-list li {
  position: relative;
  max-width: 72ch;
  margin: 0;
  padding-left: 1.5rem;
}

.wnjms-ethics-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--wnjms-green);
  border-radius: 50%;
}

.wnjms-ethics-highlight {
  display: flex;
  gap: var(--wnjms-sp-3);
  margin-top: var(--wnjms-sp-4);
  padding: var(--wnjms-sp-4);
  background: var(--wnjms-sky-tint);
  border-left: 4px solid var(--wnjms-green);
  border-radius: var(--wnjms-radius-sm);
}

.wnjms-ethics-highlight p {
  margin: var(--wnjms-sp-1) 0 0;
}

.wnjms-ethics-highlight-icon,
.wnjms-ethics-closing-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-weight: 700;
  color: var(--wnjms-white);
  background: var(--wnjms-green);
  border-radius: 50%;
}

.wnjms-ethics-note {
  margin-top: var(--wnjms-sp-4);
  padding: var(--wnjms-sp-3) var(--wnjms-sp-4);
  background: var(--wnjms-background);
  border-left: 4px solid var(--wnjms-brown);
  border-radius: var(--wnjms-radius-sm);
}

.wnjms-ethics-note strong {
  display: block;
  font-family: var(--wnjms-font-heading);
  color: var(--wnjms-brown-dark);
}

.wnjms-ethics-note-gold {
  background: rgba(249, 213, 29, 0.14);
  border-left-color: var(--wnjms-gold);
}

.wnjms-ethics-closing {
  display: flex;
  gap: var(--wnjms-sp-4);
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--wnjms-brown-dark);
  border-bottom: 4px solid var(--wnjms-gold);
  border-radius: var(--wnjms-radius);
  color: #F1E8E2;
}

.wnjms-ethics-closing .wnjms-ethics-closing-icon {
  width: 44px;
  height: 44px;
  color: var(--wnjms-brown-dark);
  background: var(--wnjms-gold);
}

.wnjms-ethics-closing h2 {
  margin: 0 0 var(--wnjms-sp-2);
  font-size: var(--wnjms-fs-lg);
  color: var(--wnjms-white);
}

.wnjms-ethics-closing p {
  max-width: 64ch;
  margin: 0;
}

/* Sidebar */
.wnjms-ethics-sidebar {
  display: grid;
  gap: var(--wnjms-sp-4);
}

.wnjms-ethics-sidebar-card {
  padding: var(--wnjms-sp-4) var(--wnjms-sp-5);
  background: var(--wnjms-white);
  border: 1px solid var(--wnjms-border);
  border-radius: var(--wnjms-radius);
  box-shadow: var(--wnjms-shadow-sm);
}

.wnjms-ethics-sidebar-heading {
  display: flex;
  align-items: center;
  gap: var(--wnjms-sp-2);
  margin-bottom: var(--wnjms-sp-3);
  padding-bottom: var(--wnjms-sp-2);
  border-bottom: 1px solid var(--wnjms-border);
}

.wnjms-ethics-sidebar-heading h2 {
  margin: 0;
  font-size: var(--wnjms-fs-md);
  font-weight: 700;
  color: var(--wnjms-brown-dark);
}

.wnjms-ethics-sidebar-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  font-size: var(--wnjms-fs-xs);
  font-weight: 700;
  color: var(--wnjms-brown-mid);
  background: var(--wnjms-sky-tint);
  border-radius: 50%;
}

.wnjms-ethics-sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.wnjms-ethics-sidebar li {
  margin: 0;
}

.wnjms-ethics-sidebar nav a {
  display: flex;
  align-items: center;
  min-height: var(--wnjms-tap);
  padding: var(--wnjms-sp-2) var(--wnjms-sp-3);
  font-weight: 500;
  color: var(--wnjms-brown-dark);
  text-decoration: none;
  border-left: 3px solid transparent;
  border-radius: 6px;
}

.wnjms-ethics-sidebar nav a:hover {
  color: var(--wnjms-brown);
  background: var(--wnjms-sky-tint);
  border-left-color: var(--wnjms-brown);
}

.wnjms-ethics-sidebar .is-current>a,
.wnjms-ethics-sidebar nav a[aria-current] {
  font-weight: 700;
  color: var(--wnjms-brown);
  background: var(--wnjms-sky-tint);
  border-left-color: var(--wnjms-brown);
}

.wnjms-ethics-action-card {
  background: linear-gradient(135deg, var(--wnjms-green), #0F5C3E);
  border-color: var(--wnjms-green);
  color: var(--wnjms-white);
}

.wnjms-ethics-action-label,
.wnjms-ethics-current-label {
  display: block;
  margin-bottom: var(--wnjms-sp-2);
  font-family: var(--wnjms-font-heading);
  font-size: var(--wnjms-fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.wnjms-ethics-current-label {
  color: var(--wnjms-brown-mid);
}

.wnjms-ethics-action-card h2,
.wnjms-ethics-current-card h2 {
  margin: 0 0 var(--wnjms-sp-2);
  font-size: var(--wnjms-fs-lg);
}

.wnjms-ethics-action-card h2 {
  color: var(--wnjms-white);
}

.wnjms-ethics-action-card p,
.wnjms-ethics-current-card p {
  margin: 0 0 var(--wnjms-sp-4);
  font-size: var(--wnjms-fs-sm);
}

.wnjms-ethics-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--wnjms-sp-2);
  min-height: 48px;
  padding: var(--wnjms-sp-3) var(--wnjms-sp-5);
  font-family: var(--wnjms-font-heading);
  font-weight: 700;
  color: var(--wnjms-brown-mid);
  text-decoration: none;
  background: var(--wnjms-white);
  border-radius: var(--wnjms-radius-sm);
  transition: background-color var(--wnjms-ease), color var(--wnjms-ease);
}

.wnjms-ethics-button:hover,
.wnjms-ethics-button:active {
  color: var(--wnjms-brown-dark);
  background: var(--wnjms-gold);
}

.wnjms-ethics-action-card a:focus-visible {
  outline-color: var(--wnjms-white);
}

.wnjms-ethics-current-card {
  background: var(--wnjms-sky-tint);
  border-color: var(--wnjms-sky);
}

.wnjms-ethics-text-link {
  display: inline-flex;
  align-items: center;
  gap: var(--wnjms-sp-2);
  min-height: var(--wnjms-tap);
  font-weight: 700;
  color: var(--wnjms-brown);
}

.wnjms-ethics-text-link:hover {
  color: var(--wnjms-brown-dark);
}

@media (max-width: 575.98px) {
  .wnjms-ethics-section-heading {
    align-items: flex-start;
  }

  .wnjms-ethics-button {
    width: 100%;
  }
}


/* --------------------------------------------------------------------------
   14b. PAGES BUILT ON THE ETHICS MARKUP
   Copyright, Advisory Board, Author's Guideline, Contact Us, FAQ, Focus and
   Scope, For Authors, For Readers and For Librarians all use div.wnjms-ethics-page,
   so they get the same wide layout, hero and sidebar as the Ethics page.
   -------------------------------------------------------------------------- */

.main__content:has(.wnjms-ethics-page)>.row>[class*="col-"] {
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  margin-left: 0;
}

/* The theme's own page title repeats the hero h1: hidden visually, kept for screen readers */
.main__content:has(.wnjms-ethics-page) .main__header {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Links inside content cards (links inside paragraphs are already covered in section 2) */
.wnjms-ethics-card a:not(.wnjms-ethics-button) {
  color: var(--wnjms-brown);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.wnjms-ethics-card a:not(.wnjms-ethics-button):hover {
  color: var(--wnjms-brown-dark);
  text-decoration-thickness: 2px;
}

/* Sub-headings inside a card (FAQ questions, licence terms, reference types) */
.wnjms-ethics-card h3 {
  margin: var(--wnjms-sp-5) 0 var(--wnjms-sp-3);
  padding-bottom: var(--wnjms-sp-2);
  font-family: var(--wnjms-font-heading);
  font-size: var(--wnjms-fs-md);
  font-weight: 700;
  line-height: 1.4;
  color: var(--wnjms-brown-dark);
  border-bottom: 1px solid var(--wnjms-sky);
}

.wnjms-ethics-card h3:first-child {
  margin-top: 0;
}

.wnjms-ethics-badge {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  font-family: var(--wnjms-font-heading);
  font-size: var(--wnjms-fs-xs);
  font-weight: 700;
  color: var(--wnjms-brown-mid);
  background: var(--wnjms-sky-tint);
  border-radius: 999px;
}

/* Numbered list */
.wnjms-ethics-list-ordered {
  counter-reset: wnjms-item;
}

.wnjms-ethics-list-ordered li {
  padding-left: 2.25rem;
  counter-increment: wnjms-item;
}

.wnjms-ethics-list-ordered li::before {
  content: counter(wnjms-item);
  top: 0.1em;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  font-family: var(--wnjms-font-heading);
  font-size: var(--wnjms-fs-xs);
  font-weight: 700;
  color: var(--wnjms-white);
  background: var(--wnjms-brown);
}

/* Advisory Board members */
.wnjms-ethics-people {
  display: grid;
  gap: var(--wnjms-sp-3);
  margin: var(--wnjms-sp-4) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: wnjms-member;
}

.wnjms-ethics-people li {
  position: relative;
  margin: 0;
  padding: var(--wnjms-sp-4) var(--wnjms-sp-4) var(--wnjms-sp-4) 4rem;
  line-height: 1.55;
  background: var(--wnjms-background);
  border: 1px solid var(--wnjms-border);
  border-radius: var(--wnjms-radius-sm);
  counter-increment: wnjms-member;
  overflow-wrap: break-word;
}

.wnjms-ethics-people li::before {
  content: counter(wnjms-member);
  position: absolute;
  top: var(--wnjms-sp-4);
  left: var(--wnjms-sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  font-family: var(--wnjms-font-heading);
  font-size: var(--wnjms-fs-sm);
  font-weight: 700;
  color: var(--wnjms-white);
  background: var(--wnjms-brown);
  border-radius: 50%;
}

.wnjms-ethics-people strong {
  font-family: var(--wnjms-font-heading);
  color: var(--wnjms-brown-dark);
}

/* Contact details */
.wnjms-ethics-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--wnjms-sp-4);
  margin-top: var(--wnjms-sp-4);
}

.wnjms-ethics-contact-item {
  padding: var(--wnjms-sp-4);
  background: var(--wnjms-background);
  border: 1px solid var(--wnjms-border);
  border-top: 3px solid var(--wnjms-brown);
  border-radius: var(--wnjms-radius-sm);
  overflow-wrap: anywhere;
}

.wnjms-ethics-contact-item h3 {
  margin: 0 0 var(--wnjms-sp-2);
  padding: 0;
  border: 0;
}

.wnjms-ethics-contact-item p {
  margin: 0;
}

/* Buttons inside content cards */
.wnjms-ethics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--wnjms-sp-3);
  margin-top: var(--wnjms-sp-4);
}

.wnjms-ethics-card .wnjms-ethics-button-primary {
  color: var(--wnjms-white);
  background: var(--wnjms-brown);
  border: 1px solid var(--wnjms-brown);
}

.wnjms-ethics-card .wnjms-ethics-button-primary:hover,
.wnjms-ethics-card .wnjms-ethics-button-primary:active {
  color: var(--wnjms-white);
  background: var(--wnjms-brown-mid);
  border-color: var(--wnjms-brown-mid);
  box-shadow: var(--wnjms-shadow);
}

.wnjms-ethics-card .wnjms-ethics-button-outline {
  color: var(--wnjms-brown-mid);
  background: var(--wnjms-white);
  border: 1px solid var(--wnjms-brown);
}

.wnjms-ethics-card .wnjms-ethics-button-outline:hover,
.wnjms-ethics-card .wnjms-ethics-button-outline:active {
  color: var(--wnjms-brown-dark);
  background: var(--wnjms-sky-tint);
}

@media (max-width: 575.98px) {
  .wnjms-ethics-actions .wnjms-ethics-button {
    width: 100%;
  }
}


/* ==========================================================================
   15. RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 767.98px) {

  .journal-description,
  .issue {
    padding-top: var(--wnjms-sp-6);
  }

  .issue-section__toc-item>.article {
    padding: var(--wnjms-sp-4);
  }

  .main-footer {
    padding-top: var(--wnjms-sp-6);
  }
}

@media (max-width: 575.98px) {
  :root {
    --wnjms-header-height: 230px;
    /* leaves room for both strips plus a visible banner */
  }

  .article__btn {
    width: 100%;
  }

  .cmp_form fieldset {
    padding: var(--wnjms-sp-4);
  }
}

@media (max-width: 375px) {
  .main-header__admin-link {
    padding-right: var(--wnjms-sp-3);
    padding-left: var(--wnjms-sp-3);
  }
}


/* ==========================================================================
   16. PRINT
   Clean output for article and policy pages.
   ========================================================================== */

@media print {

  .main-header__admin,
  .main-header__nav,
  .main-footer .block_make_submission,
  .main-footer .block_web_feed,
  .article__btn-group {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  .main-header {
    min-height: 0;
    border-bottom: 1px solid #000;
    border-image: none;
  }

  .content-body,
  .wnjms-ethics-card,
  .issue-section__toc-item>.article {
    border-color: #999;
    box-shadow: none;
  }

  main p a:not(.btn)[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }
}

/* ==========================================================================
   Editorial Board additions. New wnjms-eb-* classes only: no wnjms-immersion
   class is redefined. Colours, type, spacing and radii come from its tokens.
   ========================================================================== */
  .wnjms-eb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: var(--wnjms-sp-4);
    margin: var(--wnjms-sp-5) 0 0;
    padding: 0;
    list-style: none
  }

  .wnjms-eb-grid-lead {
    grid-template-columns: repeat(auto-fit, minmax(190px, 230px));
    justify-content: center
  }

  .wnjms-eb-card {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    background: var(--wnjms-white);
    border: 1px solid var(--wnjms-border);
    border-radius: var(--wnjms-radius);
    box-shadow: var(--wnjms-shadow-sm);
    transition: border-color var(--wnjms-ease), box-shadow var(--wnjms-ease), transform var(--wnjms-ease)
  }

  .wnjms-eb-card:hover,
  .wnjms-eb-card:focus-within {
    border-color: var(--wnjms-sky);
    box-shadow: inset 4px 0 0 var(--wnjms-gold), var(--wnjms-shadow-lg);
    transform: translateY(-2px)
  }

  .wnjms-eb-card-lead {
    border-bottom: 4px solid var(--wnjms-gold)
  }

  .wnjms-eb-photo {
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--wnjms-sky-tint)
  }

  .wnjms-eb-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%
  }

  .wnjms-eb-ph {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, var(--wnjms-sky-tint), var(--wnjms-border))
  }

  .wnjms-eb-ph svg {
    width: 46%;
    fill: var(--wnjms-brown);
    opacity: .28
  }

  .wnjms-eb-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    gap: var(--wnjms-sp-1);
    padding: var(--wnjms-sp-4);
    text-align: center
  }

  .wnjms-eb-name {
    margin: 0;
    font-size: var(--wnjms-fs-md);
    font-weight: 700;
    line-height: 1.35;
    color: var(--wnjms-brown-dark);
    overflow-wrap: break-word
  }

  .wnjms-eb-role {
    margin: 0;
    font-family: var(--wnjms-font-heading);
    font-size: var(--wnjms-fs-xs);
    font-weight: 700;
    color: var(--wnjms-green)
  }

  .wnjms-eb-bio-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    margin-top: auto;
    align-self: stretch;
    min-height: var(--wnjms-tap);
    padding: var(--wnjms-sp-2) var(--wnjms-sp-4);
    font-family: var(--wnjms-font-heading);
    font-size: var(--wnjms-fs-sm);
    font-weight: 700;
    color: var(--wnjms-brown-mid);
    background: var(--wnjms-white);
    border: 1px solid var(--wnjms-brown);
    border-radius: var(--wnjms-radius-sm);
    transition: background-color var(--wnjms-ease), color var(--wnjms-ease)
  }

  .wnjms-eb-body h3+.wnjms-eb-bio-btn,
  .wnjms-eb-role+.wnjms-eb-bio-btn {
    margin-top: var(--wnjms-sp-3)
  }

  .wnjms-ethics-card li a.wnjms-eb-bio-btn {
    color: var(--wnjms-brown-mid);
    text-decoration: none
  }

  .wnjms-ethics-card li a.wnjms-eb-bio-btn:hover,
  .wnjms-ethics-card li a.wnjms-eb-bio-btn:active {
    background: var(--wnjms-brown);
    color: var(--wnjms-white);
    text-decoration: none
  }

  .wnjms-eb-intro {
    max-width: 72ch;
    margin: 0
  }

  /* Modal: CSS only (:target), so it works where OJS removes scripts */
  .wnjms-eb-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: var(--wnjms-sp-4)
  }

  .wnjms-eb-modal:target {
    display: flex
  }

  .wnjms-eb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(59, 34, 25, .62)
  }

  .wnjms-eb-dialog {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(720px, 100%);
    max-height: min(86vh, 86dvh);
    overflow: hidden;
    color: var(--wnjms-text);
    background: var(--wnjms-white);
    border: 1px solid var(--wnjms-border);
    border-radius: var(--wnjms-radius-lg);
    box-shadow: 0 20px 50px rgba(59, 34, 25, .25)
  }

  .wnjms-eb-dialog-head {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--wnjms-sp-4);
    padding: var(--wnjms-sp-4) calc(var(--wnjms-tap) + var(--wnjms-sp-4)) var(--wnjms-sp-4) var(--wnjms-sp-5);
    color: #F1E8E2;
    background: var(--wnjms-brown-dark);
    border-bottom: 4px solid var(--wnjms-gold)
  }

  .wnjms-eb-thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    overflow: hidden;
    border: 3px solid var(--wnjms-gold);
    border-radius: 50%;
    background: var(--wnjms-sky-tint)
  }

  .wnjms-eb-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%
  }

  .wnjms-eb-dialog-title {
    margin: 0;
    font-size: var(--wnjms-fs-lg);
    font-weight: 800;
    line-height: 1.25;
    color: var(--wnjms-white)
  }

  .wnjms-eb-dialog-role {
    margin: var(--wnjms-sp-1) 0 0;
    font-family: var(--wnjms-font-heading);
    font-size: var(--wnjms-fs-xs);
    font-weight: 700;
    color: var(--wnjms-gold)
  }

  .wnjms-eb-close {
    position: absolute;
    top: var(--wnjms-sp-2);
    right: var(--wnjms-sp-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--wnjms-tap);
    height: var(--wnjms-tap);
    font-size: 1.5rem;
    line-height: 1;
    color: var(--wnjms-white);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: var(--wnjms-radius-sm);
    transition: background-color var(--wnjms-ease), color var(--wnjms-ease)
  }

  .wnjms-eb-close:hover {
    color: var(--wnjms-brown-dark);
    background: var(--wnjms-gold);
    border-color: var(--wnjms-gold)
  }

  .wnjms-eb-dialog-body {
    flex: 1 1 auto;
    padding: var(--wnjms-sp-5);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch
  }

  .wnjms-eb-bio-text p {
    max-width: 68ch;
    margin: 0 0 var(--wnjms-sp-3)
  }

  .wnjms-eb-bio-text p:last-child {
    margin-bottom: 0
  }

  .wnjms-eb-dialog-foot {
    display: flex;
    justify-content: flex-end;
    padding: var(--wnjms-sp-3) var(--wnjms-sp-5);
    background: var(--wnjms-background);
    border-top: 1px solid var(--wnjms-border)
  }

  .wnjms-eb-close-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--wnjms-tap);
    padding: var(--wnjms-sp-2) var(--wnjms-sp-5);
    font-family: var(--wnjms-font-heading);
    font-weight: 700;
    color: var(--wnjms-white);
    text-decoration: none;
    background: var(--wnjms-brown);
    border: 1px solid var(--wnjms-brown);
    border-radius: var(--wnjms-radius-sm);
    transition: background-color var(--wnjms-ease)
  }

  .wnjms-eb-close-btn:hover {
    color: var(--wnjms-white);
    background: var(--wnjms-brown-mid)
  }

  .wnjms-eb-modal a:focus-visible {
    outline-color: var(--wnjms-gold)
  }

  .wnjms-eb-close-btn:focus-visible {
    outline-color: var(--wnjms-brown)
  }

  @media (min-width:576px) {
    .wnjms-eb-modal:target .wnjms-eb-dialog {
      animation: wnjms-eb-pop .18s ease-out
    }
  }

  @keyframes wnjms-eb-pop {
    from {
      opacity: 0;
      transform: translateY(8px)
    }

    to {
      opacity: 1;
      transform: none
    }
  }

  body:has(.wnjms-eb-modal:target) {
    overflow: hidden
  }

  /* Phones: two-up cards, modal becomes a bottom sheet */
  @media (max-width:575.98px) {

    .wnjms-eb-grid,
    .wnjms-eb-grid-lead {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: var(--wnjms-sp-3)
    }

    .wnjms-eb-body {
      padding: var(--wnjms-sp-3)
    }

    .wnjms-eb-name {
      font-size: var(--wnjms-fs-sm)
    }

    .wnjms-eb-bio-btn {
      font-size: var(--wnjms-fs-xs)
    }

    .wnjms-eb-modal {
      align-items: flex-end;
      padding: 0
    }

    .wnjms-eb-dialog {
      width: 100%;
      max-height: 92vh;
      max-height: 92dvh;
      border-radius: var(--wnjms-radius-lg) var(--wnjms-radius-lg) 0 0
    }

    .wnjms-eb-modal:target .wnjms-eb-dialog {
      animation: wnjms-eb-sheet .22s ease-out
    }

    .wnjms-eb-dialog-head {
      gap: var(--wnjms-sp-3);
      padding-left: var(--wnjms-sp-4)
    }

    .wnjms-eb-thumb {
      width: 56px;
      height: 56px
    }

    .wnjms-eb-dialog-title {
      font-size: var(--wnjms-fs-md)
    }

    .wnjms-eb-dialog-body {
      padding: var(--wnjms-sp-4)
    }

    .wnjms-eb-dialog-foot {
      padding: var(--wnjms-sp-3) var(--wnjms-sp-4) max(var(--wnjms-sp-3), env(safe-area-inset-bottom))
    }

    .wnjms-eb-close-btn {
      width: 100%
    }
  }

  @keyframes wnjms-eb-sheet {
    from {
      transform: translateY(100%)
    }

    to {
      transform: none
    }
  }

  @media (max-width:359px) {

    .wnjms-eb-grid,
    .wnjms-eb-grid-lead {
      grid-template-columns: minmax(0, 1fr)
    }
  }

  @media print {

    .wnjms-eb-bio-btn,
    .wnjms-eb-modal {
      display: none !important
    }
  }

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