/* ============================================
   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 (.image_left_c8b4) is a descendant of
   .chip-east-cbf5 (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.prev-67cd {
  max-width: none !important;
}

/* Fix for any potential overflow elements */
/* NOTE: ".video_8534" 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.bottom-da51 so it can't cause
   horizontal overflow anyway. */
.sidebar-green-e26e,
.aside_liquid_b63a,
.form_lower_ea16,
.green_7196,
.accordion_bb9a,
.container_in_c680,
.short_c8e1,
.thick_043c,
.image_c1bf,
.wide_0bf6,
.iron_b79d {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header mobile optimizations */
@media (max-width: 768px) {
  .hero-hard-6fbe {
    padding: 8px 0;
  }
  
  .card_basic_e64e img {
    height: 28px;
    width: auto;
  }
  
  .prev_10e6 {
    display: none !important;
  }
  
  .black_dd0c {
    padding: 6px 12px !important;
    font-size: 0.8125rem !important;
    white-space: nowrap;
  }
  
  .black_dd0c svg {
    width: 14px;
    height: 14px;
  }
  
  .under-3b5c {
    padding: 6px;
  }
  
  .input_solid_0386 {
    width: 20px;
  }
}

/* Mobile-specific fixes (phones) */
@media (max-width: 768px) {
  /* Force single column layout */
  .form_lower_ea16,
  .aside_liquid_b63a,
  .green_7196,
  .accordion_bb9a,
  .primary-pro-a1fa,
  .image_easy_4754,
  .media-under-10cb,
  .button_fbec,
  .south_0b8b,
  .paper-c784,
  .fast-d082,
  .info-85b3 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  /* Ensure tables are scrollable */
  .avatar-4259,
  .disabled_brown_cb0a {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix any fixed-width elements */
  .layout-b4ce,
  .small_fa9c,
  .liquid_d9fd,
  .focus-fast-a7e4,
  .alert_static_8547,
  .nav-paper-04c5,
  .border_0148 {
    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 */
  .solid_f74c,
  .up-1940,
  .text-copper-720f,
  .selected_5c1f,
  .list-ecc8 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Fix text overflow */
  h1, h2, h3, h4, h5, h6,
  p, span, a, li, td, th,
  .old_4643,
  .hot-21bf,
  .red_5f41,
  .logo_6661 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  /* Fix code blocks */
  pre,
  code,
  .video-simple-5bcc,
  .wood_f2b8 {
    overflow-x: auto !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
  }
  
  /* Fix buttons */
  .grid-white-1d78,
  .mask_paper_350c,
  .tooltip-center-063c,
  .media_old_e90f {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Fix flex containers */
  .old-0b09,
  .wide_a8c8,
  .text-gas-be84,
  .cold_e44b,
  .header_inner_09d3,
  .description_dirty_7401 {
    flex-wrap: wrap !important;
    width: 100% !important;
  }
}

/* Extra small screens (≤480px) */
@media (max-width: 480px) {
  /* Even more aggressive fixes */
  * {
    max-width: 100vw !important;
  }
  
  section,
  .solid_f74c,
  .up-1940,
  .selected_5c1f {
    max-width: none !important;
  }
  
  .video_8534 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* Reduce font sizes if needed */
  .old_4643 {
    font-size: 1.5rem !important;
  }
  
  .hot-21bf {
    font-size: 1.375rem !important;
  }
  
  /* Stack everything */
  .label_5fd2,
  .grid_west_6bf7 {
    flex-direction: column !important;
  }
  
  /* Smaller stat values */
  .red_5f41 {
    font-size: 2rem !important;
  }
  
  /* Ensure score circles fit */
  .active_9cbe {
    width: 100px !important;
    height: 100px !important;
    font-size: 2.5rem !important;
  }
  
  .form-orange-1ea1 {
    width: 140px !important;
    height: 140px !important;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .solid_f74c,
  .selected_5c1f {
    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: fedb */
.ghost-box-t0 {
  padding: 0.5rem;
  font-size: 14px;
  line-height: 1.0;
}
