/*
 * Retrospektive – digitalni arhiv. Neodvisno od teme: vsi selektorji so pod .rj-*.
 * Barve in mere so v spremenljivkah, tema jih lahko nastavi na :root ali .rj-wrap.
 */

.rj-wrap {
	--rj-accent: #801f1b;
	--rj-border: #e0dede;
	--rj-font-size: 14px;
	--rj-title-size: 18px;
	--rj-cover-width: 200px;
	--rj-gap: 2em;
	box-sizing: border-box;
	width: 100%;
}

.rj-wrap *,
.rj-wrap *::before,
.rj-wrap *::after {
	box-sizing: inherit;
}

/* Blok teme (FSE) nimajo ovoja vsebine, ki ga ima klasična tema. */
.rj-standalone .rj-wrap {
	max-width: var(--wp--style--global--wide-size, 1200px);
	margin: 2em auto;
	padding: 0 1rem;
}

/* ---------- Skupno: naslovi, avtorji, strani ---------- */

.rj-wrap .p-summary {
	font-size: var(--rj-font-size);
}

.rj-wrap .p-name,
.rj-wrap .p-summary,
.rj-wrap .nazaj-vse-revije {
	font-weight: bold;
}

.rj-wrap .p-name,
.rj-wrap .nazaj-vse-revije {
	font-size: var(--rj-title-size);
}

.rj-wrap .dt-issued,
.rj-wrap .p-author,
.rj-wrap .p-stran {
	display: block;
	margin-left: 1.25em;
	font-size: var(--rj-font-size);
}

.rj-wrap .p-stran {
	float: right;
	margin-left: .5em;
}

.rj-wrap .p-doi,
.rj-wrap .p-datumi {
	margin: .5em 0 0;
	font-size: var(--rj-font-size);
}

.rj-copy {
	display: inline;
	margin: 0 0 0 .25em;
	padding: 0;
	border: 0;
	background: none;
	font-size: .8em;
	line-height: 1;
	vertical-align: super;
	cursor: pointer;
}

.rj-copy.is-copied::after {
	content: ' ✓';
	color: var(--rj-accent);
}

.rj-articles {
	margin: 0;
	padding-left: 0;
	list-style: none;
}

.rj-articles__title {
	margin: 0 0 .75em;
	font-size: inherit;
	line-height: 1.4;
}

.rj-articles a::after {
	content: '';
	display: table;
	clear: both;
}

/* ---------- Arhiv ---------- */

.rj-issue + .rj-issue {
	margin-top: 30px;
	padding-top: 30px;
	border-top: 4px double var(--rj-border);
}

.rj-issue__cover {
	display: block;
	margin-bottom: 2em;
}

.rj-issue__cover img {
	display: block;
	width: 100%;
	height: auto;
}

.rj-issue__title {
	margin: 0 0 1em;
}

.rj-issue .rj-articles__item + .rj-articles__item {
	margin-top: .75em;
}

/* Zasebna revija (vidijo jo samo prijavljeni uredniki): zatemnjena, ker ni javno dostopna; opomba ostane polno vidna. */
.rj-issue--private .rj-issue__cover,
.rj-issue--private .rj-issue__content > :not(.rj-private-note) {
	opacity: .5;
	transition: opacity .2s;
}

.rj-issue--private .rj-issue__cover img {
	filter: grayscale(1);
}

.rj-issue--private:hover .rj-issue__cover,
.rj-issue--private:hover .rj-issue__content > :not(.rj-private-note),
.rj-issue--private:focus-within .rj-issue__cover,
.rj-issue--private:focus-within .rj-issue__content > :not(.rj-private-note) {
	opacity: .85;
}

/* Opomba »Ni javno dostopno« (arhiv, revija, članek). */
.rj-private-note {
	display: inline-block;
	margin: 0 0 1em;
	padding: .4em .8em;
	border: 2px solid #b32d2e;
	border-radius: 3px;
	background: #fcf0f1;
	color: #b32d2e;
	font-weight: 600;
}

@media (min-width: 768px) {
	.rj-issue {
		display: flex;
		flex-flow: row nowrap;
		align-items: flex-start;
	}

	.rj-issue__cover {
		flex: 0 0 var(--rj-cover-width);
		width: var(--rj-cover-width);
	}

	.rj-issue__content {
		flex: 1 1 auto;
		min-width: 0;
		padding-left: 2em;
	}
}

@media (max-width: 767px) {
	.rj-issue__title .p-name {
		display: block;
	}
}

.rj-pagination {
	clear: both;
	margin-top: 2em;
	text-align: center;
}

.rj-pagination .nav-links {
	display: inline-flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: .35em;
}

.rj-pagination .page-numbers {
	display: inline-block;
	min-width: 2.25em;
	padding: .35em .6em;
	border: 1px solid var(--rj-border);
	text-decoration: none;
}

.rj-pagination .page-numbers.current {
	border-color: var(--rj-accent);
	color: var(--rj-accent);
	font-weight: bold;
}

.rj-pagination .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
}

/* ---------- Revija / članek ---------- */

.rj-single {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: var(--rj-gap);
}

@media (min-width: 801px) {
	.rj-single {
		grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	}
}

.rj-article-header__title {
	margin-bottom: 0;
}

.rj-pdf__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	margin: 1.5em 0;
}

.rj-pdf__button {
	display: inline-flex;
	align-items: center;
	gap: .5em;
}

.rj-pdf__button img {
	width: auto;
	height: 25px;
}

.rj-pdf-frame {
	display: block;
	width: 100%;
	height: 80vh;
	min-height: 500px;
	border: 1px solid var(--rj-border);
}

.rj-section hr {
	margin: 4em 0 3em;
}

.rj-prev-next {
	display: flex;
	flex-flow: row nowrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 1em;
	margin-top: 3em;
}

.rj-prev-next a[rel="next"] {
	text-align: right;
}

/* Stranska vrstica */

.rj-sidebar h3 {
	margin: 0 0 1em;
	line-height: 1.3;
}

.rj-sidebar .rj-sidebar__back {
	margin-top: 1em;
}

.rj-sidebar .rj-articles__item + .rj-articles__item {
	margin-top: .5em;
	line-height: 1.25;
}

.rj-sidebar .is-current > a {
	position: relative;
	padding-left: 1em;
	color: var(--rj-accent);
}

.rj-sidebar .is-current > a::before {
	content: '\2023';
	position: absolute;
	left: 0;
	width: 1em;
	color: inherit;
}
