/**
 * IJII-RC theme stylesheet.
 *
 * Card-based academic layout with the IJII-RC brand palette.
 * Night mode works by swapping the custom properties on html.ijii-dark.
 */

:root {
	--ij-ink: #12294B;        /* midnight ink: headings, nav */
	--ij-indigo: #1F4E79;     /* links, active states, dividers */
	--ij-wash: #3E6D9C;       /* hover states */
	--ij-saffron: #F2A21C;    /* scarce accent */
	--ij-amber: #C97E15;      /* accent on light bg / hover */
	--ij-bg: #F7F5F1;         /* paper white page background */
	--ij-card: #FFFFFF;       /* card surface */
	--ij-card-2: #FBFAF8;     /* subtle alt surface */
	--ij-text: #24292F;
	--ij-text-muted: #5C6670;
	--ij-heading: #12294B;
	--ij-border: #E3DFD7;
	--ij-card-rule: #12294B;  /* dark rule under cards */
	--ij-shadow: 0 1px 3px rgba(18, 41, 75, 0.08);
	--ij-radius: 6px;
}

html.ijii-dark {
	--ij-ink: #E8EDF5;
	--ij-indigo: #8FB4DC;
	--ij-wash: #AECBEA;
	--ij-saffron: #F2A21C;
	--ij-amber: #F5B94E;
	--ij-bg: #0E1726;
	--ij-card: #16233A;
	--ij-card-2: #1B2B46;
	--ij-text: #D7DEE8;
	--ij-text-muted: #93A1B3;
	--ij-heading: #EDF2F9;
	--ij-border: #2A3B58;
	--ij-card-rule: #3E6D9C;
	--ij-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* ---------------------------------------------------------------- base */

body {
	font-family: "Noto Serif", "Noto Serif Devanagari", Georgia, serif;
	background: var(--ij-bg);
	color: var(--ij-text);
	font-size: 18px;
	line-height: 1.7;
	transition: background 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4, h5, h6 {
	font-family: "Libre Baskerville", "Noto Serif Devanagari", Georgia, serif;
	color: var(--ij-heading);
	font-weight: 700;
	line-height: 1.3;
}

a {
	color: var(--ij-indigo);
	text-decoration: none;
	transition: color 0.15s ease;
}

a:hover,
a:focus {
	color: var(--ij-wash);
}

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

/* Scroll-reveal (applied via data-ijreveal, activated by js) */
[data-ijreveal] {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-ijreveal].ij-revealed {
	opacity: 1;
	transform: none;
}

/* Stagger: article cards cascade in one after another */
.cmp_article_list > li[data-ijreveal]:nth-child(2) { transition-delay: 0.08s; }
.cmp_article_list > li[data-ijreveal]:nth-child(3) { transition-delay: 0.16s; }
.cmp_article_list > li[data-ijreveal]:nth-child(4) { transition-delay: 0.24s; }
.cmp_article_list > li[data-ijreveal]:nth-child(5) { transition-delay: 0.32s; }
.cmp_article_list > li[data-ijreveal]:nth-child(n+6) { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
	[data-ijreveal] {
		opacity: 1;
		transform: none;
		transition: none;
	}
}

/* ------------------------------------------------------------ masthead */

.ijii-masthead {
	background: var(--ij-card);
	border-bottom: 1px solid var(--ij-border);
}

.ijii-masthead-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 18px 20px;
	display: flex;
	align-items: center;
	gap: 24px;
	flex-wrap: wrap;
}

.ijii-brand {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-right: auto;
}

.ijii-brand-logo {
	display: flex;
	align-items: center;
	transition: opacity 0.15s ease;
}

.ijii-brand-logo:hover {
	opacity: 0.85;
}

.ijii-brand img {
	max-height: 116px;
	max-width: 560px;
	width: auto;
	object-fit: contain;
}

@media (max-width: 860px) {
	.ijii-brand img {
		max-height: 88px;
		max-width: 90vw;
	}
}

html.ijii-dark .ijii-brand img {
	background: #fff;
	padding: 8px 14px;
	border-radius: 6px;
}

.ijii-brand .ijii-brand-title {
	font-family: "Libre Baskerville", "Noto Serif Devanagari", Georgia, serif;
	font-size: 25px;
	font-weight: 700;
	color: var(--ij-ink);
	line-height: 1.15;
}

.ijii-brand .ijii-brand-sub {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: var(--ij-text-muted);
	letter-spacing: 0.02em;
}

.ijii-search {
	display: flex;
	border: 2px solid var(--ij-ink);
	border-radius: 4px;
	overflow: hidden;
	background: var(--ij-card);
}

.ijii-search input {
	border: 0;
	outline: none;
	padding: 9px 14px;
	min-width: 200px;
	font-family: inherit;
	font-size: 14px;
	background: transparent;
	color: var(--ij-text);
}

.ijii-search button {
	border: 0;
	background: transparent;
	color: var(--ij-ink);
	padding: 0 14px;
	cursor: pointer;
	font-size: 15px;
}

.ijii-search button:hover {
	color: var(--ij-amber);
}

.ijii-masthead-links {
	display: flex;
	align-items: center;
	gap: 16px;
	font-size: 14.5px;
	font-weight: 700;
}

.ijii-masthead-links a {
	color: var(--ij-ink);
}

.ijii-masthead-links a:hover {
	color: var(--ij-wash);
}

.ijii-masthead-links .fa {
	margin-right: 5px;
	color: var(--ij-indigo);
}

/* Logged-in user menu in the masthead */
.ijii-masthead-links .ijii-nav > li > a {
	padding: 8px 12px;
	border-bottom: 0;
	margin-bottom: 0;
	font-size: 15px;
}

.ijii-masthead-links .ijii-nav li ul {
	left: auto;
	right: 0;
}

/* ------------------------------------------------------------- navbar */

.ijii-navbar {
	background: var(--ij-card);
	border-bottom: 3px solid var(--ij-ink);
	position: relative;
	z-index: 900;
}

.ijii-navbar-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 12px;
}

