/* Release review: readable controls, native touch scrolling, visible keyboard focus. */
:root{--text-secondary:#a8bbce;--text-caption:#9bb0c5}
html{scroll-padding-top:calc(var(--story-top) + 16px)}
.scroll-story{overflow-anchor:none}
.skip-link{position:fixed;z-index:100;top:10px;left:16px;padding:12px 20px;border-radius:10px;background:#edf5ff;color:#101722;transform:translateY(-150%);text-decoration:none}
.skip-link:focus{transform:none}
.story-pin #modeIntro h2{font:500 29px/1.4 var(--sans);letter-spacing:-.5px;margin:0 0 16px}
.story-pin #modeIntro .lead,.story-pin .detail-subtitle,.story-pin .detail-section p{font-size:13px;color:#b3c3d3}
.story-pin .detail-footnote,.story-pin .thermal-mode-note{font-size:12px;color:var(--text-secondary)}
.story-pin .stage-footer,.story-pin .view-caption,.story-pin .agent-overlay{font-size:11px;color:var(--text-caption)}
.story-heading #chapterLabel{color:#9bb0c5}
.story-pin .control-label,.story-pin .topic-option,.story-pin .group-option,.story-pin .outline-btn,.access-options button{font-size:12px}
.story-pin .control-label{color:var(--text-secondary)}
.story-pin .outline-btn,.access-options button,.story-pin .group-option{min-height:40px}
.story-pin .quiet-btn{min-height:32px}
.access-options button small,.hover-state,.timeline-ticks{font-size:11px;color:var(--text-secondary)}
.story-pin .media-controls{flex-wrap:wrap;font-size:12px}
.story-pin .media-controls button,.source-image-button{min-height:36px}
.canvas-tooltip{max-width:calc(100% - 16px);pointer-events:none}
.plan-viewport{touch-action:pan-y pinch-zoom}
.story-pin canvas:focus-visible{outline:2px solid #bfdcff;outline-offset:-5px}
.story-pin .inspector-close{width:40px;height:40px}
.story-pin .inspector{scroll-padding:44px 0 16px}
.story-pin .inspector h2{padding-right:24px}
.story-pin .topic-list{scroll-padding:5px}
.story-pin .topic-option:focus-visible{outline-offset:-2px}
.main-nav button:focus-visible{outline-offset:1px}
@media(min-width:901px){.story-pin .narrative{overflow-y:auto;scrollbar-width:thin;scrollbar-color:#526273 transparent;padding-right:5px}.story-pin .topic-option{min-height:36px}.story-pin .stage-header{font-size:12px}}
@media(max-width:900px){
 .site-header{padding-top:max(12px,env(safe-area-inset-top))}
 .main-nav{height:47px;margin-top:9px}.main-nav button{font-size:12px;min-height:44px;height:44px;padding:0 10px}
 .header-actions .quiet-btn{min-height:40px}.tour-btn{min-height:40px}
 .story-pin{padding-bottom:max(7px,env(safe-area-inset-bottom));min-height:0}
 .story-pin .stage-header{font-size:11px}.story-pin .stage-header-actions button{font-size:11px;min-height:36px;padding:6px 10px}
 .story-pin .stage-footer,.story-pin .view-caption{font-size:10px}
 .story-pin .map-caption{font-size:10px;max-width:65%}
 .story-pin .map-tools button{width:38px;height:38px}
 .story-pin .topic-option{font-size:12px;min-height:40px}
 .story-pin .segmented button{font-size:11px;min-height:40px}
 .story-pin .group-option{font-size:12px;min-height:40px}
 .story-pin .group-option input{width:17px;height:17px}
 .story-pin[data-mode=thermal] #modeControls{grid-template-columns:minmax(0,1fr) 44px;gap:7px}
 .story-pin[data-mode=thermal] .thermal-clock{grid-column:1;grid-row:1;font-size:25px}
 .story-pin[data-mode=thermal] .thermal-clock small{font-size:11px}
 .story-pin[data-mode=thermal] #thermalPlay{grid-column:2;grid-row:1;width:44px;height:44px}
 .story-pin[data-mode=thermal] .segmented{grid-column:1/-1;grid-row:2}
 .story-pin[data-mode=thermal] .segmented button{font-size:12px;min-height:38px}
 .story-pin[data-mode=accessibility] #modeControls{grid-template-columns:1fr 44px}
 .access-options button{font-size:12px;min-height:44px;padding:7px 8px}
 .story-pin[data-mode=accessibility] #accessPlay{width:44px;height:44px}
 .story-pin[data-mode=agents] .group-option{font-size:11px;min-height:36px}
 .story-pin[data-mode=agents] .outline-btn,.story-pin[data-mode=agents] .quiet-btn{font-size:12px;min-height:40px}
 .story-pin .detail-subtitle,.story-pin .detail-section p,.story-pin .quote{font-size:13px}
 .story-pin .detail-footnote,.story-pin .metric span{font-size:11px}
 .story-pin .access-live span,.story-pin .access-live strong,.story-pin .agent-overlay{font-size:11px}
 .story-pin .media-controls,.story-pin .source-image-button{font-size:12px}
 .story-pin .node-card span,.story-pin .node-card b{font-size:10px}
 .source-content{padding:0 20px 26px}.source-content dd{font-size:13px}
}
@media(max-width:480px){.main-nav button{padding:0 7px;font-size:11px}.story-pin .stage-header{padding:0 10px}.story-pin .stage-footer{padding:0 10px}.story-heading #chapterLabel{font-size:11px}}
@media(max-width:900px) and (max-height:600px){.story-pin[data-mode=thermal] #modeControls{grid-template-columns:95px minmax(0,1fr) 44px}.story-pin[data-mode=thermal] .segmented{grid-column:2;grid-row:1}.story-pin[data-mode=thermal] #thermalPlay{grid-column:3}.story-pin .view-caption{display:none}}
@media(min-width:600px) and (max-width:900px) and (max-height:600px){
 .scroll-story .workspace{grid-template-columns:170px minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
 .story-pin .narrative{height:100%;overflow-y:auto;scrollbar-width:thin}
 .story-pin[data-mode=thermal] #modeControls,.story-pin[data-mode=topics] #modeControls,.story-pin[data-mode=accessibility] #modeControls{display:block}
 .story-pin[data-mode=thermal] .thermal-clock{font-size:22px;margin-bottom:7px}
 .story-pin[data-mode=thermal] .segmented button{min-height:36px;font-size:11px}
 .story-pin[data-mode=thermal] #thermalPlay,.story-pin[data-mode=accessibility] #accessPlay{margin-top:7px}
 .story-pin .access-options{display:grid;gap:6px}.story-pin .access-options button{min-height:38px}
 .story-pin[data-mode=agents] #modeControls{display:grid;gap:3px}
 .story-pin[data-mode=agents] .control-row{display:flex;gap:6px}.story-pin[data-mode=agents] .group-option{min-height:30px}
 .story-pin .topic-list{max-height:100px;display:block;overflow:auto}.story-pin .topic-option{width:100%}
 .story-pin .stage{height:100%;min-height:130px}
 .story-pin .inspector,.story-pin[data-mode=map] .inspector{top:5px;bottom:5px;max-height:calc(100% - 10px)}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto!important}*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
