.dh-history,
.dh-latest-section {
    --dh-paper: #f5f1e8;
    --dh-surface: #fcfaf5;
    --dh-ink: #192f30;
    --dh-muted: #4d5e59;
    --dh-teal: #174b4c;
    --dh-terracotta: #9c402d;
    --dh-line: #cdc5b7;
    --dh-dark: #1b2323;
    --dh-width: 78rem;
    --dh-gutter: clamp(1rem, 4vw, 3.5rem);
    --dh-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--dh-paper);
    color: var(--dh-ink);
    color-scheme: light;
    padding: clamp(2.25rem, 3vw, 2.75rem) var(--dh-gutter) clamp(3rem, 7vw, 6rem);
    font: 400 1rem/1.65 var(--dh-sans);
}

#wrap:has(+ .dh-latest-section) > .dh-history:last-child {
    padding-bottom: 0;
}

.dh-latest-section {
    display: flow-root;
    padding-top: 0;
}

.dh-history,
.dh-history *,
.dh-history *::before,
.dh-history *::after {
    box-sizing: border-box;
}

.dh-history :is(.dh-intro, .dh-explorer, .dh-reading, .dh-records) {
    width: 100%;
    max-width: var(--dh-width);
    margin-inline: auto;
}

.dh-history .dh-intro {
    margin-bottom: clamp(1.5rem, 2.1vw, 1.9rem);
}

.dh-history :is(.dh-eyebrow, .dh-date) {
    margin: 0 0 .7rem;
    color: var(--dh-terracotta);
    font: 700 .77rem/1.4 var(--dh-sans);
    letter-spacing: .115em;
    text-transform: uppercase;
}

.dh-history .dh-intro h1 {
    max-width: 19ch;
    margin: 0;
    color: var(--dh-ink);
    font: 600 clamp(2.45rem, 5.7vw, 5rem)/1.08 var(--dh-sans);
    letter-spacing: -.04em;
    text-wrap: balance;
}

.dh-history .dh-intro h1.dh-timeline-title {
    align-self: center;
    grid-row: 1 / 3;
    width: 100%;
    max-width: none;
    line-height: 0;
}

.dh-timeline-title img {
    display: block;
    width: 100%;
    height: auto;
}

.dh-history .dh-lead {
    max-width: 62ch;
    margin: 1.2rem 0 0;
    color: var(--dh-muted);
    font-size: clamp(1.02rem, 1.8vw, 1.25rem);
    line-height: 1.6;
}

.dh-history .dh-stage {
    min-width: 0;
    display: grid;
    gap: clamp(1rem, 2.5vw, 2rem);
    overflow-anchor: none;
}

.dh-history .dh-slide {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    align-items: stretch;
    margin: 0;
    border: 1px solid var(--dh-line);
    border-radius: .45rem;
    background: var(--dh-surface);
    overflow: clip;
}

.dh-history .dh-slide[data-dh-inactive] {
    display: none;
}

.dh-history .dh-figure {
    display: flex;
    min-width: 0;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    padding: clamp(.55rem, 1.5vw, 1.2rem);
    background: var(--dh-dark);
    color: #e3e3db;
}

.dh-history .dh-figure img {
    display: block;
    width: 100%;
    max-width: 36rem;
    height: auto;
    margin-inline: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    border-radius: .2rem;
    background: #151b1b;
}

.dh-history .dh-figure figcaption {
    width: 100%;
    max-width: 36rem;
    margin: .65rem auto 0;
    font: 400 .78rem/1.45 var(--dh-sans);
    color: inherit;
}

.dh-history .dh-copy {
    min-width: 0;
    align-self: center;
    padding: clamp(1.3rem, 3.1vw, 3rem);
    overflow-wrap: anywhere;
}

.dh-history :is(.dh-copy, .dh-reading, .dh-records) h2 {
    margin: 0 0 .65rem;
    color: var(--dh-ink);
    font: 600 clamp(1.75rem, 2.8vw, 2.8rem)/1.12 var(--dh-sans);
    letter-spacing: -.027em;
    text-wrap: balance;
}

.dh-history .dh-copy p:not(.dh-date) {
    margin: 0 0 .85rem;
    color: var(--dh-muted);
    font-size: 1rem;
    line-height: 1.65;
}

.dh-history :is(a.dh-source, .dh-reading-grid a, .dh-records a) {
    color: var(--dh-teal);
    text-decoration: underline;
    text-underline-offset: .19em;
}

