/* WerkDok C3.3.7 — catalog hierarchy and native scrolling for social pages. */
.wdc-follow-inside .wdc-make,.wdc-follow-inside .wdc-family,.wdc-follow-inside .wdc-add-picker,
.wdc-follow-inside .wdc-kind,.wdc-follow-inside .wdc-search{
  box-sizing:border-box;display:block;width:100%;min-width:0;min-height:43px;
  margin:7px 0;padding:9px 12px;border:1px solid var(--border,rgba(61,165,180,.35));
  border-radius:12px;background:var(--surface,#091b2b);color:var(--text,#e9f6fc);font:inherit;
}
.wdc-follow-inside .wdc-catalog-empty{border:1px solid rgba(213,163,86,.35);border-radius:11px;padding:10px 12px;color:var(--text);font-size:12px;line-height:1.5;margin:9px 0}
.wdc-follow-inside .wdc-catalog-empty[hidden]{display:none!important}
.wdc-follow-inside .wdc-add-follow:disabled{opacity:.55;cursor:not-allowed}
@media(min-width:1221px){
  /* Before C336 these views were fixed-height scroll panes; use document scrolling consistently. */
  body.on-social-people #wd-social-people,body.on-messages #wd-messages{
    position:static!important;max-height:none!important;height:auto!important;min-height:0!important;
    overflow:visible!important;overscroll-behavior-y:auto!important;scrollbar-gutter:auto!important;
  }
  body.on-social-people .feed-layout,body.on-messages .feed-layout{
    height:auto!important;max-height:none!important;grid-template-rows:auto!important;overflow:visible!important;
  }
  body.on-social-people,body.on-messages{overflow-y:auto!important}
}
/* If a messages pane can scroll, standard wheel/touchpad scrolling stays available. */
body.on-messages .wd-messages-contacts,body.on-messages .wd-messages-thread-body{
  overscroll-behavior-y:auto!important;touch-action:pan-y;scrollbar-gutter:stable;
}
body.on-social-people #wd-social-people{touch-action:pan-y}
@media(max-width:1220px){body.on-social-people #wd-social-people,body.on-messages #wd-messages{overflow:visible!important;max-height:none!important}}
@media(prefers-reduced-motion:reduce){body.on-social-people #wd-social-people{scroll-behavior:auto}}

/* C34.01: profile panels use the same native document scrolling as the feed. */
@media(min-width:1221px){
 body.on-community-feed:is(.on-profile,.on-member) :is(#wd-profile-panel,#wd-public-profile){position:static!important;height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;overscroll-behavior:auto!important;scrollbar-gutter:auto!important;padding-right:0!important}
 body.on-community-feed:is(.on-profile,.on-member) .feed-layout{height:auto!important;max-height:none!important;min-height:calc(100dvh - 76px)!important;grid-template-rows:auto!important;align-items:start!important;overflow:visible!important}
 body.on-community-feed:is(.on-profile,.on-member):not(.wd-mobile-nav-open){height:auto!important;overflow-y:auto!important}
}

/* C34.04: clear independent follow scopes, no overflow on narrow sidebars. */
.wdc-follow-inside [hidden]{display:none!important}
.wdc-follow-inside .wdc-scope-label{font-weight:650;font-size:13px;margin:4px 0 -5px;grid-column:1/-1}
.wdc-follow-inside .wdc-follow-explain,.wdc-follow-inside .wdc-matching-note{grid-column:1/-1;font-size:12px;line-height:1.55;margin:2px 0;color:var(--text)}
.wdc-follow-inside .wdc-followed{display:flex;justify-content:space-between;align-items:center;width:100%;box-sizing:border-box;margin:3px 0;padding:8px 10px;gap:8px}
.wdc-followed span{min-width:0;overflow-wrap:anywhere;line-height:1.4}
.wdc-followed button{flex-shrink:0}
.wdc-matching-inner{padding-top:12px}

/* C34.10.1: confirmed empty garage supports catalogue follows, not vehicle publishing. */
#mycars-post-form[hidden]{display:none!important}
