/* ==========================================================================
   Scholar Publishing — publisher-level theme
   --------------------------------------------------------------------------
   Everything here is scoped to `body.sp-site`, a class the header template
   only emits when there is no journal context. Journal pages therefore keep
   the stock OJS default theme presentation untouched.
   ========================================================================== */

body.sp-site {
	--sp-blue: #1e6292;
	--sp-blue-deep: #164e75;
	--sp-blue-darker: #113c5b;
	--sp-ink: #261c2c;
	--sp-ink-soft: #33263a;
	--sp-accent: #f18d05;
	--sp-accent-dark: #d47c04;

	--sp-text: #22303f;
	--sp-muted: #5f6f7e;
	--sp-border: #e2e8ef;
	--sp-tint: #f4f7fa;
	--sp-white: #fff;

	--sp-radius: 10px;
	--sp-radius-lg: 16px;
	--sp-shadow: 0 1px 2px rgba(19, 41, 63, .06), 0 8px 24px rgba(19, 41, 63, .06);
	--sp-shadow-lg: 0 18px 48px rgba(19, 41, 63, .14);
	/* Wide enough to fill a 2560px display without stranding the content in a
	   narrow ribbon, while still capping line length on the text blocks. */
	--sp-max: 1440px;

	background: var(--sp-white);
	color: var(--sp-text);
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

body.sp-site *,
body.sp-site *::before,
body.sp-site *::after { box-sizing: border-box; }

/* --- Neutralise default-theme page chrome on the publisher side ---------- */
body.sp-site .pkp_structure_page { max-width: none; margin: 0; }

/* The default theme constrains and gutters these wrappers. Publisher sections
   are full-bleed and manage their own gutters via .sp-container, so the
   constraints are overridden outright — !important is needed to beat the
   parent theme's compiled stylesheet, which loads after this one. */
body.sp-site .pkp_structure_content,
body.sp-site .pkp_structure_main {
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	float: none !important;
}

/* Interior site pages (login, register, search) still need breathing room. */
body.sp-site:not(.pkp_page_index) .pkp_structure_main {
	max-width: var(--sp-max) !important;
	margin: 0 auto !important;
	padding: 40px 24px 72px !important;
}

body.sp-site a { color: var(--sp-blue); }
body.sp-site a:hover { color: var(--sp-blue-darker); }

.sp-container {
	width: 100%;
	max-width: var(--sp-max);
	margin: 0 auto;
	padding: 0 32px;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
body.sp-site .sp-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 22px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
body.sp-site .sp-btn:hover { transform: translateY(-1px); text-decoration: none; }
body.sp-site .sp-btn:focus-visible { outline: 3px solid rgba(241, 141, 5, .5); outline-offset: 2px; }

body.sp-site .sp-btn-primary { background: var(--sp-blue); color: #fff; }
body.sp-site .sp-btn-primary:hover { background: var(--sp-blue-darker); color: #fff; box-shadow: 0 6px 18px rgba(30, 98, 146, .28); }

body.sp-site .sp-btn-accent { background: var(--sp-accent); color: #241a04; }
body.sp-site .sp-btn-accent:hover { background: var(--sp-accent-dark); color: #241a04; box-shadow: 0 6px 18px rgba(241, 141, 5, .35); }

body.sp-site .sp-btn-ghost { background: transparent; color: var(--sp-blue); border-color: #cfdae5; }
body.sp-site .sp-btn-ghost:hover { background: var(--sp-blue); color: #fff; border-color: var(--sp-blue); }

body.sp-site .sp-btn-sm { padding: 8px 16px; font-size: 14px; }

body.sp-site .sp-link-action {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 14px;
	font-weight: 600;
	color: var(--sp-blue);
	text-decoration: none;
}
body.sp-site .sp-link-action::after { content: "\2192"; transition: transform .18s ease; }
body.sp-site .sp-link-action:hover { color: var(--sp-blue-darker); text-decoration: none; }
body.sp-site .sp-link-action:hover::after { transform: translateX(3px); }

/* ==========================================================================
   Header
   ========================================================================== */
body.sp-site .sp-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: #fff;
	box-shadow: 0 1px 0 var(--sp-border);
}

/* Row 1 — brand bar */
body.sp-site .sp-header-top {
	background: #fff;
	border-bottom: 1px solid var(--sp-border);
	transition: max-height .28s ease, opacity .2s ease;
	max-height: 120px;
	overflow: hidden;
}
body.sp-site .sp-header-top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	min-height: 78px;
}

body.sp-site .sp-brand {
	display: inline-flex;
	align-items: center;
	gap: 13px;
	text-decoration: none;
	color: var(--sp-blue);
}
body.sp-site .sp-brand:hover { text-decoration: none; }
/* Sized to sit beside two lines of wordmark text rather than tower over them. */
body.sp-site .sp-brand-logo { max-height: 46px; max-width: 190px; width: auto; display: block; flex: none; }
body.sp-site .sp-brand-mark { display: inline-flex; color: var(--sp-blue); flex: none; }
body.sp-site .sp-brand-text { display: flex; flex-direction: column; line-height: 1.25; }
body.sp-site .sp-brand-name {
	font-size: 21px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--sp-ink);
}
body.sp-site .sp-brand-sub {
	font-size: 12px;
	font-weight: 500;
	color: var(--sp-muted);
	letter-spacing: .01em;
}

body.sp-site .sp-header-actions { display: flex; align-items: center; gap: 20px; }
body.sp-site .sp-header-link {
	font-size: 14px;
	font-weight: 600;
	color: var(--sp-muted);
	text-decoration: none;
}
body.sp-site .sp-header-link:hover { color: var(--sp-blue); text-decoration: none; }

/* Row 2 — navigation */
body.sp-site .sp-header-nav {
	background: var(--sp-blue);
	border: 0;
	box-shadow: none;
	margin: 0;
	padding: 0;
}
body.sp-site .sp-header-nav-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 56px;
}

body.sp-site .sp-nav-brand {
	display: none;
	font-size: 16px;
	font-weight: 700;
	color: #fff;
	text-decoration: none;
	margin-right: auto;
}

body.sp-site .sp-nav { flex: 1; }
body.sp-site .sp-nav-list {
	display: flex;
	align-items: center;
	gap: 2px;
	list-style: none;
	margin: 0;
	padding: 0;
}
body.sp-site .sp-nav-list > li { position: relative; }
body.sp-site .sp-nav-list > li > a {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 17px 15px;
	font-size: 15px;
	font-weight: 600;
	color: rgba(255, 255, 255, .92);
	text-decoration: none;
	border-bottom: 3px solid transparent;
	transition: background-color .18s ease, border-color .18s ease, color .18s ease;
}
body.sp-site .sp-nav-list > li > a:hover,
body.sp-site .sp-nav-list > li.is-open > a {
	background: rgba(255, 255, 255, .1);
	color: #fff;
	border-bottom-color: var(--sp-accent);
	text-decoration: none;
}

body.sp-site .sp-caret {
	width: 0; height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid currentColor;
	opacity: .8;
}

/* Dropdowns */
body.sp-site .sp-submenu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	min-width: 300px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--sp-border);
	border-radius: 0 0 var(--sp-radius) var(--sp-radius);
	box-shadow: var(--sp-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
body.sp-site .sp-submenu-wide { min-width: 360px; }
body.sp-site .sp-has-menu:hover > .sp-submenu,
body.sp-site .sp-has-menu:focus-within > .sp-submenu,
body.sp-site .sp-has-menu.is-open > .sp-submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
body.sp-site .sp-submenu li { margin: 0; }
body.sp-site .sp-submenu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 7px;
	font-size: 14.5px;
	color: var(--sp-text);
	text-decoration: none;
	transition: background-color .15s ease, color .15s ease;
}
body.sp-site .sp-submenu a:hover { background: var(--sp-tint); color: var(--sp-blue); text-decoration: none; }
body.sp-site .sp-submenu-title { font-weight: 500; }
body.sp-site .sp-submenu-tag {
	flex: none;
	padding: 2px 8px;
	border-radius: 20px;
	background: var(--sp-tint);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .04em;
	color: var(--sp-blue);
}
body.sp-site .sp-submenu a:hover .sp-submenu-tag { background: #fff; }

/* Nav search */
body.sp-site .sp-nav-search { position: relative; flex: none; }
body.sp-site .sp-nav-search input {
	width: 190px;
	padding: 8px 38px 8px 14px;
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 20px;
	background: rgba(255, 255, 255, .13);
	color: #fff;
	font-size: 14px;
	transition: width .22s ease, background-color .18s ease, border-color .18s ease;
}
body.sp-site .sp-nav-search input::placeholder { color: rgba(255, 255, 255, .68); }
body.sp-site .sp-nav-search input:focus {
	width: 240px;
	outline: none;
	background: #fff;
	border-color: #fff;
	color: var(--sp-text);
}
body.sp-site .sp-nav-search input:focus::placeholder { color: var(--sp-muted); }
body.sp-site .sp-nav-search button {
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	display: flex;
	padding: 6px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: #fff;
	cursor: pointer;
}
body.sp-site .sp-nav-search input:focus + button { color: var(--sp-blue); }

/* Hamburger */
body.sp-site .sp-nav-toggle {
	display: none;
	flex-direction: column;
	gap: 4px;
	padding: 10px;
	border: 0;
	background: transparent;
	cursor: pointer;
}
body.sp-site .sp-nav-toggle span {
	display: block;
	width: 22px;
	height: 2px;
	background: #fff;
	border-radius: 2px;
	transition: transform .2s ease, opacity .2s ease;
}
body.sp-site .sp-nav-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.sp-site .sp-nav-toggle.is-open span:nth-child(2) { opacity: 0; }
body.sp-site .sp-nav-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

body.sp-site .sp-nav-mobile-actions { display: none; }

/* Stuck state — collapse the brand bar, show the compact wordmark */
body.sp-site .sp-header.is-stuck .sp-header-top { max-height: 0; opacity: 0; border-bottom-color: transparent; }
body.sp-site .sp-header.is-stuck .sp-nav-brand { display: block; }
body.sp-site .sp-header.is-stuck { box-shadow: 0 4px 18px rgba(19, 41, 63, .14); }

/* ==========================================================================
   Sections
   ========================================================================== */
body.sp-site .sp-section { padding: 58px 0; }
body.sp-site .sp-section-tint { background: var(--sp-tint); }
body.sp-site .sp-section-dark { background: var(--sp-ink); color: #efe9f0; }

body.sp-site .sp-section-head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
body.sp-site .sp-section-head-left { max-width: 720px; margin-left: 0; text-align: left; }
body.sp-site .sp-section-title {
	margin: 0 0 10px;
	font-size: 34px;
	font-weight: 800;
	letter-spacing: -.025em;
	line-height: 1.15;
	color: var(--sp-ink);
}
body.sp-site .sp-section-sub { margin: 0; font-size: 16.5px; line-height: 1.55; color: var(--sp-muted); }
body.sp-site .sp-section-head-invert .sp-section-title { color: #fff; }
body.sp-site .sp-section-head-invert .sp-section-sub { color: rgba(255, 255, 255, .74); }

/* Eyebrow carries a short accent rule so section starts read as deliberate
   rather than as a stray line of small caps. */
body.sp-site .sp-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: var(--sp-accent-dark);
}
body.sp-site .sp-eyebrow::before {
	content: "";
	width: 26px;
	height: 2px;
	background: var(--sp-accent);
	flex: none;
}
body.sp-site .sp-section-head:not(.sp-section-head-left) .sp-eyebrow,
body.sp-site .sp-hero .sp-eyebrow { justify-content: center; }
body.sp-site .sp-eyebrow-invert { color: var(--sp-accent); }
body.sp-site .sp-muted { color: var(--sp-muted); }
body.sp-site .sp-empty {
	padding: 44px;
	border: 1px dashed var(--sp-border);
	border-radius: var(--sp-radius);
	text-align: center;
	color: var(--sp-muted);
}

/* ==========================================================================
   Hero
   ========================================================================== */
/* Diffused imagery built from the publisher's own journal covers
   (tools/make-hero-bg.php), with a wash over it so the headline keeps its
   contrast whatever the artwork does underneath. */
body.sp-site .sp-hero {
	position: relative;
	overflow: hidden;
	padding: 76px 0 68px;
	background: var(--sp-blue-darker) url("../images/hero-bg.jpg") center / cover no-repeat;
	color: #fff;
	text-align: center;
}
/* Light wash only — enough to hold text contrast without flattening the
   artwork underneath. */
body.sp-site .sp-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(60% 70% at 50% 45%, rgba(6, 24, 40, .38) 0%, rgba(6, 24, 40, .10) 100%);
	pointer-events: none;
}
body.sp-site .sp-hero-inner { position: relative; z-index: 1; }

body.sp-site .sp-hero-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 4px;
}
body.sp-site .sp-btn.btn-lg { padding: 14px 30px; font-size: 16px; }
body.sp-site .sp-btn-hero-ghost {
	padding: 14px 30px;
	font-size: 16px;
	background: rgba(255, 255, 255, .12);
	border-color: rgba(255, 255, 255, .45);
	color: #fff;
}
body.sp-site .sp-btn-hero-ghost:hover {
	background: #fff;
	border-color: #fff;
	color: var(--sp-blue-darker);
}

body.sp-site .sp-hero-title {
	margin: 0 0 16px;
	font-size: clamp(34px, 5vw, 54px);
	font-weight: 800;
	letter-spacing: -.03em;
	line-height: 1.08;
	color: #fff;
}
body.sp-site .sp-hero-tagline {
	max-width: 660px;
	margin: 0 auto 28px;
	font-size: 18px;
	line-height: 1.55;
	color: rgba(255, 255, 255, .88);
}

/* ==========================================================================
   Journals
   ========================================================================== */
/* Three across on wide displays so six journals fill the row rather than
   stacking into a tall two-column column. */
body.sp-site .sp-journal-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}
@media (max-width: 1300px) {
	body.sp-site .sp-journal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
body.sp-site .sp-journal-card {
	display: flex;
	flex-direction: column;
	padding: 22px;
	background: #fff;
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius-lg);
	box-shadow: var(--sp-shadow);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
body.sp-site .sp-journal-top { display: flex; gap: 20px; flex: 1; }
body.sp-site .sp-journal-card:hover {
	transform: translateY(-3px);
	border-color: #c8d7e4;
	box-shadow: var(--sp-shadow-lg);
}

body.sp-site .sp-journal-cover {
	position: relative;
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 112px;
	height: 156px;
	overflow: hidden;
	border-radius: 6px;
	background: linear-gradient(160deg, var(--sp-blue) 0%, var(--sp-blue-darker) 100%);
	box-shadow: 0 6px 16px rgba(19, 41, 63, .18);
	text-decoration: none;
}
/* Spine, so a text-only cover still reads as a journal rather than a colour swatch */
body.sp-site .sp-journal-cover::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 7px;
	background: rgba(0, 0, 0, .22);
}
body.sp-site .sp-journal-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* A real cover carries its own artwork — drop the painted spine and tone. */
body.sp-site .sp-journal-cover.has-image { background: #eef2f6; }
body.sp-site .sp-journal-cover.has-image::before { display: none; }
body.sp-site .sp-journal-monogram {
	padding: 0 8px 0 15px;
	font-size: 21px;
	font-weight: 800;
	letter-spacing: .02em;
	line-height: 1.1;
	text-align: center;
	word-break: break-word;
	color: rgba(255, 255, 255, .96);
}

/* Cover tones — cycled per journal so six untouched covers still look like a
   designed set. Overridden entirely once a real thumbnail is uploaded. */
body.sp-site .sp-tone-0 { background: linear-gradient(160deg, #2b7aad 0%, #164e75 100%); }
body.sp-site .sp-tone-1 { background: linear-gradient(160deg, #3f7f6f 0%, #1e5346 100%); }
body.sp-site .sp-tone-2 { background: linear-gradient(160deg, #8a5a86 0%, #4d2f52 100%); }
body.sp-site .sp-tone-3 { background: linear-gradient(160deg, #b1743a 0%, #6f4318 100%); }
body.sp-site .sp-tone-4 { background: linear-gradient(160deg, #4a6bab 0%, #26386a 100%); }
body.sp-site .sp-tone-5 { background: linear-gradient(160deg, #a2565a 0%, #5f2b2f 100%); }

body.sp-site .sp-journal-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
/* Three lines: the longest titles here ("British Journal of Healthcare and
   Medical Research") need all three, and a fixed min-height keeps every card
   in the row the same height regardless of how many they actually use. */
body.sp-site .sp-journal-name {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 10px;
	min-height: 72px;
	font-size: 17.5px;
	font-weight: 700;
	line-height: 1.32;
}
body.sp-site .sp-journal-name a { color: var(--sp-ink); text-decoration: none; }
body.sp-site .sp-journal-name a:hover { color: var(--sp-blue); text-decoration: none; }

body.sp-site .sp-journal-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
body.sp-site .sp-chip {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border: 1px solid var(--sp-border);
	border-radius: 20px;
	background: var(--sp-tint);
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--sp-muted);
	white-space: nowrap;
}
body.sp-site .sp-chip-solid { background: var(--sp-blue); border-color: var(--sp-blue); color: #fff; }
body.sp-site .sp-chip-oa { background: #fff5e6; border-color: #f7dcb0; color: #a76403; }

/* Clamped to three lines: descriptions vary a lot in length, and without this
   the taller card stretches the row and leaves a void in its neighbour. */
body.sp-site .sp-journal-desc {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	margin: 0 0 16px;
	min-height: 70px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--sp-muted);
}
/* Spans the full card width (outside the cover/body row) so all three actions
   stay on one line even in a three-up grid. */
body.sp-site .sp-journal-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 16px;
	margin-top: 16px;
	padding-top: 15px;
	border-top: 1px solid var(--sp-border);
}
body.sp-site .sp-journal-actions .sp-btn-sm { padding: 7px 14px; font-size: 13.5px; }
body.sp-site .sp-journal-actions .sp-link-action { font-size: 13.5px; }

/* ==========================================================================
   Author steps
   ========================================================================== */
body.sp-site .sp-steps {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}
body.sp-site .sp-step {
	position: relative;
	padding: 26px 22px 24px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-radius: var(--sp-radius-lg);
	background: rgba(255, 255, 255, .045);
}
/* Connecting rail between steps on wide screens */
body.sp-site .sp-step:not(:last-child)::after {
	content: "";
	position: absolute;
	top: 46px;
	right: -25px;
	width: 26px;
	height: 2px;
	background: linear-gradient(90deg, rgba(241, 141, 5, .75), rgba(241, 141, 5, .12));
}
body.sp-site .sp-step-num {
	display: inline-block;
	margin-bottom: 14px;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -.03em;
	color: var(--sp-accent);
}
body.sp-site .sp-step h3 { margin: 0 0 8px; font-size: 17.5px; font-weight: 700; color: #fff; }
body.sp-site .sp-step p { margin: 0; font-size: 14.5px; line-height: 1.62; color: rgba(255, 255, 255, .72); }

body.sp-site .sp-authors-cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 22px;
	margin-top: 44px;
	padding: 30px 34px;
	border: 1px solid rgba(241, 141, 5, .3);
	border-radius: var(--sp-radius-lg);
	background: linear-gradient(120deg, rgba(241, 141, 5, .13), rgba(241, 141, 5, .03));
}
body.sp-site .sp-authors-cta h3 { margin: 0 0 6px; font-size: 21px; font-weight: 700; color: #fff; }
body.sp-site .sp-authors-cta p { margin: 0; font-size: 15px; color: rgba(255, 255, 255, .76); }

/* ==========================================================================
   Checklists
   ========================================================================== */
body.sp-site .sp-check { margin: 0; padding: 0; list-style: none; }
body.sp-site .sp-check li {
	position: relative;
	padding: 7px 0 7px 30px;
	font-size: 15px;
	color: #3c4a58;
	border-top: 1px solid var(--sp-border);
}
body.sp-site .sp-check li:first-child { border-top: 0; }
body.sp-site .sp-check li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 13px;
	width: 14px;
	height: 8px;
	border-left: 2.4px solid var(--sp-accent);
	border-bottom: 2.4px solid var(--sp-accent);
	transform: rotate(-45deg);
}

/* ==========================================================================
   Book publishing
   ========================================================================== */
body.sp-site .sp-books-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 48px;
	align-items: start;
}
body.sp-site .sp-books-lead {
	margin: 0 0 22px;
	font-size: 16.5px;
	line-height: 1.65;
	color: var(--sp-muted);
}
body.sp-site .sp-books-copy .sp-check { max-width: 640px; }
body.sp-site .sp-books-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 22px;
	margin-top: 26px;
}

body.sp-site .sp-books-steps {
	padding: 30px 30px 26px;
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius-lg);
	background: var(--sp-tint);
}
body.sp-site .sp-books-steps h3 {
	margin: 0 0 18px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--sp-accent-dark);
}
body.sp-site .sp-books-steps ol { margin: 0; padding: 0; list-style: none; }
body.sp-site .sp-books-steps li {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-top: 1px solid var(--sp-border);
}
body.sp-site .sp-books-steps li:first-child { border-top: 0; padding-top: 0; }
body.sp-site .sp-books-steps li > span {
	flex: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--sp-blue);
	font-size: 13px;
	font-weight: 700;
	color: #fff;
}
body.sp-site .sp-books-steps strong { display: block; margin-bottom: 2px; font-size: 15.5px; color: var(--sp-ink); }
body.sp-site .sp-books-steps p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--sp-muted); }

/* ==========================================================================
   Services
   ========================================================================== */
body.sp-site .sp-service-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}
body.sp-site .sp-service {
	display: flex;
	flex-direction: column;
	padding: 30px 28px;
	border: 1px solid var(--sp-border);
	border-radius: var(--sp-radius-lg);
	background: #fff;
	transition: transform .2s ease, box-shadow .2s ease;
}
body.sp-site .sp-service:hover { transform: translateY(-3px); box-shadow: var(--sp-shadow-lg); }
body.sp-site .sp-service-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	margin-bottom: 16px;
	border-radius: 12px;
	background: rgba(241, 141, 5, .12);
	color: var(--sp-accent-dark);
}
body.sp-site .sp-service h3 { margin: 0 0 10px; font-size: 18.5px; font-weight: 700; color: var(--sp-ink); }
body.sp-site .sp-service p { margin: 0 0 18px; font-size: 14.8px; line-height: 1.62; color: var(--sp-muted); }
body.sp-site .sp-service .sp-link-action { margin-top: auto; }

/* ==========================================================================
   FAQ
   ========================================================================== */
body.sp-site .sp-faq-inner {
	display: grid;
	grid-template-columns: minmax(0, 360px) minmax(0, 820px);
	justify-content: space-between;
	gap: 48px;
	align-items: start;
}
body.sp-site .sp-faq-inner .sp-section-head { margin-bottom: 0; }
body.sp-site .sp-faq-contact { margin-top: 20px; }
body.sp-site .sp-faq-list { border-top: 1px solid var(--sp-border); }
body.sp-site .sp-faq-item { border-bottom: 1px solid var(--sp-border); }
body.sp-site .sp-faq-item > button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	width: 100%;
	padding: 19px 4px;
	border: 0;
	background: transparent;
	font-family: inherit;
	font-size: 16.5px;
	font-weight: 600;
	line-height: 1.45;
	text-align: left;
	color: var(--sp-ink);
	cursor: pointer;
	transition: color .16s ease;
}
body.sp-site .sp-faq-item > button:hover { color: var(--sp-blue); }
body.sp-site .sp-faq-icon {
	position: relative;
	flex: none;
	width: 18px;
	height: 18px;
}
body.sp-site .sp-faq-icon::before,
body.sp-site .sp-faq-icon::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	background: var(--sp-accent);
	transform: translate(-50%, -50%);
	transition: transform .22s ease, opacity .22s ease;
}
body.sp-site .sp-faq-icon::before { width: 15px; height: 2.4px; }
body.sp-site .sp-faq-icon::after { width: 2.4px; height: 15px; }
body.sp-site .sp-faq-item.is-open .sp-faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

body.sp-site .sp-faq-answer {
	overflow: hidden;
	max-height: 0;
	transition: max-height .3s ease;
}
body.sp-site .sp-faq-answer > p {
	margin: 0;
	padding: 0 40px 22px 4px;
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--sp-muted);
}
body.sp-site .sp-faq-item.is-open .sp-faq-answer { max-height: 420px; }

/* ==========================================================================
   Footer
   ========================================================================== */
body.sp-site .sp-footer-wrapper { margin: 0; padding: 0; background: var(--sp-ink); }
body.sp-site .sp-footer { background: var(--sp-ink); color: rgba(255, 255, 255, .74); }
body.sp-site .sp-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1.2fr 1fr 1fr;
	gap: 40px;
	padding-top: 62px;
	padding-bottom: 52px;
}
body.sp-site .sp-footer-brand {
	margin: 0 0 12px;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -.02em;
	color: #fff;
}
body.sp-site .sp-footer-tagline { margin: 0 0 14px; font-size: 15px; line-height: 1.6; max-width: 34ch; }
body.sp-site .sp-footer-legal { margin: 0 0 18px; font-size: 13.5px; color: rgba(255, 255, 255, .52); }

body.sp-site .sp-footer-social { display: flex; gap: 10px; margin-top: 4px; }
body.sp-site .sp-footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 50%;
	color: rgba(255, 255, 255, .8);
	transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
body.sp-site .sp-footer-social a:hover {
	background: var(--sp-accent);
	border-color: var(--sp-accent);
	color: #241a04;
}

body.sp-site .sp-footer-col h3 {
	margin: 0 0 16px;
	font-size: 12.5px;
	font-weight: 700;
	letter-spacing: .13em;
	text-transform: uppercase;
	color: var(--sp-accent);
}
body.sp-site .sp-footer-col ul { margin: 0; padding: 0; list-style: none; }
body.sp-site .sp-footer-col li { margin-bottom: 10px; font-size: 14.5px; line-height: 1.5; }
body.sp-site .sp-footer-col a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .16s ease; }
body.sp-site .sp-footer-col a:hover { color: var(--sp-accent); text-decoration: none; }

