/* ============================================
   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 (.thumbnail-44e7) is a descendant of
   .badge_49b9 (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.box-complex-c74f {
  max-width: none !important;
}

/* Fix for any potential overflow elements */
/* NOTE: ".disabled_d8c8" 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.list-e067 so it can't cause
   horizontal overflow anyway. */
.photo_eb16,
.down_5976,
.dropdown-501b,
.title-west-f76e,
.wrapper_f80b,
.menu-d09b,
.module_daeb,
.focus_0898,
.slow_dfa4,
.button_liquid_edcb,
.top_1717 {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header mobile optimizations */
@media (max-width: 768px) {
  .list_bright_8499 {
    padding: 8px 0;
  }
  
  .solid_0a40 img {
    height: 28px;
    width: auto;
  }
  
  .huge-0a8e {
    display: none !important;
  }
  
  .first_921a {
    padding: 6px 12px !important;
    font-size: 0.8125rem !important;
    white-space: nowrap;
  }
  
  .first_921a svg {
    width: 14px;
    height: 14px;
  }
  
  .list_c13f {
    padding: 6px;
  }
  
  .basic-60eb {
    width: 20px;
  }
}

/* Mobile-specific fixes (phones) */
@media (max-width: 768px) {
  /* Force single column layout */
  .dropdown-501b,
  .down_5976,
  .title-west-f76e,
  .wrapper_f80b,
  .lite_787b,
  .active-0002,
  .motion-cca6,
  .pagination-fluid-e9e1,
  .input_down_782a,
  .list-soft-fe49,
  .tag-hot-2ee3 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  /* Ensure tables are scrollable */
  .message-warm-2f4d,
  .layout-dark-0ac4 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix any fixed-width elements */
  .tabs-cdf1,
  .info-7671,
  .filter-830a,
  .hard-3809,
  .east-21dd,
  .slider-white-8df2,
  .tertiary_7448 {
    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 */
  .input-6e85,
  .notice_c6a7,
  .header-lite-e373,
  .warm_2bd5,
  .out_d0f5 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Fix text overflow */
  h1, h2, h3, h4, h5, h6,
  p, span, a, li, td, th,
  .accordion_491f,
  .grid_9f91,
  .footer_271d,
  .focused-af8c {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  /* Fix code blocks */
  pre,
  code,
  .slider_blue_fc67,
  .component_9366 {
    overflow-x: auto !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
  }
  
  /* Fix buttons */
  .tooltip_south_9d29,
  .blue_b409,
  .title_441d,
  .green_41ba {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Fix flex containers */
  .title-warm-1ec7,
  .slider-aa18,
  .notice-aa91,
  .hard_e2a8,
  .row_6a0b,
  .dim_8b64 {
    flex-wrap: wrap !important;
    width: 100% !important;
  }
}

/* Extra small screens (≤480px) */
@media (max-width: 480px) {
  /* Even more aggressive fixes */
  * {
    max-width: 100vw !important;
  }
  
  section,
  .input-6e85,
  .notice_c6a7,
  .warm_2bd5 {
    max-width: none !important;
  }
  
  .disabled_d8c8 {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* Reduce font sizes if needed */
  .accordion_491f {
    font-size: 1.5rem !important;
  }
  
  .grid_9f91 {
    font-size: 1.375rem !important;
  }
  
  /* Stack everything */
  .down-b7bc,
  .content_pink_3190 {
    flex-direction: column !important;
  }
  
  /* Smaller stat values */
  .footer_271d {
    font-size: 2rem !important;
  }
  
  /* Ensure score circles fit */
  .shade-977f {
    width: 100px !important;
    height: 100px !important;
    font-size: 2.5rem !important;
  }
  
  .section-tall-e5dc {
    width: 140px !important;
    height: 140px !important;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .input-6e85,
  .warm_2bd5 {
    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: b8d0 */
.promo-block-f4 {
  padding: 0.2rem;
  font-size: 10px;
  line-height: 1.0;
}
