/* Header, menu panel and footer on phones (<= 760px). Loaded on every page after the
   Tailwind output. Wider screens only get the first rule, which hides the phone-only markup. */
.th-hdr-ic,.th-mm-svc,.th-mm-call,.th-mm-new{display:none}

@media (max-width:760px){
  /* header: a call icon and 44px buttons, the bar keeps its height */
  .siteHeader .th-hdr-ic{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:-5px 0;border-radius:12px;color:#0D3659;text-decoration:none}
  .siteHeader .th-hdr-ic:active{background:#F5F7FF}
  .siteHeader .th-hdr-menu{align-items:center;justify-content:center;width:44px;height:44px;margin:-5px -7px -5px 0}

  /* menu panel: full screen, top row and actions stay in place, the list scrolls */
  .mobileMenu.th-mm{left:0;right:0;top:0;bottom:0;padding:0 16px;border-radius:0;overflow-x:hidden;overflow-y:auto}
  .th-mm .th-mm-top{position:sticky;top:0;z-index:2;margin:0 -16px;padding:10px 6px 10px 16px;background:#fff}
  .th-mm .th-mm-x{align-items:center;justify-content:center;width:44px;height:44px;font-size:20px;color:#0D3659}
  .th-mm .th-mm-svc{display:block;padding:16px 0 4px}
  .th-mm-lab{margin:0 0 8px;font-size:12px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#5B6475}
  .th-mm-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .th-mm-tile{display:flex;align-items:center;gap:10px;min-height:60px;padding:8px 10px;border-radius:14px;background:#F5F7FF;color:#0D3659;text-decoration:none}
  .th-mm-tile:active{background:#EBEEFA}
  .th-mm-ic{flex:none;display:flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:10px;background:#fff}
  .th-mm-tx{min-width:0;display:flex;flex-direction:column;gap:1px}
  .th-mm-tx b{font-size:14px;font-weight:700;line-height:1.2;color:#0D3659}
  .th-mm-tx small{font-size:12px;line-height:1.3;color:#5B6475}
  .th-mm nav summary,.th-mm nav > ul > li > a{min-height:52px;padding-top:12px;padding-bottom:12px;font-size:17px}
  .th-mm nav details a{min-height:44px;display:flex;align-items:center}

  /* actions: call + price in one row, log in as a quiet link */
  .th-mm .th-mm-foot{position:sticky;bottom:0;z-index:2;gap:0;margin:auto -16px 0;padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));background:#fff;border-top:1px solid #E6E9F0}
  .th-mm .th-mm-acts{display:flex;gap:8px}
  .th-mm .th-mm-call{display:flex;align-items:center;justify-content:center;flex:none;width:52px;height:52px;border:1px solid #CDD3E0;border-radius:14px;color:#0D3659}
  .th-mm .th-mm-book{flex:1;height:52px;padding:0 16px;border-radius:14px;background:#8F3985;font-size:16px;font-weight:700}
  .th-mm .th-mm-book:hover,.th-mm .th-mm-book:active{background:#6E2B66}
  .th-mm .th-mm-old{display:none}
  .th-mm .th-mm-new{display:inline}
  .th-mm .th-mm-login{min-height:44px;margin-top:2px;padding:10px 0 0;background:none;color:#8F3985;font-size:15px;font-weight:700}
  .th-mm .th-mm-login:hover{background:none;color:#6E2B66}

  /* footer */
  .th-ft .th-ft-search{display:none}
  .th-ft .footerMenuBtn{min-height:52px;font-size:14px;letter-spacing:.08em;cursor:pointer}
  .th-ft .footerMenuBtn + ul li{margin-top:0}
  .th-ft div:has(> .footerMenuBtn){margin-bottom:0;border-bottom:1px solid rgba(255,255,255,.12)}
  .th-ft .footerMenuBtn + ul{margin-bottom:10px}
  .th-ft .footerMenuBtn + ul a{display:flex;align-items:center;min-height:44px}
  .th-ft .th-ft-soc{justify-content:space-between}
  .th-ft .th-ft-soc li{margin-right:0}
  .th-ft .th-ft-soc a{display:flex;align-items:center;justify-content:center;width:44px;height:44px;margin:0;padding:0;border-radius:12px;background:rgba(255,255,255,.08)}
  .th-ft .th-ft-legal ul{flex-wrap:wrap;justify-content:flex-start;gap:0 20px;margin:0;padding:0;list-style:none}
  .th-ft .th-ft-legal a{display:flex;align-items:center;min-height:44px}
  .th-ft form input[type=email]{height:48px;padding-bottom:0}
  .th-ft form button{width:48px;border-radius:12px}
}
