/* yecomsoft-mobile-qa-20261123
   Drop-in CSS for the yecomsoft-exact theme (main marketing pages + Yecom Success).
   Layout-only: no copy or brand-color redesign.
   How to apply: enqueue this file on all front-end pages, or append the
   contents to the existing inline <style> in the header template
   (the block that already contains @media (max-width:1000px){ [data-desktop-nav]... }).
*/

/* ===== Main marketing header (header[data-header]) ===== */
/* Root cause: the wordmark link and the actions cluster are flex-shrink:0,
   so on 360–414 the hamburger and theme toggle sit off-canvas while
   overflow is clipped (document.scrollWidth does not grow). */

@media (max-width: 760px){
  header[data-header] > div{
    padding: 0 16px !important;
    gap: 10px !important;
  }
  /* Allow the logo to shrink instead of pushing actions off-screen. */
  header[data-header] > div > a{
    flex-shrink: 1 !important;
    min-width: 0 !important;
  }
  header[data-header] [data-logo-light],
  header[data-header] [data-logo-dark]{
    max-width: 132px !important;
    height: 24px !important;
    width: auto !important;
  }
  header[data-header] > div > div{
    gap: 6px !important;
    flex-shrink: 0 !important;
  }
  [data-menu-btn]{
    display: inline-flex !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
  [data-lang-btn]{
    box-sizing: border-box !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 8px !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  /* Theme toggle is secondary chrome; hiding it below 480px recovers the
     last 44px so the hamburger stays fully visible at 360. */
}

@media (max-width: 480px){
  header[data-header] [data-theme-btn]{
    display: none !important;
  }
  header[data-header] [data-logo-light],
  header[data-header] [data-logo-dark]{
    max-width: 120px !important;
  }
  header[data-header] > div{
    padding: 0 12px !important;
  }
}

/* Tap targets and iOS zoom on forms (main site) */
@media (max-width: 760px){
  .ys-co-cta-primary,
  .ys-co-cta-secondary{
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
  }
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="search"],
  input[type="number"],
  select,
  textarea{
    font-size: 16px !important;
  }
}

/* Language inactive state is slightly under 4.5:1 (--text-2 on badge bg).
   Nudge the default (non-current) label darker. Do not change accent. */
[data-lang-btn]{
  color: var(--text) !important;
}

/* ===== Yecom Success (header.site) — separate template ===== */
/* Logo is width=196 plus language, theme, a long header CTA and the menu.
   The CTA is already duplicated inside #mobileMenu. */

@media (max-width: 800px){
  header.site nav.desk,
  header.site [data-header-cta]{
    display: none !important;
  }
  header.site .menu-btn{
    display: inline-flex !important;
    flex: 0 0 auto !important;
    box-sizing: border-box !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    align-items: center !important;
    justify-content: center !important;
  }
  header.site .logo{
    min-width: 0 !important;
    flex: 1 1 auto !important;
  }
  header.site .logo img{
    max-width: 140px !important;
    width: auto !important;
    height: 24px !important;
  }
  header.site .head-in{
    gap: 8px !important;
    padding-inline: 16px !important;
  }
  header.site .head-actions{
    flex-shrink: 0 !important;
    gap: 6px !important;
  }
  header.site .lang span,
  header.site .lang a{
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 44px !important;
    min-height: 44px !important;
    font-size: 13px !important;
    box-sizing: border-box !important;
  }
  header.site #themeBtn,
  header.site .icon-btn{
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
}

@media (max-width: 480px){
  header.site #themeBtn,
  header.site .icon-btn#themeBtn{
    display: none !important;
  }
  header.site .logo img{
    max-width: 120px !important;
  }
}

/* Success FA language chips are <span>, not links — keep them tappable if JS uses them.
   Confirm #menuBtn toggles #mobileMenu (display / aria-expanded). If the button
   is visible but the drawer never opens, the Success header script is not binding. */