.ijii-nav {
	display: flex;
	align-items: stretch;
	list-style: none;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.ijii-nav > li {
	position: relative;
}

.ijii-nav > li > a {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 15px 20px;
	font-size: 16px;
	font-weight: 700;
	color: var(--ij-ink);
	border-bottom: 3px solid transparent;
	margin-bottom: -3px;
}

.ijii-nav > li > a .fa {
	color: var(--ij-indigo);
	font-size: 14px;
}

.ijii-nav > li > a:hover,
.ijii-nav > li.ijii-nav-open > a {
	color: var(--ij-wash);
	border-bottom-color: var(--ij-saffron);
}

.ijii-nav li ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 230px;
	background: var(--ij-card);
	border: 1px solid var(--ij-border);
	border-top: 3px solid var(--ij-saffron);
	box-shadow: 0 10px 24px rgba(18, 41, 75, 0.15);
	list-style: none;
	margin: 0;
	padding: 6px 0;
	z-index: 950;
}

.ijii-nav li:hover > ul,
.ijii-nav li.ijii-nav-open > ul,
.ijii-nav li:focus-within > ul {
	display: block;
}

.ijii-nav li ul a {
	display: block;
	padding: 9px 18px;
	font-size: 14.5px;
	font-weight: 600;
	color: var(--ij-text);
}

.ijii-nav li ul a:hover {
	background: var(--ij-card-2);
	color: var(--ij-indigo);
}

.ijii-issn {
	display: flex;
	align-items: center;
	gap: 18px;
	font-size: 14px;
	font-weight: 700;
	color: var(--ij-ink);
	white-space: nowrap;
}

.ijii-issn span + span {
	border-left: 1px solid var(--ij-border);
	padding-left: 18px;
}

.ijii-nav-toggle {
	display: none;
	background: none;
	border: 2px solid var(--ij-ink);
	border-radius: 4px;
	color: var(--ij-ink);
	font-size: 18px;
	padding: 6px 12px;
	margin: 8px 0;
	cursor: pointer;
}

/* ------------------------------------------------------------- layout */

.pkp_structure_content {
	max-width: 1240px;
	width: 100%;
	box-sizing: border-box;
	margin: 0 auto;
	padding: 28px 20px 40px;
	display: block;
}

.pkp_structure_content.has_sidebar {
	display: flex;
	gap: 28px;
	align-items: flex-start;
}

.pkp_structure_main {
	flex: 1 1 auto;
	min-width: 0;
	float: none;
	width: auto;
	padding: 0;
	margin: 0;
}

