@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/*!
 * SLJM Premium Design System, Immersion edition
 * Sierra Leone Journal of Medicine
 *
 * Target : OJS 3.5.0.6, Immersion theme + smwImmersion child theme
 *          (Bootstrap 5 markup: .main-header, .main-header__nav, .article ...).
 * Install: use as the ONLY custom journal stylesheet (replaces v1 / v2 copies).
 *          Keep the @import above as the first line.
 *
 * Quick controls (section 1):
 *   --sljm-header-height     banner height (raise it if the banner is cropped)
 *   --sljm-overlay-top       darkness behind the Register / Login strip
 *   --sljm-overlay-bottom    darkness behind the main menu
 *   colour tokens            change the palette in one place
 *
 * Pages covered: Home, Issue view, Archives, Submissions, Register, Login,
 * login modal, header, menu and footer. Generic rules cover other pages.
 *
 * Contents
 *   1  Design tokens          9  Article cards
 *   2  Base                  10  Archives
 *   3  Accessibility         11  Footer
 *   4  Header and banner     12  Inner page shell
 *   5  Main menu             13  Submissions page
 *   6  Buttons and forms     14  Login + registration forms
 *   7  Announcements         15  Responsive (mobile first fixes)
 *   8  Current issue         16  Print
 */


/* ==========================================================================
   1. DESIGN TOKENS
   The palette could not be sampled from the logo (not supplied).
   ========================================================================== */
:root {
	--sljm-navy-900: #0a2540;
	--sljm-navy-800: #0f3558;
	--sljm-navy-700: #164a76;
	--sljm-teal-700: #0a6670;
	--sljm-teal-600: #0e7c86;
	--sljm-teal-500: #17979f;
	--sljm-teal-300: #7fd0d5;
	--sljm-teal-100: #dff1f2;
	--sljm-teal-50:  #f0f8f9;
	--sljm-green:    #1b9b4a;
	--sljm-gold:     #f2c94c;

	--sljm-ink:      #1c2b39;
	--sljm-muted:    #54646f;
	--sljm-line:     #d8e2e8;
	--sljm-bg:       #f5f8fa;
	--sljm-surface:  #ffffff;
	--sljm-danger:   #b42318;

	--sljm-accent-line: linear-gradient(90deg, var(--sljm-green), var(--sljm-teal-500) 50%, var(--sljm-navy-700));

	--sljm-font-head: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
	--sljm-font-body: 'DM Sans', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;

	--sljm-fs-xs:  0.8125rem;
	--sljm-fs-sm:  0.9375rem;
	--sljm-fs-base:1rem;
	--sljm-fs-md:  1.0625rem;
	--sljm-fs-lg:  1.25rem;
	--sljm-fs-xl:  clamp(1.375rem, 1.15rem + 1vw, 1.75rem);
	--sljm-fs-2xl: clamp(1.75rem, 1.3rem + 2vw, 2.625rem);

	--sljm-s1: 0.25rem;
	--sljm-s2: 0.5rem;
	--sljm-s3: 0.75rem;
	--sljm-s4: 1rem;
	--sljm-s5: 1.5rem;
	--sljm-s6: 2rem;
	--sljm-s7: 3rem;

	--sljm-radius-sm: 8px;
	--sljm-radius:    12px;
	--sljm-radius-lg: 16px;
	--sljm-shadow-sm: 0 1px 2px rgba(10, 37, 64, 0.06);
	--sljm-shadow:    0 6px 18px rgba(10, 37, 64, 0.09);
	--sljm-shadow-lg: 0 14px 34px rgba(10, 37, 64, 0.16);
	--sljm-ease: 0.18s ease;

	--sljm-tap: 44px;
	--sljm-page-width: 1240px;

	/* Header: banner shows between the account strip and the menu strip */
	--sljm-header-height: clamp(250px, 28vw, 420px);
	--sljm-overlay-top: 0.62;
	--sljm-overlay-bottom: 0.84;
	--sljm-nav-text: #ffffff;
	--sljm-nav-accent: var(--sljm-gold);
	--sljm-nav-shadow: 0 1px 3px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.45);
}


/* ==========================================================================
   2. BASE
   ========================================================================== */
html { scroll-behavior: smooth; }

body {
	font-family: var(--sljm-font-body);
	font-size: var(--sljm-fs-base);
	line-height: 1.65;
	color: var(--sljm-ink);
	background-color: var(--sljm-bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	-webkit-text-size-adjust: 100%;
}

::selection { background: var(--sljm-teal-100); color: var(--sljm-navy-900); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--sljm-font-head);
	line-height: 1.25;
	letter-spacing: -0.01em;
}

main p a:not(.btn):not(.article__btn),
main li a:not(.btn):not(.article__btn):not(.nav-link) {
	color: var(--sljm-teal-700);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.2em;
}

main p a:not(.btn):not(.article__btn):hover,
main li a:not(.btn):not(.article__btn):not(.nav-link):hover {
	color: var(--sljm-navy-800);
	text-decoration-thickness: 2px;
}

main img { max-width: 100%; }

html, body { overflow-x: clip; }


/* ==========================================================================
   3. ACCESSIBILITY
   ========================================================================== */
