/* Blackmint v1.87 (pro87) — phone theme-picker tap target.
   The header is flex-nowrap and html/body use overflow-x:clip on phones.
   #thb was locked at 30×26, and on 390px screens its right edge sat past the
   viewport, so those pixels were untappable. The v1.69 FX-ripple skip on
   #thw/#thb/#thmn is unchanged; this pass makes the box itself at least
   44×44 and keeps it fully on-screen. Desktop layout is left as-is. */

@media (max-width: 600px) {
  /* Reclaim a little packing so the bigger box still fits inside the clip. */
  header { gap: 4px; }
  header .lgw { margin-left: 4px; }
  html[dir="rtl"] header .lgw { margin-left: 0; margin-right: 4px; }

  #thw {
    position: relative;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 44px;
    min-height: 44px;
    margin-left: 0;
    pointer-events: auto;
  }
  html[dir="rtl"] #thw { margin-right: 0; }

  /* Beat header .lgb.thb { width/min-width: 30px !important } from #theme-ui. */
  header .lgb.thb,
  #thb.lgb.thb {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
    pointer-events: auto;
    position: relative;
    z-index: 2;
    flex: 0 0 44px;
  }

  header .thb svg:not(.tha) {
    width: 18px !important;
    height: 18px !important;
  }
  /* Keep the little dropdown caret visible in the bigger box. */
  .thb::before { right: 6px; bottom: 7px; }

  /* Menu already has z-index 40 via .lgm; keep 44px rows (also in retro.css). */
  .thmn button { min-height: 44px; }
}
