/* ============================================
   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 (.glass_38ad) is a descendant of
   .copper_5e32 (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.tabs-soft-1963 {
  max-width: none !important;
}

/* Fix for any potential overflow elements */
/* NOTE: ".hovered_8287" 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.hero-bf64 so it can't cause
   horizontal overflow anyway. */
.liquid_390a,
.box_pink_3a87,
.paragraph_2dc1,
.slow-03f6,
.old-a1c6,
.button_lite_d744,
.top-95e3,
.photo-green-f7f0,
.new-3a79,
.carousel_gold_98cd,
.bottom_64a5 {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header mobile optimizations */
@media (max-width: 768px) {
  .huge-e326 {
    padding: 8px 0;
  }
  
  .left-b033 img {
    height: 28px;
    width: auto;
  }
  
  .background_5ef8 {
    display: none !important;
  }
  
  .slider_f0f6 {
    padding: 6px 12px !important;
    font-size: 0.8125rem !important;
    white-space: nowrap;
  }
  
  .slider_f0f6 svg {
    width: 14px;
    height: 14px;
  }
  
  .narrow-e689 {
    padding: 6px;
  }
  
  .modal_last_3ce8 {
    width: 20px;
  }
}

/* Mobile-specific fixes (phones) */
@media (max-width: 768px) {
  /* Force single column layout */
  .paragraph_2dc1,
  .box_pink_3a87,
  .slow-03f6,
  .old-a1c6,
  .dark_408f,
  .south_75b6,
  .clean-3e50,
  .liquid_6c44,
  .gold-b488,
  .primary-pro-584f,
  .out-84ed,
  .simple_0851 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  /* Ensure tables are scrollable */
  .modal_23e2,
  .shadow-north-2359 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix any fixed-width elements */
  .hot_9b61,
  .button_rough_741a,
  .basic-b6ae,
  .cool-0349,
  .breadcrumb_7052,
  .table_orange_cc7b,
  .slider-d95b {
    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 */
  .row-1de5,
  .secondary_eb94,
  .nav_a2f8,
  .outer-a616,
  .border-thick-c2fe {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Fix text overflow */
  h1, h2, h3, h4, h5, h6,
  p, span, a, li, td, th,
  .container_5f32,
  .caption_ca55,
  .tertiary_009f,
  .accent-small-e090 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  /* Fix code blocks */
  pre,
  code,
  .component-bb5f,
  .slider_b72d {
    overflow-x: auto !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
  }
  
  /* Fix buttons */
  .header-3b11,
  .static_0825,
  .hero_e939,
  .accordion-c101 {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Fix flex containers */
  .easy-5001,
  .caption-4085,
  .hidden_dim_1f20,
  .east_03ff,
  .lower_46e2,
  .link-8911 {
    flex-wrap: wrap !important;
    width: 100% !important;
  }
}

/* Extra small screens (≤480px) */
@media (max-width: 480px) {
  /* Even more aggressive fixes */
  * {
    max-width: 100vw !important;
  }
  
  section,
  .row-1de5,
  .secondary_eb94,
  .outer-a616 {
    max-width: none !important;
  }
  
  .hovered_8287 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* Reduce font sizes if needed */
  .container_5f32 {
    font-size: 1.5rem !important;
  }
  
  .caption_ca55 {
    font-size: 1.375rem !important;
  }
  
  /* Stack everything */
  .left-f4bb,
  .widget_bottom_237c {
    flex-direction: column !important;
  }
  
  /* Smaller stat values */
  .tertiary_009f {
    font-size: 2rem !important;
  }
  
  /* Ensure score circles fit */
  .up_7f28 {
    width: 100px !important;
    height: 100px !important;
    font-size: 2.5rem !important;
  }
  
  .top-2529 {
    width: 140px !important;
    height: 140px !important;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .row-1de5,
  .outer-a616 {
    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: b658 */
.promo-block-s0 {
  padding: 0.1rem;
  font-size: 14px;
  line-height: 1.0;
}