.cmp_skip_to_content a.visually-hidden:focus {
	position: fixed !important;
	top: var(--sljm-s2);
	left: var(--sljm-s2);
	z-index: 2000;
	width: auto !important;
	height: auto !important;
	margin: 0 !important;
	padding: var(--sljm-s3) var(--sljm-s4) !important;
	overflow: visible !important;
	clip: auto !important;
	clip-path: none !important;
	white-space: normal !important;
	background: var(--sljm-navy-900);
	color: #ffffff;
	font-weight: 700;
	border-radius: var(--sljm-radius-sm);
	outline: 3px solid var(--sljm-gold);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
	outline: 3px solid var(--sljm-teal-600);
	outline-offset: 2px;
}

/* Gold ring on dark surfaces */
.main-header a:focus-visible,
.main-header button:focus-visible,
.announcements a:focus-visible,
.main-footer a:focus-visible,
.main-footer button:focus-visible {
	outline-color: var(--sljm-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 (kept).
   A soft navy gradient overlay (::before) keeps the account links and menu
   readable while the middle of the banner and its logo stay clear.
   ========================================================================== */
.main-header {
	position: relative;
	z-index: 1020;           /* dropdowns stay above page content */
	display: flex;
	min-height: var(--sljm-header-height);
	margin: 0;
	padding: 0;
	background-color: var(--sljm-navy-900);   /* only visible while the image loads */
	background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	border-bottom: 4px solid;
	border-image: var(--sljm-accent-line) 1;
}

.main-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: linear-gradient(
		180deg,
		rgba(10, 37, 64, var(--sljm-overlay-top)) 0%,
		rgba(10, 37, 64, 0) 32%,
		rgba(10, 37, 64, 0) 58%,
		rgba(10, 37, 64, var(--sljm-overlay-bottom)) 100%
	);
}

.main-header > .container-fluid {
	position: relative;
	z-index: 1;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	width: 100%;
	max-width: none;
	padding: 0;
}

/* Journal name (the banner carries the visual logo): hidden visually,
   still announced to screen readers, and visible when focused */
.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;
}

.main-header__title a:focus-visible > span {
	position: fixed;
	top: var(--sljm-s2);
	left: var(--sljm-s2);
	z-index: 2000;
	width: auto;
	height: auto;
	margin: 0;
	padding: var(--sljm-s2) var(--sljm-s3);
	clip: auto;
	clip-path: none;
	white-space: normal;
	font-family: var(--sljm-font-head);
	font-size: var(--sljm-fs-sm);
	line-height: 1.3;
	color: #ffffff;
	background: var(--sljm-navy-900);
	border-radius: var(--sljm-radius-sm);
	outline: 3px solid var(--sljm-gold);
}

/* Account strip (Register / Login) */
.main-header__admin {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	margin: 0;
	padding: var(--sljm-s3) max(var(--sljm-s4), calc((100% - var(--sljm-page-width)) / 2 + var(--sljm-s4)));
	background: transparent;
}

#navigationUser {
	display: flex;
	align-items: center;
	gap: var(--sljm-s2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-header__admin-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: var(--sljm-s1) var(--sljm-s4);
	font-family: var(--sljm-font-head);
	font-size: var(--sljm-fs-xs);
	font-weight: 700;
	color: #ffffff;
	text-decoration: none;
	text-shadow: var(--sljm-nav-shadow);
	border: 2px solid rgba(255, 255, 255, 0.75);
	border-radius: 999px;
	transition: background-color var(--sljm-ease), color var(--sljm-ease), border-color var(--sljm-ease);
}

/* Login is the last item on every page, including pages whose markup
   lacks the .nmi_type_user_login class (e.g. Register) */
#navigationUser li:last-child .main-header__admin-link {
	color: var(--sljm-navy-900);
	text-shadow: none;
	background: #ffffff;
	border-color: #ffffff;
}

.main-header__admin-link:hover,
.main-header__admin-link:focus {
	color: var(--sljm-navy-900);
	text-shadow: none;
	background: var(--sljm-gold);
	border-color: var(--sljm-gold);
}


/* ==========================================================================
   5. MAIN MENU
   Collapse and toggler are Bootstrap JS driven and are not replaced.
   The theme's menu stays pinned to the bottom of the banner.
   ========================================================================== */
.main-header__nav {
	margin: auto 0 0;
	padding: var(--sljm-s1) max(var(--sljm-s4), calc((100% - var(--sljm-page-width)) / 2 + var(--sljm-s4)));
	background: transparent;
}

.main-header__nav .navbar-collapse,
#navigationPrimary {
	background: transparent;
}

#navigationPrimary {
	flex-wrap: wrap;
	justify-content: center;
	gap: 2px;
	margin-top: 0;
	margin-bottom: 0;
	padding: 0;
}

.main-header__nav-link {
	display: block;
	padding: var(--sljm-s3) var(--sljm-s4);
	font-family: var(--sljm-font-head);
	font-size: var(--sljm-fs-sm);
	font-weight: 600;
	line-height: 1.3;
	color: var(--sljm-nav-text);
	text-shadow: var(--sljm-nav-shadow);
	text-decoration: none;
	background: transparent;
	border-bottom: 3px solid transparent;
	transition: color var(--sljm-ease), border-color var(--sljm-ease);
}

