/* Responsive finishing pass: preserve desktop design and imported edits. */
/* Both axes remain available to native touch scrolling and pinch zoom. */
html body[data-design-version][data-vx-page] [data-mobile-swipe][data-mobile-swipe]{touch-action:pan-x pan-y pinch-zoom!important}
/* Measured heading lines must not crop Armenian ascenders or the last line. */
html body[data-design-version][data-vx-page] .vx-line-heading.vx-line-heading .glass-text.glass-text{overflow:visible!important}
@media(max-width:1199px){
 html body[data-design-version][data-vx-page] main :is(.intro-grid,.detail-grid,.reading-layout,.contact-grid,.navigator-layout)>*{min-width:0}
 html body[data-design-version][data-vx-page] main :is(h1,h2,h3,p,li){overflow-wrap:break-word}
 html body[data-design-version][data-vx-page] .vx-line-heading :is(.glass-text,.paper-pulse-wording){height:auto!important;max-height:none!important}
 html body[data-design-version][data-vx-page] :is(input:not([type=checkbox]):not([type=radio]),textarea,select){font-size:16px!important;max-width:100%;box-sizing:border-box}
 html body[data-design-version][data-vx-page] :is(.button,.swipe-arrow,.menu-toggle,.search-toggle){min-height:44px}
 html body[data-design-version][data-vx-page] main :is(table,pre){max-width:100%;overflow-x:auto}
 html body[data-design-version][data-vx-page] main pre{white-space:pre-wrap;overflow-wrap:anywhere}
 html body[data-design-version][data-vx-page] [id]{scroll-margin-top:calc(var(--mobile-header-offset,100px) + 16px)}
}
@media(max-width:1023px){
 html body[data-design-version][data-vx-page]{padding-bottom:calc(84px + env(safe-area-inset-bottom))!important}
 html body[data-design-version][data-vx-page] a.page-return-top{bottom:calc(96px + env(safe-area-inset-bottom))!important}
 html body[data-design-version][data-vx-page]:has(dialog[open]) .vx-bar{display:none!important}
}
@media(max-width:760px){
 html body[data-design-version][data-vx-page] .hero .hero-inner{padding-top:32px!important;padding-bottom:32px!important}
 html body[data-design-version][data-vx-page] .hero-assure{gap:12px!important;margin-top:24px!important}
 html body[data-design-version][data-vx-page] .hero-assure li{line-height:1.6!important}
 html body[data-design-version][data-vx-page] main :is(.closing-inner,.guide-banner) .button{white-space:normal;text-align:center}
}
@media(hover:none) and (pointer:coarse){
 html body[data-design-version][data-vx-page] [data-mobile-swipe]>.featured-card:hover{transform:none!important}
}

/* Compact phone cards keep the neighbouring card visible without wasting height. */
@media(max-width:760px){
 html body[data-design-version][data-vx-page] .featured-grid[data-swipe-all] .featured-media{height:180px!important}
 html body[data-design-version][data-vx-page] .featured-grid[data-swipe-all]>.featured-card>.featured-body{padding:8px 20px 24px!important;gap:10px!important}
}
