/* ICBMED OJS Connector — inherits the ICBMED theme tokens, with fallbacks for any theme. */
.ojs-issues, .ojs-current, .ojs-toc, .ojs-empty {
	--_ink: var(--icb-ink, #0E1A36);
	--_accent: var(--icb-accent, #C8202F);
	--_paper: var(--icb-paper, #FFFFFF);
	--_cream: var(--icb-cream, #F4F1EA);
	--_muted: var(--icb-muted, #5B6475);
	--_rule: var(--icb-rule, #DDD6C8);
	--_serif: var(--icb-font-display, Georgia, "Times New Roman", serif);
	--_sans: var(--icb-font-body, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif);
	font-family: var(--_sans);
	color: var(--_ink);
}
.ojs-eyebrow {
	margin: 0 0 .5rem;
	font: 700 .72rem/1.3 var(--_sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--_accent);
}
.ojs-empty {
	padding: 2rem;
	border: 1px dashed var(--_rule);
	background: var(--_cream);
	text-align: center;
	color: var(--_muted);
}
.ojs-empty p { margin: 0; }

/* ---------- Grid ---------- */
.ojs-issues--grid {
	display: grid;
	grid-template-columns: repeat(var(--ojs-cols, 3), minmax(0, 1fr));
	gap: 2.25rem 1.75rem;
}
@media (max-width: 900px) { .ojs-issues--grid { grid-template-columns: repeat(min(var(--ojs-cols, 3), 2), minmax(0, 1fr)); } }
@media (max-width: 520px) { .ojs-issues--grid { grid-template-columns: 1fr; } }

.ojs-issue { display: flex; flex-direction: column; }
.ojs-issue__cover {
	display: block;
	aspect-ratio: 1 / 1.414;
	overflow: hidden;
	background: var(--_ink);
	box-shadow: 0 1px 0 var(--_rule), 0 18px 30px -18px rgba(14, 26, 54, .45);
	transition: transform .25s ease, box-shadow .25s ease;
}
.ojs-issue__cover:hover, .ojs-issue__cover:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 1px 0 var(--_rule), 0 26px 40px -18px rgba(14, 26, 54, .55);
}
.ojs-issue__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ojs-issue__placeholder {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 1.5rem;
	color: var(--_cream);
	background:
		linear-gradient(var(--_accent), var(--_accent)) top left / 100% 6px no-repeat,
		radial-gradient(circle at 85% 20%, rgba(255,255,255,.08) 0 30%, transparent 31%),
		var(--_ink);
}
.ojs-issue__placeholder-kicker { font: 700 .7rem var(--_sans); letter-spacing: .18em; text-transform: uppercase; color: var(--_accent); }
.ojs-issue__placeholder-title { font: 700 clamp(1.8rem, 3vw, 2.6rem)/1 var(--_serif); }
.ojs-issue__placeholder-meta { font: .75rem var(--_sans); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }

.ojs-issue__body { padding-top: 1.1rem; display: flex; flex-direction: column; flex: 1; }
.ojs-issue__title { margin: 0 0 .35rem; font: 600 1.2rem/1.25 var(--_serif); }
.ojs-issue__title a { color: inherit; text-decoration: none; }
.ojs-issue__title a:hover { color: var(--_accent); }
.ojs-issue__date, .ojs-issue__count { margin: 0 0 .35rem; font-size: .85rem; color: var(--_muted); }
.ojs-issue__desc { font-size: .92rem; color: var(--_muted); margin-bottom: .6rem; }
.ojs-link {
	margin-top: auto;
	padding-top: .5rem;
	font-weight: 600;
	font-size: .9rem;
	color: var(--_accent);
	text-decoration: none;
}
.ojs-link:hover span { margin-left: 4px; }
.ojs-link span { transition: margin .2s; }

/* ---------- List ---------- */
.ojs-issues--list .ojs-issue {
	flex-direction: row;
	gap: 1.5rem;
	padding: 1.5rem 0;
	border-top: 1px solid var(--_rule);
}
.ojs-issues--list .ojs-issue__cover { width: 110px; flex: none; }
.ojs-issues--list .ojs-issue__body { padding-top: 0; }

/* ---------- Current issue ---------- */
.ojs-current {
	display: grid;
	grid-template-columns: minmax(180px, 320px) 1fr;
	gap: clamp(1.5rem, 4vw, 3.5rem);
	align-items: start;
}
@media (max-width: 760px) { .ojs-current { grid-template-columns: 1fr; } .ojs-current__cover { max-width: 260px; } }
.ojs-current__cover { display: block; aspect-ratio: 1 / 1.414; background: var(--_ink); box-shadow: 0 28px 50px -24px rgba(14,26,54,.6); overflow: hidden; }
.ojs-current__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ojs-current__title { margin: 0 0 .5rem; font: 600 clamp(1.6rem, 3vw, 2.3rem)/1.15 var(--_serif); }
.ojs-current__meta { margin: 0 0 1rem; color: var(--_muted); font-size: .92rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.ojs-current__meta span::before { content: "·"; margin-right: .75rem; }
.ojs-current__meta:empty { display: none; }
.ojs-current__desc { color: var(--_muted); margin-bottom: 1rem; }

.ojs-mini-toc { list-style: none; counter-reset: toc; margin: 1.25rem 0; padding: 0; border-top: 1px solid var(--_rule); }
.ojs-mini-toc li { counter-increment: toc; padding: .8rem 0 .8rem 2.5rem; border-bottom: 1px solid var(--_rule); position: relative; }
.ojs-mini-toc li::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: .85rem; font: 700 .8rem var(--_sans); color: var(--_accent); }
.ojs-mini-toc a { color: var(--_ink); font-weight: 600; text-decoration: none; }
.ojs-mini-toc a:hover { color: var(--_accent); }
.ojs-authors { display: block; font-size: .85rem; color: var(--_muted); margin: .15rem 0 0; }

.ojs-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.25rem 0 0; }
.ojs-btn {
	display: inline-flex; align-items: center; gap: .4rem;
	padding: .75rem 1.25rem;
	border: 1px solid var(--_ink);
	color: var(--_ink);
	font: 600 .82rem var(--_sans);
	letter-spacing: .06em;
	text-transform: uppercase;
	text-decoration: none;
	transition: background .2s, color .2s, border-color .2s;
}
.ojs-btn:hover { background: var(--_ink); color: var(--_paper); }
.ojs-btn--primary { background: var(--_accent); border-color: var(--_accent); color: #fff; }
.ojs-btn--primary:hover { background: var(--_ink); border-color: var(--_ink); color: #fff; }

/* ---------- TOC ---------- */
.ojs-toc__header { display: flex; gap: 2rem; align-items: flex-start; padding-bottom: 2rem; margin-bottom: 1rem; border-bottom: 3px solid var(--_ink); }
.ojs-toc__cover { width: 180px; flex: none; box-shadow: 0 20px 36px -20px rgba(14,26,54,.6); }
@media (max-width: 640px) { .ojs-toc__header { flex-direction: column; } .ojs-toc__cover { width: 140px; } }
.ojs-toc__title { margin: 0 0 .5rem; font: 600 clamp(1.6rem, 3vw, 2.4rem)/1.15 var(--_serif); }
.ojs-toc__date { color: var(--_muted); margin: 0 0 1rem; }
.ojs-toc__desc { color: var(--_muted); }
.ojs-toc__section { margin-top: 2rem; }
.ojs-toc__section-title {
	margin: 0 0 .25rem;
	padding-top: .75rem;
	border-top: 2px solid var(--_accent);
	font: 700 .78rem var(--_sans);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--_accent);
	display: inline-block;
}
.ojs-toc__list { list-style: none; margin: 0; padding: 0; }
.ojs-article { display: flex; justify-content: space-between; gap: 1.5rem; padding: 1.1rem 0; border-bottom: 1px solid var(--_rule); }
.ojs-article__title { margin: 0 0 .25rem; font: 600 1.08rem/1.35 var(--_serif); }
.ojs-article__title a { color: var(--_ink); text-decoration: none; }
.ojs-article__title a:hover { color: var(--_accent); }
.ojs-article__abstract { font-size: .9rem; color: var(--_muted); margin-top: .5rem; }
.ojs-article__doi { font-size: .8rem; color: var(--_muted); margin: .35rem 0 0; }
.ojs-article__doi a { color: inherit; }
.ojs-article__side { display: flex; align-items: flex-start; gap: .5rem; flex: none; }
.ojs-article__pages { font-size: .8rem; color: var(--_muted); padding-top: .35rem; white-space: nowrap; }
.ojs-galley {
	display: inline-block; padding: .3rem .7rem;
	background: var(--_ink); color: #fff;
	font: 700 .72rem var(--_sans); letter-spacing: .08em; text-transform: uppercase;
	text-decoration: none;
}
.ojs-galley:hover { background: var(--_accent); color: #fff; }
@media (max-width: 640px) { .ojs-article { flex-direction: column; gap: .5rem; } }
