/* Phone refinements shared by every InnSession page. Load after each page's own stylesheets. */
@media (max-width: 760px) {
  /* Lifts every small type size written as max(Npx, var(--min-text, 0px)) to a readable minimum. */
  :root { --min-text: 12px; }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

  /* iOS Safari zooms the whole page into any field set below 16px. */
  input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=hidden]), select, textarea { font-size: 16px !important; }
  input:not([type=checkbox], [type=radio], [type=range], [type=color], [type=hidden]), select { min-height: 44px !important; }

  /* Comfortable touch targets. */
  button, .button, [role=tab] { min-height: 44px !important; }
  summary { min-height: 44px !important; padding-block: 10px; }
  .close-dialog { min-width: 44px; min-height: 44px; }
  label.check { min-height: 44px; }
  .text-button:not([hidden]), .text-link:not([hidden]) { display: inline-flex; align-items: center; min-height: 44px; border-bottom: 0 !important; text-decoration: underline; text-underline-offset: 4px; }

  /* Guest website and classic staff portal */
  .site-header nav a:not([hidden]) { display: flex; align-items: center; justify-content: center; min-height: 44px; }
  .booking-page .filter { min-height: 44px; padding-inline: 16px; }
  .booking-page .card-footer, .booking-page .workshop-card .card-footer { flex-wrap: wrap; row-gap: 14px; }
  .booking-page .card-footer > div { flex: 1 1 auto; }
  .booking-page .card-footer .button { flex: 1 1 100%; }
  .guest-directory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Checkout and breakfast forms open as a full-screen sheet with a close button that stays in reach. */
  .booking-page dialog { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 60px 18px calc(28px + env(safe-area-inset-bottom)); border: 0; border-radius: 0; }
  .booking-page .close-dialog { position: fixed; z-index: 2; top: max(8px, env(safe-area-inset-top)); right: 8px; width: 44px; height: 44px; border-radius: 50%; background: #f6f9ffeb; }

  /* Owner console */
  .owner-page nav a:not([hidden]) { display: flex; align-items: center; min-height: 44px; }
  .owner-page .card-actions a, .owner-page #details p a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Marketing site, signup and booking widget */
  .platform-page .platform-header nav a:not([hidden]), .platform-page .platform-footer a:not([hidden]), .platform-header > a:not(.wordmark) { display: inline-flex; align-items: center; min-height: 44px; }
  .platform-page .platform-header nav { column-gap: 20px; row-gap: 0; font-size: 13px; }
  .platform-page .platform-header nav a:last-child { border-bottom: 0; padding-bottom: 0; text-decoration: underline; text-underline-offset: 5px; }
  .widget-footer a { display: inline-flex; align-items: center; min-height: 44px; }

  /* Guest website footer */
  .booking-page footer a[target=_blank] { display: inline-flex; align-items: center; min-height: 44px; }
}
