/*!
 * SciPublish OJS AMI Digital - archive.css : issue archive page (hero, filter, cover grid, pagination).
 * Uses the --sp-* colours set in Edit Portal.
 */
.sp-archive { --sp-ac-r: 18px; }

/* Hero banner */
.sp-ah { position: relative; overflow: hidden; border-radius: 24px; padding: 44px 48px 40px; margin: 0 0 26px; min-height: 190px;
	background: linear-gradient(100deg, #f4f8ff 0%, #e4eeff 45%, color-mix(in srgb, var(--sp-blue) 14%, #dfeaff) 100%); box-shadow: var(--sp-shadow); }
.sp-ah::before { content: ""; position: absolute; inset: 0; background: var(--sp-ah-img) right center / auto 100% no-repeat; opacity: .9; pointer-events: none; }
.sp-ah::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #eef4ff 0%, #eef4ff 34%, rgba(238, 244, 255, 0) 70%); pointer-events: none; }
.sp-ah > * { position: relative; z-index: 1; }
.sp-ah_bar { display: block; width: 64px; height: 5px; border-radius: 3px; background: var(--sp-blue); margin-bottom: 14px; }
.sp-content .sp-ah h1 { margin: 0 0 8px; font-size: clamp(32px, 5vw, 54px); font-weight: 800; letter-spacing: -.02em; color: var(--sp-navy); }
.sp-ah p { margin: 0; max-width: 34em; font-size: clamp(15px, 1.8vw, 19px); color: var(--sp-muted); }

/* Filter bar */
.sp-af { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.sp-af_chips { display: flex; flex-wrap: wrap; gap: 10px; }
.sp-body a.sp-yc { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 999px; background: #fff; border: 1px solid var(--sp-line);
	color: var(--sp-ink); font-weight: 600; font-size: 15px; box-shadow: 0 2px 8px rgba(13, 31, 64, .06); transition: transform .15s, background .15s, color .15s; }
.sp-body a.sp-yc:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--sp-blue) 9%, #fff); color: var(--sp-blue); }
.sp-body a.sp-yc.is-on { background: var(--sp-blue); border-color: var(--sp-blue); color: #fff; }
.sp-af_sort { display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px 6px 18px; background: #fff; border: 1px solid var(--sp-line); border-radius: 999px; box-shadow: 0 2px 8px rgba(13, 31, 64, .06); font-size: 15px; font-weight: 600; color: var(--sp-ink); }
.sp-af_sort select { border: 0 !important; background: transparent; font: inherit; font-weight: 600; padding: 6px 8px !important; cursor: pointer; color: var(--sp-ink); }

/* Cover grid */
.sp-ag { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.sp-ac { min-width: 0; }
.sp-body a.sp-ac_link { display: block; border-radius: var(--sp-ac-r); }
.sp-ac_cover { position: relative; display: flex; flex-direction: column; aspect-ratio: 3 / 4; border-radius: var(--sp-ac-r); overflow: hidden; box-shadow: 0 10px 26px rgba(13, 31, 64, .18); transition: transform .2s ease, box-shadow .2s ease; }
.sp-ac_link:hover .sp-ac_cover, .sp-ac_link:focus-visible .sp-ac_cover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(13, 31, 64, .26); }
.sp-ac_cover--img { background: var(--sp-navy); }
.sp-ac_cover--img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-ac_cap { display: flex; flex-direction: column; gap: 2px; padding: 12px 4px 0; line-height: 1.35; }
.sp-ac_cap strong { color: var(--sp-navy); font-size: 15px; }
.sp-ac_cap span { color: var(--sp-muted); font-size: 14px; }

/* Generated cover (issue without a cover image) */
.sp-ac_cover--gen { padding: 11% 9% 9%; color: #fff; }
.sp-ac_cover--gen::before, .sp-ac_cover--gen::after { content: ""; position: absolute; pointer-events: none; }
.sp-ac_name { position: relative; z-index: 1; font-size: clamp(20px, 2.3vw, 30px); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; overflow-wrap: anywhere; }
.sp-ac_tag { position: relative; z-index: 1; margin-top: 6px; font-size: clamp(11px, 1.05vw, 13px); opacity: .92; }
.sp-ac_rule { position: relative; z-index: 1; display: block; width: 34px; height: 2px; margin: auto 0 14px; background: currentColor; opacity: .85; }
.sp-ac_meta { position: relative; z-index: 1; font-size: clamp(12px, 1.1vw, 14px); line-height: 1.45; }
.sp-ac_meta strong { font-weight: 700; }

.sp-pal0 { background: linear-gradient(160deg, #0b3fa8, #07245f); }
.sp-pal0::before { right: -30%; top: -10%; width: 90%; height: 90%; border-radius: 50%; background: radial-gradient(circle at 40% 40%, rgba(120, 190, 255, .55), transparent 62%); }
.sp-pal0::after { right: -25%; bottom: -35%; width: 95%; height: 70%; border-radius: 50%; border: 2px solid rgba(140, 200, 255, .35); box-shadow: 0 0 40px rgba(60, 140, 255, .5) inset; }
.sp-pal1 { background: linear-gradient(160deg, #f7faff, #dbe8fb); color: #0d1f40; }
.sp-pal1::before { right: -18%; top: 0; width: 55%; height: 100%; background: linear-gradient(160deg, #bcd4f6, #3d7be0); clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%); opacity: .85; }
.sp-pal1::after { right: 0; top: 0; width: 12%; height: 62%; background: #0f60dc; }
.sp-pal2 { background: linear-gradient(160deg, #0f6b4a, #06382b); }
.sp-pal2::before { right: -35%; top: -10%; width: 100%; height: 120%; border-radius: 50%; background: radial-gradient(ellipse at 30% 50%, rgba(110, 230, 140, .6), transparent 62%); }
.sp-pal2::after { right: -20%; bottom: -10%; width: 80%; height: 55%; border-radius: 50%; border: 2px solid rgba(160, 255, 190, .3); }
.sp-pal3 { background: linear-gradient(160deg, #7b2fd0, #2a1a98); }
.sp-pal3::before { right: -10%; top: -6%; width: 70%; height: 55%; background: radial-gradient(rgba(255, 255, 255, .55) 1.4px, transparent 1.6px) 0 0 / 11px 11px; opacity: .6; -webkit-mask-image: radial-gradient(circle at 70% 25%, #000, transparent 70%); mask-image: radial-gradient(circle at 70% 25%, #000, transparent 70%); }
.sp-pal3::after { left: -10%; bottom: -25%; width: 130%; height: 60%; border-radius: 50%; background: radial-gradient(ellipse, rgba(110, 120, 255, .65), transparent 65%); }
.sp-pal4 { background: linear-gradient(160deg, #fff4e3, #ffd8a0); color: #1d2b44; }
.sp-pal4::before { right: -25%; top: 5%; width: 90%; height: 100%; border-radius: 50%; background: linear-gradient(160deg, #ffb64d, #f07f12); opacity: .85; }
.sp-pal4::after { right: -10%; bottom: -25%; width: 80%; height: 65%; border-radius: 50%; background: #e86a0c; opacity: .75; }
.sp-pal5 { background: linear-gradient(160deg, #123a93, #051a52); }
.sp-pal5::before { right: -6%; bottom: -4%; width: 78%; height: 64%; background: linear-gradient(135deg, rgba(90, 160, 255, .5), transparent); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }
.sp-pal5::after { right: 12%; bottom: 10%; width: 44%; height: 36%; border: 2px solid rgba(120, 190, 255, .5); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); }

/* Pagination + empty state */
.sp-pg { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 34px 0 6px; }
.sp-body .sp-pg_btn, .sp-body .sp-pg_num { display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 6px; border-radius: 50%; background: #fff; border: 1px solid var(--sp-line); color: var(--sp-blue); font-weight: 700; box-shadow: 0 2px 8px rgba(13, 31, 64, .06); }
.sp-body a.sp-pg_btn:hover, .sp-body a.sp-pg_num:hover { background: color-mix(in srgb, var(--sp-blue) 9%, #fff); }
.sp-body .sp-pg_num.is-on { background: var(--sp-blue); border-color: var(--sp-blue); color: #fff; }
.sp-pg_btn.is-off { opacity: .4; color: var(--sp-muted); }
.sp-pg_gap { color: var(--sp-muted); padding: 0 4px; }
.sp-ag_empty { padding: 40px 0; text-align: center; color: var(--sp-muted); }

@media (max-width: 1000px) { .sp-ag { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
	.sp-ag { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
	.sp-ah { padding: 30px 24px 28px; }
	.sp-ah::after { background: linear-gradient(90deg, #eef4ff 0%, rgba(238, 244, 255, .8) 55%, rgba(238, 244, 255, .35) 100%); }
	.sp-af_chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; max-width: 100%; }
	.sp-body a.sp-yc { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .sp-ac_cover, .sp-yc { transition: none; } .sp-ac_link:hover .sp-ac_cover { transform: none; } }
