/* 17 Nov 2026 (Claude): phone fixes for provider, practice and staff pages (loaded on every page by functions/_middleware.js).
   Bigger tap targets, no iPhone zoom on form fields, and a tidier provider dashboard. Phones only. */
@media (max-width:760px){
  /* iPhones zoom into any field with text under 16px */
  html body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]),html body select,html body textarea{font-size:max(16px,1em)}
  /* the location button's caption spilled outside the search box; the icon and its label are enough on a phone */
  html body #omniQ{font-size:16px!important}
  .locbtn .hg-locate-caption{display:none!important}
  .locbtn{min-width:44px}
  /* links that act as buttons: at least 44px tall to tap */
  .dashboard-overview a,.dashboard-guide a,main section>a:not([class]),main>a:not([class]),main nav a,.staff-nav a,main>nav a{display:inline-flex;align-items:center;min-height:44px}
  main nav{display:flex;flex-wrap:wrap;gap:4px 14px}
  details>summary{min-height:44px;display:flex;align-items:center;gap:8px;cursor:pointer}
  details>summary::-webkit-details-marker{margin-right:4px}
  /* provider dashboard: less empty space above, and today's tools before the jobs card */
  .pg-pro .pagehead{padding:8px 0 4px!important;margin-bottom:6px!important}
  #view-spec>.wrap{display:flex;flex-direction:column}
  #view-spec #pgDash{display:contents}
  #view-spec #providerCareers{order:9;margin-top:16px}
  #view-spec #pgDash .pg-actions{margin-bottom:14px}
  /* provider and staff screens: the patient search header doesn't follow you down the page */
  body:has(#view-spec:not([hidden])) header.top,body:has(#view-admin:not([hidden])) header.top{position:static}
  #pgDash .pg-actions a,#pgDash .pg-actions button{min-height:44px}
  /* wide tables scroll inside their card instead of stretching the page */
  main table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}

/* 17 Nov 2026 (Claude), with /iphone-polish.js: forms on iPhone */
@media (max-width:760px){
  /* anything the browser scrolls to (the next field, a button, a message) stops above the tab bar */
  html{scroll-padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
  html.sb-typing{scroll-padding-bottom:16px}
  /* the tab bar steps aside while the keyboard is up */
  html.sb-typing .sb-mobile-nav{transform:translateY(130%);opacity:0;pointer-events:none}
  .sb-mobile-nav{transition:transform .2s ease,opacity .2s ease}
  /* room to scroll the last message clear of the tab bar */
  form{scroll-margin-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
  /* password: an eye inside the field instead of a big button underneath */
  .sb-pw{position:relative;display:block}
  .sb-pw>input{width:100%;padding-right:56px!important;box-sizing:border-box}
  .sb-pw>.password-toggle,.sb-pw>button{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:48px;height:48px;min-height:0!important;margin:0!important;padding:0!important;border:0!important;background:none!important;box-shadow:none!important;font-size:0!important;color:var(--muted,#56657E);border-radius:12px;cursor:pointer}
  .sb-pw>.password-toggle::before,.sb-pw>button::before{content:"";display:block;width:24px;height:24px;margin:auto;background:currentColor;-webkit-mask:var(--sb-eye) center/contain no-repeat;mask:var(--sb-eye) center/contain no-repeat;--sb-eye:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.6-7 10-7 10 7 10 7-3.6 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E")}
  .sb-pw:has(>input[type=text])>button::before{--sb-eye:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18'/%3E%3Cpath d='M10.6 5.1A10.4 10.4 0 0 1 12 5c6.4 0 10 7 10 7a17.6 17.6 0 0 1-3.2 4.1M6.6 6.6C3.9 8.3 2 12 2 12s3.6 7 10 7a9.8 9.8 0 0 0 5.4-1.6'/%3E%3Cpath d='M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E")}
  .sb-pw>button:focus-visible{outline:2px solid var(--brand,#1E4FD8);outline-offset:-2px}
  /* form messages: easy to see, never hidden behind the bar */
  form [role=alert],form [role=status]:not(:empty),form .error,form .form-error{scroll-margin:120px 0 calc(110px + env(safe-area-inset-bottom,0px))}
}

/* 17 Nov 2026 (Claude): "Bookable online" hiding every result now says so, with one tap to show them (find-a.js) */
.sb-bookable-empty p{margin:0 0 10px;color:var(--ink,#0E1B33);font-size:15px;line-height:1.45}
.sb-bookable-empty b{font-weight:700}
.sb-bookable-off{min-height:44px;padding:0 18px;border-radius:999px;border:0;background:var(--brand,#1E4FD8);color:#fff;font:700 15px/1 inherit;cursor:pointer}

/* 17 Nov 2026 (Claude), with /overseas.js: visitors browsing from outside Australia */
.sb-auonly{font-size:.8em;font-weight:600;opacity:.8}
.sb-intl-time{display:grid;gap:4px;padding:10px 12px;border-radius:12px;background:var(--sunk,#F2F5FB);font-size:14px;line-height:1.4}
.sb-intl-time p{margin:0;color:var(--ink,#0E1B33)}
.sb-intl-time a{font-weight:700;color:var(--brand,#1E4FD8)}
.sb-intl-note{display:flex;gap:12px;align-items:flex-start;margin:0 0 12px;padding:12px 14px;border:1px solid var(--line,#E2E8F2);border-radius:14px;background:var(--surface,#fff);font-size:14.5px;line-height:1.45}
.sb-intl-note p{margin:0;flex:1;color:var(--ink,#0E1B33)}
.sb-intl-note a{font-weight:700;color:var(--brand,#1E4FD8);white-space:nowrap}
.sb-intl-note button{flex:none;width:36px;height:36px;border:0;border-radius:10px;background:transparent;color:var(--muted,#56657E);font-size:22px;line-height:1;cursor:pointer}
