/* WerkDok W3.3.1 - guest workshop responsive shell.
   Scope: anonymous workshop catalogue + map. No data, Firebase or service logic.
   One shared language/theme control lives in the Community topbar. */
body.on-workshops.ws-public-visitor .ws-preferences{display:none!important}
body.on-workshops.ws-public-visitor .ws-workshops-view{min-width:0}
body.on-workshops.ws-public-visitor .ws-page{min-width:0}
body.on-workshops.ws-public-visitor .ws-search-form>*{min-width:0}
body.on-workshops.ws-public-visitor .ws-map-tools>*{min-width:0}
body.on-workshops.ws-public-visitor .ws-landing-search{min-width:0}
body.on-workshops.ws-public-visitor .ws-landing-search>*{min-width:0}
body.on-workshops.ws-public-visitor .ws-owner-actions>.ws-outline{max-width:100%;min-width:0;white-space:normal;text-align:center;line-height:1.3}
body.on-workshops.ws-public-visitor .ws-service-filters{overscroll-behavior-x:contain;scroll-snap-type:x proximity;-webkit-overflow-scrolling:touch}
body.on-workshops.ws-public-visitor .ws-service-filters .ws-filter{scroll-snap-align:start;flex-shrink:0}
body.on-workshops.ws-public-visitor .ws-map-toolbar{min-width:0}
body.on-workshops.ws-public-visitor .ws-map-layout{min-width:0}
body.on-workshops.ws-public-visitor .ws-map-tools button{white-space:normal;line-height:1.25}

/* Tablet portrait and landscape: compact workshop actions without whitespace holes. */
@media (min-width:601px) and (max-width:1220px){
  body.on-workshops.ws-public-visitor .ws-owner-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:10px 0 14px}
  body.on-workshops.ws-public-visitor .ws-owner-actions>.ws-outline{min-height:44px;height:100%;padding:8px 9px;font-size:clamp(11px,1.25vw,13px)}
  body.on-workshops.ws-public-visitor .ws-map-page .ws-heading{margin-bottom:10px}
  body.on-workshops.ws-public-visitor .ws-search-form{gap:8px}
  body.on-workshops.ws-public-visitor .ws-map-toolbar{margin-bottom:9px}
  body.on-workshops.ws-public-visitor .ws-landing-search{gap:8px}
}