/* The parent (default) theme draws full-height vertical rules around the
   main column with pseudo-elements; not part of this design. */
.pkp_structure_main::before,
.pkp_structure_main::after {
	display: none !important;
}

.pkp_structure_sidebar {
	flex: 0 0 300px;
	width: 300px;
	order: 2;
}

/* --------------------------------------------------------------- cards */

.ijii-card,
.pkp_structure_main .page,
.pkp_structure_main > .cmp_notification {
	background: var(--ij-card);
	border: 1px solid var(--ij-border);
	border-bottom: 3px solid var(--ij-card-rule);
	border-radius: var(--ij-radius);
	box-shadow: var(--ij-shadow);
	padding: 28px 30px;
	margin-bottom: 26px;
	transition: background 0.25s ease, border-color 0.25s ease;
}

.ijii-card > :first-child {
	margin-top: 0;
}

.ijii-card > :last-child {
	margin-bottom: 0;
}

.ijii-section-title {
	font-size: 26px;
	font-weight: 700;
	color: var(--ij-heading);
	margin: 0 0 20px;
}

.ijii-section-title .fa {
	color: var(--ij-saffron);
	margin-right: 8px;
	font-size: 20px;
}

/* ---------------------------------------------------------------- tabs */

.ijii-tabs {
	padding: 0;
	overflow: hidden;
}

.ijii-tab-bar {
	display: flex;
	border-bottom: 1px solid var(--ij-border);
	background: var(--ij-card-2);
}

.ijii-tab-bar button {
	appearance: none;
	background: transparent;
	border: 0;
	border-right: 1px solid var(--ij-border);
	padding: 15px 26px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--ij-text-muted);
	cursor: pointer;
	transition: background 0.15s ease, color 0.15s ease;
}

.ijii-tab-bar button.ijii-tab-active {
	background: var(--ij-ink);
	color: #fff;
	box-shadow: inset 0 -3px 0 var(--ij-saffron);
}

.ijii-tab-panels {
	padding: 26px 30px;
}

.ijii-tab-panel[hidden] {
	display: none;
}

.ijii-announcement + .ijii-announcement {
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--ij-border);
}

/* ------------------------------------------------------ homepage bits */

.ijii-areas {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 14px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ijii-areas li {
	position: relative;
	overflow: hidden;
	border: 2px solid var(--ij-indigo);
	border-radius: 4px;
	padding: 12px 16px;
	font-weight: 700;
	font-size: 15px;
	color: var(--ij-ink);
	background: var(--ij-card);
	cursor: default;
	z-index: 0;
	transition: color 0.3s ease;
}

/* Sweep-to-right fill on hover (as in the reference demo) */
.ijii-areas li::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--ij-ink);
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 0.3s ease-out;
	z-index: -1;
}

.ijii-areas li:hover {
	color: #fff;
}

.ijii-areas li:hover::before {
	transform: scaleX(1);
}

html.ijii-dark .ijii-areas li:hover {
	color: var(--ij-bg);
}

html.ijii-dark .ijii-areas li::before {
	background: var(--ij-indigo);
}

.ijii-current-issue .ijii-issue-flex {
	display: flex;
	gap: 26px;
	align-items: flex-start;
}

.ijii-current-issue .cover img {
	width: 210px;
	border: 1px solid var(--ij-border);
	border-radius: 4px;
	box-shadow: 0 6px 16px rgba(18, 41, 75, 0.18);
	transition: transform 0.25s ease;
}

.ijii-current-issue .cover img:hover {
	transform: scale(1.02);
}

.ijii-issue-body {
	flex: 1;
	min-width: 0;
}

.ijii-issue-title {
	font-size: 20px;
	font-weight: 800;
	margin: 0 0 8px;
}

.ijii-issue-meta {
	font-size: 14px;
	color: var(--ij-text-muted);
	margin-bottom: 12px;
}

.ijii-issue-meta .fa {
	color: var(--ij-saffron);
	margin-right: 5px;
}