.main-header__nav-link:hover,
.main-header__nav-link:focus,
.main-header__nav-link.show {
	color: var(--sljm-nav-accent);
	border-bottom-color: var(--sljm-nav-accent);
	background: transparent;
}

.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(--sljm-nav-accent);
	border-bottom-color: var(--sljm-nav-accent);
}

/* Dropdown panels: white card with a teal top edge.
   Items are li.dropdown-item > a.nav-link, so the padding sits on the link. */
.main-header__nav .dropdown-menu {
	min-width: 15rem;
	margin-top: 0;
	padding: var(--sljm-s2) 0;
	background: #ffffff;
	border: 1px solid var(--sljm-line);
	border-top: 3px solid var(--sljm-teal-600);
	border-radius: 0 0 var(--sljm-radius) var(--sljm-radius);
	box-shadow: var(--sljm-shadow-lg);
}

.main-header__nav .dropdown-menu .dropdown-item {
	padding: 0;
	background: transparent;
	white-space: normal;
}

.main-header__nav .dropdown-menu .dropdown-item > .nav-link {
	display: block;
	padding: 0.6rem 1.15rem;
	font-size: var(--sljm-fs-sm);
	font-weight: 500;
	color: var(--sljm-ink);
	border-left: 3px solid transparent;
	transition: background-color var(--sljm-ease), color var(--sljm-ease), border-color var(--sljm-ease);
}

.main-header__nav .dropdown-menu .dropdown-item > .nav-link:hover,
.main-header__nav .dropdown-menu .dropdown-item > .nav-link:focus {
	color: var(--sljm-teal-700);
	background: var(--sljm-teal-50);
	border-left-color: var(--sljm-teal-600);
}

.main-header__nav .dropdown-menu a:focus-visible {
	outline-color: var(--sljm-teal-600);
}

/* Mobile toggler: white tile, readable over any banner */
.main-header__nav .navbar-toggler {
	min-width: var(--sljm-tap);
	min-height: var(--sljm-tap);
	margin-top: var(--sljm-s1);
	margin-bottom: var(--sljm-s1);
	background: #ffffff;
	border: 1px solid #ffffff;
	border-radius: var(--sljm-radius-sm);
}

.main-header__nav .hamburger__icon,
.main-header__nav .hamburger__icon::before,
.main-header__nav .hamburger__icon::after {
	background-color: var(--sljm-navy-900);
}


/* ==========================================================================
   6. BUTTONS AND FORM CONTROLS (scoped; Bootstrap core classes untouched)
   ========================================================================== */
:is(main, .main-footer, .modal-content) .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sljm-s2);
	min-height: var(--sljm-tap);
	padding: var(--sljm-s3) var(--sljm-s5);
	font-family: var(--sljm-font-head);
	font-size: var(--sljm-fs-sm);
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
	border-radius: var(--sljm-radius-sm);
	transition: background-color var(--sljm-ease), color var(--sljm-ease), border-color var(--sljm-ease), box-shadow var(--sljm-ease);
}

:is(main, .modal-content) .btn-primary {
	background: var(--sljm-teal-600);
	border: 1px solid var(--sljm-teal-600);
	color: #ffffff;
}

:is(main, .modal-content) .btn-primary:hover,
:is(main, .modal-content) .btn-primary:focus,
:is(main, .modal-content) .btn-primary:active {
	background: var(--sljm-navy-800);
	border-color: var(--sljm-navy-800);
	color: #ffffff;
	box-shadow: var(--sljm-shadow);
}

:is(main, .modal-content) .btn-secondary {
	background: #ffffff;
	border: 1px solid var(--sljm-navy-800);
	color: var(--sljm-navy-800);
}

:is(main, .modal-content) .btn-secondary:hover,
:is(main, .modal-content) .btn-secondary:focus {
	background: var(--sljm-teal-50);
	color: var(--sljm-navy-800);
}

.modal-content {
	border: 0;
	border-top: 4px solid var(--sljm-teal-600);
	border-radius: var(--sljm-radius-lg);
	box-shadow: 0 20px 50px rgba(10, 37, 64, 0.28);
}

#loginModal .modal-body { padding: var(--sljm-s6); }

#loginModal .btn-close {
	position: absolute;
	top: var(--sljm-s3);
	right: var(--sljm-s3);
	width: var(--sljm-tap);
	height: var(--sljm-tap);
	padding: 0;
}

:is(main, .modal-content) label {
	font-weight: 600;
	color: var(--sljm-navy-900);
}

:is(main, .modal-content) .required { color: var(--sljm-danger); }

:is(main, .modal-content) .form-control {
	min-height: var(--sljm-tap);
	padding: var(--sljm-s2) var(--sljm-s3);
	font-family: var(--sljm-font-body);
	font-size: var(--sljm-fs-base);
	color: var(--sljm-ink);
	background-color: #ffffff;
	border: 1px solid #9fb0bb;
	border-radius: var(--sljm-radius-sm);
}

:is(main, .modal-content) .form-control:focus {
	border-color: var(--sljm-teal-600);
	box-shadow: 0 0 0 3px rgba(23, 151, 159, 0.25);
}