/* Narrow phones: one logo row, one useful action row, no duplicate language/theme bar. */
@media(max-width:600px){
  body.on-workshops.ws-public-visitor .feed-topbar-inner{box-sizing:border-box!important;width:calc(100% - 24px)!important;height:auto!important;min-height:0!important;display:grid!important;grid-template-columns:minmax(0,1fr);gap:5px!important;padding:9px 0 10px!important;align-items:center}
  body.on-workshops.ws-public-visitor .feed-brand{grid-column:1;order:0;justify-self:start;min-height:35px;align-items:center}
  body.on-workshops.ws-public-visitor .feed-brand img{width:34px;height:34px}
  body.on-workshops.ws-public-visitor .feed-brand .brand-word{display:inline!important;font-size:19px!important;white-space:nowrap}
  body.on-workshops.ws-public-visitor .feed-brand .brand-word sup{font-size:9px}
  body.on-workshops.ws-public-visitor .feed-top-actions{box-sizing:border-box;grid-column:1;order:1;margin:0!important;width:100%!important;min-width:0;display:flex!important;justify-content:space-between!important;align-items:center!important;flex-wrap:nowrap!important;gap:5px!important;overflow:visible!important;padding:0!important}
  body.on-workshops.ws-public-visitor .ws-guest-auth-actions{flex:1 1 auto;min-width:0;display:flex!important;gap:5px}
  body.on-workshops.ws-public-visitor .ws-guest-auth-actions a{box-sizing:border-box;min-width:0;flex:1 1 auto;min-height:39px;padding:7px 6px;font-size:clamp(10px,2.8vw,12px);line-height:1.15;white-space:normal;text-align:center}
  body.on-workshops.ws-public-visitor #wdp-feed-theme-toggle{display:grid;place-items:center;flex:0 0 37px;width:37px;height:39px;min-width:37px}
  body.on-workshops.ws-public-visitor .wdp-feed-language{box-sizing:border-box;flex:0 0 auto;min-width:59px;max-width:76px;min-height:39px;padding:0 5px;gap:3px}
  body.on-workshops.ws-public-visitor .wdp-feed-language select{min-width:33px;max-width:51px;font-size:11px}
  body.on-workshops.ws-public-visitor .ws-owner-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;margin:8px 0 12px}
  body.on-workshops.ws-public-visitor .ws-owner-actions>.ws-outline{box-sizing:border-box;width:100%;min-height:42px;padding:7px 8px;font-size:clamp(11px,2.9vw,12px)}
  body.on-workshops.ws-public-visitor .ws-hero{min-height:260px}
  body.on-workshops.ws-public-visitor .ws-hero-content{padding:16px;gap:24px}
  body.on-workshops.ws-public-visitor .ws-landing-search{grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:7px;gap:7px}
  body.on-workshops.ws-public-visitor .ws-landing-search label{grid-column:1/-1}
  body.on-workshops.ws-public-visitor .ws-landing-search .ws-primary,
  body.on-workshops.ws-public-visitor .ws-landing-search .ws-outline{width:100%;min-width:0;min-height:42px;padding:7px 5px;white-space:normal;overflow-wrap:anywhere;font-size:11px;line-height:1.25}
  body.on-workshops.ws-public-visitor .ws-map-page .ws-heading{margin:1px 0 11px}
  body.on-workshops.ws-public-visitor .ws-map-page .ws-heading h1{font-size:clamp(27px,7.5vw,37px);line-height:1.08}
  body.on-workshops.ws-public-visitor .ws-search-form{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  body.on-workshops.ws-public-visitor .ws-query{grid-column:1/-1}
  body.on-workshops.ws-public-visitor .ws-search-submit{grid-column:1}
  body.on-workshops.ws-public-visitor .ws-locate{grid-column:2}
  body.on-workshops.ws-public-visitor .ws-search-form .ws-primary,
  body.on-workshops.ws-public-visitor .ws-search-form .ws-outline{padding:8px 7px;white-space:normal;font-size:12px;line-height:1.2}
  body.on-workshops.ws-public-visitor .ws-service-filters{padding:10px 0 9px}
  body.on-workshops.ws-public-visitor .ws-map-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:7px 12px}
  body.on-workshops.ws-public-visitor .ws-map-tools{margin-left:auto;gap:7px}
  body.on-workshops.ws-public-visitor .ws-map-tools button{padding:7px 8px;min-height:36px}
  body.on-workshops.ws-public-visitor .ws-result-card{min-width:0}
  body.on-workshops.ws-public-visitor .ws-result-photo{width:71px;height:76px;flex-basis:71px}
  body.on-workshops.ws-public-visitor .ws-result-info{min-width:0;overflow-wrap:anywhere}
  body.on-workshops.ws-public-visitor .ws-home-card{min-width:0}
}

@media (max-width:360px){
  body.on-workshops.ws-public-visitor .feed-brand .brand-word{font-size:17px!important}
  body.on-workshops.ws-public-visitor .wdp-feed-language{min-width:52px;max-width:62px;padding-inline:3px}
  body.on-workshops.ws-public-visitor .ws-guest-auth-actions a{font-size:10px;padding:6px 4px}
  body.on-workshops.ws-public-visitor .ws-map-tools{width:100%;justify-content:flex-end}
}
/* Short landscape viewports must scroll normally; the browser toolbar is not page content. */
@media (max-width:1100px) and (max-height:560px) and (orientation:landscape){
  body.on-workshops.ws-public-visitor{overflow-y:auto!important}
  body.on-workshops.ws-public-visitor .community-feed-page,
  body.on-workshops.ws-public-visitor .feed-layout{height:auto!important;max-height:none!important;overflow:visible!important}
  body.on-workshops.ws-public-visitor .ws-workshops-view{height:auto!important;max-height:none!important;overflow:visible!important}
  body.on-workshops.ws-public-visitor .ws-map-layout{height:auto!important;min-height:0!important}
  body.on-workshops.ws-public-visitor .ws-results{max-height:320px;height:auto;min-height:120px}
  body.on-workshops.ws-public-visitor .ws-map-wrap{height:320px;min-height:240px}
}
