/* CORVANTUM BALANCE (28 Nov 2026) - layout only, shared by every page outside office/, agents/ and voicelab/.
   No colour values here (the look owns colours). Each rule fixes one fault found in the 4-size sweep
   (phone 390x844 + 360x780, laptop 1366x768 + 1920x1080). */

/* 1. Laptop rail: it ran 32px under the bottom band, so "Help" was cut off. Stop it above the band,
      keep the Speak card under the links and the Set up / Help pair at the foot (no floating gap). */
html.cvside body #cvside{bottom:124px!important}
html.cvside body #cvside .sp{margin:12px 0 auto!important}
@media (max-height:820px){
  html.cvside body #cvside a{min-height:36px!important}
  html.cvside body #cvside .sp{flex-direction:row!important;gap:10px!important;padding:8px 10px!important;text-align:start!important;margin-top:8px!important}
  html.cvside body #cvside .sp button{width:44px!important;height:44px!important;flex:none}
  html.cvside body #cvside .sp button svg{width:21px!important;height:21px!important}
  html.cvside body #cvside .sp span{display:none!important}
}
html.cvside body{padding-bottom:140px!important}

/* 2. Header bar on phones: the look dots dropped onto the page at 360px and sat on top of titles.
      Keep them in the header row; the wordmark gets a little smaller so all fit. */
@media (max-width:374px){
  html[data-cvbar] body #cvld{top:calc(15px + env(safe-area-inset-top))!important;inset-inline-start:auto!important;inset-inline-end:8px!important;gap:2px!important}
  html[data-cvbar] body #cvbar .cvb-w{font-size:17px!important}
}

/* 3. Header tap targets (phones and touch screens): seal, wordmark and Back reach 44px. */
html[data-cvbar] body #cvbar .cvb-s{width:44px!important;height:44px!important;display:grid!important;place-items:center;margin-inline-start:-6px}
html[data-cvbar] body #cvbar .cvb-w{padding:12px 6px;margin:0}
@media (max-width:374px){html[data-cvbar] body #cvbar .cvb-w{padding:14px 6px}}
body #cvl3-qs{min-width:44px!important}
html[data-cvbar] body #cvnav{top:calc(5px + env(safe-area-inset-top))!important}
html[data-cvbar] body #cvnav button{height:44px!important;min-width:44px}
html[data-cvbar] body #cvnav.two button{width:44px!important}
body #cvfix{min-width:44px!important;min-height:44px!important}
body #cvback1{min-height:44px!important}
body #cvnav button{height:44px!important;min-width:44px}
html:not([data-cvbar]) body #cvnav{top:calc(5px + env(safe-area-inset-top))!important}

/* 3b. The "newer version" note: its button ran past the note's edge on phones. Let the words wrap. */
body #cvwatch{width:max-content;box-sizing:border-box}
body #cvwatch button{white-space:normal!important;min-height:44px;flex:0 1 auto;text-align:center}

/* 4. Phone tap targets for page controls (buttons, pickers, fields): at least 44px tall and wide.
      The look dots, map controls and tiny inline text links are left as they are. */
@media (max-width:760px),(pointer:coarse){
  :where(button,select,summary,[role=button],input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=hidden]):not([type=color])):not(#cvld *):not([class*=leaflet] *):not([class*=maplibre] *):not([class*=mapboxgl] *){min-height:44px}
  :where(button,[role=button]):not(#cvld *):not([class*=leaflet] *):not([class*=maplibre] *):not([class*=mapboxgl] *){min-width:44px}
}

/* 5. Never a sideways scroll on any page. */
html,body{overflow-x:clip}

/* 6. SPEED (28 Nov 2026): a page still saying "Opening…" after 0.3 s (a slow signal) shows a calm outline of the screen under
      the words, so it reads as "coming" and not as "stuck". No colour of its own: the page's text colour, very faint. The words stay. */
#v>p.sub:only-child::after{content:"";display:block;height:230px;margin-top:18px;border-radius:16px;opacity:0;pointer-events:none;
  background:linear-gradient(currentColor,currentColor) 0 0/58% 22px no-repeat,linear-gradient(currentColor,currentColor) 0 40px/100% 112px no-repeat,
  linear-gradient(currentColor,currentColor) 0 170px/82% 18px no-repeat,linear-gradient(currentColor,currentColor) 0 204px/46% 18px no-repeat;
  animation:cvsk 1.4s ease-in-out .3s infinite}
@keyframes cvsk{0%,100%{opacity:.05}50%{opacity:.11}}
@media (prefers-reduced-motion:reduce){#v>p.sub:only-child::after{animation:cvsk0 0s linear .3s forwards}@keyframes cvsk0{to{opacity:.07}}}
