/* Detail views: fixes carried over from the previous refinement layer, plus the new story typeface for headings. */
/* Detail views */
.cap-shell{padding:0 max(clamp(24px,4.2vw,74px),calc((100vw - 1440px)/2))}
.cap-content{overflow-y:auto;overscroll-behavior:contain;align-items:start}
.cap-editorial{align-self:start}
.cap-mockup-area{justify-content:flex-start}
.cap-back{font-size:15px!important}
.cap-preview{font-size:13px}
.cap-close{width:40px;height:40px}
.cap-editorial p{font-size:clamp(15px,1.05vw,17px);line-height:1.6}
.cap-research .research-copy{font-size:14px}
.cap-research-source{font-size:14px}
.cap-disclaimer{font-size:13px!important}
.cap-bottom nav button{font-size:14px;min-height:44px}
.cap-next{font-size:15px}
.cap-task footer>i{width:26px;height:26px}
.cap-timeline>div>i{width:26px;height:26px}
.cap-heatmap button{height:30px}
.cap-heatmap button>span{opacity:1}
.cap-segment button{min-height:34px}
.cap-row-status{max-width:110px}
.cap-dialog .cap-product.cap-find{max-height:none;flex:0 0 auto}
.cap-find .of-body{grid-template-rows:auto 1fr auto}
.cap-find[data-find-mode=family] .of-body{grid-template-rows:auto auto auto auto}
.cap-find[data-find-mode=family] .of-mode-switch{width:auto;max-width:380px}
.cap-find .of-feedback{white-space:normal}
.cap-find .of-mode-switch>button>span{width:auto;min-width:22px;height:22px;padding:0 6px}
.cap-find[data-find-mode=family] .of-capture-label{display:none}
.cap-chart svg text{font-size:13px}
.facility-impact{height:auto;max-height:none}
.facility-impact .fi-field>span:first-child{white-space:normal;line-height:1.3}
.facility-impact .fi-inputs{align-items:end}
.cap-dialog::backdrop{background:#07141f}
.cap-heading h2,.cap-editorial h3,.cap-editorial-label{font-family:'Instrument Sans',system-ui,sans-serif}
.cap-heading h2{font-stretch:88%;letter-spacing:-.025em;font-weight:600}
@media(min-width:801px) and (max-height:900px){.cap-heading{padding:18px 0 14px}.cap-heading h2{font-size:clamp(28px,2.6vw,38px)}}
@media(max-width:760px){
 .cap-shell{grid-template-rows:56px auto minmax(0,1fr) 72px;padding:0 18px}
 .cap-heading h2{font-size:28px}
 .cap-back{font-size:14px!important}
 .cap-close{width:40px;height:40px}
 .cap-preview{display:flex;gap:6px;font-size:12px;white-space:nowrap}
 .cap-preview>span,.cap-preview>em{display:none}
 .cap-mobile-switch button{font-size:14px;min-height:44px;padding-bottom:0}
 .cap-editorial p{font-size:15px}
 .cap-dialog .cap-product.cap-find{max-height:none;flex:0 0 auto}
 .cap-find .of-body,.cap-find[data-find-mode=family] .of-body{grid-template-rows:auto auto auto auto}
 .cap-find .of-capture,.cap-find[data-find-mode=family] .of-capture{grid-template-columns:112px minmax(0,1fr)}
 .cap-find .of-profile,.cap-find[data-find-mode=family] .of-profile{grid-template-columns:minmax(0,1fr) 92px;grid-template-rows:auto auto auto}
 .cap-find .of-profile h3,.cap-find[data-find-mode=family] .of-profile h3{white-space:normal}
 .cap-find .of-records,.cap-find[data-find-mode=family] .of-family-records{grid-template-rows:auto}
 .cap-find .of-take-photo,.cap-find[data-find-mode=family] .of-take-photo{max-width:none}
 .facility-impact{height:auto;max-height:none}
 .cap-bottom nav button{font-size:13px}
 .cap-top .cap-close{margin-left:auto}
 .cap-kanban{grid-template-columns:1fr;min-height:0}
 .cap-resource-list{grid-template-columns:1fr}
 .cap-charts{grid-template-columns:1fr}
 .cap-heatmap{grid-template-columns:84px repeat(6,minmax(0,1fr))}
 .cap-find .of-capture-label{display:none}
 .cap-tracking .cap-map{height:auto}
 .cap-zone text{font-size:15px;letter-spacing:0}
 .cap-zone text.cap-zone-sub{font-size:13px}
 .cap-chart svg text{font-size:16px}
}

.cap-preview{color:#5b6b7f}
.cap-preview em{font-style:normal}
.cap-disclaimer{color:#5b6b7f}
.cap-disclaimer b{font-weight:600;color:#3f5066}

/* Large monitors (see site.css): the page is zoomed, so window-sized values are divided back by --z */
@supports (zoom:1){
 @media(min-width:2185px) and (min-height:1127px){
  .cap-dialog{width:calc(100vw / var(--z));height:calc(100dvh / var(--z))}
  .cap-shell{padding:0 max(74px,calc((100vw / var(--z) - 1440px)/2))}
  .tray-label-viewer{max-height:calc(94dvh / var(--z))}
  .tray-label-viewer img{max-height:calc((94dvh - 190px) / 2 / var(--z))}
 }
}
