/* ==========================================================================
   Insights slider — [srh_insights_slider] (home page + fund pages)
   Image left / text right on a stone panel, fading slides, black arrows.
   Phones show only the first slide as text (live home behaviour).
   ========================================================================== */
.insights-slider {
    position: relative;
    background: var(--stone);
    overflow: hidden;
    container-type: inline-size;
}
.insights-slider__track { display: grid; }
.insights-slide {
    grid-area: 1 / 1;              /* all slides share one cell → height = tallest */
    display: grid;
    grid-template-columns: 47.25% 1fr;
    column-gap: 5.5%;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s ease, visibility .5s;
}
.insights-slide.is-active { opacity: 1; visibility: visible; }

.insights-slide__media { position: relative; min-height: 375px; }
.insights-slide__media img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}
.insights-slide__body {
    align-self: end;                       /* live: text block sits ~30px above the bottom edge */
    padding: 3cqw 10cqw 32px 3cqw;
}
.insights-slide__title {
    font-size: 24px;
    line-height: 1.1;
    font-weight: 500;
    padding-bottom: 10px;
}
.insights-slide__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.insights-slide__excerpt {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.3;
    margin: 20px 0;
}

.insights-slider__arrow {
    position: absolute;
    top: 50%;
    width: 50px; height: 50px;
    transform: translateY(-50%);
    padding: 0; border: 0; cursor: pointer;
    background: var(--black);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M48 25H3M20 8L3 25l17 17'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 50' fill='none' stroke='%23000' stroke-width='1.6'%3E%3Cpath d='M48 25H3M20 8L3 25l17 17'/%3E%3C/svg%3E") center / contain no-repeat;
    transition: opacity .3s ease;
}
.insights-slider__arrow:hover { opacity: .6; }
.insights-slider__arrow--prev { left: 22px; }
.insights-slider__arrow--next { right: 22px; transform: translateY(-50%) scaleX(-1); }

/* Fund pages: slider under Fund Documents / Fund News (live spacing) */
.fund-insights { margin: 100px 0 50px; }

@media (max-width: 980px) {
    .insights-slider__arrow { top: calc((100vw * .9) / 3); }  /* centred on the 3:2 image */
    /* two-column layout kept on tablets */
    .insights-slide { grid-template-columns: 47.25% 1fr; }
    .insights-slide__media { min-height: 459px; aspect-ratio: auto; }
    .insights-slide__body { padding: 3cqw 10cqw 4px 3cqw; }
}
@media (max-width: 767px) {
    /* only the first slide, text only on the stone panel, no arrows */
    .insights-slider__arrow { display: none; }
    .insights-slide { display: none; grid-template-columns: 1fr; min-height: 429px; }
    .insights-slide:first-child { display: grid; opacity: 1; visibility: visible; }
    .insights-slide__media { display: none; }
    .insights-slide__body { align-self: start; padding: 119px 10cqw 10px 3cqw; }
    .insights-slide__title { font-size: 22px; }
    .insights-slide__excerpt { font-size: 18px; }
    .insights-slide .fancy-link { font-size: 22px; }
}
