/* Services: large touch targets, distinct categories, consistent contrast.
   Category navigation uses an arrow as well as colour. */
.services-screen{--service-muted:#aebaca;padding-bottom:8px}
html[data-theme="light"] .services-screen{--service-muted:#566272}
.services-screen>.h1{margin-bottom:7px;font-size:clamp(29px,5vw,36px);line-height:1.35}
.services-screen>.sub{margin:0 0 22px;color:var(--service-muted);font-size:14px;line-height:1.8}
.services-screen [data-s="trainer"],.services-screen [data-service="trainer"]{--service-color:#ffb266;--service-tint:#382b24}
.services-screen [data-s="storage"],.services-screen [data-service="storage"]{--service-color:#83baff;--service-tint:#1c304b}
.services-screen [data-s="workshop"],.services-screen [data-service="workshop"]{--service-color:#72d6c1;--service-tint:#193b39}
.services-screen [data-s="recovery"],.services-screen [data-service="recovery"]{--service-color:#ff9ba9;--service-tint:#3e2835}
html[data-theme="light"] .services-screen [data-s="trainer"],html[data-theme="light"] .services-screen [data-service="trainer"]{--service-color:#a5490b;--service-tint:#fff0e2}
html[data-theme="light"] .services-screen [data-s="storage"],html[data-theme="light"] .services-screen [data-service="storage"]{--service-color:#225eac;--service-tint:#eaf2ff}
html[data-theme="light"] .services-screen [data-s="workshop"],html[data-theme="light"] .services-screen [data-service="workshop"]{--service-color:#147361;--service-tint:#e3f6f0}
html[data-theme="light"] .services-screen [data-s="recovery"],html[data-theme="light"] .services-screen [data-service="recovery"]{--service-color:#af2d48;--service-tint:#ffedf0}
.services-screen #svcTabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 20px;overflow:visible}
.services-screen #svcTabs .service-option{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:13px;min-width:0;min-height:148px;padding:20px 10px 18px;border:1px solid color-mix(in srgb,var(--service-color) 22%,var(--border));border-radius:21px;background:linear-gradient(145deg,color-mix(in srgb,var(--service-tint) 52%,var(--surface)),var(--surface));color:var(--text);font-family:inherit;text-align:center;white-space:normal;box-shadow:0 4px 15px rgba(0,0,0,.025);transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease}
.services-screen .service-option-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:16px;background:var(--service-tint);color:var(--service-color)}
.services-screen .service-option-icon svg{width:32px;height:32px}
.services-screen .service-option-label{font-size:16px;font-weight:800;line-height:1.55}
.services-screen .service-option-selected{position:absolute;top:12px;inset-inline-end:12px;width:20px;height:20px;display:grid;place-items:center;border-radius:50%;background:var(--service-color);color:var(--surface);opacity:0}
.services-screen .service-option-selected svg{width:14px;height:14px}
.services-screen #svcTabs .service-option.on{border-color:var(--service-color);background:linear-gradient(145deg,var(--service-tint),var(--surface));color:var(--text);box-shadow:inset 0 0 0 1px var(--service-color),0 5px 18px rgba(0,0,0,.04)}
.services-screen .service-option.on .service-option-selected{opacity:1}
.services-screen #svcTabs .service-option:active{transform:scale(.98)}
.services-screen .service-contact{padding:22px;border:1px solid var(--border);border-radius:23px;background:var(--surface);box-shadow:0 7px 24px rgba(0,0,0,.035)}
.services-screen .service-contact-copy{padding-inline-start:14px;border-inline-start:3px solid var(--service-color)}
.services-screen .service-contact h2{margin:0 0 7px;color:var(--text);font-size:20px;line-height:1.5}
.services-screen .service-contact p{margin:0;color:var(--service-muted);font-size:13px;line-height:1.85}
.services-screen .service-contact-footer{margin-top:20px;padding-top:17px;border-top:1px solid var(--border)}
.services-screen .service-contact h3{margin:0 0 12px;color:var(--text);font-size:14px;font-weight:750;line-height:1.5}
.services-screen .service-socials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.services-screen .service-social{display:flex;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:56px;padding:10px 9px;border:1px solid var(--border);border-radius:14px;background:var(--surface-2);color:var(--text);font-size:13px;font-weight:750;line-height:1.4;text-decoration:none;transition:background .18s ease,transform .18s ease}
.services-screen .service-social-icon{display:grid;place-items:center;flex:0 0 25px;width:25px;height:25px}
.services-screen .service-social-icon svg{width:24px;height:24px}
.services-screen .service-social-instagram .service-social-icon{color:#fa94c7}
html[data-theme="light"] .services-screen .service-social-instagram .service-social-icon{color:#b52c78}
.services-screen .service-social-arrow{flex:0 0 12px;width:12px;height:12px;color:var(--service-muted)}
.services-screen .service-social:active{transform:scale(.98)}
.services-screen #svcTabs .service-option:focus-visible,.services-screen .service-social:focus-visible{outline:3px solid var(--text);outline-offset:4px}
@media(hover:hover){
  .services-screen #svcTabs .service-option:hover{border-color:var(--service-color);transform:translateY(-2px)}
  .services-screen .service-social:hover{background:var(--surface-3)}
}
@media(min-width:768px){
  .services-screen{max-width:780px;margin-inline:auto}
  .services-screen #svcTabs{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:24px}
  .services-screen #svcTabs .service-option{min-height:165px}
  .services-screen .service-contact{padding:28px}
  .services-screen .service-socials{max-width:480px}
  .services-screen .service-contact p{font-size:14px}
  .services-screen .service-social{font-size:14px;min-height:60px}
}
@media(max-width:360px){
  .services-screen #svcTabs{gap:10px}
  .services-screen #svcTabs .service-option{min-height:140px}
  .services-screen .service-option-label{font-size:15px}
  .services-screen .service-contact{padding:18px}
  .services-screen .service-social{gap:6px;font-size:12px}
  .services-screen .service-social-arrow{display:none}
}
@media(prefers-reduced-motion:reduce){
  .services-screen #svcTabs .service-option,.services-screen .service-social{transition:none}
  .services-screen #svcTabs .service-option:hover,.services-screen #svcTabs .service-option:active,.services-screen .service-social:active{transform:none}
}

/* A category opens a real ad feed, not a request for a 2Wheels-owned service. */
.services-screen .service-option-selected{opacity:1;background:transparent;color:var(--service-color)}
html[dir="ltr"] .services-screen .service-option-selected svg{transform:rotate(180deg)}
.services-screen .service-advertise{--service-color:var(--brand-text);margin-top:20px}
.services-screen .service-advertise h2{font-size:18px}
.services-screen .service-advertise .service-contact-copy{border:0;padding:0}
.services-screen .service-back{display:flex;align-items:center;gap:8px;min-height:44px;margin:0 0 14px;padding:0 3px;border:0;background:transparent;color:var(--service-muted);font-family:inherit;font-size:13px;font-weight:700;line-height:1.5}
.services-screen .service-back>span{font-size:25px;line-height:1}
.services-screen .service-ads-heading{display:flex;align-items:center;gap:13px;margin-bottom:13px}
.services-screen .service-heading-icon{display:grid;place-items:center;flex:0 0 48px;width:48px;height:48px;border-radius:15px;color:var(--service-color);background:var(--service-tint)}
.services-screen .service-heading-icon svg{width:29px;height:29px}
.services-screen .service-ads-heading h1{margin:0;color:var(--text);font-size:clamp(24px,5vw,32px);line-height:1.45}
.services-screen .service-ads-heading p{margin:3px 0 0;color:var(--service-muted);font-size:12px;line-height:1.6}
.services-screen .service-ad-count{display:grid;place-items:center;min-width:32px;height:32px;margin-inline-start:auto;border:1px solid var(--border);border-radius:10px;color:var(--text);background:var(--surface);font-size:13px;font-weight:750}
.services-screen .service-platform-note{margin:0 0 20px;color:var(--service-muted);font-size:12px;line-height:1.85}
.services-screen .service-ads-list{display:grid;gap:14px;margin-bottom:20px}
.services-screen .service-ad-card{display:grid;grid-template-columns:minmax(112px,36%) minmax(0,1fr);padding:0;overflow:hidden;border:1px solid var(--border);border-radius:19px;background:var(--surface);color:var(--text);text-align:start;font-family:inherit;box-shadow:0 6px 22px rgba(0,0,0,.04)}
.services-screen .service-ad-cover{position:relative;display:grid;place-items:center;min-height:190px;background:var(--surface-2)}
.services-screen .service-ad-cover>img{position:absolute;z-index:1;inset:0;width:100%;height:100%;object-fit:cover}
.services-screen .service-ad-cover-fallback{color:var(--service-muted)}
.services-screen .service-ad-cover-fallback svg{width:44px;height:44px}
.services-screen .service-ad-card-body{display:flex;flex-direction:column;min-width:0;padding:15px 14px;gap:7px}
.services-screen .service-ad-tag{display:block;color:var(--brand-text);font-size:10px;font-weight:750;line-height:1.5}
.services-screen .service-ad-title{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--text);font-size:16px;font-weight:800;line-height:1.65}
.services-screen .service-ad-area{color:var(--service-muted);font-size:12px;line-height:1.6}
.services-screen .service-ad-summary{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--service-muted);font-size:11px;line-height:1.7}
.services-screen .service-ad-card-bottom{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;margin-top:auto;padding-top:8px}
.services-screen .service-ad-price{color:var(--text);font-size:17px;font-weight:800;line-height:1.6}
.services-screen .service-ad-price small{font-size:12px}
.services-screen .service-ad-price.quote{color:var(--service-muted);font-size:11px;font-weight:650}
.services-screen .service-ad-open{color:var(--brand-text);font-size:11px;font-weight:750;white-space:nowrap}
.services-screen .service-ads-empty{padding:32px 18px;text-align:center;border:1px dashed var(--border-strong);border-radius:21px;background:var(--surface)}
.services-screen .service-empty-icon{display:grid;place-items:center;width:64px;height:64px;margin:0 auto 17px;border-radius:19px;background:var(--surface-2);color:var(--service-muted)}
.services-screen .service-empty-icon svg{width:36px;height:36px}
.services-screen .service-ads-empty h2{margin:0 0 10px;color:var(--text);font-size:19px;line-height:1.7}
.services-screen .service-ads-empty p{margin:0 0 10px;color:var(--service-muted);font-size:13px;line-height:1.9}
.services-screen .service-ads-empty .primary{margin-top:12px;min-height:46px}
.services-screen .service-detail-gallery{padding:8px;border:1px solid var(--border);border-radius:22px;background:var(--surface)}
.services-screen #serviceAdPhoto{position:relative;display:block;width:100%;padding:0;aspect-ratio:4/3;overflow:hidden;border:0;border-radius:15px;background:var(--surface-2)}
.services-screen #serviceAdPhoto>img{width:100%;height:100%;object-fit:contain}
.services-screen .service-photo-counter{position:absolute;bottom:10px;inset-inline-end:10px;padding:5px 10px;border-radius:8px;background:rgba(0,0,0,.72);color:#fff;font-size:11px;direction:ltr}
.services-screen .service-photo-thumbs{display:flex;gap:8px;margin-top:8px;overflow-x:auto;padding:2px}
.services-screen .service-photo-thumbs button{flex:0 0 66px;width:66px;height:58px;padding:2px;border:2px solid transparent;border-radius:10px;background:var(--surface-2)}
.services-screen .service-photo-thumbs button[aria-pressed="true"]{border-color:var(--brand-fill)}
.services-screen .service-photo-thumbs img{width:100%;height:100%;object-fit:cover;border-radius:6px}
.services-screen .service-detail-copy{padding:23px 2px 20px}
.services-screen .service-detail-copy h1{margin:9px 0 6px;color:var(--text);font-size:27px;line-height:1.6;overflow-wrap:anywhere}
.services-screen .service-detail-copy>.service-ad-area{margin:0 0 10px}
.services-screen .service-detail-copy h2{margin:22px 0 9px;color:var(--text);font-size:17px;line-height:1.6}
.services-screen .service-detail-description{margin:0;color:var(--text-2);font-size:14px;line-height:2;white-space:pre-wrap;overflow-wrap:anywhere}
.services-screen .service-advertiser-contact{margin-top:23px;padding-top:1px;border-top:1px solid var(--border)}
.services-screen .service-ad-card:focus-visible,.services-screen .service-back:focus-visible,.services-screen #serviceAdPhoto:focus-visible,.services-screen [data-service-photo]:focus-visible{outline:3px solid var(--text);outline-offset:4px}
@media(min-width:768px){
  .services-screen .service-ad-card{grid-template-columns:230px minmax(0,1fr)}
  .services-screen .service-ad-cover{min-height:215px}
  .services-screen .service-ad-card-body{padding:22px}
  .services-screen .service-ad-title{font-size:20px}
  .services-screen .service-ad-summary{font-size:13px}
  .services-screen .service-ad-area,.services-screen .service-ad-open,.services-screen .service-ad-price.quote{font-size:13px}
  .services-screen #serviceAdPhoto{max-height:480px}
}
@media(max-width:360px){
  .services-screen .service-ad-card-body{padding:12px 10px}
  .services-screen .service-ad-title{font-size:15px}
  .services-screen .service-ad-cover{min-height:185px}
}
/* Official advertising enquiries are distinct from each advertiser's contacts. */
.services-screen .service-official-handle{display:inline-block;margin-top:10px;color:var(--ink);font-size:14px;font-weight:750;letter-spacing:.025em}