:is(main, .modal-content) input[type="checkbox"],
:is(main, .modal-content) input[type="radio"] {
	accent-color: var(--sljm-teal-600);
}


/* ==========================================================================
   7. ANNOUNCEMENTS (homepage; section has an inline black background,
   so !important is needed on that one property)
   ========================================================================== */
.announcements {
	padding: var(--sljm-s6) 0;
	background-color: var(--sljm-navy-900) !important;
	background-image:
		radial-gradient(60% 120% at 100% 0%, rgba(23, 151, 159, 0.22), transparent 60%),
		radial-gradient(50% 100% at 0% 100%, rgba(22, 74, 118, 0.6), transparent 60%);
	border-bottom: 4px solid;
	border-image: var(--sljm-accent-line) 1;
	color: #e6eef5;
}

.announcements > .container > header h3 {
	margin: 0 0 var(--sljm-s4);
	padding-left: var(--sljm-s3);
	font-size: var(--sljm-fs-xl);
	font-weight: 800;
	color: #ffffff;
	border-left: 4px solid var(--sljm-gold);
}

.announcements .announcement-section__toc {
	--bs-gutter-x: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
	gap: var(--sljm-s4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.announcements .announcement-section__toc > li {
	width: auto;
	max-width: none;
	margin: 0;
	padding: var(--sljm-s5);
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.16);
	border-left: 4px solid var(--sljm-teal-500);
	border-radius: var(--sljm-radius);
}

.announcement__date {
	margin: 0 0 var(--sljm-s2);
	font-size: var(--sljm-fs-xs);
	font-weight: 700;
	color: var(--sljm-teal-300);
}

.announcement__title {
	margin: 0 0 var(--sljm-s3);
	font-size: var(--sljm-fs-md);
	font-weight: 700;
	line-height: 1.4;
}

.announcement__title a {
	color: #ffffff;
	text-decoration: none;
}

.announcement__title a:hover,
.announcement__title a:focus {
	color: var(--sljm-gold);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.announcements p:not(.announcement__date) {
	margin: 0;
	font-size: var(--sljm-fs-sm);
	color: #d3e0ea;
}

/* ISBN line under the issue */
.additional-home-content {
	padding-top: var(--sljm-s5);
	padding-bottom: var(--sljm-s5);
	text-align: center;
	font-size: var(--sljm-fs-sm);
	color: var(--sljm-muted);
}

.additional-home-content p { margin: 0 auto; }


/* ==========================================================================
   8. CURRENT ISSUE (home and issue view)
   ========================================================================== */
.issue {
	padding: var(--sljm-s7) 0 var(--sljm-s6);
	background: var(--sljm-bg);
}

.issue__header {
	margin: 0 0 var(--sljm-s5);
	padding: clamp(1.25rem, 3vw, 2rem);
	background: linear-gradient(135deg, #ffffff 62%, var(--sljm-teal-50));
	border: 1px solid var(--sljm-line);
	border-bottom: 4px solid var(--sljm-teal-600);
	border-radius: var(--sljm-radius-lg);
	box-shadow: var(--sljm-shadow);
}

/* "Current Issue" label (absent on the issue view page) */
.issue__header > .issue__meta:first-child:not(:last-child) {
	display: flex;
	align-items: center;
	gap: var(--sljm-s3);
	margin: 0 0 var(--sljm-s2);
	font-family: var(--sljm-font-head);
	font-size: var(--sljm-fs-sm);
	font-weight: 700;
	color: var(--sljm-teal-700);
}

.issue__header > .issue__meta:first-child:not(:last-child)::before {
	content: "";
	width: 28px;
	height: 3px;
	background: var(--sljm-green);
	border-radius: 2px;
}

.issue__title {
	margin: 0 0 var(--sljm-s4);
	font-size: var(--sljm-fs-2xl);
	font-weight: 800;
	line-height: 1.15;
	color: var(--sljm-navy-900);
}

.issue__localized_name {
	display: block;
	margin-top: var(--sljm-s2);
	font-size: var(--sljm-fs-lg);
	font-weight: 600;
	line-height: 1.3;
	color: var(--sljm-teal-700);
}

/* Published date pill */
.issue__header > .issue__meta:last-child {
	display: inline-block;
	margin: 0;
	padding: var(--sljm-s1) var(--sljm-s3);
	font-size: var(--sljm-fs-xs);
	font-weight: 700;
	color: var(--sljm-navy-800);
	background: #ffffff;
	border: 1px solid var(--sljm-teal-300);
	border-radius: 999px;
}

.issue-section__header {
	--bs-gutter-x: 0;
	align-items: center;
	gap: var(--sljm-s4);
	margin: var(--sljm-s6) 0 var(--sljm-s4);
}

.issue-section__header .issue-section__title {
	flex: 0 0 auto;
	width: auto;
	max-width: 100%;
	margin: 0;
	padding: 0 0 0 var(--sljm-s3);
	font-size: var(--sljm-fs-lg);
	font-weight: 700;
	color: var(--sljm-navy-900);
	border-left: 4px solid var(--sljm-teal-600);
}

.issue-section__header::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--sljm-line), transparent);
}

.issue-section__toc {
	display: grid;
	gap: var(--sljm-s4);
	margin: 0;
	padding: 0;
	list-style: none;
}

