/* v6.4.2: Ivy must-fix — TECHNOLOGIES must sit ≥8px from the theme toggle.
   Short visible label under 440px; full label at 440px+. Accessible name is aria-label.
   Desktop unchanged. */

@media (max-width: 439px) {
  .header .button.small .lbl-long { display: none !important; }
  .header .button.small .lbl-short { display: inline !important; }
}
@media (min-width: 440px) {
  .header .button.small .lbl-long { display: inline !important; }
  .header .button.small .lbl-short { display: none !important; }
}

/* Mid-phone: wordmark must not shrink under the toggle. TECHNOLOGIES stays 12px. */
@media (min-width: 380px) and (max-width: 600px) {
  .header-right {
    flex: 0 1 auto;
    min-width: 0;
  }
  .header .wordmark {
    flex: 0 0 auto;
    min-width: auto;
    overflow: visible;
  }
  .header .button.small {
    white-space: normal;
  }
}
