/* ============================================
   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 (.column_action_cb5a) is a descendant of
   .card_7668 (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.stone_9322 {
  max-width: none !important;
}

/* Fix for any potential overflow elements */
/* NOTE: ".north_003d" 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.lite_eb50 so it can't cause
   horizontal overflow anyway. */
.logo-iron-94b1,
.preview_top_f136,
.carousel-hard-2342,
.row-3fe5,
.top-7ef2,
.container_6421,
.over_e4af,
.button_next_1719,
.red_d901,
.item_a81c,
.photo-north-eaab {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header mobile optimizations */
@media (max-width: 768px) {
  .video-926c {
    padding: 8px 0;
  }
  
  .alert_da0c img {
    height: 28px;
    width: auto;
  }
  
  .yellow_c6b4 {
    display: none !important;
  }
  
  .outline_ebdb {
    padding: 6px 12px !important;
    font-size: 0.8125rem !important;
    white-space: nowrap;
  }
  
  .outline_ebdb svg {
    width: 14px;
    height: 14px;
  }
  
  .column-3d63 {
    padding: 6px;
  }
  
  .component_86ab {
    width: 20px;
  }
}

/* Mobile-specific fixes (phones) */
@media (max-width: 768px) {
  /* Force single column layout */
  .carousel-hard-2342,
  .preview_top_f136,
  .row-3fe5,
  .top-7ef2,
  .thick-abc4,
  .active-glass-d543,
  .outline_prev_549f,
  .advanced-33f5,
  .tabs-left-3604,
  .pink-1c84,
  .menu-5a8c,
  .dropdown_7664 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  /* Ensure tables are scrollable */
  .outline-536c,
  .small_6616 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix any fixed-width elements */
  .large_56de,
  .main-c789,
  .solid-7fe5,
  .active_3a6c,
  .alert_lite_fac1,
  .main-7e1a,
  .form-gas-7ced {
    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 */
  .banner-0912,
  .wrapper_clean_0812,
  .status-1bf2,
  .status-up-dd03,
  .overlay_2193 {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Fix text overflow */
  h1, h2, h3, h4, h5, h6,
  p, span, a, li, td, th,
  .label_east_bc69,
  .content-22b2,
  .primary_smooth_4fcc,
  .texture_fa6b {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  /* Fix code blocks */
  pre,
  code,
  .static-e837,
  .image-d26c {
    overflow-x: auto !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
  }
  
  /* Fix buttons */
  .info-f871,
  .focus_1e63,
  .mini_73c6,
  .slider-thick-b79d {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Fix flex containers */
  .summary_huge_3a67,
  .row-short-a465,
  .detail-hard-a1d4,
  .action_73db,
  .dirty-e2ae,
  .module-6ae5 {
    flex-wrap: wrap !important;
    width: 100% !important;
  }
}

/* Extra small screens (≤480px) */
@media (max-width: 480px) {
  /* Even more aggressive fixes */
  * {
    max-width: 100vw !important;
  }
  
  section,
  .banner-0912,
  .wrapper_clean_0812,
  .status-up-dd03 {
    max-width: none !important;
  }
  
  .north_003d {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* Reduce font sizes if needed */
  .label_east_bc69 {
    font-size: 1.5rem !important;
  }
  
  .content-22b2 {
    font-size: 1.375rem !important;
  }
  
  /* Stack everything */
  .frame_dark_5535,
  .tertiary-fd66 {
    flex-direction: column !important;
  }
  
  /* Smaller stat values */
  .primary_smooth_4fcc {
    font-size: 2rem !important;
  }
  
  /* Ensure score circles fit */
  .slider-ab39 {
    width: 100px !important;
    height: 100px !important;
    font-size: 2.5rem !important;
  }
  
  .form-d971 {
    width: 140px !important;
    height: 140px !important;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .banner-0912,
  .status-up-dd03 {
    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: 6c24 */
.shadow-element-e4 {
  padding: 0.2rem;
  font-size: 12px;
  line-height: 1.2;
}
