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

/* Fix for any potential overflow elements */
/* NOTE: ".hidden_8acc" 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.pro-5fa4 so it can't cause
   horizontal overflow anyway. */
.accordion-paper-0d88,
.focus-cc6f,
.section-503b,
.filter-smooth-8039,
.cold-55a1,
.form-outer-ada0,
.paragraph_copper_f283,
.avatar_current_e0c7,
.info-solid-3a54,
.text-brown-232d,
.bright-0c5e {
  max-width: 100%;
  overflow-x: hidden;
}

/* Header mobile optimizations */
@media (max-width: 768px) {
  .stale-f496 {
    padding: 8px 0;
  }
  
  .title-d028 img {
    height: 28px;
    width: auto;
  }
  
  .dark_3826 {
    display: none !important;
  }
  
  .picture-first-53fc {
    padding: 6px 12px !important;
    font-size: 0.8125rem !important;
    white-space: nowrap;
  }
  
  .picture-first-53fc svg {
    width: 14px;
    height: 14px;
  }
  
  .block-ea1e {
    padding: 6px;
  }
  
  .fresh_9c54 {
    width: 20px;
  }
}

/* Mobile-specific fixes (phones) */
@media (max-width: 768px) {
  /* Force single column layout */
  .section-503b,
  .focus-cc6f,
  .filter-smooth-8039,
  .cold-55a1,
  .card-c426,
  .wrapper-7b60,
  .orange-907f,
  .stone-9302,
  .outer-a1d5,
  .status-wood-f0a5,
  .background-5945,
  .paper_6826 {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  
  /* Ensure tables are scrollable */
  .slow_2246,
  .secondary_left_d5d8 {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Fix any fixed-width elements */
  .paragraph_lower_5d7f,
  .west_83e2,
  .overlay_yellow_ac3d,
  .article_action_fed3,
  .dynamic-477f,
  .chip-center-69d7,
  .info_tiny_eaef {
    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 */
  .cool_54c6,
  .logo_f563,
  .active_white_8844,
  .pagination-46ae,
  .carousel-592f {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
  
  /* Fix text overflow */
  h1, h2, h3, h4, h5, h6,
  p, span, a, li, td, th,
  .basic-f224,
  .detail-blue-1958,
  .in-0ead,
  .dynamic-d0fa {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
  
  /* Fix code blocks */
  pre,
  code,
  .label_brown_eb6d,
  .link-east-369d {
    overflow-x: auto !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
  }
  
  /* Fix buttons */
  .shade_91b2,
  .gradient_d24f,
  .sidebar-narrow-daa6,
  .border-rough-8f1e {
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Fix flex containers */
  .caption_over_d93d,
  .aside-first-05a7,
  .bronze-4d58,
  .chip-d53a,
  .narrow_bbe5,
  .upper_c426 {
    flex-wrap: wrap !important;
    width: 100% !important;
  }
}

/* Extra small screens (≤480px) */
@media (max-width: 480px) {
  /* Even more aggressive fixes */
  * {
    max-width: 100vw !important;
  }
  
  section,
  .cool_54c6,
  .logo_f563,
  .pagination-46ae {
    max-width: none !important;
  }
  
  .hidden_8acc {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  /* Reduce font sizes if needed */
  .basic-f224 {
    font-size: 1.5rem !important;
  }
  
  .detail-blue-1958 {
    font-size: 1.375rem !important;
  }
  
  /* Stack everything */
  .large-cb46,
  .heading_copper_cbdb {
    flex-direction: column !important;
  }
  
  /* Smaller stat values */
  .in-0ead {
    font-size: 2rem !important;
  }
  
  /* Ensure score circles fit */
  .soft_f89d {
    width: 100px !important;
    height: 100px !important;
    font-size: 2.5rem !important;
  }
  
  .widget_wood_d541 {
    width: 140px !important;
    height: 140px !important;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .cool_54c6,
  .pagination-46ae {
    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: 2303 */
.ghost-box-a0 {
  padding: 0.3rem;
  font-size: 14px;
  line-height: 1.3;
}
