/* Shared primary follow palette; recommendation rail and media keep their overrides. */
:root{
 --follow-bg:#141414;--follow-text:#fff;--follow-bg-hover:#292929;
 --followed-bg:#f1f2f4;--followed-text:#141414;--followed-bg-hover:#e7e8ec;
}
:root[data-theme="dark"]{
 --follow-bg:#f2f2f3;--follow-text:#0b0b0c;--follow-bg-hover:#e2e2e5;
 --followed-bg:#2a2a2e;--followed-text:#f2f2f3;--followed-bg-hover:#35353b;
}
:root :is(.people-follow,.profile-hover-follow){
 --follow-fill:var(--follow-bg);--follow-hover:var(--follow-bg-hover);--follow-ink:var(--follow-text);
 display:inline-flex;align-items:center;justify-content:center;
 min-height:44px;border:0!important;border-radius:6px;
 background:var(--follow-fill)!important;color:var(--follow-ink)!important;
 font-family:var(--font-ui);font-weight:700!important;line-height:1.4;
 box-shadow:none!important;opacity:1;cursor:pointer;
 transform:none!important;scale:1!important;animation:none!important;
 transition:background-color .2s ease,color .2s ease;
}
:root :is(.people-follow,.profile-hover-follow):is(.is-followed,[aria-pressed="true"]){
 --follow-fill:var(--followed-bg);--follow-hover:var(--followed-bg-hover);--follow-ink:var(--followed-text);
}
:root :is(.people-follow,.profile-hover-follow):hover{background:var(--follow-hover)!important;filter:none}
:root :is(.people-follow,.profile-hover-follow):disabled{opacity:1;cursor:pointer;filter:none}
:root :is(.people-follow,.profile-hover-follow):focus-visible{outline:2px solid var(--text);outline-offset:2px}
:root :is(.people-follow,.profile-hover-follow)[hidden]{display:none!important}
/* Media overlays remain white text only in every follow state.
   Fixed slots and hit targets keep both labels stable without a painted button. */
:root .post-follow{
 padding:0 2px;justify-content:flex-end;
 font-family:var(--font-ui);font-size:14px;font-weight:700!important;
 color:#fff!important;background:transparent!important;border:0!important;box-shadow:none!important;
 transform:none!important;scale:1!important;animation:none!important;transition:none;
}
:root .post-follow:is(:hover,:active,:disabled,[aria-pressed="true"],.is-followed){color:#fff!important;background:transparent!important;opacity:1}
:root .post-follow::before,:root .post-follow::after{content:none;display:none}
:root .post-follow:focus-visible{outline:2px solid #fff;outline-offset:-2px;border-radius:4px}
/* Override legacy sidebar !important rules without changing other .btns. */
:root .people-follow{width:124px;min-width:124px!important;flex:0 0 124px;padding:8px!important;font-size:13px!important;white-space:nowrap}
/* The painted hover-card button is slim; its tap target remains 44px. */
:root .profile-hover-follow{position:relative;isolation:isolate;width:100%;height:44px;min-height:44px;padding:0 14px;background:transparent!important}
:root .profile-hover-follow:hover{background:transparent!important}
:root .profile-hover-follow::before{content:"";position:absolute;inset:5px 0;z-index:-1;border-radius:6px;background:var(--follow-fill);pointer-events:none;transition:background-color .2s ease}
:root .profile-hover-follow:hover::before{background:var(--follow-hover)}
@media(max-width:700px){
 :root .post-follow-slot{flex-basis:116px;width:116px}
 :root .post-follow{font-size:13.5px}
 :root .people-follow{width:118px;min-width:118px!important;flex-basis:118px;font-size:12.5px!important}
}
@media(prefers-reduced-motion:reduce){
 :root :is(.people-follow,.profile-hover-follow),:root .profile-hover-follow::before{transition:none}
}