/* View-all-issues / primary action buttons */
.ijii-btn {
	display: inline-block;
	padding: 11px 26px;
	border: 2px solid var(--ij-ink);
	border-radius: 4px;
	background: var(--ij-ink);
	color: #fff !important;
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.ijii-btn:hover {
	background: var(--ij-saffron);
	border-color: var(--ij-saffron);
	color: var(--ij-ink) !important;
	transform: translateY(-2px);
}

.ijii-btn-outline {
	background: transparent;
	color: var(--ij-ink) !important;
}

html.ijii-dark .ijii-btn-outline {
	color: var(--ij-heading) !important;
}

.ijii-btn-outline:hover {
	background: var(--ij-ink);
	color: #fff !important;
}

/* ------------------------------------------------- editorial pick slider */

.ijii-pick {
	position: relative;
}

/* Custom container class: the parent default theme auto-initializes every
   `.swiper` element with slidesPerView 1, which would hijack this slider.
   Padding gives the card shadows and hover-grow room to breathe. */
.ijii-pick .ijii-swiper {
	overflow: hidden;
	position: relative;
	z-index: 1;
	padding: 8px 6px 12px;
	margin: -8px -6px 0;
}

.ijii-pick-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	background: #F3F4F6;
	border-radius: 8px;
	overflow: hidden;
	color: inherit;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
	transform: translateZ(0);
	transition: transform 0.3s ease, box-shadow 0.3s ease, margin 0.3s ease;
}

html.ijii-dark .ijii-pick-card {
	background: #4B5563;
}

/* Hovered card grows and its shadow deepens while neighbours stay put.
   Staggered layout: every card is inset vertically except the first. */
.ijii-pick-card:hover {
	transform: scale(1.04);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.18), 0 4px 6px -4px rgba(0, 0, 0, 0.18);
	z-index: 5;
}

.ijii-pick .swiper-slide {
	height: auto;
	width: 320px;
	max-width: 85vw;
}

@media (min-width: 1024px) {
	.ijii-pick .swiper-slide {
		padding: 16px 0;
	}

	.ijii-pick .swiper-slide .ijii-pick-first {
		margin: -16px 0;
		height: calc(100% + 32px);
	}
}

.ijii-pick-media {
	display: block;
	height: 192px;
	overflow: hidden;
	flex: 0 0 auto;
	border-radius: 8px 8px 0 0;
}

.ijii-pick-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.45s ease;
}

.ijii-pick-card:hover .ijii-pick-media img {
	transform: scale(1.08);
}

.ijii-pick-placeholder {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, var(--ij-ink) 0%, var(--ij-indigo) 70%, var(--ij-wash) 100%);
}

.ijii-pick-placeholder span {
	color: #fff;
	font-weight: 800;
	font-size: 22px;
	letter-spacing: 0.08em;
	opacity: 0.9;
}

.ijii-pick-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 16px;
	flex: 1 1 auto;
}

.ijii-pick-card .title {
	font-size: 16.5px;
	font-weight: 700;
	line-height: 1.4;
	margin: 0;
}

.ijii-pick-card .title a {
	color: var(--ij-heading);
	transition: color 0.15s ease;
}

.ijii-pick-card .title a:hover {
	color: var(--ij-indigo);
}

html.ijii-dark .ijii-pick-card .title a {
	color: #F3F4F6;
}

.ijii-pick-card .meta {
	font-size: 14.5px;
	color: var(--ij-text);
	margin-top: 6px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

html.ijii-dark .ijii-pick-card .meta,
html.ijii-dark .ijii-pick-card .meta a {
	color: #D1D5DB;
}

.ijii-pick-card .meta a {
	color: var(--ij-text);
}

.ijii-pick-card .meta a:hover {
	color: var(--ij-indigo);
	text-decoration: underline;
}

.ijii-pick-card .meta .fa {
	width: 1.28571em;
	text-align: center;
	color: var(--ij-text);
	margin-right: 4px;
}

html.ijii-dark .ijii-pick-card .meta .fa {
	color: #D1D5DB;
}

.ijii-pick .swiper-scrollbar {
	position: relative;
	margin-top: 22px;
	height: 14px;
	padding: 3px;
	background: #1B1B2A;
	border-radius: 8px;
	box-sizing: border-box;
}

.ijii-pick .swiper-scrollbar-drag {
	height: 8px;
	background: #7A7A85;
	border-radius: 4px;
	cursor: grab;
}

.ijii-pick .swiper-scrollbar-drag:hover {
	background: #9A9AA5;
}

/* Navigation is the draggable scrollbar, as in the reference design */
.ijii-pick .swiper-button-prev,
.ijii-pick .swiper-button-next {
	display: none;
}

/* ------------------------------------------------------- article lists */

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

.cmp_article_list > li {
	margin: 0 0 20px;
}

.obj_article_summary {
	background: var(--ij-card);
	border: 1px solid var(--ij-border);
	border-radius: 6px;
	padding: 22px 26px;
	box-shadow: 0 1px 2px rgba(18, 41, 75, 0.05);
	transition: box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1), transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease;
}

