/* ============================================
   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 (.disabled-hovered-e3cb) is a descendant of
   .hero_6729 (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.gradient-1ad0 {
  max-width: none !important;
}

/* Fix for any potential overflow elements */
/* NOTE: ".action-05bf" 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.paper-725b so it can't cause
   horizontal overflow anyway. */
.mask-stone-8e8b,
.header_ce5a,
.table_fresh_8482,
.popup-lite-0587,
.old_5634,
.focus_south_5b54,
.preview_ba4b,
.hover_b172,
.section-f43f,
.widget_e249,
.sort-3a03 {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header mobile optimizations */
@media (max-width: 768px) {
  .title_short_0b37 {
    padding: 8px 0;
  }
  
  .column_lite_a910 img {
    height: 28px;
    width: auto;
  }
  
  .hovered-2fcc {
    display: none !important;
  }
  
  .iron_4451 {
    padding: 6px 12px !important;
    font-size: 0.8125rem !important;
    white-space: nowrap;
  }
  
  .iron_4451 svg {
    width: 14px;
    height: 14px;
  }
  
  .right-9ce4 {
    padding: 6px;
  }
  
  .dropdown-tall-9bf4 {
    width: 20px;
  }
}

/* Mobile-specific fixes (phones) */
@media (max-width: 768px) {
  /* Force single column layout */
  .table_fresh_8482,
  .header_ce5a,
  .popup-lite-0587,
  .old_5634,
  .carousel_dark_110d,
  .dynamic-19af,
  .first-565c,
  .paragraph-cold-6e55,
  .icon_first_de65,
  .wrapper_over_99ea,
  .cool_4561,
  .mask_4457 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  /* Ensure tables are scrollable */
  .dirty-e570,
  .layout_5f74 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix any fixed-width elements */
  .picture_7c56,
  .list_6fc1,
  .narrow_af8d,
  .west_0a97,
  .link_3e26,
  .content_49c9,
  .widget-old-e678 {
    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 */
  .last-d39e,
  .yellow-1c28,
  .media_current_0a89,
  .list_fluid_aae2,
  .wide_67a1 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Fix text overflow */
  h1, h2, h3, h4, h5, h6,
  p, span, a, li, td, th,
  .video_5100,
  .caption_c26d,
  .yellow-16b9,
  .fixed_6d76 {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  /* Fix code blocks */
  pre,
  code,
  .background-7b5a,
  .accent_d1c9 {
    overflow-x: auto !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
  }
  
  /* Fix buttons */
  .fresh-cb2c,
  .paragraph-orange-8fc3,
  .hero-active-70cc,
  .panel_9f4a {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Fix flex containers */
  .gallery_hovered_832c,
  .feature_8d33,
  .progress_stone_f34d,
  .primary_fbd3,
  .dim-e951,
  .up-2c1f {
    flex-wrap: wrap !important;
    width: 100% !important;
  }
}

/* Extra small screens (≤480px) */
@media (max-width: 480px) {
  /* Even more aggressive fixes */
  * {
    max-width: 100vw !important;
  }
  
  section,
  .last-d39e,
  .yellow-1c28,
  .list_fluid_aae2 {
    max-width: none !important;
  }
  
  .action-05bf {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* Reduce font sizes if needed */
  .video_5100 {
    font-size: 1.5rem !important;
  }
  
  .caption_c26d {
    font-size: 1.375rem !important;
  }
  
  /* Stack everything */
  .box_0d31,
  .mask-simple-cdca {
    flex-direction: column !important;
  }
  
  /* Smaller stat values */
  .yellow-16b9 {
    font-size: 2rem !important;
  }
  
  /* Ensure score circles fit */
  .wrapper-next-f005 {
    width: 100px !important;
    height: 100px !important;
    font-size: 2.5rem !important;
  }
  
  .secondary_66f3 {
    width: 140px !important;
    height: 140px !important;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .last-d39e,
  .list_fluid_aae2 {
    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: 7cba */
.ghost-box-u0 {
  padding: 0.5rem;
  font-size: 10px;
  line-height: 1.2;
}
