.journey-tools{display:flex;align-items:center;gap:8px;padding:8px 0;font:12px system-ui,sans-serif}.journey-tools .view-name{margin-right:auto;font:18px Georgia,serif}.journey-tools button{background:var(--panel);color:var(--ink);border:1px solid var(--line);padding:10px;min-height:44px;border-radius:3px}#background-toggle{display:none}
html.journey-fit,html.journey-fit body{height:100%;overflow:hidden;background:var(--bg)}
.journey-fit .masthead,.journey-fit .intro,.journey-fit .chapter-bar,.journey-fit footer,.journey-fit #fallback-notice{display:none}
.journey-fit main{position:fixed;inset:0;max-width:none;width:100%;height:100dvh;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;background:var(--bg)}
.journey-fit .journey-tools{grid-row:1;padding:4px 12px;z-index:20;background:var(--panel);border-bottom:1px solid var(--line)}.journey-fit #background-toggle{display:block}
.journey-fit .journey{grid-row:2;height:100%!important;min-height:0;aspect-ratio:auto;width:100%}
.journey-fit .travel{grid-row:3;padding:4px 12px 8px}.journey-fit .transport{grid-template-columns:70px 1fr 70px}.journey-fit .selected{display:flex;gap:8px;font-size:12px}.journey-fit .selected>span{margin:0}.journey-fit .selected strong{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.journey-fit .selected{min-width:0}.journey-fit .scrub-label{padding:0}.journey-fit .scrub-label input{height:24px;margin:0}.journey-fit .travel-bottom{margin:0;gap:10px;flex-wrap:nowrap}.journey-fit .travel-bottom label{width:auto;margin:0 0 0 auto;min-width:0;font-size:0}.journey-fit #jump{width:min(42vw,280px);max-width:none;min-height:44px;margin:0}.journey-fit #play{min-height:44px;min-width:115px}.journey-fit .gesture{display:none}
.journey-fit #settings,.journey-fit .tam-controls{position:absolute;right:12px;top:calc(58px + env(safe-area-inset-top,0px));width:min(440px,calc(100% - 24px));max-height:calc(100dvh - 80px);overflow:auto;z-index:30;box-shadow:0 12px 32px #0009}.journey-fit .tam-controls{display:none}.journey-fit .tam-controls.is-open{display:block}
@media(max-width:450px){.journey-fit .view-name{display:none}.journey-fit .journey-tools{justify-content:space-between}.journey-fit .journey-tools button{flex:1;padding:8px 5px}.journey-fit .travel-bottom #jump{width:48vw}}
@media(max-height:550px){.journey-fit .journey-tools{padding-block:0}.journey-fit .transport{height:36px}.journey-fit .transport button{min-height:36px}.journey-fit .travel{padding-block:0}.journey-fit .journey .story-card{width:190px}.journey-fit .journey .story-card .card-image{height:46px}.journey-fit .journey .story-card .card-title{font-size:14px}.journey-fit .journey .story-card .card-copy{padding:6px 10px 8px}}

html:not(.journey-fit) .journey-tools{display:none}.masthead #fullscreen-toggle{min-height:44px;font:12px system-ui,sans-serif}.masthead nav{gap:8px}

.journey-fit main{height:100vh;height:100dvh;box-sizing:border-box}
.journey-fit .journey-tools{min-width:0}
.journey-fit .back-site{display:inline-flex;align-items:center;min-height:44px;color:var(--ink);white-space:nowrap;text-decoration:none}
.journey-fit .back-site:hover{text-decoration:underline}
@media(max-width:450px){.journey-fit .journey-tools{gap:4px;padding-inline:6px}.journey-fit .journey-tools button{white-space:nowrap;padding-inline:4px}}
