/**
 * The summary at the top of an article.
 *
 * Deliberately plain: the class names are here for a theme to dress, and what
 * ships is enough for the box to read as a box on a theme that dresses nothing.
 */

.igd-tldr {
	margin: 0 0 32px;
	padding: 16px 20px;
	border-left: 4px solid currentColor;
	border-radius: 4px;
	background: rgba(127, 127, 127, 0.08);
}

.igd-tldr-label {
	margin: 0 0 4px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	opacity: 0.7;
}

.igd-tldr-body {
	margin: 0;
	font-size: 1.0625rem;
	line-height: 1.5;
}

.igd-tldr-body a {
	text-decoration: underline;
}

/* Native disclosure, with a single-line preview and the site's stroked icon. */
.igd-tldr-toggle {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	list-style: none;
	cursor: pointer;
}

.igd-tldr-toggle::-webkit-details-marker {
	display: none;
}

.igd-tldr-toggle::marker {
	content: '';
}

.igd-tldr-toggle > .igd-tldr-label {
	flex: 0 0 auto;
	margin: 0;
}

.igd-tldr-preview {
	flex: 1 1 0%;
	min-width: 0;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.5;
	text-transform: none;
	letter-spacing: normal;
}

.igd-tldr-chevron {
	flex: 0 0 20px;
	margin-inline-start: auto;
}

.igd-tldr[open] > .igd-tldr-toggle {
	margin-bottom: 8px;
}

.igd-tldr[open] .igd-tldr-preview {
	display: none;
}

.igd-tldr[open] .igd-tldr-chevron {
	transform: rotate(180deg);
}

.igd-tldr-toggle:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

/* The jump to the verdict, on a review.
 *
 * To the right and hard against the bottom: it closes the box rather than
 * being another line of it, and a paragraph of prose followed by a short link
 * on the left reads as a sentence that got cut off. */
.igd-tldr-verdict {
	margin: 8px 0 0;
	text-align: right;
	font-size: 0.9375rem;
}

.igd-tldr-verdict:last-child {
	margin-bottom: 0;
}

/* The box's own padding is what stands between the link and the edge. */
.igd-tldr > :last-child {
	margin-bottom: 0;
}

.igd-tldr-verdict a {
	font-weight: 600;
	text-decoration: underline;
}
