/* ==========================================================================
   Organism: Period List Section
   ========================================================================== */

.saha-period-list {
    width: 100%;
}

/* --- Period block --- */

.saha-period-list__period {
    margin-bottom: 80px;
}

.saha-period-list__period:last-child {
    margin-bottom: 0;
}

/* --- Period header --- */

.saha-period-list__header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 16px;
}

.saha-period-list__details {
    font-family: var(--saha-font-primary);
    font-size: 14px;
    line-height: 21px;
    color: var(--saha-color-text-secondary);
    margin: 0;
}

/* --- Card grid (3-col) --- */

.saha-period-list__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 30px;
    row-gap: 100px;
    margin-top: 40px;
}

/* --- with-details variant (text only, no cards) --- */

.saha-period-list--with-details .saha-period-list__period {
    margin-bottom: 40px;
}

.saha-period-list--with-details .saha-period-list__header {
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 0 30px;
}

.saha-period-list--with-details .saha-period-item {
    font-size: 16px;
    font-weight: 700;
    line-height: 24px;
    color: var(--saha-color-text-primary);
    text-transform: none;
    flex-shrink: 0;
    min-width: 40px;
}

.saha-period-list--with-details .saha-period-list__details {
    font-size: 16px;
    line-height: 24px;
    color: var(--saha-color-text-primary);
}

/* --- Responsive: Tablet --- */

@media (max-width: 1023px) {
    .saha-period-list__grid {
        grid-template-columns: repeat(2, 1fr);
        column-gap: 20px;
        row-gap: 60px;
    }
}

/* --- Responsive: Mobile --- */

@media (max-width: 639px) {
    .saha-period-list__grid {
        grid-template-columns: 1fr;
        row-gap: 40px;
    }

    .saha-period-list__period {
        margin-bottom: 60px;
    }
}