.issue-section__toc-item {
	margin: 0;
	padding: 0;
}


/* ==========================================================================
   9. ARTICLE CARDS
   article.article > .row > .col-md-4 (cover) + .col-md-8 (authors, title, PDF)
   ========================================================================== */
.issue-section__toc-item > .article {
	padding: var(--sljm-s5);
	background: #ffffff;
	border: 1px solid var(--sljm-line);
	border-radius: var(--sljm-radius);
	box-shadow: var(--sljm-shadow-sm);
	transition: border-color var(--sljm-ease), box-shadow var(--sljm-ease), transform var(--sljm-ease);
}

.issue-section__toc-item > .article:hover,
.issue-section__toc-item > .article:focus-within {
	border-color: var(--sljm-teal-500);
	box-shadow: inset 4px 0 0 var(--sljm-teal-600), var(--sljm-shadow-lg);
	transform: translateY(-2px);
}

.article__img { margin: 0; }

.article__img img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: var(--sljm-radius-sm);
	box-shadow: var(--sljm-shadow);
}

.article__meta {
	margin: 0 0 var(--sljm-s2);
	font-size: var(--sljm-fs-sm);
	font-weight: 500;
	line-height: 1.5;
	color: var(--sljm-muted);
}

.article__title {
	margin: 0 0 var(--sljm-s3);
	font-size: var(--sljm-fs-lg);
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: break-word;
}

.article__title a {
	color: var(--sljm-navy-900);
	text-decoration: none;
}

.article__title a:hover,
.article__title a:focus {
	color: var(--sljm-teal-700);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.article__btn-group {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sljm-s2);
	margin: 0 0 var(--sljm-s3);
	padding: 0;
	list-style: none;
}

/* Used for article PDF buttons and for the archive year buttons */
.article__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sljm-s2);
	min-width: 72px;
	min-height: var(--sljm-tap);
	padding: var(--sljm-s2) var(--sljm-s4);
	font-family: var(--sljm-font-head);
	font-size: var(--sljm-fs-sm);
	font-weight: 700;
	color: #ffffff;
	text-decoration: none;
	background: var(--sljm-teal-600);
	border: 1px solid var(--sljm-teal-600);
	border-radius: var(--sljm-radius-sm);
	transition: background-color var(--sljm-ease), color var(--sljm-ease), border-color var(--sljm-ease);
}

.article__btn:hover,
.article__btn:focus,
.article__btn:active {
	background: var(--sljm-navy-800);
	border-color: var(--sljm-navy-800);
	color: #ffffff;
}

/* Document icon only on real PDF download buttons */
.article__btn-group .article__btn.pdf {
	min-width: 140px;
}

.article__btn-group .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__abstract-fadeout {
	font-size: var(--sljm-fs-sm);
	color: var(--sljm-ink);
}


/* ==========================================================================
   10. ARCHIVES (body.op_archive)
   Layout: year buttons on top, then one block per year (heading line with
   "Go to Top", then issue cards). Cards have a fixed comfortable width and
   sit left-aligned under their year, so one or two issues never stretch
   across the page. The template's inline styles are left in place.
   ========================================================================== */
.op_archive .main__content > .row {
	--bs-gutter-x: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 290px));
	justify-content: start;
	align-items: stretch;
	gap: var(--sljm-s4) var(--sljm-s5);
	margin: 0;
}

/* Year buttons, year headings and pagination span the full grid row */
.op_archive .main__content > .row > :not(.archived-issue) {
	grid-column: 1 / -1;
	width: auto;
	max-width: none;
}

/* Year navigation: even row of pill buttons */
.op_archive .main__content > .row > div:first-child {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sljm-s2);
}

.op_archive .main__content > .row > div:first-child .article__btn {
	min-height: 40px;
	border-radius: 999px;
}

/* Year heading: title on the left, small "Go to Top" on the right, rule below */
.op_archive .main__content > .row > div[style*="font-weight:500"] {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--sljm-s3);
	margin-top: var(--sljm-s5);
	padding-bottom: var(--sljm-s2);
	font-family: var(--sljm-font-head);
	font-weight: 700;
	color: var(--sljm-navy-900);
	border-bottom: 2px solid var(--sljm-line);
}

.op_archive .main__content > .row > div[style*="font-weight:500"] a:not(.article__btn) {
	color: inherit;
	text-decoration: none;
}

.op_archive .main__content > .row > div[style*="font-weight:500"] .article__btn {
	min-width: 0;
	min-height: 36px;
	font-size: var(--sljm-fs-xs);
	background: transparent;
	color: var(--sljm-teal-700);
	border: 1px solid var(--sljm-teal-600);
	border-radius: 999px;
}

.op_archive .main__content > .row > div[style*="font-weight:500"] .article__btn:hover,
.op_archive .main__content > .row > div[style*="font-weight:500"] .article__btn:focus {
	background: var(--sljm-teal-600);
	color: #ffffff;
}

