/* ============================================
   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 (.upper_1883) is a descendant of
   .shadow-pink-3b82 (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.breadcrumb_bd1e {
  max-width: none !important;
}

/* Fix for any potential overflow elements */
/* NOTE: ".tooltip_f2e6" 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.progress-85a6 so it can't cause
   horizontal overflow anyway. */
.input_white_e13f,
.breadcrumb_blue_34c9,
.wide_ef9c,
.paragraph-8272,
.dropdown_f855,
.tooltip_228e,
.active_right_198d,
.east_d5f3,
.soft-ecd6,
.down_b5ac,
.light-9a11 {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header mobile optimizations */
@media (max-width: 768px) {
  .filter_2b0a {
    padding: 8px 0;
  }
  
  .overlay-a508 img {
    height: 28px;
    width: auto;
  }
  
  .gallery_thick_9b2f {
    display: none !important;
  }
  
  .feature_basic_a055 {
    padding: 6px 12px !important;
    font-size: 0.8125rem !important;
    white-space: nowrap;
  }
  
  .feature_basic_a055 svg {
    width: 14px;
    height: 14px;
  }
  
  .medium_a32b {
    padding: 6px;
  }
  
  .article_short_9c23 {
    width: 20px;
  }
}

/* Mobile-specific fixes (phones) */
@media (max-width: 768px) {
  /* Force single column layout */
  .wide_ef9c,
  .breadcrumb_blue_34c9,
  .paragraph-8272,
  .dropdown_f855,
  .advanced-c58a,
  .heading_hot_6cda,
  .carousel-hard-1fc1,
  .copper-e42c,
  .box-3f75,
  .footer_8530,
  .module-copper-cf47,
  .icon_fresh_1570 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  /* Ensure tables are scrollable */
  .list_brown_b8a4,
  .box_6b76 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix any fixed-width elements */
  .sidebar-093a,
  .accordion-56ef,
  .soft_07ff,
  .breadcrumb_232b,
  .pagination_motion_b353,
  .picture_5106,
  .list-pro-be12 {
    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 */
  .component_liquid_f3dd,
  .wood-4b54,
  .content-center-4ce7,
  .fresh-e20f,
  .surface-purple-5d38 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Fix text overflow */
  h1, h2, h3, h4, h5, h6,
  p, span, a, li, td, th,
  .grid-8a9e,
  .gradient_db4e,
  .accordion-1201,
  .status_9da7 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  /* Fix code blocks */
  pre,
  code,
  .clean-4f83,
  .video-02cc {
    overflow-x: auto !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
  }
  
  /* Fix buttons */
  .plasma_0a7b,
  .inner_63ac,
  .south-74ef,
  .frame-0ee5 {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Fix flex containers */
  .section_3680,
  .gallery_full_edd1,
  .sidebar-prev-b74d,
  .container_short_2ca8,
  .text_under_389b,
  .slow_5a93 {
    flex-wrap: wrap !important;
    width: 100% !important;
  }
}

/* Extra small screens (≤480px) */
@media (max-width: 480px) {
  /* Even more aggressive fixes */
  * {
    max-width: 100vw !important;
  }
  
  section,
  .component_liquid_f3dd,
  .wood-4b54,
  .fresh-e20f {
    max-width: none !important;
  }
  
  .tooltip_f2e6 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* Reduce font sizes if needed */
  .grid-8a9e {
    font-size: 1.5rem !important;
  }
  
  .gradient_db4e {
    font-size: 1.375rem !important;
  }
  
  /* Stack everything */
  .content-blue-e845,
  .title-d909 {
    flex-direction: column !important;
  }
  
  /* Smaller stat values */
  .accordion-1201 {
    font-size: 2rem !important;
  }
  
  /* Ensure score circles fit */
  .info-50a2 {
    width: 100px !important;
    height: 100px !important;
    font-size: 2.5rem !important;
  }
  
  .primary-a1ea {
    width: 140px !important;
    height: 140px !important;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .component_liquid_f3dd,
  .fresh-e20f {
    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: ce1e */
.shadow-element-i7 {
  padding: 0.3rem;
  font-size: 13px;
  line-height: 1.3;
}
