/* Phone fit (iPhone pass, 17 Nov 2026). Layout and sizing only, below the md
   breakpoint unless noted; the desktop look is untouched. Remove the <link>
   to mobile.css in the page head to revert. */
@media (max-width:767px){
  /* hero lockup: mark above the name, so the name sits on one line and centred */
  section.min-h-screen .flex.items-center.justify-center.gap-6.mb-10{flex-direction:column;gap:0}
  section.min-h-screen .flex.items-center.justify-center.gap-6.mb-10>img{width:128px;height:auto;margin-bottom:-20px}
  section.min-h-screen .flex.items-center.justify-center.gap-6.mb-10>.w-px{display:none}
  section.min-h-screen .flex.items-center.justify-center.gap-6.mb-10>span{font-size:22px;line-height:1.2}

  /* breathing room under the hero buttons on short screens */
  section.min-h-screen.pt-16{padding-bottom:56px}

  /* 404 page: the return link as a 44px target */
  a.text-primary.underline{display:inline-block;padding:13px 0}

  /* body copy at 16px for reading on a phone */
  .body-text{font-size:16px}

  /* form fields at 16px so iOS Safari does not zoom in on focus */
  form input,form select,form textarea{font-size:16px!important}

  /* menu button and menu links: 44px touch targets */
  nav.fixed.top-0>div>button.md\:hidden{width:44px;height:44px}
  nav.fixed.top-0>div.md\:hidden>a{display:flex;align-items:center;min-height:44px;padding-top:0;padding-bottom:0}
  nav.fixed.top-0>div.md\:hidden.space-y-2>:not([hidden])~:not([hidden]){margin-top:0}

}
/* footer links: 44px rows on phones and any touch screen */
@media (max-width:767px),(pointer:coarse){
  footer .space-y-2>a.block{display:flex;align-items:center;min-height:44px}
  footer .space-y-2>:not([hidden])~:not([hidden]){margin-top:0}
}
@media (max-width:767px){footer .space-y-2>a.block{font-size:15px}}
/* landscape phones and tablets show the desktop capsule: widen each pill's hit
   area to 44px without changing how it looks */
@media (pointer:coarse) and (min-width:768px){
  nav.fixed.top-0>div>div.hidden>a{position:relative}
  nav.fixed.top-0>div>div.hidden>a::after{content:"";position:absolute;left:0;right:0;top:50%;height:44px;transform:translateY(-50%)}
}
