/* Magazine cover composition. The photograph keeps the centre of the plate;
   small coverlines sit at its left edge. Existing Noto/Hanken tokens and the
   owner's masthead retain their identities. */
body.prominent .fr-cap--magazine {
	right: auto;
	bottom: 28px;
	width: min(78%, 440px);
}

body.prominent .fr-cap--magazine .fr-cap__lab {
	margin-bottom: 10px;
	font-size: 10px;
	letter-spacing: .12em;
}

body.prominent .fr-cap--magazine .fr-cap__word[data-len] {
	display: -webkit-box;
	max-width: 24ch;
	overflow: hidden;
	font-size: clamp(30px, 2.8vw, 44px);
	line-height: 1.06;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

body.prominent .fr-cap--magazine .fr-cap__dek {
	max-width: 35ch;
	margin: 12px 0 0;
	color: var(--on-photo);
	font-family: var(--font-ui);
	font-size: 13px;
	font-weight: 400;
	line-height: 1.45;
}

/* The supporting line belongs to the home photograph. The existing lookbook
   marks a caption away from home while its photo/subject follow a story. */
body.prominent .fr-cap[data-cover-away] .fr-cap__dek {
	display: none !important;
}

body.prominent .fr-cap--magazine .fr-cap__open {
	margin-top: 10px;
	font-size: 10px;
}

body.prominent .fr-cover-teasers {
	position: absolute;
	z-index: 6;
	top: clamp(148px, 24vh, 216px);
	left: var(--pad);
	width: min(41%, 190px);
	color: var(--on-photo);
}

body.prominent .fr-cover-teasers::before {
	position: absolute;
	z-index: -1;
	inset: -48px -72px -48px calc(-1 * var(--pad));
	background: linear-gradient(to right, rgba(0, 0, 0, .65), rgba(0, 0, 0, .65) calc(100% - 72px), rgba(0, 0, 0, 0));
	-webkit-mask-image: linear-gradient(to bottom, transparent, #000 48px, #000 calc(100% - 48px), transparent);
	mask-image: linear-gradient(to bottom, transparent, #000 48px, #000 calc(100% - 48px), transparent);
	content: "";
	pointer-events: none;
}

body.prominent .fr-cover-teasers ul {
	display: grid;
	gap: 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

body.prominent .magcover .fr-cover-teasers li {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.prominent .magcover .fr-cover-teasers li::before,
body.prominent .magcover .fr-cover-teasers li::after {
	display: none;
}

body.prominent .fr-cover-teasers a {
	display: block;
	min-height: 44px;
	color: var(--on-photo);
	text-decoration: none;
	text-underline-offset: .18em;
}

body.prominent .fr-cover-teasers a:hover .fr-cover-teasers__copy,
body.prominent .fr-cover-teasers a:focus-visible .fr-cover-teasers__copy {
	text-decoration: underline;
}

body.prominent .fr-cover-teasers a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 5px;
}

body.prominent .fr-cover-teasers__label {
	display: block;
	margin-bottom: 5px;
	font-family: var(--font-ui);
	font-size: 10px;
	font-weight: 500;
	line-height: 1.35;
	letter-spacing: .12em;
	text-transform: uppercase;
}

body.prominent .fr-cover-teasers__copy {
	display: -webkit-box;
	overflow: hidden;
	font-family: var(--font-display);
	font-size: 18px;
	font-weight: 400;
	line-height: 1.17;
	text-wrap: balance;
	overflow-wrap: anywhere;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

/* A third optional coverline uses a tighter setting, so the editor cannot
   push the main caption into it on the shorter portrait plate. */
body.prominent .fr-cover-teasers[data-count="3"] ul {
	gap: 12px;
}

body.prominent .fr-cover-teasers[data-count="3"] .fr-cover-teasers__copy {
	font-size: 16px;
	-webkit-line-clamp: 2;
}

body.prominent .fr-cover-teasers[data-count="3"] ~ .fr-cap .fr-cap__word[data-len],
body.prominent .fr-cover-teasers[data-count="3"] ~ .fr-cap.fr-cap--head .fr-cap__head {
	font-size: 28px;
	-webkit-line-clamp: 2;
}

body.prominent .fr-cover-teasers[data-count="3"] ~ .fr-cap .fr-cap__dek {
	display: -webkit-box;
	overflow: hidden;
	font-size: 12px;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

/* A script may replace a subject's text and hidden attribute. These owner
   choices survive those changes, and remove links from keyboard navigation. */
body.prominent.fr-cover-hide-masthead .magcover .cover-logo,
body.prominent.fr-cover-hide-label .magcover .fr-cap__lab,
body.prominent.fr-cover-hide-title .magcover .fr-cap__word,
body.prominent.fr-cover-hide-title .magcover .fr-cap__head,
body.prominent.fr-cover-hide-dek .magcover .fr-cap__dek,
body.prominent.fr-cover-hide-teasers .magcover .fr-cover-teasers,
body.prominent.fr-cover-hide-link .magcover .fr-cap__open,
body.prominent.fr-cover-text-off .magcover .cover-logo,
body.prominent.fr-cover-text-off .magcover .fr-cap,
body.prominent.fr-cover-text-off .magcover .fr-cover-teasers,
body.prominent.fr-cover-text-off .magcover .cover-sidebar-left,
body.prominent.fr-cover-text-off .magcover .cover-sidebar-right,
body.prominent.fr-cover-text-off .magcover .fr-shade,
body.prominent .fr-cap--magazine[hidden],
body.prominent .fr-cap--magazine .fr-cap__word[hidden],
body.prominent .fr-cap--magazine .fr-cap__lab[hidden],
body.prominent .fr-cap--magazine .fr-cap__head[hidden] {
	display: none !important;
}

@media only screen and (max-width: 960px) {
	body.prominent .fr-cap--magazine.fr-cap--subject .fr-cap__word[data-len] {
		display: -webkit-box;
		font-size: clamp(30px, 8vw, 40px);
	}

	body.prominent .fr-cap--magazine.fr-cap--subject .fr-cap__head {
		display: none !important;
	}

	body.prominent .fr-cap--magazine {
		width: min(84%, 440px);
	}

	body.prominent .fr-cap--magazine.fr-cap--head .fr-cap__word {
		display: none;
	}

	body.prominent .fr-cap--magazine.fr-cap--head .fr-cap__head {
		display: -webkit-box;
		max-width: 27ch;
		overflow: hidden;
		font-size: clamp(28px, 7.3vw, 38px);
		line-height: 1.07;
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 3;
	}

	body.prominent .fr-cover-teasers {
		top: 150px;
		width: min(43%, 200px);
	}

	body.prominent .fr-cover-teasers__copy {
		font-size: 17px;
	}

	/* A hidden cover title must not also hide the article's real headline. */
	body.prominent.fr-cover-hide-title .magcover ~ .magcontent .fr-front .fr-lead__h,
	body.prominent.single-post .magcover ~ .magcontent .post-entry .fr-story__h {
		position: static !important;
		width: auto;
		height: auto;
		margin: 22px 0 0;
		overflow: visible;
		clip-path: none;
		white-space: normal;
	}
}

/* The smaller desktop plate needs the same compact setting as a phone. */
@media only screen and (min-width: 961px) and (max-height: 740px) {
	body.prominent .fr-cover-teasers {
		top: 138px;
	}

	body.prominent .fr-cover-teasers ul {
		gap: 12px;
	}

	body.prominent .fr-cover-teasers__copy {
		font-size: 16px;
		-webkit-line-clamp: 2;
	}

	body.prominent .fr-cap--magazine .fr-cap__word[data-len] {
		font-size: 30px;
	}
}