.dh-history a.dh-source {
    display: inline-block;
    margin-top: .25rem;
    font: 650 .85rem/1.5 var(--dh-sans);
}

.dh-history .dh-sources {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
    margin-top: .55rem;
}

.dh-history .dh-sources .dh-source {
    margin-top: 0;
}

.dh-history :is(a.dh-source, .dh-reading-grid a, .dh-records a):hover {
    color: var(--dh-terracotta);
}

.dh-history :is(a, button, .dh-slide):focus-visible {
    outline: 2px solid var(--dh-terracotta);
    outline-offset: 3px;
}

.dh-history:not(.dh-enhanced) :is(.dh-controls, .dh-rail) {
    display: none;
}

.dh-history:is(.editor_enable *, [data-dh-editing="true"]):not(.dh-enhanced) .dh-rail {
    display: block;
}

.dh-history .dh-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .6rem;
    min-width: 0;
    margin: .65rem 0 .2rem;
}

.dh-history :is(.dh-controls button, .dh-marker) {
    appearance: none;
    background: transparent;
    color: var(--dh-ink);
    font-family: var(--dh-sans);
    margin: 0;
    text-transform: none;
    cursor: pointer;
}

.dh-history .dh-controls button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 2.75rem;
    min-height: 2.75rem;
    gap: .35rem;
    padding: .35rem .7rem;
    border: 1px solid var(--dh-line);
    border-radius: .25rem;
    font-size: .85rem;
    line-height: 1.1;
}

.dh-history .dh-controls button:hover:not([aria-disabled="true"]) {
    color: var(--dh-surface);
    border-color: var(--dh-teal);
    background: var(--dh-teal);
}

.dh-history .dh-controls button[aria-disabled="true"] {
    color: var(--dh-muted);
    opacity: .55;
    cursor: default;
}

.dh-history .dh-position {
    min-width: 5.5ch;
    margin: 0;
    color: var(--dh-muted);
    font: 650 .79rem/1.2 var(--dh-sans);
    font-variant-numeric: tabular-nums;
    text-align: center;
}

.dh-history .dh-rail {
    --dh-axis: 1.18rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: .1rem .2rem .55rem;
    scrollbar-color: #928677 #e7e0d2;
    scrollbar-width: thin;
}

.dh-history .dh-track {
    position: relative;
    display: flex;
    width: max-content;
    min-width: 100%;
    isolation: isolate;
}

.dh-history .dh-track::before {
    content: "";
    position: absolute;
    inset: var(--dh-axis) 0 auto;
    height: 1px;
    background: var(--dh-line);
    pointer-events: none;
}

.dh-history .dh-band {
    position: relative;
    display: flex;
    justify-content: space-between;
    width: max-content;
    min-width: 100%;
}

.dh-history .dh-band::before {
    content: "";
    position: absolute;
    inset: var(--dh-axis) 0 auto;
    height: 1px;
    background: var(--dh-line);
}

.dh-history .dh-band > .dh-track {
    flex: 1 0 auto;
    width: auto;
    min-width: 0;
}

.dh-history .dh-band > .dh-track::before {
    content: none;
}

.dh-history .dh-context {
    position: relative;
    flex: 0 0 8.75rem;
    width: 8.75rem;
    padding: calc(var(--dh-axis) + .55rem) .2rem 0;
    text-align: center;
    cursor: default;
}

.dh-history .dh-context .dh-dot {
    border-color: #8a8c8d;
    background: #d4d5d5;
}

.dh-history .dh-context-copy {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    padding: .33rem .45rem .5rem;
    border-radius: .25rem;
    background: #ececea;
    color: #525657;
    font: 400 .73rem/1.32 var(--dh-sans);
}

.dh-history .dh-context-copy strong {
    font-size: .78rem;
    font-weight: 700;
}

.dh-history .dh-context-copy b {
    font-weight: 650;
}

@media (min-width: 64em) {
    .dh-history .dh-band .dh-marker {
        flex-basis: 5.9rem;
        width: 5.9rem;
    }
}

.dh-history:not(.dh-enhanced) .dh-rail:has(.dh-band) {
    display: block;
}

.dh-history:not(.dh-enhanced):not(.editor_enable *):not([data-dh-editing="true"]) .dh-band > .dh-track {
    display: none;
}

