/* 연혁 — page.css 에서 분리(10-28 코어 CSS 최적화). 이 섹션이 화면에 있을 때만 불러온다(inc/css-modules.php). */
.dw-page-blocks .dw-history {
    padding: 88px 0;
    background: #fff;
}
.dw-page-blocks .dw-history-eyebrow {
    margin: 0 0 14px;
    color: var(--dw-primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.dw-page-blocks .dw-history-title {
    margin: 0 0 16px;
    color: var(--dw-ink);
    font-size: clamp(26px, 2.8vw, 36px);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.02em;
}
.dw-page-blocks .dw-history-sub {
    margin: 0 0 44px;
    max-width: 620px;
    color: var(--dw-text);
    font-size: 16px;
    line-height: 1.8;
}
.dw-page-blocks .dw-history-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
    gap: 60px;
    align-items: start;
}
.dw-page-blocks .dw-history-layout.wp-block-columns { display: grid; }
.dw-page-blocks .dw-history-layout > .wp-block-column { margin: 0; flex-basis: auto !important; }
.dw-page-blocks .dw-history-media {
    align-self: start;   /* 타임라인 높이로 늘어나지 않고 이미지 비율만큼만 차지 */
    position: sticky;
    top: 96px;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--dw-shadow);
    background: var(--dw-bg);
}
.dw-page-blocks .dw-history-media .wp-block-image,
.dw-page-blocks .dw-history-media figure { margin: 0; }
.dw-page-blocks .dw-history-media img {
    width: 100%;
    aspect-ratio: 4 / 5;   /* PC 최소 4:5 세로 비율 */
    object-fit: cover;
    margin: 0;
    display: block;
}
.dw-page-blocks .dw-history-track { position: relative; }
.dw-page-blocks .dw-history-track::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--dw-line);
}
.dw-page-blocks .dw-history-era {
    position: relative;
    padding: 0 0 20px 40px;
    display: flex;
    align-items: baseline;
    gap: 12px;
}
.dw-page-blocks .dw-history-era:not(:first-child) { margin-top: 12px; }
.dw-page-blocks .dw-history-era::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3px;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    background: var(--dw-primary);
    box-shadow: 0 0 0 4px var(--dw-primary-light);
}
.dw-page-blocks .dw-history-era-range {
    color: var(--dw-primary);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: .01em;
}
.dw-page-blocks .dw-history-era-name {
    color: var(--dw-ink);
    font-size: 15px;
    font-weight: 700;
}
.dw-page-blocks .dw-history-list {
    list-style: none;
    margin: 0 0 8px;
    padding: 0;
}
.dw-page-blocks .dw-history-item {
    position: relative;
    padding: 0 0 26px 40px;
}
.dw-page-blocks .dw-history-item:last-child { padding-bottom: 4px; }
.dw-page-blocks .dw-history-item::before {
    content: "";
    position: absolute;
    left: 1px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--dw-primary);
}
.dw-page-blocks .dw-history-year {
    display: block;
    margin: 0 0 4px;
    color: var(--dw-primary);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
}
.dw-page-blocks .dw-history-body strong {
    display: block;
    margin: 0 0 5px;
    color: var(--dw-ink);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}
.dw-page-blocks .dw-history-body span {
    display: block;
    color: var(--dw-muted);
    font-size: 15px;
    line-height: 1.7;
}
@media (max-width: 1024px) {
.dw-page-blocks .dw-history-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
.dw-page-blocks .dw-history-media {
        position: static;
        order: 1;
    }
.dw-page-blocks .dw-history-media img { aspect-ratio: 16 / 10; }
}
.dw-page-blocks .dw-history-list,
.dw-page-blocks .dw-history-item,
.dw-page-blocks .dw-history-body { display: block; }
.dw-page-blocks p.dw-history-era { margin: 0; }
.dw-page-blocks p.dw-history-era:not(:first-child) { margin-top: 12px; }
.dw-page-blocks .dw-history-list > .dw-history-item { margin: 0; }
.dw-page-blocks .dw-history-item > * { margin: 0; }
.dw-page-blocks p.dw-history-year { margin: 0 0 4px; }
.dw-page-blocks .dw-history-body > * { margin: 0; }
.dw-page-blocks .dw-history-head { margin: 0 0 5px; color: var(--dw-ink); font-size: 17px; font-weight: 700; line-height: 1.4; }
.dw-page-blocks .dw-history-text { margin: 0; color: var(--dw-muted); font-size: 15px; line-height: 1.7; }
