/*
Package: LVD Read More (style)
Version: 1.0.0
Author: Live Design
Pairs with js/lvd-read-more.js — markup contract in that file's header.
*/

/* Rows animate 0fr → 1fr at the content's real height, no JS measuring */
.lvd-read-more                        {display:grid; grid-template-rows:0fr; transition:grid-template-rows .4s cubic-bezier(0.65, 0, 0.35, 1);}
[data-lvd-read-more].lvd-active .lvd-read-more {grid-template-rows:1fr;}
.lvd-read-more-inner                  {min-height:0; overflow:hidden; outline:none;}
.lvd-read-more-inner > .lvd-text      {padding-top:var(--lvd-mb-txt);}

/* Fade the visible text itself: works on any background (transparent surfaces, images),
   so it needs no surface token. Capped at a third of the text so a one- or two-line text stays readable.
   Not animated: switching the mask is a single repaint, not one per frame. */
.lvd-read-more-fade                   {-webkit-mask-image:linear-gradient(to bottom, #000 calc(100% - min(48px, 33%)), transparent); mask-image:linear-gradient(to bottom, #000 calc(100% - min(48px, 33%)), transparent);}
[data-lvd-read-more].lvd-active .lvd-read-more-fade {-webkit-mask-image:none; mask-image:none;}

.lvd-read-more-actions                {margin-top:16px;}
/* The CTA repeater renders its own wrapper; let its buttons join the toggle's row */
.lvd-read-more-buttons                {display:contents;}

@media (prefers-reduced-motion: reduce) {
.lvd-read-more                        {transition:none;}
}
