/* ==========================================================================
   GSC-TEMPC — WHAT OUR MEMBERS SAY  (.gsctempc-testimonials)
   File: assets/css/testimonials_modern.css

   Concept: a MEMBER-STORIES SPREAD.
   A masthead (eyebrow + title + standfirst) opens the section, a divider
   closes it, and below it one member is featured at a time: a framed
   portrait on the left, a large pull-quote and signature on the right. A
   roster panel at the bottom lets visitors pick any other member.

   House style carried over from About Us:
     - forest-green Fraunces headings, #3E4C42 body copy, Poppins inherited
     - pale-green tonal field (white -> #E9F3E7), leaf-green blocks
     - white-matted photo frame with a thin green border and soft shadow
     - gold used only for short rules, the quote glyph and the active ring
     - the same botanical corners, action-green controls with gold border

   Section-specific choices:
     - portrait = upright rectangle (About Us = arch) with one leaf-green
       plate offset behind it; no stacked outlines or corner fragments
     - slides share one grid cell, so the block is always as tall as the
       longest quote (no fixed min-heights, no overflow into the controls)
     - breakpoints follow the SECTION width (container queries), because the
       fixed "Explore GSC-TEMPC" panel takes ~320px on desktop

   Scope: every selector begins with .gsctempc-testimonials.
   JS hooks preserved: .is-active .is-leaving .is-entering-left
   .is-entering-right .is-swapping .is-visible [hidden] and the rail
   .is-active state toggled by the homepage script.
   ========================================================================== */

.gsctempc-testimonials {
    --tm-brand: #30AA28;
    --tm-leaf: #B9DDB5;
    --tm-leaf-soft: #E5F1E3;
    --tm-sage: #F3F8F2;
    --tm-action: #27883A;
    --tm-action-deep: #1B6A2E;
    --tm-forest: #1F5A2D;
    --tm-ink: #173E29;
    --tm-gold: #D6B56D;
    --tm-gold-deep: #B58A2C;
    --tm-white: #FFFFFF;
    --tm-text: #3E4C42;
    --tm-muted: #53625A;
    --tm-line: rgba(48, 170, 40, 0.2);
    --tm-ease: var(--hp-ease, cubic-bezier(0.22, 1, 0.36, 1));
    --tm-serif: var(--hp-display-font, 'Fraunces', Georgia, 'Times New Roman', serif);

    container: testimonials / inline-size;
    position: relative;
    isolation: isolate;
    width: 100%;
    margin: 0;
    padding: 72px 14px 76px;
    overflow: hidden;
    color: var(--tm-text);
    background: linear-gradient(180deg, #FFFFFF 0%, #F5FAF4 38%, #E9F3E7 100%);
}

.gsctempc-testimonials,
.gsctempc-testimonials *,
.gsctempc-testimonials *::before,
.gsctempc-testimonials *::after {
    box-sizing: border-box;
}

.gsctempc-testimonials button {
    font: inherit;
    -webkit-tap-highlight-color: transparent;
}

.gsctempc-testimonials img {
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 600px) {
    .gsctempc-testimonials {
        padding: 96px 24px 104px;
    }
}

/* ==========================================================================
   BACKDROP — soft leaf-green light behind the portrait, botanical corners
   ========================================================================== */

.gsctempc-testimonials__wash {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 54% 36% at 22% 44%, rgba(185, 221, 181, 0.5), transparent 72%),
        radial-gradient(ellipse 44% 30% at 94% 6%, rgba(185, 221, 181, 0.28), transparent 70%);
}

/* The faint logo ring was decoration without a job; the botanical corners
   already carry the brand texture. Element is kept in the markup, hidden. */
.gsctempc-testimonials__seal {
    display: none;
}

