.history-heritage {
    background: var(--white-color);
}
.history-heritage-photo {
    overflow: hidden;
    margin: 0;
    border-bottom: 4px solid var(--theme-color);
    border-radius: 12px;
    background: var(--smoke-color2);
}
.history-heritage-photo img {
    display: block;
    width: 100%;
    height: 310px;
    object-fit: cover;
}
.history-heritage-photo figcaption {
    padding: 14px 20px;
    background: var(--title-color);
    color: var(--white-color);
    font-size: 12px;
    line-height: 1.6;
}
.history-heritage .sec-title {
    margin-bottom: 18px;
}
.history-heritage-link {
    margin-top: 6px;
}
.history-heritage p { white-space: pre-line; }

.history-years {
    --history-accent: var(--theme-color);
    --history-surface: var(--smoke-color2);
    --history-year-width: 112px;
    padding: 48px 0 40px;
    background: var(--history-surface);
    color: var(--body-color);
    scroll-margin-top: 100px;
}

.history-years-heading { margin-bottom: 48px; }
.history-years-heading h2 {
    position: relative;
    display: inline-block;
    margin: 0;
    padding-bottom: 14px;
    color: var(--title-color);
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(32px, 4.2vw, 50px);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: 1.15;
}
.history-years-heading h2::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 110px;
    height: 3px;
    border-radius: 3px;
    background: var(--history-accent);
    content: '';
}

.history-panel:not([hidden]) {
    display: grid;
    grid-template-columns: 1.45fr 1fr;
    align-items: start;
    gap: 30px;
}
.history-panel[hidden] { display: none; }
.about-page-content .history-story p {
    margin: 0;
    color: var(--body-color);
    font-size: 14px;
    line-height: 1.85;
    white-space: pre-line;
}
.history-image {
    overflow: hidden;
    margin: 0;
    background: var(--th-border-color2);
}
.history-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    filter: grayscale(1);
}

.history-navigation {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    margin-top: 48px;
}
.history-timeline-viewport {
    flex: 1;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.history-timeline-viewport::-webkit-scrollbar { display: none; }
.history-year-list {
    position: relative;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: var(--history-year-width);
    justify-content: space-between;
    width: max-content;
    min-width: 100%;
    padding-bottom: 8px;
}
.history-year-list::before,
.history-year-list::after {
    position: absolute;
    right: 0;
    bottom: 16px;
    left: 0;
    height: 1px;
    background: var(--th-border-color);
    content: '';
    pointer-events: none;
}
.history-year-list::after {
    right: auto;
    width: var(--history-progress, 18.75%);
    background: var(--history-accent);
}
.history-year {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    width: var(--history-year-width);
    min-width: var(--history-year-width);
    padding: 0 6px 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--body-color);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.history-years .history-thumbnail {
    display: block;
    width: 56px;
    height: 36px;
    object-fit: cover;
    filter: grayscale(1);
}
.history-year-label {
    font-size: 15px;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
}
.history-year-dot {
    display: block;
    width: 10px;
    height: 10px;
    margin-top: 3px;
    border: 1px solid var(--body-color);
    border-radius: 50%;
    background: var(--history-surface);
}
.history-year[aria-selected='true'] .history-year-dot {
    border-color: var(--history-accent);
    background: var(--history-accent);
}
.history-year[aria-selected='true'] .history-year-label {
    color: var(--history-accent);
    font-weight: 600;
}
.history-year:hover .history-thumbnail { opacity: .75; }
.history-year:focus-visible,
.history-arrow:focus-visible,
.history-panel:focus-visible {
    outline: 2px solid var(--history-accent);
    outline-offset: -2px;
}
.history-arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin-bottom: -3px;
    padding: 0;
    border: 1px solid var(--history-accent);
    border-radius: 50%;
    background: var(--white-color);
    color: var(--history-accent);
    cursor: pointer;
    flex-shrink: 0;
}
.history-arrow[hidden] { display: none; }
.history-arrow svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.history-arrow:hover:not(:disabled) {
    border-color: var(--history-accent);
    background: var(--history-accent);
    color: var(--white-color);
}
.history-arrow:disabled {
    opacity: .35;
    cursor: default;
}
.about-page-content .history-draft-note {
    margin: 20px 0 0;
    color: var(--body-color);
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .history-heritage-photo img { height: 240px; }
    .history-years {
        --history-year-width: 88px;
        padding: 36px 0 28px;
    }
    .history-years-heading { margin-bottom: 30px; }
    .history-panel:not([hidden]) {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }
    .history-story { min-height: 156px; }
    .history-navigation {
        gap: 8px;
        margin-top: 32px;
    }
}
