/* nunshen-ui — tea product page: folding of the really long descriptions (product-story.php adds .nui-story--long and
   the button above 150 words). Folded: 8 lines on desktop, 10 on phones, the last ones fading out; "Lire plus" opens
   the whole text, "Lire moins" folds it back. The text is always in the page (search engines, screen readers).
   Without JavaScript the text stays open and the button is hidden. */

.nui-story__more { display: none; }

.js-nui-story .nui-story--long .nui-story__text {
	max-height: calc(8 * 1.5em);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 3em), transparent);
	mask-image: linear-gradient(to bottom, #000 calc(100% - 3em), transparent);
}
.js-nui-story .nui-story--long.is-open .nui-story__text {
	max-height: none;
	-webkit-mask-image: none;
	mask-image: none;
}
.nui-story--long .nui-story__text > p:last-child { margin-bottom: 0; }

/* a text link, like "Modifier" in the sticky bar; the kit's button colours (and its white :hover / :focus) are undone */
.js-nui-story .nui-story--long .nui-story__more,
.js-nui-story .nui-story--long .nui-story__more:hover,
.js-nui-story .nui-story--long .nui-story__more:focus,
.js-nui-story .nui-story--long .nui-story__more:active {
	display: inline-block;
	margin: 10px 0 0;
	padding: 4px 0;
	border: 0;
	border-radius: 0;
	background: none;
	box-shadow: none;
	color: var(--nui-black, #000);
	font-family: var(--nui-font, "CORE SANS", sans-serif);
	font-size: 15px;
	font-weight: var(--nui-w-regular, 400);
	line-height: 1.4;
	letter-spacing: 0;
	text-transform: none;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	cursor: pointer;
}
.js-nui-story .nui-story--long .nui-story__more:focus-visible { outline: 1px solid var(--nui-black, #000); outline-offset: 3px; }

@media (max-width: 767px) {
	.js-nui-story .nui-story--long .nui-story__text { max-height: calc(10 * 1.5em); }
}
