/* Interactive history section. Everything is scoped to history markup. */
.history-main {
    --history-blue: #052e5f;
    --history-blue-deep: #031d3c;
    --history-red: #cf1234;
    --history-paper: #f6f1e8;
    --history-paper-light: #fcfaf6;
    --history-gold: #cfa76b;
    --history-ink: #17212e;
    --history-muted: #627083;
    min-height: 60vh;
    overflow: clip;
    color: var(--history-ink);
    background: var(--history-paper-light);
}

.history-shell {
    width: min(calc(100% - 80px), 1380px);
    margin-inline: auto;
}

.history-main h1,
.history-main h2,
.history-main h3 {
    text-wrap: balance;
}

.history-main h1,
.history-main h2 {
    font-family: Georgia, "Times New Roman", serif;
    letter-spacing: -.025em;
}

.history-breadcrumbs {
    padding-block: 17px;
    background: var(--history-paper-light);
}

.history-breadcrumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--history-muted);
    font-size: .76rem;
}

.history-breadcrumbs a:hover { color: var(--history-red); }

.history-subnav {
    position: sticky;
    z-index: 31;
    top: 0;
    overflow-x: auto;
    border-block: 1px solid #dce2e8;
    background: rgba(255,255,255,.97);
    scrollbar-width: none;
}

.history-subnav::-webkit-scrollbar { display: none; }
.history-subnav .history-shell { display: flex; width: max-content; min-width: min(calc(100% - 80px), 1380px); }
.history-subnav a {
    position: relative;
    display: block;
    padding: 15px 17px;
    color: #4f5e70;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
    white-space: nowrap;
}
.history-subnav a::after {
    position: absolute;
    right: 17px;
    bottom: -1px;
    left: 17px;
    height: 3px;
    background: var(--history-red);
    content: "";
    opacity: 0;
    transform: scaleX(.35);
    transition: .2s ease;
}
.history-subnav a:hover,
.history-subnav a.is-active { color: var(--history-blue); }
.history-subnav a:hover::after,
.history-subnav a.is-active::after { opacity: 1; transform: none; }

.history-hero,
.history-route-hero,
.history-compact-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background: var(--history-blue-deep);
}