.gsctempc-testimonials__botanical {
    position: absolute;
    z-index: 1;
    bottom: 0;
    width: clamp(110px, 24vw, 280px);
    width: clamp(110px, 16cqi, 280px);
    height: 100%;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    opacity: 0.17;
    filter: grayscale(1) sepia(0.55) saturate(3) hue-rotate(85deg) brightness(0.7);
    mix-blend-mode: multiply;
    -webkit-mask-image: linear-gradient(to top, #000 0%, #000 42%, transparent 90%);
    mask-image: linear-gradient(to top, #000 0%, #000 42%, transparent 90%);
}

.gsctempc-testimonials__botanical--left {
    left: 0;
    background-image: url('../images/botanical-corner-right.png');
    background-position: bottom left;
    transform: scaleX(-1);
}

.gsctempc-testimonials__botanical--right {
    right: 0;
    background-image: url('../images/botanical-corner-right.png');
    background-position: bottom right;
}

.gsctempc-testimonials__inner {
    position: relative;
    z-index: 2;
    width: min(1180px, 100%);
    margin: 0 auto;
}

/* ==========================================================================
   FEATURE GRID
   The story wrapper is dissolved (display: contents) so the header, slides
   and controls can be placed on the same grid as the portrait.
   Narrow: header / portrait / story / controls, stacked.
   ========================================================================== */

.gsctempc-testimonials__feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "header"
        "visual"
        "slides"
        "controls";
    width: 100%;
    margin: 0 auto;
    outline: none;
}

.gsctempc-testimonials__feature:focus-visible {
    border-radius: 8px;
    outline: 3px solid var(--tm-action);
    outline-offset: 10px;
}

.gsctempc-testimonials__story {
    display: contents;
}

/* ==========================================================================
   MASTHEAD — eyebrow, title, standfirst
   ========================================================================== */

.gsctempc-testimonials__header {
    grid-area: header;
    min-width: 0;
    margin: 0 0 36px;
    padding: 0 0 30px;
    border-bottom: 1px solid var(--tm-line);
    text-align: left;
}

.gsctempc-testimonials__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 20px;
    color: var(--tm-action-deep);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.22em;
    line-height: 1;
    text-transform: uppercase;
}

.gsctempc-testimonials__eyebrow-line {
    display: block;
    flex: 0 0 auto;
    width: 52px;
    height: 2px;
    background: linear-gradient(90deg, var(--tm-gold) 0 60%, var(--tm-leaf) 60% 100%);
}

.gsctempc-testimonials__title {
    margin: 0;
    max-width: 14em;
    color: var(--tm-forest);
    font-family: var(--tm-serif);
    font-size: clamp(2.2rem, 9.6vw, 3rem);
    font-size: clamp(2.2rem, 9.4cqi, 3rem);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.035em;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.gsctempc-testimonials__intro {
    max-width: 34em;
    margin: 18px 0 0;
    color: var(--tm-text);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.75;
}

/* ==========================================================================
   PORTRAIT — white-matted frame, one leaf-green plate offset behind it
   ========================================================================== */

.gsctempc-testimonials__visual {
    grid-area: visual;
    position: relative;
    justify-self: start;
    min-width: 0;
    width: min(100%, 420px);
    margin: 0 0 44px;
    padding: 0 14px 14px 0;
}

.gsctempc-testimonials__visual-accent {
    position: absolute;
    z-index: 0;
    top: 14px;
    right: 0;
    bottom: 0;
    left: 14px;
    border-radius: 24px;
    background: linear-gradient(165deg, rgba(185, 221, 181, 0.95), rgba(185, 221, 181, 0.45));
    pointer-events: none;
}

/* Second corner fragment removed: one plate is enough. */
.gsctempc-testimonials__visual-corner {
    display: none;
}

.gsctempc-testimonials__image-shell {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 4 / 5;
    margin: 0;
    overflow: hidden;
    border: 8px solid var(--tm-white);
    border-radius: 22px;
    background: var(--tm-sage);
    box-shadow:
        0 0 0 1px var(--tm-line),
        0 30px 60px rgba(23, 62, 41, 0.18),
        0 6px 18px rgba(48, 170, 40, 0.1);
}

.gsctempc-testimonials__image {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: opacity 0.34s ease;
}

.gsctempc-testimonials__image.is-swapping {
    opacity: 0.55;
}

.gsctempc-testimonials__image[hidden] {
    display: none;
}

.gsctempc-testimonials__image-fallback {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tm-forest);
    background: linear-gradient(165deg, var(--tm-leaf-soft), var(--tm-leaf));
    font-family: var(--tm-serif);
    font-size: clamp(4rem, 22cqi, 6.5rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.gsctempc-testimonials__image-fallback[hidden] {
    display: none;
}

/* Top-left so it can never collide with the caption at the bottom */
.gsctempc-testimonials__verified-badge {
    position: absolute;
    z-index: 3;
    top: 14px;
    left: 14px;
    display: none;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 6px 14px 6px 7px;
    border: 1px solid var(--tm-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--tm-action-deep);
    box-shadow: 0 8px 22px rgba(23, 62, 41, 0.18);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    text-transform: uppercase;
}

.gsctempc-testimonials__verified-badge.is-visible {
    display: inline-flex;
}

.gsctempc-testimonials__verified-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--tm-action);
    color: #fff;
    font-size: 0.55rem;
}

