/* ============================================
   CRITICAL MOBILE FIXES
   Additional layer to ensure perfect mobile display
   ============================================ */

/* Prevent horizontal scroll at all costs */
html {
  width: 100%;
  scroll-behavior: smooth;
  /* NO position:relative - it breaks sticky! */
  /* NO overflow-x here either - mixed with body's overflow-x: hidden
     it makes <html> its own scroll container and breaks sticky too! */
}

body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
  /* NO position:relative - it breaks sticky! */
}

/* Ensure all major containers respect viewport */
/* NOTE: "nav" is intentionally excluded here. Giving a <nav> element
   overflow-x: hidden makes its overflow-y auto-compute to "auto" (per the
   CSS overflow spec), turning it into a clipping/scroll container. Since
   the header's dropdown submenu (.description_out_21c8) is a descendant of
   .fast_ebf6 (a <nav>), it was getting clipped and forced into a tiny
   internal scrollbar instead of opening naturally below the nav link. */
main,
section,
article,
footer {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header must NOT have max-width restriction for sticky to work */
header.glass-d797 {
  max-width: none !important;
}

/* Fix for any potential overflow elements */
/* NOTE: ".slider_bf07" is intentionally excluded here for the same reason as
   "nav" above — the header's <div class="container"> wraps the nav and
   must not clip the dropdown submenu with an auto-computed overflow-y.
   It's already width-capped via max-width in style.rough_c8d2 so it can't cause
   horizontal overflow anyway. */
.gold_c63a,
.message_smooth_6de3,
.soft_8d60,
.left_2756,
.black-c405,
.border_action_16fc,
.main_center_0511,
.section-8c7d,
.outline_lower_d12a,
.inner_effa,
.blue_452e {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header mobile optimizations */
@media (max-width: 768px) {
  .hovered_525f {
    padding: 8px 0;
  }
  
  .backdrop-e09e img {
    height: 28px;
    width: auto;
  }
  
  .chip_fresh_1b77 {
    display: none !important;
  }
  
  .row_motion_d2d8 {
    padding: 6px 12px !important;
    font-size: 0.8125rem !important;
    white-space: nowrap;
  }
  
  .row_motion_d2d8 svg {
    width: 14px;
    height: 14px;
  }
  
  .shade_5233 {
    padding: 6px;
  }
  
  .tooltip-top-d89c {
    width: 20px;
  }
}

/* Mobile-specific fixes (phones) */
@media (max-width: 768px) {
  /* Force single column layout */
  .soft_8d60,
  .message_smooth_6de3,
  .left_2756,
  .black-c405,
  .item_52a9,
  .full-6268,
  .caption_d26e,
  .mask-bronze-dbae,
  .photo_fixed_bbf0,
  .frame-copper-b7b7,
  .grid_10da,
  .banner_35bf {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  /* Ensure tables are scrollable */
  .new_176f,
  .primary-a2e9 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix any fixed-width elements */
  .background-e82a,
  .clean_5ba5,
  .fresh_88d2,
  .container-paper-c97d,
  .widget-0a42,
  .widget-complex-1b60,
  .section_light_8394 {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }
  
  /* Ensure images are responsive */
  img,
  svg,
  picture {
    max-width: 100% !important;
    height: auto !important;
  }
  
  /* Better padding for mobile */
  .info-b4d1,
  .gallery_c3b6,
  .footer-wood-a5c6,
  .outline_0c8c,
  .wrapper-bright-4def {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Fix text overflow */
  h1, h2, h3, h4, h5, h6,
  p, span, a, li, td, th,
  .active_83ad,
  .link-pro-1994,
  .west_25f7,
  .media-center-3532 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  /* Fix code blocks */
  pre,
  code,
  .column_62ff,
  .media-2d7a {
    overflow-x: auto !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
  }
  
  /* Fix buttons */
  .white_4896,
  .slider_narrow_06f4,
  .progress_ec0a,
  .block_solid_3a67 {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Fix flex containers */
  .header-left-3a8f,
  .dirty_d564,
  .feature-cold-1e18,
  .center_0787,
  .icon-advanced-324f,
  .down_b167 {
    flex-wrap: wrap !important;
    width: 100% !important;
  }
}

/* Extra small screens (≤480px) */
@media (max-width: 480px) {
  /* Even more aggressive fixes */
  * {
    max-width: 100vw !important;
  }
  
  section,
  .info-b4d1,
  .gallery_c3b6,
  .outline_0c8c {
    max-width: none !important;
  }
  
  .slider_bf07 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* Reduce font sizes if needed */
  .active_83ad {
    font-size: 1.5rem !important;
  }
  
  .link-pro-1994 {
    font-size: 1.375rem !important;
  }
  
  /* Stack everything */
  .complex-5ac4,
  .icon_static_5d07 {
    flex-direction: column !important;
  }
  
  /* Smaller stat values */
  .west_25f7 {
    font-size: 2rem !important;
  }
  
  /* Ensure score circles fit */
  .gradient_tiny_3624 {
    width: 100px !important;
    height: 100px !important;
    font-size: 2.5rem !important;
  }
  
  .heading_9484 {
    width: 140px !important;
    height: 140px !important;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .info-b4d1,
  .outline_0c8c {
    padding-top: 1.5rem !important;
    padding-bottom: 1.5rem !important;
  }
}

/* iPhone X and notch devices */
@supports (padding: max(0px)) {
  body {
    padding-left: max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
}

/* css-noise: bc7b */
.ghost-box-g2 {
  padding: 0.5rem;
  font-size: 13px;
  line-height: 1.0;
}