.dh-history .dh-marker {
    position: relative;
    display: flex;
    flex: 1 0 6.8rem;
    flex-direction: column;
    align-items: center;
    width: 6.8rem;
    min-height: 5.6rem;
    gap: .2rem;
    padding: calc(var(--dh-axis) + .88rem) .36rem .35rem;
    border: 0;
    border-radius: .22rem;
    text-align: center;
}

.dh-history .dh-marker:focus-visible {
    outline-offset: -2px;
}

.dh-history .dh-dot {
    position: absolute;
    top: calc(var(--dh-axis) + .5px);
    left: 50%;
    width: .65rem;
    height: .65rem;
    transform: translate(-50%, -50%);
    border: 1px solid var(--dh-teal);
    border-radius: 50%;
    background: var(--dh-paper);
}

.dh-history .dh-when {
    color: var(--dh-teal);
    font: 750 .78rem/1.2 var(--dh-sans);
    font-variant-numeric: tabular-nums;
}

.dh-history .dh-label {
    color: var(--dh-muted);
    font: 500 .72rem/1.3 var(--dh-sans);
    overflow-wrap: anywhere;
}

.dh-history .dh-marker[aria-selected="true"] :is(.dh-when, .dh-label) {
    color: var(--dh-terracotta);
    font-weight: 750;
}

.dh-history .dh-marker[aria-selected="true"] .dh-dot {
    border-color: var(--dh-terracotta);
    background: var(--dh-terracotta);
    box-shadow: 0 0 0 .21rem #ead8c9;
}

.dh-history :is(.dh-reading, .dh-records) {
    margin-top: clamp(2.4rem, 5.5vw, 4.75rem);
    padding-top: clamp(1.25rem, 3.2vw, 2.25rem);
    border-top: 1px solid var(--dh-line);
}

.dh-history .dh-reading-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: .8rem;
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
}

.dh-history .dh-reading-grid a {
    display: block;
    height: 100%;
    padding: 1rem 1.15rem;
    border: 1px solid var(--dh-line);
    border-radius: .28rem;
    background: var(--dh-surface);
    text-decoration: none;
}

.dh-history .dh-reading-grid a:hover {
    border-color: var(--dh-terracotta);
}

.dh-history .dh-reading-grid strong {
    display: block;
    font: 700 1rem/1.35 var(--dh-sans);
    text-decoration: underline;
    text-underline-offset: .19em;
}

.dh-history .dh-reading-grid span {
    display: block;
    margin-top: .36rem;
    color: var(--dh-muted);
    font-size: .86rem;
    line-height: 1.5;
}

.dh-history .dh-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* The film gate clips both frames while the pair of panels travels through it. */
.dh-history.dh-enhanced .dh-stage {
    --film: #181b1a;
    --film-edge: #101211;
    --hole: var(--dh-paper);
    --film-y: 22px;
    --film-x: 8px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    overflow: clip;
    padding: var(--film-y) var(--film-x);
    gap: 0;
    align-content: start;
    background: var(--film);
    border-radius: 3px;
}

.dh-history.dh-enhanced .dh-stage::before,
.dh-history.dh-enhanced .dh-stage::after {
    content: "";
    position: absolute;
    z-index: 2;
    pointer-events: none;
    inset: 0 0 auto;
    height: var(--film-y);
    background:
        linear-gradient(90deg, transparent 8px, var(--hole) 8px 20px, transparent 20px) 0 center / 28px 8px repeat-x,
        linear-gradient(90deg, transparent 9px, var(--hole) 9px 19px, transparent 19px) 0 center / 28px 10px repeat-x,
        linear-gradient(var(--film-edge), var(--film));
}

.dh-history.dh-enhanced .dh-stage::after {
    inset: auto 0 0;
}

.dh-history.dh-enhanced .dh-slide[role="tabpanel"] {
    gap: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--film);
}

.dh-history.dh-enhanced .dh-figure,
.dh-history.dh-enhanced .dh-copy {
    overflow: clip;
    border-radius: 5px;
}

.dh-history.dh-enhanced .dh-figure {
    background: #252a29;
}

.dh-history.dh-enhanced .dh-copy {
    align-self: stretch;
    align-content: center;
    background: var(--dh-surface);
}

.dh-history.dh-enhanced .dh-slide[role="tabpanel"]:focus-visible {
    outline-offset: -3px;
}

.dh-history.dh-enhanced .dh-controls {
    gap: .4rem;
    margin: .6rem 0 0;
}

.dh-history.dh-enhanced .dh-controls button {
    background: var(--dh-surface);
    border-radius: 50%;
}