.obj_article_summary:hover {
	box-shadow: 0 10px 24px rgba(18, 41, 75, 0.12);
	transform: translateY(-2px);
	border-color: var(--ij-wash);
}

.obj_article_summary .title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 10px;
	line-height: 1.4;
	text-wrap: balance;
}

.obj_article_summary .title a {
	color: var(--ij-indigo);
}

.obj_article_summary .title a:hover {
	color: var(--ij-indigo);
}

.obj_article_summary .meta {
	font-size: 15px;
	color: var(--ij-text-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 4px 18px;
}

.obj_article_summary .meta .fa {
	color: var(--ij-indigo);
	margin-right: 4px;
}

.obj_article_summary .ijii-affiliations {
	font-size: 14px;
	color: var(--ij-text-muted);
	margin-top: 6px;
	line-height: 1.55;
}

.obj_article_summary .galleys_links {
	border-top: 1px solid var(--ij-border);
	padding-top: 16px;
	margin-top: 16px;
}

.obj_article_summary .ijii-doi {
	font-size: 13.5px;
	margin-top: 10px;
	color: var(--ij-text-muted);
}

.obj_article_summary {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}

.obj_article_summary .cover {
	flex: 0 0 150px;
	order: -1;
}

.obj_article_summary .cover img {
	width: 150px;
	border-radius: 4px;
	transition: transform 0.25s ease;
}

.obj_article_summary .cover img:hover {
	transform: scale(1.03);
}

.obj_article_summary .ijii-summary-body {
	flex: 1 1 300px;
	min-width: 0;
}

/* Galley buttons (PDF / XML / HTML) */
.galleys_links {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.galleys_links li {
	margin: 0;
}

.obj_galley_link {
	display: inline-block;
	padding: 6px 18px;
	border: 2px solid var(--ij-amber);
	border-radius: 4px;
	color: var(--ij-amber);
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	transition: background 0.15s ease, color 0.15s ease;
}

.obj_galley_link:hover {
	background: var(--ij-amber);
	color: #fff;
}

/* --------------------------------------------------------- breadcrumbs */

.cmp_breadcrumbs {
	margin-bottom: 20px;
}

.cmp_breadcrumbs ol,
.cmp_breadcrumbs ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
}

.cmp_breadcrumbs li {
	position: relative;
	background: var(--ij-card);
	border: 1px solid var(--ij-border);
	padding: 7px 16px 7px 24px;
	font-size: 13.5px;
	font-weight: 700;
	clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%);
	margin-right: -6px;
}

.cmp_breadcrumbs li:first-child {
	clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%);
	padding-left: 16px;
	border-radius: 4px 0 0 4px;
}

.cmp_breadcrumbs li .separator {
	display: none;
}

.cmp_breadcrumbs li:last-child,
.cmp_breadcrumbs li[aria-current] {
	background: var(--ij-saffron);
	color: var(--ij-ink);
	border-color: var(--ij-saffron);
}

.cmp_breadcrumbs li:last-child a,
.cmp_breadcrumbs li:last-child span {
	color: var(--ij-ink);
}

/* -------------------------------------------------------- article page */

.obj_article_details .page_title {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.3;
	text-wrap: balance;
	margin: 0 0 8px;
}

.obj_article_details .subtitle {
	font-size: 20px;
	font-weight: 600;
	color: var(--ij-text-muted);
	margin: 0 0 14px;
}

.ijii-doi-row {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 4px 0 18px;
	font-size: 14.5px;
	font-weight: 700;
}