/* Issue card */
.op_archive .archived-issue {
	display: flex;
	flex-direction: column;
	gap: var(--sljm-s2);
	width: auto;
	max-width: none;
	margin: 0;
	padding: var(--sljm-s5);
	background: #ffffff;
	border: 1px solid var(--sljm-line);
	border-top: 4px solid var(--sljm-teal-600);
	border-radius: var(--sljm-radius);
	box-shadow: var(--sljm-shadow-sm);
	transition: border-color var(--sljm-ease), box-shadow var(--sljm-ease), transform var(--sljm-ease);
}

.op_archive .archived-issue:hover,
.op_archive .archived-issue:focus-within {
	border-color: var(--sljm-teal-500);
	box-shadow: var(--sljm-shadow-lg);
	transform: translateY(-2px);
}

.archived-issue .img-wrapper { display: block; }

.archived-issue img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
	box-shadow: var(--sljm-shadow);
}

.archived-issue .issue-summary__link { text-decoration: none; }

/* Order: Vol./No. first, then period, then date */
.archived-issue .series {
	order: -1;
	font-family: var(--sljm-font-head);
	font-size: var(--sljm-fs-lg);
	font-weight: 800;
	line-height: 1.25;
	color: var(--sljm-navy-900);
}

.archived-issue__title {
	margin: 0;
	font-size: var(--sljm-fs-md);
	font-weight: 600;
	line-height: 1.4;
	color: var(--sljm-teal-700);
}

.archived-issue .issue-summary__link:hover .archived-issue__title,
.archived-issue .issue-summary__link:focus .archived-issue__title {
	color: var(--sljm-navy-800);
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.archived-issue p {
	margin: var(--sljm-s1) 0 0;
	padding-top: var(--sljm-s3);
	border-top: 1px solid var(--sljm-line);
	font-size: var(--sljm-fs-sm);
	color: var(--sljm-muted);
}


/* ==========================================================================
   11. FOOTER
   Blocks are .pkp_block children of .sidebar_wrapper.row: laid out as a
   responsive grid. Browse is hidden while it has no categories.
   ========================================================================== */
.main-footer {
	margin: 0;
	padding: var(--sljm-s7) 0 var(--sljm-s5);
	background: var(--sljm-navy-900);
	background-image: radial-gradient(70% 90% at 100% 0%, rgba(23, 151, 159, 0.14), transparent 60%);
	border-top: 4px solid;
	border-image: var(--sljm-accent-line) 1;
	color: #d6e2ec;
}

.main-footer > .container { max-width: var(--sljm-page-width); }

.main-footer .sidebar_wrapper {
	--bs-gutter-x: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
	gap: var(--sljm-s6);
	margin: 0;
}

.main-footer .sidebar_wrapper > .pkp_block {
	width: auto;
	max-width: none;
	margin: 0;
	padding: 0;
}

/* Mobile: submit first. Desktop: information, feeds, browse, submit */
.main-footer .block_make_submission { order: 1; }
.main-footer .block_information     { order: 2; }
.main-footer .block_web_feed        { order: 3; }
.main-footer .block_browse          { order: 4; }

@media (min-width: 768px) {
	.main-footer .block_information     { order: 1; }
	.main-footer .block_web_feed        { order: 2; }
	.main-footer .block_browse          { order: 3; }
	.main-footer .block_make_submission { order: 4; }
}

.main-footer .block_browse:not(:has(.has_submenu li)) { display: none; }

.main-footer .pkp_block h2 {
	margin: 0 0 var(--sljm-s3);
	padding-bottom: var(--sljm-s2);
	font-size: var(--sljm-fs-md);
	font-weight: 700;
	color: #ffffff;
	border-bottom: 2px solid var(--sljm-teal-500);
}

.main-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.main-footer li {
	margin: 0 0 var(--sljm-s2);
	line-height: 1.5;
}

.main-footer a:not(.btn) {
	color: #cfeff2;
	text-decoration: none;
}

.main-footer a:not(.btn):hover,
.main-footer a:not(.btn):focus {
	color: #ffffff;
	text-decoration: underline;
	text-underline-offset: 0.2em;
}

.main-footer .block_information li { margin: 0; }

.main-footer .block_information li a {
	display: block;
	min-height: var(--sljm-tap);
	padding: var(--sljm-s3) 0;
	font-weight: 500;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.main-footer .block_browse ul ul {
	margin-top: var(--sljm-s2);
	padding-left: var(--sljm-s4);
	border-left: 2px solid rgba(255, 255, 255, 0.15);
}

/* Feed icons on white tiles so the coloured icons stay visible */
.main-footer .block_web_feed ul {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sljm-s2);
}

.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(--sljm-tap);
	min-height: var(--sljm-tap);
	padding: var(--sljm-s2);
	background: #ffffff;
	border-radius: var(--sljm-radius-sm);
	transition: transform var(--sljm-ease), box-shadow var(--sljm-ease);
}

.main-footer .block_web_feed a:hover,
.main-footer .block_web_feed a:focus {
	transform: translateY(-2px);
	box-shadow: 0 0 0 3px var(--sljm-teal-500);
	text-decoration: none;
}

.main-footer .block_web_feed img {
	display: block;
	width: auto;
	max-width: none;
	height: 24px;
}

