/**
 * Front-end styles.
 *
 * Deliberately restrained: the theme owns typography and colour, so this only
 * lays things out and uses currentColor wherever possible.
 */

.nlj-issue__head {
	display: flex;
	flex-wrap: wrap;
	gap: 1.5rem;
	align-items: flex-start;
	margin-bottom: 2rem;
}

.nlj-issue__cover {
	flex: 0 0 220px;
	max-width: 100%;
}

.nlj-issue__cover img {
	width: 100%;
	height: auto;
	display: block;
	border: 1px solid rgba(0, 0, 0, 0.12);
}

.nlj-issue__meta {
	flex: 1 1 320px;
	min-width: 0;
}

.nlj-issue__number {
	font-weight: 700;
	font-size: 1.15em;
	margin: 0 0 0.5rem;
}

.nlj-issue__description {
	opacity: 0.9;
}

/* Contents ---------------------------------------------------------------- */

.nlj-toc__title {
	margin: 2rem 0 1rem;
}

.nlj-toc__rubric {
	margin: 1.75rem 0 0.5rem;
	font-size: 1em;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	opacity: 0.7;
}

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

.nlj-toc__item {
	padding: 0.6rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.nlj-toc__link {
	display: block;
	font-weight: 600;
}

.nlj-toc__authors,
.nlj-toc__pages {
	display: inline-block;
	margin-top: 0.2rem;
	font-size: 0.9em;
	opacity: 0.75;
}

.nlj-toc__pages::before {
	content: " · ";
}

/* Article ----------------------------------------------------------------- */

.nlj-article__title {
	margin: 0.5rem 0 0.75rem;
}

.nlj-article__byline {
	font-size: 1.05em;
	opacity: 0.85;
	margin: 0 0 1rem;
}

.nlj-article__dates {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 0.25rem 0.75rem;
	margin: 1.25rem 0;
	font-size: 0.95em;
}

.nlj-article__dates dt {
	opacity: 0.7;
}

.nlj-article__dates dd {
	margin: 0;
}

.nlj-article__footer {
	margin-top: 2rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
	font-size: 0.9em;
	opacity: 0.75;
}

/* Collapsible sections ---------------------------------------------------- */

.nlj-details {
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 4px;
	margin: 0.75rem 0;
}

.nlj-details > summary {
	cursor: pointer;
	padding: 0.7rem 1rem;
	font-weight: 600;
	list-style: none;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.nlj-details > summary::-webkit-details-marker {
	display: none;
}

.nlj-details > summary::before {
	content: "▸";
	display: inline-block;
	transition: transform 0.15s ease;
}

.nlj-details[open] > summary::before {
	transform: rotate(90deg);
}

.nlj-details__body {
	padding: 0 1rem 1rem;
}

.nlj-details__body > p:first-child {
	margin-top: 0;
}

/* People ------------------------------------------------------------------ */

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

.nlj-people__item {
	padding: 0.5rem 0;
	border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nlj-people__item:last-child {
	border-bottom: 0;
}

.nlj-people__name {
	display: block;
	font-weight: 600;
}

.nlj-people__info,
.nlj-people__email {
	display: block;
	font-size: 0.92em;
	opacity: 0.8;
}

.nlj-keywords {
	margin-top: 1rem;
}

.nlj-references {
	padding-left: 1.25rem;
	font-size: 0.94em;
}

.nlj-references li {
	margin-bottom: 0.4rem;
}

/* Buttons ----------------------------------------------------------------- */

.nlj-button {
	display: inline-block;
	padding: 0.55rem 1.1rem;
	border: 1px solid currentColor;
	border-radius: 4px;
	text-decoration: none;
	font-weight: 600;
	line-height: 1.2;
}

.nlj-button:hover,
.nlj-button:focus {
	text-decoration: none;
	opacity: 0.8;
}

.nlj-button--small {
	padding: 0.35rem 0.75rem;
	font-size: 0.9em;
	font-weight: 500;
}

.nlj-article__download--small {
	margin-top: 1.5rem;
}

@media (max-width: 600px) {
	.nlj-issue__cover {
		flex-basis: 160px;
	}

	.nlj-article__dates {
		grid-template-columns: 1fr;
	}

	.nlj-article__dates dt {
		margin-top: 0.4rem;
	}
}