.ijii-doi-badge {
	display: inline-block;
	background: var(--ij-saffron);
	color: var(--ij-ink);
	font-size: 11px;
	font-weight: 800;
	text-transform: lowercase;
	border-radius: 50%;
	width: 26px;
	height: 26px;
	line-height: 26px;
	text-align: center;
}

.ijii-share {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 8px;
	margin: 0 0 20px;
}

.ijii-share-label {
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ij-text-muted);
	margin-right: 6px;
}

.ijii-share a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 36px;
	border: 1px solid var(--ij-border);
	color: var(--ij-ink);
	background: var(--ij-card);
	transform: skewX(-12deg);
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

html.ijii-dark .ijii-share a {
	color: var(--ij-heading);
}

.ijii-share a .fa {
	transform: skewX(12deg);
	font-size: 15px;
}

.ijii-share a:hover {
	background: var(--ij-ink);
	border-color: var(--ij-ink);
	color: #fff;
}

/* Main text takes the full content width; detail sections (Downloads,
   Published, Issue, License) form a full-width card grid below it. */
.obj_article_details .row {
	display: block;
}

.obj_article_details .main_entry {
	width: 100%;
	min-width: 0;
}

/* Detail sections stack full-width: Downloads, Published, Issue, Section, License */
.obj_article_details .entry_details {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
	margin-top: 28px;
	padding-top: 28px;
	border-top: 1px solid var(--ij-border);
}

.obj_article_details .entry_details > .item {
	width: 100%;
	margin-bottom: 0;
}

.obj_article_details .entry_details .cover_image img {
	max-width: 260px;
}

.ijii-fulltext-frame {
	width: 100%;
	height: 950px;
	border: 1px solid var(--ij-border);
	border-radius: 6px;
	background: var(--ij-card-2);
}

.obj_article_details .main_entry .item {
	margin-bottom: 24px;
}

.obj_article_details .item .label {
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ij-heading);
	border-bottom: 2px solid var(--ij-saffron);
	display: inline-block;
	padding-bottom: 3px;
	margin-bottom: 10px;
}

/* Author panel: padded card so names align with the page content */
.obj_article_details .main_entry .item.authors {
	margin: 10px 0 26px;
	padding: 18px 24px;
	background: var(--ij-card-2);
	border: 1px solid var(--ij-border);
	border-radius: 6px;
}

.obj_article_details .authors {
	list-style: none;
	margin: 0;
	padding: 0;
}

.obj_article_details .authors > li {
	margin-bottom: 10px;
}

.obj_article_details .authors .name {
	font-weight: 800;
	color: var(--ij-heading);
	display: block;
}

.obj_article_details .authors .affiliation,
.obj_article_details .authors .orcid,
.obj_article_details .authors .userGroup {
	display: block;
	font-size: 14px;
	color: var(--ij-text-muted);
}

.obj_article_details .item.doi .label {
	border-bottom: 0;
	display: inline;
	margin-right: 6px;
}

.obj_article_details .item.doi .value a {
	font-weight: 700;
}

/* Right column cards on the article page */
.obj_article_details .entry_details > .item {
	background: var(--ij-card);
	border: 1px solid var(--ij-border);
	border-bottom: 3px solid var(--ij-card-rule);
	border-radius: var(--ij-radius);
	box-shadow: var(--ij-shadow);
	padding: 18px 20px;
	margin-bottom: 18px;
}

.obj_article_details .entry_details .item .label {
	border-bottom: 1px solid var(--ij-border);
	display: block;
	font-size: 16px;
	text-transform: none;
	letter-spacing: 0;
	padding-bottom: 8px;
}

.obj_article_details .entry_details .cover_image img {
	border-radius: 4px;
}

.obj_article_details .galleys_links {
	margin-top: 4px;
}

/* ------------------------------------------------------------- sidebar */

.pkp_structure_sidebar .pkp_block,
.ijii-side-card {
	background: var(--ij-card);
	border: 1px solid var(--ij-border);
	border-bottom: 3px solid var(--ij-card-rule);
	border-radius: var(--ij-radius);
	box-shadow: var(--ij-shadow);
	padding: 20px 22px;
	margin-bottom: 20px;
}

.pkp_structure_sidebar .pkp_block .title,
.ijii-side-card .title {
	font-size: 18px;
	font-weight: 800;
	color: var(--ij-heading);
	margin: 0 0 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--ij-border);
	display: block;
}