/* Make a Submission: teal call-to-action panel (URL untouched) */
.main-footer .sidebar_wrapper > .block_make_submission {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--sljm-s5);
	background: linear-gradient(135deg, var(--sljm-teal-600), var(--sljm-teal-700));
	border-radius: var(--sljm-radius);
	box-shadow: var(--sljm-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;
	font-size: var(--sljm-fs-md);
	color: var(--sljm-navy-900);
	background: #ffffff;
	border: 2px solid #ffffff;
}

.main-footer .block_make_submission .btn-primary:hover,
.main-footer .block_make_submission .btn-primary:focus {
	color: var(--sljm-navy-900);
	background: var(--sljm-gold);
	border-color: var(--sljm-gold);
}

/* Bottom bar: OJS attribution stays visible, linked, on a white tile
   (padding overrides an inline style, hence !important) */
.main-footer .container > hr {
	margin: var(--sljm-s6) 0 var(--sljm-s4);
	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: 0;
	padding: 0;
}

.main-footer .container > hr + .row img {
	display: block;
	padding: var(--sljm-s2) !important;
	background: #ffffff;
	border-radius: var(--sljm-radius-sm);
}


/* ==========================================================================
   12. INNER PAGE SHELL (main.main__content pages)
   ========================================================================== */
.main__content.container {
	max-width: var(--sljm-page-width);
	padding-top: var(--sljm-s6);
	padding-bottom: var(--sljm-s7);
}

.main__header { margin-bottom: var(--sljm-s5); }

.main__header::after {
	content: "";
	display: block;
	width: 72px;
	height: 4px;
	margin-top: var(--sljm-s3);
	background: var(--sljm-accent-line);
	border-radius: 2px;
}

.main__title {
	margin: 0;
	font-size: var(--sljm-fs-2xl);
	font-weight: 800;
	line-height: 1.15;
	color: var(--sljm-navy-900);
}

.content-body {
	padding: clamp(1.25rem, 3vw, 2.25rem);
	background: #ffffff;
	border: 1px solid var(--sljm-line);
	border-radius: var(--sljm-radius);
	box-shadow: var(--sljm-shadow-sm);
}

.content-body p,
.content-body ul,
.content-body ol { max-width: 70ch; }

.cmp_notification {
	margin-bottom: var(--sljm-s5);
	padding: var(--sljm-s4) var(--sljm-s5);
	font-weight: 500;
	color: var(--sljm-navy-900);
	background: var(--sljm-teal-50);
	border: 1px solid var(--sljm-teal-100);
	border-left: 4px solid var(--sljm-teal-600);
	border-radius: var(--sljm-radius-sm);
}

.cmp_notification a { font-weight: 700; }


/* ==========================================================================
   13. SUBMISSIONS PAGE (body.op_submissions)
   Long guideline text becomes three clear cards. The pasted Elementor
   wrappers are left in place and only flattened.
   ========================================================================== */
.author_guidelines,
.submission_checklist,
.privacy_statement {
	margin-bottom: var(--sljm-s5);
	padding: clamp(1.25rem, 3vw, 2.25rem);
	background: #ffffff;
	border: 1px solid var(--sljm-line);
	border-radius: var(--sljm-radius);
	box-shadow: var(--sljm-shadow-sm);
}

.author_guidelines > h2,
.submission_checklist > h2,
.privacy_statement > h2 {
	margin: 0 0 var(--sljm-s4);
	padding-left: var(--sljm-s3);
	font-size: var(--sljm-fs-xl);
	font-weight: 800;
	color: var(--sljm-navy-900);
	border-left: 4px solid var(--sljm-teal-600);
}

.author_guidelines p,
.submission_checklist p,
.privacy_statement p {
	max-width: 72ch;
	margin-bottom: var(--sljm-s3);
}

.author_guidelines ul,
.author_guidelines ol,
.privacy_statement ul {
	max-width: 72ch;
	margin-bottom: var(--sljm-s4);
	padding-left: 1.4rem;
}

.author_guidelines li,
.privacy_statement li { margin-bottom: var(--sljm-s2); }

.author_guidelines .elementor-element,
.author_guidelines .elementor-widget-container {
	margin: 0;
	padding: 0;
}

/* Checklist: ticks instead of bullets */
.submission_checklist ul {
	max-width: 72ch;
	margin: 0;
	padding: 0;
	list-style: none;
}

.submission_checklist li {
	position: relative;
	margin-bottom: var(--sljm-s3);
	padding-left: 2rem;
}