body.sp-site .sp-footer-contact li { display: flex; align-items: flex-start; gap: 9px; }
body.sp-site .sp-footer-contact svg { flex: none; margin-top: 3px; color: var(--sp-accent); }
body.sp-site .sp-footer-address { font-style: normal; line-height: 1.6; }
body.sp-site .sp-footer-cta { margin-top: 8px; }

body.sp-site .sp-footer-custom {
	padding-bottom: 30px;
	font-size: 14px;
	color: rgba(255, 255, 255, .6);
}
body.sp-site .sp-footer-custom a { color: rgba(255, 255, 255, .82); }

body.sp-site .sp-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
body.sp-site .sp-footer-bottom-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding-top: 20px;
	padding-bottom: 20px;
	font-size: 13.5px;
	color: rgba(255, 255, 255, .55);
}
body.sp-site .sp-footer-ojs a { color: rgba(255, 255, 255, .55); text-decoration: none; }
body.sp-site .sp-footer-ojs a:hover { color: var(--sp-accent); }

/* Hide the default theme's PKP brand block on the publisher side */
body.sp-site .sp-footer-wrapper .pkp_brand_footer { display: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	body.sp-site .sp-nav-list > li > a { padding: 17px 11px; font-size: 14.5px; }
	body.sp-site .sp-nav-search input { width: 150px; }
	body.sp-site .sp-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
	body.sp-site .sp-footer-about { grid-column: 1 / -1; }
}

