/* ============================================================
   WE DRIVER — phone layer (2026-11-01)
   Loaded after style.css on every page. All rules sit inside a
   max-width query, so desktop rendering is unchanged.
   ============================================================ */
@media (max-width: 760px) {
  html, body { overflow-x: clip; }
  body { -webkit-tap-highlight-color: rgba(10,45,68,0.10); }

  /* header: thumb-sized controls */
  .nav-toggle { min-width: 44px; min-height: 44px; }
  .nav-link-cta, .nav-sign-in { min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
  .nav-right .nav-link-cta { font-size: 0.68rem !important; letter-spacing: 0.08em; padding: 0 12px; }
  /* the overhanging logo square shrinks into the bar once the page scrolls, so it never covers text */
  .nav.scrolled-strong .logo-img { width: 52px; height: 52px; margin-top: 0; border-radius: 12px; transition: width .2s, height .2s, margin .2s; }
  .nav-drawer a { min-height: 48px; display: flex; align-items: center; }

  /* EV Hub tabs: one swipeable row */
  .evh-tabs-inner { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .evh-tabs-inner::-webkit-scrollbar { display: none; }
  .evh-tab { flex: none; min-height: 48px; display: inline-flex; align-items: center; font-size: 0.7rem; }

  /* no zoom-on-focus in iOS Safari: form fields at 16px */
  input:not([type=checkbox]):not([type=radio]):not([type=range]), select, textarea,
  .field input, .field select, .field textarea, .cmp-control select { font-size: 16px !important; }
  .field-select-wrap select, .cmp-control select, .field input, .field select { min-height: 46px; }

  /* readable small print (≥ 11px) */
  .section-label, .eyebrow, .cmp-control span, .field label, .cmp-variant, .pw-break span, .pw-break strong,
  .pw-plan, .pw-total-label, .pw-window-rate, .pw-delta, .pw-req, .chg-area, .oj-spec-k, .oj-step-time,
  .ps-label, .ps-hint, .ps-state, .ticker-item, .gear-num, .gear-spec, .cmp-disclaimer, .pw-sum-lead,
  .em-pill, .em-route .t, .em-route .n, .em-table th, table th, .legal-bar, .legal-bar-links a { font-size: 0.72rem !important; letter-spacing: 0.06em; }
  .em-route .s, .cmp-cta, .pw-apply, .chg-nav, .pw-phone, .pw-pick { font-size: 0.8rem !important; }
  .proc-title, .chg-tag, .gear-shop-desc, .bench-name, .t-author, .t-loc, .oj-eyebrow-txt, .em-filter button,
  .panel-label, .panel-cta, .card-label, .card-cta, .oj-stat-label, .oj-card-sub, .oj-price-from, .oj-price-da, .oj-card-cta,
  .eco-band-inner span, .eco-pill, .po-title, .pw-req-cost, .oj-card-badge, .oj-fin-tag, .evh-cta-band .btn, .legal-bar-inner p { font-size: 0.72rem !important; }
  .evh-sub, .em-lead, .gear-body { font-size: 0.92rem; }

  /* calls to action: real buttons on a phone */
  .cmp-cta, .pw-apply, .pw-phone, .pw-pick, .chg-nav, .panel-cta, .card-cta, .oj-card-cta, .doc-back,
  .eco-pill, .gear-shop, .em-filter button {
    min-height: 44px; display: inline-flex; align-items: center; justify-content: center;
  }
  .panel-cta, .card-cta, .oj-card-cta { padding: 0.6rem 0; }
  .btn, .btn-primary-dark, .form-nav .btn { min-height: 48px; }
  .legal-bar-links a { min-height: 40px; display: inline-flex; align-items: center; }
  .t-dot { position: relative; }
  .t-dot::after { content: ""; position: absolute; inset: -14px; }

  /* Emergency Mobility Module page */
  .em-section { padding: 3rem 0; }
  .em-out { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .em-out b { font-size: 1.7rem; }
  .em-routes { grid-template-columns: minmax(0, 1fr); }
  .em-route { min-height: 56px; }
  .em-item { padding: 1.2rem 1.1rem; }
  .em-tiers { grid-template-columns: minmax(0, 1fr); }
  .em-filter { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .em-filter::-webkit-scrollbar { display: none; }
  .em-filter button { flex: none; }
  .em-table td, .em-table th { padding: 0.75rem 0.8rem; }
  .pw-input-grid { grid-template-columns: minmax(0, 1fr); }
  .pw-inputs, .pw-summary { padding: 1.4rem 1.2rem; }

  /* map controls on the charging map */
  .leaflet-control-zoom a { width: 40px !important; height: 40px !important; line-height: 40px !important; }
}
@media (max-width: 380px) {
  .em-out { grid-template-columns: minmax(0, 1fr); }
}