/* Caption sits on its own dark scrim so the name stays legible on any photo */
.gsctempc-testimonials__image-caption {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 44px 18px 16px;
    background: linear-gradient(to top, rgba(12, 38, 24, 0.84) 0%, rgba(12, 38, 24, 0.5) 55%, transparent 100%);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.35;
    text-transform: uppercase;
    pointer-events: none;
}

.gsctempc-testimonials__caption-kicker {
    flex: 0 0 auto;
    color: rgba(255, 255, 255, 0.86);
}

.gsctempc-testimonials__caption-line {
    flex: 0 0 26px;
    width: 26px;
    height: 2px;
    background: var(--tm-gold);
}

.gsctempc-testimonials__caption-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ==========================================================================
   STORY — pull-quote, signature, rating
   All slides share ONE grid cell, so the block is as tall as the longest
   quote and nothing needs a fixed min-height.
   ========================================================================== */

.gsctempc-testimonials__slides {
    grid-area: slides;
    position: relative;
    display: grid;
    min-width: 0;
    padding-top: 3.3rem;
}

.gsctempc-testimonials__quote-mark {
    position: absolute;
    z-index: 0;
    top: 0;
    left: -3px;
    color: var(--tm-gold);
    font-family: var(--tm-serif);
    font-size: 6rem;
    font-weight: 600;
    line-height: 0.8;
    opacity: 0.85;
    pointer-events: none;
    user-select: none;
}

/* Decorative vertical rule dropped; the pull-quote needs no second guide. */
.gsctempc-testimonials__story-rule {
    display: none;
}

.gsctempc-testimonials__slide {
    grid-area: 1 / 1;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-width: 0;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(20px);
    transition:
        opacity 0.42s ease,
        transform 0.58s var(--tm-ease),
        visibility 0s linear 0.58s;
}

.gsctempc-testimonials__slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    transition:
        opacity 0.42s ease,
        transform 0.58s var(--tm-ease),
        visibility 0s linear 0s;
}

.gsctempc-testimonials__slide.is-leaving {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
}

.gsctempc-testimonials__slide.is-entering-left {
    opacity: 0;
    visibility: visible;
    transform: translateX(-20px);
}

.gsctempc-testimonials__slide.is-entering-right {
    opacity: 0;
    visibility: visible;
    transform: translateX(20px);
}

.gsctempc-testimonials__quote {
    position: relative;
    margin: 0;
    padding: 0;
    color: var(--tm-ink);
    font-family: var(--tm-serif);
    font-size: clamp(1.4rem, 5.6vw, 1.7rem);
    font-size: clamp(1.4rem, 5.6cqi, 1.7rem);
    font-style: italic;
    font-weight: 500;
    line-height: 1.38;
    letter-spacing: -0.012em;
    overflow-wrap: break-word;
    text-wrap: pretty;
}

.gsctempc-testimonials__identity {
    margin-top: 28px;
}