.pkp_structure_sidebar .pkp_block ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.pkp_structure_sidebar .pkp_block li {
	margin-bottom: 8px;
}

/* Quick links styled as outlined buttons (information block etc.) */
.pkp_structure_sidebar .pkp_block_information li a,
.ijii-quicklinks a {
	display: block;
	border: 2px solid var(--ij-indigo);
	border-radius: 4px;
	padding: 11px 15px;
	font-weight: 700;
	font-size: 15.5px;
	color: var(--ij-ink);
	transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

html.ijii-dark .pkp_structure_sidebar .pkp_block_information li a,
html.ijii-dark .ijii-quicklinks a {
	color: var(--ij-heading);
}

.ijii-quicklinks a + a {
	margin-top: 12px;
}

.pkp_structure_sidebar .pkp_block_information li {
	margin-bottom: 12px;
}

.pkp_structure_sidebar .pkp_block_information li a:hover,
.ijii-quicklinks a:hover {
	border-color: var(--ij-saffron);
	transform: translateX(3px);
}

.ijii-quicklinks a .fa {
	color: var(--ij-indigo);
	margin-right: 8px;
}

/* Indexed In tiles */
.ijii-indexed-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

.ijii-indexed-tile {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 6px 8px;
	border: 1px solid var(--ij-border);
	border-radius: 4px;
	background: var(--ij-card-2);
	font-weight: 800;
	font-size: 13.5px;
	text-align: center;
	color: var(--ij-indigo);
	transition: transform 0.15s ease, border-color 0.15s ease;
}

.ijii-indexed-tile:hover {
	transform: translateY(-2px);
	border-color: var(--ij-saffron);
}

/* Article template card */
.ijii-template-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 10px 6px 4px;
	color: var(--ij-ink);
}

html.ijii-dark .ijii-template-link {
	color: var(--ij-heading);
}

.ijii-template-link > .fa {
	font-size: 44px;
	color: var(--ij-indigo);
	transition: transform 0.2s ease;
}

.ijii-template-link:hover > .fa {
	transform: translateY(-3px);
}

.ijii-template-text {
	font-size: 19px;
	font-weight: 800;
	line-height: 1.2;
}

.ijii-template-text .fa {
	color: var(--ij-saffron);
	font-size: 16px;
}

/* Analytics card */
.ijii-analytics img,
.ijii-analytics iframe {
	max-width: 100%;
}

/* Sidebar login card */
.ijii-login-card label {
	display: block;
	font-size: 14px;
	font-style: italic;
	margin-bottom: 4px;
	color: var(--ij-text);
}

.ijii-login-card label .req {
	color: #C0392B;
}

.ijii-login-card input[type="text"],
.ijii-login-card input[type="password"] {
	width: 100%;
	border: 1px solid var(--ij-border);
	border-radius: 3px;
	padding: 9px 10px;
	margin-bottom: 14px;
	font-family: inherit;
	font-size: 14px;
	background: var(--ij-card-2);
	color: var(--ij-text);
	box-sizing: border-box;
}

.ijii-login-card input:focus {
	outline: 2px solid var(--ij-wash);
	outline-offset: 1px;
}

.ijii-login-card .ijii-login-row {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ijii-login-card .ijii-login-links {
	font-size: 14px;
	margin-bottom: 12px;
}

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

.ijii-footer {
	background: var(--ij-card);
	border-top: 3px solid var(--ij-ink);
	margin-top: 30px;
}

.ijii-footer-inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 36px 20px 20px;
}

.ijii-footer-cols {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
	margin-bottom: 24px;
}

.ijii-footer-cols > div {
	flex: 1 1 240px;
	font-size: 15.5px;
	color: var(--ij-text-muted);
}

.ijii-footer-logo {
	max-height: 64px;
	width: auto;
	margin-bottom: 10px;
	display: block;
}

html.ijii-dark .ijii-footer-logo {
	background: #fff;
	padding: 6px;
	border-radius: 4px;
}

.ijii-footer h3 {
	font-size: 16px;
	font-weight: 800;
	margin: 0 0 10px;
	color: var(--ij-heading);
}

.ijii-footer h3::after {
	content: "";
	display: block;
	width: 34px;
	height: 3px;
	background: var(--ij-saffron);
	margin-top: 6px;
	border-radius: 2px;
}

