/* The reader retains its own layout; these are only website destinations. */
.fm-site-links{display:flex;align-items:center;gap:26px;margin-right:26px}
.fm-site-links a{display:inline-flex;align-items:center;min-height:44px;font:450 17px/1.2 var(--serif,Newsreader,serif);color:inherit;text-decoration:none}
.fm-site-links a:focus-visible{outline:2px solid #306c6e;outline-offset:4px}
@media(hover:hover){.fm-site-links a:hover{color:#306c6e}}
@media(max-width:1100px){.fm-site-links{gap:18px;margin-right:18px}.fm-site-links a{font-size:15px}}
@media(max-width:920px){.fm-site-links{display:none}}

@media(max-width:480px){.fm-header .fm-contact{display:none}}

/* Match the public site's rounded action without changing reader layout. */
body .fm-root .fm-cta{border-radius:999px}

/* The same reader articles form an ordinary document on a phone. The hidden
   original chapter track is measured to this document by thesis-shell.js; the
   desktop sculpture and its timeline are deliberately unchanged. */
@media(max-width:900px){
 html[data-thesis-mobile-flow] .fm-story{position:relative}
 html[data-thesis-mobile-flow] .fm-scroll-track{position:absolute;inset:0 auto auto 0;width:1px;height:100%;padding:0;overflow:hidden;pointer-events:none;visibility:hidden}
 html[data-thesis-mobile-flow] .fm-scroll-section{height:var(--fm-mobile-chapter-height)!important}
 html[data-thesis-mobile-flow] .fm-copy-stage{position:relative;inset:auto;transition:none}
 html[data-thesis-mobile-flow] .fm-copy-scene{position:relative;inset:auto;display:block;overflow:visible;padding:56px var(--site-gutter,20px) 64px;opacity:1!important;visibility:visible!important;pointer-events:auto!important}
 html[data-thesis-mobile-flow] .fm-copy-scene:first-child{padding-top:calc(var(--site-header,70px) + 48px)}
 html[data-thesis-mobile-flow] .fm-copy-scene .fm-copy{width:100%;max-width:520px;margin:0 auto;padding:0}
 html[data-thesis-mobile-flow] .fm-copy-scene h1,html[data-thesis-mobile-flow] .fm-copy-scene h2{scroll-margin-top:calc(var(--site-header,70px) + 32px)}
 html[data-thesis-mobile-flow] .fm-root[data-overlay=depth] .fm-copy-stage{opacity:1}
}

/* Retain the full-size figure. Make its horizontal continuation apparent. */
@media(max-width:900px){
 .fm-root .fm-depth-figure[data-swipeable]::before{content:'Swipe to see the full figure';display:block;position:sticky;left:0;width:fit-content;margin:0 0 14px;font:12px/1.4 'Geist Variable',system-ui,sans-serif;color:#5e7069}
 .fm-root .fm-depth-figure[data-swipeable]{border-right:1px solid #c9d3cc}
 .fm-root .fm-depth-figure[data-swipe-end]{border-right-color:transparent}
 .fm-root .fm-depth-figure[data-swipeable] .fg-caption::after{content:none}
}