.gsctempc-testimonials__identity-line {
    width: 56px;
    height: 3px;
    margin-bottom: 18px;
    border-radius: 2px;
    background: linear-gradient(90deg, var(--tm-gold) 0 58%, var(--tm-leaf) 58% 100%);
}

.gsctempc-testimonials__member-name {
    color: var(--tm-forest);
    font-family: var(--tm-serif);
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.gsctempc-testimonials__member-role {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 12px;
    margin-top: 6px;
    color: var(--tm-muted);
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.5;
}

.gsctempc-testimonials__verified {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 3px 11px 3px 9px;
    border: 1px solid rgba(39, 136, 58, 0.35);
    border-radius: 999px;
    background: var(--tm-sage);
    color: var(--tm-action-deep);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-transform: uppercase;
}

.gsctempc-testimonials__verified::before {
    content: "";
    display: inline-block;
    flex: 0 0 auto;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tm-action);
}

.gsctempc-testimonials__rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
}

.gsctempc-testimonials__stars {
    display: inline-flex;
    gap: 4px;
    color: var(--tm-gold-deep);
    font-size: 0.9rem;
    line-height: 1;
}

.gsctempc-testimonials__rating-number {
    color: var(--tm-forest);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* ==========================================================================
   CONTROLS
   ========================================================================== */

.gsctempc-testimonials__controls {
    grid-area: controls;
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 30px 0 0;
}

.gsctempc-testimonials__arrow {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 1px solid rgba(214, 181, 109, 0.75);
    border-radius: 50%;
    background: var(--tm-white);
    color: var(--tm-forest);
    box-shadow: 0 10px 22px rgba(31, 90, 45, 0.14);
    font-size: 0.9rem;
    cursor: pointer;
    transition:
        color 0.25s ease,
        border-color 0.25s ease,
        background 0.25s ease,
        transform 0.4s var(--tm-ease),
        box-shadow 0.4s ease;
}

.gsctempc-testimonials__arrow:hover:not(:disabled) {
    border-color: var(--tm-gold);
    background: var(--tm-action-deep);
    color: #fff;
    box-shadow: 0 14px 28px rgba(31, 90, 45, 0.28);
}

.gsctempc-testimonials__arrow--prev:hover:not(:disabled) {
    transform: translateX(-3px);
}

.gsctempc-testimonials__arrow--next:hover:not(:disabled) {
    transform: translateX(3px);
}

.gsctempc-testimonials__arrow:focus-visible,
.gsctempc-testimonials__rail-item:focus-visible {
    outline: 3px solid var(--tm-action);
    outline-offset: 3px;
}

.gsctempc-testimonials__arrow:disabled {
    opacity: 0.4;
    cursor: default;
}

.gsctempc-testimonials__counter {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    min-width: 76px;
    font-family: var(--tm-serif);
    line-height: 1;
}

.gsctempc-testimonials__counter-current {
    color: var(--tm-forest);
    font-size: 1.9rem;
    font-weight: 600;
}

.gsctempc-testimonials__counter-slash {
    color: var(--tm-leaf);
    font-size: 1.1rem;
}

.gsctempc-testimonials__counter-total {
    color: var(--tm-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

/* ==========================================================================
   ROSTER PANEL — every member story, one tap away
   ========================================================================== */

.gsctempc-testimonials__rail-wrap {
    width: 100%;
    margin: 52px auto 0;
    padding: 20px 14px 16px;
    border: 1px solid var(--tm-line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 40px rgba(23, 62, 41, 0.07);
}

.gsctempc-testimonials__rail-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 10px;
    padding: 0 6px 14px;
    border-bottom: 1px solid var(--tm-line);
}

.gsctempc-testimonials__rail-label {
    color: var(--tm-forest);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.gsctempc-testimonials__rail-hint {
    color: var(--tm-muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

/* Narrow: one horizontally scrolling row. Auto margins on the first/last
   item centre a short row without clipping a long one. */
.gsctempc-testimonials__rail {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    padding: 14px 6px 8px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.gsctempc-testimonials__rail::-webkit-scrollbar {
    display: none;
}

.gsctempc-testimonials__rail-item:first-child {
    margin-inline-start: auto;
}

.gsctempc-testimonials__rail-item:last-child {
    margin-inline-end: auto;
}

.gsctempc-testimonials__rail-item {
    position: relative;
    display: flex;
    flex: 0 0 128px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 4px 6px 16px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--tm-muted);
    cursor: pointer;
    text-align: center;
    scroll-snap-align: center;
}

.gsctempc-testimonials__rail-portrait {
    position: relative;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 68px;
    height: 68px;
    overflow: visible;
    border: 1px solid rgba(48, 170, 40, 0.28);
    border-radius: 50%;
    background: var(--tm-leaf-soft);
    box-shadow:
        0 0 0 4px var(--tm-white),
        0 8px 18px rgba(31, 90, 45, 0.12);
    transition:
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.45s var(--tm-ease);
}

.gsctempc-testimonials__rail-portrait img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 30%;
}

.gsctempc-testimonials__rail-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    color: var(--tm-forest);
    font-family: var(--tm-serif);
    font-size: 1.2rem;
    font-weight: 600;
}

/* The photo covers the initials once it loads */
.gsctempc-testimonials__rail-portrait img {
    position: absolute;
    inset: 0;
}

.gsctempc-testimonials__rail-check {
    position: absolute;
    z-index: 2;
    right: -3px;
    bottom: -1px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border: 2px solid var(--tm-white);
    border-radius: 50%;
    background: var(--tm-action);
    color: #fff;
    font-size: 0.5rem;
}

.gsctempc-testimonials__rail-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    width: 100%;
    min-width: 0;
}

.gsctempc-testimonials__rail-copy strong {
    display: -webkit-box;
    width: 100%;
    overflow: hidden;
    color: var(--tm-forest);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow-wrap: anywhere;
}

.gsctempc-testimonials__rail-copy small {
    display: -webkit-box;
    width: 100%;
    overflow: hidden;
    color: var(--tm-muted);
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow-wrap: anywhere;
}

.gsctempc-testimonials__rail-active {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    border-radius: 2px;
    background: var(--tm-gold);
    transform: translateX(-50%);
    transition: width 0.45s var(--tm-ease);
}

.gsctempc-testimonials__rail-item:hover .gsctempc-testimonials__rail-portrait {
    border-color: var(--tm-gold);
    transform: translateY(-3px);
}

.gsctempc-testimonials__rail-item.is-active .gsctempc-testimonials__rail-portrait {
    border-color: var(--tm-gold);
    box-shadow:
        0 0 0 3px var(--tm-white),
        0 0 0 5px var(--tm-gold),
        0 14px 26px rgba(31, 90, 45, 0.2);
    transform: translateY(-3px) scale(1.08);
}

.gsctempc-testimonials__rail-item.is-active .gsctempc-testimonials__rail-active {
    width: 38px;
}

.gsctempc-testimonials__rail-item.is-active .gsctempc-testimonials__rail-copy strong {
    color: var(--tm-ink);
}

/* ==========================================================================
   RESPONSIVE — driven by the section's own width (container queries)
   ========================================================================== */

/* Roster wraps into rows instead of scrolling once there is room */
@container testimonials (min-width: 640px) {
    .gsctempc-testimonials__rail-wrap {
        margin-top: 64px;
        padding: 24px 28px 20px;
    }

    .gsctempc-testimonials__rail-heading {
        padding-right: 0;
        padding-left: 0;
    }

    .gsctempc-testimonials__rail {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px 18px;
        padding: 16px 0 6px;
        overflow: visible;
        scroll-snap-type: none;
    }

    .gsctempc-testimonials__rail-item {
        flex-basis: 148px;
    }

    .gsctempc-testimonials__rail-item:first-child,
    .gsctempc-testimonials__rail-item:last-child {
        margin-inline: 0;
    }

    .gsctempc-testimonials__rail-portrait {
        width: 76px;
        height: 76px;
    }
}

/* Two columns: portrait left; quote anchored to the portrait's top edge and
   the controls to its bottom edge */
@container testimonials (min-width: 700px) {
    .gsctempc-testimonials__feature {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        grid-template-rows: auto 1fr auto;
        grid-template-areas:
            "header  header"
            "visual  slides"
            "visual  controls";
        column-gap: clamp(32px, 6cqi, 88px);
    }

    .gsctempc-testimonials__header {
        margin-bottom: 52px;
        padding-bottom: 34px;
    }

    .gsctempc-testimonials__title {
        font-size: clamp(2.6rem, 5vw, 3.4rem);
        font-size: clamp(2.6rem, 5.2cqi, 3.4rem);
    }

    .gsctempc-testimonials__visual {
        width: 100%;
        max-width: 460px;
        margin: 0;
        align-self: start;
    }

    .gsctempc-testimonials__slides {
        align-self: start;
        padding-top: 3.8rem;
    }

    .gsctempc-testimonials__quote-mark {
        font-size: 7rem;
    }

    .gsctempc-testimonials__quote {
        font-size: clamp(1.4rem, 2.7vw, 1.9rem);
        font-size: clamp(1.4rem, 2.9cqi, 1.9rem);
    }

    .gsctempc-testimonials__controls {
        align-self: end;
        margin-top: 34px;
    }
}

/* Masthead splits: title left, standfirst right on a shared baseline */
@container testimonials (min-width: 900px) {
    .gsctempc-testimonials__header {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
        column-gap: clamp(40px, 6cqi, 88px);
        align-items: end;
    }

    .gsctempc-testimonials__eyebrow {
        grid-column: 1 / -1;
        justify-self: start;
    }

    .gsctempc-testimonials__title {
        grid-column: 1;
        max-width: none;
        font-size: clamp(2.9rem, 4.4vw, 3.9rem);
        font-size: clamp(2.9rem, 4.4cqi, 3.9rem);
    }

    .gsctempc-testimonials__intro {
        grid-column: 2;
        max-width: 30em;
        margin: 0;
        padding-bottom: 0.45rem;
        font-size: 1.05rem;
    }

    .gsctempc-testimonials__quote {
        font-size: clamp(1.7rem, 2.6vw, 2.15rem);
        font-size: clamp(1.7rem, 2.7cqi, 2.15rem);
        line-height: 1.34;
    }

    .gsctempc-testimonials__member-name {
        font-size: 1.45rem;
    }

    .gsctempc-testimonials__member-role {
        font-size: 0.98rem;
    }
}

/* Wide section: a little more air around the feature */
@container testimonials (min-width: 1200px) {
    .gsctempc-testimonials__header {
        margin-bottom: 60px;
    }

    .gsctempc-testimonials__quote {
        font-size: 2.3rem;
    }

    .gsctempc-testimonials__slides {
        padding-top: 4.2rem;
    }

    .gsctempc-testimonials__rail-wrap {
        margin-top: 76px;
    }
}

/* Small phones: tighter frame, no hint text, smaller roster */
@container testimonials (max-width: 420px) {
    .gsctempc-testimonials__header {
        margin-bottom: 30px;
        padding-bottom: 26px;
    }

    .gsctempc-testimonials__eyebrow {
        gap: 10px;
        font-size: 0.76rem;
        letter-spacing: 0.18em;
    }

    .gsctempc-testimonials__eyebrow-line {
        width: 36px;
    }

    .gsctempc-testimonials__rail-hint {
        display: none;
    }

    .gsctempc-testimonials__image-shell {
        border-width: 6px;
        border-radius: 20px;
    }

    .gsctempc-testimonials__visual {
        padding: 0 12px 12px 0;
    }

    .gsctempc-testimonials__visual-accent {
        top: 12px;
        left: 12px;
        border-radius: 22px;
    }

    .gsctempc-testimonials__image-caption {
        padding: 40px 14px 12px;
    }

    .gsctempc-testimonials__verified-badge {
        top: 10px;
        left: 10px;
    }

    .gsctempc-testimonials__rail-wrap {
        padding-right: 8px;
        padding-left: 8px;
    }

    .gsctempc-testimonials__rail-item {
        flex-basis: 116px;
    }

    .gsctempc-testimonials__rail-portrait {
        width: 60px;
        height: 60px;
    }
}

@container testimonials (max-width: 360px) {
    .gsctempc-testimonials__botanical {
        display: none;
    }

    .gsctempc-testimonials__eyebrow {
        letter-spacing: 0.14em;
    }

    .gsctempc-testimonials__quote {
        font-size: 1.32rem;
    }

    .gsctempc-testimonials__controls {
        gap: 12px;
    }
}

/* Browsers without container queries: stacked layout above, desktop here */
@supports not (container-type: inline-size) {
    @media (min-width: 1100px) {
        .gsctempc-testimonials__feature {
            grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
            grid-template-rows: auto 1fr auto;
            grid-template-areas:
                "header  header"
                "visual  slides"
                "visual  controls";
            column-gap: 72px;
        }

        .gsctempc-testimonials__header {
            display: grid;
            grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
            column-gap: 72px;
            align-items: end;
            margin-bottom: 56px;
        }

        .gsctempc-testimonials__eyebrow {
            grid-column: 1 / -1;
            justify-self: start;
        }

        .gsctempc-testimonials__title {
            grid-column: 1;
            max-width: none;
            font-size: 3.6rem;
        }

        .gsctempc-testimonials__intro {
            grid-column: 2;
            margin: 0 0 6px;
        }

        .gsctempc-testimonials__visual {
            width: 100%;
            max-width: 460px;
            margin: 0;
        }

        .gsctempc-testimonials__slides {
            align-self: start;
            padding-top: 3.8rem;
        }

        .gsctempc-testimonials__controls {
            align-self: end;
            margin-top: 34px;
        }

        .gsctempc-testimonials__quote {
            font-size: 2rem;
        }

        .gsctempc-testimonials__rail {
            flex-wrap: wrap;
            justify-content: center;
            overflow: visible;
        }

        .gsctempc-testimonials__rail-item {
            flex-basis: 148px;
        }

        .gsctempc-testimonials__rail-item:first-child,
        .gsctempc-testimonials__rail-item:last-child {
            margin-inline: 0;
        }
    }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .gsctempc-testimonials__image,
    .gsctempc-testimonials__slide,
    .gsctempc-testimonials__arrow,
    .gsctempc-testimonials__rail-portrait,
    .gsctempc-testimonials__rail-active {
        transition: none !important;
    }

    .gsctempc-testimonials__slide.is-entering-left,
    .gsctempc-testimonials__slide.is-entering-right,
    .gsctempc-testimonials__slide.is-leaving,
    .gsctempc-testimonials__slide.is-active,
    .gsctempc-testimonials__arrow--prev:hover:not(:disabled),
    .gsctempc-testimonials__arrow--next:hover:not(:disabled),
    .gsctempc-testimonials__rail-item:hover .gsctempc-testimonials__rail-portrait,
    .gsctempc-testimonials__rail-item.is-active .gsctempc-testimonials__rail-portrait {
        transform: none !important;
    }
}

/* ==========================================================================
   FORCED COLORS / HIGH CONTRAST
   ========================================================================== */

@media (forced-colors: active) {
    .gsctempc-testimonials__arrow,
    .gsctempc-testimonials__verified-badge,
    .gsctempc-testimonials__verified,
    .gsctempc-testimonials__rail-wrap {
        border: 1px solid CanvasText;
    }

    .gsctempc-testimonials__image-shell {
        border: 8px solid Canvas;
        outline: 1px solid CanvasText;
    }

    .gsctempc-testimonials__rail-item.is-active .gsctempc-testimonials__rail-portrait {
        outline: 3px solid Highlight;
        outline-offset: 2px;
    }

    .gsctempc-testimonials__rail-active,
    .gsctempc-testimonials__identity-line,
    .gsctempc-testimonials__eyebrow-line {
        background: CanvasText;
        forced-color-adjust: none;
    }
}