/* Screen-size corrections to the prototype's styles. Loaded last.
   The prototype in /exact-site is left untouched so it can still be compared. */

/* ---------- About hero: five pillar arches share the space, whatever its width */
.ah-art{min-width:0;justify-content:flex-end}
.ah-arch{flex:1 1 0;min-width:0;max-width:150px}
@media (min-width:1041px){
  .ah-grid{grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:40px}
  .ah-title{font-size:clamp(40px,4.1vw,58px);line-height:1.08}
  .ah-lbl{left:10px;right:8px;flex-direction:column;align-items:flex-start;gap:6px;font-size:12px;line-height:16px}
}
@media (max-width:1040px){
  .ah-grid{grid-template-columns:minmax(0,1fr)}
  .ah-art{justify-content:center;gap:12px}
}
@media (max-width:600px){.ah-art{gap:6px}}

/* ---------- Short desktop screens (laptops): pillar banners fit in the window.
   182px is the height of the top bar, masthead and menu. */
@media (min-width:1041px) and (max-height:720px){
  .ah,.ah-grid{min-height:clamp(390px,calc(100vh - 182px),580px)}
  .ah-copy{padding:24px 0 28px}
  .ah-title{margin-top:10px;font-size:clamp(36px,7.6vh,52px)}
  .ah-lead{margin-top:12px;font-size:17px;line-height:26px}
  .ah-facts{margin-top:20px}
  .ah-art{padding-top:24px}
  .ah-arch{height:calc(var(--h) * .72)}

  .dx-grid{min-height:clamp(390px,calc(100vh - 182px),620px)}
  .dx-copy{padding:26px 0 28px}
  .dx-kick{font-size:13px}
  .dx-title{margin-top:10px;font-size:clamp(32px,6.6vh,46px);line-height:1.12}
  .dx-lead{margin-top:12px;font-size:16px;line-height:24px}
  .dx-cta{margin-top:20px}
  .dx-cta .btn{padding:11px 18px}
  .dx-art{padding:12px 0;justify-content:center}
  .dx-art>*{max-width:min(100%,calc((100vh - 206px) * 1.1));margin-inline:auto}
}

/* ---------- Home pillar cards: stay inside the page between 1101px and 1450px */
@media (min-width:1101px){
  .dvc-grid .dvc{min-width:0;width:100%;aspect-ratio:auto}
}

/* ---------- Tablet and phone: nothing wider than the screen */
@media (max-width:960px){
  .view .grid>*{min-width:0}
  .view .wrap[style*="grid-template-columns"]{grid-template-columns:minmax(0,1fr)!important;gap:40px!important}
  .view .wrap[style*="grid-template-columns"]>*{min-width:0}
  .view .tablewrap{max-width:100%;overflow-x:auto}
  .view .bars{max-width:100%}

  /* log in, sign up and verify pages */
  .auth{grid-template-columns:minmax(0,1fr)}
  .auth>*{min-width:0}
  .auth-media{padding:24px 20px;gap:24px}
  .auth-pane{padding:24px 20px 32px}
  .auth .brand,.auth .brand>span{min-width:0}
  .auth .brand .en,.auth .brand .sub,.auth .brand .hi{white-space:normal}
  .auth-pane .row,.auth-pane .top{flex-wrap:wrap}
}

.auth .captcha img.img{flex:1 1 0;min-width:0;object-fit:contain}
.auth .captcha button.btn{width:auto;padding-inline:12px}
.auth .captcha .label-s{min-inline-size:3ch}
.p-mobile-logout{display:none}

/* ---------- Portal below 1100px, where the side menu is hidden */
@media (max-width:1100px){
  .portal{grid-template-columns:minmax(0,1fr);background:#F6F7F9}
  .p-main,.p-body,.p-body>*,.p-cols>*,.p-card{min-width:0}
  .p-top{height:auto;min-height:72px;flex-wrap:wrap;gap:10px;padding:12px 20px}
  .p-top>*,.p-top .row,.p-head,.p-head .row,.p-body .row{flex-wrap:wrap}
  .p-top .p-mobile-logout{display:inline-flex}
  .p-body{padding:24px 16px}
  .p-body .tablewrap{max-width:100%;overflow-x:auto}
}

/* ---------- Phone */
@media (max-width:600px){
  .view div:has(>table.table){overflow-x:auto!important}
  .view .ix-soon .wrap{grid-template-columns:minmax(0,1fr)}
  .view .ix-soon .wrap>*,.view .ix-card,.view .ix-meta{min-width:0}
  .view .ix-meta dd{min-width:0;overflow-wrap:anywhere}
  .auth-card [style*="grid-template-columns"],.auth-card .grid{grid-template-columns:minmax(0,1fr)!important}
  .auth-card .field{min-width:0}
  .stepper{flex-wrap:wrap}
  .stepper .ln{min-width:8px}
  .view .sc-row{grid-template-columns:68px minmax(0,1fr) 16px;gap:10px}
  .view .bars{overflow-x:auto}
  .view .row{flex-wrap:wrap}
  .view .res>span{min-width:0}
  .auth-media .display{font-size:30px;line-height:38px}
  .p-quick,.p-kpis{grid-template-columns:minmax(0,1fr)}
}
