/* Harsukh Residencies: phone layer (760px and narrower).
   Loaded last on every page, so it settles the phone layout without touching the desktop design.
   1. No sideways scrolling            5. Bigger tap targets
   2. Header: larger logo              6. Residences filters in two columns
   3. One bottom strip                 7. Opening captions readable over the image
   4. Readable labels (12px minimum)   8. 3D tour labels */

@media (max-width:760px){

  /* 1. Nothing may push the page wider than the screen */
  body{overflow-x:clip}
  .developer-image,.closing-image,.img-frame,.tall-image,.detail-image{overflow:hidden}

  /* 2. Header: the logo artwork has wide margins, so crop it to the wordmark and give it more room */
  .header .brand{display:flex;align-items:center;min-height:44px}
  .header .brand .official-logo{width:clamp(86px,30vw,120px);height:46px;object-fit:cover;object-position:50% 52%}
  .header .h-head-cta{font-size:12px;letter-spacing:.07em;padding:0 13px;min-height:44px}
  .header .menu-btn{width:44px;min-width:44px;margin-left:-9px;padding-inline:9px;box-sizing:border-box}

  /* Menu: each section name on its own line, its short description underneath */
  .h-menu-links a{grid-template-columns:minmax(0,1fr)!important;row-gap:3px;padding-block:10px}
  .h-menu-links a em{grid-area:auto!important;text-align:left!important;font-size:13px}
  .h-menu-tools button,.h-menu-tools a{font-size:12px;min-height:44px}
  .h-menu-close span{font-size:12px}

  /* 3. One bottom strip: the dock and the sound button sit flush on the WhatsApp / Call bar,
        instead of floating over the page as separate pieces */
  .open-dock.h-dock{left:0!important;right:56px!important;bottom:calc(52px + env(safe-area-inset-bottom,0px))!important;
    height:48px;padding:0 4px!important;border-radius:0!important;box-shadow:none!important;
    background:#fcf7eb!important;border-top:1px solid rgba(9,96,105,.16);-webkit-backdrop-filter:none;backdrop-filter:none}
  .open-dock.h-dock>a,.open-dock.h-dock>button:not([hidden]){flex:1 1 0;min-width:0;height:44px;margin:2px 0;justify-content:center}
  .open-dock.h-dock .h-dock-cta{flex:1.7 1 0;font-size:12px;letter-spacing:.08em;line-height:1.15;text-align:center;padding:0 8px}
  .open-dock.h-dock.is-away{transform:translateY(calc(100% + 60px))!important}
  .sound-dock{right:0!important;left:auto!important;top:auto!important;bottom:calc(52px + env(safe-area-inset-bottom,0px))!important;
    width:56px!important;height:48px!important;padding:0!important;border-radius:0!important;box-shadow:none!important;
    background:#fcf7eb!important;border-top:1px solid rgba(9,96,105,.16);border-left:1px solid rgba(9,96,105,.12);
    display:flex!important;align-items:center;justify-content:center;transition:opacity .4s,visibility 0s}
  .sound-dock .ambient-toggle{width:44px!important;min-height:44px!important;border-radius:0!important;background:none!important;box-shadow:none!important}
  .sound-dock #sound-settings-toggle,.sound-dock .sound-settings-toggle{display:none!important}
  /* when the dock steps aside (opening screen, page end, films playing), the sound button goes with it */
  body:has(.open-dock.is-away) .sound-dock,body.pf-open .sound-dock{opacity:0;visibility:hidden;pointer-events:none}

  /* 4. Labels: nothing under 12px */
  .breadcrumb,.breadcrumb a,.breadcrumb span,.eyebrow,.x-coords,.u-switch button,.x-share span,.b-next-k,.h-res-type,.h-res-id,
  .h-res-tools button,.h-res-tools label,.h-res-tools .collection-detail-link,.image .tag,.h-form-step,.h-form-step span,
  .nf-actions a,.collection-view-switch button,.x-amen-k,.b-near b,.vw-when,.gy-now-k,.b-dist-i em,.fly-row-b button,.x-am-film,
  .h31-season button,.h31-k,.h31-now span,.h31-next-k,.h31-film span,.h31-tour,.rt-cue,.rt-nm,.lv-k,.lvt-cap,.text-link,.btn,
  .b-btn,.icon-btn,.collection-room-details summary,.calc-results .eyebrow,.lvt-copy .eyebrow{font-size:12px!important}
  .m-line em{font-size:12px!important}
  .gy-sun dt,.h-res-specs span,.h-terms h3,.vw-tick{font-size:12px!important}
  .building-caption span{font-size:11px!important}
  b>small,.rm-scale,.rm-elev small,.rm-l small{font-size:11px!important}
  .rt-credit,.rt-credit a,.gy-credit,.gy-credit a{font-size:11px!important}
  .footer .x-coords{letter-spacing:.08em}

  /* 5. Tap targets: at least 44px tall without moving the text */
  .breadcrumb a{display:inline-block;padding-block:16px;margin-block:-16px}
  .text-link,.icon-btn.text-link{min-height:44px;display:inline-flex;align-items:center}
  .u-switch button{min-height:40px;padding:0 16px}
  .h-res-tools label,.residence-personal-tools label{min-height:44px;display:inline-flex;align-items:center;gap:10px}
  .h-res-tools input[type=checkbox],.residence-personal-tools input[type=checkbox]{width:22px;height:22px}
  .h31-pause{width:44px;height:44px}
  .filter-chips button,.gallery-filters button,.faq-filters button{min-height:44px}
  label:has(>input[type=checkbox]){min-height:44px;display:inline-flex;align-items:center;gap:10px}
  input[type=checkbox]{width:22px;height:22px}
  footer div:not([class])>a{min-height:44px;display:flex;align-items:center}

  /* 6. Residences: the four filters as a compact two-column grid, so the homes show sooner */
  form.filters{grid-template-columns:1fr 1fr!important;gap:12px 12px!important;margin-bottom:18px!important}
  form.filters .field label{font-size:12px;margin-bottom:6px}
  form.filters select{min-height:48px;height:48px;font-size:15px;padding:0 34px 0 12px!important}
  form.filters>button,form.filters>.icon-btn{grid-column:1/-1;justify-self:start}

  /* 7. Opening captions stay readable over bright parts of the image */
  .h31-cap,.h31-now,.h31-cap p,.h31-cap h1,.h31-cap h2{text-shadow:0 1px 14px rgba(3,20,22,.6),0 0 2px rgba(3,20,22,.35)}

  /* 8. 3D tour on phones: larger labels */
  .return-bar a,.tour-sound,.back-btn,.back-btn span,.modes button,.viewer-plan-link,.plan-hint,.selection-status,.scr-title,.viewer-eyebrow,.siteName{font-size:12px!important}
  .tbtn .tsub{font-size:11px!important;letter-spacing:.02em}
  .tbtn .tdot{font-size:11px!important}
  .return-bar a,.back-btn,.modes button{min-height:44px}
}