@media (max-width: 991px) {
	body.sp-site .sp-section { padding: 56px 0; }
	body.sp-site .sp-section-title { font-size: 28px; }

	body.sp-site .sp-nav-toggle { display: flex; }
	body.sp-site .sp-nav-brand { display: block; }
	body.sp-site .sp-header-nav-inner { flex-wrap: wrap; gap: 12px; }
	body.sp-site .sp-nav-search { order: 3; flex: 1; }
	body.sp-site .sp-nav-search input { width: 100%; }
	body.sp-site .sp-nav-search input:focus { width: 100%; }

	body.sp-site .sp-nav {
		order: 4;
		flex-basis: 100%;
		display: none;
		padding-bottom: 12px;
	}
	body.sp-site .sp-nav.is-open { display: block; }
	body.sp-site .sp-nav-list { flex-direction: column; align-items: stretch; gap: 0; }
	body.sp-site .sp-nav-list > li > a {
		padding: 13px 4px;
		border-bottom: 1px solid rgba(255, 255, 255, .14);
		justify-content: space-between;
	}
	body.sp-site .sp-nav-list > li > a:hover,
	body.sp-site .sp-nav-list > li.is-open > a { background: transparent; border-bottom-color: rgba(255, 255, 255, .14); }

	body.sp-site .sp-submenu {
		position: static;
		display: none;
		min-width: 0;
		margin: 0;
		padding: 6px 0 10px;
		background: transparent;
		border: 0;
		border-radius: 0;
		box-shadow: none;
		opacity: 1;
		visibility: visible;
		transform: none;
	}
	body.sp-site .sp-has-menu.is-open > .sp-submenu { display: block; }
	body.sp-site .sp-has-menu:hover > .sp-submenu { display: none; }
	body.sp-site .sp-has-menu.is-open:hover > .sp-submenu { display: block; }
	body.sp-site .sp-submenu a { padding: 9px 16px; color: rgba(255, 255, 255, .82); }
	body.sp-site .sp-submenu a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
	body.sp-site .sp-submenu-tag { background: rgba(255, 255, 255, .14); color: #fff; }

	body.sp-site .sp-nav-mobile-actions { display: block; padding: 14px 4px 4px; }

	body.sp-site .sp-header.is-stuck .sp-header-top { max-height: 120px; opacity: 1; }

	body.sp-site .sp-hero { padding: 60px 0 56px; }

	body.sp-site .sp-journal-list,
	body.sp-site .sp-service-grid,
	body.sp-site .sp-books-grid { grid-template-columns: 1fr; }

	body.sp-site .sp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	body.sp-site .sp-step:not(:last-child)::after { display: none; }

	body.sp-site .sp-faq-inner { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 640px) {
	body.sp-site .sp-container { padding: 0 18px; }
	body.sp-site .sp-header-top-inner { min-height: 66px; }
	body.sp-site .sp-brand-name { font-size: 18px; }
	body.sp-site .sp-brand-sub { display: none; }
	body.sp-site .sp-header-actions { gap: 12px; }
	body.sp-site .sp-header-actions .sp-header-link { display: none; }

	body.sp-site .sp-hero-actions { flex-direction: column; align-items: stretch; }

	body.sp-site .sp-journal-top { flex-direction: column; gap: 16px; }
	body.sp-site .sp-journal-cover { width: 100%; height: 96px; }
	body.sp-site .sp-journal-cover::before { display: none; }
	body.sp-site .sp-journal-name,
	body.sp-site .sp-journal-desc { min-height: 0; }

	body.sp-site .sp-steps { grid-template-columns: 1fr; }
	body.sp-site .sp-footer-grid { grid-template-columns: 1fr; gap: 30px; }
	body.sp-site .sp-footer-bottom-inner { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	body.sp-site *,
	body.sp-site *::before,
	body.sp-site *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
