/* The Trekkers Club - Homepage: mobile-only layer.
   Every rule sits inside max-width:767px, so screens above 768px are untouched. */
@media (max-width:767px){
/* shared */
  html{-webkit-text-size-adjust:100%;text-size-adjust:100%;scroll-padding-top:76px}
  body{-webkit-tap-highlight-color:rgba(229,193,88,.18)}
  img,video{max-width:100%}
  h1,h2,h3{overflow-wrap:break-word;text-wrap:balance}
  p{text-wrap:pretty}
  select,input:not([type=checkbox]):not([type=radio]),textarea{font-size:16px}
  button{min-height:44px}
  select,input:not([type=checkbox]):not([type=radio]),textarea{min-height:46px}
  button.w-8.h-8,button.w-10.h-10{width:44px!important;height:44px!important;min-width:44px}
  footer a:not([data-path=home]){display:inline-block;padding:12px 0}
  footer a[data-path=home]{display:inline-block;padding:8px 0}
  a[class*="hover:underline"]{display:inline-block;padding:12px 0}

/* page */
  /* side gutters: 64px -> 20px */
  .px-margin-desktop{padding-left:20px!important;padding-right:20px!important}
  /* header + logo */
  header.fixed>div:first-of-type{height:64px!important;padding-left:16px!important;padding-right:16px!important;gap:8px!important}
  header.fixed>div:first-of-type>div:first-child{gap:0!important;min-width:0;flex:1 1 auto}
  header.fixed a[data-path=home]{margin-right:0!important;padding:0!important;min-height:44px;min-width:0}
  header.fixed a[data-path=home] img{height:42px!important;max-height:42px!important;width:auto!important;max-width:100%}
  header.fixed button,header.fixed>div:first-of-type>div:last-child a:not(.hidden){min-height:44px}
  #ttc-menu-btn{min-width:44px;min-height:44px;display:inline-flex;align-items:center;justify-content:center}
  /* readable micro text */
  .text-label-sm{font-size:11.5px!important;line-height:1.45!important}
  /* floating chat: compact round button, never covers copy */
  body>div.fixed.bottom-6.right-6{bottom:16px!important;right:16px!important}
  body>div.fixed.bottom-6.right-6>a{width:54px;height:54px;padding:0!important;justify-content:center;gap:0!important}
  body>div.fixed.bottom-6.right-6>a>span:last-child{display:none}
  /* section header chip */
  #featured-expeditions .rounded-full.px-3{white-space:normal;line-height:1.4}
  /* featured Kedarkantha card */
  #featured-expeditions [class*="min-h-[460px]"]{min-height:520px!important}
  #featured-expeditions [class*="min-h-[460px]"]>.absolute.top-5{top:14px!important;left:14px!important;right:14px!important;gap:8px;align-items:flex-start;flex-wrap:wrap;justify-content:flex-start}
  #featured-expeditions [class*="min-h-[460px]"]>.absolute.top-5>div{white-space:nowrap}
  #featured-expeditions [class*="-mx-6"]{padding:18px 20px 20px!important;margin-left:-20px!important;margin-right:-20px!important;margin-bottom:-20px!important;gap:16px!important}
  #featured-expeditions [class*="min-h-[460px]"]>.relative.z-10{padding:20px!important}
  #featured-expeditions [class*="-mx-6"]>div.flex.items-center.gap-3{width:100%;gap:10px}
  #featured-expeditions [class*="-mx-6"]>div.flex.items-center.gap-3>button{flex:1 1 0;min-height:50px;padding-left:12px;padding-right:12px;font-size:12.5px}
  #featured-expeditions [class*="-mx-6"]>div.flex.items-center.gap-3>button:first-child{flex:1.6 1 0}
  /* Kuari + KGL spotlight cards */
  #featured-expeditions [class*="min-h-[220px]"]{padding:20px!important;min-height:250px!important}
  #featured-expeditions [class*="min-h-[220px]"] .flex.items-center.justify-between:first-child{flex-wrap:wrap;gap:6px 10px;justify-content:flex-start}
  #featured-expeditions [class*="min-h-[220px]"] .flex.items-center.justify-between.pt-2{flex-direction:column;align-items:stretch;gap:12px;padding-top:6px}
  #featured-expeditions [class*="min-h-[220px]"] .flex.items-center.justify-between.pt-2>div:last-child{display:flex;gap:10px}
  #featured-expeditions [class*="min-h-[220px]"] .flex.items-center.justify-between.pt-2 button,
  #featured-expeditions [class*="min-h-[220px]"] .flex.items-center.justify-between.pt-2 a{flex:1 1 0;min-height:46px;display:inline-flex;align-items:center;justify-content:center;text-align:center;font-size:12px!important}
  #featured-expeditions [class*="min-h-[220px]"] .flex.items-center.justify-between.pt-2>button{width:100%}
  /* extended trek cards */
  #featured-expeditions .grid.grid-cols-1[class~="sm:grid-cols-2"]{gap:16px}
  #featured-expeditions .grid.grid-cols-1[class~="sm:grid-cols-2"] button{min-height:44px;padding:0 4px}
  /* recommender */
  #recommender .rounded-2xl{padding:20px!important}
  #finder-result{align-items:stretch!important;gap:18px!important}
  #finder-result>div:first-child{gap:14px}
  #finder-result>div:first-child>div:last-child{min-width:0}
  #finder-result button,#finder-result a{min-height:48px}
  /* generic tap targets for pill/chip filters + tabs */
  main button[class*="rounded-full"]{min-height:42px;padding-left:16px;padding-right:16px}
  /* newsletter + footer inputs */
  footer input,section input[type=email]{min-height:48px}
  div.flex-wrap.justify-center.gap-4.mb-10>a,div.flex-wrap.justify-center.gap-4.mb-10>button{width:100%;max-width:340px;justify-content:center;min-height:52px}
  #finder-result>div:first-child{flex-direction:column;align-items:flex-start}
  #featured-expeditions [class*="min-h-[220px]"] .flex.items-center.justify-between:first-child{row-gap:10px}
}