.ijii-footer-bottom {
	border-top: 1px solid var(--ij-border);
	padding-top: 16px;
	font-size: 13.5px;
	color: var(--ij-text-muted);
	display: flex;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	align-items: center;
}

.ijii-footer .pkp_brand_footer {
	padding: 0;
}

html.ijii-dark .ijii-footer .pkp_brand_footer img {
	filter: brightness(1.6);
}

/* ---------------------------------------------------- night mode toggle */

.ijii-mode-toggle {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 1200;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 0;
	background: var(--ij-ink);
	color: #FDB813;
	font-size: 21px;
	cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
	transition: transform 0.2s ease, background 0.2s ease;
}

.ijii-mode-toggle:hover {
	transform: scale(1.08);
}

html.ijii-dark .ijii-mode-toggle {
	background: #F2A21C;
	color: #12294B;
}

/* ---------------------------------------------------- generic elements */

.pkp_structure_main .label,
.pkp_structure_main h2,
.pkp_structure_main h3 {
	font-family: "Libre Baskerville", "Noto Serif Devanagari", Georgia, serif;
}

.pkp_structure_main .page > h1,
.pkp_structure_main .page_title,
.page h1 {
	color: var(--ij-heading);
}

.cmp_notification {
	border: 1px solid rgba(242, 162, 28, 0.5);
	background: rgba(242, 162, 28, 0.08);
	padding: 14px 18px;
	border-radius: 6px;
	margin-bottom: 18px;
}

.cmp_button,
.pkp_form button[type="submit"],
button.submit {
	background: var(--ij-ink);
	border: 2px solid var(--ij-ink);
	border-radius: 4px;
	color: #fff;
	font-weight: 800;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	font-size: 13px;
	padding: 10px 24px;
	cursor: pointer;
	transition: background 0.18s ease;
}

.cmp_button:hover,
.pkp_form button[type="submit"]:hover {
	background: var(--ij-wash);
	border-color: var(--ij-wash);
	color: #fff;
}

/* Issue archive cards */
.obj_issue_summary {
	background: var(--ij-card-2);
	border: 1px solid var(--ij-border);
	border-radius: 4px;
	padding: 18px 20px;
	transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.obj_issue_summary:hover {
	box-shadow: 0 8px 20px rgba(18, 41, 75, 0.12);
	transform: translateY(-2px);
}

.obj_issue_summary .title {
	font-size: 18px;
	font-weight: 800;
}

.issues_archive > ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 18px;
}

/* Pagination */
.cmp_pagination a,
.cmp_pagination .current {
	display: inline-block;
	padding: 7px 13px;
	border: 1px solid var(--ij-border);
	border-radius: 4px;
	font-weight: 700;
	font-size: 14px;
}

.cmp_pagination .current {
	background: var(--ij-ink);
	color: #fff;
	border-color: var(--ij-ink);
}

/* ---------------------------------------------------------- responsive */

@media (max-width: 992px) {
	.pkp_structure_content.has_sidebar {
		flex-direction: column;
	}

	.pkp_structure_sidebar {
		width: 100%;
		flex-basis: auto;
	}

	.obj_article_details .entry_details {
		width: 100%;
		flex-basis: auto;
	}
}

@media (max-width: 860px) {
	.ijii-nav-toggle {
		display: block;
	}

	.ijii-navbar-inner {
		flex-wrap: wrap;
	}

	.ijii-nav {
		display: none;
		flex-direction: column;
		width: 100%;
		border-top: 1px solid var(--ij-border);
	}

	.ijii-navbar.ijii-nav-expanded .ijii-nav {
		display: flex;
	}

	.ijii-nav > li > a {
		border-bottom: 1px solid var(--ij-border);
		margin-bottom: 0;
	}

	.ijii-nav li ul {
		position: static;
		display: block;
		border: 0;
		box-shadow: none;
		padding-left: 26px;
	}

	.ijii-issn {
		display: none;
	}

	.ijii-masthead-inner {
		justify-content: center;
		text-align: center;
	}

	.ijii-brand {
		margin-right: 0;
	}

	.ijii-current-issue .ijii-issue-flex {
		flex-direction: column;
	}

	.ijii-current-issue .cover img {
		width: 170px;
	}
}
