/* ===== 연혁 페이지 전용 (sub.css 공통 이후 로드) ===== */
.page-sub .intro-content--history .inner-content {
    max-width: 800px;
}

.page-sub .history-title {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 500;
    color: #293340;
    text-align: center;
    margin: 0 0 1.75rem;
}

.page-sub .history-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* 블록 높이는 .timeline-events만으로 결정 (연도·바는 absolute로 흐름에서 제외) */
.page-sub .timeline-block {
    display: block;
    position: relative;
    padding-left: calc(4rem + 2rem + 1px + 4rem); /* year + gap + bar + gap */
}

.page-sub .timeline-year {
    position: absolute;
    left: 0;
    top: 0;
    width: 4rem;
    max-width: 4rem;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.4;
    color: #eee;
    transition: color 0.25s ease;
    box-sizing: border-box;
}
.page-sub .timeline-block.is-active .timeline-year {
    color: #C9A86A;
}
.page-sub .timeline-block:not(.is-active) .timeline-year {
    color: #eee;
}
.page-sub .timeline-block.is-active .timeline-events li,
.page-sub .timeline-block.is-active .timeline-events li::marker {
    color: #293340;
    opacity: 1;
}
.page-sub .timeline-block:not(.is-active) .timeline-events li {
    color: #293340;
    opacity: 0.2;
    transition: opacity 0.25s ease;
}
/* 연도(4rem) + 간격(2rem) 뒤에 배치해 year와 겹치지 않음 */
.page-sub .timeline-bar {
    position: absolute;
    left: 9rem; /* 4rem(year) + 2rem(gap) */
    top: 0;
    bottom: 0;
    width: 1px;
    height: 100%;
    background: #D9DEE8;
    border-radius: 1px;
}

.page-sub .timeline-events {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-sub .timeline-bar-horizontal {
    width: 100%;
    height: 1px;
    background: #D9DEE8;
    border-radius: 1px;
    margin: 3.75rem 0;
}

.page-sub .timeline-events li {
    align-items: baseline;
    padding: 0.4rem 0;
    font-size: 1.125rem;
    line-height: 1.6;
    color: #293340;
    font-weight: 400;
    letter-spacing: -0.02em;
    list-style: inside;
}

.page-sub .timeline-events li p {
    font-size: 1rem;
    color: #293340;
    opacity: .8;
    font-weight: 400;
    letter-spacing: -0.02em;
    margin: 0.5rem 0 0 1rem;
    line-height: 2;
}

.page-sub .timeline-events li::marker {
    content: "•";
    color: #293340;
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.page-sub .timeline-events li:last-child {
    border-bottom: none;
}

.page-sub .timeline-events .date {
    flex-shrink: 0;
    font-weight: 600;
    color: #555;
    min-width: 3.5em;
    margin-right: 0.5rem;
}

@media (max-width: 768px) {
    .page-sub .timeline-block {
        flex-direction: column;
        gap: 1rem;
        padding-left: 0;
    }
    .page-sub .timeline-year {
        font-size: 1.25rem;
        color: #C9A86A !important;
        position: static;
    }
    .page-sub .timeline-bar {
        display: none;
    }
    .page-sub .timeline-events li {
        flex-wrap: wrap;
        font-size: 0.9rem;
        opacity: 1 !important;
        color: #293340;
    }
    .page-sub .timeline-events li::marker {
        font-size: 1rem;
    }
}
