/* ══════════════════════════════════════════════════════════════════════
   עמודים ציבוריים בטלפון (מתחת ל-768px) — גל 4, יחידה E.
   תכנית: docs/MOBILE_ADAPTATION_PLAN.md.

   🔑 נטען במפורש בכל תבנית ציבורית (הן אינן יורשות את מעטפת האפליקציה): האתר הציבורי
      (`public/_public_base.html`), כניסה / שכחתי סיסמה / איפוס (`html.m-auth-page`), דף החתימה
      (`body.m-sign`), דף-הנחיתה של המשרד (`body.m-lead`) ודפי השגיאה (`body.m-error`).
      אין כאן אף סלקטור של המעטפת המחוברת (`m-page-scroll`, `.mnav` וכו').
   🔒 כל הכללים בתוך media query של הטלפון - מ-768px ומעלה אין לקובץ שום השפעה. רק גודל, ריווח
      וניגודיות: אין שינוי בתוכן, בסדר המקטעים, בשדות, בוולידציה או בנוסח ההסכמה.
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 767.98px) {

  /* ── האתר הציבורי (ראשי, עמוד-הנחיתה "מוצג", פרטיות, תנאים, נגישות, מחיקת מידע) ── */
  .pub-body .pub-nav-toggle-btn { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .pub-body .pub-cta-btn, .pub-body .pub-login-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .pub-body .pub-footer-col a { min-height: 44px; display: flex; align-items: center; }
  .pub-body .pub-footer-brand .pub-brand, .pub-body .pub-header .pub-brand { min-height: 44px; }
  .pub-body #pub-contact-subject { min-height: 44px; }
  .pub-body .pub-nav-link { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }   /* יעד-מגע 44px לקישורי התפריט (ההמבורגר נפתח מתחת ל-900px, public.css) */

  /* ── כניסה, שכחתי סיסמה, איפוס סיסמה (יורשים את base.html בלי המעטפת) ── */
  html.m-auth-page #main-content .form-control { min-height: 44px; font-size: max(16px, 1rem); }   /* בלי הגדלה אוטומטית במיקוד */
  html.m-auth-page #main-content .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  html.m-auth-page #main-content .input-group > .btn { min-width: 44px; }
  html.m-auth-page #main-content a.small, html.m-auth-page #main-content > div > a.text-muted { min-height: 44px; display: inline-flex; align-items: center; }
  html.m-auth-page #main-content .form-check { min-height: 44px; display: flex; align-items: center; gap: 8px; }
  html.m-auth-page #main-content a[href^="mailto:"] { display: inline-flex; align-items: center; min-height: 44px; }
  html.m-auth-page #main-content .pub-login-divider { color: #5f6e7c; }                 /* "או": 2.97:1 */
  html.m-auth-page #main-content a[href^="mailto:"] { color: #0a58ca; }                 /* 4.24:1 על הרקע האפור */
  html.m-auth-page #main-content .form-check-input { margin-top: 0; flex: 0 0 auto; width: 1.25em; height: 1.25em; }
  html.m-auth-page #main-content .card-body { padding: 20px !important; }    /* מול p-4 */

  /* ── דף החתימה הציבורי ── */
  .m-sign .wrap { padding: 12px; }
  .m-sign .card { padding: 16px; }
  .m-sign .doc-name { overflow-wrap: anywhere; }
  .m-sign .pg-btn { min-height: 44px; min-width: 88px; }
  .m-sign .pager { gap: 8px; }
  .m-sign input[type=text] { min-height: 44px; font-size: max(16px, 1rem); }
  .m-sign .pad-bar { min-height: 44px; flex-wrap: wrap; gap: 4px 12px; }
  .m-sign .link-btn { min-height: 44px; padding: 0 2px; }
  .m-sign .consent { min-height: 44px; align-items: flex-start; }
  .m-sign .consent input { width: 24px; height: 24px; margin-top: 2px; }
  .m-sign .consent label { overflow-wrap: anywhere; }
  .m-sign .dl-btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .m-sign .note a { display: inline-flex; align-items: center; min-height: 44px; }
  .m-sign .pad-ph { color: #6c757d; }                                                 /* "חתמו כאן": 2.07:1 */

  /* ── דף-הנחיתה הציבורי של המשרד (טופס פנייה) ── */
  .m-lead { padding: 12px; }
  .m-lead .card-header-band { padding: 22px 20px 18px; }
  .m-lead .card-body-form { padding: 20px; }
  .m-lead .firm-name, .m-lead .card-header-band h1 { overflow-wrap: anywhere; }
  .m-lead #form-area .row > .col-6 { flex: 0 0 100%; max-width: 100%; }            /* שם פרטי / משפחה - עמודה אחת */
  .m-lead .form-control, .m-lead .phone-wrap select { min-height: 44px; font-size: max(16px, 1rem); }
  .m-lead .btn-submit { min-height: 44px; }

  /* ── דפי שגיאה (403 / 404 / 500 - גם "הקישור אינו זמין" של החתימה) ── */
  .m-error .error-card { margin: 8vh 16px 0 !important; padding: 32px 20px !important; }   /* מול p-5 ו-margin auto */
  .m-error .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .m-error-500 .error-code { color: #b35400; }                                          /* "500" כתום: 2.57:1 */
}
