/* UI polish: tap feedback + one shape for header CTA. Loaded last on every page. */
html{-webkit-tap-highlight-color:transparent}
a,button{-webkit-tap-highlight-color:transparent}

html body:is([class],[id]) .top-action{
  border:1px solid #bbc5c6;
  border-radius:30px;
  padding:10px 18px;
  font-size:12px;
  font-weight:500;
  transition:background-color .15s ease,transform .1s ease,border-color .15s ease;
}
html body:is([class],[id]) .btn,
html body:is([class],[id]) .top-action{
  transition:background-color .15s ease,transform .1s ease,border-color .15s ease,filter .15s ease;
}
html body:is([class],[id]) .top-action:active{background:rgba(23,54,79,.08);border-color:#17364f;transform:scale(.97)}
html body:is([class],[id]) .btn:active{filter:brightness(.88);transform:scale(.98)}
@media (prefers-reduced-motion:reduce){
  html body:is([class],[id]) .btn,
  html body:is([class],[id]) .top-action{transition:none}
  html body:is([class],[id]) .top-action:active,
  html body:is([class],[id]) .btn:active{transform:none}
}

/* ---- Tap targets: min-height in rem, so system font scaling grows the target instead of clipping text ---- */
html body:not(#_) .footer-service-links{gap:0 1.5rem}
html body:not(#_) .footer-service-links a,
html body:not(#_) .country-city-action,
html body:not(#_) .channel-link,
html body:not(#_) .text-link{
  display:inline-flex;align-items:center;min-height:2.75rem!important;
  font-size:max(.8125rem,13px);
}
html body:not(#_) .footer-service-links a{padding:0}
html body:not(#_) .access-hint{font-size:max(.75rem,12px)!important;line-height:1.5!important}

@media (max-width:650px){
  html body:not(#_) .main-nav{
    display:flex;flex-wrap:wrap;justify-content:space-between;
    column-gap:.5rem;row-gap:0;width:100%;margin:0;
  }
  html body:not(#_) .main-nav a{
    display:inline-flex;align-items:center;min-height:2.75rem;
    padding:0 .125rem;font-size:max(.8125rem,13px);
  }
  /* /cities: small decorative banner under the hero button adds nothing on phones */
  html body.preview-catalog:not(#_) .catalog-hero-grid .hero-brand-art{display:none}
  /* /cities: tariff rows read as buttons, not a plain list */
  html body.preview-catalog:not(#_) .country-city-card .tariff-links{gap:.5rem;border-top:0}
  html body.preview-catalog:not(#_) .country-city-card .tariff-link{
    min-height:2.875rem;padding:.5rem .75rem;
    border:1px solid #17364f;border-radius:10px;background:#fff;color:#17364f;
    font-size:max(.8125rem,13px);font-weight:600;
    display:flex;align-items:center;
    transition:background-color .15s ease,color .15s ease;
  }
  html body.preview-catalog:not(#_) .country-city-card .tariff-link:active{background:#17364f;color:#fff}
}

/* ---- /cities on phones: countries list is the navigation; no hero button, no jump row ---- */
@media (max-width:650px){
  html body.preview-catalog:not(#_) .catalog-hero .button-row,
  html body.preview-catalog:not(#_) .country-jump-nav{display:none}
  html body.preview-catalog:not(#_) .catalog-hero-grid>div{padding:18px 0 14px}
  html body.preview-catalog:not(#_) .catalog-hero h1{font-size:clamp(1.75rem,8vw,2.25rem);margin-bottom:.5rem}
  html body.preview-catalog:not(#_) .catalog-hero .lead{font-size:max(.875rem,14px);margin-bottom:.75rem}
  html body.preview-catalog:not(#_) .catalog-groups{margin-top:0}
  html body.preview-catalog:not(#_) .country-summary-action{font-size:max(.8125rem,13px)!important;font-weight:600}
  html body.preview-catalog:not(#_) .country-summary-action :is(.thai-summary-closed,.thai-summary-open,.photo-summary-closed,.photo-summary-open){font-size:max(.8125rem,13px)!important}
}

/* ---- Home: older !important rules pinned these links/buttons at 26–43px ---- */
html body.preview-index.city11-photo-preview.city11-acceptance #home-city-track .city-card .text-link{
  min-height:2.75rem!important;font-size:max(.8125rem,13px)!important;
}
html body.preview-index:not(#_) .btn,
html body:not(#_) .back-to-top-link{min-height:2.75rem!important}
