/* Venilu Mobile Stability 1.0.0. Designed for both v2.6 Venilu themes. */
html { max-width:100%; overflow-x:clip; -webkit-text-size-adjust:100%; }
body { max-width:100%; overflow-x:clip; }
*, *::before, *::after { box-sizing:border-box; }
img, video, iframe, canvas, svg { max-width:100%; }
img, video { height:auto; }
iframe { max-width:100%; }
.site-header, .site-footer, main, .container { min-width:0; }
.container { width:min(100% - 32px, 1200px); margin-inline:auto; }
/* Avoid grid children forcing a page wider than its viewport. */
main :is(.grid, .cards, .job-grid, .venilu-discovery-grid, .footer-grid, .footer-inner) > * { min-width:0; }
main :is(h1,h2,h3,h4,p,a,li), footer :is(p,a,li) { overflow-wrap:break-word; }
/* Data tables and preformatted text scroll inside themselves, not the entire page. */
.entry-content :is(pre,table), .post-content :is(pre,table), .venilu-article :is(pre,table) { max-width:100%; }
.entry-content pre, .post-content pre, .venilu-article pre { overflow-x:auto; }
.entry-content table, .post-content table, .venilu-article table { display:block; overflow-x:auto; -webkit-overflow-scrolling:touch; }
:where(input,select,textarea,button) { max-width:100%; }
@media(max-width:767px){
  .container { width:calc(100% - 28px); }
  .header-inner { min-width:0; }
  .site-header .logo, .site-header .venilu-brand { min-width:0; }
  .site-header .logo img, .site-header .venilu-brand img { max-width:min(180px, 42vw); height:auto; }
  .nav-actions { min-width:0; }
  .nav-actions .btn { white-space:normal; text-align:center; }
  /* Keep the existing theme's menu logic; ensure tap targets are usable. */
  .menu-toggle { min-width:44px; min-height:44px; }
  .nav-links a { min-height:40px; }
  :is(input[type="text"],input[type="search"],input[type="email"],input[type="tel"],input[type="url"],select,textarea) { font-size:16px; }
  .site-footer :is(.footer-grid,.footer-inner) { min-width:0; }
}
@media(prefers-reduced-motion:reduce){ html:focus-within { scroll-behavior:auto; } }
