/* ==========================================================================
   New design (Carrot, Oct 2026): intro text with "Read more"
   Shared by the season, Twillis, Loomers and Dream of Nile pages. Values from the delivered
   prototype (app.css .col-intro rules; the season page shows 2 lines, the others 3).
   Loaded only for Preview users.
   ========================================================================== */

.s2-intro {
    padding: 0 20px 8px;
    text-align: center;
    font-family: var(--s2-font);
}
.s2-intro-text {
    --s2-intro-lines: 3;
    font-size: 14px;
    line-height: 1.45;
    max-height: calc(1.45em * var(--s2-intro-lines));
    overflow: hidden;
    color: var(--s2-indigo-dark);
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease;
}
.s2-intro-text p {
    margin: 0;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}
.s2-intro-text p + p {
    margin-top: 0.8em;
}

/* Season page: two smaller lines, so the page fits one screen */
.s2-intro.s2-intro-2 {
    padding: 0 16px 2px;   /* with 12px text the lines break as in the Figma SS28 frame */
}
.s2-intro-2 .s2-intro-text {
    --s2-intro-lines: 2;
    font-size: 12px;          /* Figma SS28 frame: 12px, lines ~16px apart (the Spec table says 12.5px) */
    line-height: 1.35;
    max-height: calc(1.35em * 2);
}
/* Figma (SS28): each paragraph starts on a new line with no gap between them */
.s2-intro-2 .s2-intro-text p + p {
    margin-top: 0;
}

.s2-intro-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 10px 0 0;
    padding: 6px 4px;
    border: 0;
    background: none;
    font-family: var(--s2-font);
    font-size: 14px;
    font-weight: 600;
    color: var(--s2-indigo);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.s2-intro-2 .s2-intro-toggle {
    margin-top: 0;
    padding: 4px;
    font-size: 12.5px;
}
.s2-intro-toggle[hidden] {
    display: none;
}
.s2-intro-toggle svg {
    transition: transform 0.45s var(--s2-ease-spring);
}
.s2-intro-toggle.is-open svg {
    transform: rotate(180deg);
}
