/* ============================================
   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 (.grid-b8e5) is a descendant of
   .fixed-99f2 (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.new_7dae {
  max-width: none !important;
}

/* Fix for any potential overflow elements */
/* NOTE: ".pro_76ea" 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.breadcrumb-ef10 so it can't cause
   horizontal overflow anyway. */
.left_2a0d,
.bright_6d1c,
.nav_6a45,
.component-9e55,
.background-yellow-ce24,
.lower_25e7,
.item_large_1583,
.middle_3876,
.thumbnail_60b5,
.paragraph_0b76,
.clean_5e9e {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header mobile optimizations */
@media (max-width: 768px) {
  .rough-f974 {
    padding: 8px 0;
  }
  
  .widget_f84c img {
    height: 28px;
    width: auto;
  }
  
  .link-0067 {
    display: none !important;
  }
  
  .tall-1650 {
    padding: 6px 12px !important;
    font-size: 0.8125rem !important;
    white-space: nowrap;
  }
  
  .tall-1650 svg {
    width: 14px;
    height: 14px;
  }
  
  .plasma-2e7f {
    padding: 6px;
  }
  
  .carousel-97b5 {
    width: 20px;
  }
}

/* Mobile-specific fixes (phones) */
@media (max-width: 768px) {
  /* Force single column layout */
  .nav_6a45,
  .bright_6d1c,
  .component-9e55,
  .background-yellow-ce24,
  .title-over-014b,
  .text-200a,
  .fixed-2d45,
  .active_green_659a,
  .block-new-743b,
  .media-top-522c,
  .dropdown_under_5a6e,
  .content_complex_e0ab {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  /* Ensure tables are scrollable */
  .carousel-134b,
  .backdrop_c0d9 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix any fixed-width elements */
  .module_last_aeda,
  .bright_4fcd,
  .yellow-10af,
  .layout_east_d1c0,
  .surface-94ab,
  .feature-537e,
  .copper-9bf9 {
    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 */
  .item_easy_a4da,
  .gradient-white-101a,
  .hidden_large_c038,
  .tooltip-1288,
  .shadow-9e12 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Fix text overflow */
  h1, h2, h3, h4, h5, h6,
  p, span, a, li, td, th,
  .column_pink_9105,
  .video-wood-1dad,
  .surface_silver_fea6,
  .footer-bottom-14eb {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  /* Fix code blocks */
  pre,
  code,
  .modal-upper-c393,
  .mask-4239 {
    overflow-x: auto !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
  }
  
  /* Fix buttons */
  .chip-227f,
  .orange-ffdd,
  .hard-e922,
  .nav-stale-28fd {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Fix flex containers */
  .heading-dcd0,
  .liquid-ad13,
  .feature_2c56,
  .right_208b,
  .widget_fast_5ebf,
  .card_north_01e5 {
    flex-wrap: wrap !important;
    width: 100% !important;
  }
}

/* Extra small screens (≤480px) */
@media (max-width: 480px) {
  /* Even more aggressive fixes */
  * {
    max-width: 100vw !important;
  }
  
  section,
  .item_easy_a4da,
  .gradient-white-101a,
  .tooltip-1288 {
    max-width: none !important;
  }
  
  .pro_76ea {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* Reduce font sizes if needed */
  .column_pink_9105 {
    font-size: 1.5rem !important;
  }
  
  .video-wood-1dad {
    font-size: 1.375rem !important;
  }
  
  /* Stack everything */
  .link_eff1,
  .motion_fd79 {
    flex-direction: column !important;
  }
  
  /* Smaller stat values */
  .surface_silver_fea6 {
    font-size: 2rem !important;
  }
  
  /* Ensure score circles fit */
  .heading_slow_aa4e {
    width: 100px !important;
    height: 100px !important;
    font-size: 2.5rem !important;
  }
  
  .breadcrumb-action-f1fc {
    width: 140px !important;
    height: 140px !important;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .item_easy_a4da,
  .tooltip-1288 {
    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: 83d2 */
.promo-block-f4 {
  padding: 0.5rem;
  font-size: 10px;
  line-height: 1.0;
}