@media (min-width: 50em) {
    .dh-history.dh-enhanced .dh-slide[role="tabpanel"] {
        grid-area: 1 / 1;
    }

    .dh-history.dh-enhanced .dh-slide[role="tabpanel"][data-dh-inactive] {
        display: grid;
        visibility: hidden;
        pointer-events: none;
    }
}

.dh-history.dh-enhanced .dh-slide[role="tabpanel"][data-dh-leaving] {
    display: grid;
    visibility: visible;
    pointer-events: none;
}

@media (min-width: 64em) {
    .dh-history .dh-intro {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
        align-items: center;
        column-gap: clamp(1.5rem, 3vw, 2.75rem);
    }

    .dh-history .dh-eyebrow {
        grid-column: 1;
        align-self: end;
    }

    .dh-history .dh-intro h1 {
        grid-column: 1;
        align-self: start;
        font-size: clamp(2.9rem, 4.4vw, 4rem);
    }

    .dh-history .dh-lead {
        grid-column: 2;
        grid-row: 1 / 3;
        margin: 0;
        font-size: 1rem;
        line-height: 1.5;
    }

}

@media (min-width: 64em) and (max-height: 50em) {
    .dh-history {
        padding-top: 1.85rem;
    }

    .dh-history .dh-intro {
        margin-bottom: 1.35rem;
    }
}

@media (max-width: 49.99em) {
    .dh-history.dh-enhanced .dh-stage {
        --film-y: 6px;
        --film-x: 15px;
    }

    .dh-history.dh-enhanced .dh-stage::before,
    .dh-history.dh-enhanced .dh-stage::after {
        inset: 0 auto 0 0;
        width: var(--film-x);
        height: auto;
        background:
            linear-gradient(transparent 6px, var(--hole) 6px 16px, transparent 16px) center 0 / 5px 22px repeat-y,
            linear-gradient(transparent 7px, var(--hole) 7px 15px, transparent 15px) center 0 / 7px 22px repeat-y,
            var(--film);
    }

    .dh-history.dh-enhanced .dh-stage::after {
        inset: 0 0 0 auto;
    }

    .dh-history.dh-enhanced .dh-slide[role="tabpanel"] {
        gap: 6px;
    }

    .dh-history.dh-enhanced .dh-slide[role="tabpanel"][data-dh-leaving] {
        position: absolute;
        inset: var(--film-y) var(--film-x) auto;
    }

    .dh-history .dh-slide {
        grid-template-columns: minmax(0, 1fr);
    }

    .dh-history .dh-marker {
        flex-basis: 6.75rem;
        width: 6.75rem;
    }
}

@media (max-width: 30em) {
    .dh-history .dh-controls {
        justify-content: space-between;
    }

    .dh-history .dh-rail {
        margin-right: calc(var(--dh-gutter) * -.65);
    }
}

@media (forced-colors: active) {
    .dh-history .dh-marker[aria-selected="true"] .dh-dot {
        border: 3px solid Highlight;
    }
}

/* The illustration spans the page gutters while the film keeps its own measure. */
.dh-history:has(> .dh-cover:first-child) {
    padding-top: 0;
}

.dh-cover {
    margin-inline: max(calc(0px - var(--dh-gutter)), calc((100% - 1590px) / 2));
    color: #283e42;
    font-family: "Segoe UI", Arial, sans-serif;
    text-align: start;
}

.dh-cover-opening {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 26% minmax(0, 39%) auto;
    align-content: center;
    min-height: clamp(370px, 33.33vw, 530px);
    padding: 20px 0 clamp(58px, 5.9vw, 94px);
}

