/* Archive templates: Histoire, Saga and Les bateaux. */
#default-page.heritage-archive {
    --heritage-ink: #14233f;
    --heritage-muted: #566174;
    --heritage-line: #dce0e5;
    --heritage-paper: #f4f3ef;
    --heritage-accent: #ffce22;
    max-width: 1600px;
    margin: 0 auto;
    padding: 130px clamp(24px, 5vw, 80px) 0;
    color: var(--heritage-ink);
    background: #fff;
    font-size: 16px;
    line-height: 1.65;
}
.heritage-archive [hidden] { display: none !important; }
.heritage-archive a { color: inherit; }
.heritage-archive a:focus-visible,
.heritage-archive summary:focus-visible,
.heritage-archive input:focus-visible,
.heritage-archive select:focus-visible {
    outline: 3px solid #997400;
    outline-offset: 5px;
}
.heritage-intro { padding: 35px 0 40px; border-top: 2px solid var(--heritage-ink); }
.heritage-eyebrow { font-size: 12px; font-weight: 500; letter-spacing: .15em; text-transform: uppercase; }
.heritage-eyebrow span { margin: 0 12px; color: #8a92a0; }
.heritage-intro h1 { margin: 20px 0; font-size: clamp(44px, 6vw, 86px); font-weight: 300; line-height: 1.08; letter-spacing: -.04em; }
.heritage-lead { max-width: 750px; font-size: clamp(17px, 1.6vw, 21px); color: var(--heritage-muted); }
.heritage-intro .breadcrumbs { padding: 0 !important; margin: 25px 0 0 !important; font-size: 12px; color: var(--heritage-muted); }
.heritage-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 80px; border-top: 1px solid var(--heritage-line); border-bottom: 1px solid var(--heritage-line); }
.heritage-index a { padding: 24px 20px; font-size: 13px; line-height: 1.5; border-left: 1px solid var(--heritage-line); }
.heritage-index a:first-child { border-left: 0; padding-left: 0; }
.heritage-index a:hover { background: var(--heritage-paper); }
.heritage-index a span { display: block; margin-bottom: 6px; font-size: 20px; font-weight: 500; }
.heritage-index-people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.heritage-era { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(30px, 5vw, 80px); padding-bottom: 65px; scroll-margin-top: 130px; }
.heritage-era-heading h2 { max-width: 280px; margin-top: 12px; font-size: clamp(25px, 2.8vw, 36px); font-weight: 300; line-height: 1.25; }
.heritage-events { border-left: 1px solid var(--heritage-line); }
.heritage-event { position: relative; display: grid; grid-template-columns: minmax(100px, 1fr) 2fr; gap: 24px; padding: 0 0 38px 30px; }
.heritage-event::before { content: ''; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--heritage-accent); box-shadow: 0 0 0 4px #fff; }
.heritage-event time { font-size: 15px; font-weight: 500; }
.heritage-event h3 { margin-bottom: 8px; font-size: 20px; font-weight: 500; line-height: 1.35; }
.heritage-event p { font-size: 15px; color: var(--heritage-muted); }
.heritage-portrait { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 40px 70px; margin-bottom: 90px; padding-bottom: 70px; border-bottom: 1px solid var(--heritage-line); scroll-margin-top: 130px; }
.heritage-portrait-image { position: relative; align-self: start; background: var(--heritage-paper); }
.heritage-portrait-image img { width: 100%; height: 420px; object-fit: cover; object-position: center top; }
.heritage-portrait-image > span { position: absolute; bottom: 0; left: 0; padding: 8px 25px; background: var(--heritage-ink); color: #fff; font-size: 32px; font-weight: 300; }
.heritage-portrait-text { align-self: center; }
.heritage-portrait-text h2 { margin: 14px 0 25px; font-size: clamp(30px, 3.2vw, 46px); font-weight: 300; line-height: 1.15; letter-spacing: -.025em; }
.heritage-portrait-text > p:not(.heritage-eyebrow) { margin-top: 18px; color: var(--heritage-muted); }
.heritage-gallery { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.heritage-gallery a { display: block; background: var(--heritage-paper); }
.heritage-gallery img { width: 100%; height: 230px; object-fit: contain; }
.heritage-boat-filters { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 25px; align-items: end; margin: 0 0 40px; padding: 25px 0; border-top: 1px solid var(--heritage-line); border-bottom: 1px solid var(--heritage-line); }
.heritage-boat-filters label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; font-weight: 500; }
.heritage-boat-filters input,
.heritage-boat-filters select { width: 100%; min-width: 0; min-height: 48px; padding: 12px 14px; border: 1px solid var(--heritage-line); border-radius: 0; background: #fff; color: var(--heritage-ink); font: inherit; font-size: 14px; }
.heritage-boat-filters input::placeholder { color: #647084; opacity: 1; }
.heritage-boat-filters [role="status"] { min-width: 90px; padding: 12px 0; font-size: 13px; color: var(--heritage-muted); }
.heritage-boat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 45px 30px; align-items: start; padding-bottom: 60px; }
.heritage-boat { min-width: 0; border-bottom: 1px solid var(--heritage-line); scroll-margin-top: 130px; }
.heritage-boat-image { position: relative; background: var(--heritage-paper); }
.heritage-boat-image img { width: 100%; height: 285px; padding: 20px; object-fit: contain; }
.heritage-boat-year { position: absolute; z-index: 1; top: 15px; left: 15px; padding: 3px 10px; background: #fff; font-size: 13px; font-weight: 500; }
.heritage-boat-body { padding: 23px 0 0; }
.heritage-boat h2 { font-size: 24px; font-weight: 500; line-height: 1.2; }
.heritage-boat-type { min-height: 3em; margin: 10px 0 16px; font-size: 13px; color: var(--heritage-muted); }
.heritage-boat-body > p:not(.heritage-boat-type) { font-size: 14px; }
.heritage-boat-specs { margin-top: 20px; }
.heritage-boat-specs summary { min-height: 48px; padding: 12px 0; cursor: pointer; font-size: 13px; font-weight: 500; }
.heritage-boat-specs summary::marker { color: var(--heritage-ink); }
.heritage-boat-specs h3 { margin: 16px 0 8px; font-size: 15px; font-weight: 500; }
.heritage-boat-specs dl { padding: 0 0 20px; font-size: 12px; }
.heritage-boat-specs dl > div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--heritage-line); overflow-wrap: anywhere; }
.heritage-boat-specs dt { color: var(--heritage-muted); }
.heritage-boat-specs dd { margin: 0; }
.heritage-no-results { padding: 25px 0 65px; }
.heritage-editor-content { padding: 0 0 60px; }
.heritage-source { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 15px; padding: 25px 0 40px; border-top: 1px solid var(--heritage-line); color: var(--heritage-muted); font-size: 12px; }
.heritage-source a { text-decoration: underline; text-underline-offset: 4px; }
.heritage-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 1100px) {
    .heritage-boat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .heritage-era { grid-template-columns: 1fr 2fr; gap: 30px; }
    .heritage-event { grid-template-columns: 1fr; gap: 8px; }
    .heritage-portrait { gap: 30px; }
    .heritage-portrait-image img { height: 360px; }
    .heritage-gallery img { height: 190px; }
}
@media (max-width: 700px) {
    #default-page.heritage-archive { padding: 105px 22px 0; }
    .heritage-intro { padding: 25px 0 30px; }
    .heritage-index { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 45px; }
    .heritage-index a { padding: 18px 12px; border: 0; }
    .heritage-index a:first-child { padding-left: 12px; }
    .heritage-index a:nth-child(n+3) { border-top: 1px solid var(--heritage-line); }
    .heritage-index a span { font-size: 18px; }
    .heritage-index-people { grid-template-columns: 1fr; }
    .heritage-index-people a + a { border-top: 1px solid var(--heritage-line); }
    .heritage-era { grid-template-columns: 1fr; padding-bottom: 35px; }
    .heritage-era-heading h2 { max-width: none; }
    .heritage-events { margin-left: 5px; }
    .heritage-event { padding-left: 22px; padding-bottom: 30px; }
    .heritage-portrait { grid-template-columns: 1fr; margin-bottom: 50px; padding-bottom: 40px; }
    .heritage-portrait-image img { height: auto; max-height: 470px; object-fit: contain; }
    .heritage-gallery { gap: 8px; }
    .heritage-gallery img { height: 110px; }
    .heritage-boat-filters { grid-template-columns: 1fr; gap: 16px; }
    .heritage-boat-filters [role="status"] { padding: 0; }
    .heritage-boat-grid { grid-template-columns: 1fr; gap: 35px; }
    .heritage-boat-image img { height: 290px; }
}
