
:root{color-scheme:dark;--navy:#03162a;--panel:#08223b;--gold:#ffdc78;--text:#fff0bb;--muted:#e2d8b5;--line:#48617a}
*{box-sizing:border-box}
html{font-size:14pt;scroll-behavior:smooth;scroll-padding-top:24px}
body{margin:0;background:var(--navy);color:var(--text);font:14pt/1.9 Arial,Helvetica,sans-serif;overflow-wrap:break-word}
a{color:var(--gold);text-underline-offset:4px;-webkit-tap-highlight-color:transparent}
a:hover{color:#fff}
a:focus-visible,button:focus-visible{outline:2px solid var(--gold);outline-offset:4px}
button{font:inherit;cursor:pointer}
img{display:block;max-width:100%;height:auto}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link{position:fixed;right:16px;top:12px;transform:translateY(-150%);background:var(--gold);color:var(--navy);padding:8px 14px;z-index:20}
.skip-link:focus{transform:none}
.site-top{width:min(1120px,calc(100% - 28px));margin:0 auto;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 0}
.home-port{display:inline-flex;align-items:center;min-height:44px;font-weight:bold}
.site-name{color:var(--muted)}
.page-banner{width:min(1120px,100%);margin:0 auto 28px}
.page-banner img{width:100%;height:auto}
.page-title{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.mobile-subtitle{display:none}
main{width:min(1000px,calc(100% - 32px));margin:0 auto}
.chapter-links{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 24px;padding:0 0 18px;border-bottom:1px solid var(--line);margin:0 auto 30px;max-width:900px}
.chapter-links a{display:inline-flex;align-items:center;min-height:44px;padding:3px 4px}
section{margin:0 auto 44px;scroll-margin-top:24px}
h2,h3{color:var(--gold);line-height:1.45}
h2{font-size:21pt;margin:0 0 20px;padding-bottom:9px;border-bottom:1px solid var(--line)}
h3{font-size:17.5pt;margin:28px auto 14px;max-width:840px}
p{max-width:840px;margin:0 auto 18px}
.archive-figure{margin:26px auto;text-align:center;min-width:0}
.archive-figure img{margin:0 auto;border:1px solid var(--line);border-radius:4px}
.archive-figure figcaption,.shared-caption{margin:12px auto 0;color:var(--muted);font:14pt/1.8 Arial,Helvetica,sans-serif;max-width:820px;text-align:center}
.photo-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px;max-width:900px;margin:28px auto}
.photo-grid .archive-figure{margin:0}
.photo-grid img{width:100%;max-width:500px}
.portrait img{width:333px;max-width:100%;height:auto}
.restored-thumbnails{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:30px;max-width:900px;margin:28px auto 16px}
.restored-thumbnails .archive-figure{margin:0}
.restored-thumbnails .image-zoom{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;background:var(--panel);border:1px solid var(--line);border-radius:4px;overflow:hidden}
.restored-thumbnails img{width:100%;height:100%;object-fit:contain;border:0;border-radius:0}
.image-zoom{display:block;cursor:zoom-in}
.departure-single-thumbnail{width:min(420px,100%);margin:26px auto 16px}
.departure-single-thumbnail img{width:100%;height:auto}
.zoom-help{display:block;margin-top:6px;color:var(--gold)}
.image-viewer{width:min(1100px,calc(100vw - 20px));max-height:calc(100dvh - 20px);margin:auto;padding:12px;border:1px solid var(--gold);border-radius:6px;background:var(--navy);color:var(--text);overflow:auto}
.image-viewer::backdrop{background:rgba(0,0,0,.88)}
.image-viewer-controls{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:12px}
.image-viewer-controls button{min-height:44px;padding:6px 14px;border:1px solid var(--gold);border-radius:4px;background:var(--panel);color:var(--gold)}
.image-viewer-viewport{overflow:auto;max-height:calc(100dvh - 190px);direction:ltr;overscroll-behavior:contain}
.image-viewer-viewport img{width:auto;max-width:none;height:auto;margin:0;border:0}
.image-viewer-viewport.is-fitted img{width:100%;max-width:100%;margin:0 auto}
.image-viewer-caption{margin:12px auto 0;max-width:100%;font:14pt/1.6 Arial,Helvetica,sans-serif;text-align:center;color:var(--muted)}
body.image-viewer-open{overflow:hidden}
.single-figure img{width:100%;max-width:460px}
.wide-figure img{width:100%;max-width:680px}
.emblem-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;max-width:700px;margin:28px auto;direction:ltr;align-items:start}
.emblem-grid .archive-figure{margin:0}
.emblem-grid img{width:auto;max-width:100%;height:230px;object-fit:contain;border:0}
.emblem-grid figcaption{direction:rtl}
.name-note{max-width:840px;margin:28px auto;padding:20px;background:var(--panel);border-inline-start:3px solid var(--gold)}
.name-note h3{margin-top:0}
.name-note p:last-child{margin-bottom:0}
.last-message{max-width:840px;padding:18px 22px;margin:24px auto;background:var(--panel);border:1px solid var(--line);text-align:center}
.last-message strong{display:block;font-size:18pt;color:var(--gold)}
.last-message p{margin:8px 0 0}
.route-card{max-width:800px;margin:24px auto;padding:14px;background:#041325;border:1px solid var(--line);border-radius:6px;text-align:center}
.route-host{position:relative;width:100%;aspect-ratio:650/450;background:#05152b;overflow:hidden}
.route-placeholder{position:absolute;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:20px;background:linear-gradient(145deg,#123550,#041325)}
.route-placeholder strong{font-size:22pt;line-height:1.5;color:var(--gold)}
.route-placeholder p{margin:16px auto 0}
.route-host ruffle-player{position:absolute;inset:0;display:block;width:100%;height:100%}
.route-controls{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:16px}
.route-controls button{min-height:44px;padding:8px 18px;border:1px solid var(--gold);border-radius:4px;background:var(--panel);color:var(--gold)}
.route-controls button:disabled{cursor:wait;opacity:.65}
.route-status{margin:14px auto 0;color:var(--muted)}
.route-help{margin:14px auto 0;color:var(--muted)}
.totem-figure img{width:245px;max-width:100%;height:auto}
.legend-quote{max-width:840px;padding:22px;margin:24px auto 0;background:var(--panel);border-inline-start:3px solid var(--gold)}
.legend-quote p{margin:0}
.related{width:min(1000px,calc(100% - 32px));margin:45px auto 0}
.related h2{text-align:center}
.related-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;max-width:760px;margin:20px auto}
.related-links a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px 8px;text-align:center;text-decoration:none;border:1px solid var(--line);background:var(--panel);border-radius:4px;min-width:0;min-height:130px}
.related-links a:hover{border-color:var(--gold)}
.related-links img{width:150px;max-width:100%;height:auto}
.related-links span{font:14pt/1.6 Arial,Helvetica,sans-serif;text-decoration:underline;text-underline-offset:4px}
.related-links a:last-child{grid-column:2}
.site-footer{width:min(900px,calc(100% - 32px));margin:36px auto 24px;padding:24px 12px;border-top:1px solid var(--line);text-align:center;font:14pt/1.9 Arial,Helvetica,sans-serif;color:var(--muted)}
.footer-links{display:flex;justify-content:center;align-items:center;gap:12px 28px;flex-wrap:wrap}
.footer-links a{display:inline-flex;align-items:center;min-height:44px;max-width:100%}
.footer-links bdi{overflow-wrap:anywhere}
.site-footer p{margin:16px auto 0}
.site-footer .disclaimer{max-width:820px}
@media(max-width:680px){
 .site-top{padding:8px 0}.site-name{display:none}
 .page-banner{margin-bottom:22px}
 .page-title{position:static;width:auto;height:auto;margin:18px 14px 4px;padding:0;overflow:visible;clip:auto;white-space:normal;color:var(--gold);font-size:23pt;text-align:center;line-height:1.4}
 .mobile-subtitle{display:block;margin:0 14px 24px;text-align:center;color:var(--gold)}
 main,.related{width:calc(100% - 28px)}
 h2{font-size:19.5pt}h3{font-size:17pt}
 .chapter-links{gap:4px 16px}
 .photo-grid,.emblem-grid{grid-template-columns:1fr;gap:26px}
 .photo-grid img{max-width:500px}
 .restored-thumbnails{gap:12px}
 .emblem-grid img{height:auto;width:auto;max-width:180px;max-height:260px}
 .name-note,.legend-quote{padding:18px 16px}
 .route-card{padding:8px}
 .route-placeholder strong{font-size:19pt}
 .related-links{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .related-links a:last-child{grid-column:1 / -1}
 .site-footer{width:calc(100% - 28px);padding:20px 4px}
 .footer-links{flex-direction:column;gap:4px}
}
@media(max-width:380px){.related-links{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

/* Pair the new archival photograph with the selected Portsmouth photograph. */
.departure-photo-pair{align-items:start}
.departure-photo-pair>div{min-width:0}
@media(max-width:680px){.departure-photo-pair{grid-template-columns:1fr;gap:26px}}

html,body{font-size:18px}body{direction:ltr;text-align:left}.site-top{justify-content:space-between}.site-top .home-port{margin-left:auto}.hero-photo{position:relative;max-width:1120px;margin:0 auto 30px;background:#08223b}.hero-photo img{width:100%;height:clamp(230px,33vw,400px);object-fit:cover;object-position:center 42%;opacity:.8}.hero-title{position:absolute;inset:auto 0 0;padding:46px 24px 20px;background:linear-gradient(transparent,#03162af5)}.hero-title h1{color:#ffdc78;text-shadow:1px 2px 2px #000;font:bold clamp(36px,5vw,66px)/1.1 Georgia,serif;margin:0 0 10px}.hero-title p{margin:0;color:#fff0bb;font-size:18px}.site-top .language{font-size:16px}.chapter-links{font-size:16px}.image-zoom{position:relative}.image-zoom:after{content:'+';position:absolute;right:8px;bottom:8px;background:#03162acc;color:#ffdc78;width:32px;height:32px;border:1px solid #ffdc78;border-radius:50%;text-align:center;font:24px/30px Arial}.archive-figure figcaption{font-size:16px}.callout{max-width:840px;margin:24px auto;padding:18px 22px;border-left:3px solid #ffdc78;background:#08223b}.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:1000px;margin:20px auto}.related-grid a{display:block;padding:18px;border:1px solid #48617a;background:#08223b;text-decoration:none}.related-grid a:hover{background:#123c58}.route-summary{display:flex;flex-wrap:wrap;gap:10px;list-style:none;padding:0;max-width:840px;margin:20px auto}.route-summary li{flex:1;min-width:150px;border:1px solid #48617a;padding:12px;background:#08223b}.route-summary strong{display:block;color:#ffdc78}.source-note{font-size:14px;color:#e2d8b5}.site-footer{max-width:1000px;margin:40px auto 0;padding:24px 16px;border-top:1px solid #48617a;text-align:center}.footer-links{display:flex;gap:24px;justify-content:center;flex-wrap:wrap}.site-footer p{font-size:15px;margin:14px auto}.image-viewer-viewport.is-fitted img{width:auto!important;height:auto!important;max-width:100%!important;max-height:calc(100dvh - 235px)!important;margin:auto!important}.image-viewer-controls{align-items:center}.zoom-count{font-size:15px;color:#e2d8b5}.image-viewer h2{border:0}.route-controls button{color:#ffdc78}.route-host:fullscreen{width:100vw;height:100vh;aspect-ratio:auto}@media(max-width:650px){html,body{font-size:14px}main{width:calc(100% - 24px)}.photo-grid,.restored-thumbnails{gap:18px;grid-template-columns:1fr}.related-grid{grid-template-columns:1fr}.hero-title{padding:30px 16px 16px}.hero-title p{font-size:15px}.archive-figure figcaption{font-size:14px}.image-viewer-controls button{font-size:14px;padding:6px 9px}.chapter-links{gap:6px 16px;font-size:14px}}
