.history-page {
    padding-bottom: clamp(42px, 6vw, 80px);
}
.history-example + .history-example {
    margin-top: clamp(40px, 6vw, 72px);
    padding-top: clamp(28px, 4vw, 48px);
    border-top: 1px solid #c9d5bf;
}
.history-overview {
    grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
    gap: clamp(24px, 4vw, 54px);
}
.history-overview .history-context { position: static; grid-row: auto; }
.history-context h2 { font-size: clamp(24px, 3vw, 34px); }
.history-context h3 { margin: 22px 0 10px; font-family: var(--sans); font-size: 14px; font-weight: 600; }
.history-context p { color: var(--ink); }
.history-context .button { margin: 0 0 8px; text-align: center; }
.history-comparison {
    margin: 0;
    overflow: hidden;
    border: 1px solid #c9d5bf;
    border-radius: 9px;
    background: #faf8ef;
    box-shadow: var(--soft-shadow);
}
.history-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    max-height: 440px;
    overflow: hidden;
    background: #203c33;
}
.history-stage[data-draggable] { cursor: ew-resize; touch-action: pan-y; }
.history-stage img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.history-stage .history-layer {
    position: absolute;
    inset: 0;
    clip-path: inset(0 calc(100% - var(--history-split)) 0 0);
}
.history-stage .history-sepia img { filter: sepia(.85); }
.history-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: clamp(1px, var(--history-split), calc(100% - 1px));
    width: 2px;
    transform: translateX(-50%);
    background: #fff7e1;
    pointer-events: none;
}
.history-divider span {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    transform: translate(-50%, -50%);
    border: 1px solid #fff7e1;
    border-radius: 50%;
    background: #24483c;
    color: #fff7e1;
    font-size: 17px;
    box-shadow: 0 2px 8px #21342d5c;
}
.history-stage:not([data-draggable]) .history-divider span { display: none; }
.history-slider {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px clamp(14px, 3vw, 26px);
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    background: #eef0e2;
}
.history-slider input[type="range"] {
    margin: 0;
    width: 100%;
    min-height: 40px;
    padding: 0;
    accent-color: var(--green);
    cursor: ew-resize;
}
.history-layer-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 16px clamp(14px, 3vw, 26px);
    font-size: 14px;
    line-height: 1.45;
}
.history-layer-details small, .history-archive-sources small { display: block; color: var(--muted); margin-top: 3px; }
.history-layer-details a, .history-archive a { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }

.history-archive {
    display: grid;
    align-items: start;
    gap: clamp(16px, 3vw, 26px);
    margin-top: clamp(26px, 5vw, 52px);
    padding: clamp(16px, 3vw, 30px);
    border: 1px solid #ccd7c2;
    border-radius: 12px;
    background: #eff0e4;
}
.history-archive-with-media { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.history-archive figure { margin: 0; }
.history-archive figure + figure { margin-top: 20px; }
.history-archive figure > a { display: block; }
.history-archive img { width: 100%; height: auto; border-radius: 6px; }
.history-archive figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); }
.history-archive figcaption a { display: block; }
.history-archive h2, .history-tours h2 { font-size: clamp(23px, 3vw, 33px); }
.history-archive-copy p { color: var(--ink); }
.history-archive-sources { margin: 12px 0 0; padding-left: 18px; font-size: 13px; }

@media (max-width: 900px) {
    .history-overview { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
    .history-archive-with-media { grid-template-columns: minmax(0, 1fr); }
}