.dh-cover-scene {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.dh-cover-scene::before,
.dh-cover-scene::after {
    content: "";
    position: absolute;
    inset: 0;
}

.dh-cover-scene::before {
    background: url("img/univers-panorama.webp") center / 100% 100% no-repeat;
    mask-image: linear-gradient(to right, transparent, #000 3%, #000 97%, transparent),
        linear-gradient(to bottom, transparent, #000 11%, #000 89%, transparent);
    mask-composite: intersect;
}

.dh-cover-scene::after {
    background: radial-gradient(ellipse 34% 43% at 44% 44%, rgba(248, 242, 227, .75), transparent);
}

.dh-cover-stamp {
    position: absolute;
    z-index: 1;
    left: 20.4%;
    top: 83%;
    color: #a54126;
    font: 600 clamp(12px, 1.1vw, 17px)/1.1 ui-monospace, Consolas, monospace;
    letter-spacing: .015em;
    pointer-events: auto;
}

.dh-cover-title,
.dh-cover-lead {
    position: relative;
    grid-column: 2;
}

.dh-cover-title {
    margin: 0 0 clamp(13px, 1.15vw, 19px);
    color: #082b45;
    font: inherit;
    font-family: Arial, "Segoe UI", sans-serif;
}

.dh-cover-word,
.dh-cover-name {
    display: block;
    width: fit-content;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.dh-cover-word {
    font-size: clamp(79px, 7.8vw, 124px);
    line-height: .91;
    letter-spacing: -.077em;
    font-weight: 780;
}

.dh-cover-name {
    margin-top: 5px;
    padding-left: .08em;
    font-size: clamp(29px, 2.55vw, 40px);
    line-height: 1.03;
    letter-spacing: -.043em;
    font-weight: 650;
}

.dh-cover-lead {
    margin: 0;
    padding-left: .12em;
    max-width: 47ch;
    color: #223c40;
    font-size: clamp(16px, 1.22vw, 19px);
    line-height: 1.53;
    text-wrap: pretty;
    overflow-wrap: break-word;
}

.dh-cover-lead strong {
    font-weight: 650;
}

.dh-cover-chapters {
    position: relative;
    display: flex;
    align-items: baseline;
    gap: clamp(36px, 5vw, 92px);
    max-width: 1450px;
    margin: clamp(-10px, -.55vw, -4px) auto 0;
    padding: 0 max(38px, 8.1%) clamp(27px, 3vw, 46px);
}

.dh-cover-chapter {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: baseline;
    gap: clamp(12px, 1.55vw, 24px);
    min-width: 0;
    flex: 1.15;
}

.dh-cover-chapter:last-child {
    flex: .85;
}

.dh-cover-chapter h2 {
    margin: 0;
    color: #a54126;
    font: 600 clamp(18px, 1.65vw, 27px)/1.12 "Segoe UI", Arial, sans-serif;
    letter-spacing: -.05em;
    font-variant-numeric: lining-nums tabular-nums;
}

.dh-cover-chapter p {
    margin: 0;
    font-size: clamp(15px, 1.1vw, 17px);
    line-height: 1.55;
    text-wrap: pretty;
    overflow-wrap: break-word;
}

@media (min-width: 821px) and (max-width: 1080px) {
    .dh-cover-opening {
        grid-template-columns: 24% minmax(0, 45%) auto;
        min-height: 385px;
    }

    .dh-cover-chapters {
        padding-inline: 5%;
        gap: 34px;
    }

    .dh-cover-chapter {
        display: block;
    }

    .dh-cover-chapter h2 {
        margin-bottom: 5px;
    }
}

@media (max-width: 820px) {
    .dh-cover-opening {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
        padding: 0;
    }

    .dh-cover-title {
        order: 0;
        margin: 0;
        padding: clamp(24px, 5.5vw, 38px) 7% 0;
    }

    .dh-cover-word {
        font-size: clamp(70px, 15vw, 104px);
    }

    .dh-cover-name {
        font-size: clamp(25px, 5.65vw, 36px);
        margin-top: 3px;
    }

    .dh-cover-scene {
        order: 1;
        position: relative;
        inset: auto;
        aspect-ratio: 3 / 1;
        margin-top: -4px;
    }

    .dh-cover-scene::before {
        background-image: url("img/univers-panorama-1040.webp");
        mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 90%, transparent);
    }

    .dh-cover-scene::after {
        display: none;
    }

    .dh-cover-stamp {
        font-size: 11px;
        top: 85%;
    }

    .dh-cover-lead {
        order: 2;
        padding: 3px 7% 0;
        max-width: 65ch;
        font-size: 17px;
    }

    .dh-cover-chapters {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px 7% 28px;
        margin: 0;
    }

    .dh-cover-chapter {
        display: block;
        border-inline-start: 1px solid #bf694c;
        padding-left: 14px;
    }

    .dh-cover-chapter h2 {
        font-size: 18px;
        margin-bottom: 3px;
    }

    .dh-cover-chapter p {
        font-size: 15.5px;
        line-height: 1.5;
    }
}

@media (max-width: 490px) {
    .dh-cover-lead {
        font-size: 16.5px;
    }
}

@media (max-width: 360px) {
    .dh-cover-word {
        font-size: 62px;
    }
}