.history-hero { min-height: min(700px, 72vh); }
.history-hero > img,
.history-route-hero > img,
.history-compact-hero > img {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.history-hero > img { object-position: center 58%; }
.history-hero__shade,
.history-route-hero__shade,
.history-compact-hero__shade {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(2,22,46,.94) 0%, rgba(3,28,59,.73) 46%, rgba(3,28,59,.16) 100%);
}
.history-hero::after,
.history-route-hero::after,
.history-compact-hero::after {
    position: absolute;
    z-index: -1;
    right: -7vw;
    bottom: -125px;
    width: 42vw;
    height: 210px;
    border: 1px solid rgba(255,255,255,.19);
    border-radius: 50%;
    content: "";
    transform: rotate(-6deg);
}
.history-hero__content {
    display: flex;
    min-height: min(700px, 72vh);
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding-block: 80px;
}
.history-kicker {
    margin: 0 0 16px;
    color: #f0cc91;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.history-kicker--dark { color: #a66a1f; }
.history-hero h1 {
    max-width: 880px;
    margin: 0;
    font-size: clamp(3rem, 7vw, 6.4rem);
    font-weight: 400;
    line-height: .96;
}
.history-hero__lead {
    max-width: 730px;
    margin: 28px 0 0;
    color: rgba(255,255,255,.88);
    font-size: clamp(1rem, 1.5vw, 1.24rem);
    line-height: 1.75;
}
.history-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.history-button {
    display: inline-flex;
    min-height: 51px;
    align-items: center;
    justify-content: center;
    padding: 13px 22px;
    border: 1px solid transparent;
    border-radius: 5px;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .045em;
    text-transform: uppercase;
    transition: transform .2s ease, background .2s ease, color .2s ease;
}
.history-button:hover { transform: translateY(-2px); }
.history-button--light { color: var(--history-blue); background: #fff; }
.history-button--ghost { border-color: rgba(255,255,255,.65); color: #fff; background: rgba(255,255,255,.05); }
.history-button--primary { color: #fff; background: var(--history-red); }
.history-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin: 48px 0 0;
}
.history-hero__stats div { min-width: 150px; padding: 0 30px; border-left: 1px solid rgba(255,255,255,.3); }
.history-hero__stats div:first-child { padding-left: 0; border-left: 0; }
.history-hero__stats dt { font-family: Georgia, serif; font-size: 2rem; line-height: 1; }
.history-hero__stats dd { margin: 7px 0 0; color: rgba(255,255,255,.67); font-size: .66rem; letter-spacing: .07em; text-transform: uppercase; }

.history-section { padding-block: clamp(64px, 8vw, 116px); }
.history-section--blue { color: #fff; background: var(--history-blue); }
.history-section__heading { max-width: 820px; margin-bottom: 42px; }
.history-section__heading h2 { margin: 0; color: var(--history-blue); font-size: clamp(2.35rem, 5vw, 4.6rem); font-weight: 400; line-height: 1.05; }
.history-section__heading--inverse h2 { color: #fff; }

.history-entry-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.history-entry-card {
    position: relative;
    display: flex;
    min-height: 345px;
    align-items: flex-start;
    flex-direction: column;
    padding: 34px;
    overflow: hidden;
    border: 1px solid #d9d2c8;
    background: var(--history-paper);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.history-entry-card::after {
    position: absolute;
    right: -45px;
    bottom: -100px;
    width: 240px;
    height: 180px;
    border: 1px solid rgba(5,46,95,.18);
    border-radius: 50%;
    content: "";
}
.history-entry-card:hover { transform: translateY(-6px); border-color: #c4b292; box-shadow: 0 22px 48px rgba(3,29,60,.12); }
.history-entry-card > span { color: var(--history-red); font-family: Georgia, serif; font-size: 1.3rem; }
.history-entry-card h3 { margin: 58px 0 15px; color: var(--history-blue); font-family: Georgia, serif; font-size: 2rem; font-weight: 400; line-height: 1.08; }
.history-entry-card p { margin: 0 0 24px; color: #596576; font-size: .9rem; line-height: 1.7; }
.history-entry-card strong { z-index: 1; margin-top: auto; color: var(--history-red); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }

.history-timeline-preview { display: grid; grid-template-columns: repeat(6, 1fr); margin: 20px 0 38px; border-top: 1px solid rgba(255,255,255,.25); }
.history-timeline-preview > a,
.history-timeline-preview > span { position: relative; display: block; padding: 29px 24px 20px 0; }
.history-timeline-preview > a::before,
.history-timeline-preview > span::before { position: absolute; top: -6px; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--history-gold); content: ""; }
.history-timeline-preview time { display: block; margin-bottom: 9px; color: #f0cc91; font-family: Georgia, serif; font-size: 1.65rem; }
.history-timeline-preview span span,
.history-timeline-preview a span { color: rgba(255,255,255,.78); font-size: .75rem; line-height: 1.5; }
.history-timeline-preview a:hover span { color: #fff; }
.history-text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--history-blue); font-size: .76rem; font-weight: 700; letter-spacing: .045em; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-transform: uppercase; }
.history-text-link::after { content: "→"; text-decoration: none; }
.history-text-link--light { color: #fff; }

.history-book-feature { display: grid; grid-template-columns: minmax(0, .8fr) minmax(520px, 1.2fr); align-items: center; gap: clamp(50px, 8vw, 130px); }
.history-book-feature > div:first-child h2 { margin: 0 0 25px; color: var(--history-blue); font-size: clamp(2.7rem, 5vw, 5rem); font-weight: 400; line-height: 1; }
.history-book-feature > div:first-child > p:not(.history-kicker) { margin: 0 0 30px; color: #536173; line-height: 1.85; }
.history-chapter-preview { margin: 0; padding: 0; border-top: 1px solid #d9d2c8; list-style: none; }
.history-chapter-preview li { border-bottom: 1px solid #d9d2c8; }
.history-chapter-preview a { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 17px; padding: 19px 8px; transition: padding .2s ease, background .2s ease; }
.history-chapter-preview a:hover { padding-inline: 17px; background: #f5efe5; }
.history-chapter-preview a > span { color: var(--history-red); font-family: Georgia, serif; }
.history-chapter-preview strong { color: var(--history-blue); font-size: .9rem; }
.history-chapter-preview small { color: var(--history-muted); font-size: .68rem; }

.history-feature-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.history-feature-card { overflow: hidden; border: 1px solid #e0dbd2; background: #fff; }
.history-feature-card > img { width: 100%; height: 245px; object-fit: cover; }
.history-feature-card > div { padding: 28px; }
.history-feature-card h3 { margin: 0 0 10px; color: var(--history-blue); font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.history-feature-card p:not(.history-kicker) { min-height: 54px; color: var(--history-muted); font-size: .84rem; }
.history-card-links { display: flex; flex-wrap: wrap; gap: 10px 19px; margin-top: 22px; color: var(--history-red); font-size: .71rem; font-weight: 700; text-transform: uppercase; }
.history-card-links a:hover { text-decoration: underline; text-underline-offset: 4px; }

.history-route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.history-route-card { position: relative; min-height: 390px; overflow: hidden; background: var(--history-blue); }
.history-route-card::after { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2,22,46,.92), rgba(2,22,46,.05) 70%); content: ""; }
.history-route-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.history-route-card:hover img { transform: scale(1.035); }
.history-route-card div { position: absolute; z-index: 1; right: 34px; bottom: 31px; left: 34px; color: #fff; }
.history-route-card div > span { color: #f0cc91; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.history-route-card h3 { margin: 8px 0 5px; font-family: Georgia, serif; font-size: 2.5rem; font-weight: 400; }
.history-route-card p { margin: 0; color: rgba(255,255,255,.7); font-size: .75rem; }

.history-compact-hero { min-height: 410px; }
.history-compact-hero > .history-shell { display: flex; min-height: 410px; justify-content: center; flex-direction: column; padding-block: 55px; }
.history-compact-hero h1,
.history-route-hero h1 { max-width: 920px; margin: 0; font-size: clamp(2.8rem, 6vw, 5.5rem); font-weight: 400; line-height: 1; }
.history-compact-hero p:last-child,
.history-route-hero .history-shell > p:last-child { max-width: 760px; margin: 23px 0 0; color: rgba(255,255,255,.8); line-height: 1.7; }

.history-source-note { display: grid; grid-template-columns: 230px 1fr; gap: 26px; margin-bottom: 52px; padding: 25px 29px; border-left: 4px solid var(--history-gold); background: var(--history-paper); }
.history-source-note strong { color: var(--history-blue); font-family: Georgia, serif; font-size: 1.2rem; font-weight: 400; }
.history-source-note p { margin: 0; color: #5f6875; font-size: .84rem; line-height: 1.7; }
.history-search { display: grid; gap: 9px; max-width: 720px; margin-bottom: 40px; color: var(--history-blue); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.history-search input { width: 100%; min-height: 55px; padding: 13px 17px; border: 1px solid #cfd6de; border-radius: 4px; color: var(--history-ink); background: #fff; font-size: .9rem; text-transform: none; outline: none; }
.history-search input:focus { border-color: var(--history-blue); box-shadow: 0 0 0 3px rgba(5,46,95,.1); }
.history-empty { padding: 25px; color: var(--history-muted); background: var(--history-paper); text-align: center; }

.history-book-groups { display: grid; gap: 62px; }
.history-book-groups > section > h2 { margin: 0 0 20px; color: var(--history-blue); font-size: 2.35rem; font-weight: 400; }
.history-book-groups ol { margin: 0; padding: 0; border-top: 1px solid #d8d1c6; list-style: none; }
.history-book-groups li { border-bottom: 1px solid #d8d1c6; }
.history-book-groups li > a { display: grid; grid-template-columns: 65px 1fr; gap: 24px; padding: 27px 12px; }
.history-book-groups li > a > span { color: var(--history-red); font-family: Georgia, serif; font-size: 1.5rem; }
.history-book-groups h3 { margin: 0 0 6px; color: var(--history-blue); font-family: Georgia, serif; font-size: 1.45rem; font-weight: 400; }
.history-book-groups p { max-width: 970px; margin: 0 0 8px; color: var(--history-muted); font-size: .81rem; }
.history-book-groups small { color: #8b6b42; font-size: .67rem; }
.history-book-groups li > a:hover { background: var(--history-paper); }
.history-resource-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 60px; }
.history-resource-links a { padding: 20px; border: 1px solid #d9d2c8; color: var(--history-blue); background: var(--history-paper); font-family: Georgia, serif; font-size: 1.05rem; text-align: center; }
.history-resource-links a:hover { border-color: var(--history-gold); }

.history-reading { overflow: visible; }
.history-reading-progress { position: fixed; z-index: 90; top: 0; left: 0; width: 0; height: 4px; background: var(--history-red); }
.history-reader-layout { display: grid; grid-template-columns: 290px minmax(0, 780px); justify-content: center; gap: clamp(45px, 8vw, 115px); padding-block: 72px 120px; }
.history-reader-toc { position: sticky; top: 76px; max-height: calc(100vh - 100px); overflow: auto; align-self: start; padding-right: 14px; scrollbar-width: thin; }
.history-reader-toc__back { display: block; margin-bottom: 18px; color: var(--history-red); font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.history-reader-toc ol { margin: 0; padding: 0; border-top: 1px solid #d8d1c6; list-style: none; }
.history-reader-toc li { border-bottom: 1px solid #e4ded5; }
.history-reader-toc li a { display: grid; grid-template-columns: 31px 1fr; gap: 7px; padding: 10px 5px; color: #6b7480; font-family: Georgia, serif; font-size: .82rem; line-height: 1.35; }
.history-reader-toc li a span { color: #a78353; font-family: Poppins, sans-serif; font-size: .62rem; }
.history-reader-toc li.is-current a { color: var(--history-blue); background: var(--history-paper); font-weight: 700; }
.history-article { min-width: 0; }
.history-article__header { margin-bottom: 38px; padding-bottom: 32px; border-bottom: 1px solid #d8d1c6; }
.history-article__header h1 { margin: 0; color: var(--history-blue); font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 400; line-height: 1.03; }
.history-reading-meta { margin: 20px 0 0; color: var(--history-muted); font-size: .72rem; }
.history-edition-note { display: flex; gap: 8px; flex-direction: column; margin: 0 0 42px; padding: 22px 25px; border-left: 4px solid var(--history-gold); color: #5c6673; background: var(--history-paper); font-size: .78rem; }
.history-edition-note strong { color: var(--history-blue); font-family: Georgia, serif; font-size: 1.1rem; font-weight: 400; }
.history-chapter-photo { margin: 28px 0 42px; }
.history-chapter-photo img { display: block; width: 100%; height: auto; max-height: 500px; object-fit: contain; background: #e9e3d9; }
.history-chapter-photo figcaption { padding: 12px 0 0; color: var(--history-muted); font-size: .73rem; line-height: 1.5; }
.history-book-text { color: #283545; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.05rem, 1.5vw, 1.18rem); line-height: 1.92; }
.history-book-text p { margin: 0 0 1.4em; }
.history-book-text p:first-child::first-letter { float: left; margin: .08em .11em 0 0; color: var(--history-red); font-size: 4.4em; line-height: .77; }
.history-book-text a { color: #8a1830; text-decoration: underline; text-decoration-color: rgba(138,24,48,.35); text-underline-offset: 3px; }
.history-book-text blockquote { margin: 2em 0; padding: 22px 28px; border-left: 3px solid var(--history-red); color: #33475e; background: #f1ede6; font-size: 1.12em; font-style: italic; }
.history-book-text ul { margin: 0 0 1.5em; padding-left: 1.4em; }
.history-inline-tables,
.history-related,
.history-mentions { margin-top: 70px; padding-top: 42px; border-top: 1px solid #d8d1c6; }
.history-inline-tables h2,
.history-related h2,
.history-mentions h2,
.history-facts h2 { margin: 0 0 25px; color: var(--history-blue); font-size: 2rem; font-weight: 400; }
.history-inline-tables details { margin-bottom: 12px; border: 1px solid #d8d1c6; background: #fff; }
.history-inline-tables summary { padding: 17px 20px; color: var(--history-blue); font-size: .8rem; font-weight: 700; cursor: pointer; }
.history-related > div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.history-related a { display: grid; grid-template-columns: 35px 1fr; gap: 2px 10px; padding: 14px; border: 1px solid #dfd8ce; background: var(--history-paper); }
.history-related a > span { grid-row: 1 / 3; color: var(--history-red); font-family: Georgia, serif; }
.history-related strong { color: var(--history-blue); font-size: .8rem; }
.history-related small { color: var(--history-muted); font-size: .64rem; }
.history-chapter-pagination { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-top: 80px; }
.history-chapter-pagination a { display: flex; min-height: 122px; justify-content: center; flex-direction: column; padding: 20px; border: 1px solid #d8d1c6; background: var(--history-paper); }
.history-chapter-pagination a:last-child { text-align: right; }
.history-chapter-pagination span { color: var(--history-red); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.history-chapter-pagination strong { margin-top: 8px; color: var(--history-blue); font-family: Georgia, serif; font-size: 1.1rem; font-weight: 400; }

.history-filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 38px; }
.history-filter-bar button { min-height: 40px; padding: 9px 14px; border: 1px solid #cfd5dc; border-radius: 999px; color: var(--history-blue); background: #fff; font-size: .69rem; font-weight: 700; }
.history-filter-bar button:hover,
.history-filter-bar button.is-active { border-color: var(--history-blue); color: #fff; background: var(--history-blue); }
.history-timeline { position: relative; max-width: 1000px; margin: 0 auto; padding: 0; list-style: none; }
.history-timeline::before { position: absolute; top: 10px; bottom: 10px; left: 145px; width: 1px; background: #c9b797; content: ""; }
.history-timeline li { position: relative; display: grid; grid-template-columns: 115px 1fr; gap: 60px; min-height: 130px; padding-bottom: 45px; }
.history-timeline li::before { position: absolute; top: 10px; left: 139px; width: 13px; height: 13px; border: 3px solid var(--history-paper-light); border-radius: 50%; background: var(--history-red); box-shadow: 0 0 0 1px var(--history-red); content: ""; }
.history-timeline li.is-editorial::before { background: var(--history-gold); box-shadow: 0 0 0 1px var(--history-gold); }
.history-timeline time { color: var(--history-blue); font-family: Georgia, serif; font-size: 2rem; text-align: right; }
.history-timeline li div > span { color: #987047; font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.history-timeline h2 { margin: 7px 0 0; color: var(--history-blue); font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 400; }
.history-timeline h2 a:hover { color: var(--history-red); }

.history-atlas-controls { display: grid; grid-template-columns: minmax(280px, 1fr) 1.5fr; align-items: end; gap: 30px; margin-bottom: 36px; }
.history-atlas-controls .history-search,
.history-atlas-controls .history-filter-bar { margin: 0; }
.history-ship-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.history-ship-card { min-width: 0; border: 1px solid #ddd6cb; background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.history-ship-card:hover { transform: translateY(-3px); box-shadow: 0 15px 30px rgba(3,29,60,.09); }
.history-ship-card > a { display: grid; grid-template-columns: 67px minmax(0,1fr); gap: 20px; min-height: 232px; padding: 25px 22px; }
.history-ship-card__mark { display: flex; align-items: center; flex-direction: column; padding-right: 15px; border-right: 1px solid #e0d9ce; }
.history-ship-card__mark span { color: var(--history-red); font-family: Georgia, serif; font-size: 1.8rem; }
.history-ship-card__mark b { margin-top: auto; color: #997148; font-size: .65rem; }
.history-ship-card h2 { margin: 0 0 8px; overflow-wrap: anywhere; color: var(--history-blue); font-size: 1.45rem; font-weight: 400; line-height: 1.1; }
.history-ship-card p { min-height: 34px; margin: 0 0 17px; color: var(--history-muted); font-size: .7rem; }
.history-ship-card dl { display: grid; gap: 5px; margin: 0; }
.history-ship-card dl div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 4px; border-bottom: 1px dotted #d9d3ca; font-size: .66rem; }
.history-ship-card dt { color: var(--history-muted); }
.history-ship-card dd { margin: 0; color: var(--history-blue); font-weight: 700; text-align: right; }
.history-current-status { display: block; margin-top: 14px; color: #18765a; font-size: .67rem; }
.history-registry-notes { margin-top: 40px; border: 1px solid #ddd6cb; background: var(--history-paper); }
.history-registry-notes summary { padding: 17px 20px; color: var(--history-blue); font-size: .8rem; font-weight: 700; cursor: pointer; }
.history-registry-notes ul { padding: 0 40px 20px; color: var(--history-muted); font-size: .78rem; }

.history-ship-hero { position: relative; min-height: 370px; overflow: hidden; background: var(--history-paper); }
.history-ship-hero.has-image { display: grid; grid-template-columns: minmax(360px, .75fr) 1.25fr; }
.history-ship-hero > img { width: 100%; height: 100%; min-height: 370px; object-fit: cover; }
.history-ship-hero > .history-shell { display: flex; justify-content: center; flex-direction: column; padding-block: 55px; }
.history-ship-hero.has-image > .history-shell { width: min(calc(100% - 80px), 850px); margin-left: clamp(35px, 7vw, 110px); }
.history-ship-hero h1 { margin: 0; color: var(--history-blue); font-size: clamp(3.2rem, 7vw, 6.5rem); font-weight: 400; line-height: .92; }
.history-ship-aliases { margin: 20px 0 0; color: var(--history-muted); }
.history-type-badge { align-self: flex-start; margin-top: 18px; padding: 7px 11px; color: #795327; background: #e9dbc6; border-radius: 2px; font-size: .66rem; font-weight: 700; text-transform: uppercase; }
.history-ship-layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: clamp(45px, 8vw, 110px); }
.history-facts + .history-facts { margin-top: 55px; }
.history-facts dl { display: grid; grid-template-columns: repeat(2, 1fr); margin: 0; border-top: 1px solid #d8d1c6; }
.history-facts dl div { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 14px 10px; border-bottom: 1px solid #d8d1c6; }
.history-facts dl div:nth-child(odd) { border-right: 1px solid #d8d1c6; }
.history-facts dt { color: var(--history-muted); font-size: .72rem; }
.history-facts dd { margin: 0; color: var(--history-blue); font-size: .75rem; font-weight: 700; text-align: right; }
.history-facts .history-text-link { margin-top: 25px; }
.history-mentions { display: grid; gap: 12px; }
.history-mentions h2 { margin-bottom: 10px; }
.history-mentions a { display: block; padding: 20px; border: 1px solid #ddd6cb; background: var(--history-paper); }
.history-mentions a:hover { border-color: var(--history-gold); }
.history-mentions h3 { margin: 0 0 7px; color: var(--history-blue); font-family: Georgia, serif; font-size: 1.2rem; font-weight: 400; }
.history-mentions p { margin: 0; color: var(--history-muted); font-family: Georgia, serif; font-size: .86rem; line-height: 1.7; }
.history-ship-aside { min-width: 0; }
.history-current-card { display: flex; gap: 15px; flex-direction: column; margin-bottom: 30px; padding: 28px; color: #fff; background: var(--history-blue); }
.history-current-card span { color: #efcf9b; font-size: .66rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.history-current-card strong { font-family: Georgia, serif; font-size: 1.3rem; font-weight: 400; }

.history-route-hero { min-height: 540px; }
.history-route-hero > .history-shell { display: flex; min-height: 540px; justify-content: flex-end; flex-direction: column; padding-block: 65px; }
.history-route-line { display: flex; align-items: flex-start; overflow-x: auto; padding: 35px 0 20px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.history-route-line button { position: relative; flex: 1 0 145px; min-width: 145px; padding: 0 8px; border: 0; color: var(--history-muted); background: transparent; font-size: .68rem; text-align: center; scroll-snap-align: center; }
.history-route-line button::before { position: absolute; top: 7px; left: 0; width: 100%; height: 2px; background: #bfc9d4; content: ""; }
.history-route-line button:first-child::before { left: 50%; width: 50%; }
.history-route-line button:last-child::before { width: 50%; }
.history-route-line i { position: relative; z-index: 1; display: block; width: 16px; height: 16px; margin: 0 auto 12px; border: 4px solid var(--history-paper-light); border-radius: 50%; background: #8190a1; box-shadow: 0 0 0 1px #8190a1; }
.history-route-line button:hover,
.history-route-line button.is-active { color: var(--history-blue); font-weight: 700; }
.history-route-line button.is-active i { background: var(--history-red); box-shadow: 0 0 0 1px var(--history-red); }
.history-route-selected { margin: 10px 0 60px; color: var(--history-muted); font-size: .78rem; text-align: center; }
.history-route-selected strong { color: var(--history-red); }
.history-route-intro { display: grid; grid-template-columns: 1.3fr .7fr; gap: clamp(45px, 8vw, 110px); }
.history-route-intro h2 { margin: 0 0 22px; color: var(--history-blue); font-size: 2.8rem; font-weight: 400; }
.history-route-intro p { color: var(--history-muted); line-height: 1.8; }
.history-route-intro aside { padding: 27px; border-left: 3px solid var(--history-gold); background: var(--history-paper); }
.history-route-intro aside strong { color: var(--history-blue); font-family: Georgia, serif; font-size: 1.2rem; font-weight: 400; }
.history-route-intro aside p { font-size: .8rem; }

.history-photo-mosaic { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: 220px 220px; gap: 11px; margin-bottom: 35px; }
.history-photo-mosaic a { overflow: hidden; }
.history-photo-mosaic a:first-child { grid-row: 1 / 3; }
.history-photo-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.history-photo-mosaic a:hover img { transform: scale(1.025); }
.history-caption-list { max-width: 1050px; }
.history-caption-list h2 { margin: 58px 0 17px; color: var(--history-blue); font-size: 2rem; font-weight: 400; }
.history-caption-list article { display: grid; grid-template-columns: 55px 1fr 220px; gap: 18px; padding: 17px 8px; border-top: 1px solid #d8d1c6; }
.history-caption-list article > span { color: var(--history-red); font-family: Georgia, serif; }
.history-caption-list p { margin: 0; color: #455365; font-family: Georgia, serif; font-size: .92rem; line-height: 1.55; }
.history-caption-list small { color: var(--history-muted); font-size: .66rem; }

.history-table-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 70px; }
.history-table-index a { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px; border: 1px solid #ddd6cb; color: var(--history-blue); background: var(--history-paper); font-family: Georgia, serif; font-size: .9rem; }
.history-table-index a span { color: var(--history-red); font-family: Poppins, sans-serif; font-size: .65rem; }
.history-tables { display: grid; gap: 75px; }
.history-tables > section { scroll-margin-top: 80px; }
.history-tables h2 { margin: 0 0 8px; color: var(--history-blue); font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 400; }
.history-tables > section > p { margin: 0 0 20px; color: var(--history-muted); font-size: .72rem; }
.history-table-scroll { max-width: 100%; overflow: auto; border: 1px solid #d2d9df; background: #fff; }
.history-source-table,
.history-technical-table { width: max-content; min-width: 100%; border-collapse: collapse; color: #364456; font-family: Poppins, sans-serif; font-size: .69rem; }
.history-source-table th,
.history-source-table td,
.history-technical-table th,
.history-technical-table td { min-width: 115px; padding: 10px 12px; border: 1px solid #e1e5e9; text-align: left; vertical-align: top; }
.history-source-table th,
.history-technical-table th { position: sticky; left: 0; color: var(--history-blue); background: #f3eee6; font-weight: 700; }
.history-source-table tr:first-child > *,
.history-technical-table tr:first-child > * { color: #fff; background: var(--history-blue); font-weight: 700; }

.history-localized-summary { display: grid; grid-template-columns: 1.4fr .6fr; gap: clamp(50px, 9vw, 130px); }
.history-localized-summary h2 { margin: 0 0 24px; color: var(--history-blue); font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 400; }
.history-localized-summary p { color: var(--history-muted); line-height: 1.8; }
.history-localized-summary aside { display: flex; align-self: start; flex-direction: column; padding: 28px; color: #fff; background: var(--history-blue); }
.history-localized-summary aside h3 { margin: 0 0 18px; font-family: Georgia, serif; font-size: 1.5rem; font-weight: 400; }
.history-localized-summary aside a { padding: 12px 0; border-top: 1px solid rgba(255,255,255,.2); font-size: .78rem; }
.history-article--summary { width: min(calc(100% - 40px), 820px); margin-inline: auto; padding-block: 80px 120px; }
.history-summary-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 50px; }

@media (max-width: 1180px) {
    .history-entry-grid,
    .history-feature-cards { grid-template-columns: repeat(2, 1fr); }
    .history-entry-card:last-child { grid-column: 1 / -1; min-height: 270px; }
    .history-feature-card--museum { grid-column: 1 / -1; }
    .history-book-feature { grid-template-columns: 1fr; }
    .history-timeline-preview { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
    .history-ship-grid { grid-template-columns: repeat(2, 1fr); }
    .history-atlas-controls { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .history-shell { width: min(calc(100% - 40px), 1380px); }
    .history-subnav .history-shell { min-width: calc(100% - 40px); margin-left: 20px; }
    .history-reader-layout { grid-template-columns: 1fr; }
    .history-reader-toc { position: static; max-height: 260px; padding: 20px; border: 1px solid #ddd6cb; background: var(--history-paper); }
    .history-ship-hero.has-image { grid-template-columns: 1fr; }
    .history-ship-hero > img { max-height: 440px; min-height: 280px; }
    .history-ship-hero.has-image > .history-shell { width: min(calc(100% - 40px), 1380px); margin-inline: auto; }
    .history-ship-layout { grid-template-columns: 1fr; }
    .history-ship-aside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .history-route-intro { grid-template-columns: 1fr; }
    .history-caption-list article { grid-template-columns: 48px 1fr; }
    .history-caption-list small { grid-column: 2; }
}

@media (max-width: 680px) {
    .history-shell { width: min(calc(100% - 28px), 1380px); }
    .history-subnav .history-shell { min-width: calc(100% - 28px); margin-left: 14px; }
    .history-breadcrumbs { padding-block: 12px; }
    .history-subnav a { padding: 13px 12px; font-size: .65rem; }
    .history-hero,
    .history-hero__content { min-height: 610px; }
    .history-hero__content { padding-block: 58px; }
    .history-hero__shade,
    .history-route-hero__shade,
    .history-compact-hero__shade { background: linear-gradient(0deg, rgba(2,22,46,.94), rgba(3,28,59,.52)); }
    .history-hero h1 { font-size: clamp(2.8rem, 15vw, 4.3rem); }
    .history-hero__stats { gap: 18px 0; margin-top: 35px; }
    .history-hero__stats div { min-width: 50%; padding-inline: 16px; }
    .history-hero__stats div:nth-child(odd) { padding-left: 0; border-left: 0; }
    .history-entry-grid,
    .history-feature-cards,
    .history-route-grid,
    .history-ship-grid,
    .history-table-index,
    .history-localized-summary { grid-template-columns: 1fr; }
    .history-entry-card:last-child,
    .history-feature-card--museum { grid-column: auto; }
    .history-entry-card { min-height: 290px; padding: 27px; }
    .history-entry-card h3 { margin-top: 38px; }
    .history-timeline-preview { grid-template-columns: repeat(2, 1fr); }
    .history-timeline-preview > a,
    .history-timeline-preview > span { padding-right: 15px; }
    .history-chapter-preview a { grid-template-columns: 36px 1fr; }
    .history-chapter-preview small { grid-column: 2; }
    .history-source-note { grid-template-columns: 1fr; gap: 7px; margin-bottom: 38px; }
    .history-book-groups li > a { grid-template-columns: 44px 1fr; gap: 9px; padding-inline: 5px; }
    .history-resource-links { grid-template-columns: 1fr; }
    .history-reader-layout { padding-block: 45px 80px; }
    .history-related > div,
    .history-chapter-pagination { grid-template-columns: 1fr; }
    .history-chapter-pagination a:last-child { text-align: left; }
    .history-timeline::before { left: 22px; }
    .history-timeline li { grid-template-columns: 66px 1fr; gap: 26px; padding-bottom: 38px; }
    .history-timeline li::before { top: 8px; left: 16px; }
    .history-timeline time { position: relative; z-index: 1; padding-top: 29px; font-size: 1.25rem; text-align: left; }
    .history-ship-card > a { min-height: 210px; padding: 22px 18px; }
    .history-ship-aside { grid-template-columns: 1fr; }
    .history-facts dl { grid-template-columns: 1fr; }
    .history-facts dl div:nth-child(odd) { border-right: 0; }
    .history-route-hero,
    .history-route-hero > .history-shell { min-height: 470px; }
    .history-photo-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 150px; }
    .history-photo-mosaic a:first-child { grid-column: 1 / 3; grid-row: auto; }
    .history-caption-list article { grid-template-columns: 38px 1fr; gap: 10px; }
    .history-summary-actions { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    .history-main *,
    .history-main *::before,
    .history-main *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
