/* Mobile polish (17 Nov 2026). Loaded last; phone-width tidy-ups only, plus the chevron icon used everywhere. */
.jd-chev{display:inline-block;width:.9em;height:.9em;vertical-align:-.12em;margin-left:.25em;flex:0 0 auto;transition:transform .15s}
details[open]>summary .jd-chev{transform:rotate(180deg)}

@media (max-width:640px){
  /* small page labels: no awkward breaks */
  .pa-eyebrow{font-size:11px;letter-spacing:.06em;line-height:1.35;max-width:none;white-space:nowrap;overflow:visible}
  /* inputs: long hints end with … instead of being chopped */
  input[type=search],input[type=text],#tq{text-overflow:ellipsis}

  /* Find a pro: popular services as one swipeable row of pills */
  .pa-popular{flex-wrap:nowrap!important;overflow-x:auto;gap:6px!important;margin-right:-16px;padding:2px 16px 4px 0;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}
  .pa-popular::-webkit-scrollbar{display:none}
  .pa-popular>span,.pa-popular>small{flex:0 0 auto}
  .pa-popular button{flex:0 0 auto;white-space:nowrap;min-height:36px;padding:7px 13px!important;border:1px solid #D6DEE6!important;border-radius:999px!important;background:#fff!important;scroll-snap-align:start}

  /* Find a pro result cards: tighter, actions aligned */
  article.pa-card{padding:14px!important}
  article.pa-card .pa-card-description{margin-top:2px;margin-bottom:2px}
  article.pa-card .pa-card-facts{margin-top:0}
  .pa-card-actions{flex-wrap:wrap!important;gap:8px!important;align-items:center}
  .pa-card-actions .btn.teal{display:inline-flex!important;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 16px!important;line-height:1.2;white-space:nowrap}
  .pa-card-actions .pa-phone{display:inline-flex;align-items:center;min-height:44px;white-space:nowrap}
  .pa-card-actions .pa-copy-phone{min-width:44px;min-height:44px}
  .pa-card-actions .pa-website{flex:1 1 100%;min-height:32px;display:flex;align-items:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .pa-card .jdx-acts{display:flex!important;width:100%;gap:8px}
  .pa-card .jdx-acts a,.pa-card .jdx-acts button{flex:1 1 0;justify-content:center;text-align:center;min-height:40px;display:inline-flex;align-items:center}

  /* On now: date chips swipe instead of squeezing */
  .jdn-quick-times{overflow-x:auto;gap:6px!important;scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .jdn-quick-times::-webkit-scrollbar{display:none}
  .jdn-quick-times>*{flex:0 0 auto!important;white-space:nowrap;padding-left:14px!important;padding-right:14px!important;min-height:40px}

  /* Price board: tidy two-column action grid */
  .pf-hero-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important;align-items:stretch}
  .pf-hero-actions>*{width:100%!important;margin:0!important;min-height:44px;display:inline-flex!important;align-items:center;justify-content:center;text-align:center;line-height:1.25}
  .pf-hero-actions .pf-add-price{grid-column:1/-1;order:-1}
  .pf-hero-actions .jdai-trigger{order:1}
  .pf-hero-actions .pf-guide-jump{order:2}
  .pf-hero-actions .jdls-finder-tools{order:3;grid-column:1/-1;display:flex!important}
  .pf-hero-actions .jdls-finder-tools>button{width:100%;min-height:44px;justify-content:center}
  .pf-hero-actions .pf-home-link{order:4;grid-column:1/-1;min-height:36px}
  .pf-hero-actions>button,.pf-hero-actions>a{font-size:14px;padding-left:10px!important;padding-right:10px!important}
  /* board tabs (Service prices / Petrol / Products) swipe */
  .jdf-board-tools{flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch;gap:8px!important;padding-bottom:4px}
  .jdf-board-tools::-webkit-scrollbar{display:none}
  .jdf-board-tools>*{flex:0 0 auto!important;white-space:nowrap}
  /* price card source link never breaks mid-word */
  .pb-source-link{white-space:nowrap!important;word-break:keep-all!important;overflow-wrap:normal!important;display:inline-flex;align-items:center;gap:4px;min-height:36px}
  td:has(>.pb-source-link){flex-wrap:wrap!important;align-items:center!important;gap:8px 12px!important}
  td:has(>.pb-source-link)>*{flex:0 0 auto!important;white-space:nowrap;word-break:keep-all;max-width:none!important}

  /* comfortable space above the bottom bar */
  main{scroll-padding-bottom:96px}
}
