/*
 * Frische Brise — Beitrag display
 *
 * Renders each Einsendung as: quoted text (clamped to N lines) + attribution +
 * an optional toggle button. The toggle is hidden by default and only shown by
 * beitrag.js when the text actually overflows. Full content is always present
 * in the DOM — expansion is a CSS class flip, never a server roundtrip.
 */

.fb-beitrag {
	display: block;
	position: relative;
}

.fb-beitrag__text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	overflow: hidden;
	text-overflow: ellipsis;
}

.fb-beitrag.is-expanded .fb-beitrag__text {
	-webkit-line-clamp: unset;
	line-clamp: unset;
	display: block;
	overflow: visible;
}

.fb-beitrag__attribution {
	display: block;
	margin-top: 0.5em;
}

.fb-beitrag__attribution .fb-attribution-anon {
	opacity: 0.7;
}

.fb-beitrag__toggle {
	display: none;            /* JS reveals when text overflows */
	margin-top: 0.5em;
	padding: 0;
	background: transparent;
	border: 0;
	color: currentColor;      /* matches body text — interactive elements are black */
	font: inherit;
	font-size: 0.875em;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fb-beitrag__toggle:hover,
.fb-beitrag__toggle:focus-visible {
	text-decoration: none;
}

.fb-beitrag__toggle.is-visible {
	display: inline-block;
}