.submission_checklist li::before {
	content: "";
	position: absolute;
	top: 0.35em;
	left: 0;
	width: 1.2rem;
	height: 1.2rem;
	background: var(--sljm-teal-600);
	border-radius: 50%;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='11' fill='%23000'/%3E%3Cpath d='M6.5 12.5l3.8 3.8 7.2-7.6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%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%3Ccircle cx='12' cy='12' r='11' fill='%23000'/%3E%3Cpath d='M6.5 12.5l3.8 3.8 7.2-7.6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Long URLs and e-mail addresses must never force sideways scrolling */
.author_guidelines,
.privacy_statement { overflow-wrap: anywhere; }


/* ==========================================================================
   14. LOGIN AND REGISTRATION FORMS (form.cmp_form)
   ========================================================================== */
.cmp_form fieldset {
	margin: 0 0 var(--sljm-s5);
	padding: var(--sljm-s5);
	background: #ffffff;
	border: 1px solid var(--sljm-line);
	border-radius: var(--sljm-radius);
	box-shadow: var(--sljm-shadow-sm);
}

.cmp_form legend {
	float: none;
	width: auto;
	margin: 0 0 var(--sljm-s4);
	padding: 0 0 0 var(--sljm-s3);
	font-family: var(--sljm-font-head);
	font-size: var(--sljm-fs-lg);
	font-weight: 700;
	color: var(--sljm-navy-900);
	border-left: 4px solid var(--sljm-teal-600);
}

.cmp_form .form-group { margin-bottom: var(--sljm-s4); }

.cmp_form .form-group:last-child,
.cmp_form fieldset > :last-child { margin-bottom: 0; }

.cmp_form .custom-control { margin-bottom: var(--sljm-s3); }

.cmp_form a:not(.btn) {
	font-weight: 600;
	color: var(--sljm-teal-700);
}

.cmp_form a:not(.btn):hover { color: var(--sljm-navy-800); }

/* Buttons and links under the register / login forms */
.cmp_form.register > .btn,
.cmp_form.register > a.login {
	margin-top: var(--sljm-s2);
}

.cmp_form.register > a.login {
	display: inline-flex;
	align-items: center;
	min-height: var(--sljm-tap);
	margin-left: var(--sljm-s3);
}

.cmp_form.login .form-group p {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sljm-s3);
}

.form-login .form-group p {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sljm-s3);
}


/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */
@media (max-width: 991.98px) {
	.issue { padding-top: var(--sljm-s6); }
}

@media (max-width: 767.98px) {
	.announcements,
	.issue { padding-top: var(--sljm-s6); }

	.issue-section__toc-item > .article { padding: var(--sljm-s4); }

	/* Cover sits above the text, centred and not oversized */
	.article__img {
		max-width: 220px;
		margin: 0 auto var(--sljm-s4);
	}

	.main-footer { padding-top: var(--sljm-s6); }

	.main-footer .container > hr + .row { justify-content: flex-start; }
}

@media (max-width: 575.98px) {
	:root {
		--sljm-header-height: 230px;
		--sljm-overlay-top: 0.7;
		--sljm-overlay-bottom: 0.9;
	}

	/* Opened mobile menu gets a dark panel so the links stay readable */
	.main-header__nav .navbar-collapse.show,
	.main-header__nav .navbar-collapse.collapsing {
		background: rgba(10, 37, 64, 0.96);
		border-radius: var(--sljm-radius-sm);
	}

	#navigationPrimary {
		flex-direction: column;
		flex-wrap: nowrap;
		padding-bottom: var(--sljm-s2);
	}

	.main-header__nav-link {
		min-height: var(--sljm-tap);
		padding: var(--sljm-s3) var(--sljm-s2);
		text-align: center;
		text-shadow: none;
		border-bottom: 1px solid rgba(255, 255, 255, 0.18);
	}

	/* Dropdown inside the opened mobile menu: inline, dark, readable */
	.main-header__nav .dropdown-menu {
		min-width: 0;
		background: rgba(255, 255, 255, 0.07);
		border: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.main-header__nav .dropdown-menu .dropdown-item > .nav-link {
		color: #ffffff;
		text-align: center;
		border-left: 0;
	}

	.main-header__nav .dropdown-menu .dropdown-item > .nav-link:hover,
	.main-header__nav .dropdown-menu .dropdown-item > .nav-link:focus {
		color: var(--sljm-gold);
		background: rgba(255, 255, 255, 0.08);
	}

	.main-header__nav .dropdown-menu a:focus-visible { outline-color: var(--sljm-gold); }

	/* Touch-friendly, full-width actions */
	.article__btn-group,
	.article__btn-group li { width: 100%; }

	.article__btn-group .article__btn { width: 100%; }

	.cmp_form fieldset { padding: var(--sljm-s4); }

	.cmp_form.register > .btn { width: 100%; }

	.cmp_form.register > a.login {
		margin-left: 0;
		margin-top: var(--sljm-s3);
	}

	.cmp_form.login .form-group p .btn,
	.form-login .form-group p .btn { flex: 1 1 100%; }

	#loginModal .modal-body { padding: var(--sljm-s5) var(--sljm-s4); }

	/* 16px inputs stop iOS from zooming the page on focus */
	:is(main, .modal-content) .form-control { font-size: 1rem; }

	.issue-section__header::after { display: none; }

	/* One full-width card per row on phones */
	.op_archive .main__content > .row {
		grid-template-columns: minmax(0, 1fr);
		gap: var(--sljm-s3);
	}
}

@media (max-width: 375px) {
	body { font-size: 0.9375rem; }

	.main-header__admin-link {
		padding-right: var(--sljm-s3);
		padding-left: var(--sljm-s3);
	}

	.op_archive .main__content > .row { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
	.issue-section__toc-item > .article:hover,
	.op_archive .archived-issue:hover,
	.main-footer .block_web_feed a:hover { transform: none; }
}


/* ==========================================================================
   16. PRINT
   ========================================================================== */
@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;
	}

	.main-header::before { display: none; }

	.issue-section__toc-item > .article,
	.author_guidelines,
	.submission_checklist,
	.privacy_statement {
		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;
	}
}