/* Shared navigation and compact solar workspace. */
.mm-links[data-mm-sun-nav] .mm-links-group{flex-wrap:wrap}
.mm-links[data-mm-sun-nav] a[aria-current="page"]{font-weight:800;color:#173c39;text-decoration:underline;text-underline-offset:6px;text-decoration-color:#d38c46}
.mm-links[data-mm-sun-nav] .mm-map-link{display:inline-flex;align-items:center;min-height:34px;padding:3px 11px;border:1px solid #cddbd6;border-radius:8px;text-decoration:none;font-size:14px;white-space:nowrap;color:#176b68;background:#fff}
.mm-links[data-mm-sun-nav] .mm-map-link:hover{border-color:#238e8c;background:#edf6f3}
.mm-links[data-mm-sun-nav] .mm-map-link:focus-visible{outline:3px solid #e97836;outline-offset:3px}

/* Compact simulator: the image and both scrubbers are one working surface. */
body[data-sun-project]{--photo-ratio:.75;--photo-height:clamp(280px,calc(100svh - 120px),540px)}
body[data-sun-project="marrakesh"]{--photo-ratio:1.5}
body[data-sun-project] main{padding-inline:24px}
body[data-sun-project] .header{padding:10px 24px;gap:20px}
body[data-sun-project] .brand-logo{width:44px;height:44px;flex-basis:44px}
body[data-sun-project] .brand-name small{margin-top:3px}
body[data-sun-project] .mm-links{padding:7px 24px;gap:6px 24px;min-height:0}
body[data-sun-project] .mm-links-group{gap:5px 14px}
body[data-sun-project] .intro{padding:15px 0 12px;gap:16px}
body[data-sun-project] .intro h1{font-size:clamp(26px,2.4vw,36px);margin-bottom:6px}
body[data-sun-project] .intro .eyebrow{margin-bottom:5px}
body[data-sun-project] .intro-text{line-height:1.45;font-size:14px;max-width:880px}
body[data-sun-project] .project-facts{padding:10px 0;margin:0;gap:7px 20px}
body[data-sun-project] .project-facts strong{font-size:16px}
body[data-sun-project] .unit-map-help{font-size:14px;line-height:1.4;margin:5px 0 10px}
body[data-sun-project] .workspace{align-items:start;overflow:clip;border-radius:14px;grid-template-columns:minmax(0,1fr) 320px}
body[data-sun-project] .scene-column{display:flex;flex-direction:column;min-width:0;position:sticky;top:8px}
body[data-sun-project] #sceneWrap{--scene-height:clamp(250px,calc(100svh - 230px),490px);position:relative;flex:none;height:var(--scene-height);min-height:var(--scene-height);max-height:var(--scene-height);order:0}
body[data-sun-project] #scene{position:absolute;inset:0;width:100%;height:100%;min-height:0;min-width:0}
body[data-sun-project] #scene canvas{display:block;width:100%!important;height:100%!important}
body[data-sun-project] .scene-toolbar{top:10px;left:12px;right:12px}
body[data-sun-project] .segmented{padding:3px;border-radius:9px}
body[data-sun-project] .segmented button{padding:7px 10px;font-size:14px}
body[data-sun-project] .sun-readout{top:12px;right:14px}
body[data-sun-project] .time-panel{order:1;padding:10px 14px 12px}
body[data-sun-project] .year-slider-panel{padding:0 0 8px;margin:0 0 8px}
body[data-sun-project] .year-slider-heading{margin:0 0 2px;gap:8px;min-height:30px}
body[data-sun-project] .year-slider-heading>div{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
body[data-sun-project] .year-slider-heading>div>strong{font-size:16px;line-height:1.3;letter-spacing:0;margin:0}
body[data-sun-project] .fixed-time-note{display:none}
body[data-sun-project] .field-label{font-size:12px;letter-spacing:.35px;line-height:1.3}
body[data-sun-project] .time-top{margin:0 0 2px;gap:8px;min-height:36px}
body[data-sun-project] .time-top>div:first-child{display:flex;align-items:center;gap:10px}
body[data-sun-project] .time-top strong{font-size:22px;letter-spacing:0;margin:0}
body[data-sun-project] .play-controls{gap:12px}
body[data-sun-project] .play-button,body[data-sun-project] .outline-button{padding:8px 11px;min-height:36px;font-size:14px;border-radius:8px;line-height:1.3;max-width:none}
body[data-sun-project] .time-ticks{font-size:12px;margin-top:0;line-height:16px}
body[data-sun-project] .year-range-ticks{font-size:12px;margin-top:0;height:16px}
body[data-sun-project] input[type=range]{height:6px;margin:12px 0;border-radius:4px}
body[data-sun-project] input[type=range]::-webkit-slider-thumb{width:28px;height:28px;border-width:5px}
body[data-sun-project] input[type=range]::-moz-range-thumb{width:18px;height:18px;border-width:5px}
body[data-sun-project] .neighbor-control{order:2;padding:7px 14px;gap:5px 14px}
body[data-sun-project] .neighbor-control>span{line-height:1.4}
body[data-sun-project] .control-panel{padding:14px;max-height:calc(100svh - 16px);overflow:auto}
body[data-sun-project] .section-label{margin-bottom:6px;font-size:12px}
body[data-sun-project] .date-section input{font-size:18px;padding-bottom:6px}
body[data-sun-project] .season-buttons{margin-top:6px}
body[data-sun-project] .season-buttons button{font-size:14px;padding:5px 8px}
body[data-sun-project] .focus-tabs{margin:14px 0 10px;gap:18px}
body[data-sun-project] .focus-tabs button{padding-bottom:9px}
body[data-sun-project] select{font-size:16px;padding:8px;margin:5px 0 9px;min-height:40px}
body[data-sun-project] .pool-number>span:first-child{font-size:44px;letter-spacing:-2px}
body[data-sun-project] .pool-number>span:nth-child(2){font-size:22px;padding-top:0}
body[data-sun-project] .big-sun{font-size:32px}
body[data-sun-project] .fraction-bar{margin:10px 0 8px}
body[data-sun-project] .result-caption{line-height:1.45;margin-bottom:8px}
body[data-sun-project] .insight{padding:10px;margin-top:10px;gap:8px}
body[data-sun-project] .insight small{font-size:12px;letter-spacing:0;margin-bottom:4px}
body[data-sun-project] .insight strong{font-size:17px}
body[data-sun-project] .insight p{font-size:13px;line-height:1.4}
body[data-sun-project] .unit-offer{padding:12px;margin:10px 0;border-radius:10px}
body[data-sun-project] .unit-offer p{margin:6px 0}
body[data-sun-project] .unit-price{font-size:25px}
body[data-sun-project] .unit-catalog-link{padding:9px;font-size:14px}
body[data-sun-project] .apartment-status{margin-top:10px;gap:8px}
body[data-sun-project] .apartment-status strong{font-size:17px}
body[data-sun-project] .micro-note{font-size:12px;line-height:1.45;margin:8px 0}
body[data-sun-project] .daylight-footer{margin-top:14px;padding-top:10px}
body[data-sun-project] .room-section{padding-top:20px;scroll-margin-top:8px}
body[data-sun-project] .room-section>.section-heading{margin-bottom:8px}
body[data-sun-project] .room-section>.section-heading h2{font-size:25px}
body[data-sun-project] .room-assumption{font-size:14px;line-height:1.4;margin-bottom:10px}
body[data-sun-project] .apartment-photo{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,1fr);align-items:start;gap:0;margin:12px 0 18px;border-radius:14px;background:#fff;scroll-margin-top:8px}
body[data-sun-project] .photo-heading{grid-column:1/-1;grid-row:1;padding:9px 14px;gap:10px;min-height:52px;border-bottom:1px solid var(--line)}
body[data-sun-project] .photo-heading .eyebrow{display:none}
body[data-sun-project] .photo-heading h3{font-size:18px;max-width:none;letter-spacing:0}
body[data-sun-project] .photo-heading .outline-button{font-size:14px;white-space:nowrap;padding:7px 9px}
body[data-sun-project] .photo-stage{grid-column:1;grid-row:2/5;justify-self:center;width:100%;max-width:calc(var(--photo-height) * var(--photo-ratio));height:auto;min-height:0;aspect-ratio:var(--photo-ratio);margin:0 auto;align-self:start}
body[data-sun-project] .photo-controls{grid-column:2;grid-row:2;padding:12px 14px;min-width:0;width:100%}
body[data-sun-project] .photo-scrubbers{min-width:0}
body[data-sun-project] .photo-controls-top{display:flex;align-items:center;gap:8px;justify-content:space-between;flex-wrap:wrap;margin:0 0 8px}
body[data-sun-project] .photo-controls-top>label{display:block;font-size:0;min-width:130px;flex:1}
body[data-sun-project] .photo-controls input[type=date]{font-size:16px;letter-spacing:0;padding:7px 9px;min-height:38px;max-width:165px;width:100%;margin:0}
body[data-sun-project] .photo-play-actions{display:flex;gap:6px;margin:0}
body[data-sun-project] .photo-play-actions .play-button{font-size:14px;padding:8px;white-space:nowrap}
body[data-sun-project] .photo-slider-label{font-size:14px;line-height:22px;margin:0;gap:8px}
body[data-sun-project] .photo-slider-label strong{font-size:20px}
body[data-sun-project] .photo-year-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:6px 0 0;font-size:14px;min-height:36px}
body[data-sun-project] .photo-year-heading label{max-width:none;line-height:1.3}
body[data-sun-project] .photo-year-heading .text-button{display:inline-block;margin:0;padding:6px 0;font-size:14px;white-space:nowrap;line-height:1.3}
body[data-sun-project] .photo-options{border-top:1px solid var(--line);margin-top:10px;padding-top:2px}
body[data-sun-project] .photo-options summary,body[data-sun-project] .photo-method summary{font-size:14px;line-height:1.4;padding:9px 0;cursor:pointer;color:var(--ink)}
body[data-sun-project] .photo-options-content{padding:4px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px}
body[data-sun-project] .photo-unit-info{grid-column:1/-1;gap:4px 12px;margin:0;font-size:14px}
body[data-sun-project] .photo-unit-info a{font-size:14px}
body[data-sun-project] .photo-window-select,body[data-sun-project] .photo-controls .unit-window-field{display:block;margin:0;gap:3px;font-size:14px;line-height:1.4}
body[data-sun-project] .photo-window-select select,body[data-sun-project] .photo-controls .unit-window-field select{font-size:16px;min-height:40px;padding:7px;margin:4px 0 0;border-radius:8px}
body[data-sun-project] .photo-method{grid-column:2;grid-row:3;margin:0 14px;padding:0 0 6px;border-top:1px solid var(--line);min-width:0}
body[data-sun-project] .photo-caption{padding:4px 0 8px;font-size:13px;line-height:1.5;margin:0}
body[data-sun-project] .photo-failure{grid-column:1/-1;grid-row:5;padding:8px 14px;margin:0;font-size:14px}
body[data-sun-project] .photo-overlay{inset:8px 8px auto;display:block}
body[data-sun-project] .photo-chip{font-size:12px;line-height:1.3;padding:5px 7px;max-width:100%;border-radius:7px}
body[data-sun-project] .photo-clock{display:none}
body[data-sun-project] .photo-status{padding:28px 10px 10px;gap:3px}
body[data-sun-project] .photo-status>span:first-child{font-size:14px!important;line-height:1.3;margin-bottom:3px}
body[data-sun-project] .photo-status>span:last-child{font-size:12px!important;line-height:1.35}
body[data-sun-project] .room-metrics{gap:10px;margin-bottom:14px}
body[data-sun-project] .room-metrics>div{padding:12px}
body[data-sun-project] .room-views{gap:12px}
body[data-sun-project] .room-views figure{padding:12px}
body[data-sun-project] .room-settings{padding:12px;margin-top:12px}
body[data-sun-project] .apartment-photo:fullscreen{display:grid;grid-template-columns:minmax(0,1fr) minmax(300px,1fr);width:100%;height:100%;max-width:none;align-content:start;overflow-y:auto;border:0;border-radius:0;--photo-height:calc(100svh - 60px)}
body[data-sun-project] .apartment-photo:fullscreen .photo-controls{padding:12px 14px;margin:0;width:100%}
body[data-sun-project] .apartment-photo:fullscreen .photo-stage{max-width:calc(var(--photo-height) * var(--photo-ratio));width:100%;height:auto;min-height:0;margin:0 auto}
body[data-sun-project] .apartment-photo:fullscreen .photo-method{margin:0 14px}
@media(max-width:1100px){
 body[data-sun-project] .sun-readout{top:62px}
 body[data-sun-project] .photo-play-actions #photoNow{display:none}
 body[data-sun-project] .model-stamp{display:none}
}
@media(max-width:800px){
 body[data-sun-project] .workspace{display:flex;flex-direction:column;align-items:stretch}
 body[data-sun-project] .scene-column{position:static;width:100%}
 body[data-sun-project] .control-panel{display:block;max-height:none;overflow:visible;border-left:0;padding:12px 14px}
 body[data-sun-project] .control-panel [role=tabpanel]{padding-top:0}
 body[data-sun-project] .date-section{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
 body[data-sun-project] .date-section .section-label{display:none}
 body[data-sun-project] .date-section input{width:auto;max-width:160px;font-size:16px;padding:6px;border:1px solid var(--line);border-radius:7px}
 body[data-sun-project] .season-buttons{margin:0}
 body[data-sun-project] .focus-tabs{margin:10px 0}
 body[data-sun-project] .pool-zones{flex-direction:row;gap:10px}
 body[data-sun-project] .pool-zones button{flex:1;gap:6px;flex-wrap:wrap;font-size:14px}
 body[data-sun-project] .daylight-footer{flex-direction:row;gap:8px;align-items:center}
 body[data-sun-project] #sceneWrap{--scene-height:clamp(220px,calc(100svh - 300px),390px)}
 body[data-sun-project] .year-slider-heading .field-label{display:none}
 body[data-sun-project] .neighbor-control>span{display:none}
}
@media(max-width:760px){
 body[data-sun-project]{--photo-height:clamp(150px,calc(100svh - 390px),340px)}
 body[data-sun-project] main{padding-inline:10px}
 body[data-sun-project] .header{padding:8px 10px;gap:10px}
 body[data-sun-project] .header>.text-button{font-size:12px;padding:0}
 body[data-sun-project] .brand{gap:8px}
 body[data-sun-project] .brand-name{font-size:11px}
 body[data-sun-project] .brand-name small{font-size:10px;letter-spacing:.8px}
 body[data-sun-project] .brand-logo{width:36px;height:36px;flex-basis:36px}
 body[data-sun-project] .mm-links{padding:4px 10px;gap:0}
 body[data-sun-project] .mm-links-group{gap:0 14px}
 body[data-sun-project] .mm-links a{min-height:34px;display:inline-flex;align-items:center;font-size:14px}
 body[data-sun-project] .intro{padding:12px 0 8px}
 body[data-sun-project] .intro h1{font-size:26px;line-height:1.15;letter-spacing:-.5px}
 body[data-sun-project] .intro h1 em{display:inline}
 body[data-sun-project] .intro>.model-stamp{display:none}
 body[data-sun-project] .project-facts{gap:5px 14px;padding:8px 0;font-size:12px}
 body[data-sun-project] .project-facts strong{font-size:14px}
 body[data-sun-project] .unit-map-help{font-size:13px;margin:4px 0 8px}
 body[data-sun-project] .scene-label{max-width:120px;padding:4px 6px}
 body[data-sun-project] .scene-toolbar .segmented button{font-size:14px;padding:7px 8px}
 body[data-sun-project] .scene-toolbar{top:8px;left:8px;right:8px}
 body[data-sun-project] .sun-readout{top:58px;right:10px;gap:5px}
 body[data-sun-project] .sun-icon{font-size:25px}
 body[data-sun-project] .sun-readout strong{font-size:14px}
 body[data-sun-project] .scene-bottom{bottom:9px;left:10px;right:10px}
 body[data-sun-project] .compass{left:8px;bottom:32px;transform:scale(.8);transform-origin:bottom left}
 body[data-sun-project] .time-panel{padding:7px 10px 10px}
 body[data-sun-project] .time-top .field-label{max-width:75px;font-size:12px}
 body[data-sun-project] .time-top strong{font-size:20px}
 body[data-sun-project] .play-controls{gap:8px}
 body[data-sun-project] .play-button{font-size:14px;padding:7px 9px}
 body[data-sun-project] .play-button span{padding-left:3px}
 body[data-sun-project] .year-slider-heading{min-height:25px}
 body[data-sun-project] .year-range-ticks span:nth-child(2n){display:none}
 body[data-sun-project] .apartment-photo,body[data-sun-project] .apartment-photo:fullscreen{display:grid;grid-template-columns:minmax(0,1fr);--photo-height:clamp(150px,calc(100svh - 390px),340px)}
 body[data-sun-project] .photo-heading{grid-column:1;grid-row:1;padding:7px 10px;min-height:44px}
 body[data-sun-project] .photo-heading h3{font-size:16px}
 body[data-sun-project] .photo-heading .outline-button{font-size:12px;padding:6px 8px;min-height:32px}
 body[data-sun-project] .photo-stage,body[data-sun-project] .apartment-photo:fullscreen .photo-stage{grid-column:1;grid-row:2;max-width:calc(var(--photo-height) * var(--photo-ratio));width:100%;height:auto;min-height:0}
 body[data-sun-project] .photo-controls,body[data-sun-project] .apartment-photo:fullscreen .photo-controls{grid-column:1;grid-row:3;padding:9px 10px 0}
 body[data-sun-project] .photo-method{grid-column:1;grid-row:4;margin:0 10px;padding-bottom:3px}
 body[data-sun-project] .photo-controls-top{flex-wrap:nowrap;gap:6px;margin-bottom:7px}
 body[data-sun-project] .photo-play-actions .play-button{font-size:14px;padding:7px 8px}
 body[data-sun-project] .photo-play-actions #photoNow{display:none}
 body[data-sun-project] .photo-controls input[type=date]{max-width:155px}
 body[data-sun-project] .photo-options{margin-top:7px}
 body[data-sun-project] .photo-options summary,body[data-sun-project] .photo-method summary{font-size:13px;padding:8px 0}
 body[data-sun-project] .photo-chip{font-size:12px;padding:4px 6px;line-height:1.25}
 body[data-sun-project] .photo-overlay{inset:6px 6px auto}
 body[data-sun-project] .photo-status{padding:22px 7px 7px}
 body[data-sun-project] .room-section>.section-heading{display:block}
 body[data-sun-project] .room-date{font-size:13px;margin-top:4px;text-align:left}
 body[data-sun-project] .room-metrics{grid-template-columns:1fr}
 body[data-sun-project] .room-metrics>div{padding:10px 12px;gap:4px 8px}
 body[data-sun-project] .room-metrics strong{font-size:23px}
 body[data-sun-project][data-embed] main{padding:4px}
 body[data-sun-project][data-embed="project"] #sceneWrap{--scene-height:clamp(210px,calc(100svh - 240px),350px)}
 body[data-sun-project][data-embed="project"] .control-panel{padding:10px}
 body[data-sun-project][data-embed="project"] .date-section{padding-bottom:0}
 body[data-sun-project][data-embed="room"] .room-section>.section-heading,body[data-sun-project][data-embed="room"] .room-assumption{display:none}
 body[data-sun-project][data-embed="room"] .apartment-photo{margin:0 0 12px}
}
@media(max-width:360px){
 body[data-sun-project] .photo-controls-top>label{min-width:115px}
 body[data-sun-project] .photo-play-actions .play-button{font-size:12px;padding:8px 6px}
 body[data-sun-project] .time-top>div:first-child{gap:5px}
 body[data-sun-project] .play-controls{gap:5px}
 body[data-sun-project] #nowButton{font-size:12px}
 body[data-sun-project] #playDay{font-size:12px}
}

body[data-sun-project][data-embed="room"] .photo-window-select{display:none}
body[data-sun-project="hub"] .scene-label,body[data-sun-project="hub"] .scene-bottom,body[data-sun-project="hub"] .compass,body[data-sun-project="hub"] .sun-readout{z-index:1}
body[data-sun-project="hub"] .scene-toolbar{z-index:2}
body[data-sun-project="hub"] .scene-fallback{z-index:3}
