/* ==========================================================
   JT MAISON — Results Widget
   ========================================================== */

.jtm-results {
    width: 100%;
    padding: 100px 40px;
    background: var(--jtm-white);
    box-sizing: border-box;
    overflow: hidden;
}

.jtm-results__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 60px;
    align-items: end; /* Align items to bottom for staggered layout */
}

/* Header */
.jtm-results__header {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
    margin-bottom: 80px;
}

.jtm-results__subtitle {
    font-family: var(--jtm-font-ui);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--jtm-dark);
    text-transform: uppercase;
    margin: 0 0 16px 0;
    font-weight: 500;
}

.jtm-results__title {
    font-family: var(--jtm-font-ui);
    font-size: clamp(32px, 5vw, 42px);
    font-weight: bold;
    color: var(--jtm-dark);
    margin: 0;
}

/* Track & Items */
.jtm-results__track {
    display: contents; /* Unwraps track to make items children of grid */
}

.jtm-results__item {
    border-bottom: 1px solid rgba(0,0,0,0.1);
    padding-bottom: 30px;
}

/* Desktop Staggering logic */
.jtm-results__item:nth-child(1) {
    grid-column: 1;
    grid-row: 2;
}

.jtm-results__item:nth-child(2) {
    grid-column: 2;
    grid-row: 2;
}

/* Item details */
.jtm-results__quote {
    font-size: 48px;
    color: rgba(0,0,0,0.2);
    font-family: 'Times New Roman', serif; /* Or matching font for quotes */
    line-height: 1;
    margin-bottom: 10px;
    font-weight: bold;
}

.jtm-results__item-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 40px;
}

.jtm-results__author {
    font-family: var(--jtm-font-ui);
    font-size: 20px;
    font-weight: bold;
    color: var(--jtm-dark);
    flex: 0 0 40%;
    line-height: 1.3;
}

.jtm-results__text {
    font-family: var(--jtm-font-ui);
    font-size: 14px;
    color: rgba(0,0,0,0.5);
    text-align: right;
    flex: 1;
    line-height: 1.6;
}

.jtm-results__swipe {
    display: none;
}

/* Responsive Mobile */
@media (max-width: 768px) {
    .jtm-results {
        padding: 60px 0; /* remove horizontal padding for full bleed carousel */
    }
    
    .jtm-results__inner {
        display: block; /* Remove grid */
    }
    
    .jtm-results__header {
        text-align: left;
        margin-bottom: 60px;
        padding: 0 24px;
    }
    
    .jtm-results__track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 0 24px;
        gap: 0;
    }
    
    .jtm-results__track::-webkit-scrollbar {
        display: none;
    }
    
    .jtm-results__item {
        flex: 0 0 85%; /* Peek effect */
        scroll-snap-align: start;
        border-bottom: none;
        border-right: 1px solid rgba(0,0,0,0.1);
        padding: 0 24px 0 0;
        margin-right: 24px;
    }
    
    .jtm-results__item:last-child {
        border-right: none;
        margin-right: 24px; /* Scroll padding */
    }
    
    .jtm-results__item-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .jtm-results__author {
        flex: auto;
    }
    
    .jtm-results__text {
        text-align: left;
        flex: auto;
    }
    
    .jtm-results__swipe {
        display: block;
        margin-top: 40px;
        padding: 0 24px;
        color: var(--jtm-dark);
        opacity: 0.5;
        cursor: pointer;
        width: max-content;
    }
}
