/* ============================================
   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 (.form_prev_795f) is a descendant of
   .easy-7731 (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_a383 {
  max-width: none !important;
}

/* Fix for any potential overflow elements */
/* NOTE: ".fixed_c52f" 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.out_0a3a so it can't cause
   horizontal overflow anyway. */
.hover-fresh-edea,
.left_5be9,
.avatar_0be8,
.notification_bronze_eeb1,
.content-thick-f039,
.shadow_west_5a43,
.advanced_365c,
.stale_1b9c,
.motion-9180,
.highlight-purple-c897,
.chip-5dcd {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header mobile optimizations */
@media (max-width: 768px) {
  .pagination-basic-3642 {
    padding: 8px 0;
  }
  
  .layout_c23d img {
    height: 28px;
    width: auto;
  }
  
  .video-885e {
    display: none !important;
  }
  
  .right_7e56 {
    padding: 6px 12px !important;
    font-size: 0.8125rem !important;
    white-space: nowrap;
  }
  
  .right_7e56 svg {
    width: 14px;
    height: 14px;
  }
  
  .filter-full-ba41 {
    padding: 6px;
  }
  
  .grid_bright_ac8b {
    width: 20px;
  }
}

/* Mobile-specific fixes (phones) */
@media (max-width: 768px) {
  /* Force single column layout */
  .avatar_0be8,
  .left_5be9,
  .notification_bronze_eeb1,
  .content-thick-f039,
  .progress-new-3a17,
  .hot_5127,
  .silver_eb67,
  .full-74da,
  .image-fdf0,
  .progress-basic-9cbb,
  .status_silver_37ee {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  /* Ensure tables are scrollable */
  .outline_rough_2281,
  .disabled_13ef {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix any fixed-width elements */
  .cold_9aaf,
  .accordion_last_db10,
  .huge-107f,
  .dim_2c9a,
  .progress_right_c88e,
  .tag_hot_d6bc,
  .active-motion-aad2 {
    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 */
  .right_3e84,
  .dynamic_012f,
  .mini_46b8,
  .container_orange_ea9d,
  .breadcrumb_south_14e7 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Fix text overflow */
  h1, h2, h3, h4, h5, h6,
  p, span, a, li, td, th,
  .article-d0fd,
  .box-96bd,
  .full_0653,
  .alert-east-ee7d {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  /* Fix code blocks */
  pre,
  code,
  .smooth-568a,
  .frame-c794 {
    overflow-x: auto !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
  }
  
  /* Fix buttons */
  .left_6989,
  .slow-5950,
  .module-07ec,
  .panel-dim-6562 {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Fix flex containers */
  .secondary-1589,
  .menu_e74e,
  .layout_c71e,
  .menu-f429,
  .widget_silver_794e,
  .description_bronze_f222 {
    flex-wrap: wrap !important;
    width: 100% !important;
  }
}

/* Extra small screens (≤480px) */
@media (max-width: 480px) {
  /* Even more aggressive fixes */
  * {
    max-width: 100vw !important;
  }
  
  section,
  .right_3e84,
  .dynamic_012f,
  .container_orange_ea9d {
    max-width: none !important;
  }
  
  .fixed_c52f {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* Reduce font sizes if needed */
  .article-d0fd {
    font-size: 1.5rem !important;
  }
  
  .box-96bd {
    font-size: 1.375rem !important;
  }
  
  /* Stack everything */
  .icon-e02b,
  .component-dc8e {
    flex-direction: column !important;
  }
  
  /* Smaller stat values */
  .full_0653 {
    font-size: 2rem !important;
  }
  
  /* Ensure score circles fit */
  .carousel_bright_3028 {
    width: 100px !important;
    height: 100px !important;
    font-size: 2.5rem !important;
  }
  
  .out-30c3 {
    width: 140px !important;
    height: 140px !important;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .right_3e84,
  .container_orange_ea9d {
    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: 76e5 */
.ghost-box-a1 {
  padding: 0.1rem;
  font-size: 11px;
  line-height: 1.0;
}
