/* Mobile reading layout for the urban thermal case; desktop stays unchanged. */
@media(max-width:900px){
 .thermal-case .tr-section-intro{gap:6%}
 .thermal-case .tr-selector,.thermal-case .tr-lcz-selector{gap:18px;padding:18px 20px}
 .thermal-case .tr-selector>span:first-of-type,.thermal-case .tr-lcz-selector>span:first-of-type{gap:12px;font-size:15px;white-space:normal}
 .thermal-case .tr-earth{width:36px;height:36px;flex-basis:36px}
 .thermal-case .tr-k-picker{gap:14px}
 .thermal-case .tr-selection-label{font-size:12px}
 .thermal-case .tr-profile-title{gap:12px}
 .thermal-case .tr-profile-title .te-doodle-vegetation{width:76px;height:64px;flex-basis:76px}
}
.thermal-pan-hint{display:none}
@media(max-width:700px){
 .case-mode .view{overflow-x:hidden}
 .case-mode .chrome{top:calc(8px + env(safe-area-inset-top))}
 .case-mode .view-header{height:calc(98px + env(safe-area-inset-top));padding:calc(46px + env(safe-area-inset-top)) 18px 0}
 .case-mode .ruler{--nav-step:30px}
 .view-content>.thermal-case{padding:10px 20px 48px}
 .thermal-case :is(.te-opening-grid,.te-input-grid,.te-method-detailed .te-method-intro,.tr-section-intro,.tr-overview,.tr-pca-row,.tr-profile-intro,.tr-lcz-flow,.tr-matrix-reading,.tr-synthesis){display:grid;grid-template-columns:minmax(0,1fr);gap:24px}
 .thermal-case :is(.te-opening-grid,.te-input-grid,.te-method-intro,.tr-section-intro,.tr-overview,.tr-pca-row,.tr-profile-intro,.tr-lcz-flow,.tr-matrix-reading,.tr-synthesis)>*{min-width:0}
 .thermal-case .tc-hero h1{font-size:clamp(39px,10.7vw,64px);overflow-wrap:normal}
 .thermal-case .tc-deck{font-size:15px;line-height:1.7}
 .thermal-case .tc-text-link,.thermal-case .tc-story-link{min-height:44px;align-items:center}
 .thermal-case .tc-hero-figure{padding:0}
 .thermal-case .te-opening{padding:52px 0 30px}
 .thermal-case .te-opening h2{font-size:clamp(29px,8vw,39px)}
 .thermal-case .te-opening-heading .te-doodle-city{width:136px;height:100px;margin:12px 0 0}
 .thermal-case .te-study-setting>.mono{font-size:10px;line-height:1.7}
 .thermal-case .te-input-grid{margin-top:26px}
 .thermal-case .te-input-tour{left:0;max-width:100%}
 .thermal-case .te-tour-stage{aspect-ratio:1/1.17}
 .thermal-case .te-tour-stage:after{box-shadow:inset 0 0 12px 8px #fcfcfc}
 .thermal-case .te-tour-legend{left:8px;top:8px;max-width:calc(100% - 16px);padding:8px 10px}
 .thermal-case .te-tour-legend>.mono{font-size:11px;margin-bottom:5px}
 .thermal-case .te-tour-legend>div{gap:6px 10px}
 .thermal-case .te-tour-controls{left:0;right:0;bottom:35px;padding:5px 8px 10px;gap:6px}
 .thermal-case .te-tour-controls>div[role=group]{gap:8px;flex-wrap:nowrap}
 .thermal-case .te-tour-controls button{font-size:10px;min-height:44px}
 .thermal-case .te-tour-controls button[data-te-input-toggle]{min-width:36px}
 .thermal-case .te-tour-sources{right:5px;bottom:0}
 .thermal-case .te-tour-sources summary{min-height:32px;display:flex;align-items:center}
 .thermal-case .te-method-detailed{padding:48px 0 38px}
 .thermal-case .te-method-detailed .te-method-intro{margin-bottom:28px}
 .thermal-case .te-method-detailed h2{font-size:clamp(32px,8.8vw,42px);max-width:300px;margin:0}
 .thermal-case .te-method-detailed .te-method-intro>div:first-child{padding:0;min-height:110px}
 .thermal-case .te-method-intro .te-doodle-pca-cloud{width:100px;height:82px;right:-4px;top:30px;opacity:.7}
 .thermal-case .te-method-detailed .te-method-intro>div:last-child{padding:0}
 .thermal-case .te-method-detailed .te-method-intro p{font-size:15px;line-height:1.8}
 .thermal-case .te-method-detailed .te-workflow{grid-template-columns:minmax(0,1fr);gap:26px}
 .thermal-case .te-method-detailed .te-workflow>li{grid-template-columns:36px minmax(0,1fr);gap:12px;padding-top:20px}
 .thermal-case .te-method-detailed .te-workflow>li>.mono{font-size:32px;line-height:1.1}
 .thermal-case .te-method-detailed .te-workflow h3{font-size:23px;line-height:1.3}
 .thermal-case .te-index-table-wrap{margin-left:-48px;width:calc(100% + 48px);max-width:none;overscroll-behavior-x:contain}
 .thermal-case .te-index-table{min-width:680px;font-size:15px}
 .thermal-case .te-index-table td:nth-child(2){font-size:16px}
 .thermal-case .te-index-table thead th,.thermal-case .te-index-table caption{font-size:13px}
 .thermal-case .te-index-table tbody th small{font-size:12px}
 .thermal-case .te-index-table th,.thermal-case .te-index-table td{padding:12px 10px}
 .thermal-case .tr-results{padding:48px 0 30px}
 .thermal-case .tr-section-intro{margin-bottom:26px}
 .thermal-case .tr-section-intro h2{font-size:clamp(33px,9vw,43px);line-height:1.13}
 .thermal-case .tr-section-intro p,.thermal-case .tr-overview p,.thermal-case .tr-pca-row p,.thermal-case .tr-profile-intro p,.thermal-case .tr-lcz-flow p,.thermal-case .tr-matrix-reading p,.thermal-case .tr-synthesis p{font-size:15px;line-height:1.8;margin-bottom:18px}
 .thermal-case .tr-selector,.thermal-case .tr-lcz-selector{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:12px 14px;border-radius:14px;margin:24px 0 28px}
 .thermal-case .tr-selector{top:calc(57px + env(safe-area-inset-top));z-index:8}
 .thermal-case .tr-selector>span:first-of-type,.thermal-case .tr-lcz-selector>span:first-of-type{font-size:14px;gap:9px;line-height:1.35}
 .thermal-case .tr-earth{width:30px;height:30px;flex-basis:30px}
 .thermal-case .tr-satellite{width:40px;height:40px;top:-18px;right:18px}
 .thermal-case .tr-k-picker{grid-column:1/-1;justify-content:center;gap:14px}
 .thermal-case .tr-k-prefix{font-size:18px}
 .thermal-case .tr-k-controls button{width:52px;min-width:52px;min-height:44px;padding:8px 0;font-size:21px}
 .thermal-case .tr-k-slider{width:52px;transform:translateX(calc(var(--tr-selected)*54px))}
 .thermal-case .tr-selector .tr-selection-label{grid-column:2;grid-row:1;font-size:11px;max-width:88px;text-align:right;line-height:1.5;margin:0}
 .thermal-case .tr-overview-copy{padding:0}
 .thermal-case .tr-overview h3,.thermal-case .tr-pca-row h3,.thermal-case .tr-profile-intro h3,.thermal-case .tr-lcz-flow h3{font-size:30px;line-height:1.17;margin-bottom:18px}
 .thermal-case .tr-map-key{margin:22px 0 0}
 .thermal-case .tr-map-key span{font-size:13px;line-height:1.55}
 .thermal-case .tr-results figcaption,.thermal-case .tr-lcz figcaption{font-size:12px;line-height:1.7;margin-top:12px}
 .thermal-case .tr-pca-row{margin:44px 0}
 .thermal-case .tr-pca-row>figure{order:2}
 .thermal-case .tr-profile-intro{margin:0 0 24px}
 .thermal-case .tr-profile-title{align-items:center;justify-content:space-between;gap:10px}
 .thermal-case .tr-profile-title .te-doodle-vegetation{width:74px;height:62px;flex-basis:74px}
 .thermal-case .tr-profile-analysis{margin:24px 0 0;max-width:100%}
 .thermal-case .tr-profile-analysis article{grid-template-columns:minmax(0,1fr);gap:12px;padding:22px 0}
 .thermal-case .tr-cluster-name{grid-template-columns:9px 24px minmax(0,1fr);gap:10px}
 .thermal-case .tr-cluster-name h4{font-size:20px;line-height:1.35}
 .thermal-case .tr-profile-analysis p{font-size:14px;line-height:1.8}
 .thermal-case .tr-cluster-values{font-size:12px;line-height:1.65}
 .thermal-case .tr-lcz{padding:48px 0 40px}
 .thermal-case .tr-lcz-flow{margin-top:40px}
 .thermal-case .tr-lcz-flow>figure{order:2}
 .thermal-case .tr-lcz-matrix{margin-top:36px!important}
 .thermal-case .tr-matrix-reading{margin:24px 0 0}
 .thermal-case .tr-synthesis{padding:40px 0}
 .thermal-case .tr-synthesis h2{font-size:35px;line-height:1.16}
 .thermal-case .tr-synthesis h2 .te-doodle-river{width:100px;height:80px;margin-bottom:14px}
 /* Pan only the plots, never the entire page. Open a figure to see the full source. */
 .thermal-case .thermal-chart-pan{overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;touch-action:pan-x pan-y;outline-offset:3px}
 .thermal-case .tr-pca-stack{height:440px;aspect-ratio:auto}
 .thermal-case .tr-pca-stack>a{width:540px;right:auto}
 .thermal-case .tr-profile-stack{height:254px;aspect-ratio:auto}
 .thermal-case .tr-profile-stack>a{width:760px;right:auto}
 .thermal-case .tr-maps-stack{height:470px;aspect-ratio:auto}
 .thermal-case .tr-maps-stack>a{width:800px;right:auto}
 .thermal-case .tr-sankey-stack{height:505px;aspect-ratio:auto}
 .thermal-case .tr-sankey-stack>a{width:680px;right:auto}
 .thermal-case .tr-lcz-matrix>.te-art-link{overflow-x:auto;overscroll-behavior-x:contain}
 .thermal-case .tr-lcz-matrix img{width:850px;max-width:none}
 .thermal-case .thermal-pan-hint{display:block;font-size:11px;line-height:1.6;color:#7542b5;margin:10px 0 0}
 .thermal-case .tc-story{margin:36px 0 0;padding:28px 22px 38px;gap:28px;min-height:0}
 .thermal-case .tc-story h2{font-size:clamp(34px,9vw,43px);margin:0 0 22px;max-width:290px}
 .thermal-case .tc-story-copy p{font-size:14px;line-height:1.8}
 .thermal-case .tc-story-link{font-size:13px;gap:14px;margin-top:20px;max-width:100%}
 .thermal-case .tc-story-preview{width:calc(100% - 8px);justify-self:start;margin:0 0 0 2px;transform:rotate(1.5deg);box-shadow:8px 10px 0 #7653b23b}
 .thermal-case .tc-story-preview .tc-preview-action{right:7px;bottom:7px;font-size:11px;padding:8px 10px;gap:10px;min-height:36px}
 .thermal-case .tc-coverage{padding:52px 0 40px}
 .thermal-case .tc-coverage-intro h2{font-size:40px;line-height:1.13}
 .thermal-case .tc-coverage-intro p,.thermal-case .tc-coverage-record>div:first-child p{font-size:15px;line-height:1.8}
 .thermal-case .tc-coverage-record h3{font-size:30px}
 .thermal-case .tc-coverage-photos figcaption{font-size:12px;line-height:1.65}
 .thermal-case .tc-coverage-links a{min-width:0}
 .thermal-case .tc-coverage-links .tc-coverage-source small{font-size:12px}
 .thermal-case .tc-credits{gap:26px}
 .thermal-case .tc-credits p{font-size:14px;line-height:1.8}
 .thermal-case .tc-credits .tc-team-names{font-size:23px;line-height:1.6}
 .thermal-case .project-page-footer{flex-wrap:wrap;gap:18px;margin-top:32px}
 .thermal-case .project-page-footer button{min-height:44px;font-size:13px}
 .thermal-case .project-page-footer a{font-size:20px}
}
@media(max-width:359px){
 .view-content>.thermal-case{padding-inline:16px}
 .thermal-case .tr-selector .tr-selection-label{display:none}
 .thermal-case .tr-selector,.thermal-case .tr-lcz-selector{grid-template-columns:minmax(0,1fr)}
 .thermal-case .te-tour-controls>div[role=group]{gap:6px}
 .thermal-case .te-tour-controls button{font-size:9px}
 .thermal-case .tr-profile-title .te-doodle-vegetation{width:56px;flex-basis:56px}
}
@media(max-width:700px) and (orientation:landscape){.thermal-case .tr-selector{position:relative;top:auto}}
