/* Phone polish: loaded last on every page. Raises text the phone layout had shrunk below reading size,
   enlarges small tap targets, and stops iPhones zooming into form fields. Desktop is unaffected. */

/* iOS zooms into any field under 16px when it is tapped. */
@media (pointer:coarse){
  input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]),select,textarea{font-size:16px!important}
}

/* A heading focused by script after a view change should not show a box around it. */
h1[tabindex="-1"]:focus,h2[tabindex="-1"]:focus{outline:none}

@media (max-width:650px){
  /* Small uppercase labels */
  .eyebrow,span.eyebrow,p.eyebrow,.path-caption,.role-tag,.hero-topic-caption,.credential-pair span,.story-caption span,
  .portrait-block small,.public-breadcrumb button,.public-breadcrumb span,.resource-card>span,.concierge-preview>span,
  .closing-section address>span,.principle-strip b,.review-theme,.library-card .eyebrow,.journey-controls span,
  .hero-motion-bar span,#hero-scene-number,.concierge-preview b,.new-hero .hero-topic-caption{font-size:11px!important}

  /* Fine print and supporting sentences */
  .source-note,.fine-print,.concierge-section small,.profile-identity small,.profile-side-note,.review-foot p,
  .other-practices span,.portal-disclosure,.footer-bottom,.footer-bottom p,.workspace-footer p,.attorney-role,
  .attorney-profile p,.concierge-preview i,.resource-controls label,.photo-attribution,.photo-attribution summary{font-size:12px!important;line-height:1.55}

  /* Buttons and text links */
  .gold-button,.text-link,.journey-controls button,.journey-tabs button,.journey-steps button,.profile-tabs button,
  .other-practices button,.resource-card b,.office-map,.marquee-toggle,.hero-motion-control,.profile-route,
  .booking-progress li,.topbar a,.frenimi-credit{font-size:12px!important}

  /* Footer links: readable and big enough to tap */
  .footer-main>div,.footer-main>div a,.footer-main .text-link{font-size:13px!important}
  .footer-main>div a,.footer-main>div .text-link{display:inline-flex;align-items:center;min-height:36px}
  .topbar a{display:inline-flex;align-items:center;min-height:40px}

  /* Office numbers: one per line instead of four squeezed columns */
  .office-small{display:grid!important;grid-template-columns:1fr;gap:6px}
  .office-small span{font-size:12px!important;line-height:1.4}

  /* Signed-in portal */
  .wf-header .eyebrow,.wf-metrics small,.dash-stat span,.client-cell small,.record-facts dt{font-size:11px!important}
  .wf-tag,.stage-pill,.wf-sidebar-bottom small,.note-main b{font-size:11px!important}
  .workspace-find,.workspace-density,.wf-switch button,.wf-switch label,.wf-metrics span,li>div>small,summary small,
  .wf-muted,.dash-stat small,.dash-client small{font-size:12px!important}
  .wf-metrics strong{white-space:nowrap}
}

@media (max-width:360px){
  .wf-metrics strong{font-size:20px!important}
}
