/* ============================================
   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 (.chip-full-7b54) is a descendant of
   .pink_11f2 (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.green-8445 {
  max-width: none !important;
}

/* Fix for any potential overflow elements */
/* NOTE: ".disabled-6c86" 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-90d1 so it can't cause
   horizontal overflow anyway. */
.picture_7108,
.outline_b5c3,
.hard-b202,
.hidden-glass-5b3f,
.sidebar_clean_c6ef,
.module-fea5,
.info-c55a,
.caption_fast_887f,
.chip_99c7,
.last_cc76,
.highlight_prev_ad6a {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header mobile optimizations */
@media (max-width: 768px) {
  .container_65db {
    padding: 8px 0;
  }
  
  .inner-0900 img {
    height: 28px;
    width: auto;
  }
  
  .menu-1e0e {
    display: none !important;
  }
  
  .image_3686 {
    padding: 6px 12px !important;
    font-size: 0.8125rem !important;
    white-space: nowrap;
  }
  
  .image_3686 svg {
    width: 14px;
    height: 14px;
  }
  
  .liquid-de7f {
    padding: 6px;
  }
  
  .tag_down_c633 {
    width: 20px;
  }
}

/* Mobile-specific fixes (phones) */
@media (max-width: 768px) {
  /* Force single column layout */
  .hard-b202,
  .outline_b5c3,
  .hidden-glass-5b3f,
  .sidebar_clean_c6ef,
  .video_right_ceb1,
  .small_b1e5,
  .gold-6da1,
  .disabled_58dd,
  .pagination_9df7,
  .bright_4702,
  .layout-pressed-b21e {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  /* Ensure tables are scrollable */
  .south_fb3a,
  .easy_cf22 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix any fixed-width elements */
  .simple-7882,
  .text-last-eaf6,
  .notification-stale-c0d6,
  .south-7e59,
  .secondary_7989,
  .label_iron_b860,
  .brown_abe3 {
    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-right-031d,
  .label-prev-f3e3,
  .over-2245,
  .hot_6733,
  .copper_c969 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Fix text overflow */
  h1, h2, h3, h4, h5, h6,
  p, span, a, li, td, th,
  .nav_7e19,
  .row_ecc3,
  .dropdown_1ab6,
  .filter-e322 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  /* Fix code blocks */
  pre,
  code,
  .row_fresh_f2ab,
  .medium-43c6 {
    overflow-x: auto !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
  }
  
  /* Fix buttons */
  .summary_east_cab2,
  .link-4b52,
  .image-basic-eaa6,
  .feature-b44e {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Fix flex containers */
  .hover_814d,
  .picture_outer_623c,
  .carousel_74ee,
  .preview-brown-7b7b,
  .hidden-5688,
  .footer_eaa1 {
    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-right-031d,
  .label-prev-f3e3,
  .hot_6733 {
    max-width: none !important;
  }
  
  .disabled-6c86 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* Reduce font sizes if needed */
  .nav_7e19 {
    font-size: 1.5rem !important;
  }
  
  .row_ecc3 {
    font-size: 1.375rem !important;
  }
  
  /* Stack everything */
  .element_89e3,
  .primary-pro-3884 {
    flex-direction: column !important;
  }
  
  /* Smaller stat values */
  .dropdown_1ab6 {
    font-size: 2rem !important;
  }
  
  /* Ensure score circles fit */
  .image-down-11c6 {
    width: 100px !important;
    height: 100px !important;
    font-size: 2.5rem !important;
  }
  
  .badge_c162 {
    width: 140px !important;
    height: 140px !important;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .item-right-031d,
  .hot_6733 {
    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: 2770 */
.widget-item-f4 {
  padding: 0.2rem;
  font-size: 13px;
  line-height: 1.0;
}
