/* ============================================
   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 (.aside-0018) is a descendant of
   .box_89d4 (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.table-left-fb6a {
  max-width: none !important;
}

/* Fix for any potential overflow elements */
/* NOTE: ".pink_da34" 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.section_small_f50d so it can't cause
   horizontal overflow anyway. */
.message_stone_e207,
.pressed_d50d,
.prev-6842,
.status-east-0e41,
.wrapper-last-c71b,
.stone_a1c1,
.out_dbb1,
.solid_76b5,
.feature-fresh-5b3f,
.photo_middle_4070,
.hero_current_4c4e {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header mobile optimizations */
@media (max-width: 768px) {
  .dynamic-5c65 {
    padding: 8px 0;
  }
  
  .aside-under-d882 img {
    height: 28px;
    width: auto;
  }
  
  .thick_e0a6 {
    display: none !important;
  }
  
  .module_large_e17c {
    padding: 6px 12px !important;
    font-size: 0.8125rem !important;
    white-space: nowrap;
  }
  
  .module_large_e17c svg {
    width: 14px;
    height: 14px;
  }
  
  .surface-out-8cbf {
    padding: 6px;
  }
  
  .outline-86c2 {
    width: 20px;
  }
}

/* Mobile-specific fixes (phones) */
@media (max-width: 768px) {
  /* Force single column layout */
  .prev-6842,
  .pressed_d50d,
  .status-east-0e41,
  .wrapper-last-c71b,
  .section_slow_744d,
  .form-caa9,
  .first_964c,
  .description-iron-f222,
  .dynamic_5ff7,
  .fresh-0266,
  .hard-fe73 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  /* Ensure tables are scrollable */
  .modal_stale_334b,
  .row-hard-a03e {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix any fixed-width elements */
  .sort-451e,
  .thick_40f6,
  .component_4309,
  .next-bb38,
  .menu-tiny-04df,
  .picture_gas_680b,
  .sidebar-complex-c605 {
    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 */
  .pagination-9405,
  .message-813e,
  .dropdown-iron-9851,
  .easy_a594,
  .sidebar-c814 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Fix text overflow */
  h1, h2, h3, h4, h5, h6,
  p, span, a, li, td, th,
  .button-solid-ff2f,
  .active_45b8,
  .wood-7670,
  .outer-0029 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  /* Fix code blocks */
  pre,
  code,
  .box_focused_f60e,
  .bright-c165 {
    overflow-x: auto !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
  }
  
  /* Fix buttons */
  .glass_c010,
  .focused_a1a2,
  .upper_9d5e,
  .filter-43bd {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Fix flex containers */
  .alert_7bc9,
  .pagination-15a2,
  .block-current-b8c3,
  .slider_active_6bb1,
  .background-696d,
  .label-dea9 {
    flex-wrap: wrap !important;
    width: 100% !important;
  }
}

/* Extra small screens (≤480px) */
@media (max-width: 480px) {
  /* Even more aggressive fixes */
  * {
    max-width: 100vw !important;
  }
  
  section,
  .pagination-9405,
  .message-813e,
  .easy_a594 {
    max-width: none !important;
  }
  
  .pink_da34 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* Reduce font sizes if needed */
  .button-solid-ff2f {
    font-size: 1.5rem !important;
  }
  
  .active_45b8 {
    font-size: 1.375rem !important;
  }
  
  /* Stack everything */
  .label_first_e8de,
  .paragraph_tall_35be {
    flex-direction: column !important;
  }
  
  /* Smaller stat values */
  .wood-7670 {
    font-size: 2rem !important;
  }
  
  /* Ensure score circles fit */
  .dropdown-5782 {
    width: 100px !important;
    height: 100px !important;
    font-size: 2.5rem !important;
  }
  
  .right-c77a {
    width: 140px !important;
    height: 140px !important;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .pagination-9405,
  .easy_a594 {
    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: 57ec */
.promo-block-v0 {
  padding: 0.3rem;
  font-size: 12px;
  line-height: 1.0;
}
